libgo: Update Go library to master revision 15489/921e53d4863c.
[gcc.git] / libgo / configure
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.
4 #
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.
8 #
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 ## -------------------- ##
14
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 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78 }
79 fi
80
81
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"
88
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
94 do
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
100
101 ;;
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
107 fi
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
111 fi
112
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='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
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 *) :
147 ;;
148 esac
149 fi
150 "
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; }
156
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 :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
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
173
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
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
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
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
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
206 fi
207 fi
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
217
218
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+"$@"}
228 fi
229
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."
241 fi
242 exit 1
243 fi
244 fi
245 fi
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
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
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 ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
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/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
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"
326
327
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 ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
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 ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
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 ()
371 {
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
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
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
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
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
398 fi
399
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/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
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
425
426
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 '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
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; }
449
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
456 }
457
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;;
467 *)
468 ECHO_N='-n';;
469 esac
470
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
477 fi
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'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
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
503 fi
504
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=
512 fi
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
524 '
525 fi
526 as_executable_p=$as_test_x
527
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'"
530
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'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
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`
543
544 #
545 # Initializations.
546 #
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=
555
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=''
563
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"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 MATH_FLAG
608 STRINGOPS_FLAG
609 HAVE_WAIT4_FALSE
610 HAVE_WAIT4_TRUE
611 HAVE_STRERROR_R_FALSE
612 HAVE_STRERROR_R_TRUE
613 HAVE_SYS_MMAN_H_FALSE
614 HAVE_SYS_MMAN_H_TRUE
615 PTHREAD_LIBS
616 PTHREAD_CFLAGS
617 NET_LIBS
618 MATH_LIBS
619 USING_SPLIT_STACK_FALSE
620 USING_SPLIT_STACK_TRUE
621 SPLIT_STACK
622 OSCFLAGS
623 GO_SYSCALL_OS_ARCH_FILE
624 GO_SYSCALL_OS_FILE
625 GO_LIBCALL_OS_ARCH_FILE
626 GO_LIBCALL_OS_FILE
627 GOARCH
628 LIBGO_IS_X86_64_FALSE
629 LIBGO_IS_X86_64_TRUE
630 LIBGO_IS_SPARC64_FALSE
631 LIBGO_IS_SPARC64_TRUE
632 LIBGO_IS_SPARC_FALSE
633 LIBGO_IS_SPARC_TRUE
634 LIBGO_IS_PPC64_FALSE
635 LIBGO_IS_PPC64_TRUE
636 LIBGO_IS_PPC_FALSE
637 LIBGO_IS_PPC_TRUE
638 LIBGO_IS_MIPSO64_FALSE
639 LIBGO_IS_MIPSO64_TRUE
640 LIBGO_IS_MIPSN64_FALSE
641 LIBGO_IS_MIPSN64_TRUE
642 LIBGO_IS_MIPSN32_FALSE
643 LIBGO_IS_MIPSN32_TRUE
644 LIBGO_IS_MIPSO32_FALSE
645 LIBGO_IS_MIPSO32_TRUE
646 LIBGO_IS_MIPS_FALSE
647 LIBGO_IS_MIPS_TRUE
648 LIBGO_IS_M68K_FALSE
649 LIBGO_IS_M68K_TRUE
650 LIBGO_IS_ARM_FALSE
651 LIBGO_IS_ARM_TRUE
652 LIBGO_IS_ALPHA_FALSE
653 LIBGO_IS_ALPHA_TRUE
654 LIBGO_IS_386_FALSE
655 LIBGO_IS_386_TRUE
656 GOOS
657 LIBGO_IS_SOLARIS_FALSE
658 LIBGO_IS_SOLARIS_TRUE
659 LIBGO_IS_RTEMS_FALSE
660 LIBGO_IS_RTEMS_TRUE
661 LIBGO_IS_OPENBSD_FALSE
662 LIBGO_IS_OPENBSD_TRUE
663 LIBGO_IS_NETBSD_FALSE
664 LIBGO_IS_NETBSD_TRUE
665 LIBGO_IS_LINUX_FALSE
666 LIBGO_IS_LINUX_TRUE
667 LIBGO_IS_IRIX_FALSE
668 LIBGO_IS_IRIX_TRUE
669 LIBGO_IS_FREEBSD_FALSE
670 LIBGO_IS_FREEBSD_TRUE
671 LIBGO_IS_DARWIN_FALSE
672 LIBGO_IS_DARWIN_TRUE
673 go_include
674 LIBFFIINCS
675 LIBFFI
676 nover_glibgo_toolexeclibdir
677 glibgo_toolexeclibdir
678 glibgo_toolexecdir
679 WERROR
680 WARN_FLAGS
681 CC_FOR_BUILD
682 enable_static
683 enable_shared
684 CPP
685 OTOOL64
686 OTOOL
687 LIPO
688 NMEDIT
689 DSYMUTIL
690 AR
691 OBJDUMP
692 LN_S
693 NM
694 ac_ct_DUMPBIN
695 DUMPBIN
696 LIBTOOL
697 OBJCOPY
698 RANLIB
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 MAINT
705 MAINTAINER_MODE_FALSE
706 MAINTAINER_MODE_TRUE
707 GOCFLAGS
708 GOC
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 AMDEPBACKSLASH
713 AMDEP_FALSE
714 AMDEP_TRUE
715 am__quote
716 am__include
717 DEPDIR
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 multi_basedir
761 libtool_VERSION
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_multilib
804 enable_dependency_tracking
805 enable_maintainer_mode
806 with_gnu_ld
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 enable_libtool_lock
812 enable_werror
813 enable_version_specific_runtime_libs
814 with_libffi
815 with_system_libunwind
816 enable_sjlj_exceptions
817 '
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CPP
822 CPPFLAGS'
823
824
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
846
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
872
873 ac_prev=
874 ac_dashdash=
875 for ac_option
876 do
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
882 fi
883
884 case $ac_option in
885 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *) ac_optarg=yes ;;
887 esac
888
889 # Accept the important Cygnus configure options, so we can diagnose typos.
890
891 case $ac_dashdash$ac_option in
892 --)
893 ac_dashdash=yes ;;
894
895 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 ac_prev=bindir ;;
897 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898 bindir=$ac_optarg ;;
899
900 -build | --build | --buil | --bui | --bu)
901 ac_prev=build_alias ;;
902 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903 build_alias=$ac_optarg ;;
904
905 -cache-file | --cache-file | --cache-fil | --cache-fi \
906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907 ac_prev=cache_file ;;
908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910 cache_file=$ac_optarg ;;
911
912 --config-cache | -C)
913 cache_file=config.cache ;;
914
915 -datadir | --datadir | --datadi | --datad)
916 ac_prev=datadir ;;
917 -datadir=* | --datadir=* | --datadi=* | --datad=*)
918 datadir=$ac_optarg ;;
919
920 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921 | --dataroo | --dataro | --datar)
922 ac_prev=datarootdir ;;
923 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925 datarootdir=$ac_optarg ;;
926
927 -disable-* | --disable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
942
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
947
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
952
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=\$ac_optarg ;;
968
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
977
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
980 with_gas=yes ;;
981
982 -help | --help | --hel | --he | -h)
983 ac_init_help=long ;;
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
988
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
993
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 ac_prev=htmldir ;;
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 | --ht=*)
998 htmldir=$ac_optarg ;;
999
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1006
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 ac_prev=infodir ;;
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1011
1012 -libdir | --libdir | --libdi | --libd)
1013 ac_prev=libdir ;;
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1016
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1023
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1028
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1035
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 ac_prev=mandir ;;
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1040
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1043 with_fp=no ;;
1044
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1047 no_create=yes ;;
1048
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051 no_recursion=yes ;;
1052
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1061
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 ac_prev=prefix ;;
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1066
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1073
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1080
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1097
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 ac_prev=pdfdir ;;
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1102
1103 -psdir | --psdir | --psdi | --psd | --ps)
1104 ac_prev=psdir ;;
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106 psdir=$ac_optarg ;;
1107
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1110 silent=yes ;;
1111
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 ac_prev=sbindir ;;
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 | --sbi=* | --sb=*)
1116 sbindir=$ac_optarg ;;
1117
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1121 | --sha | --sh)
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 | --sha=* | --sh=*)
1127 sharedstatedir=$ac_optarg ;;
1128
1129 -site | --site | --sit)
1130 ac_prev=site ;;
1131 -site=* | --site=* | --sit=*)
1132 site=$ac_optarg ;;
1133
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 ac_prev=srcdir ;;
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1138
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1145
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1150
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 verbose=yes ;;
1153
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1156
1157 -with-* | --with-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
1172
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1188
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1192
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1199
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1206
1207 -*) as_fn_error "unrecognized option: \`$ac_option'
1208 Try \`$0 --help' for more information."
1209 ;;
1210
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 case $ac_envvar in #(
1215 '' | [0-9]* | *[!_$as_cr_alnum]* )
1216 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1217 esac
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1220
1221 *)
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227 ;;
1228
1229 esac
1230 done
1231
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 as_fn_error "missing argument to $ac_option"
1235 fi
1236
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1241 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1243 fi
1244
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1250 do
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1264 done
1265
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1272
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1278 If a cross compiler is detected then cross compile mode will be used." >&2
1279 elif test "x$build_alias" != "x$host_alias"; then
1280 cross_compiling=yes
1281 fi
1282 fi
1283
1284 ac_tool_prefix=
1285 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286
1287 test "$silent" = yes && exec 6>/dev/null
1288
1289
1290 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1291 ac_ls_di=`ls -di .` &&
1292 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1293 as_fn_error "working directory cannot be determined"
1294 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1295 as_fn_error "pwd does not report name of working directory"
1296
1297
1298 # Find the source files, if location was not specified.
1299 if test -z "$srcdir"; then
1300 ac_srcdir_defaulted=yes
1301 # Try the directory containing this script, then the parent directory.
1302 ac_confdir=`$as_dirname -- "$as_myself" ||
1303 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1304 X"$as_myself" : 'X\(//\)[^/]' \| \
1305 X"$as_myself" : 'X\(//\)$' \| \
1306 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1307 $as_echo X"$as_myself" |
1308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)[^/].*/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\).*/{
1321 s//\1/
1322 q
1323 }
1324 s/.*/./; q'`
1325 srcdir=$ac_confdir
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 srcdir=..
1328 fi
1329 else
1330 ac_srcdir_defaulted=no
1331 fi
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1334 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1335 fi
1336 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 ac_abs_confdir=`(
1338 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1339 pwd)`
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 srcdir=.
1343 fi
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1347 case $srcdir in
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 esac
1350 for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1355 done
1356
1357 #
1358 # Report the --help message.
1359 #
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1363 cat <<_ACEOF
1364 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1365
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1367
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1370
1371 Defaults for the options are specified in brackets.
1372
1373 Configuration:
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 [PREFIX]
1389
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1394
1395 For better control, use the options below.
1396
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1417 _ACEOF
1418
1419 cat <<\_ACEOF
1420
1421 Program names:
1422 --program-prefix=PREFIX prepend PREFIX to installed program names
1423 --program-suffix=SUFFIX append SUFFIX to installed program names
1424 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425
1426 System types:
1427 --build=BUILD configure for building on BUILD [guessed]
1428 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1429 --target=TARGET configure for building compilers for TARGET [HOST]
1430 _ACEOF
1431 fi
1432
1433 if test -n "$ac_init_help"; then
1434 case $ac_init_help in
1435 short | recursive ) echo "Configuration of package-unused version-unused:";;
1436 esac
1437 cat <<\_ACEOF
1438
1439 Optional Features:
1440 --disable-option-checking ignore unrecognized --enable/--with options
1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1443 --enable-multilib build many library versions (default)
1444 --disable-dependency-tracking speeds up one-time build
1445 --enable-dependency-tracking do not reject slow dependency extractors
1446 --enable-maintainer-mode enable make rules and dependencies not useful
1447 (and sometimes confusing) to the casual installer
1448 --enable-shared[=PKGS] build shared libraries [default=yes]
1449 --enable-static[=PKGS] build static libraries [default=yes]
1450 --enable-fast-install[=PKGS]
1451 optimize for fast installation [default=yes]
1452 --disable-libtool-lock avoid locking (might break parallel builds)
1453 --enable-werror turns on -Werror [default=yes]
1454 --enable-version-specific-runtime-libs
1455 Specify that runtime libraries should be installed
1456 in a compiler-specific directory
1457 --enable-sjlj-exceptions
1458 force use of builtin_setjmp for exceptions
1459
1460 Optional Packages:
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1463 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1464 --with-pic try to use only PIC/non-PIC objects [default=use
1465 both]
1466 --without-libffi don't use libffi
1467 --with-system-libunwind use installed libunwind
1468
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 LIBS libraries to pass to the linker, e.g. -l<library>
1475 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1477 GOC Go compiler command
1478 GOCFLAGS Go compiler flags
1479 CPP C preprocessor
1480
1481 Use these variables to override the choices made by `configure' or to help
1482 it to find libraries and programs with nonstandard names/locations.
1483
1484 Report bugs to the package provider.
1485 _ACEOF
1486 ac_status=$?
1487 fi
1488
1489 if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492 test -d "$ac_dir" ||
1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 continue
1495 ac_builddir=.
1496
1497 case "$ac_dir" in
1498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *)
1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1501 # A ".." for each directory in $ac_dir_suffix.
1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 esac ;;
1507 esac
1508 ac_abs_top_builddir=$ac_pwd
1509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510 # for backward compatibility:
1511 ac_top_builddir=$ac_top_build_prefix
1512
1513 case $srcdir in
1514 .) # We are building in place.
1515 ac_srcdir=.
1516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
1519 ac_srcdir=$srcdir$ac_dir_suffix;
1520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1522 *) # Relative name.
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 esac
1527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528
1529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure" --help=recursive
1537 else
1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 fi || ac_status=$?
1540 cd "$ac_pwd" || { ac_status=$?; break; }
1541 done
1542 fi
1543
1544 test -n "$ac_init_help" && exit $ac_status
1545 if $ac_init_version; then
1546 cat <<\_ACEOF
1547 package-unused configure version-unused
1548 generated by GNU Autoconf 2.64
1549
1550 Copyright (C) 2009 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1553 _ACEOF
1554 exit
1555 fi
1556
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1560
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.$ac_objext; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1591
1592 ac_retval=1
1593 fi
1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 return $ac_retval
1596
1597 } # ac_fn_c_try_compile
1598
1599 # ac_fn_c_try_link LINENO
1600 # -----------------------
1601 # Try to link conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_link ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext conftest$ac_exeext
1606 if { { ac_try="$ac_link"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest$ac_exeext && {
1625 test "$cross_compiling" = yes ||
1626 $as_test_x conftest$ac_exeext
1627 }; then :
1628 ac_retval=0
1629 else
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1632
1633 ac_retval=1
1634 fi
1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1637 # interfere with the next link command; also delete a directory that is
1638 # left behind by Apple's compiler. We do this before executing the actions.
1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 return $ac_retval
1642
1643 } # ac_fn_c_try_link
1644
1645 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists and can be compiled using the include files in
1648 # INCLUDES, setting the cache variable VAR accordingly.
1649 ac_fn_c_check_header_compile ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1655 $as_echo_n "(cached) " >&6
1656 else
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1659 $4
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663 eval "$3=yes"
1664 else
1665 eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673
1674 } # ac_fn_c_check_header_compile
1675
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } >/dev/null && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707 fi
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 return $ac_retval
1710
1711 } # ac_fn_c_try_cpp
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=$ac_status
1748 fi
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 return $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1771
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1776
1777 #ifdef __STDC__
1778 # include <limits.h>
1779 #else
1780 # include <assert.h>
1781 #endif
1782
1783 #undef $2
1784
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1788 #ifdef __cplusplus
1789 extern "C"
1790 #endif
1791 char $2 ();
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1796 choke me
1797 #endif
1798
1799 int
1800 main ()
1801 {
1802 return $2 ();
1803 ;
1804 return 0;
1805 }
1806 _ACEOF
1807 if ac_fn_c_try_link "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext \
1813 conftest$ac_exeext conftest.$ac_ext
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819
1820 } # ac_fn_c_check_func
1821
1822 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1825 # the include files in INCLUDES and setting the cache variable VAR
1826 # accordingly.
1827 ac_fn_c_check_header_mongrel ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1835 fi
1836 eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 else
1840 # Is the header compilable?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1842 $as_echo_n "checking $2 usability... " >&6; }
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 $4
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 ac_header_compiler=yes
1850 else
1851 ac_header_compiler=no
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1855 $as_echo "$ac_header_compiler" >&6; }
1856
1857 # Is the header present?
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1859 $as_echo_n "checking $2 presence... " >&6; }
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_cpp "$LINENO"; then :
1865 ac_header_preproc=yes
1866 else
1867 ac_header_preproc=no
1868 fi
1869 rm -f conftest.err conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1871 $as_echo "$ac_header_preproc" >&6; }
1872
1873 # So? What about this header?
1874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1875 yes:no: )
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1877 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ;;
1881 no:yes:* )
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1883 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1885 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1887 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1889 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 ;;
1893 esac
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898 else
1899 eval "$3=\$ac_header_compiler"
1900 fi
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 fi
1905 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906
1907 } # ac_fn_c_check_header_mongrel
1908
1909 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1910 # -------------------------------------------
1911 # Tests whether TYPE exists after having included INCLUDES, setting cache
1912 # variable VAR accordingly.
1913 ac_fn_c_check_type ()
1914 {
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919 $as_echo_n "(cached) " >&6
1920 else
1921 eval "$3=no"
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 int
1926 main ()
1927 {
1928 if (sizeof ($2))
1929 return 0;
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 $4
1938 int
1939 main ()
1940 {
1941 if (sizeof (($2)))
1942 return 0;
1943 ;
1944 return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948
1949 else
1950 eval "$3=yes"
1951 fi
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 fi
1956 eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960
1961 } # ac_fn_c_check_type
1962
1963 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1964 # --------------------------------------------
1965 # Tries to find the compile-time value of EXPR in a program that includes
1966 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1967 # computed
1968 ac_fn_c_compute_int ()
1969 {
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if test "$cross_compiling" = yes; then
1972 # Depending upon the size, compute the lo and hi bounds.
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $4
1976 int
1977 main ()
1978 {
1979 static int test_array [1 - 2 * !(($2) >= 0)];
1980 test_array [0] = 0
1981
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 ac_lo=0 ac_mid=0
1988 while :; do
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 $4
1992 int
1993 main ()
1994 {
1995 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1996 test_array [0] = 0
1997
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_hi=$ac_mid; break
2004 else
2005 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2006 if test $ac_lo -le $ac_mid; then
2007 ac_lo= ac_hi=
2008 break
2009 fi
2010 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 done
2014 else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 int
2019 main ()
2020 {
2021 static int test_array [1 - 2 * !(($2) < 0)];
2022 test_array [0] = 0
2023
2024 ;
2025 return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=-1 ac_mid=-1
2030 while :; do
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2038 test_array [0] = 0
2039
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_lo=$ac_mid; break
2046 else
2047 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2048 if test $ac_mid -le $ac_hi; then
2049 ac_lo= ac_hi=
2050 break
2051 fi
2052 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 done
2056 else
2057 ac_lo= ac_hi=
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 # Binary search between lo and hi bounds.
2063 while test "x$ac_lo" != "x$ac_hi"; do
2064 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 $4
2068 int
2069 main ()
2070 {
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072 test_array [0] = 0
2073
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_hi=$ac_mid
2080 else
2081 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 done
2085 case $ac_lo in #((
2086 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2087 '') ac_retval=1 ;;
2088 esac
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 static long int longval () { return $2; }
2094 static unsigned long int ulongval () { return $2; }
2095 #include <stdio.h>
2096 #include <stdlib.h>
2097 int
2098 main ()
2099 {
2100
2101 FILE *f = fopen ("conftest.val", "w");
2102 if (! f)
2103 return 1;
2104 if (($2) < 0)
2105 {
2106 long int i = longval ();
2107 if (i != ($2))
2108 return 1;
2109 fprintf (f, "%ld", i);
2110 }
2111 else
2112 {
2113 unsigned long int i = ulongval ();
2114 if (i != ($2))
2115 return 1;
2116 fprintf (f, "%lu", i);
2117 }
2118 /* Do not output a trailing newline, as this causes \r\n confusion
2119 on some platforms. */
2120 return ferror (f) || fclose (f) != 0;
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_run "$LINENO"; then :
2127 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2128 else
2129 ac_retval=1
2130 fi
2131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2132 conftest.$ac_objext conftest.beam conftest.$ac_ext
2133 rm -f conftest.val
2134
2135 fi
2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2137 return $ac_retval
2138
2139 } # ac_fn_c_compute_int
2140 cat >config.log <<_ACEOF
2141 This file contains any messages produced by compilers while
2142 running configure, to aid debugging if configure makes a mistake.
2143
2144 It was created by package-unused $as_me version-unused, which was
2145 generated by GNU Autoconf 2.64. Invocation command line was
2146
2147 $ $0 $@
2148
2149 _ACEOF
2150 exec 5>>config.log
2151 {
2152 cat <<_ASUNAME
2153 ## --------- ##
2154 ## Platform. ##
2155 ## --------- ##
2156
2157 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2158 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2159 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2160 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2161 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162
2163 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2164 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2165
2166 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2167 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2168 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2169 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2170 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2171 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2172 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2173
2174 _ASUNAME
2175
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 $as_echo "PATH: $as_dir"
2182 done
2183 IFS=$as_save_IFS
2184
2185 } >&5
2186
2187 cat >&5 <<_ACEOF
2188
2189
2190 ## ----------- ##
2191 ## Core tests. ##
2192 ## ----------- ##
2193
2194 _ACEOF
2195
2196
2197 # Keep a trace of the command line.
2198 # Strip out --no-create and --no-recursion so they do not pile up.
2199 # Strip out --silent because we don't want to record it for future runs.
2200 # Also quote any args containing shell meta-characters.
2201 # Make two passes to allow for proper duplicate-argument suppression.
2202 ac_configure_args=
2203 ac_configure_args0=
2204 ac_configure_args1=
2205 ac_must_keep_next=false
2206 for ac_pass in 1 2
2207 do
2208 for ac_arg
2209 do
2210 case $ac_arg in
2211 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2213 | -silent | --silent | --silen | --sile | --sil)
2214 continue ;;
2215 *\'*)
2216 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2217 esac
2218 case $ac_pass in
2219 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2220 2)
2221 as_fn_append ac_configure_args1 " '$ac_arg'"
2222 if test $ac_must_keep_next = true; then
2223 ac_must_keep_next=false # Got value, back to normal.
2224 else
2225 case $ac_arg in
2226 *=* | --config-cache | -C | -disable-* | --disable-* \
2227 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2228 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2229 | -with-* | --with-* | -without-* | --without-* | --x)
2230 case "$ac_configure_args0 " in
2231 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2232 esac
2233 ;;
2234 -* ) ac_must_keep_next=true ;;
2235 esac
2236 fi
2237 as_fn_append ac_configure_args " '$ac_arg'"
2238 ;;
2239 esac
2240 done
2241 done
2242 { ac_configure_args0=; unset ac_configure_args0;}
2243 { ac_configure_args1=; unset ac_configure_args1;}
2244
2245 # When interrupted or exit'd, cleanup temporary files, and complete
2246 # config.log. We remove comments because anyway the quotes in there
2247 # would cause problems or look ugly.
2248 # WARNING: Use '\'' to represent an apostrophe within the trap.
2249 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2250 trap 'exit_status=$?
2251 # Save into config.log some information that might help in debugging.
2252 {
2253 echo
2254
2255 cat <<\_ASBOX
2256 ## ---------------- ##
2257 ## Cache variables. ##
2258 ## ---------------- ##
2259 _ASBOX
2260 echo
2261 # The following way of writing the cache mishandles newlines in values,
2262 (
2263 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2264 eval ac_val=\$$ac_var
2265 case $ac_val in #(
2266 *${as_nl}*)
2267 case $ac_var in #(
2268 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2269 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2270 esac
2271 case $ac_var in #(
2272 _ | IFS | as_nl) ;; #(
2273 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2274 *) { eval $ac_var=; unset $ac_var;} ;;
2275 esac ;;
2276 esac
2277 done
2278 (set) 2>&1 |
2279 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2280 *${as_nl}ac_space=\ *)
2281 sed -n \
2282 "s/'\''/'\''\\\\'\'''\''/g;
2283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2284 ;; #(
2285 *)
2286 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2287 ;;
2288 esac |
2289 sort
2290 )
2291 echo
2292
2293 cat <<\_ASBOX
2294 ## ----------------- ##
2295 ## Output variables. ##
2296 ## ----------------- ##
2297 _ASBOX
2298 echo
2299 for ac_var in $ac_subst_vars
2300 do
2301 eval ac_val=\$$ac_var
2302 case $ac_val in
2303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304 esac
2305 $as_echo "$ac_var='\''$ac_val'\''"
2306 done | sort
2307 echo
2308
2309 if test -n "$ac_subst_files"; then
2310 cat <<\_ASBOX
2311 ## ------------------- ##
2312 ## File substitutions. ##
2313 ## ------------------- ##
2314 _ASBOX
2315 echo
2316 for ac_var in $ac_subst_files
2317 do
2318 eval ac_val=\$$ac_var
2319 case $ac_val in
2320 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321 esac
2322 $as_echo "$ac_var='\''$ac_val'\''"
2323 done | sort
2324 echo
2325 fi
2326
2327 if test -s confdefs.h; then
2328 cat <<\_ASBOX
2329 ## ----------- ##
2330 ## confdefs.h. ##
2331 ## ----------- ##
2332 _ASBOX
2333 echo
2334 cat confdefs.h
2335 echo
2336 fi
2337 test "$ac_signal" != 0 &&
2338 $as_echo "$as_me: caught signal $ac_signal"
2339 $as_echo "$as_me: exit $exit_status"
2340 } >&5
2341 rm -f core *.core core.conftest.* &&
2342 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2343 exit $exit_status
2344 ' 0
2345 for ac_signal in 1 2 13 15; do
2346 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2347 done
2348 ac_signal=0
2349
2350 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2351 rm -f -r conftest* confdefs.h
2352
2353 $as_echo "/* confdefs.h */" > confdefs.h
2354
2355 # Predefined preprocessor variables.
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_NAME "$PACKAGE_NAME"
2359 _ACEOF
2360
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2363 _ACEOF
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2367 _ACEOF
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_STRING "$PACKAGE_STRING"
2371 _ACEOF
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2375 _ACEOF
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_URL "$PACKAGE_URL"
2379 _ACEOF
2380
2381
2382 # Let the site file select an alternate cache file if it wants to.
2383 # Prefer an explicitly selected file to automatically selected ones.
2384 ac_site_file1=NONE
2385 ac_site_file2=NONE
2386 if test -n "$CONFIG_SITE"; then
2387 ac_site_file1=$CONFIG_SITE
2388 elif test "x$prefix" != xNONE; then
2389 ac_site_file1=$prefix/share/config.site
2390 ac_site_file2=$prefix/etc/config.site
2391 else
2392 ac_site_file1=$ac_default_prefix/share/config.site
2393 ac_site_file2=$ac_default_prefix/etc/config.site
2394 fi
2395 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2396 do
2397 test "x$ac_site_file" = xNONE && continue
2398 if test -r "$ac_site_file"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2400 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2401 sed 's/^/| /' "$ac_site_file" >&5
2402 . "$ac_site_file"
2403 fi
2404 done
2405
2406 if test -r "$cache_file"; then
2407 # Some versions of bash will fail to source /dev/null (special
2408 # files actually), so we avoid doing that.
2409 if test -f "$cache_file"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2411 $as_echo "$as_me: loading cache $cache_file" >&6;}
2412 case $cache_file in
2413 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2414 *) . "./$cache_file";;
2415 esac
2416 fi
2417 else
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2419 $as_echo "$as_me: creating cache $cache_file" >&6;}
2420 >$cache_file
2421 fi
2422
2423 # Check that the precious variables saved in the cache have kept the same
2424 # value.
2425 ac_cache_corrupted=false
2426 for ac_var in $ac_precious_vars; do
2427 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2428 eval ac_new_set=\$ac_env_${ac_var}_set
2429 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2430 eval ac_new_val=\$ac_env_${ac_var}_value
2431 case $ac_old_set,$ac_new_set in
2432 set,)
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2435 ac_cache_corrupted=: ;;
2436 ,set)
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2438 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2439 ac_cache_corrupted=: ;;
2440 ,);;
2441 *)
2442 if test "x$ac_old_val" != "x$ac_new_val"; then
2443 # differences in whitespace do not lead to failure.
2444 ac_old_val_w=`echo x $ac_old_val`
2445 ac_new_val_w=`echo x $ac_new_val`
2446 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2448 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2449 ac_cache_corrupted=:
2450 else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2452 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2453 eval $ac_var=\$ac_old_val
2454 fi
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2456 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2458 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2459 fi;;
2460 esac
2461 # Pass precious variables to config.status.
2462 if test "$ac_new_set" = set; then
2463 case $ac_new_val in
2464 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2465 *) ac_arg=$ac_var=$ac_new_val ;;
2466 esac
2467 case " $ac_configure_args " in
2468 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2469 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2470 esac
2471 fi
2472 done
2473 if $ac_cache_corrupted; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2477 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2478 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2479 fi
2480 ## -------------------- ##
2481 ## Main body of script. ##
2482 ## -------------------- ##
2483
2484 ac_ext=c
2485 ac_cpp='$CPP $CPPFLAGS'
2486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2489
2490
2491
2492
2493
2494
2495 ac_config_headers="$ac_config_headers config.h"
2496
2497
2498 libtool_VERSION=3:1:0
2499
2500
2501 # Default to --enable-multilib
2502 # Check whether --enable-multilib was given.
2503 if test "${enable_multilib+set}" = set; then :
2504 enableval=$enable_multilib; case "$enableval" in
2505 yes) multilib=yes ;;
2506 no) multilib=no ;;
2507 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2508 esac
2509 else
2510 multilib=yes
2511 fi
2512
2513
2514 # We may get other options which we leave undocumented:
2515 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2516 # See config-ml.in if you want the gory details.
2517
2518 if test "$srcdir" = "."; then
2519 if test "$with_target_subdir" != "."; then
2520 multi_basedir="$srcdir/$with_multisrctop../.."
2521 else
2522 multi_basedir="$srcdir/$with_multisrctop.."
2523 fi
2524 else
2525 multi_basedir="$srcdir/.."
2526 fi
2527
2528
2529 # Even if the default multilib is not a cross compilation,
2530 # it may be that some of the other multilibs are.
2531 if test $cross_compiling = no && test $multilib = yes \
2532 && test "x${with_multisubdir}" != x ; then
2533 cross_compiling=maybe
2534 fi
2535
2536 ac_config_commands="$ac_config_commands default-1"
2537
2538
2539 ac_aux_dir=
2540 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2541 for ac_t in install-sh install.sh shtool; do
2542 if test -f "$ac_dir/$ac_t"; then
2543 ac_aux_dir=$ac_dir
2544 ac_install_sh="$ac_aux_dir/$ac_t -c"
2545 break 2
2546 fi
2547 done
2548 done
2549 if test -z "$ac_aux_dir"; then
2550 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2551 fi
2552
2553 # These three variables are undocumented and unsupported,
2554 # and are intended to be withdrawn in a future Autoconf release.
2555 # They can cause serious problems if a builder's source tree is in a directory
2556 # whose full name contains unusual characters.
2557 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2558 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2559 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2560
2561
2562 # Make sure we can run config.sub.
2563 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2564 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2565
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2567 $as_echo_n "checking build system type... " >&6; }
2568 if test "${ac_cv_build+set}" = set; then :
2569 $as_echo_n "(cached) " >&6
2570 else
2571 ac_build_alias=$build_alias
2572 test "x$ac_build_alias" = x &&
2573 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2574 test "x$ac_build_alias" = x &&
2575 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2576 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2577 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2578
2579 fi
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2581 $as_echo "$ac_cv_build" >&6; }
2582 case $ac_cv_build in
2583 *-*-*) ;;
2584 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2585 esac
2586 build=$ac_cv_build
2587 ac_save_IFS=$IFS; IFS='-'
2588 set x $ac_cv_build
2589 shift
2590 build_cpu=$1
2591 build_vendor=$2
2592 shift; shift
2593 # Remember, the first character of IFS is used to create $*,
2594 # except with old shells:
2595 build_os=$*
2596 IFS=$ac_save_IFS
2597 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2598
2599
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2601 $as_echo_n "checking host system type... " >&6; }
2602 if test "${ac_cv_host+set}" = set; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 if test "x$host_alias" = x; then
2606 ac_cv_host=$ac_cv_build
2607 else
2608 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2609 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2610 fi
2611
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2614 $as_echo "$ac_cv_host" >&6; }
2615 case $ac_cv_host in
2616 *-*-*) ;;
2617 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2618 esac
2619 host=$ac_cv_host
2620 ac_save_IFS=$IFS; IFS='-'
2621 set x $ac_cv_host
2622 shift
2623 host_cpu=$1
2624 host_vendor=$2
2625 shift; shift
2626 # Remember, the first character of IFS is used to create $*,
2627 # except with old shells:
2628 host_os=$*
2629 IFS=$ac_save_IFS
2630 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2631
2632
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2634 $as_echo_n "checking target system type... " >&6; }
2635 if test "${ac_cv_target+set}" = set; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 if test "x$target_alias" = x; then
2639 ac_cv_target=$ac_cv_host
2640 else
2641 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2642 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2643 fi
2644
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2647 $as_echo "$ac_cv_target" >&6; }
2648 case $ac_cv_target in
2649 *-*-*) ;;
2650 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2651 esac
2652 target=$ac_cv_target
2653 ac_save_IFS=$IFS; IFS='-'
2654 set x $ac_cv_target
2655 shift
2656 target_cpu=$1
2657 target_vendor=$2
2658 shift; shift
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2661 target_os=$*
2662 IFS=$ac_save_IFS
2663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2664
2665
2666 # The aliases save the names the user supplied, while $host etc.
2667 # will get canonicalized.
2668 test -n "$target_alias" &&
2669 test "$program_prefix$program_suffix$program_transform_name" = \
2670 NONENONEs,x,x, &&
2671 program_prefix=${target_alias}-
2672
2673 target_alias=${target_alias-$host_alias}
2674
2675 am__api_version='1.11'
2676
2677 # Find a good install program. We prefer a C program (faster),
2678 # so one script is as good as another. But avoid the broken or
2679 # incompatible versions:
2680 # SysV /etc/install, /usr/sbin/install
2681 # SunOS /usr/etc/install
2682 # IRIX /sbin/install
2683 # AIX /bin/install
2684 # AmigaOS /C/install, which installs bootblocks on floppy discs
2685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2688 # OS/2's system install, which has a completely different semantic
2689 # ./install, which can be erroneously created by make from ./install.sh.
2690 # Reject install programs that cannot install multiple files.
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2692 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2693 if test -z "$INSTALL"; then
2694 if test "${ac_cv_path_install+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 # Account for people who put trailing slashes in PATH elements.
2703 case $as_dir/ in #((
2704 ./ | .// | /[cC]/* | \
2705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2706 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2707 /usr/ucb/* ) ;;
2708 *)
2709 # OSF1 and SCO ODT 3.0 have their own names for install.
2710 # Don't use installbsd from OSF since it installs stuff as root
2711 # by default.
2712 for ac_prog in ginstall scoinst install; do
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2715 if test $ac_prog = install &&
2716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2717 # AIX install. It has an incompatible calling convention.
2718 :
2719 elif test $ac_prog = install &&
2720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2721 # program-specific install script used by HP pwplus--don't use.
2722 :
2723 else
2724 rm -rf conftest.one conftest.two conftest.dir
2725 echo one > conftest.one
2726 echo two > conftest.two
2727 mkdir conftest.dir
2728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2729 test -s conftest.one && test -s conftest.two &&
2730 test -s conftest.dir/conftest.one &&
2731 test -s conftest.dir/conftest.two
2732 then
2733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2734 break 3
2735 fi
2736 fi
2737 fi
2738 done
2739 done
2740 ;;
2741 esac
2742
2743 done
2744 IFS=$as_save_IFS
2745
2746 rm -rf conftest.one conftest.two conftest.dir
2747
2748 fi
2749 if test "${ac_cv_path_install+set}" = set; then
2750 INSTALL=$ac_cv_path_install
2751 else
2752 # As a last resort, use the slow shell script. Don't cache a
2753 # value for INSTALL within a source directory, because that will
2754 # break other packages using the cache if that directory is
2755 # removed, or if the value is a relative name.
2756 INSTALL=$ac_install_sh
2757 fi
2758 fi
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2760 $as_echo "$INSTALL" >&6; }
2761
2762 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2763 # It thinks the first close brace ends the variable substitution.
2764 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2765
2766 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2767
2768 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2771 $as_echo_n "checking whether build environment is sane... " >&6; }
2772 # Just in case
2773 sleep 1
2774 echo timestamp > conftest.file
2775 # Reject unsafe characters in $srcdir or the absolute working directory
2776 # name. Accept space and tab only in the latter.
2777 am_lf='
2778 '
2779 case `pwd` in
2780 *[\\\"\#\$\&\'\`$am_lf]*)
2781 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2782 esac
2783 case $srcdir in
2784 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2785 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2786 esac
2787
2788 # Do `set' in a subshell so we don't clobber the current shell's
2789 # arguments. Must try -L first in case configure is actually a
2790 # symlink; some systems play weird games with the mod time of symlinks
2791 # (eg FreeBSD returns the mod time of the symlink's containing
2792 # directory).
2793 if (
2794 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2795 if test "$*" = "X"; then
2796 # -L didn't work.
2797 set X `ls -t "$srcdir/configure" conftest.file`
2798 fi
2799 rm -f conftest.file
2800 if test "$*" != "X $srcdir/configure conftest.file" \
2801 && test "$*" != "X conftest.file $srcdir/configure"; then
2802
2803 # If neither matched, then we have a broken ls. This can happen
2804 # if, for instance, CONFIG_SHELL is bash and it inherits a
2805 # broken ls alias from the environment. This has actually
2806 # happened. Such a system could not be considered "sane".
2807 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2808 alias in your environment" "$LINENO" 5
2809 fi
2810
2811 test "$2" = conftest.file
2812 )
2813 then
2814 # Ok.
2815 :
2816 else
2817 as_fn_error "newly created file is older than distributed files!
2818 Check your system clock" "$LINENO" 5
2819 fi
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2821 $as_echo "yes" >&6; }
2822 test "$program_prefix" != NONE &&
2823 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2824 # Use a double $ so make ignores it.
2825 test "$program_suffix" != NONE &&
2826 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2827 # Double any \ or $.
2828 # By default was `s,x,x', remove it if useless.
2829 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2830 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2831
2832 # expand $ac_aux_dir to an absolute path
2833 am_aux_dir=`cd $ac_aux_dir && pwd`
2834
2835 if test x"${MISSING+set}" != xset; then
2836 case $am_aux_dir in
2837 *\ * | *\ *)
2838 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2839 *)
2840 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2841 esac
2842 fi
2843 # Use eval to expand $SHELL
2844 if eval "$MISSING --run true"; then
2845 am_missing_run="$MISSING --run "
2846 else
2847 am_missing_run=
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2849 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2850 fi
2851
2852 if test x"${install_sh}" != xset; then
2853 case $am_aux_dir in
2854 *\ * | *\ *)
2855 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856 *)
2857 install_sh="\${SHELL} $am_aux_dir/install-sh"
2858 esac
2859 fi
2860
2861 # Installed binaries are usually stripped using `strip' when the user
2862 # run `make install-strip'. However `strip' might not be the right
2863 # tool to use in cross-compilation environments, therefore Automake
2864 # will honor the `STRIP' environment variable to overrule this program.
2865 if test "$cross_compiling" != no; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}strip; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if test "${ac_cv_prog_STRIP+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test -n "$STRIP"; then
2875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888 done
2889 done
2890 IFS=$as_save_IFS
2891
2892 fi
2893 fi
2894 STRIP=$ac_cv_prog_STRIP
2895 if test -n "$STRIP"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897 $as_echo "$STRIP" >&6; }
2898 else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901 fi
2902
2903
2904 fi
2905 if test -z "$ac_cv_prog_STRIP"; then
2906 ac_ct_STRIP=$STRIP
2907 # Extract the first word of "strip", so it can be a program name with args.
2908 set dummy strip; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$ac_ct_STRIP"; then
2915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_ac_ct_STRIP="strip"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2935 if test -n "$ac_ct_STRIP"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2937 $as_echo "$ac_ct_STRIP" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943 if test "x$ac_ct_STRIP" = x; then
2944 STRIP=":"
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947 yes:)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952 STRIP=$ac_ct_STRIP
2953 fi
2954 else
2955 STRIP="$ac_cv_prog_STRIP"
2956 fi
2957
2958 fi
2959 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2960
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2962 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2963 if test -z "$MKDIR_P"; then
2964 if test "${ac_cv_path_mkdir+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2969 do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_prog in mkdir gmkdir; do
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2975 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2976 'mkdir (GNU coreutils) '* | \
2977 'mkdir (coreutils) '* | \
2978 'mkdir (fileutils) '4.1*)
2979 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2980 break 3;;
2981 esac
2982 done
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988
2989 if test "${ac_cv_path_mkdir+set}" = set; then
2990 MKDIR_P="$ac_cv_path_mkdir -p"
2991 else
2992 # As a last resort, use the slow shell script. Don't cache a
2993 # value for MKDIR_P within a source directory, because that will
2994 # break other packages using the cache if that directory is
2995 # removed, or if the value is a relative name.
2996 test -d ./--version && rmdir ./--version
2997 MKDIR_P="$ac_install_sh -d"
2998 fi
2999 fi
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3001 $as_echo "$MKDIR_P" >&6; }
3002
3003 mkdir_p="$MKDIR_P"
3004 case $mkdir_p in
3005 [\\/$]* | ?:[\\/]*) ;;
3006 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3007 esac
3008
3009 for ac_prog in gawk mawk nawk awk
3010 do
3011 # Extract the first word of "$ac_prog", so it can be a program name with args.
3012 set dummy $ac_prog; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if test "${ac_cv_prog_AWK+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$AWK"; then
3019 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_AWK="$ac_prog"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 fi
3037 fi
3038 AWK=$ac_cv_prog_AWK
3039 if test -n "$AWK"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3041 $as_echo "$AWK" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047
3048 test -n "$AWK" && break
3049 done
3050
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3052 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3053 set x ${MAKE-make}
3054 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3055 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 cat >conftest.make <<\_ACEOF
3059 SHELL = /bin/sh
3060 all:
3061 @echo '@@@%%%=$(MAKE)=@@@%%%'
3062 _ACEOF
3063 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3064 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3065 *@@@%%%=?*=@@@%%%*)
3066 eval ac_cv_prog_make_${ac_make}_set=yes;;
3067 *)
3068 eval ac_cv_prog_make_${ac_make}_set=no;;
3069 esac
3070 rm -f conftest.make
3071 fi
3072 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 $as_echo "yes" >&6; }
3075 SET_MAKE=
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 SET_MAKE="MAKE=${MAKE-make}"
3080 fi
3081
3082 rm -rf .tst 2>/dev/null
3083 mkdir .tst 2>/dev/null
3084 if test -d .tst; then
3085 am__leading_dot=.
3086 else
3087 am__leading_dot=_
3088 fi
3089 rmdir .tst 2>/dev/null
3090
3091 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3092 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3093 # is not polluted with repeated "-I."
3094 am__isrc=' -I$(srcdir)'
3095 # test to see if srcdir already configured
3096 if test -f $srcdir/config.status; then
3097 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3098 fi
3099 fi
3100
3101 # test whether we have cygpath
3102 if test -z "$CYGPATH_W"; then
3103 if (cygpath --version) >/dev/null 2>/dev/null; then
3104 CYGPATH_W='cygpath -w'
3105 else
3106 CYGPATH_W=echo
3107 fi
3108 fi
3109
3110
3111 # Define the identity of the package.
3112 PACKAGE='libgo'
3113 VERSION='version-unused'
3114
3115
3116 # Some tools Automake needs.
3117
3118 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3119
3120
3121 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3122
3123
3124 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3125
3126
3127 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3128
3129
3130 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3131
3132 # We need awk for the "check" target. The system "awk" is bad on
3133 # some platforms.
3134 # Always define AMTAR for backward compatibility.
3135
3136 AMTAR=${AMTAR-"${am_missing_run}tar"}
3137
3138 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149 ac_ext=c
3150 ac_cpp='$CPP $CPPFLAGS'
3151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154 if test -n "$ac_tool_prefix"; then
3155 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3156 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_CC+set}" = set; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$CC"; then
3163 ac_cv_prog_CC="$CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3175 fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 CC=$ac_cv_prog_CC
3183 if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185 $as_echo "$CC" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191
3192 fi
3193 if test -z "$ac_cv_prog_CC"; then
3194 ac_ct_CC=$CC
3195 # Extract the first word of "gcc", so it can be a program name with args.
3196 set dummy gcc; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$ac_ct_CC"; then
3203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3207 do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_ac_ct_CC="gcc"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3215 fi
3216 done
3217 done
3218 IFS=$as_save_IFS
3219
3220 fi
3221 fi
3222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3223 if test -n "$ac_ct_CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3225 $as_echo "$ac_ct_CC" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3229 fi
3230
3231 if test "x$ac_ct_CC" = x; then
3232 CC=""
3233 else
3234 case $cross_compiling:$ac_tool_warned in
3235 yes:)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238 ac_tool_warned=yes ;;
3239 esac
3240 CC=$ac_ct_CC
3241 fi
3242 else
3243 CC="$ac_cv_prog_CC"
3244 fi
3245
3246 if test -z "$CC"; then
3247 if test -n "$ac_tool_prefix"; then
3248 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3249 set dummy ${ac_tool_prefix}cc; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if test "${ac_cv_prog_CC+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 if test -n "$CC"; then
3256 ac_cv_prog_CC="$CC" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261 IFS=$as_save_IFS
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265 ac_cv_prog_CC="${ac_tool_prefix}cc"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267 break 2
3268 fi
3269 done
3270 done
3271 IFS=$as_save_IFS
3272
3273 fi
3274 fi
3275 CC=$ac_cv_prog_CC
3276 if test -n "$CC"; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3278 $as_echo "$CC" >&6; }
3279 else
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 fi
3283
3284
3285 fi
3286 fi
3287 if test -z "$CC"; then
3288 # Extract the first word of "cc", so it can be a program name with args.
3289 set dummy cc; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if test "${ac_cv_prog_CC+set}" = set; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298 ac_prog_rejected=no
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 for as_dir in $PATH
3301 do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3307 ac_prog_rejected=yes
3308 continue
3309 fi
3310 ac_cv_prog_CC="cc"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3313 fi
3314 done
3315 done
3316 IFS=$as_save_IFS
3317
3318 if test $ac_prog_rejected = yes; then
3319 # We found a bogon in the path, so make sure we never use it.
3320 set dummy $ac_cv_prog_CC
3321 shift
3322 if test $# != 0; then
3323 # We chose a different compiler from the bogus one.
3324 # However, it has the same basename, so the bogon will be chosen
3325 # first if we set CC to just the basename; use the full file name.
3326 shift
3327 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3328 fi
3329 fi
3330 fi
3331 fi
3332 CC=$ac_cv_prog_CC
3333 if test -n "$CC"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3335 $as_echo "$CC" >&6; }
3336 else
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 fi
3340
3341
3342 fi
3343 if test -z "$CC"; then
3344 if test -n "$ac_tool_prefix"; then
3345 for ac_prog in cl.exe
3346 do
3347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if test "${ac_cv_prog_CC+set}" = set; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383
3384 test -n "$CC" && break
3385 done
3386 fi
3387 if test -z "$CC"; then
3388 ac_ct_CC=$CC
3389 for ac_prog in cl.exe
3390 do
3391 # Extract the first word of "$ac_prog", so it can be a program name with args.
3392 set dummy $ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 if test -n "$ac_ct_CC"; then
3399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3400 else
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 ac_cv_prog_ac_ct_CC="$ac_prog"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412 done
3413 done
3414 IFS=$as_save_IFS
3415
3416 fi
3417 fi
3418 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419 if test -n "$ac_ct_CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3421 $as_echo "$ac_ct_CC" >&6; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426
3427
3428 test -n "$ac_ct_CC" && break
3429 done
3430
3431 if test "x$ac_ct_CC" = x; then
3432 CC=""
3433 else
3434 case $cross_compiling:$ac_tool_warned in
3435 yes:)
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3438 ac_tool_warned=yes ;;
3439 esac
3440 CC=$ac_ct_CC
3441 fi
3442 fi
3443
3444 fi
3445
3446
3447 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error "no acceptable C compiler found in \$PATH
3450 See \`config.log' for more details." "$LINENO" 5; }
3451
3452 # Provide some information about the compiler.
3453 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3454 set X $ac_compile
3455 ac_compiler=$2
3456 for ac_option in --version -v -V -qversion; do
3457 { { ac_try="$ac_compiler $ac_option >&5"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3465 ac_status=$?
3466 if test -s conftest.err; then
3467 sed '10a\
3468 ... rest of stderr output deleted ...
3469 10q' conftest.err >conftest.er1
3470 cat conftest.er1 >&5
3471 rm -f conftest.er1 conftest.err
3472 fi
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }
3475 done
3476
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479
3480 int
3481 main ()
3482 {
3483
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 ac_clean_files_save=$ac_clean_files
3489 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3490 # Try to create an executable without -o first, disregard a.out.
3491 # It will help us diagnose broken compilers, and finding out an intuition
3492 # of exeext.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3494 $as_echo_n "checking for C compiler default output file name... " >&6; }
3495 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3496
3497 # The possible output files:
3498 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3499
3500 ac_rmfiles=
3501 for ac_file in $ac_files
3502 do
3503 case $ac_file in
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3506 esac
3507 done
3508 rm -f $ac_rmfiles
3509
3510 if { { ac_try="$ac_link_default"
3511 case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_link_default") 2>&5
3518 ac_status=$?
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }; then :
3521 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3522 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3523 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3524 # so that the user can short-circuit this test for compilers unknown to
3525 # Autoconf.
3526 for ac_file in $ac_files ''
3527 do
3528 test -f "$ac_file" || continue
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3531 ;;
3532 [ab].out )
3533 # We found the default executable, but exeext='' is most
3534 # certainly right.
3535 break;;
3536 *.* )
3537 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3538 then :; else
3539 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 fi
3541 # We set ac_cv_exeext here because the later test for it is not
3542 # safe: cross compilers may not add the suffix if given an `-o'
3543 # argument, so we may need to know it at that point already.
3544 # Even if this section looks crufty: it has the advantage of
3545 # actually working.
3546 break;;
3547 * )
3548 break;;
3549 esac
3550 done
3551 test "$ac_cv_exeext" = no && ac_cv_exeext=
3552
3553 else
3554 ac_file=''
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3557 $as_echo "$ac_file" >&6; }
3558 if test -z "$ac_file"; then :
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 { as_fn_set_status 77
3565 as_fn_error "C compiler cannot create executables
3566 See \`config.log' for more details." "$LINENO" 5; }; }
3567 fi
3568 ac_exeext=$ac_cv_exeext
3569
3570 # Check that the compiler produces executables we can run. If not, either
3571 # the compiler is broken, or we cross compile.
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3573 $as_echo_n "checking whether the C compiler works... " >&6; }
3574 # If not cross compiling, check that we can run a simple program.
3575 if test "$cross_compiling" != yes; then
3576 if { ac_try='./$ac_file'
3577 { { case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583 (eval "$ac_try") 2>&5
3584 ac_status=$?
3585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3586 test $ac_status = 0; }; }; then
3587 cross_compiling=no
3588 else
3589 if test "$cross_compiling" = maybe; then
3590 cross_compiling=yes
3591 else
3592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error "cannot run C compiled programs.
3595 If you meant to cross compile, use \`--host'.
3596 See \`config.log' for more details." "$LINENO" 5; }
3597 fi
3598 fi
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3601 $as_echo "yes" >&6; }
3602
3603 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3604 ac_clean_files=$ac_clean_files_save
3605 # Check that the compiler produces executables we can run. If not, either
3606 # the compiler is broken, or we cross compile.
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3608 $as_echo_n "checking whether we are cross compiling... " >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3610 $as_echo "$cross_compiling" >&6; }
3611
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3613 $as_echo_n "checking for suffix of executables... " >&6; }
3614 if { { ac_try="$ac_link"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621 (eval "$ac_link") 2>&5
3622 ac_status=$?
3623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624 test $ac_status = 0; }; then :
3625 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3626 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3627 # work properly (i.e., refer to `conftest.exe'), while it won't with
3628 # `rm'.
3629 for ac_file in conftest.exe conftest conftest.*; do
3630 test -f "$ac_file" || continue
3631 case $ac_file in
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3633 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3634 break;;
3635 * ) break;;
3636 esac
3637 done
3638 else
3639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error "cannot compute suffix of executables: cannot compile and link
3642 See \`config.log' for more details." "$LINENO" 5; }
3643 fi
3644 rm -f conftest$ac_cv_exeext
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3646 $as_echo "$ac_cv_exeext" >&6; }
3647
3648 rm -f conftest.$ac_ext
3649 EXEEXT=$ac_cv_exeext
3650 ac_exeext=$EXEEXT
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3652 $as_echo_n "checking for suffix of object files... " >&6; }
3653 if test "${ac_cv_objext+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 rm -f conftest.o conftest.obj
3668 if { { ac_try="$ac_compile"
3669 case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_compile") 2>&5
3676 ac_status=$?
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; then :
3679 for ac_file in conftest.o conftest.obj conftest.*; do
3680 test -f "$ac_file" || continue;
3681 case $ac_file in
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3684 break;;
3685 esac
3686 done
3687 else
3688 $as_echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error "cannot compute suffix of object files: cannot compile
3694 See \`config.log' for more details." "$LINENO" 5; }
3695 fi
3696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3699 $as_echo "$ac_cv_objext" >&6; }
3700 OBJEXT=$ac_cv_objext
3701 ac_objext=$OBJEXT
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3703 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3704 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 int
3711 main ()
3712 {
3713 #ifndef __GNUC__
3714 choke me
3715 #endif
3716
3717 ;
3718 return 0;
3719 }
3720 _ACEOF
3721 if ac_fn_c_try_compile "$LINENO"; then :
3722 ac_compiler_gnu=yes
3723 else
3724 ac_compiler_gnu=no
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3728
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3731 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3732 if test $ac_compiler_gnu = yes; then
3733 GCC=yes
3734 else
3735 GCC=
3736 fi
3737 ac_test_CFLAGS=${CFLAGS+set}
3738 ac_save_CFLAGS=$CFLAGS
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3740 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3741 if test "${ac_cv_prog_cc_g+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 ac_save_c_werror_flag=$ac_c_werror_flag
3745 ac_c_werror_flag=yes
3746 ac_cv_prog_cc_g=no
3747 CFLAGS="-g"
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3750
3751 int
3752 main ()
3753 {
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760 ac_cv_prog_cc_g=yes
3761 else
3762 CFLAGS=""
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765
3766 int
3767 main ()
3768 {
3769
3770 ;
3771 return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_compile "$LINENO"; then :
3775
3776 else
3777 ac_c_werror_flag=$ac_save_c_werror_flag
3778 CFLAGS="-g"
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791 ac_cv_prog_cc_g=yes
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 fi
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_c_werror_flag=$ac_save_c_werror_flag
3799 fi
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3801 $as_echo "$ac_cv_prog_cc_g" >&6; }
3802 if test "$ac_test_CFLAGS" = set; then
3803 CFLAGS=$ac_save_CFLAGS
3804 elif test $ac_cv_prog_cc_g = yes; then
3805 if test "$GCC" = yes; then
3806 CFLAGS="-g -O2"
3807 else
3808 CFLAGS="-g"
3809 fi
3810 else
3811 if test "$GCC" = yes; then
3812 CFLAGS="-O2"
3813 else
3814 CFLAGS=
3815 fi
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3818 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3819 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 ac_cv_prog_cc_c89=no
3823 ac_save_CC=$CC
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826 #include <stdarg.h>
3827 #include <stdio.h>
3828 #include <sys/types.h>
3829 #include <sys/stat.h>
3830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3831 struct buf { int x; };
3832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3833 static char *e (p, i)
3834 char **p;
3835 int i;
3836 {
3837 return p[i];
3838 }
3839 static char *f (char * (*g) (char **, int), char **p, ...)
3840 {
3841 char *s;
3842 va_list v;
3843 va_start (v,p);
3844 s = g (p, va_arg (v,int));
3845 va_end (v);
3846 return s;
3847 }
3848
3849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3850 function prototypes and stuff, but not '\xHH' hex character constants.
3851 These don't provoke an error unfortunately, instead are silently treated
3852 as 'x'. The following induces an error, until -std is added to get
3853 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3854 array size at least. It's necessary to write '\x00'==0 to get something
3855 that's true only with -std. */
3856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3857
3858 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3859 inside strings and character constants. */
3860 #define FOO(x) 'x'
3861 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3862
3863 int test (int i, double x);
3864 struct s1 {int (*f) (int a);};
3865 struct s2 {int (*f) (double a);};
3866 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3867 int argc;
3868 char **argv;
3869 int
3870 main ()
3871 {
3872 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3878 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3879 do
3880 CC="$ac_save_CC $ac_arg"
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_cv_prog_cc_c89=$ac_arg
3883 fi
3884 rm -f core conftest.err conftest.$ac_objext
3885 test "x$ac_cv_prog_cc_c89" != "xno" && break
3886 done
3887 rm -f conftest.$ac_ext
3888 CC=$ac_save_CC
3889
3890 fi
3891 # AC_CACHE_VAL
3892 case "x$ac_cv_prog_cc_c89" in
3893 x)
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3896 xno)
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3899 *)
3900 CC="$CC $ac_cv_prog_cc_c89"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3902 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3903 esac
3904 if test "x$ac_cv_prog_cc_c89" != xno; then :
3905
3906 fi
3907
3908 ac_ext=c
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 DEPDIR="${am__leading_dot}deps"
3914
3915 ac_config_commands="$ac_config_commands depfiles"
3916
3917
3918 am_make=${MAKE-make}
3919 cat > confinc << 'END'
3920 am__doit:
3921 @echo this is the am__doit target
3922 .PHONY: am__doit
3923 END
3924 # If we don't find an include directive, just comment out the code.
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3926 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3927 am__include="#"
3928 am__quote=
3929 _am_result=none
3930 # First try GNU make style include.
3931 echo "include confinc" > confmf
3932 # Ignore all kinds of additional output from `make'.
3933 case `$am_make -s -f confmf 2> /dev/null` in #(
3934 *the\ am__doit\ target*)
3935 am__include=include
3936 am__quote=
3937 _am_result=GNU
3938 ;;
3939 esac
3940 # Now try BSD make style include.
3941 if test "$am__include" = "#"; then
3942 echo '.include "confinc"' > confmf
3943 case `$am_make -s -f confmf 2> /dev/null` in #(
3944 *the\ am__doit\ target*)
3945 am__include=.include
3946 am__quote="\""
3947 _am_result=BSD
3948 ;;
3949 esac
3950 fi
3951
3952
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3954 $as_echo "$_am_result" >&6; }
3955 rm -f confinc confmf
3956
3957 # Check whether --enable-dependency-tracking was given.
3958 if test "${enable_dependency_tracking+set}" = set; then :
3959 enableval=$enable_dependency_tracking;
3960 fi
3961
3962 if test "x$enable_dependency_tracking" != xno; then
3963 am_depcomp="$ac_aux_dir/depcomp"
3964 AMDEPBACKSLASH='\'
3965 fi
3966 if test "x$enable_dependency_tracking" != xno; then
3967 AMDEP_TRUE=
3968 AMDEP_FALSE='#'
3969 else
3970 AMDEP_TRUE='#'
3971 AMDEP_FALSE=
3972 fi
3973
3974
3975
3976 depcc="$CC" am_compiler_list=
3977
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3979 $as_echo_n "checking dependency style of $depcc... " >&6; }
3980 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3984 # We make a subdir and do the tests there. Otherwise we can end up
3985 # making bogus files that we don't know about and never remove. For
3986 # instance it was reported that on HP-UX the gcc test will end up
3987 # making a dummy file named `D' -- because `-MD' means `put the output
3988 # in D'.
3989 mkdir conftest.dir
3990 # Copy depcomp to subdir because otherwise we won't find it if we're
3991 # using a relative directory.
3992 cp "$am_depcomp" conftest.dir
3993 cd conftest.dir
3994 # We will build objects and dependencies in a subdirectory because
3995 # it helps to detect inapplicable dependency modes. For instance
3996 # both Tru64's cc and ICC support -MD to output dependencies as a
3997 # side effect of compilation, but ICC will put the dependencies in
3998 # the current directory while Tru64 will put them in the object
3999 # directory.
4000 mkdir sub
4001
4002 am_cv_CC_dependencies_compiler_type=none
4003 if test "$am_compiler_list" = ""; then
4004 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4005 fi
4006 am__universal=false
4007 case " $depcc " in #(
4008 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4009 esac
4010
4011 for depmode in $am_compiler_list; do
4012 # Setup a source with many dependencies, because some compilers
4013 # like to wrap large dependency lists on column 80 (with \), and
4014 # we should not choose a depcomp mode which is confused by this.
4015 #
4016 # We need to recreate these files for each test, as the compiler may
4017 # overwrite some of them when testing with obscure command lines.
4018 # This happens at least with the AIX C compiler.
4019 : > sub/conftest.c
4020 for i in 1 2 3 4 5 6; do
4021 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4022 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4023 # Solaris 8's {/usr,}/bin/sh.
4024 touch sub/conftst$i.h
4025 done
4026 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4027
4028 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4029 # mode. It turns out that the SunPro C++ compiler does not properly
4030 # handle `-M -o', and we need to detect this. Also, some Intel
4031 # versions had trouble with output in subdirs
4032 am__obj=sub/conftest.${OBJEXT-o}
4033 am__minus_obj="-o $am__obj"
4034 case $depmode in
4035 gcc)
4036 # This depmode causes a compiler race in universal mode.
4037 test "$am__universal" = false || continue
4038 ;;
4039 nosideeffect)
4040 # after this tag, mechanisms are not by side-effect, so they'll
4041 # only be used when explicitly requested
4042 if test "x$enable_dependency_tracking" = xyes; then
4043 continue
4044 else
4045 break
4046 fi
4047 ;;
4048 msvisualcpp | msvcmsys)
4049 # This compiler won't grok `-c -o', but also, the minuso test has
4050 # not run yet. These depmodes are late enough in the game, and
4051 # so weak that their functioning should not be impacted.
4052 am__obj=conftest.${OBJEXT-o}
4053 am__minus_obj=
4054 ;;
4055 none) break ;;
4056 esac
4057 if depmode=$depmode \
4058 source=sub/conftest.c object=$am__obj \
4059 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4060 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4061 >/dev/null 2>conftest.err &&
4062 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4064 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4066 # icc doesn't choke on unknown options, it will just issue warnings
4067 # or remarks (even with -Werror). So we grep stderr for any message
4068 # that says an option was ignored or not supported.
4069 # When given -MP, icc 7.0 and 7.1 complain thusly:
4070 # icc: Command line warning: ignoring option '-M'; no argument required
4071 # The diagnosis changed in icc 8.0:
4072 # icc: Command line remark: option '-MP' not supported
4073 if (grep 'ignoring option' conftest.err ||
4074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4075 am_cv_CC_dependencies_compiler_type=$depmode
4076 break
4077 fi
4078 fi
4079 done
4080
4081 cd ..
4082 rm -rf conftest.dir
4083 else
4084 am_cv_CC_dependencies_compiler_type=none
4085 fi
4086
4087 fi
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4089 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4091
4092 if
4093 test "x$enable_dependency_tracking" != xno \
4094 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4095 am__fastdepCC_TRUE=
4096 am__fastdepCC_FALSE='#'
4097 else
4098 am__fastdepCC_TRUE='#'
4099 am__fastdepCC_FALSE=
4100 fi
4101
4102
4103 ac_ext=go
4104 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4105 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compile_gnu=yes
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if test "${ac_cv_prog_GOC+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 if test -n "$GOC"; then
4116 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4120 do
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4128 fi
4129 done
4130 done
4131 IFS=$as_save_IFS
4132
4133 fi
4134 fi
4135 GOC=$ac_cv_prog_GOC
4136 if test -n "$GOC"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4138 $as_echo "$GOC" >&6; }
4139 else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4142 fi
4143
4144
4145 fi
4146 if test -z "$ac_cv_prog_GOC"; then
4147 ac_ct_GOC=$GOC
4148 # Extract the first word of "gccgo", so it can be a program name with args.
4149 set dummy gccgo; ac_word=$2
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4151 $as_echo_n "checking for $ac_word... " >&6; }
4152 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4153 $as_echo_n "(cached) " >&6
4154 else
4155 if test -n "$ac_ct_GOC"; then
4156 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_ac_ct_GOC="gccgo"
4166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169 done
4170 done
4171 IFS=$as_save_IFS
4172
4173 fi
4174 fi
4175 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4176 if test -n "$ac_ct_GOC"; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4178 $as_echo "$ac_ct_GOC" >&6; }
4179 else
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182 fi
4183
4184 if test "x$ac_ct_GOC" = x; then
4185 GOC=""
4186 else
4187 case $cross_compiling:$ac_tool_warned in
4188 yes:)
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4191 ac_tool_warned=yes ;;
4192 esac
4193 GOC=$ac_ct_GOC
4194 fi
4195 else
4196 GOC="$ac_cv_prog_GOC"
4197 fi
4198
4199 if test -z "$GOC"; then
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4202 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if test "${ac_cv_prog_GOC+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -n "$GOC"; then
4209 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4221 fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226 fi
4227 fi
4228 GOC=$ac_cv_prog_GOC
4229 if test -n "$GOC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4231 $as_echo "$GOC" >&6; }
4232 else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4235 fi
4236
4237
4238 fi
4239 fi
4240 if test -z "$GOC"; then
4241 # Extract the first word of "gccgo", so it can be a program name with args.
4242 set dummy gccgo; ac_word=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if test "${ac_cv_prog_GOC+set}" = set; then :
4246 $as_echo_n "(cached) " >&6
4247 else
4248 if test -n "$GOC"; then
4249 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4250 else
4251 ac_prog_rejected=no
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4260 ac_prog_rejected=yes
4261 continue
4262 fi
4263 ac_cv_prog_GOC="gccgo"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4266 fi
4267 done
4268 done
4269 IFS=$as_save_IFS
4270
4271 if test $ac_prog_rejected = yes; then
4272 # We found a bogon in the path, so make sure we never use it.
4273 set dummy $ac_cv_prog_GOC
4274 shift
4275 if test $# != 0; then
4276 # We chose a different compiler from the bogus one.
4277 # However, it has the same basename, so the bogon will be chosen
4278 # first if we set GOC to just the basename; use the full file name.
4279 shift
4280 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4281 fi
4282 fi
4283 fi
4284 fi
4285 GOC=$ac_cv_prog_GOC
4286 if test -n "$GOC"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4288 $as_echo "$GOC" >&6; }
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4292 fi
4293
4294
4295 fi
4296
4297
4298 # Provide some information about the compiler.
4299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4300 set X $ac_compile
4301 ac_compiler=$2
4302 { { ac_try="$ac_compiler --version >&5"
4303 case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4308 $as_echo "$ac_try_echo"; } >&5
4309 (eval "$ac_compiler --version >&5") 2>conftest.err
4310 ac_status=$?
4311 if test -s conftest.err; then
4312 sed '10a\
4313 ... rest of stderr output deleted ...
4314 10q' conftest.err >conftest.er1
4315 cat conftest.er1 >&5
4316 rm -f conftest.er1 conftest.err
4317 fi
4318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4319 test $ac_status = 0; }
4320 GOCFLAGS="-g -O2"
4321 ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327
4328
4329
4330
4331
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4333 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4334 # Check whether --enable-maintainer-mode was given.
4335 if test "${enable_maintainer_mode+set}" = set; then :
4336 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4337 else
4338 USE_MAINTAINER_MODE=no
4339 fi
4340
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4342 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4343 if test $USE_MAINTAINER_MODE = yes; then
4344 MAINTAINER_MODE_TRUE=
4345 MAINTAINER_MODE_FALSE='#'
4346 else
4347 MAINTAINER_MODE_TRUE='#'
4348 MAINTAINER_MODE_FALSE=
4349 fi
4350
4351 MAINT=$MAINTAINER_MODE_TRUE
4352
4353
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4356 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4357 if test "${ac_cv_path_SED+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4361 for ac_i in 1 2 3 4 5 6 7; do
4362 ac_script="$ac_script$as_nl$ac_script"
4363 done
4364 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4365 { ac_script=; unset ac_script;}
4366 if test -z "$SED"; then
4367 ac_path_SED_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in sed gsed; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4377 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4378 # Check for GNU ac_path_SED and select it if it is found.
4379 # Check for GNU $ac_path_SED
4380 case `"$ac_path_SED" --version 2>&1` in
4381 *GNU*)
4382 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4383 *)
4384 ac_count=0
4385 $as_echo_n 0123456789 >"conftest.in"
4386 while :
4387 do
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo '' >> "conftest.nl"
4392 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 as_fn_arith $ac_count + 1 && ac_count=$as_val
4395 if test $ac_count -gt ${ac_path_SED_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_SED="$ac_path_SED"
4398 ac_path_SED_max=$ac_count
4399 fi
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4405
4406 $ac_path_SED_found && break 3
4407 done
4408 done
4409 done
4410 IFS=$as_save_IFS
4411 if test -z "$ac_cv_path_SED"; then
4412 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4413 fi
4414 else
4415 ac_cv_path_SED=$SED
4416 fi
4417
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4420 $as_echo "$ac_cv_path_SED" >&6; }
4421 SED="$ac_cv_path_SED"
4422 rm -f conftest.sed
4423
4424 test -z "$SED" && SED=sed
4425 Xsed="$SED -e 1s/^X//"
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4438 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4439 if test "${ac_cv_path_GREP+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -z "$GREP"; then
4443 ac_path_GREP_found=false
4444 # Loop through the user's path and test for each of PROGNAME-LIST
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4447 do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_prog in grep ggrep; do
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4453 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4454 # Check for GNU ac_path_GREP and select it if it is found.
4455 # Check for GNU $ac_path_GREP
4456 case `"$ac_path_GREP" --version 2>&1` in
4457 *GNU*)
4458 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4459 *)
4460 ac_count=0
4461 $as_echo_n 0123456789 >"conftest.in"
4462 while :
4463 do
4464 cat "conftest.in" "conftest.in" >"conftest.tmp"
4465 mv "conftest.tmp" "conftest.in"
4466 cp "conftest.in" "conftest.nl"
4467 $as_echo 'GREP' >> "conftest.nl"
4468 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4469 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4470 as_fn_arith $ac_count + 1 && ac_count=$as_val
4471 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4472 # Best one so far, save it but keep looking for a better one
4473 ac_cv_path_GREP="$ac_path_GREP"
4474 ac_path_GREP_max=$ac_count
4475 fi
4476 # 10*(2^10) chars as input seems more than enough
4477 test $ac_count -gt 10 && break
4478 done
4479 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4480 esac
4481
4482 $ac_path_GREP_found && break 3
4483 done
4484 done
4485 done
4486 IFS=$as_save_IFS
4487 if test -z "$ac_cv_path_GREP"; then
4488 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4489 fi
4490 else
4491 ac_cv_path_GREP=$GREP
4492 fi
4493
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4496 $as_echo "$ac_cv_path_GREP" >&6; }
4497 GREP="$ac_cv_path_GREP"
4498
4499
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4501 $as_echo_n "checking for egrep... " >&6; }
4502 if test "${ac_cv_path_EGREP+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4506 then ac_cv_path_EGREP="$GREP -E"
4507 else
4508 if test -z "$EGREP"; then
4509 ac_path_EGREP_found=false
4510 # Loop through the user's path and test for each of PROGNAME-LIST
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513 do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_prog in egrep; do
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4519 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4520 # Check for GNU ac_path_EGREP and select it if it is found.
4521 # Check for GNU $ac_path_EGREP
4522 case `"$ac_path_EGREP" --version 2>&1` in
4523 *GNU*)
4524 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4525 *)
4526 ac_count=0
4527 $as_echo_n 0123456789 >"conftest.in"
4528 while :
4529 do
4530 cat "conftest.in" "conftest.in" >"conftest.tmp"
4531 mv "conftest.tmp" "conftest.in"
4532 cp "conftest.in" "conftest.nl"
4533 $as_echo 'EGREP' >> "conftest.nl"
4534 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4536 as_fn_arith $ac_count + 1 && ac_count=$as_val
4537 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4538 # Best one so far, save it but keep looking for a better one
4539 ac_cv_path_EGREP="$ac_path_EGREP"
4540 ac_path_EGREP_max=$ac_count
4541 fi
4542 # 10*(2^10) chars as input seems more than enough
4543 test $ac_count -gt 10 && break
4544 done
4545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4546 esac
4547
4548 $ac_path_EGREP_found && break 3
4549 done
4550 done
4551 done
4552 IFS=$as_save_IFS
4553 if test -z "$ac_cv_path_EGREP"; then
4554 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4555 fi
4556 else
4557 ac_cv_path_EGREP=$EGREP
4558 fi
4559
4560 fi
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4563 $as_echo "$ac_cv_path_EGREP" >&6; }
4564 EGREP="$ac_cv_path_EGREP"
4565
4566
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4568 $as_echo_n "checking for fgrep... " >&6; }
4569 if test "${ac_cv_path_FGREP+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4573 then ac_cv_path_FGREP="$GREP -F"
4574 else
4575 if test -z "$FGREP"; then
4576 ac_path_FGREP_found=false
4577 # Loop through the user's path and test for each of PROGNAME-LIST
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_prog in fgrep; do
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4586 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4587 # Check for GNU ac_path_FGREP and select it if it is found.
4588 # Check for GNU $ac_path_FGREP
4589 case `"$ac_path_FGREP" --version 2>&1` in
4590 *GNU*)
4591 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4592 *)
4593 ac_count=0
4594 $as_echo_n 0123456789 >"conftest.in"
4595 while :
4596 do
4597 cat "conftest.in" "conftest.in" >"conftest.tmp"
4598 mv "conftest.tmp" "conftest.in"
4599 cp "conftest.in" "conftest.nl"
4600 $as_echo 'FGREP' >> "conftest.nl"
4601 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4602 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4603 as_fn_arith $ac_count + 1 && ac_count=$as_val
4604 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4605 # Best one so far, save it but keep looking for a better one
4606 ac_cv_path_FGREP="$ac_path_FGREP"
4607 ac_path_FGREP_max=$ac_count
4608 fi
4609 # 10*(2^10) chars as input seems more than enough
4610 test $ac_count -gt 10 && break
4611 done
4612 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 esac
4614
4615 $ac_path_FGREP_found && break 3
4616 done
4617 done
4618 done
4619 IFS=$as_save_IFS
4620 if test -z "$ac_cv_path_FGREP"; then
4621 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4622 fi
4623 else
4624 ac_cv_path_FGREP=$FGREP
4625 fi
4626
4627 fi
4628 fi
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4630 $as_echo "$ac_cv_path_FGREP" >&6; }
4631 FGREP="$ac_cv_path_FGREP"
4632
4633
4634 test -z "$GREP" && GREP=grep
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4653 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4654 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4655
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4657 $as_echo_n "checking how to print strings... " >&6; }
4658 # Test print first, because it will be a builtin if present.
4659 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4660 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4661 ECHO='print -r --'
4662 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4663 ECHO='printf %s\n'
4664 else
4665 # Use this function as a fallback that always works.
4666 func_fallback_echo ()
4667 {
4668 eval 'cat <<_LTECHO_EOF
4669 $1
4670 _LTECHO_EOF'
4671 }
4672 ECHO='func_fallback_echo'
4673 fi
4674
4675 # func_echo_all arg...
4676 # Invoke $ECHO with all args, space-separated.
4677 func_echo_all ()
4678 {
4679 $ECHO ""
4680 }
4681
4682 case "$ECHO" in
4683 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4684 $as_echo "printf" >&6; } ;;
4685 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4686 $as_echo "print -r" >&6; } ;;
4687 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4688 $as_echo "cat" >&6; } ;;
4689 esac
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706 # Check whether --with-gnu-ld was given.
4707 if test "${with_gnu_ld+set}" = set; then :
4708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4709 else
4710 with_gnu_ld=no
4711 fi
4712
4713 ac_prog=ld
4714 if test "$GCC" = yes; then
4715 # Check if gcc -print-prog-name=ld gives a path.
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4717 $as_echo_n "checking for ld used by $CC... " >&6; }
4718 case $host in
4719 *-*-mingw*)
4720 # gcc leaves a trailing carriage return which upsets mingw
4721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4722 *)
4723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4724 esac
4725 case $ac_prog in
4726 # Accept absolute paths.
4727 [\\/]* | ?:[\\/]*)
4728 re_direlt='/[^/][^/]*/\.\./'
4729 # Canonicalize the pathname of ld
4730 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4731 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4732 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4733 done
4734 test -z "$LD" && LD="$ac_prog"
4735 ;;
4736 "")
4737 # If it fails, then pretend we aren't using GCC.
4738 ac_prog=ld
4739 ;;
4740 *)
4741 # If it is relative, then search for the first ld in PATH.
4742 with_gnu_ld=unknown
4743 ;;
4744 esac
4745 elif test "$with_gnu_ld" = yes; then
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4747 $as_echo_n "checking for GNU ld... " >&6; }
4748 else
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4750 $as_echo_n "checking for non-GNU ld... " >&6; }
4751 fi
4752 if test "${lt_cv_path_LD+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 if test -z "$LD"; then
4756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4757 for ac_dir in $PATH; do
4758 IFS="$lt_save_ifs"
4759 test -z "$ac_dir" && ac_dir=.
4760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4761 lt_cv_path_LD="$ac_dir/$ac_prog"
4762 # Check to see if the program is GNU ld. I'd rather use --version,
4763 # but apparently some variants of GNU ld only accept -v.
4764 # Break only if it was the GNU/non-GNU ld that we prefer.
4765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4766 *GNU* | *'with BFD'*)
4767 test "$with_gnu_ld" != no && break
4768 ;;
4769 *)
4770 test "$with_gnu_ld" != yes && break
4771 ;;
4772 esac
4773 fi
4774 done
4775 IFS="$lt_save_ifs"
4776 else
4777 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4778 fi
4779 fi
4780
4781 LD="$lt_cv_path_LD"
4782 if test -n "$LD"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4784 $as_echo "$LD" >&6; }
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4788 fi
4789 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4791 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4792 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
4794 else
4795 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4796 case `$LD -v 2>&1 </dev/null` in
4797 *GNU* | *'with BFD'*)
4798 lt_cv_prog_gnu_ld=yes
4799 ;;
4800 *)
4801 lt_cv_prog_gnu_ld=no
4802 ;;
4803 esac
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4806 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4807 with_gnu_ld=$lt_cv_prog_gnu_ld
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817 if test -n "$ac_tool_prefix"; then
4818 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 $as_echo_n "checking for $ac_word... " >&6; }
4822 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -n "$RANLIB"; then
4826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 RANLIB=$ac_cv_prog_RANLIB
4846 if test -n "$RANLIB"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4848 $as_echo "$RANLIB" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_prog_RANLIB"; then
4857 ac_ct_RANLIB=$RANLIB
4858 # Extract the first word of "ranlib", so it can be a program name with args.
4859 set dummy ranlib; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$ac_ct_RANLIB"; then
4866 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_ac_ct_RANLIB="ranlib"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi
4884 fi
4885 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4886 if test -n "$ac_ct_RANLIB"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4888 $as_echo "$ac_ct_RANLIB" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4892 fi
4893
4894 if test "x$ac_ct_RANLIB" = x; then
4895 RANLIB=":"
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903 RANLIB=$ac_ct_RANLIB
4904 fi
4905 else
4906 RANLIB="$ac_cv_prog_RANLIB"
4907 fi
4908
4909 if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$OBJCOPY"; then
4918 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4930 fi
4931 done
4932 done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 OBJCOPY=$ac_cv_prog_OBJCOPY
4938 if test -n "$OBJCOPY"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4940 $as_echo "$OBJCOPY" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 fi
4948 if test -z "$ac_cv_prog_OBJCOPY"; then
4949 ac_ct_OBJCOPY=$OBJCOPY
4950 # Extract the first word of "objcopy", so it can be a program name with args.
4951 set dummy objcopy; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$ac_ct_OBJCOPY"; then
4958 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4970 fi
4971 done
4972 done
4973 IFS=$as_save_IFS
4974
4975 fi
4976 fi
4977 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4978 if test -n "$ac_ct_OBJCOPY"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4980 $as_echo "$ac_ct_OBJCOPY" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986 if test "x$ac_ct_OBJCOPY" = x; then
4987 OBJCOPY="missing-objcopy"
4988 else
4989 case $cross_compiling:$ac_tool_warned in
4990 yes:)
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993 ac_tool_warned=yes ;;
4994 esac
4995 OBJCOPY=$ac_ct_OBJCOPY
4996 fi
4997 else
4998 OBJCOPY="$ac_cv_prog_OBJCOPY"
4999 fi
5000
5001
5002 enable_dlopen=yes
5003
5004
5005
5006 case `pwd` in
5007 *\ * | *\ *)
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5009 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5010 esac
5011
5012
5013
5014 macro_version='2.2.7a'
5015 macro_revision='1.3134'
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029 ltmain="$ac_aux_dir/ltmain.sh"
5030
5031 # Backslashify metacharacters that are still active within
5032 # double-quoted strings.
5033 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5034
5035 # Same as above, but do not quote variable references.
5036 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5037
5038 # Sed substitution to delay expansion of an escaped shell variable in a
5039 # double_quote_subst'ed string.
5040 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5041
5042 # Sed substitution to delay expansion of an escaped single quote.
5043 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5044
5045 # Sed substitution to avoid accidental globbing in evaled expressions
5046 no_glob_subst='s/\*/\\\*/g'
5047
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5049 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5050 if test "${lt_cv_path_NM+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$NM"; then
5054 # Let the user override the test.
5055 lt_cv_path_NM="$NM"
5056 else
5057 lt_nm_to_check="${ac_tool_prefix}nm"
5058 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5059 lt_nm_to_check="$lt_nm_to_check nm"
5060 fi
5061 for lt_tmp_nm in $lt_nm_to_check; do
5062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5063 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5064 IFS="$lt_save_ifs"
5065 test -z "$ac_dir" && ac_dir=.
5066 tmp_nm="$ac_dir/$lt_tmp_nm"
5067 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5068 # Check to see if the nm accepts a BSD-compat flag.
5069 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5070 # nm: unknown option "B" ignored
5071 # Tru64's nm complains that /dev/null is an invalid object file
5072 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5073 */dev/null* | *'Invalid file or object type'*)
5074 lt_cv_path_NM="$tmp_nm -B"
5075 break
5076 ;;
5077 *)
5078 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5079 */dev/null*)
5080 lt_cv_path_NM="$tmp_nm -p"
5081 break
5082 ;;
5083 *)
5084 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5085 continue # so that we can try to find one that supports BSD flags
5086 ;;
5087 esac
5088 ;;
5089 esac
5090 fi
5091 done
5092 IFS="$lt_save_ifs"
5093 done
5094 : ${lt_cv_path_NM=no}
5095 fi
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5098 $as_echo "$lt_cv_path_NM" >&6; }
5099 if test "$lt_cv_path_NM" != "no"; then
5100 NM="$lt_cv_path_NM"
5101 else
5102 # Didn't find any BSD compatible name lister, look for dumpbin.
5103 if test -n "$DUMPBIN"; then :
5104 # Let the user override the test.
5105 else
5106 if test -n "$ac_tool_prefix"; then
5107 for ac_prog in dumpbin "link -dump"
5108 do
5109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 $as_echo_n "checking for $ac_word... " >&6; }
5113 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -n "$DUMPBIN"; then
5117 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5118 else
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH
5121 do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130 done
5131 done
5132 IFS=$as_save_IFS
5133
5134 fi
5135 fi
5136 DUMPBIN=$ac_cv_prog_DUMPBIN
5137 if test -n "$DUMPBIN"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5139 $as_echo "$DUMPBIN" >&6; }
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5143 fi
5144
5145
5146 test -n "$DUMPBIN" && break
5147 done
5148 fi
5149 if test -z "$DUMPBIN"; then
5150 ac_ct_DUMPBIN=$DUMPBIN
5151 for ac_prog in dumpbin "link -dump"
5152 do
5153 # Extract the first word of "$ac_prog", so it can be a program name with args.
5154 set dummy $ac_prog; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 if test -n "$ac_ct_DUMPBIN"; then
5161 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5181 if test -n "$ac_ct_DUMPBIN"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5183 $as_echo "$ac_ct_DUMPBIN" >&6; }
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188
5189
5190 test -n "$ac_ct_DUMPBIN" && break
5191 done
5192
5193 if test "x$ac_ct_DUMPBIN" = x; then
5194 DUMPBIN=":"
5195 else
5196 case $cross_compiling:$ac_tool_warned in
5197 yes:)
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5200 ac_tool_warned=yes ;;
5201 esac
5202 DUMPBIN=$ac_ct_DUMPBIN
5203 fi
5204 fi
5205
5206 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5207 *COFF*)
5208 DUMPBIN="$DUMPBIN -symbols"
5209 ;;
5210 *)
5211 DUMPBIN=:
5212 ;;
5213 esac
5214 fi
5215
5216 if test "$DUMPBIN" != ":"; then
5217 NM="$DUMPBIN"
5218 fi
5219 fi
5220 test -z "$NM" && NM=nm
5221
5222
5223
5224
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5228 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5229 if test "${lt_cv_nm_interface+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 lt_cv_nm_interface="BSD nm"
5233 echo "int some_variable = 0;" > conftest.$ac_ext
5234 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5235 (eval "$ac_compile" 2>conftest.err)
5236 cat conftest.err >&5
5237 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5238 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5239 cat conftest.err >&5
5240 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5241 cat conftest.out >&5
5242 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5243 lt_cv_nm_interface="MS dumpbin"
5244 fi
5245 rm -f conftest*
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5248 $as_echo "$lt_cv_nm_interface" >&6; }
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5251 $as_echo_n "checking whether ln -s works... " >&6; }
5252 LN_S=$as_ln_s
5253 if test "$LN_S" = "ln -s"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5255 $as_echo "yes" >&6; }
5256 else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5258 $as_echo "no, using $LN_S" >&6; }
5259 fi
5260
5261 # find the maximum length of command line arguments
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5263 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5264 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 i=0
5268 teststring="ABCD"
5269
5270 case $build_os in
5271 msdosdjgpp*)
5272 # On DJGPP, this test can blow up pretty badly due to problems in libc
5273 # (any single argument exceeding 2000 bytes causes a buffer overrun
5274 # during glob expansion). Even if it were fixed, the result of this
5275 # check would be larger than it should be.
5276 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5277 ;;
5278
5279 gnu*)
5280 # Under GNU Hurd, this test is not required because there is
5281 # no limit to the length of command line arguments.
5282 # Libtool will interpret -1 as no limit whatsoever
5283 lt_cv_sys_max_cmd_len=-1;
5284 ;;
5285
5286 cygwin* | mingw* | cegcc*)
5287 # On Win9x/ME, this test blows up -- it succeeds, but takes
5288 # about 5 minutes as the teststring grows exponentially.
5289 # Worse, since 9x/ME are not pre-emptively multitasking,
5290 # you end up with a "frozen" computer, even though with patience
5291 # the test eventually succeeds (with a max line length of 256k).
5292 # Instead, let's just punt: use the minimum linelength reported by
5293 # all of the supported platforms: 8192 (on NT/2K/XP).
5294 lt_cv_sys_max_cmd_len=8192;
5295 ;;
5296
5297 mint*)
5298 # On MiNT this can take a long time and run out of memory.
5299 lt_cv_sys_max_cmd_len=8192;
5300 ;;
5301
5302 amigaos*)
5303 # On AmigaOS with pdksh, this test takes hours, literally.
5304 # So we just punt and use a minimum line length of 8192.
5305 lt_cv_sys_max_cmd_len=8192;
5306 ;;
5307
5308 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5309 # This has been around since 386BSD, at least. Likely further.
5310 if test -x /sbin/sysctl; then
5311 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5312 elif test -x /usr/sbin/sysctl; then
5313 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5314 else
5315 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5316 fi
5317 # And add a safety zone
5318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5320 ;;
5321
5322 interix*)
5323 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5324 lt_cv_sys_max_cmd_len=196608
5325 ;;
5326
5327 osf*)
5328 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5329 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5330 # nice to cause kernel panics so lets avoid the loop below.
5331 # First set a reasonable default.
5332 lt_cv_sys_max_cmd_len=16384
5333 #
5334 if test -x /sbin/sysconfig; then
5335 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5336 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5337 esac
5338 fi
5339 ;;
5340 sco3.2v5*)
5341 lt_cv_sys_max_cmd_len=102400
5342 ;;
5343 sysv5* | sco5v6* | sysv4.2uw2*)
5344 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5345 if test -n "$kargmax"; then
5346 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5347 else
5348 lt_cv_sys_max_cmd_len=32768
5349 fi
5350 ;;
5351 *)
5352 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5353 if test -n "$lt_cv_sys_max_cmd_len"; then
5354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5356 else
5357 # Make teststring a little bigger before we do anything with it.
5358 # a 1K string should be a reasonable start.
5359 for i in 1 2 3 4 5 6 7 8 ; do
5360 teststring=$teststring$teststring
5361 done
5362 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5363 # If test is not a shell built-in, we'll probably end up computing a
5364 # maximum length that is only half of the actual maximum length, but
5365 # we can't tell.
5366 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5367 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5368 test $i != 17 # 1/2 MB should be enough
5369 do
5370 i=`expr $i + 1`
5371 teststring=$teststring$teststring
5372 done
5373 # Only check the string length outside the loop.
5374 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5375 teststring=
5376 # Add a significant safety factor because C++ compilers can tack on
5377 # massive amounts of additional arguments before passing them to the
5378 # linker. It appears as though 1/2 is a usable value.
5379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5380 fi
5381 ;;
5382 esac
5383
5384 fi
5385
5386 if test -n $lt_cv_sys_max_cmd_len ; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5388 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5389 else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5391 $as_echo "none" >&6; }
5392 fi
5393 max_cmd_len=$lt_cv_sys_max_cmd_len
5394
5395
5396
5397
5398
5399
5400 : ${CP="cp -f"}
5401 : ${MV="mv -f"}
5402 : ${RM="rm -f"}
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5405 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5406 # Try some XSI features
5407 xsi_shell=no
5408 ( _lt_dummy="a/b/c"
5409 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5410 = c,a/b,, \
5411 && eval 'test $(( 1 + 1 )) -eq 2 \
5412 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5413 && xsi_shell=yes
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5415 $as_echo "$xsi_shell" >&6; }
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5419 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5420 lt_shell_append=no
5421 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5422 >/dev/null 2>&1 \
5423 && lt_shell_append=yes
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5425 $as_echo "$lt_shell_append" >&6; }
5426
5427
5428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5429 lt_unset=unset
5430 else
5431 lt_unset=false
5432 fi
5433
5434
5435
5436
5437
5438 # test EBCDIC or ASCII
5439 case `echo X|tr X '\101'` in
5440 A) # ASCII based system
5441 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5442 lt_SP2NL='tr \040 \012'
5443 lt_NL2SP='tr \015\012 \040\040'
5444 ;;
5445 *) # EBCDIC based system
5446 lt_SP2NL='tr \100 \n'
5447 lt_NL2SP='tr \r\n \100\100'
5448 ;;
5449 esac
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5460 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5461 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5462 $as_echo_n "(cached) " >&6
5463 else
5464 lt_cv_ld_reload_flag='-r'
5465 fi
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5467 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5468 reload_flag=$lt_cv_ld_reload_flag
5469 case $reload_flag in
5470 "" | " "*) ;;
5471 *) reload_flag=" $reload_flag" ;;
5472 esac
5473 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5474 case $host_os in
5475 darwin*)
5476 if test "$GCC" = yes; then
5477 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5478 else
5479 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5480 fi
5481 ;;
5482 esac
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492 if test -n "$ac_tool_prefix"; then
5493 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5494 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$OBJDUMP"; then
5501 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514 done
5515 done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 OBJDUMP=$ac_cv_prog_OBJDUMP
5521 if test -n "$OBJDUMP"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5523 $as_echo "$OBJDUMP" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 fi
5531 if test -z "$ac_cv_prog_OBJDUMP"; then
5532 ac_ct_OBJDUMP=$OBJDUMP
5533 # Extract the first word of "objdump", so it can be a program name with args.
5534 set dummy objdump; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$ac_ct_OBJDUMP"; then
5541 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5561 if test -n "$ac_ct_OBJDUMP"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5563 $as_echo "$ac_ct_OBJDUMP" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569 if test "x$ac_ct_OBJDUMP" = x; then
5570 OBJDUMP="false"
5571 else
5572 case $cross_compiling:$ac_tool_warned in
5573 yes:)
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576 ac_tool_warned=yes ;;
5577 esac
5578 OBJDUMP=$ac_ct_OBJDUMP
5579 fi
5580 else
5581 OBJDUMP="$ac_cv_prog_OBJDUMP"
5582 fi
5583
5584 test -z "$OBJDUMP" && OBJDUMP=objdump
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5595 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5596 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 lt_cv_file_magic_cmd='$MAGIC_CMD'
5600 lt_cv_file_magic_test_file=
5601 lt_cv_deplibs_check_method='unknown'
5602 # Need to set the preceding variable on all platforms that support
5603 # interlibrary dependencies.
5604 # 'none' -- dependencies not supported.
5605 # `unknown' -- same as none, but documents that we really don't know.
5606 # 'pass_all' -- all dependencies passed with no checks.
5607 # 'test_compile' -- check by making test program.
5608 # 'file_magic [[regex]]' -- check by looking for files in library path
5609 # which responds to the $file_magic_cmd with a given extended regex.
5610 # If you have `file' or equivalent on your system and you're not sure
5611 # whether `pass_all' will *always* work, you probably want this one.
5612
5613 case $host_os in
5614 aix[4-9]*)
5615 lt_cv_deplibs_check_method=pass_all
5616 ;;
5617
5618 beos*)
5619 lt_cv_deplibs_check_method=pass_all
5620 ;;
5621
5622 bsdi[45]*)
5623 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5624 lt_cv_file_magic_cmd='/usr/bin/file -L'
5625 lt_cv_file_magic_test_file=/shlib/libc.so
5626 ;;
5627
5628 cygwin*)
5629 # func_win32_libid is a shell function defined in ltmain.sh
5630 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5631 lt_cv_file_magic_cmd='func_win32_libid'
5632 ;;
5633
5634 mingw* | pw32*)
5635 # Base MSYS/MinGW do not provide the 'file' command needed by
5636 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5637 # unless we find 'file', for example because we are cross-compiling.
5638 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5639 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5640 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5641 lt_cv_file_magic_cmd='func_win32_libid'
5642 else
5643 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5644 lt_cv_file_magic_cmd='$OBJDUMP -f'
5645 fi
5646 ;;
5647
5648 cegcc*)
5649 # use the weaker test based on 'objdump'. See mingw*.
5650 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5651 lt_cv_file_magic_cmd='$OBJDUMP -f'
5652 ;;
5653
5654 darwin* | rhapsody*)
5655 lt_cv_deplibs_check_method=pass_all
5656 ;;
5657
5658 freebsd* | dragonfly*)
5659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5660 case $host_cpu in
5661 i*86 )
5662 # Not sure whether the presence of OpenBSD here was a mistake.
5663 # Let's accept both of them until this is cleared up.
5664 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5665 lt_cv_file_magic_cmd=/usr/bin/file
5666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5667 ;;
5668 esac
5669 else
5670 lt_cv_deplibs_check_method=pass_all
5671 fi
5672 ;;
5673
5674 gnu*)
5675 lt_cv_deplibs_check_method=pass_all
5676 ;;
5677
5678 haiku*)
5679 lt_cv_deplibs_check_method=pass_all
5680 ;;
5681
5682 hpux10.20* | hpux11*)
5683 lt_cv_file_magic_cmd=/usr/bin/file
5684 case $host_cpu in
5685 ia64*)
5686 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5687 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5688 ;;
5689 hppa*64*)
5690 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]'
5691 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5692 ;;
5693 *)
5694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5695 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5696 ;;
5697 esac
5698 ;;
5699
5700 interix[3-9]*)
5701 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5703 ;;
5704
5705 irix5* | irix6* | nonstopux*)
5706 case $LD in
5707 *-32|*"-32 ") libmagic=32-bit;;
5708 *-n32|*"-n32 ") libmagic=N32;;
5709 *-64|*"-64 ") libmagic=64-bit;;
5710 *) libmagic=never-match;;
5711 esac
5712 lt_cv_deplibs_check_method=pass_all
5713 ;;
5714
5715 # This must be Linux ELF.
5716 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5717 lt_cv_deplibs_check_method=pass_all
5718 ;;
5719
5720 netbsd*)
5721 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5723 else
5724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5725 fi
5726 ;;
5727
5728 newos6*)
5729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5730 lt_cv_file_magic_cmd=/usr/bin/file
5731 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5732 ;;
5733
5734 *nto* | *qnx*)
5735 lt_cv_deplibs_check_method=pass_all
5736 ;;
5737
5738 openbsd*)
5739 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5741 else
5742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5743 fi
5744 ;;
5745
5746 osf3* | osf4* | osf5*)
5747 lt_cv_deplibs_check_method=pass_all
5748 ;;
5749
5750 rdos*)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 solaris*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761
5762 sysv4 | sysv4.3*)
5763 case $host_vendor in
5764 motorola)
5765 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]'
5766 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5767 ;;
5768 ncr)
5769 lt_cv_deplibs_check_method=pass_all
5770 ;;
5771 sequent)
5772 lt_cv_file_magic_cmd='/bin/file'
5773 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5774 ;;
5775 sni)
5776 lt_cv_file_magic_cmd='/bin/file'
5777 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5778 lt_cv_file_magic_test_file=/lib/libc.so
5779 ;;
5780 siemens)
5781 lt_cv_deplibs_check_method=pass_all
5782 ;;
5783 pc)
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786 esac
5787 ;;
5788
5789 tpf*)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792 esac
5793
5794 fi
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5796 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5797 file_magic_cmd=$lt_cv_file_magic_cmd
5798 deplibs_check_method=$lt_cv_deplibs_check_method
5799 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812 if test -n "$ac_tool_prefix"; then
5813 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5814 set dummy ${ac_tool_prefix}ar; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if test "${ac_cv_prog_AR+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if test -n "$AR"; then
5821 ac_cv_prog_AR="$AR" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5825 do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_AR="${ac_tool_prefix}ar"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834 done
5835 done
5836 IFS=$as_save_IFS
5837
5838 fi
5839 fi
5840 AR=$ac_cv_prog_AR
5841 if test -n "$AR"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5843 $as_echo "$AR" >&6; }
5844 else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5847 fi
5848
5849
5850 fi
5851 if test -z "$ac_cv_prog_AR"; then
5852 ac_ct_AR=$AR
5853 # Extract the first word of "ar", so it can be a program name with args.
5854 set dummy ar; ac_word=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 if test -n "$ac_ct_AR"; then
5861 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870 ac_cv_prog_ac_ct_AR="ar"
5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874 done
5875 done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5881 if test -n "$ac_ct_AR"; then
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5883 $as_echo "$ac_ct_AR" >&6; }
5884 else
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886 $as_echo "no" >&6; }
5887 fi
5888
5889 if test "x$ac_ct_AR" = x; then
5890 AR="false"
5891 else
5892 case $cross_compiling:$ac_tool_warned in
5893 yes:)
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5896 ac_tool_warned=yes ;;
5897 esac
5898 AR=$ac_ct_AR
5899 fi
5900 else
5901 AR="$ac_cv_prog_AR"
5902 fi
5903
5904 test -z "$AR" && AR=ar
5905 test -z "$AR_FLAGS" && AR_FLAGS=cru
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917 if test -n "$ac_tool_prefix"; then
5918 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5919 set dummy ${ac_tool_prefix}strip; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if test "${ac_cv_prog_STRIP+set}" = set; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 if test -n "$STRIP"; then
5926 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5927 else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939 done
5940 done
5941 IFS=$as_save_IFS
5942
5943 fi
5944 fi
5945 STRIP=$ac_cv_prog_STRIP
5946 if test -n "$STRIP"; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5948 $as_echo "$STRIP" >&6; }
5949 else
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5951 $as_echo "no" >&6; }
5952 fi
5953
5954
5955 fi
5956 if test -z "$ac_cv_prog_STRIP"; then
5957 ac_ct_STRIP=$STRIP
5958 # Extract the first word of "strip", so it can be a program name with args.
5959 set dummy strip; ac_word=$2
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5961 $as_echo_n "checking for $ac_word... " >&6; }
5962 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$ac_ct_STRIP"; then
5966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971 IFS=$as_save_IFS
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5975 ac_cv_prog_ac_ct_STRIP="strip"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 break 2
5978 fi
5979 done
5980 done
5981 IFS=$as_save_IFS
5982
5983 fi
5984 fi
5985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5986 if test -n "$ac_ct_STRIP"; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5988 $as_echo "$ac_ct_STRIP" >&6; }
5989 else
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5991 $as_echo "no" >&6; }
5992 fi
5993
5994 if test "x$ac_ct_STRIP" = x; then
5995 STRIP=":"
5996 else
5997 case $cross_compiling:$ac_tool_warned in
5998 yes:)
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6001 ac_tool_warned=yes ;;
6002 esac
6003 STRIP=$ac_ct_STRIP
6004 fi
6005 else
6006 STRIP="$ac_cv_prog_STRIP"
6007 fi
6008
6009 test -z "$STRIP" && STRIP=:
6010
6011
6012
6013
6014
6015
6016 if test -n "$ac_tool_prefix"; then
6017 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6018 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020 $as_echo_n "checking for $ac_word... " >&6; }
6021 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 if test -n "$RANLIB"; then
6025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038 done
6039 done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 RANLIB=$ac_cv_prog_RANLIB
6045 if test -n "$RANLIB"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6047 $as_echo "$RANLIB" >&6; }
6048 else
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053
6054 fi
6055 if test -z "$ac_cv_prog_RANLIB"; then
6056 ac_ct_RANLIB=$RANLIB
6057 # Extract the first word of "ranlib", so it can be a program name with args.
6058 set dummy ranlib; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if test -n "$ac_ct_RANLIB"; then
6065 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6066 else
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH
6069 do
6070 IFS=$as_save_IFS
6071 test -z "$as_dir" && as_dir=.
6072 for ac_exec_ext in '' $ac_executable_extensions; do
6073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6074 ac_cv_prog_ac_ct_RANLIB="ranlib"
6075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 break 2
6077 fi
6078 done
6079 done
6080 IFS=$as_save_IFS
6081
6082 fi
6083 fi
6084 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6085 if test -n "$ac_ct_RANLIB"; then
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6087 $as_echo "$ac_ct_RANLIB" >&6; }
6088 else
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090 $as_echo "no" >&6; }
6091 fi
6092
6093 if test "x$ac_ct_RANLIB" = x; then
6094 RANLIB=":"
6095 else
6096 case $cross_compiling:$ac_tool_warned in
6097 yes:)
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6100 ac_tool_warned=yes ;;
6101 esac
6102 RANLIB=$ac_ct_RANLIB
6103 fi
6104 else
6105 RANLIB="$ac_cv_prog_RANLIB"
6106 fi
6107
6108 test -z "$RANLIB" && RANLIB=:
6109
6110
6111
6112
6113
6114
6115 # Determine commands to create old-style static archives.
6116 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6117 old_postinstall_cmds='chmod 644 $oldlib'
6118 old_postuninstall_cmds=
6119
6120 if test -n "$RANLIB"; then
6121 case $host_os in
6122 openbsd*)
6123 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6124 ;;
6125 *)
6126 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6127 ;;
6128 esac
6129 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6130 fi
6131
6132 case $host_os in
6133 darwin*)
6134 lock_old_archive_extraction=yes ;;
6135 *)
6136 lock_old_archive_extraction=no ;;
6137 esac
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177 # If no C compiler was specified, use CC.
6178 LTCC=${LTCC-"$CC"}
6179
6180 # If no C compiler flags were specified, use CFLAGS.
6181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6182
6183 # Allow CC to be a program name with arguments.
6184 compiler=$CC
6185
6186
6187 # Check for command to grab the raw symbol name followed by C symbol from nm.
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6189 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6190 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193
6194 # These are sane defaults that work on at least a few old systems.
6195 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6196
6197 # Character class describing NM global symbol codes.
6198 symcode='[BCDEGRST]'
6199
6200 # Regexp to match symbols that can be accessed directly from C.
6201 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6202
6203 # Define system-specific variables.
6204 case $host_os in
6205 aix*)
6206 symcode='[BCDT]'
6207 ;;
6208 cygwin* | mingw* | pw32* | cegcc*)
6209 symcode='[ABCDGISTW]'
6210 ;;
6211 hpux*)
6212 if test "$host_cpu" = ia64; then
6213 symcode='[ABCDEGRST]'
6214 fi
6215 ;;
6216 irix* | nonstopux*)
6217 symcode='[BCDEGRST]'
6218 ;;
6219 osf*)
6220 symcode='[BCDEGQRST]'
6221 ;;
6222 solaris*)
6223 symcode='[BDRT]'
6224 ;;
6225 sco3.2v5*)
6226 symcode='[DT]'
6227 ;;
6228 sysv4.2uw2*)
6229 symcode='[DT]'
6230 ;;
6231 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6232 symcode='[ABDT]'
6233 ;;
6234 sysv4)
6235 symcode='[DFNSTU]'
6236 ;;
6237 esac
6238
6239 # If we're using GNU nm, then use its standard symbol codes.
6240 case `$NM -V 2>&1` in
6241 *GNU* | *'with BFD'*)
6242 symcode='[ABCDGIRSTW]' ;;
6243 esac
6244
6245 # Transform an extracted symbol line into a proper C declaration.
6246 # Some systems (esp. on ia64) link data and code symbols differently,
6247 # so use this general approach.
6248 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6249
6250 # Transform an extracted symbol line into symbol name and symbol address
6251 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6252 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'"
6253
6254 # Handle CRLF in mingw tool chain
6255 opt_cr=
6256 case $build_os in
6257 mingw*)
6258 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6259 ;;
6260 esac
6261
6262 # Try without a prefix underscore, then with it.
6263 for ac_symprfx in "" "_"; do
6264
6265 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6266 symxfrm="\\1 $ac_symprfx\\2 \\2"
6267
6268 # Write the raw and C identifiers.
6269 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6270 # Fake it for dumpbin and say T for any non-static function
6271 # and D for any global variable.
6272 # Also find C++ and __fastcall symbols from MSVC++,
6273 # which start with @ or ?.
6274 lt_cv_sys_global_symbol_pipe="$AWK '"\
6275 " {last_section=section; section=\$ 3};"\
6276 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6277 " \$ 0!~/External *\|/{next};"\
6278 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6279 " {if(hide[section]) next};"\
6280 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6281 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6282 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6283 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6284 " ' prfx=^$ac_symprfx"
6285 else
6286 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6287 fi
6288
6289 # Check to see that the pipe works correctly.
6290 pipe_works=no
6291
6292 rm -f conftest*
6293 cat > conftest.$ac_ext <<_LT_EOF
6294 #ifdef __cplusplus
6295 extern "C" {
6296 #endif
6297 char nm_test_var;
6298 void nm_test_func(void);
6299 void nm_test_func(void){}
6300 #ifdef __cplusplus
6301 }
6302 #endif
6303 int main(){nm_test_var='a';nm_test_func();return(0);}
6304 _LT_EOF
6305
6306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6307 (eval $ac_compile) 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6310 test $ac_status = 0; }; then
6311 # Now try to grab the symbols.
6312 nlist=conftest.nm
6313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6314 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6315 ac_status=$?
6316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6317 test $ac_status = 0; } && test -s "$nlist"; then
6318 # Try sorting and uniquifying the output.
6319 if sort "$nlist" | uniq > "$nlist"T; then
6320 mv -f "$nlist"T "$nlist"
6321 else
6322 rm -f "$nlist"T
6323 fi
6324
6325 # Make sure that we snagged all the symbols we need.
6326 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6327 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6328 cat <<_LT_EOF > conftest.$ac_ext
6329 #ifdef __cplusplus
6330 extern "C" {
6331 #endif
6332
6333 _LT_EOF
6334 # Now generate the symbol file.
6335 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6336
6337 cat <<_LT_EOF >> conftest.$ac_ext
6338
6339 /* The mapping between symbol names and symbols. */
6340 const struct {
6341 const char *name;
6342 void *address;
6343 }
6344 lt__PROGRAM__LTX_preloaded_symbols[] =
6345 {
6346 { "@PROGRAM@", (void *) 0 },
6347 _LT_EOF
6348 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6349 cat <<\_LT_EOF >> conftest.$ac_ext
6350 {0, (void *) 0}
6351 };
6352
6353 /* This works around a problem in FreeBSD linker */
6354 #ifdef FREEBSD_WORKAROUND
6355 static const void *lt_preloaded_setup() {
6356 return lt__PROGRAM__LTX_preloaded_symbols;
6357 }
6358 #endif
6359
6360 #ifdef __cplusplus
6361 }
6362 #endif
6363 _LT_EOF
6364 # Now try linking the two files.
6365 mv conftest.$ac_objext conftstm.$ac_objext
6366 lt_save_LIBS="$LIBS"
6367 lt_save_CFLAGS="$CFLAGS"
6368 LIBS="conftstm.$ac_objext"
6369 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6371 (eval $ac_link) 2>&5
6372 ac_status=$?
6373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6374 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6375 pipe_works=yes
6376 fi
6377 LIBS="$lt_save_LIBS"
6378 CFLAGS="$lt_save_CFLAGS"
6379 else
6380 echo "cannot find nm_test_func in $nlist" >&5
6381 fi
6382 else
6383 echo "cannot find nm_test_var in $nlist" >&5
6384 fi
6385 else
6386 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6387 fi
6388 else
6389 echo "$progname: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6391 fi
6392 rm -rf conftest* conftst*
6393
6394 # Do not use the global_symbol_pipe unless it works.
6395 if test "$pipe_works" = yes; then
6396 break
6397 else
6398 lt_cv_sys_global_symbol_pipe=
6399 fi
6400 done
6401
6402 fi
6403
6404 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6405 lt_cv_sys_global_symbol_to_cdecl=
6406 fi
6407 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6409 $as_echo "failed" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6412 $as_echo "ok" >&6; }
6413 fi
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 # Check whether --enable-libtool-lock was given.
6438 if test "${enable_libtool_lock+set}" = set; then :
6439 enableval=$enable_libtool_lock;
6440 fi
6441
6442 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6443
6444 # Some flags need to be propagated to the compiler or linker for good
6445 # libtool support.
6446 case $host in
6447 ia64-*-hpux*)
6448 # Find out which ABI we are using.
6449 echo 'int i;' > conftest.$ac_ext
6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6451 (eval $ac_compile) 2>&5
6452 ac_status=$?
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }; then
6455 case `/usr/bin/file conftest.$ac_objext` in
6456 *ELF-32*)
6457 HPUX_IA64_MODE="32"
6458 ;;
6459 *ELF-64*)
6460 HPUX_IA64_MODE="64"
6461 ;;
6462 esac
6463 fi
6464 rm -rf conftest*
6465 ;;
6466 *-*-irix6*)
6467 # Find out which ABI we are using.
6468 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6470 (eval $ac_compile) 2>&5
6471 ac_status=$?
6472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6473 test $ac_status = 0; }; then
6474 if test "$lt_cv_prog_gnu_ld" = yes; then
6475 case `/usr/bin/file conftest.$ac_objext` in
6476 *32-bit*)
6477 LD="${LD-ld} -melf32bsmip"
6478 ;;
6479 *N32*)
6480 LD="${LD-ld} -melf32bmipn32"
6481 ;;
6482 *64-bit*)
6483 LD="${LD-ld} -melf64bmip"
6484 ;;
6485 esac
6486 else
6487 case `/usr/bin/file conftest.$ac_objext` in
6488 *32-bit*)
6489 LD="${LD-ld} -32"
6490 ;;
6491 *N32*)
6492 LD="${LD-ld} -n32"
6493 ;;
6494 *64-bit*)
6495 LD="${LD-ld} -64"
6496 ;;
6497 esac
6498 fi
6499 fi
6500 rm -rf conftest*
6501 ;;
6502
6503 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6504 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6505 # Find out which ABI we are using.
6506 echo 'int i;' > conftest.$ac_ext
6507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6508 (eval $ac_compile) 2>&5
6509 ac_status=$?
6510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6511 test $ac_status = 0; }; then
6512 case `/usr/bin/file conftest.o` in
6513 *32-bit*)
6514 case $host in
6515 x86_64-*kfreebsd*-gnu)
6516 LD="${LD-ld} -m elf_i386_fbsd"
6517 ;;
6518 x86_64-*linux*)
6519 LD="${LD-ld} -m elf_i386"
6520 ;;
6521 ppc64-*linux*|powerpc64-*linux*)
6522 LD="${LD-ld} -m elf32ppclinux"
6523 ;;
6524 s390x-*linux*)
6525 LD="${LD-ld} -m elf_s390"
6526 ;;
6527 sparc64-*linux*)
6528 LD="${LD-ld} -m elf32_sparc"
6529 ;;
6530 esac
6531 ;;
6532 *64-bit*)
6533 case $host in
6534 x86_64-*kfreebsd*-gnu)
6535 LD="${LD-ld} -m elf_x86_64_fbsd"
6536 ;;
6537 x86_64-*linux*)
6538 LD="${LD-ld} -m elf_x86_64"
6539 ;;
6540 ppc*-*linux*|powerpc*-*linux*)
6541 LD="${LD-ld} -m elf64ppc"
6542 ;;
6543 s390*-*linux*|s390*-*tpf*)
6544 LD="${LD-ld} -m elf64_s390"
6545 ;;
6546 sparc*-*linux*)
6547 LD="${LD-ld} -m elf64_sparc"
6548 ;;
6549 esac
6550 ;;
6551 esac
6552 fi
6553 rm -rf conftest*
6554 ;;
6555
6556 *-*-sco3.2v5*)
6557 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6558 SAVE_CFLAGS="$CFLAGS"
6559 CFLAGS="$CFLAGS -belf"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6561 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6562 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 ac_ext=c
6566 ac_cpp='$CPP $CPPFLAGS'
6567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573
6574 int
6575 main ()
6576 {
6577
6578 ;
6579 return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_link "$LINENO"; then :
6583 lt_cv_cc_needs_belf=yes
6584 else
6585 lt_cv_cc_needs_belf=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext \
6588 conftest$ac_exeext conftest.$ac_ext
6589 ac_ext=c
6590 ac_cpp='$CPP $CPPFLAGS'
6591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6597 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6598 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6600 CFLAGS="$SAVE_CFLAGS"
6601 fi
6602 ;;
6603 *-*solaris*)
6604 # Find out which ABI we are using.
6605 echo 'int i;' > conftest.$ac_ext
6606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6607 (eval $ac_compile) 2>&5
6608 ac_status=$?
6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6610 test $ac_status = 0; }; then
6611 case `/usr/bin/file conftest.o` in
6612 *64-bit*)
6613 case $lt_cv_prog_gnu_ld in
6614 yes*)
6615 case $host in
6616 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6617 LD="${LD-ld} -m elf_x86_64"
6618 ;;
6619 sparc*-*-solaris*)
6620 LD="${LD-ld} -m elf64_sparc"
6621 ;;
6622 esac
6623 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6624 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6625 LD="${LD-ld}_sol2"
6626 fi
6627 ;;
6628 *)
6629 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6630 LD="${LD-ld} -64"
6631 fi
6632 ;;
6633 esac
6634 ;;
6635 esac
6636 fi
6637 rm -rf conftest*
6638 ;;
6639 esac
6640
6641 need_locks="$enable_libtool_lock"
6642
6643
6644 case $host_os in
6645 rhapsody* | darwin*)
6646 if test -n "$ac_tool_prefix"; then
6647 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6648 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6652 $as_echo_n "(cached) " >&6
6653 else
6654 if test -n "$DSYMUTIL"; then
6655 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6675 if test -n "$DSYMUTIL"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6677 $as_echo "$DSYMUTIL" >&6; }
6678 else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6682
6683
6684 fi
6685 if test -z "$ac_cv_prog_DSYMUTIL"; then
6686 ac_ct_DSYMUTIL=$DSYMUTIL
6687 # Extract the first word of "dsymutil", so it can be a program name with args.
6688 set dummy dsymutil; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 if test -n "$ac_ct_DSYMUTIL"; then
6695 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6696 else
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698 for as_dir in $PATH
6699 do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708 done
6709 done
6710 IFS=$as_save_IFS
6711
6712 fi
6713 fi
6714 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6715 if test -n "$ac_ct_DSYMUTIL"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6717 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6718 else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6721 fi
6722
6723 if test "x$ac_ct_DSYMUTIL" = x; then
6724 DSYMUTIL=":"
6725 else
6726 case $cross_compiling:$ac_tool_warned in
6727 yes:)
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730 ac_tool_warned=yes ;;
6731 esac
6732 DSYMUTIL=$ac_ct_DSYMUTIL
6733 fi
6734 else
6735 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6736 fi
6737
6738 if test -n "$ac_tool_prefix"; then
6739 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$NMEDIT"; then
6747 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 NMEDIT=$ac_cv_prog_NMEDIT
6767 if test -n "$NMEDIT"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6769 $as_echo "$NMEDIT" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775
6776 fi
6777 if test -z "$ac_cv_prog_NMEDIT"; then
6778 ac_ct_NMEDIT=$NMEDIT
6779 # Extract the first word of "nmedit", so it can be a program name with args.
6780 set dummy nmedit; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 if test -n "$ac_ct_NMEDIT"; then
6787 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6791 do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800 done
6801 done
6802 IFS=$as_save_IFS
6803
6804 fi
6805 fi
6806 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6807 if test -n "$ac_ct_NMEDIT"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6809 $as_echo "$ac_ct_NMEDIT" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6813 fi
6814
6815 if test "x$ac_ct_NMEDIT" = x; then
6816 NMEDIT=":"
6817 else
6818 case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824 NMEDIT=$ac_ct_NMEDIT
6825 fi
6826 else
6827 NMEDIT="$ac_cv_prog_NMEDIT"
6828 fi
6829
6830 if test -n "$ac_tool_prefix"; then
6831 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_prog_LIPO+set}" = set; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$LIPO"; then
6839 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 LIPO=$ac_cv_prog_LIPO
6859 if test -n "$LIPO"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6861 $as_echo "$LIPO" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867
6868 fi
6869 if test -z "$ac_cv_prog_LIPO"; then
6870 ac_ct_LIPO=$LIPO
6871 # Extract the first word of "lipo", so it can be a program name with args.
6872 set dummy lipo; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 if test -n "$ac_ct_LIPO"; then
6879 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_ac_ct_LIPO="lipo"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6891 fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6899 if test -n "$ac_ct_LIPO"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6901 $as_echo "$ac_ct_LIPO" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907 if test "x$ac_ct_LIPO" = x; then
6908 LIPO=":"
6909 else
6910 case $cross_compiling:$ac_tool_warned in
6911 yes:)
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914 ac_tool_warned=yes ;;
6915 esac
6916 LIPO=$ac_ct_LIPO
6917 fi
6918 else
6919 LIPO="$ac_cv_prog_LIPO"
6920 fi
6921
6922 if test -n "$ac_tool_prefix"; then
6923 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}otool; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$OTOOL"; then
6931 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 OTOOL=$ac_cv_prog_OTOOL
6951 if test -n "$OTOOL"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6953 $as_echo "$OTOOL" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959
6960 fi
6961 if test -z "$ac_cv_prog_OTOOL"; then
6962 ac_ct_OTOOL=$OTOOL
6963 # Extract the first word of "otool", so it can be a program name with args.
6964 set dummy otool; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -n "$ac_ct_OTOOL"; then
6971 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6975 do
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6980 ac_cv_prog_ac_ct_OTOOL="otool"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6983 fi
6984 done
6985 done
6986 IFS=$as_save_IFS
6987
6988 fi
6989 fi
6990 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6991 if test -n "$ac_ct_OTOOL"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6993 $as_echo "$ac_ct_OTOOL" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6997 fi
6998
6999 if test "x$ac_ct_OTOOL" = x; then
7000 OTOOL=":"
7001 else
7002 case $cross_compiling:$ac_tool_warned in
7003 yes:)
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7007 esac
7008 OTOOL=$ac_ct_OTOOL
7009 fi
7010 else
7011 OTOOL="$ac_cv_prog_OTOOL"
7012 fi
7013
7014 if test -n "$ac_tool_prefix"; then
7015 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7016 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$OTOOL64"; then
7023 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7035 fi
7036 done
7037 done
7038 IFS=$as_save_IFS
7039
7040 fi
7041 fi
7042 OTOOL64=$ac_cv_prog_OTOOL64
7043 if test -n "$OTOOL64"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7045 $as_echo "$OTOOL64" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7049 fi
7050
7051
7052 fi
7053 if test -z "$ac_cv_prog_OTOOL64"; then
7054 ac_ct_OTOOL64=$OTOOL64
7055 # Extract the first word of "otool64", so it can be a program name with args.
7056 set dummy otool64; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 if test -n "$ac_ct_OTOOL64"; then
7063 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 ac_cv_prog_ac_ct_OTOOL64="otool64"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 break 2
7075 fi
7076 done
7077 done
7078 IFS=$as_save_IFS
7079
7080 fi
7081 fi
7082 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7083 if test -n "$ac_ct_OTOOL64"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7085 $as_echo "$ac_ct_OTOOL64" >&6; }
7086 else
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090
7091 if test "x$ac_ct_OTOOL64" = x; then
7092 OTOOL64=":"
7093 else
7094 case $cross_compiling:$ac_tool_warned in
7095 yes:)
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098 ac_tool_warned=yes ;;
7099 esac
7100 OTOOL64=$ac_ct_OTOOL64
7101 fi
7102 else
7103 OTOOL64="$ac_cv_prog_OTOOL64"
7104 fi
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7133 $as_echo_n "checking for -single_module linker flag... " >&6; }
7134 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 lt_cv_apple_cc_single_mod=no
7138 if test -z "${LT_MULTI_MODULE}"; then
7139 # By default we will add the -single_module flag. You can override
7140 # by either setting the environment variable LT_MULTI_MODULE
7141 # non-empty at configure time, or by adding -multi_module to the
7142 # link flags.
7143 rm -rf libconftest.dylib*
7144 echo "int foo(void){return 1;}" > conftest.c
7145 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7146 -dynamiclib -Wl,-single_module conftest.c" >&5
7147 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7148 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7149 _lt_result=$?
7150 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7151 lt_cv_apple_cc_single_mod=yes
7152 else
7153 cat conftest.err >&5
7154 fi
7155 rm -rf libconftest.dylib*
7156 rm -f conftest.*
7157 fi
7158 fi
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7160 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7162 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7163 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 lt_cv_ld_exported_symbols_list=no
7167 save_LDFLAGS=$LDFLAGS
7168 echo "_main" > conftest.sym
7169 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172
7173 int
7174 main ()
7175 {
7176
7177 ;
7178 return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_link "$LINENO"; then :
7182 lt_cv_ld_exported_symbols_list=yes
7183 else
7184 lt_cv_ld_exported_symbols_list=no
7185 fi
7186 rm -f core conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7188 LDFLAGS="$save_LDFLAGS"
7189
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7192 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7194 $as_echo_n "checking for -force_load linker flag... " >&6; }
7195 if test "${lt_cv_ld_force_load+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 lt_cv_ld_force_load=no
7199 cat > conftest.c << _LT_EOF
7200 int forced_loaded() { return 2;}
7201 _LT_EOF
7202 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7203 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7204 echo "$AR cru libconftest.a conftest.o" >&5
7205 $AR cru libconftest.a conftest.o 2>&5
7206 cat > conftest.c << _LT_EOF
7207 int main() { return 0;}
7208 _LT_EOF
7209 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7210 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7211 _lt_result=$?
7212 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7213 lt_cv_ld_force_load=yes
7214 else
7215 cat conftest.err >&5
7216 fi
7217 rm -f conftest.err libconftest.a conftest conftest.c
7218 rm -rf conftest.dSYM
7219
7220 fi
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7222 $as_echo "$lt_cv_ld_force_load" >&6; }
7223 case $host_os in
7224 rhapsody* | darwin1.[012])
7225 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7226 darwin1.*)
7227 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7228 darwin*) # darwin 5.x on
7229 # if running on 10.5 or later, the deployment target defaults
7230 # to the OS version, if on x86, and 10.4, the deployment
7231 # target defaults to 10.4. Don't you love it?
7232 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7233 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7234 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7235 10.[012]*)
7236 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7237 10.*)
7238 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7239 esac
7240 ;;
7241 esac
7242 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7243 _lt_dar_single_mod='$single_module'
7244 fi
7245 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7246 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7247 else
7248 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7249 fi
7250 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7251 _lt_dsymutil='~$DSYMUTIL $lib || :'
7252 else
7253 _lt_dsymutil=
7254 fi
7255 ;;
7256 esac
7257
7258 ac_ext=c
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7264 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7265 # On Suns, sometimes $CPP names a directory.
7266 if test -n "$CPP" && test -d "$CPP"; then
7267 CPP=
7268 fi
7269 if test -z "$CPP"; then
7270 if test "${ac_cv_prog_CPP+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 # Double quotes because CPP needs to be expanded
7274 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7275 do
7276 ac_preproc_ok=false
7277 for ac_c_preproc_warn_flag in '' yes
7278 do
7279 # Use a header file that comes with gcc, so configuring glibc
7280 # with a fresh cross-compiler works.
7281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7282 # <limits.h> exists even on freestanding compilers.
7283 # On the NeXT, cc -E runs the code through the compiler's parser,
7284 # not just through cpp. "Syntax error" is here to catch this case.
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287 #ifdef __STDC__
7288 # include <limits.h>
7289 #else
7290 # include <assert.h>
7291 #endif
7292 Syntax error
7293 _ACEOF
7294 if ac_fn_c_try_cpp "$LINENO"; then :
7295
7296 else
7297 # Broken: fails on valid input.
7298 continue
7299 fi
7300 rm -f conftest.err conftest.$ac_ext
7301
7302 # OK, works on sane cases. Now check whether nonexistent headers
7303 # can be detected and how.
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306 #include <ac_nonexistent.h>
7307 _ACEOF
7308 if ac_fn_c_try_cpp "$LINENO"; then :
7309 # Broken: success on invalid input.
7310 continue
7311 else
7312 # Passes both tests.
7313 ac_preproc_ok=:
7314 break
7315 fi
7316 rm -f conftest.err conftest.$ac_ext
7317
7318 done
7319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7320 rm -f conftest.err conftest.$ac_ext
7321 if $ac_preproc_ok; then :
7322 break
7323 fi
7324
7325 done
7326 ac_cv_prog_CPP=$CPP
7327
7328 fi
7329 CPP=$ac_cv_prog_CPP
7330 else
7331 ac_cv_prog_CPP=$CPP
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7334 $as_echo "$CPP" >&6; }
7335 ac_preproc_ok=false
7336 for ac_c_preproc_warn_flag in '' yes
7337 do
7338 # Use a header file that comes with gcc, so configuring glibc
7339 # with a fresh cross-compiler works.
7340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7341 # <limits.h> exists even on freestanding compilers.
7342 # On the NeXT, cc -E runs the code through the compiler's parser,
7343 # not just through cpp. "Syntax error" is here to catch this case.
7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345 /* end confdefs.h. */
7346 #ifdef __STDC__
7347 # include <limits.h>
7348 #else
7349 # include <assert.h>
7350 #endif
7351 Syntax error
7352 _ACEOF
7353 if ac_fn_c_try_cpp "$LINENO"; then :
7354
7355 else
7356 # Broken: fails on valid input.
7357 continue
7358 fi
7359 rm -f conftest.err conftest.$ac_ext
7360
7361 # OK, works on sane cases. Now check whether nonexistent headers
7362 # can be detected and how.
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 #include <ac_nonexistent.h>
7366 _ACEOF
7367 if ac_fn_c_try_cpp "$LINENO"; then :
7368 # Broken: success on invalid input.
7369 continue
7370 else
7371 # Passes both tests.
7372 ac_preproc_ok=:
7373 break
7374 fi
7375 rm -f conftest.err conftest.$ac_ext
7376
7377 done
7378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7379 rm -f conftest.err conftest.$ac_ext
7380 if $ac_preproc_ok; then :
7381
7382 else
7383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7385 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7386 See \`config.log' for more details." "$LINENO" 5; }
7387 fi
7388
7389 ac_ext=c
7390 ac_cpp='$CPP $CPPFLAGS'
7391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7394
7395
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7397 $as_echo_n "checking for ANSI C header files... " >&6; }
7398 if test "${ac_cv_header_stdc+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #include <stdlib.h>
7404 #include <stdarg.h>
7405 #include <string.h>
7406 #include <float.h>
7407
7408 int
7409 main ()
7410 {
7411
7412 ;
7413 return 0;
7414 }
7415 _ACEOF
7416 if ac_fn_c_try_compile "$LINENO"; then :
7417 ac_cv_header_stdc=yes
7418 else
7419 ac_cv_header_stdc=no
7420 fi
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422
7423 if test $ac_cv_header_stdc = yes; then
7424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 #include <string.h>
7428
7429 _ACEOF
7430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7431 $EGREP "memchr" >/dev/null 2>&1; then :
7432
7433 else
7434 ac_cv_header_stdc=no
7435 fi
7436 rm -f conftest*
7437
7438 fi
7439
7440 if test $ac_cv_header_stdc = yes; then
7441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444 #include <stdlib.h>
7445
7446 _ACEOF
7447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7448 $EGREP "free" >/dev/null 2>&1; then :
7449
7450 else
7451 ac_cv_header_stdc=no
7452 fi
7453 rm -f conftest*
7454
7455 fi
7456
7457 if test $ac_cv_header_stdc = yes; then
7458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7459 if test "$cross_compiling" = yes; then :
7460 :
7461 else
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #include <ctype.h>
7465 #include <stdlib.h>
7466 #if ((' ' & 0x0FF) == 0x020)
7467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7469 #else
7470 # define ISLOWER(c) \
7471 (('a' <= (c) && (c) <= 'i') \
7472 || ('j' <= (c) && (c) <= 'r') \
7473 || ('s' <= (c) && (c) <= 'z'))
7474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7475 #endif
7476
7477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7478 int
7479 main ()
7480 {
7481 int i;
7482 for (i = 0; i < 256; i++)
7483 if (XOR (islower (i), ISLOWER (i))
7484 || toupper (i) != TOUPPER (i))
7485 return 2;
7486 return 0;
7487 }
7488 _ACEOF
7489 if ac_fn_c_try_run "$LINENO"; then :
7490
7491 else
7492 ac_cv_header_stdc=no
7493 fi
7494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7495 conftest.$ac_objext conftest.beam conftest.$ac_ext
7496 fi
7497
7498 fi
7499 fi
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7501 $as_echo "$ac_cv_header_stdc" >&6; }
7502 if test $ac_cv_header_stdc = yes; then
7503
7504 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7505
7506 fi
7507
7508 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7509 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7510 inttypes.h stdint.h unistd.h
7511 do :
7512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7514 "
7515 eval as_val=\$$as_ac_Header
7516 if test "x$as_val" = x""yes; then :
7517 cat >>confdefs.h <<_ACEOF
7518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7519 _ACEOF
7520
7521 fi
7522
7523 done
7524
7525
7526 for ac_header in dlfcn.h
7527 do :
7528 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7529 "
7530 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7531 cat >>confdefs.h <<_ACEOF
7532 #define HAVE_DLFCN_H 1
7533 _ACEOF
7534
7535 fi
7536
7537 done
7538
7539 if test -n "$ac_tool_prefix"; then
7540 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7541 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if test "${ac_cv_prog_GOC+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 if test -n "$GOC"; then
7548 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565 fi
7566 fi
7567 GOC=$ac_cv_prog_GOC
7568 if test -n "$GOC"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7570 $as_echo "$GOC" >&6; }
7571 else
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 fi
7575
7576
7577 fi
7578 if test -z "$ac_cv_prog_GOC"; then
7579 ac_ct_GOC=$GOC
7580 # Extract the first word of "gccgo", so it can be a program name with args.
7581 set dummy gccgo; ac_word=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 if test -n "$ac_ct_GOC"; then
7588 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7589 else
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591 for as_dir in $PATH
7592 do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_prog_ac_ct_GOC="gccgo"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 break 2
7600 fi
7601 done
7602 done
7603 IFS=$as_save_IFS
7604
7605 fi
7606 fi
7607 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7608 if test -n "$ac_ct_GOC"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7610 $as_echo "$ac_ct_GOC" >&6; }
7611 else
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613 $as_echo "no" >&6; }
7614 fi
7615
7616 if test "x$ac_ct_GOC" = x; then
7617 GOC=""
7618 else
7619 case $cross_compiling:$ac_tool_warned in
7620 yes:)
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7623 ac_tool_warned=yes ;;
7624 esac
7625 GOC=$ac_ct_GOC
7626 fi
7627 else
7628 GOC="$ac_cv_prog_GOC"
7629 fi
7630
7631
7632
7633
7634
7635
7636 # Set options
7637
7638
7639
7640
7641 enable_win32_dll=no
7642
7643
7644 # Check whether --enable-shared was given.
7645 if test "${enable_shared+set}" = set; then :
7646 enableval=$enable_shared; p=${PACKAGE-default}
7647 case $enableval in
7648 yes) enable_shared=yes ;;
7649 no) enable_shared=no ;;
7650 *)
7651 enable_shared=no
7652 # Look at the argument we got. We use all the common list separators.
7653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7654 for pkg in $enableval; do
7655 IFS="$lt_save_ifs"
7656 if test "X$pkg" = "X$p"; then
7657 enable_shared=yes
7658 fi
7659 done
7660 IFS="$lt_save_ifs"
7661 ;;
7662 esac
7663 else
7664 enable_shared=yes
7665 fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675 # Check whether --enable-static was given.
7676 if test "${enable_static+set}" = set; then :
7677 enableval=$enable_static; p=${PACKAGE-default}
7678 case $enableval in
7679 yes) enable_static=yes ;;
7680 no) enable_static=no ;;
7681 *)
7682 enable_static=no
7683 # Look at the argument we got. We use all the common list separators.
7684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7685 for pkg in $enableval; do
7686 IFS="$lt_save_ifs"
7687 if test "X$pkg" = "X$p"; then
7688 enable_static=yes
7689 fi
7690 done
7691 IFS="$lt_save_ifs"
7692 ;;
7693 esac
7694 else
7695 enable_static=yes
7696 fi
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707 # Check whether --with-pic was given.
7708 if test "${with_pic+set}" = set; then :
7709 withval=$with_pic; pic_mode="$withval"
7710 else
7711 pic_mode=default
7712 fi
7713
7714
7715 test -z "$pic_mode" && pic_mode=default
7716
7717
7718
7719
7720
7721
7722
7723 # Check whether --enable-fast-install was given.
7724 if test "${enable_fast_install+set}" = set; then :
7725 enableval=$enable_fast_install; p=${PACKAGE-default}
7726 case $enableval in
7727 yes) enable_fast_install=yes ;;
7728 no) enable_fast_install=no ;;
7729 *)
7730 enable_fast_install=no
7731 # Look at the argument we got. We use all the common list separators.
7732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7733 for pkg in $enableval; do
7734 IFS="$lt_save_ifs"
7735 if test "X$pkg" = "X$p"; then
7736 enable_fast_install=yes
7737 fi
7738 done
7739 IFS="$lt_save_ifs"
7740 ;;
7741 esac
7742 else
7743 enable_fast_install=yes
7744 fi
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756 # This can be used to rebuild libtool when needed
7757 LIBTOOL_DEPS="$ltmain"
7758
7759 # Always use our own libtool.
7760 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787 test -z "$LN_S" && LN_S="ln -s"
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802 if test -n "${ZSH_VERSION+set}" ; then
7803 setopt NO_GLOB_SUBST
7804 fi
7805
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7807 $as_echo_n "checking for objdir... " >&6; }
7808 if test "${lt_cv_objdir+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 rm -f .libs 2>/dev/null
7812 mkdir .libs 2>/dev/null
7813 if test -d .libs; then
7814 lt_cv_objdir=.libs
7815 else
7816 # MS-DOS does not allow filenames that begin with a dot.
7817 lt_cv_objdir=_libs
7818 fi
7819 rmdir .libs 2>/dev/null
7820 fi
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7822 $as_echo "$lt_cv_objdir" >&6; }
7823 objdir=$lt_cv_objdir
7824
7825
7826
7827
7828
7829 cat >>confdefs.h <<_ACEOF
7830 #define LT_OBJDIR "$lt_cv_objdir/"
7831 _ACEOF
7832
7833
7834
7835
7836 case $host_os in
7837 aix3*)
7838 # AIX sometimes has problems with the GCC collect2 program. For some
7839 # reason, if we set the COLLECT_NAMES environment variable, the problems
7840 # vanish in a puff of smoke.
7841 if test "X${COLLECT_NAMES+set}" != Xset; then
7842 COLLECT_NAMES=
7843 export COLLECT_NAMES
7844 fi
7845 ;;
7846 esac
7847
7848 # Global variables:
7849 ofile=libtool
7850 can_build_shared=yes
7851
7852 # All known linkers require a `.a' archive for static linking (except MSVC,
7853 # which needs '.lib').
7854 libext=a
7855
7856 with_gnu_ld="$lt_cv_prog_gnu_ld"
7857
7858 old_CC="$CC"
7859 old_CFLAGS="$CFLAGS"
7860
7861 # Set sane defaults for various variables
7862 test -z "$CC" && CC=cc
7863 test -z "$LTCC" && LTCC=$CC
7864 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7865 test -z "$LD" && LD=ld
7866 test -z "$ac_objext" && ac_objext=o
7867
7868 for cc_temp in $compiler""; do
7869 case $cc_temp in
7870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7872 \-*) ;;
7873 *) break;;
7874 esac
7875 done
7876 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7877
7878
7879 # Only perform the check for file, if the check method requires it
7880 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7881 case $deplibs_check_method in
7882 file_magic*)
7883 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7885 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7886 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 case $MAGIC_CMD in
7890 [\\/*] | ?:[\\/]*)
7891 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7892 ;;
7893 *)
7894 lt_save_MAGIC_CMD="$MAGIC_CMD"
7895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7896 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7897 for ac_dir in $ac_dummy; do
7898 IFS="$lt_save_ifs"
7899 test -z "$ac_dir" && ac_dir=.
7900 if test -f $ac_dir/${ac_tool_prefix}file; then
7901 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7902 if test -n "$file_magic_test_file"; then
7903 case $deplibs_check_method in
7904 "file_magic "*)
7905 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7907 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7908 $EGREP "$file_magic_regex" > /dev/null; then
7909 :
7910 else
7911 cat <<_LT_EOF 1>&2
7912
7913 *** Warning: the command libtool uses to detect shared libraries,
7914 *** $file_magic_cmd, produces output that libtool cannot recognize.
7915 *** The result is that libtool may fail to recognize shared libraries
7916 *** as such. This will affect the creation of libtool libraries that
7917 *** depend on shared libraries, but programs linked with such libtool
7918 *** libraries will work regardless of this problem. Nevertheless, you
7919 *** may want to report the problem to your system manager and/or to
7920 *** bug-libtool@gnu.org
7921
7922 _LT_EOF
7923 fi ;;
7924 esac
7925 fi
7926 break
7927 fi
7928 done
7929 IFS="$lt_save_ifs"
7930 MAGIC_CMD="$lt_save_MAGIC_CMD"
7931 ;;
7932 esac
7933 fi
7934
7935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7936 if test -n "$MAGIC_CMD"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7938 $as_echo "$MAGIC_CMD" >&6; }
7939 else
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7942 fi
7943
7944
7945
7946
7947
7948 if test -z "$lt_cv_path_MAGIC_CMD"; then
7949 if test -n "$ac_tool_prefix"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7951 $as_echo_n "checking for file... " >&6; }
7952 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954 else
7955 case $MAGIC_CMD in
7956 [\\/*] | ?:[\\/]*)
7957 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7958 ;;
7959 *)
7960 lt_save_MAGIC_CMD="$MAGIC_CMD"
7961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7962 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7963 for ac_dir in $ac_dummy; do
7964 IFS="$lt_save_ifs"
7965 test -z "$ac_dir" && ac_dir=.
7966 if test -f $ac_dir/file; then
7967 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7968 if test -n "$file_magic_test_file"; then
7969 case $deplibs_check_method in
7970 "file_magic "*)
7971 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7973 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7974 $EGREP "$file_magic_regex" > /dev/null; then
7975 :
7976 else
7977 cat <<_LT_EOF 1>&2
7978
7979 *** Warning: the command libtool uses to detect shared libraries,
7980 *** $file_magic_cmd, produces output that libtool cannot recognize.
7981 *** The result is that libtool may fail to recognize shared libraries
7982 *** as such. This will affect the creation of libtool libraries that
7983 *** depend on shared libraries, but programs linked with such libtool
7984 *** libraries will work regardless of this problem. Nevertheless, you
7985 *** may want to report the problem to your system manager and/or to
7986 *** bug-libtool@gnu.org
7987
7988 _LT_EOF
7989 fi ;;
7990 esac
7991 fi
7992 break
7993 fi
7994 done
7995 IFS="$lt_save_ifs"
7996 MAGIC_CMD="$lt_save_MAGIC_CMD"
7997 ;;
7998 esac
7999 fi
8000
8001 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8002 if test -n "$MAGIC_CMD"; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8004 $as_echo "$MAGIC_CMD" >&6; }
8005 else
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8007 $as_echo "no" >&6; }
8008 fi
8009
8010
8011 else
8012 MAGIC_CMD=:
8013 fi
8014 fi
8015
8016 fi
8017 ;;
8018 esac
8019
8020 # Use C for the default configuration in the libtool script
8021
8022 lt_save_CC="$CC"
8023 ac_ext=c
8024 ac_cpp='$CPP $CPPFLAGS'
8025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028
8029
8030 # Source file extension for C test sources.
8031 ac_ext=c
8032
8033 # Object file extension for compiled C test sources.
8034 objext=o
8035 objext=$objext
8036
8037 # Code to be used in simple compile tests
8038 lt_simple_compile_test_code="int some_variable = 0;"
8039
8040 # Code to be used in simple link tests
8041 lt_simple_link_test_code='int main(){return(0);}'
8042
8043
8044
8045
8046
8047
8048
8049 # If no C compiler was specified, use CC.
8050 LTCC=${LTCC-"$CC"}
8051
8052 # If no C compiler flags were specified, use CFLAGS.
8053 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8054
8055 # Allow CC to be a program name with arguments.
8056 compiler=$CC
8057
8058 # Save the default compiler, since it gets overwritten when the other
8059 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8060 compiler_DEFAULT=$CC
8061
8062 # save warnings/boilerplate of simple test code
8063 ac_outfile=conftest.$ac_objext
8064 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8066 _lt_compiler_boilerplate=`cat conftest.err`
8067 $RM conftest*
8068
8069 ac_outfile=conftest.$ac_objext
8070 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8072 _lt_linker_boilerplate=`cat conftest.err`
8073 $RM -r conftest*
8074
8075
8076 ## CAVEAT EMPTOR:
8077 ## There is no encapsulation within the following macros, do not change
8078 ## the running order or otherwise move them around unless you know exactly
8079 ## what you are doing...
8080 if test -n "$compiler"; then
8081
8082 lt_prog_compiler_no_builtin_flag=
8083
8084 if test "$GCC" = yes; then
8085 case $cc_basename in
8086 nvcc*)
8087 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8088 *)
8089 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8090 esac
8091
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8093 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8094 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 lt_cv_prog_compiler_rtti_exceptions=no
8098 ac_outfile=conftest.$ac_objext
8099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8100 lt_compiler_flag="-fno-rtti -fno-exceptions"
8101 # Insert the option either (1) after the last *FLAGS variable, or
8102 # (2) before a word containing "conftest.", or (3) at the end.
8103 # Note that $ac_compile itself does not contain backslashes and begins
8104 # with a dollar sign (not a hyphen), so the echo should work correctly.
8105 # The option is referenced via a variable to avoid confusing sed.
8106 lt_compile=`echo "$ac_compile" | $SED \
8107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8109 -e 's:$: $lt_compiler_flag:'`
8110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8111 (eval "$lt_compile" 2>conftest.err)
8112 ac_status=$?
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 if (exit $ac_status) && test -s "$ac_outfile"; then
8116 # The compiler can only warn and ignore the option if not recognized
8117 # So say no if there are warnings other than the usual output.
8118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8121 lt_cv_prog_compiler_rtti_exceptions=yes
8122 fi
8123 fi
8124 $RM conftest*
8125
8126 fi
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8128 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8129
8130 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8131 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8132 else
8133 :
8134 fi
8135
8136 fi
8137
8138
8139
8140
8141
8142
8143 lt_prog_compiler_wl=
8144 lt_prog_compiler_pic=
8145 lt_prog_compiler_static=
8146
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8148 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8149
8150 if test "$GCC" = yes; then
8151 lt_prog_compiler_wl='-Wl,'
8152 lt_prog_compiler_static='-static'
8153
8154 case $host_os in
8155 aix*)
8156 # All AIX code is PIC.
8157 if test "$host_cpu" = ia64; then
8158 # AIX 5 now supports IA64 processor
8159 lt_prog_compiler_static='-Bstatic'
8160 fi
8161 ;;
8162
8163 amigaos*)
8164 case $host_cpu in
8165 powerpc)
8166 # see comment about AmigaOS4 .so support
8167 lt_prog_compiler_pic='-fPIC'
8168 ;;
8169 m68k)
8170 # FIXME: we need at least 68020 code to build shared libraries, but
8171 # adding the `-m68020' flag to GCC prevents building anything better,
8172 # like `-m68040'.
8173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8174 ;;
8175 esac
8176 ;;
8177
8178 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8179 # PIC is the default for these OSes.
8180 ;;
8181
8182 mingw* | cygwin* | pw32* | os2* | cegcc*)
8183 # This hack is so that the source file can tell whether it is being
8184 # built for inclusion in a dll (and should export symbols for example).
8185 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8186 # (--disable-auto-import) libraries
8187 lt_prog_compiler_pic='-DDLL_EXPORT'
8188 ;;
8189
8190 darwin* | rhapsody*)
8191 # PIC is the default on this platform
8192 # Common symbols not allowed in MH_DYLIB files
8193 lt_prog_compiler_pic='-fno-common'
8194 ;;
8195
8196 haiku*)
8197 # PIC is the default for Haiku.
8198 # The "-static" flag exists, but is broken.
8199 lt_prog_compiler_static=
8200 ;;
8201
8202 hpux*)
8203 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8204 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8205 # sets the default TLS model and affects inlining.
8206 case $host_cpu in
8207 hppa*64*)
8208 # +Z the default
8209 ;;
8210 *)
8211 lt_prog_compiler_pic='-fPIC'
8212 ;;
8213 esac
8214 ;;
8215
8216 interix[3-9]*)
8217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8218 # Instead, we relocate shared libraries at runtime.
8219 ;;
8220
8221 msdosdjgpp*)
8222 # Just because we use GCC doesn't mean we suddenly get shared libraries
8223 # on systems that don't support them.
8224 lt_prog_compiler_can_build_shared=no
8225 enable_shared=no
8226 ;;
8227
8228 *nto* | *qnx*)
8229 # QNX uses GNU C++, but need to define -shared option too, otherwise
8230 # it will coredump.
8231 lt_prog_compiler_pic='-fPIC -shared'
8232 ;;
8233
8234 sysv4*MP*)
8235 if test -d /usr/nec; then
8236 lt_prog_compiler_pic=-Kconform_pic
8237 fi
8238 ;;
8239
8240 *)
8241 lt_prog_compiler_pic='-fPIC'
8242 ;;
8243 esac
8244
8245 case $cc_basename in
8246 nvcc*) # Cuda Compiler Driver 2.2
8247 lt_prog_compiler_wl='-Xlinker '
8248 lt_prog_compiler_pic='-Xcompiler -fPIC'
8249 ;;
8250 esac
8251 else
8252 # PORTME Check for flag to pass linker flags through the system compiler.
8253 case $host_os in
8254 aix*)
8255 lt_prog_compiler_wl='-Wl,'
8256 if test "$host_cpu" = ia64; then
8257 # AIX 5 now supports IA64 processor
8258 lt_prog_compiler_static='-Bstatic'
8259 else
8260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8261 fi
8262 ;;
8263
8264 mingw* | cygwin* | pw32* | os2* | cegcc*)
8265 # This hack is so that the source file can tell whether it is being
8266 # built for inclusion in a dll (and should export symbols for example).
8267 lt_prog_compiler_pic='-DDLL_EXPORT'
8268 ;;
8269
8270 hpux9* | hpux10* | hpux11*)
8271 lt_prog_compiler_wl='-Wl,'
8272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8273 # not for PA HP-UX.
8274 case $host_cpu in
8275 hppa*64*|ia64*)
8276 # +Z the default
8277 ;;
8278 *)
8279 lt_prog_compiler_pic='+Z'
8280 ;;
8281 esac
8282 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8283 lt_prog_compiler_static='${wl}-a ${wl}archive'
8284 ;;
8285
8286 irix5* | irix6* | nonstopux*)
8287 lt_prog_compiler_wl='-Wl,'
8288 # PIC (with -KPIC) is the default.
8289 lt_prog_compiler_static='-non_shared'
8290 ;;
8291
8292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8293 case $cc_basename in
8294 # old Intel for x86_64 which still supported -KPIC.
8295 ecc*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-KPIC'
8298 lt_prog_compiler_static='-static'
8299 ;;
8300 # icc used to be incompatible with GCC.
8301 # ICC 10 doesn't accept -KPIC any more.
8302 icc* | ifort*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-fPIC'
8305 lt_prog_compiler_static='-static'
8306 ;;
8307 # Lahey Fortran 8.1.
8308 lf95*)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='--shared'
8311 lt_prog_compiler_static='--static'
8312 ;;
8313 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8314 # Portland Group compilers (*not* the Pentium gcc compiler,
8315 # which looks to be a dead project)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='-fpic'
8318 lt_prog_compiler_static='-Bstatic'
8319 ;;
8320 ccc*)
8321 lt_prog_compiler_wl='-Wl,'
8322 # All Alpha code is PIC.
8323 lt_prog_compiler_static='-non_shared'
8324 ;;
8325 xl* | bgxl* | bgf* | mpixl*)
8326 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-qpic'
8329 lt_prog_compiler_static='-qstaticlink'
8330 ;;
8331 *)
8332 case `$CC -V 2>&1 | sed 5q` in
8333 *Sun\ F* | *Sun*Fortran*)
8334 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8335 lt_prog_compiler_pic='-KPIC'
8336 lt_prog_compiler_static='-Bstatic'
8337 lt_prog_compiler_wl=''
8338 ;;
8339 *Sun\ C*)
8340 # Sun C 5.9
8341 lt_prog_compiler_pic='-KPIC'
8342 lt_prog_compiler_static='-Bstatic'
8343 lt_prog_compiler_wl='-Wl,'
8344 ;;
8345 esac
8346 ;;
8347 esac
8348 ;;
8349
8350 newsos6)
8351 lt_prog_compiler_pic='-KPIC'
8352 lt_prog_compiler_static='-Bstatic'
8353 ;;
8354
8355 *nto* | *qnx*)
8356 # QNX uses GNU C++, but need to define -shared option too, otherwise
8357 # it will coredump.
8358 lt_prog_compiler_pic='-fPIC -shared'
8359 ;;
8360
8361 osf3* | osf4* | osf5*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # All OSF/1 code is PIC.
8364 lt_prog_compiler_static='-non_shared'
8365 ;;
8366
8367 rdos*)
8368 lt_prog_compiler_static='-non_shared'
8369 ;;
8370
8371 solaris*)
8372 lt_prog_compiler_pic='-KPIC'
8373 lt_prog_compiler_static='-Bstatic'
8374 case $cc_basename in
8375 f77* | f90* | f95*)
8376 lt_prog_compiler_wl='-Qoption ld ';;
8377 *)
8378 lt_prog_compiler_wl='-Wl,';;
8379 esac
8380 ;;
8381
8382 sunos4*)
8383 lt_prog_compiler_wl='-Qoption ld '
8384 lt_prog_compiler_pic='-PIC'
8385 lt_prog_compiler_static='-Bstatic'
8386 ;;
8387
8388 sysv4 | sysv4.2uw2* | sysv4.3*)
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_pic='-KPIC'
8391 lt_prog_compiler_static='-Bstatic'
8392 ;;
8393
8394 sysv4*MP*)
8395 if test -d /usr/nec ;then
8396 lt_prog_compiler_pic='-Kconform_pic'
8397 lt_prog_compiler_static='-Bstatic'
8398 fi
8399 ;;
8400
8401 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406
8407 unicos*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_can_build_shared=no
8410 ;;
8411
8412 uts4*)
8413 lt_prog_compiler_pic='-pic'
8414 lt_prog_compiler_static='-Bstatic'
8415 ;;
8416
8417 *)
8418 lt_prog_compiler_can_build_shared=no
8419 ;;
8420 esac
8421 fi
8422
8423 case $host_os in
8424 # For platforms which do not support PIC, -DPIC is meaningless:
8425 *djgpp*)
8426 lt_prog_compiler_pic=
8427 ;;
8428 *)
8429 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8430 ;;
8431 esac
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8433 $as_echo "$lt_prog_compiler_pic" >&6; }
8434
8435
8436
8437
8438
8439
8440 #
8441 # Check to make sure the PIC flag actually works.
8442 #
8443 if test -n "$lt_prog_compiler_pic"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8445 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8446 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 lt_cv_prog_compiler_pic_works=no
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8453 # Insert the option either (1) after the last *FLAGS variable, or
8454 # (2) before a word containing "conftest.", or (3) at the end.
8455 # Note that $ac_compile itself does not contain backslashes and begins
8456 # with a dollar sign (not a hyphen), so the echo should work correctly.
8457 # The option is referenced via a variable to avoid confusing sed.
8458 lt_compile=`echo "$ac_compile" | $SED \
8459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8461 -e 's:$: $lt_compiler_flag:'`
8462 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8463 (eval "$lt_compile" 2>conftest.err)
8464 ac_status=$?
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 if (exit $ac_status) && test -s "$ac_outfile"; then
8468 # The compiler can only warn and ignore the option if not recognized
8469 # So say no if there are warnings other than the usual output.
8470 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8473 lt_cv_prog_compiler_pic_works=yes
8474 fi
8475 fi
8476 $RM conftest*
8477
8478 fi
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8480 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8481
8482 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8483 case $lt_prog_compiler_pic in
8484 "" | " "*) ;;
8485 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8486 esac
8487 else
8488 lt_prog_compiler_pic=
8489 lt_prog_compiler_can_build_shared=no
8490 fi
8491
8492 fi
8493
8494
8495
8496
8497
8498
8499 #
8500 # Check to make sure the static flag actually works.
8501 #
8502 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8504 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8505 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 lt_cv_prog_compiler_static_works=no
8509 save_LDFLAGS="$LDFLAGS"
8510 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8511 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8512 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8513 # The linker can only warn and ignore the option if not recognized
8514 # So say no if there are warnings
8515 if test -s conftest.err; then
8516 # Append any errors to the config.log.
8517 cat conftest.err 1>&5
8518 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8520 if diff conftest.exp conftest.er2 >/dev/null; then
8521 lt_cv_prog_compiler_static_works=yes
8522 fi
8523 else
8524 lt_cv_prog_compiler_static_works=yes
8525 fi
8526 fi
8527 $RM -r conftest*
8528 LDFLAGS="$save_LDFLAGS"
8529
8530 fi
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8532 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8533
8534 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8535 :
8536 else
8537 lt_prog_compiler_static=
8538 fi
8539
8540
8541
8542
8543
8544
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 lt_cv_prog_compiler_c_o=no
8552 $RM -r conftest 2>/dev/null
8553 mkdir conftest
8554 cd conftest
8555 mkdir out
8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8557
8558 lt_compiler_flag="-o out/conftest2.$ac_objext"
8559 # Insert the option either (1) after the last *FLAGS variable, or
8560 # (2) before a word containing "conftest.", or (3) at the end.
8561 # Note that $ac_compile itself does not contain backslashes and begins
8562 # with a dollar sign (not a hyphen), so the echo should work correctly.
8563 lt_compile=`echo "$ac_compile" | $SED \
8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8566 -e 's:$: $lt_compiler_flag:'`
8567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8568 (eval "$lt_compile" 2>out/conftest.err)
8569 ac_status=$?
8570 cat out/conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8573 then
8574 # The compiler can only warn and ignore the option if not recognized
8575 # So say no if there are warnings
8576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8579 lt_cv_prog_compiler_c_o=yes
8580 fi
8581 fi
8582 chmod u+w . 2>&5
8583 $RM conftest*
8584 # SGI C++ compiler will create directory out/ii_files/ for
8585 # template instantiation
8586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8587 $RM out/* && rmdir out
8588 cd ..
8589 $RM -r conftest
8590 $RM conftest*
8591
8592 fi
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8594 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8595
8596
8597
8598
8599
8600
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8603 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
8605 else
8606 lt_cv_prog_compiler_c_o=no
8607 $RM -r conftest 2>/dev/null
8608 mkdir conftest
8609 cd conftest
8610 mkdir out
8611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612
8613 lt_compiler_flag="-o out/conftest2.$ac_objext"
8614 # Insert the option either (1) after the last *FLAGS variable, or
8615 # (2) before a word containing "conftest.", or (3) at the end.
8616 # Note that $ac_compile itself does not contain backslashes and begins
8617 # with a dollar sign (not a hyphen), so the echo should work correctly.
8618 lt_compile=`echo "$ac_compile" | $SED \
8619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621 -e 's:$: $lt_compiler_flag:'`
8622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623 (eval "$lt_compile" 2>out/conftest.err)
8624 ac_status=$?
8625 cat out/conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8628 then
8629 # The compiler can only warn and ignore the option if not recognized
8630 # So say no if there are warnings
8631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8634 lt_cv_prog_compiler_c_o=yes
8635 fi
8636 fi
8637 chmod u+w . 2>&5
8638 $RM conftest*
8639 # SGI C++ compiler will create directory out/ii_files/ for
8640 # template instantiation
8641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8642 $RM out/* && rmdir out
8643 cd ..
8644 $RM -r conftest
8645 $RM conftest*
8646
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8650
8651
8652
8653
8654 hard_links="nottested"
8655 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8656 # do not overwrite the value of need_locks provided by the user
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8658 $as_echo_n "checking if we can lock with hard links... " >&6; }
8659 hard_links=yes
8660 $RM conftest*
8661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662 touch conftest.a
8663 ln conftest.a conftest.b 2>&5 || hard_links=no
8664 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8666 $as_echo "$hard_links" >&6; }
8667 if test "$hard_links" = no; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8669 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8670 need_locks=warn
8671 fi
8672 else
8673 need_locks=no
8674 fi
8675
8676
8677
8678
8679
8680
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8682 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8683
8684 runpath_var=
8685 allow_undefined_flag=
8686 always_export_symbols=no
8687 archive_cmds=
8688 archive_expsym_cmds=
8689 compiler_needs_object=no
8690 enable_shared_with_static_runtimes=no
8691 export_dynamic_flag_spec=
8692 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8693 hardcode_automatic=no
8694 hardcode_direct=no
8695 hardcode_direct_absolute=no
8696 hardcode_libdir_flag_spec=
8697 hardcode_libdir_flag_spec_ld=
8698 hardcode_libdir_separator=
8699 hardcode_minus_L=no
8700 hardcode_shlibpath_var=unsupported
8701 inherit_rpath=no
8702 link_all_deplibs=unknown
8703 module_cmds=
8704 module_expsym_cmds=
8705 old_archive_from_new_cmds=
8706 old_archive_from_expsyms_cmds=
8707 thread_safe_flag_spec=
8708 whole_archive_flag_spec=
8709 # include_expsyms should be a list of space-separated symbols to be *always*
8710 # included in the symbol list
8711 include_expsyms=
8712 # exclude_expsyms can be an extended regexp of symbols to exclude
8713 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8714 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8715 # as well as any symbol that contains `d'.
8716 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8717 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8718 # platforms (ab)use it in PIC code, but their linkers get confused if
8719 # the symbol is explicitly referenced. Since portable code cannot
8720 # rely on this symbol name, it's probably fine to never include it in
8721 # preloaded symbol tables.
8722 # Exclude shared library initialization/finalization symbols.
8723 extract_expsyms_cmds=
8724
8725 case $host_os in
8726 cygwin* | mingw* | pw32* | cegcc*)
8727 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8728 # When not using gcc, we currently assume that we are using
8729 # Microsoft Visual C++.
8730 if test "$GCC" != yes; then
8731 with_gnu_ld=no
8732 fi
8733 ;;
8734 interix*)
8735 # we just hope/assume this is gcc and not c89 (= MSVC++)
8736 with_gnu_ld=yes
8737 ;;
8738 openbsd*)
8739 with_gnu_ld=no
8740 ;;
8741 esac
8742
8743 ld_shlibs=yes
8744
8745 # On some targets, GNU ld is compatible enough with the native linker
8746 # that we're better off using the native interface for both.
8747 lt_use_gnu_ld_interface=no
8748 if test "$with_gnu_ld" = yes; then
8749 case $host_os in
8750 aix*)
8751 # The AIX port of GNU ld has always aspired to compatibility
8752 # with the native linker. However, as the warning in the GNU ld
8753 # block says, versions before 2.19.5* couldn't really create working
8754 # shared libraries, regardless of the interface used.
8755 case `$LD -v 2>&1` in
8756 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8757 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8758 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8759 *)
8760 lt_use_gnu_ld_interface=yes
8761 ;;
8762 esac
8763 ;;
8764 *)
8765 lt_use_gnu_ld_interface=yes
8766 ;;
8767 esac
8768 fi
8769
8770 if test "$lt_use_gnu_ld_interface" = yes; then
8771 # If archive_cmds runs LD, not CC, wlarc should be empty
8772 wlarc='${wl}'
8773
8774 # Set some defaults for GNU ld with shared library support. These
8775 # are reset later if shared libraries are not supported. Putting them
8776 # here allows them to be overridden if necessary.
8777 runpath_var=LD_RUN_PATH
8778 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8779 export_dynamic_flag_spec='${wl}--export-dynamic'
8780 # ancient GNU ld didn't support --whole-archive et. al.
8781 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8783 else
8784 whole_archive_flag_spec=
8785 fi
8786 supports_anon_versioning=no
8787 case `$LD -v 2>&1` in
8788 *GNU\ gold*) supports_anon_versioning=yes ;;
8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8792 *\ 2.11.*) ;; # other 2.11 versions
8793 *) supports_anon_versioning=yes ;;
8794 esac
8795
8796 # See if GNU ld supports shared libraries.
8797 case $host_os in
8798 aix[3-9]*)
8799 # On AIX/PPC, the GNU linker is very broken
8800 if test "$host_cpu" != ia64; then
8801 ld_shlibs=no
8802 cat <<_LT_EOF 1>&2
8803
8804 *** Warning: the GNU linker, at least up to release 2.19, is reported
8805 *** to be unable to reliably create shared libraries on AIX.
8806 *** Therefore, libtool is disabling shared libraries support. If you
8807 *** really care for shared libraries, you may want to install binutils
8808 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8809 *** You will then need to restart the configuration process.
8810
8811 _LT_EOF
8812 fi
8813 ;;
8814
8815 amigaos*)
8816 case $host_cpu in
8817 powerpc)
8818 # see comment about AmigaOS4 .so support
8819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8820 archive_expsym_cmds=''
8821 ;;
8822 m68k)
8823 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)'
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_minus_L=yes
8826 ;;
8827 esac
8828 ;;
8829
8830 beos*)
8831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8832 allow_undefined_flag=unsupported
8833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8834 # support --undefined. This deserves some investigation. FIXME
8835 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836 else
8837 ld_shlibs=no
8838 fi
8839 ;;
8840
8841 cygwin* | mingw* | pw32* | cegcc*)
8842 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8843 # as there is no search path for DLLs.
8844 hardcode_libdir_flag_spec='-L$libdir'
8845 export_dynamic_flag_spec='${wl}--export-all-symbols'
8846 allow_undefined_flag=unsupported
8847 always_export_symbols=no
8848 enable_shared_with_static_runtimes=yes
8849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8850
8851 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8853 # If the export-symbols file already is a .def file (1st line
8854 # is EXPORTS), use it as is; otherwise, prepend...
8855 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8856 cp $export_symbols $output_objdir/$soname.def;
8857 else
8858 echo EXPORTS > $output_objdir/$soname.def;
8859 cat $export_symbols >> $output_objdir/$soname.def;
8860 fi~
8861 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8862 else
8863 ld_shlibs=no
8864 fi
8865 ;;
8866
8867 haiku*)
8868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8869 link_all_deplibs=yes
8870 ;;
8871
8872 interix[3-9]*)
8873 hardcode_direct=no
8874 hardcode_shlibpath_var=no
8875 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876 export_dynamic_flag_spec='${wl}-E'
8877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8878 # Instead, shared libraries are loaded at an image base (0x10000000 by
8879 # default) and relocated if they conflict, which is a slow very memory
8880 # consuming and fragmenting process. To avoid this, we pick a random,
8881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8884 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'
8885 ;;
8886
8887 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8888 tmp_diet=no
8889 if test "$host_os" = linux-dietlibc; then
8890 case $cc_basename in
8891 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8892 esac
8893 fi
8894 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8895 && test "$tmp_diet" = no
8896 then
8897 tmp_addflag=
8898 tmp_sharedflag='-shared'
8899 case $cc_basename,$host_cpu in
8900 pgcc*) # Portland Group C compiler
8901 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'
8902 tmp_addflag=' $pic_flag'
8903 ;;
8904 pgf77* | pgf90* | pgf95* | pgfortran*)
8905 # Portland Group f77 and f90 compilers
8906 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'
8907 tmp_addflag=' $pic_flag -Mnomain' ;;
8908 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8909 tmp_addflag=' -i_dynamic' ;;
8910 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8911 tmp_addflag=' -i_dynamic -nofor_main' ;;
8912 ifc* | ifort*) # Intel Fortran compiler
8913 tmp_addflag=' -nofor_main' ;;
8914 lf95*) # Lahey Fortran 8.1
8915 whole_archive_flag_spec=
8916 tmp_sharedflag='--shared' ;;
8917 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8918 tmp_sharedflag='-qmkshrobj'
8919 tmp_addflag= ;;
8920 nvcc*) # Cuda Compiler Driver 2.2
8921 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'
8922 compiler_needs_object=yes
8923 ;;
8924 esac
8925 case `$CC -V 2>&1 | sed 5q` in
8926 *Sun\ C*) # Sun C 5.9
8927 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'
8928 compiler_needs_object=yes
8929 tmp_sharedflag='-G' ;;
8930 *Sun\ F*) # Sun Fortran 8.3
8931 tmp_sharedflag='-G' ;;
8932 esac
8933 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934
8935 if test "x$supports_anon_versioning" = xyes; then
8936 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8937 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8938 echo "local: *; };" >> $output_objdir/$libname.ver~
8939 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8940 fi
8941
8942 case $cc_basename in
8943 xlf* | bgf* | bgxlf* | mpixlf*)
8944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8946 hardcode_libdir_flag_spec=
8947 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8948 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8954 fi
8955 ;;
8956 esac
8957 else
8958 ld_shlibs=no
8959 fi
8960 ;;
8961
8962 netbsd*)
8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8964 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8965 wlarc=
8966 else
8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8969 fi
8970 ;;
8971
8972 solaris*)
8973 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8974 ld_shlibs=no
8975 cat <<_LT_EOF 1>&2
8976
8977 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8978 *** create shared libraries on Solaris systems. Therefore, libtool
8979 *** is disabling shared libraries support. We urge you to upgrade GNU
8980 *** binutils to release 2.9.1 or newer. Another option is to modify
8981 *** your PATH or compiler configuration so that the native linker is
8982 *** used, and then restart.
8983
8984 _LT_EOF
8985 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8990 fi
8991 ;;
8992
8993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8994 case `$LD -v 2>&1` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8996 ld_shlibs=no
8997 cat <<_LT_EOF 1>&2
8998
8999 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9000 *** reliably create shared libraries on SCO systems. Therefore, libtool
9001 *** is disabling shared libraries support. We urge you to upgrade GNU
9002 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9003 *** your PATH or compiler configuration so that the native linker is
9004 *** used, and then restart.
9005
9006 _LT_EOF
9007 ;;
9008 *)
9009 # For security reasons, it is highly recommended that you always
9010 # use absolute paths for naming shared libraries, and exclude the
9011 # DT_RUNPATH tag from executables and libraries. But doing so
9012 # requires that you compile everything twice, which is a pain.
9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021 esac
9022 ;;
9023
9024 sunos4*)
9025 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026 wlarc=
9027 hardcode_direct=yes
9028 hardcode_shlibpath_var=no
9029 ;;
9030
9031 *)
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035 else
9036 ld_shlibs=no
9037 fi
9038 ;;
9039 esac
9040
9041 if test "$ld_shlibs" = no; then
9042 runpath_var=
9043 hardcode_libdir_flag_spec=
9044 export_dynamic_flag_spec=
9045 whole_archive_flag_spec=
9046 fi
9047 else
9048 # PORTME fill in a description of your system's linker (not GNU ld)
9049 case $host_os in
9050 aix3*)
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=yes
9053 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'
9054 # Note: this linker hardcodes the directories in LIBPATH if there
9055 # are no directories specified by -L.
9056 hardcode_minus_L=yes
9057 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058 # Neither direct hardcoding nor static linking is supported with a
9059 # broken collect2.
9060 hardcode_direct=unsupported
9061 fi
9062 ;;
9063
9064 aix[4-9]*)
9065 if test "$host_cpu" = ia64; then
9066 # On IA64, the linker does run time linking by default, so we don't
9067 # have to do anything special.
9068 aix_use_runtimelinking=no
9069 exp_sym_flag='-Bexport'
9070 no_entry_flag=""
9071 else
9072 # If we're using GNU nm, then we don't want the "-C" option.
9073 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074 # Also, AIX nm treats weak defined symbols like other global
9075 # defined symbols, whereas GNU nm marks them as "W".
9076 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9077 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'
9078 else
9079 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'
9080 fi
9081 aix_use_runtimelinking=no
9082
9083 # Test if we are trying to use run time linking or normal
9084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9085 # need to do runtime linking.
9086 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9087 for ld_flag in $LDFLAGS; do
9088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9089 aix_use_runtimelinking=yes
9090 break
9091 fi
9092 done
9093 ;;
9094 esac
9095
9096 exp_sym_flag='-bexport'
9097 no_entry_flag='-bnoentry'
9098 fi
9099
9100 # When large executables or shared objects are built, AIX ld can
9101 # have problems creating the table of contents. If linking a library
9102 # or program results in "error TOC overflow" add -mminimal-toc to
9103 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9104 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9105
9106 archive_cmds=''
9107 hardcode_direct=yes
9108 hardcode_direct_absolute=yes
9109 hardcode_libdir_separator=':'
9110 link_all_deplibs=yes
9111 file_list_spec='${wl}-f,'
9112
9113 if test "$GCC" = yes; then
9114 case $host_os in aix4.[012]|aix4.[012].*)
9115 # We only want to do this on AIX 4.2 and lower, the check
9116 # below for broken collect2 doesn't work under 4.3+
9117 collect2name=`${CC} -print-prog-name=collect2`
9118 if test -f "$collect2name" &&
9119 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9120 then
9121 # We have reworked collect2
9122 :
9123 else
9124 # We have old collect2
9125 hardcode_direct=unsupported
9126 # It fails to find uninstalled libraries when the uninstalled
9127 # path is not listed in the libpath. Setting hardcode_minus_L
9128 # to unsupported forces relinking
9129 hardcode_minus_L=yes
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 hardcode_libdir_separator=
9132 fi
9133 ;;
9134 esac
9135 shared_flag='-shared'
9136 if test "$aix_use_runtimelinking" = yes; then
9137 shared_flag="$shared_flag "'${wl}-G'
9138 fi
9139 else
9140 # not using gcc
9141 if test "$host_cpu" = ia64; then
9142 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9143 # chokes on -Wl,-G. The following line is correct:
9144 shared_flag='-G'
9145 else
9146 if test "$aix_use_runtimelinking" = yes; then
9147 shared_flag='${wl}-G'
9148 else
9149 shared_flag='${wl}-bM:SRE'
9150 fi
9151 fi
9152 fi
9153
9154 export_dynamic_flag_spec='${wl}-bexpall'
9155 # It seems that -bexpall does not export symbols beginning with
9156 # underscore (_), so it is better to generate a list of symbols to export.
9157 always_export_symbols=yes
9158 if test "$aix_use_runtimelinking" = yes; then
9159 # Warning - without using the other runtime loading flags (-brtl),
9160 # -berok will link without error, but may produce a broken library.
9161 allow_undefined_flag='-berok'
9162 # Determine the default libpath from the value encoded in an
9163 # empty executable.
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166
9167 int
9168 main ()
9169 {
9170
9171 ;
9172 return 0;
9173 }
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"; then :
9176
9177 lt_aix_libpath_sed='
9178 /Import File Strings/,/^$/ {
9179 /^0/ {
9180 s/^0 *\(.*\)$/\1/
9181 p
9182 }
9183 }'
9184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185 # Check for a 64-bit object if we didn't find anything.
9186 if test -z "$aix_libpath"; then
9187 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9188 fi
9189 fi
9190 rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9193
9194 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195 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"
9196 else
9197 if test "$host_cpu" = ia64; then
9198 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9199 allow_undefined_flag="-z nodefs"
9200 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"
9201 else
9202 # Determine the default libpath from the value encoded in an
9203 # empty executable.
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9206
9207 int
9208 main ()
9209 {
9210
9211 ;
9212 return 0;
9213 }
9214 _ACEOF
9215 if ac_fn_c_try_link "$LINENO"; then :
9216
9217 lt_aix_libpath_sed='
9218 /Import File Strings/,/^$/ {
9219 /^0/ {
9220 s/^0 *\(.*\)$/\1/
9221 p
9222 }
9223 }'
9224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 # Check for a 64-bit object if we didn't find anything.
9226 if test -z "$aix_libpath"; then
9227 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9228 fi
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9233
9234 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9235 # Warning - without using the other run time loading flags,
9236 # -berok will link without error, but may produce a broken library.
9237 no_undefined_flag=' ${wl}-bernotok'
9238 allow_undefined_flag=' ${wl}-berok'
9239 if test "$with_gnu_ld" = yes; then
9240 # We only use this code for GNU lds that support --whole-archive.
9241 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9242 else
9243 # Exported symbols can be pulled into shared objects from archives
9244 whole_archive_flag_spec='$convenience'
9245 fi
9246 archive_cmds_need_lc=yes
9247 # This is similar to how AIX traditionally builds its shared libraries.
9248 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'
9249 fi
9250 fi
9251 ;;
9252
9253 amigaos*)
9254 case $host_cpu in
9255 powerpc)
9256 # see comment about AmigaOS4 .so support
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258 archive_expsym_cmds=''
9259 ;;
9260 m68k)
9261 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)'
9262 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_minus_L=yes
9264 ;;
9265 esac
9266 ;;
9267
9268 bsdi[45]*)
9269 export_dynamic_flag_spec=-rdynamic
9270 ;;
9271
9272 cygwin* | mingw* | pw32* | cegcc*)
9273 # When not using gcc, we currently assume that we are using
9274 # Microsoft Visual C++.
9275 # hardcode_libdir_flag_spec is actually meaningless, as there is
9276 # no search path for DLLs.
9277 hardcode_libdir_flag_spec=' '
9278 allow_undefined_flag=unsupported
9279 # Tell ltmain to make .lib files, not .a files.
9280 libext=lib
9281 # Tell ltmain to make .dll files, not .so files.
9282 shrext_cmds=".dll"
9283 # FIXME: Setting linknames here is a bad hack.
9284 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9285 # The linker will automatically build a .lib file if we build a DLL.
9286 old_archive_from_new_cmds='true'
9287 # FIXME: Should let the user specify the lib program.
9288 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9289 fix_srcfile_path='`cygpath -w "$srcfile"`'
9290 enable_shared_with_static_runtimes=yes
9291 ;;
9292
9293 darwin* | rhapsody*)
9294
9295
9296 archive_cmds_need_lc=no
9297 hardcode_direct=no
9298 hardcode_automatic=yes
9299 hardcode_shlibpath_var=unsupported
9300 if test "$lt_cv_ld_force_load" = "yes"; then
9301 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\"`'
9302 else
9303 whole_archive_flag_spec=''
9304 fi
9305 link_all_deplibs=yes
9306 allow_undefined_flag="$_lt_dar_allow_undefined"
9307 case $cc_basename in
9308 ifort*) _lt_dar_can_shared=yes ;;
9309 *) _lt_dar_can_shared=$GCC ;;
9310 esac
9311 if test "$_lt_dar_can_shared" = "yes"; then
9312 output_verbose_link_cmd=func_echo_all
9313 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9314 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9315 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}"
9316 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}"
9317
9318 else
9319 ld_shlibs=no
9320 fi
9321
9322 ;;
9323
9324 dgux*)
9325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326 hardcode_libdir_flag_spec='-L$libdir'
9327 hardcode_shlibpath_var=no
9328 ;;
9329
9330 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9331 # support. Future versions do this automatically, but an explicit c++rt0.o
9332 # does not break anything, and helps significantly (at the cost of a little
9333 # extra space).
9334 freebsd2.2*)
9335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9336 hardcode_libdir_flag_spec='-R$libdir'
9337 hardcode_direct=yes
9338 hardcode_shlibpath_var=no
9339 ;;
9340
9341 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9342 freebsd2*)
9343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9344 hardcode_direct=yes
9345 hardcode_minus_L=yes
9346 hardcode_shlibpath_var=no
9347 ;;
9348
9349 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9350 freebsd* | dragonfly*)
9351 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9352 hardcode_libdir_flag_spec='-R$libdir'
9353 hardcode_direct=yes
9354 hardcode_shlibpath_var=no
9355 ;;
9356
9357 hpux9*)
9358 if test "$GCC" = yes; then
9359 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'
9360 else
9361 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'
9362 fi
9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9364 hardcode_libdir_separator=:
9365 hardcode_direct=yes
9366
9367 # hardcode_minus_L: Not really in the search PATH,
9368 # but as the default location of the library.
9369 hardcode_minus_L=yes
9370 export_dynamic_flag_spec='${wl}-E'
9371 ;;
9372
9373 hpux10*)
9374 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9375 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9376 else
9377 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9378 fi
9379 if test "$with_gnu_ld" = no; then
9380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9381 hardcode_libdir_flag_spec_ld='+b $libdir'
9382 hardcode_libdir_separator=:
9383 hardcode_direct=yes
9384 hardcode_direct_absolute=yes
9385 export_dynamic_flag_spec='${wl}-E'
9386 # hardcode_minus_L: Not really in the search PATH,
9387 # but as the default location of the library.
9388 hardcode_minus_L=yes
9389 fi
9390 ;;
9391
9392 hpux11*)
9393 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9394 case $host_cpu in
9395 hppa*64*)
9396 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9397 ;;
9398 ia64*)
9399 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9400 ;;
9401 *)
9402 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9403 ;;
9404 esac
9405 else
9406 case $host_cpu in
9407 hppa*64*)
9408 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 ;;
9410 ia64*)
9411 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9412 ;;
9413 *)
9414
9415 # Older versions of the 11.00 compiler do not understand -b yet
9416 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9418 $as_echo_n "checking if $CC understands -b... " >&6; }
9419 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 lt_cv_prog_compiler__b=no
9423 save_LDFLAGS="$LDFLAGS"
9424 LDFLAGS="$LDFLAGS -b"
9425 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9427 # The linker can only warn and ignore the option if not recognized
9428 # So say no if there are warnings
9429 if test -s conftest.err; then
9430 # Append any errors to the config.log.
9431 cat conftest.err 1>&5
9432 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9434 if diff conftest.exp conftest.er2 >/dev/null; then
9435 lt_cv_prog_compiler__b=yes
9436 fi
9437 else
9438 lt_cv_prog_compiler__b=yes
9439 fi
9440 fi
9441 $RM -r conftest*
9442 LDFLAGS="$save_LDFLAGS"
9443
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9446 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9447
9448 if test x"$lt_cv_prog_compiler__b" = xyes; then
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9450 else
9451 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9452 fi
9453
9454 ;;
9455 esac
9456 fi
9457 if test "$with_gnu_ld" = no; then
9458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459 hardcode_libdir_separator=:
9460
9461 case $host_cpu in
9462 hppa*64*|ia64*)
9463 hardcode_direct=no
9464 hardcode_shlibpath_var=no
9465 ;;
9466 *)
9467 hardcode_direct=yes
9468 hardcode_direct_absolute=yes
9469 export_dynamic_flag_spec='${wl}-E'
9470
9471 # hardcode_minus_L: Not really in the search PATH,
9472 # but as the default location of the library.
9473 hardcode_minus_L=yes
9474 ;;
9475 esac
9476 fi
9477 ;;
9478
9479 irix5* | irix6* | nonstopux*)
9480 if test "$GCC" = yes; then
9481 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'
9482 # Try to use the -exported_symbol ld option, if it does not
9483 # work, assume that -exports_file does not work either and
9484 # implicitly export all symbols.
9485 save_LDFLAGS="$LDFLAGS"
9486 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489 int foo(void) {}
9490 _ACEOF
9491 if ac_fn_c_try_link "$LINENO"; then :
9492 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'
9493
9494 fi
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 LDFLAGS="$save_LDFLAGS"
9498 else
9499 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'
9500 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'
9501 fi
9502 archive_cmds_need_lc='no'
9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504 hardcode_libdir_separator=:
9505 inherit_rpath=yes
9506 link_all_deplibs=yes
9507 ;;
9508
9509 netbsd*)
9510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9512 else
9513 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9514 fi
9515 hardcode_libdir_flag_spec='-R$libdir'
9516 hardcode_direct=yes
9517 hardcode_shlibpath_var=no
9518 ;;
9519
9520 newsos6)
9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_direct=yes
9523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9524 hardcode_libdir_separator=:
9525 hardcode_shlibpath_var=no
9526 ;;
9527
9528 *nto* | *qnx*)
9529 ;;
9530
9531 openbsd*)
9532 if test -f /usr/libexec/ld.so; then
9533 hardcode_direct=yes
9534 hardcode_shlibpath_var=no
9535 hardcode_direct_absolute=yes
9536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9539 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9540 export_dynamic_flag_spec='${wl}-E'
9541 else
9542 case $host_os in
9543 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9545 hardcode_libdir_flag_spec='-R$libdir'
9546 ;;
9547 *)
9548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9550 ;;
9551 esac
9552 fi
9553 else
9554 ld_shlibs=no
9555 fi
9556 ;;
9557
9558 os2*)
9559 hardcode_libdir_flag_spec='-L$libdir'
9560 hardcode_minus_L=yes
9561 allow_undefined_flag=unsupported
9562 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'
9563 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9564 ;;
9565
9566 osf3*)
9567 if test "$GCC" = yes; then
9568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9569 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'
9570 else
9571 allow_undefined_flag=' -expect_unresolved \*'
9572 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'
9573 fi
9574 archive_cmds_need_lc='no'
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 hardcode_libdir_separator=:
9577 ;;
9578
9579 osf4* | osf5*) # as osf3* with the addition of -msym flag
9580 if test "$GCC" = yes; then
9581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9582 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'
9583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9584 else
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9587 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~
9588 $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'
9589
9590 # Both c and cxx compiler support -rpath directly
9591 hardcode_libdir_flag_spec='-rpath $libdir'
9592 fi
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_separator=:
9595 ;;
9596
9597 solaris*)
9598 no_undefined_flag=' -z defs'
9599 if test "$GCC" = yes; then
9600 wlarc='${wl}'
9601 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9603 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9604 else
9605 case `$CC -V 2>&1` in
9606 *"Compilers 5.0"*)
9607 wlarc=''
9608 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9610 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9611 ;;
9612 *)
9613 wlarc='${wl}'
9614 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9616 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9617 ;;
9618 esac
9619 fi
9620 hardcode_libdir_flag_spec='-R$libdir'
9621 hardcode_shlibpath_var=no
9622 case $host_os in
9623 solaris2.[0-5] | solaris2.[0-5].*) ;;
9624 *)
9625 # The compiler driver will combine and reorder linker options,
9626 # but understands `-z linker_flag'. GCC discards it without `$wl',
9627 # but is careful enough not to reorder.
9628 # Supported since Solaris 2.6 (maybe 2.5.1?)
9629 if test "$GCC" = yes; then
9630 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9631 else
9632 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9633 fi
9634 ;;
9635 esac
9636 link_all_deplibs=yes
9637 ;;
9638
9639 sunos4*)
9640 if test "x$host_vendor" = xsequent; then
9641 # Use $CC to link under sequent, because it throws in some extra .o
9642 # files that make .init and .fini sections work.
9643 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9644 else
9645 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9646 fi
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_direct=yes
9649 hardcode_minus_L=yes
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 sysv4)
9654 case $host_vendor in
9655 sni)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_direct=yes # is this really true???
9658 ;;
9659 siemens)
9660 ## LD is ld it makes a PLAMLIB
9661 ## CC just makes a GrossModule.
9662 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9663 reload_cmds='$CC -r -o $output$reload_objs'
9664 hardcode_direct=no
9665 ;;
9666 motorola)
9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9669 ;;
9670 esac
9671 runpath_var='LD_RUN_PATH'
9672 hardcode_shlibpath_var=no
9673 ;;
9674
9675 sysv4.3*)
9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_shlibpath_var=no
9678 export_dynamic_flag_spec='-Bexport'
9679 ;;
9680
9681 sysv4*MP*)
9682 if test -d /usr/nec; then
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_shlibpath_var=no
9685 runpath_var=LD_RUN_PATH
9686 hardcode_runpath_var=yes
9687 ld_shlibs=yes
9688 fi
9689 ;;
9690
9691 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9692 no_undefined_flag='${wl}-z,text'
9693 archive_cmds_need_lc=no
9694 hardcode_shlibpath_var=no
9695 runpath_var='LD_RUN_PATH'
9696
9697 if test "$GCC" = yes; then
9698 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 else
9701 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 fi
9704 ;;
9705
9706 sysv5* | sco3.2v5* | sco5v6*)
9707 # Note: We can NOT use -z defs as we might desire, because we do not
9708 # link with -lc, and that would cause any symbols used from libc to
9709 # always be unresolved, which means just about no library would
9710 # ever link correctly. If we're not using GNU ld we use -z text
9711 # though, which does catch some bad symbols but isn't as heavy-handed
9712 # as -z defs.
9713 no_undefined_flag='${wl}-z,text'
9714 allow_undefined_flag='${wl}-z,nodefs'
9715 archive_cmds_need_lc=no
9716 hardcode_shlibpath_var=no
9717 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9718 hardcode_libdir_separator=':'
9719 link_all_deplibs=yes
9720 export_dynamic_flag_spec='${wl}-Bexport'
9721 runpath_var='LD_RUN_PATH'
9722
9723 if test "$GCC" = yes; then
9724 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 else
9727 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 fi
9730 ;;
9731
9732 uts4*)
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 *)
9739 ld_shlibs=no
9740 ;;
9741 esac
9742
9743 if test x$host_vendor = xsni; then
9744 case $host in
9745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9746 export_dynamic_flag_spec='${wl}-Blargedynsym'
9747 ;;
9748 esac
9749 fi
9750 fi
9751
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9753 $as_echo "$ld_shlibs" >&6; }
9754 test "$ld_shlibs" = no && can_build_shared=no
9755
9756 with_gnu_ld=$with_gnu_ld
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772 #
9773 # Do we need to explicitly link libc?
9774 #
9775 case "x$archive_cmds_need_lc" in
9776 x|xyes)
9777 # Assume -lc should be added
9778 archive_cmds_need_lc=yes
9779
9780 if test "$enable_shared" = yes && test "$GCC" = yes; then
9781 case $archive_cmds in
9782 *'~'*)
9783 # FIXME: we may have to deal with multi-command sequences.
9784 ;;
9785 '$CC '*)
9786 # Test whether the compiler implicitly links with -lc since on some
9787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9788 # to ld, don't add -lc before -lgcc.
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9791 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 $RM conftest*
9795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9796
9797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9798 (eval $ac_compile) 2>&5
9799 ac_status=$?
9800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9801 test $ac_status = 0; } 2>conftest.err; then
9802 soname=conftest
9803 lib=conftest
9804 libobjs=conftest.$ac_objext
9805 deplibs=
9806 wl=$lt_prog_compiler_wl
9807 pic_flag=$lt_prog_compiler_pic
9808 compiler_flags=-v
9809 linker_flags=-v
9810 verstring=
9811 output_objdir=.
9812 libname=conftest
9813 lt_save_allow_undefined_flag=$allow_undefined_flag
9814 allow_undefined_flag=
9815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9816 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9817 ac_status=$?
9818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9819 test $ac_status = 0; }
9820 then
9821 lt_cv_archive_cmds_need_lc=no
9822 else
9823 lt_cv_archive_cmds_need_lc=yes
9824 fi
9825 allow_undefined_flag=$lt_save_allow_undefined_flag
9826 else
9827 cat conftest.err 1>&5
9828 fi
9829 $RM conftest*
9830
9831 fi
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9833 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9834 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9835 ;;
9836 esac
9837 fi
9838 ;;
9839 esac
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9998 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9999
10000 if test "$GCC" = yes; then
10001 case $host_os in
10002 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10003 *) lt_awk_arg="/^libraries:/" ;;
10004 esac
10005 case $host_os in
10006 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10007 *) lt_sed_strip_eq="s,=/,/,g" ;;
10008 esac
10009 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10010 case $lt_search_path_spec in
10011 *\;*)
10012 # if the path contains ";" then we assume it to be the separator
10013 # otherwise default to the standard path separator (i.e. ":") - it is
10014 # assumed that no part of a normal pathname contains ";" but that should
10015 # okay in the real world where ";" in dirpaths is itself problematic.
10016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10017 ;;
10018 *)
10019 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10020 ;;
10021 esac
10022 # Ok, now we have the path, separated by spaces, we can step through it
10023 # and add multilib dir if necessary.
10024 lt_tmp_lt_search_path_spec=
10025 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10026 for lt_sys_path in $lt_search_path_spec; do
10027 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10029 else
10030 test -d "$lt_sys_path" && \
10031 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10032 fi
10033 done
10034 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10035 BEGIN {RS=" "; FS="/|\n";} {
10036 lt_foo="";
10037 lt_count=0;
10038 for (lt_i = NF; lt_i > 0; lt_i--) {
10039 if ($lt_i != "" && $lt_i != ".") {
10040 if ($lt_i == "..") {
10041 lt_count++;
10042 } else {
10043 if (lt_count == 0) {
10044 lt_foo="/" $lt_i lt_foo;
10045 } else {
10046 lt_count--;
10047 }
10048 }
10049 }
10050 }
10051 if (lt_foo != "") { lt_freq[lt_foo]++; }
10052 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10053 }'`
10054 # AWK program above erroneously prepends '/' to C:/dos/paths
10055 # for these hosts.
10056 case $host_os in
10057 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10058 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10059 esac
10060 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10061 else
10062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10063 fi
10064 library_names_spec=
10065 libname_spec='lib$name'
10066 soname_spec=
10067 shrext_cmds=".so"
10068 postinstall_cmds=
10069 postuninstall_cmds=
10070 finish_cmds=
10071 finish_eval=
10072 shlibpath_var=
10073 shlibpath_overrides_runpath=unknown
10074 version_type=none
10075 dynamic_linker="$host_os ld.so"
10076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10077 need_lib_prefix=unknown
10078 hardcode_into_libs=no
10079
10080 # when you set need_version to no, make sure it does not cause -set_version
10081 # flags to be left without arguments
10082 need_version=unknown
10083
10084 case $host_os in
10085 aix3*)
10086 version_type=linux
10087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10088 shlibpath_var=LIBPATH
10089
10090 # AIX 3 has no versioning support, so we append a major version to the name.
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 ;;
10093
10094 aix[4-9]*)
10095 version_type=linux
10096 need_lib_prefix=no
10097 need_version=no
10098 hardcode_into_libs=yes
10099 if test "$host_cpu" = ia64; then
10100 # AIX 5 supports IA64
10101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10102 shlibpath_var=LD_LIBRARY_PATH
10103 else
10104 # With GCC up to 2.95.x, collect2 would create an import file
10105 # for dependence libraries. The import file would start with
10106 # the line `#! .'. This would cause the generated library to
10107 # depend on `.', always an invalid library. This was fixed in
10108 # development snapshots of GCC prior to 3.0.
10109 case $host_os in
10110 aix4 | aix4.[01] | aix4.[01].*)
10111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10112 echo ' yes '
10113 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10114 :
10115 else
10116 can_build_shared=no
10117 fi
10118 ;;
10119 esac
10120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10121 # soname into executable. Probably we can add versioning support to
10122 # collect2, so additional links can be useful in future.
10123 if test "$aix_use_runtimelinking" = yes; then
10124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10125 # instead of lib<name>.a to let people know that these are not
10126 # typical AIX shared libraries.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 else
10129 # We preserve .a as extension for shared libraries through AIX4.2
10130 # and later when we are not doing run time linking.
10131 library_names_spec='${libname}${release}.a $libname.a'
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 fi
10134 shlibpath_var=LIBPATH
10135 fi
10136 ;;
10137
10138 amigaos*)
10139 case $host_cpu in
10140 powerpc)
10141 # Since July 2007 AmigaOS4 officially supports .so libraries.
10142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 ;;
10145 m68k)
10146 library_names_spec='$libname.ixlibrary $libname.a'
10147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10148 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'
10149 ;;
10150 esac
10151 ;;
10152
10153 beos*)
10154 library_names_spec='${libname}${shared_ext}'
10155 dynamic_linker="$host_os ld.so"
10156 shlibpath_var=LIBRARY_PATH
10157 ;;
10158
10159 bsdi[45]*)
10160 version_type=linux
10161 need_version=no
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10168 # the default ld.so.conf also contains /usr/contrib/lib and
10169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10170 # libtool to hard-code these into programs
10171 ;;
10172
10173 cygwin* | mingw* | pw32* | cegcc*)
10174 version_type=windows
10175 shrext_cmds=".dll"
10176 need_version=no
10177 need_lib_prefix=no
10178
10179 case $GCC,$host_os in
10180 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10181 library_names_spec='$libname.dll.a'
10182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10183 postinstall_cmds='base_file=`basename \${file}`~
10184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10185 dldir=$destdir/`dirname \$dlpath`~
10186 test -d \$dldir || mkdir -p \$dldir~
10187 $install_prog $dir/$dlname \$dldir/$dlname~
10188 chmod a+x \$dldir/$dlname~
10189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10191 fi'
10192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10193 dlpath=$dir/\$dldll~
10194 $RM \$dlpath'
10195 shlibpath_overrides_runpath=yes
10196
10197 case $host_os in
10198 cygwin*)
10199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10200 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10201
10202 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10203 ;;
10204 mingw* | cegcc*)
10205 # MinGW DLLs use traditional 'lib' prefix
10206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10207 ;;
10208 pw32*)
10209 # pw32 DLLs use 'pw' prefix rather than 'lib'
10210 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10211 ;;
10212 esac
10213 ;;
10214
10215 *)
10216 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10217 ;;
10218 esac
10219 dynamic_linker='Win32 ld.exe'
10220 # FIXME: first we should search . and the directory the executable is in
10221 shlibpath_var=PATH
10222 ;;
10223
10224 darwin* | rhapsody*)
10225 dynamic_linker="$host_os dyld"
10226 version_type=darwin
10227 need_lib_prefix=no
10228 need_version=no
10229 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10230 soname_spec='${libname}${release}${major}$shared_ext'
10231 shlibpath_overrides_runpath=yes
10232 shlibpath_var=DYLD_LIBRARY_PATH
10233 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10234
10235 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10236 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10237 ;;
10238
10239 dgux*)
10240 version_type=linux
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 ;;
10247
10248 freebsd* | dragonfly*)
10249 # DragonFly does not have aout. When/if they implement a new
10250 # versioning mechanism, adjust this.
10251 if test -x /usr/bin/objformat; then
10252 objformat=`/usr/bin/objformat`
10253 else
10254 case $host_os in
10255 freebsd[123]*) objformat=aout ;;
10256 *) objformat=elf ;;
10257 esac
10258 fi
10259 version_type=freebsd-$objformat
10260 case $version_type in
10261 freebsd-elf*)
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 need_version=no
10264 need_lib_prefix=no
10265 ;;
10266 freebsd-*)
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10268 need_version=yes
10269 ;;
10270 esac
10271 shlibpath_var=LD_LIBRARY_PATH
10272 case $host_os in
10273 freebsd2*)
10274 shlibpath_overrides_runpath=yes
10275 ;;
10276 freebsd3.[01]* | freebsdelf3.[01]*)
10277 shlibpath_overrides_runpath=yes
10278 hardcode_into_libs=yes
10279 ;;
10280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10282 shlibpath_overrides_runpath=no
10283 hardcode_into_libs=yes
10284 ;;
10285 *) # from 4.6 on, and DragonFly
10286 shlibpath_overrides_runpath=yes
10287 hardcode_into_libs=yes
10288 ;;
10289 esac
10290 ;;
10291
10292 gnu*)
10293 version_type=linux
10294 need_lib_prefix=no
10295 need_version=no
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 hardcode_into_libs=yes
10300 ;;
10301
10302 haiku*)
10303 version_type=linux
10304 need_lib_prefix=no
10305 need_version=no
10306 dynamic_linker="$host_os runtime_loader"
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LIBRARY_PATH
10310 shlibpath_overrides_runpath=yes
10311 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10312 hardcode_into_libs=yes
10313 ;;
10314
10315 hpux9* | hpux10* | hpux11*)
10316 # Give a soname corresponding to the major version so that dld.sl refuses to
10317 # link against other versions.
10318 version_type=sunos
10319 need_lib_prefix=no
10320 need_version=no
10321 case $host_cpu in
10322 ia64*)
10323 shrext_cmds='.so'
10324 hardcode_into_libs=yes
10325 dynamic_linker="$host_os dld.so"
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 if test "X$HPUX_IA64_MODE" = X32; then
10331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10332 else
10333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10334 fi
10335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10336 ;;
10337 hppa*64*)
10338 shrext_cmds='.sl'
10339 hardcode_into_libs=yes
10340 dynamic_linker="$host_os dld.sl"
10341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10347 ;;
10348 *)
10349 shrext_cmds='.sl'
10350 dynamic_linker="$host_os dld.sl"
10351 shlibpath_var=SHLIB_PATH
10352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 ;;
10356 esac
10357 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10358 postinstall_cmds='chmod 555 $lib'
10359 # or fails outright, so override atomically:
10360 install_override_mode=555
10361 ;;
10362
10363 interix[3-9]*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=no
10372 hardcode_into_libs=yes
10373 ;;
10374
10375 irix5* | irix6* | nonstopux*)
10376 case $host_os in
10377 nonstopux*) version_type=nonstopux ;;
10378 *)
10379 if test "$lt_cv_prog_gnu_ld" = yes; then
10380 version_type=linux
10381 else
10382 version_type=irix
10383 fi ;;
10384 esac
10385 need_lib_prefix=no
10386 need_version=no
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10389 case $host_os in
10390 irix5* | nonstopux*)
10391 libsuff= shlibsuff=
10392 ;;
10393 *)
10394 case $LD in # libtool.m4 will add one of these switches to LD
10395 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10396 libsuff= shlibsuff= libmagic=32-bit;;
10397 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10398 libsuff=32 shlibsuff=N32 libmagic=N32;;
10399 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10400 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10401 *) libsuff= shlibsuff= libmagic=never-match;;
10402 esac
10403 ;;
10404 esac
10405 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10406 shlibpath_overrides_runpath=no
10407 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10408 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10409 hardcode_into_libs=yes
10410 ;;
10411
10412 # No shared lib support for Linux oldld, aout, or coff.
10413 linux*oldld* | linux*aout* | linux*coff*)
10414 dynamic_linker=no
10415 ;;
10416
10417 # This must be Linux ELF.
10418 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10419 version_type=linux
10420 need_lib_prefix=no
10421 need_version=no
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 shlibpath_overrides_runpath=no
10427
10428 # Some binutils ld are patched to set DT_RUNPATH
10429 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 lt_cv_shlibpath_overrides_runpath=no
10433 save_LDFLAGS=$LDFLAGS
10434 save_libdir=$libdir
10435 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10436 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10439
10440 int
10441 main ()
10442 {
10443
10444 ;
10445 return 0;
10446 }
10447 _ACEOF
10448 if ac_fn_c_try_link "$LINENO"; then :
10449 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10450 lt_cv_shlibpath_overrides_runpath=yes
10451 fi
10452 fi
10453 rm -f core conftest.err conftest.$ac_objext \
10454 conftest$ac_exeext conftest.$ac_ext
10455 LDFLAGS=$save_LDFLAGS
10456 libdir=$save_libdir
10457
10458 fi
10459
10460 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10461
10462 # This implies no fast_install, which is unacceptable.
10463 # Some rework will be needed to allow for fast_install
10464 # before this can be enabled.
10465 hardcode_into_libs=yes
10466
10467 # Append ld.so.conf contents to the search path
10468 if test -f /etc/ld.so.conf; then
10469 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' ' '`
10470 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10471 fi
10472
10473 # We used to test for /lib/ld.so.1 and disable shared libraries on
10474 # powerpc, because MkLinux only supported shared libraries with the
10475 # GNU dynamic linker. Since this was broken with cross compilers,
10476 # most powerpc-linux boxes support dynamic linking these days and
10477 # people can always --disable-shared, the test was removed, and we
10478 # assume the GNU/Linux dynamic linker is in use.
10479 dynamic_linker='GNU/Linux ld.so'
10480 ;;
10481
10482 netbsd*)
10483 version_type=sunos
10484 need_lib_prefix=no
10485 need_version=no
10486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10489 dynamic_linker='NetBSD (a.out) ld.so'
10490 else
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 dynamic_linker='NetBSD ld.elf_so'
10494 fi
10495 shlibpath_var=LD_LIBRARY_PATH
10496 shlibpath_overrides_runpath=yes
10497 hardcode_into_libs=yes
10498 ;;
10499
10500 newsos6)
10501 version_type=linux
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath=yes
10505 ;;
10506
10507 *nto* | *qnx*)
10508 version_type=qnx
10509 need_lib_prefix=no
10510 need_version=no
10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath=no
10515 hardcode_into_libs=yes
10516 dynamic_linker='ldqnx.so'
10517 ;;
10518
10519 openbsd*)
10520 version_type=sunos
10521 sys_lib_dlsearch_path_spec="/usr/lib"
10522 need_lib_prefix=no
10523 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10524 case $host_os in
10525 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10526 *) need_version=no ;;
10527 esac
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530 shlibpath_var=LD_LIBRARY_PATH
10531 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10532 case $host_os in
10533 openbsd2.[89] | openbsd2.[89].*)
10534 shlibpath_overrides_runpath=no
10535 ;;
10536 *)
10537 shlibpath_overrides_runpath=yes
10538 ;;
10539 esac
10540 else
10541 shlibpath_overrides_runpath=yes
10542 fi
10543 ;;
10544
10545 os2*)
10546 libname_spec='$name'
10547 shrext_cmds=".dll"
10548 need_lib_prefix=no
10549 library_names_spec='$libname${shared_ext} $libname.a'
10550 dynamic_linker='OS/2 ld.exe'
10551 shlibpath_var=LIBPATH
10552 ;;
10553
10554 osf3* | osf4* | osf5*)
10555 version_type=osf
10556 need_lib_prefix=no
10557 need_version=no
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10562 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10563 ;;
10564
10565 rdos*)
10566 dynamic_linker=no
10567 ;;
10568
10569 solaris*)
10570 version_type=linux
10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10578 # ldd complains unless libraries are executable
10579 postinstall_cmds='chmod +x $lib'
10580 ;;
10581
10582 sunos4*)
10583 version_type=sunos
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 if test "$with_gnu_ld" = yes; then
10589 need_lib_prefix=no
10590 fi
10591 need_version=yes
10592 ;;
10593
10594 sysv4 | sysv4.3*)
10595 version_type=linux
10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 soname_spec='${libname}${release}${shared_ext}$major'
10598 shlibpath_var=LD_LIBRARY_PATH
10599 case $host_vendor in
10600 sni)
10601 shlibpath_overrides_runpath=no
10602 need_lib_prefix=no
10603 runpath_var=LD_RUN_PATH
10604 ;;
10605 siemens)
10606 need_lib_prefix=no
10607 ;;
10608 motorola)
10609 need_lib_prefix=no
10610 need_version=no
10611 shlibpath_overrides_runpath=no
10612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10613 ;;
10614 esac
10615 ;;
10616
10617 sysv4*MP*)
10618 if test -d /usr/nec ;then
10619 version_type=linux
10620 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10621 soname_spec='$libname${shared_ext}.$major'
10622 shlibpath_var=LD_LIBRARY_PATH
10623 fi
10624 ;;
10625
10626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10627 version_type=freebsd-elf
10628 need_lib_prefix=no
10629 need_version=no
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 shlibpath_var=LD_LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10634 hardcode_into_libs=yes
10635 if test "$with_gnu_ld" = yes; then
10636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10637 else
10638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10639 case $host_os in
10640 sco3.2v5*)
10641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10642 ;;
10643 esac
10644 fi
10645 sys_lib_dlsearch_path_spec='/usr/lib'
10646 ;;
10647
10648 tpf*)
10649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10650 version_type=linux
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=no
10656 hardcode_into_libs=yes
10657 ;;
10658
10659 uts4*)
10660 version_type=linux
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 ;;
10665
10666 *)
10667 dynamic_linker=no
10668 ;;
10669 esac
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10671 $as_echo "$dynamic_linker" >&6; }
10672 test "$dynamic_linker" = no && can_build_shared=no
10673
10674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10675 if test "$GCC" = yes; then
10676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10677 fi
10678
10679 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10680 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10681 fi
10682 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10683 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10684 fi
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10779 hardcode_action=
10780 if test -n "$hardcode_libdir_flag_spec" ||
10781 test -n "$runpath_var" ||
10782 test "X$hardcode_automatic" = "Xyes" ; then
10783
10784 # We can hardcode non-existent directories.
10785 if test "$hardcode_direct" != no &&
10786 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10787 # have to relink, otherwise we might link with an installed library
10788 # when we should be linking with a yet-to-be-installed one
10789 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10790 test "$hardcode_minus_L" != no; then
10791 # Linking always hardcodes the temporary library directory.
10792 hardcode_action=relink
10793 else
10794 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10795 hardcode_action=immediate
10796 fi
10797 else
10798 # We cannot hardcode anything, or else we can only hardcode existing
10799 # directories.
10800 hardcode_action=unsupported
10801 fi
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10803 $as_echo "$hardcode_action" >&6; }
10804
10805 if test "$hardcode_action" = relink ||
10806 test "$inherit_rpath" = yes; then
10807 # Fast installation is not supported
10808 enable_fast_install=no
10809 elif test "$shlibpath_overrides_runpath" = yes ||
10810 test "$enable_shared" = no; then
10811 # Fast installation is not necessary
10812 enable_fast_install=needless
10813 fi
10814
10815
10816
10817
10818
10819
10820 if test "x$enable_dlopen" != xyes; then
10821 enable_dlopen=unknown
10822 enable_dlopen_self=unknown
10823 enable_dlopen_self_static=unknown
10824 else
10825 lt_cv_dlopen=no
10826 lt_cv_dlopen_libs=
10827
10828 case $host_os in
10829 beos*)
10830 lt_cv_dlopen="load_add_on"
10831 lt_cv_dlopen_libs=
10832 lt_cv_dlopen_self=yes
10833 ;;
10834
10835 mingw* | pw32* | cegcc*)
10836 lt_cv_dlopen="LoadLibrary"
10837 lt_cv_dlopen_libs=
10838 ;;
10839
10840 cygwin*)
10841 lt_cv_dlopen="dlopen"
10842 lt_cv_dlopen_libs=
10843 ;;
10844
10845 darwin*)
10846 # if libdl is installed we need to link against it
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-ldl $LIBS"
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856
10857 /* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char dlopen ();
10864 int
10865 main ()
10866 {
10867 return dlopen ();
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"; then :
10873 ac_cv_lib_dl_dlopen=yes
10874 else
10875 ac_cv_lib_dl_dlopen=no
10876 fi
10877 rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10880 fi
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10883 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10885 else
10886
10887 lt_cv_dlopen="dyld"
10888 lt_cv_dlopen_libs=
10889 lt_cv_dlopen_self=yes
10890
10891 fi
10892
10893 ;;
10894
10895 *)
10896 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10897 if test "x$ac_cv_func_shl_load" = x""yes; then :
10898 lt_cv_dlopen="shl_load"
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10901 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10902 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 ac_check_lib_save_LIBS=$LIBS
10906 LIBS="-ldld $LIBS"
10907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char shl_load ();
10917 int
10918 main ()
10919 {
10920 return shl_load ();
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"; then :
10926 ac_cv_lib_dld_shl_load=yes
10927 else
10928 ac_cv_lib_dld_shl_load=no
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext \
10931 conftest$ac_exeext conftest.$ac_ext
10932 LIBS=$ac_check_lib_save_LIBS
10933 fi
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10935 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10936 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10937 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10938 else
10939 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10940 if test "x$ac_cv_func_dlopen" = x""yes; then :
10941 lt_cv_dlopen="dlopen"
10942 else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10944 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10945 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948 ac_check_lib_save_LIBS=$LIBS
10949 LIBS="-ldl $LIBS"
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952
10953 /* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char dlopen ();
10960 int
10961 main ()
10962 {
10963 return dlopen ();
10964 ;
10965 return 0;
10966 }
10967 _ACEOF
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_lib_dl_dlopen=yes
10970 else
10971 ac_cv_lib_dl_dlopen=no
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 LIBS=$ac_check_lib_save_LIBS
10976 fi
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10978 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10979 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10981 else
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10983 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10984 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10986 else
10987 ac_check_lib_save_LIBS=$LIBS
10988 LIBS="-lsvld $LIBS"
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10991
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10995 #ifdef __cplusplus
10996 extern "C"
10997 #endif
10998 char dlopen ();
10999 int
11000 main ()
11001 {
11002 return dlopen ();
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_svld_dlopen=yes
11009 else
11010 ac_cv_lib_svld_dlopen=no
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11015 fi
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11017 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11018 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11022 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11023 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-ldld $LIBS"
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030
11031 /* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 char dld_link ();
11038 int
11039 main ()
11040 {
11041 return dld_link ();
11042 ;
11043 return 0;
11044 }
11045 _ACEOF
11046 if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_lib_dld_dld_link=yes
11048 else
11049 ac_cv_lib_dld_dld_link=no
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_lib_save_LIBS
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11056 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11057 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11058 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11059 fi
11060
11061
11062 fi
11063
11064
11065 fi
11066
11067
11068 fi
11069
11070
11071 fi
11072
11073
11074 fi
11075
11076 ;;
11077 esac
11078
11079 if test "x$lt_cv_dlopen" != xno; then
11080 enable_dlopen=yes
11081 else
11082 enable_dlopen=no
11083 fi
11084
11085 case $lt_cv_dlopen in
11086 dlopen)
11087 save_CPPFLAGS="$CPPFLAGS"
11088 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11089
11090 save_LDFLAGS="$LDFLAGS"
11091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11092
11093 save_LIBS="$LIBS"
11094 LIBS="$lt_cv_dlopen_libs $LIBS"
11095
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11097 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11098 if test "${lt_cv_dlopen_self+set}" = set; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 if test "$cross_compiling" = yes; then :
11102 lt_cv_dlopen_self=cross
11103 else
11104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11105 lt_status=$lt_dlunknown
11106 cat > conftest.$ac_ext <<_LT_EOF
11107 #line 11107 "configure"
11108 #include "confdefs.h"
11109
11110 #if HAVE_DLFCN_H
11111 #include <dlfcn.h>
11112 #endif
11113
11114 #include <stdio.h>
11115
11116 #ifdef RTLD_GLOBAL
11117 # define LT_DLGLOBAL RTLD_GLOBAL
11118 #else
11119 # ifdef DL_GLOBAL
11120 # define LT_DLGLOBAL DL_GLOBAL
11121 # else
11122 # define LT_DLGLOBAL 0
11123 # endif
11124 #endif
11125
11126 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11127 find out it does not work in some platform. */
11128 #ifndef LT_DLLAZY_OR_NOW
11129 # ifdef RTLD_LAZY
11130 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11131 # else
11132 # ifdef DL_LAZY
11133 # define LT_DLLAZY_OR_NOW DL_LAZY
11134 # else
11135 # ifdef RTLD_NOW
11136 # define LT_DLLAZY_OR_NOW RTLD_NOW
11137 # else
11138 # ifdef DL_NOW
11139 # define LT_DLLAZY_OR_NOW DL_NOW
11140 # else
11141 # define LT_DLLAZY_OR_NOW 0
11142 # endif
11143 # endif
11144 # endif
11145 # endif
11146 #endif
11147
11148 /* When -fvisbility=hidden is used, assume the code has been annotated
11149 correspondingly for the symbols needed. */
11150 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11151 void fnord () __attribute__((visibility("default")));
11152 #endif
11153
11154 void fnord () { int i=42; }
11155 int main ()
11156 {
11157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11158 int status = $lt_dlunknown;
11159
11160 if (self)
11161 {
11162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11163 else
11164 {
11165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11166 else puts (dlerror ());
11167 }
11168 /* dlclose (self); */
11169 }
11170 else
11171 puts (dlerror ());
11172
11173 return status;
11174 }
11175 _LT_EOF
11176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11177 (eval $ac_link) 2>&5
11178 ac_status=$?
11179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11181 (./conftest; exit; ) >&5 2>/dev/null
11182 lt_status=$?
11183 case x$lt_status in
11184 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11185 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11186 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11187 esac
11188 else :
11189 # compilation failed
11190 lt_cv_dlopen_self=no
11191 fi
11192 fi
11193 rm -fr conftest*
11194
11195
11196 fi
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11198 $as_echo "$lt_cv_dlopen_self" >&6; }
11199
11200 if test "x$lt_cv_dlopen_self" = xyes; then
11201 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11203 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11204 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207 if test "$cross_compiling" = yes; then :
11208 lt_cv_dlopen_self_static=cross
11209 else
11210 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11211 lt_status=$lt_dlunknown
11212 cat > conftest.$ac_ext <<_LT_EOF
11213 #line 11213 "configure"
11214 #include "confdefs.h"
11215
11216 #if HAVE_DLFCN_H
11217 #include <dlfcn.h>
11218 #endif
11219
11220 #include <stdio.h>
11221
11222 #ifdef RTLD_GLOBAL
11223 # define LT_DLGLOBAL RTLD_GLOBAL
11224 #else
11225 # ifdef DL_GLOBAL
11226 # define LT_DLGLOBAL DL_GLOBAL
11227 # else
11228 # define LT_DLGLOBAL 0
11229 # endif
11230 #endif
11231
11232 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11233 find out it does not work in some platform. */
11234 #ifndef LT_DLLAZY_OR_NOW
11235 # ifdef RTLD_LAZY
11236 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11237 # else
11238 # ifdef DL_LAZY
11239 # define LT_DLLAZY_OR_NOW DL_LAZY
11240 # else
11241 # ifdef RTLD_NOW
11242 # define LT_DLLAZY_OR_NOW RTLD_NOW
11243 # else
11244 # ifdef DL_NOW
11245 # define LT_DLLAZY_OR_NOW DL_NOW
11246 # else
11247 # define LT_DLLAZY_OR_NOW 0
11248 # endif
11249 # endif
11250 # endif
11251 # endif
11252 #endif
11253
11254 /* When -fvisbility=hidden is used, assume the code has been annotated
11255 correspondingly for the symbols needed. */
11256 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11257 void fnord () __attribute__((visibility("default")));
11258 #endif
11259
11260 void fnord () { int i=42; }
11261 int main ()
11262 {
11263 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11264 int status = $lt_dlunknown;
11265
11266 if (self)
11267 {
11268 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11269 else
11270 {
11271 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11272 else puts (dlerror ());
11273 }
11274 /* dlclose (self); */
11275 }
11276 else
11277 puts (dlerror ());
11278
11279 return status;
11280 }
11281 _LT_EOF
11282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11283 (eval $ac_link) 2>&5
11284 ac_status=$?
11285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11286 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11287 (./conftest; exit; ) >&5 2>/dev/null
11288 lt_status=$?
11289 case x$lt_status in
11290 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11291 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11292 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11293 esac
11294 else :
11295 # compilation failed
11296 lt_cv_dlopen_self_static=no
11297 fi
11298 fi
11299 rm -fr conftest*
11300
11301
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11304 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11305 fi
11306
11307 CPPFLAGS="$save_CPPFLAGS"
11308 LDFLAGS="$save_LDFLAGS"
11309 LIBS="$save_LIBS"
11310 ;;
11311 esac
11312
11313 case $lt_cv_dlopen_self in
11314 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11315 *) enable_dlopen_self=unknown ;;
11316 esac
11317
11318 case $lt_cv_dlopen_self_static in
11319 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11320 *) enable_dlopen_self_static=unknown ;;
11321 esac
11322 fi
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340 striplib=
11341 old_striplib=
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11343 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11344 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11345 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11346 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11348 $as_echo "yes" >&6; }
11349 else
11350 # FIXME - insert some real tests, host_os isn't really good enough
11351 case $host_os in
11352 darwin*)
11353 if test -n "$STRIP" ; then
11354 striplib="$STRIP -x"
11355 old_striplib="$STRIP -S"
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11357 $as_echo "yes" >&6; }
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11361 fi
11362 ;;
11363 *)
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11366 ;;
11367 esac
11368 fi
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381 # Report which library types will actually be built
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11383 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11385 $as_echo "$can_build_shared" >&6; }
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11388 $as_echo_n "checking whether to build shared libraries... " >&6; }
11389 test "$can_build_shared" = "no" && enable_shared=no
11390
11391 # On AIX, shared libraries and static libraries use the same namespace, and
11392 # are all built from PIC.
11393 case $host_os in
11394 aix3*)
11395 test "$enable_shared" = yes && enable_static=no
11396 if test -n "$RANLIB"; then
11397 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11398 postinstall_cmds='$RANLIB $lib'
11399 fi
11400 ;;
11401
11402 aix[4-9]*)
11403 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11404 test "$enable_shared" = yes && enable_static=no
11405 fi
11406 ;;
11407 esac
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11409 $as_echo "$enable_shared" >&6; }
11410
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11412 $as_echo_n "checking whether to build static libraries... " >&6; }
11413 # Make sure either enable_shared or enable_static is yes.
11414 test "$enable_shared" = yes || enable_static=yes
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11416 $as_echo "$enable_static" >&6; }
11417
11418
11419
11420
11421 fi
11422 ac_ext=c
11423 ac_cpp='$CPP $CPPFLAGS'
11424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11427
11428 CC="$lt_save_CC"
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442 # Source file extension for Go test sources.
11443 ac_ext=go
11444
11445 # Object file extension for compiled Go test sources.
11446 objext=o
11447 objext_GO=$objext
11448
11449 # Code to be used in simple compile tests
11450 lt_simple_compile_test_code="package main; func main() { }"
11451
11452 # Code to be used in simple link tests
11453 lt_simple_link_test_code='package main; func main() { }'
11454
11455 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11456
11457
11458
11459
11460
11461
11462 # If no C compiler was specified, use CC.
11463 LTCC=${LTCC-"$CC"}
11464
11465 # If no C compiler flags were specified, use CFLAGS.
11466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11467
11468 # Allow CC to be a program name with arguments.
11469 compiler=$CC
11470
11471
11472 # save warnings/boilerplate of simple test code
11473 ac_outfile=conftest.$ac_objext
11474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11476 _lt_compiler_boilerplate=`cat conftest.err`
11477 $RM conftest*
11478
11479 ac_outfile=conftest.$ac_objext
11480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11482 _lt_linker_boilerplate=`cat conftest.err`
11483 $RM -r conftest*
11484
11485
11486 # Allow CC to be a program name with arguments.
11487 lt_save_CC="$CC"
11488 lt_save_GCC="$GCC"
11489 GCC=yes
11490 CC=${GOC-"gccgo"}
11491 compiler=$CC
11492 compiler_GO=$CC
11493 LD_GO="$LD"
11494 for cc_temp in $compiler""; do
11495 case $cc_temp in
11496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11498 \-*) ;;
11499 *) break;;
11500 esac
11501 done
11502 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11503
11504
11505 # Go did not exist at the time GCC didn't implicitly link libc in.
11506 archive_cmds_need_lc_GO=no
11507
11508 old_archive_cmds_GO=$old_archive_cmds
11509
11510 ## CAVEAT EMPTOR:
11511 ## There is no encapsulation within the following macros, do not change
11512 ## the running order or otherwise move them around unless you know exactly
11513 ## what you are doing...
11514 if test -n "$compiler"; then
11515
11516 lt_prog_compiler_no_builtin_flag_GO=
11517
11518 if test "$GCC" = yes; then
11519 case $cc_basename in
11520 nvcc*)
11521 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11522 *)
11523 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11524 esac
11525
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11527 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 lt_cv_prog_compiler_rtti_exceptions=no
11532 ac_outfile=conftest.$ac_objext
11533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11534 lt_compiler_flag="-fno-rtti -fno-exceptions"
11535 # Insert the option either (1) after the last *FLAGS variable, or
11536 # (2) before a word containing "conftest.", or (3) at the end.
11537 # Note that $ac_compile itself does not contain backslashes and begins
11538 # with a dollar sign (not a hyphen), so the echo should work correctly.
11539 # The option is referenced via a variable to avoid confusing sed.
11540 lt_compile=`echo "$ac_compile" | $SED \
11541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11543 -e 's:$: $lt_compiler_flag:'`
11544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11545 (eval "$lt_compile" 2>conftest.err)
11546 ac_status=$?
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 if (exit $ac_status) && test -s "$ac_outfile"; then
11550 # The compiler can only warn and ignore the option if not recognized
11551 # So say no if there are warnings other than the usual output.
11552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11555 lt_cv_prog_compiler_rtti_exceptions=yes
11556 fi
11557 fi
11558 $RM conftest*
11559
11560 fi
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11562 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11563
11564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11565 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11566 else
11567 :
11568 fi
11569
11570 fi
11571
11572
11573
11574 lt_prog_compiler_wl_GO=
11575 lt_prog_compiler_pic_GO=
11576 lt_prog_compiler_static_GO=
11577
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11579 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11580
11581 if test "$GCC" = yes; then
11582 lt_prog_compiler_wl_GO='-Wl,'
11583 lt_prog_compiler_static_GO='-static'
11584
11585 case $host_os in
11586 aix*)
11587 # All AIX code is PIC.
11588 if test "$host_cpu" = ia64; then
11589 # AIX 5 now supports IA64 processor
11590 lt_prog_compiler_static_GO='-Bstatic'
11591 fi
11592 ;;
11593
11594 amigaos*)
11595 case $host_cpu in
11596 powerpc)
11597 # see comment about AmigaOS4 .so support
11598 lt_prog_compiler_pic_GO='-fPIC'
11599 ;;
11600 m68k)
11601 # FIXME: we need at least 68020 code to build shared libraries, but
11602 # adding the `-m68020' flag to GCC prevents building anything better,
11603 # like `-m68040'.
11604 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11605 ;;
11606 esac
11607 ;;
11608
11609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11610 # PIC is the default for these OSes.
11611 ;;
11612
11613 mingw* | cygwin* | pw32* | os2* | cegcc*)
11614 # This hack is so that the source file can tell whether it is being
11615 # built for inclusion in a dll (and should export symbols for example).
11616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11617 # (--disable-auto-import) libraries
11618 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11619 ;;
11620
11621 darwin* | rhapsody*)
11622 # PIC is the default on this platform
11623 # Common symbols not allowed in MH_DYLIB files
11624 lt_prog_compiler_pic_GO='-fno-common'
11625 ;;
11626
11627 haiku*)
11628 # PIC is the default for Haiku.
11629 # The "-static" flag exists, but is broken.
11630 lt_prog_compiler_static_GO=
11631 ;;
11632
11633 hpux*)
11634 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11635 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11636 # sets the default TLS model and affects inlining.
11637 case $host_cpu in
11638 hppa*64*)
11639 # +Z the default
11640 ;;
11641 *)
11642 lt_prog_compiler_pic_GO='-fPIC'
11643 ;;
11644 esac
11645 ;;
11646
11647 interix[3-9]*)
11648 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11649 # Instead, we relocate shared libraries at runtime.
11650 ;;
11651
11652 msdosdjgpp*)
11653 # Just because we use GCC doesn't mean we suddenly get shared libraries
11654 # on systems that don't support them.
11655 lt_prog_compiler_can_build_shared_GO=no
11656 enable_shared=no
11657 ;;
11658
11659 *nto* | *qnx*)
11660 # QNX uses GNU C++, but need to define -shared option too, otherwise
11661 # it will coredump.
11662 lt_prog_compiler_pic_GO='-fPIC -shared'
11663 ;;
11664
11665 sysv4*MP*)
11666 if test -d /usr/nec; then
11667 lt_prog_compiler_pic_GO=-Kconform_pic
11668 fi
11669 ;;
11670
11671 *)
11672 lt_prog_compiler_pic_GO='-fPIC'
11673 ;;
11674 esac
11675
11676 case $cc_basename in
11677 nvcc*) # Cuda Compiler Driver 2.2
11678 lt_prog_compiler_wl_GO='-Xlinker '
11679 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11680 ;;
11681 esac
11682 else
11683 # PORTME Check for flag to pass linker flags through the system compiler.
11684 case $host_os in
11685 aix*)
11686 lt_prog_compiler_wl_GO='-Wl,'
11687 if test "$host_cpu" = ia64; then
11688 # AIX 5 now supports IA64 processor
11689 lt_prog_compiler_static_GO='-Bstatic'
11690 else
11691 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11692 fi
11693 ;;
11694
11695 mingw* | cygwin* | pw32* | os2* | cegcc*)
11696 # This hack is so that the source file can tell whether it is being
11697 # built for inclusion in a dll (and should export symbols for example).
11698 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11699 ;;
11700
11701 hpux9* | hpux10* | hpux11*)
11702 lt_prog_compiler_wl_GO='-Wl,'
11703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11704 # not for PA HP-UX.
11705 case $host_cpu in
11706 hppa*64*|ia64*)
11707 # +Z the default
11708 ;;
11709 *)
11710 lt_prog_compiler_pic_GO='+Z'
11711 ;;
11712 esac
11713 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11714 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11715 ;;
11716
11717 irix5* | irix6* | nonstopux*)
11718 lt_prog_compiler_wl_GO='-Wl,'
11719 # PIC (with -KPIC) is the default.
11720 lt_prog_compiler_static_GO='-non_shared'
11721 ;;
11722
11723 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11724 case $cc_basename in
11725 # old Intel for x86_64 which still supported -KPIC.
11726 ecc*)
11727 lt_prog_compiler_wl_GO='-Wl,'
11728 lt_prog_compiler_pic_GO='-KPIC'
11729 lt_prog_compiler_static_GO='-static'
11730 ;;
11731 # icc used to be incompatible with GCC.
11732 # ICC 10 doesn't accept -KPIC any more.
11733 icc* | ifort*)
11734 lt_prog_compiler_wl_GO='-Wl,'
11735 lt_prog_compiler_pic_GO='-fPIC'
11736 lt_prog_compiler_static_GO='-static'
11737 ;;
11738 # Lahey Fortran 8.1.
11739 lf95*)
11740 lt_prog_compiler_wl_GO='-Wl,'
11741 lt_prog_compiler_pic_GO='--shared'
11742 lt_prog_compiler_static_GO='--static'
11743 ;;
11744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11745 # Portland Group compilers (*not* the Pentium gcc compiler,
11746 # which looks to be a dead project)
11747 lt_prog_compiler_wl_GO='-Wl,'
11748 lt_prog_compiler_pic_GO='-fpic'
11749 lt_prog_compiler_static_GO='-Bstatic'
11750 ;;
11751 ccc*)
11752 lt_prog_compiler_wl_GO='-Wl,'
11753 # All Alpha code is PIC.
11754 lt_prog_compiler_static_GO='-non_shared'
11755 ;;
11756 xl* | bgxl* | bgf* | mpixl*)
11757 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11758 lt_prog_compiler_wl_GO='-Wl,'
11759 lt_prog_compiler_pic_GO='-qpic'
11760 lt_prog_compiler_static_GO='-qstaticlink'
11761 ;;
11762 *)
11763 case `$CC -V 2>&1 | sed 5q` in
11764 *Sun\ F* | *Sun*Fortran*)
11765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11766 lt_prog_compiler_pic_GO='-KPIC'
11767 lt_prog_compiler_static_GO='-Bstatic'
11768 lt_prog_compiler_wl_GO=''
11769 ;;
11770 *Sun\ C*)
11771 # Sun C 5.9
11772 lt_prog_compiler_pic_GO='-KPIC'
11773 lt_prog_compiler_static_GO='-Bstatic'
11774 lt_prog_compiler_wl_GO='-Wl,'
11775 ;;
11776 esac
11777 ;;
11778 esac
11779 ;;
11780
11781 newsos6)
11782 lt_prog_compiler_pic_GO='-KPIC'
11783 lt_prog_compiler_static_GO='-Bstatic'
11784 ;;
11785
11786 *nto* | *qnx*)
11787 # QNX uses GNU C++, but need to define -shared option too, otherwise
11788 # it will coredump.
11789 lt_prog_compiler_pic_GO='-fPIC -shared'
11790 ;;
11791
11792 osf3* | osf4* | osf5*)
11793 lt_prog_compiler_wl_GO='-Wl,'
11794 # All OSF/1 code is PIC.
11795 lt_prog_compiler_static_GO='-non_shared'
11796 ;;
11797
11798 rdos*)
11799 lt_prog_compiler_static_GO='-non_shared'
11800 ;;
11801
11802 solaris*)
11803 lt_prog_compiler_pic_GO='-KPIC'
11804 lt_prog_compiler_static_GO='-Bstatic'
11805 case $cc_basename in
11806 f77* | f90* | f95*)
11807 lt_prog_compiler_wl_GO='-Qoption ld ';;
11808 *)
11809 lt_prog_compiler_wl_GO='-Wl,';;
11810 esac
11811 ;;
11812
11813 sunos4*)
11814 lt_prog_compiler_wl_GO='-Qoption ld '
11815 lt_prog_compiler_pic_GO='-PIC'
11816 lt_prog_compiler_static_GO='-Bstatic'
11817 ;;
11818
11819 sysv4 | sysv4.2uw2* | sysv4.3*)
11820 lt_prog_compiler_wl_GO='-Wl,'
11821 lt_prog_compiler_pic_GO='-KPIC'
11822 lt_prog_compiler_static_GO='-Bstatic'
11823 ;;
11824
11825 sysv4*MP*)
11826 if test -d /usr/nec ;then
11827 lt_prog_compiler_pic_GO='-Kconform_pic'
11828 lt_prog_compiler_static_GO='-Bstatic'
11829 fi
11830 ;;
11831
11832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11833 lt_prog_compiler_wl_GO='-Wl,'
11834 lt_prog_compiler_pic_GO='-KPIC'
11835 lt_prog_compiler_static_GO='-Bstatic'
11836 ;;
11837
11838 unicos*)
11839 lt_prog_compiler_wl_GO='-Wl,'
11840 lt_prog_compiler_can_build_shared_GO=no
11841 ;;
11842
11843 uts4*)
11844 lt_prog_compiler_pic_GO='-pic'
11845 lt_prog_compiler_static_GO='-Bstatic'
11846 ;;
11847
11848 *)
11849 lt_prog_compiler_can_build_shared_GO=no
11850 ;;
11851 esac
11852 fi
11853
11854 case $host_os in
11855 # For platforms which do not support PIC, -DPIC is meaningless:
11856 *djgpp*)
11857 lt_prog_compiler_pic_GO=
11858 ;;
11859 *)
11860 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11861 ;;
11862 esac
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11864 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11865
11866
11867
11868 #
11869 # Check to make sure the PIC flag actually works.
11870 #
11871 if test -n "$lt_prog_compiler_pic_GO"; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11873 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11874 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
11876 else
11877 lt_cv_prog_compiler_pic_works_GO=no
11878 ac_outfile=conftest.$ac_objext
11879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11880 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11881 # Insert the option either (1) after the last *FLAGS variable, or
11882 # (2) before a word containing "conftest.", or (3) at the end.
11883 # Note that $ac_compile itself does not contain backslashes and begins
11884 # with a dollar sign (not a hyphen), so the echo should work correctly.
11885 # The option is referenced via a variable to avoid confusing sed.
11886 lt_compile=`echo "$ac_compile" | $SED \
11887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11889 -e 's:$: $lt_compiler_flag:'`
11890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11891 (eval "$lt_compile" 2>conftest.err)
11892 ac_status=$?
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 if (exit $ac_status) && test -s "$ac_outfile"; then
11896 # The compiler can only warn and ignore the option if not recognized
11897 # So say no if there are warnings other than the usual output.
11898 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11899 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11900 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11901 lt_cv_prog_compiler_pic_works_GO=yes
11902 fi
11903 fi
11904 $RM conftest*
11905
11906 fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11908 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11909
11910 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11911 case $lt_prog_compiler_pic_GO in
11912 "" | " "*) ;;
11913 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11914 esac
11915 else
11916 lt_prog_compiler_pic_GO=
11917 lt_prog_compiler_can_build_shared_GO=no
11918 fi
11919
11920 fi
11921
11922
11923
11924 #
11925 # Check to make sure the static flag actually works.
11926 #
11927 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11929 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11930 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 lt_cv_prog_compiler_static_works_GO=no
11934 save_LDFLAGS="$LDFLAGS"
11935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11938 # The linker can only warn and ignore the option if not recognized
11939 # So say no if there are warnings
11940 if test -s conftest.err; then
11941 # Append any errors to the config.log.
11942 cat conftest.err 1>&5
11943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11945 if diff conftest.exp conftest.er2 >/dev/null; then
11946 lt_cv_prog_compiler_static_works_GO=yes
11947 fi
11948 else
11949 lt_cv_prog_compiler_static_works_GO=yes
11950 fi
11951 fi
11952 $RM -r conftest*
11953 LDFLAGS="$save_LDFLAGS"
11954
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11957 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11958
11959 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11960 :
11961 else
11962 lt_prog_compiler_static_GO=
11963 fi
11964
11965
11966
11967
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11969 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11970 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 lt_cv_prog_compiler_c_o_GO=no
11974 $RM -r conftest 2>/dev/null
11975 mkdir conftest
11976 cd conftest
11977 mkdir out
11978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11979
11980 lt_compiler_flag="-o out/conftest2.$ac_objext"
11981 # Insert the option either (1) after the last *FLAGS variable, or
11982 # (2) before a word containing "conftest.", or (3) at the end.
11983 # Note that $ac_compile itself does not contain backslashes and begins
11984 # with a dollar sign (not a hyphen), so the echo should work correctly.
11985 lt_compile=`echo "$ac_compile" | $SED \
11986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11988 -e 's:$: $lt_compiler_flag:'`
11989 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11990 (eval "$lt_compile" 2>out/conftest.err)
11991 ac_status=$?
11992 cat out/conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11995 then
11996 # The compiler can only warn and ignore the option if not recognized
11997 # So say no if there are warnings
11998 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11999 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12000 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12001 lt_cv_prog_compiler_c_o_GO=yes
12002 fi
12003 fi
12004 chmod u+w . 2>&5
12005 $RM conftest*
12006 # SGI C++ compiler will create directory out/ii_files/ for
12007 # template instantiation
12008 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12009 $RM out/* && rmdir out
12010 cd ..
12011 $RM -r conftest
12012 $RM conftest*
12013
12014 fi
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12016 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12017
12018
12019
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12022 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 lt_cv_prog_compiler_c_o_GO=no
12026 $RM -r conftest 2>/dev/null
12027 mkdir conftest
12028 cd conftest
12029 mkdir out
12030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12031
12032 lt_compiler_flag="-o out/conftest2.$ac_objext"
12033 # Insert the option either (1) after the last *FLAGS variable, or
12034 # (2) before a word containing "conftest.", or (3) at the end.
12035 # Note that $ac_compile itself does not contain backslashes and begins
12036 # with a dollar sign (not a hyphen), so the echo should work correctly.
12037 lt_compile=`echo "$ac_compile" | $SED \
12038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12040 -e 's:$: $lt_compiler_flag:'`
12041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12042 (eval "$lt_compile" 2>out/conftest.err)
12043 ac_status=$?
12044 cat out/conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12047 then
12048 # The compiler can only warn and ignore the option if not recognized
12049 # So say no if there are warnings
12050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12053 lt_cv_prog_compiler_c_o_GO=yes
12054 fi
12055 fi
12056 chmod u+w . 2>&5
12057 $RM conftest*
12058 # SGI C++ compiler will create directory out/ii_files/ for
12059 # template instantiation
12060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12061 $RM out/* && rmdir out
12062 cd ..
12063 $RM -r conftest
12064 $RM conftest*
12065
12066 fi
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12068 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12069
12070
12071
12072
12073 hard_links="nottested"
12074 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12075 # do not overwrite the value of need_locks provided by the user
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12077 $as_echo_n "checking if we can lock with hard links... " >&6; }
12078 hard_links=yes
12079 $RM conftest*
12080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12081 touch conftest.a
12082 ln conftest.a conftest.b 2>&5 || hard_links=no
12083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12085 $as_echo "$hard_links" >&6; }
12086 if test "$hard_links" = no; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12088 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12089 need_locks=warn
12090 fi
12091 else
12092 need_locks=no
12093 fi
12094
12095
12096
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12099
12100 runpath_var=
12101 allow_undefined_flag_GO=
12102 always_export_symbols_GO=no
12103 archive_cmds_GO=
12104 archive_expsym_cmds_GO=
12105 compiler_needs_object_GO=no
12106 enable_shared_with_static_runtimes_GO=no
12107 export_dynamic_flag_spec_GO=
12108 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12109 hardcode_automatic_GO=no
12110 hardcode_direct_GO=no
12111 hardcode_direct_absolute_GO=no
12112 hardcode_libdir_flag_spec_GO=
12113 hardcode_libdir_flag_spec_ld_GO=
12114 hardcode_libdir_separator_GO=
12115 hardcode_minus_L_GO=no
12116 hardcode_shlibpath_var_GO=unsupported
12117 inherit_rpath_GO=no
12118 link_all_deplibs_GO=unknown
12119 module_cmds_GO=
12120 module_expsym_cmds_GO=
12121 old_archive_from_new_cmds_GO=
12122 old_archive_from_expsyms_cmds_GO=
12123 thread_safe_flag_spec_GO=
12124 whole_archive_flag_spec_GO=
12125 # include_expsyms should be a list of space-separated symbols to be *always*
12126 # included in the symbol list
12127 include_expsyms_GO=
12128 # exclude_expsyms can be an extended regexp of symbols to exclude
12129 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12130 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12131 # as well as any symbol that contains `d'.
12132 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12134 # platforms (ab)use it in PIC code, but their linkers get confused if
12135 # the symbol is explicitly referenced. Since portable code cannot
12136 # rely on this symbol name, it's probably fine to never include it in
12137 # preloaded symbol tables.
12138 # Exclude shared library initialization/finalization symbols.
12139 extract_expsyms_cmds=
12140
12141 case $host_os in
12142 cygwin* | mingw* | pw32* | cegcc*)
12143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12144 # When not using gcc, we currently assume that we are using
12145 # Microsoft Visual C++.
12146 if test "$GCC" != yes; then
12147 with_gnu_ld=no
12148 fi
12149 ;;
12150 interix*)
12151 # we just hope/assume this is gcc and not c89 (= MSVC++)
12152 with_gnu_ld=yes
12153 ;;
12154 openbsd*)
12155 with_gnu_ld=no
12156 ;;
12157 esac
12158
12159 ld_shlibs_GO=yes
12160
12161 # On some targets, GNU ld is compatible enough with the native linker
12162 # that we're better off using the native interface for both.
12163 lt_use_gnu_ld_interface=no
12164 if test "$with_gnu_ld" = yes; then
12165 case $host_os in
12166 aix*)
12167 # The AIX port of GNU ld has always aspired to compatibility
12168 # with the native linker. However, as the warning in the GNU ld
12169 # block says, versions before 2.19.5* couldn't really create working
12170 # shared libraries, regardless of the interface used.
12171 case `$LD -v 2>&1` in
12172 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12173 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12174 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12175 *)
12176 lt_use_gnu_ld_interface=yes
12177 ;;
12178 esac
12179 ;;
12180 *)
12181 lt_use_gnu_ld_interface=yes
12182 ;;
12183 esac
12184 fi
12185
12186 if test "$lt_use_gnu_ld_interface" = yes; then
12187 # If archive_cmds runs LD, not CC, wlarc should be empty
12188 wlarc='${wl}'
12189
12190 # Set some defaults for GNU ld with shared library support. These
12191 # are reset later if shared libraries are not supported. Putting them
12192 # here allows them to be overridden if necessary.
12193 runpath_var=LD_RUN_PATH
12194 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12195 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12196 # ancient GNU ld didn't support --whole-archive et. al.
12197 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12198 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12199 else
12200 whole_archive_flag_spec_GO=
12201 fi
12202 supports_anon_versioning=no
12203 case `$LD -v 2>&1` in
12204 *GNU\ gold*) supports_anon_versioning=yes ;;
12205 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12208 *\ 2.11.*) ;; # other 2.11 versions
12209 *) supports_anon_versioning=yes ;;
12210 esac
12211
12212 # See if GNU ld supports shared libraries.
12213 case $host_os in
12214 aix[3-9]*)
12215 # On AIX/PPC, the GNU linker is very broken
12216 if test "$host_cpu" != ia64; then
12217 ld_shlibs_GO=no
12218 cat <<_LT_EOF 1>&2
12219
12220 *** Warning: the GNU linker, at least up to release 2.19, is reported
12221 *** to be unable to reliably create shared libraries on AIX.
12222 *** Therefore, libtool is disabling shared libraries support. If you
12223 *** really care for shared libraries, you may want to install binutils
12224 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12225 *** You will then need to restart the configuration process.
12226
12227 _LT_EOF
12228 fi
12229 ;;
12230
12231 amigaos*)
12232 case $host_cpu in
12233 powerpc)
12234 # see comment about AmigaOS4 .so support
12235 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12236 archive_expsym_cmds_GO=''
12237 ;;
12238 m68k)
12239 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)'
12240 hardcode_libdir_flag_spec_GO='-L$libdir'
12241 hardcode_minus_L_GO=yes
12242 ;;
12243 esac
12244 ;;
12245
12246 beos*)
12247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12248 allow_undefined_flag_GO=unsupported
12249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12250 # support --undefined. This deserves some investigation. FIXME
12251 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252 else
12253 ld_shlibs_GO=no
12254 fi
12255 ;;
12256
12257 cygwin* | mingw* | pw32* | cegcc*)
12258 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12259 # as there is no search path for DLLs.
12260 hardcode_libdir_flag_spec_GO='-L$libdir'
12261 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12262 allow_undefined_flag_GO=unsupported
12263 always_export_symbols_GO=no
12264 enable_shared_with_static_runtimes_GO=yes
12265 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12266
12267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12268 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12269 # If the export-symbols file already is a .def file (1st line
12270 # is EXPORTS), use it as is; otherwise, prepend...
12271 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12272 cp $export_symbols $output_objdir/$soname.def;
12273 else
12274 echo EXPORTS > $output_objdir/$soname.def;
12275 cat $export_symbols >> $output_objdir/$soname.def;
12276 fi~
12277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12278 else
12279 ld_shlibs_GO=no
12280 fi
12281 ;;
12282
12283 haiku*)
12284 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12285 link_all_deplibs_GO=yes
12286 ;;
12287
12288 interix[3-9]*)
12289 hardcode_direct_GO=no
12290 hardcode_shlibpath_var_GO=no
12291 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12292 export_dynamic_flag_spec_GO='${wl}-E'
12293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12294 # Instead, shared libraries are loaded at an image base (0x10000000 by
12295 # default) and relocated if they conflict, which is a slow very memory
12296 # consuming and fragmenting process. To avoid this, we pick a random,
12297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12299 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'
12300 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'
12301 ;;
12302
12303 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12304 tmp_diet=no
12305 if test "$host_os" = linux-dietlibc; then
12306 case $cc_basename in
12307 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12308 esac
12309 fi
12310 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12311 && test "$tmp_diet" = no
12312 then
12313 tmp_addflag=
12314 tmp_sharedflag='-shared'
12315 case $cc_basename,$host_cpu in
12316 pgcc*) # Portland Group C compiler
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'
12319 ;;
12320 pgf77* | pgf90* | pgf95* | pgfortran*)
12321 # Portland Group f77 and f90 compilers
12322 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'
12323 tmp_addflag=' $pic_flag -Mnomain' ;;
12324 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12325 tmp_addflag=' -i_dynamic' ;;
12326 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12327 tmp_addflag=' -i_dynamic -nofor_main' ;;
12328 ifc* | ifort*) # Intel Fortran compiler
12329 tmp_addflag=' -nofor_main' ;;
12330 lf95*) # Lahey Fortran 8.1
12331 whole_archive_flag_spec_GO=
12332 tmp_sharedflag='--shared' ;;
12333 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12334 tmp_sharedflag='-qmkshrobj'
12335 tmp_addflag= ;;
12336 nvcc*) # Cuda Compiler Driver 2.2
12337 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'
12338 compiler_needs_object_GO=yes
12339 ;;
12340 esac
12341 case `$CC -V 2>&1 | sed 5q` in
12342 *Sun\ C*) # Sun C 5.9
12343 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'
12344 compiler_needs_object_GO=yes
12345 tmp_sharedflag='-G' ;;
12346 *Sun\ F*) # Sun Fortran 8.3
12347 tmp_sharedflag='-G' ;;
12348 esac
12349 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350
12351 if test "x$supports_anon_versioning" = xyes; then
12352 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12354 echo "local: *; };" >> $output_objdir/$libname.ver~
12355 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12356 fi
12357
12358 case $cc_basename in
12359 xlf* | bgf* | bgxlf* | mpixlf*)
12360 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12361 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12362 hardcode_libdir_flag_spec_GO=
12363 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12364 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12365 if test "x$supports_anon_versioning" = xyes; then
12366 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12368 echo "local: *; };" >> $output_objdir/$libname.ver~
12369 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12370 fi
12371 ;;
12372 esac
12373 else
12374 ld_shlibs_GO=no
12375 fi
12376 ;;
12377
12378 netbsd*)
12379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12380 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12381 wlarc=
12382 else
12383 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12384 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12385 fi
12386 ;;
12387
12388 solaris*)
12389 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12390 ld_shlibs_GO=no
12391 cat <<_LT_EOF 1>&2
12392
12393 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12394 *** create shared libraries on Solaris systems. Therefore, libtool
12395 *** is disabling shared libraries support. We urge you to upgrade GNU
12396 *** binutils to release 2.9.1 or newer. Another option is to modify
12397 *** your PATH or compiler configuration so that the native linker is
12398 *** used, and then restart.
12399
12400 _LT_EOF
12401 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12402 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12403 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12404 else
12405 ld_shlibs_GO=no
12406 fi
12407 ;;
12408
12409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12410 case `$LD -v 2>&1` in
12411 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12412 ld_shlibs_GO=no
12413 cat <<_LT_EOF 1>&2
12414
12415 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12416 *** reliably create shared libraries on SCO systems. Therefore, libtool
12417 *** is disabling shared libraries support. We urge you to upgrade GNU
12418 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12419 *** your PATH or compiler configuration so that the native linker is
12420 *** used, and then restart.
12421
12422 _LT_EOF
12423 ;;
12424 *)
12425 # For security reasons, it is highly recommended that you always
12426 # use absolute paths for naming shared libraries, and exclude the
12427 # DT_RUNPATH tag from executables and libraries. But doing so
12428 # requires that you compile everything twice, which is a pain.
12429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12430 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12431 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12432 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12433 else
12434 ld_shlibs_GO=no
12435 fi
12436 ;;
12437 esac
12438 ;;
12439
12440 sunos4*)
12441 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12442 wlarc=
12443 hardcode_direct_GO=yes
12444 hardcode_shlibpath_var_GO=no
12445 ;;
12446
12447 *)
12448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12449 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12450 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12451 else
12452 ld_shlibs_GO=no
12453 fi
12454 ;;
12455 esac
12456
12457 if test "$ld_shlibs_GO" = no; then
12458 runpath_var=
12459 hardcode_libdir_flag_spec_GO=
12460 export_dynamic_flag_spec_GO=
12461 whole_archive_flag_spec_GO=
12462 fi
12463 else
12464 # PORTME fill in a description of your system's linker (not GNU ld)
12465 case $host_os in
12466 aix3*)
12467 allow_undefined_flag_GO=unsupported
12468 always_export_symbols_GO=yes
12469 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'
12470 # Note: this linker hardcodes the directories in LIBPATH if there
12471 # are no directories specified by -L.
12472 hardcode_minus_L_GO=yes
12473 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12474 # Neither direct hardcoding nor static linking is supported with a
12475 # broken collect2.
12476 hardcode_direct_GO=unsupported
12477 fi
12478 ;;
12479
12480 aix[4-9]*)
12481 if test "$host_cpu" = ia64; then
12482 # On IA64, the linker does run time linking by default, so we don't
12483 # have to do anything special.
12484 aix_use_runtimelinking=no
12485 exp_sym_flag='-Bexport'
12486 no_entry_flag=""
12487 else
12488 # If we're using GNU nm, then we don't want the "-C" option.
12489 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12490 # Also, AIX nm treats weak defined symbols like other global
12491 # defined symbols, whereas GNU nm marks them as "W".
12492 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12493 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'
12494 else
12495 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'
12496 fi
12497 aix_use_runtimelinking=no
12498
12499 # Test if we are trying to use run time linking or normal
12500 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12501 # need to do runtime linking.
12502 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12503 for ld_flag in $LDFLAGS; do
12504 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12505 aix_use_runtimelinking=yes
12506 break
12507 fi
12508 done
12509 ;;
12510 esac
12511
12512 exp_sym_flag='-bexport'
12513 no_entry_flag='-bnoentry'
12514 fi
12515
12516 # When large executables or shared objects are built, AIX ld can
12517 # have problems creating the table of contents. If linking a library
12518 # or program results in "error TOC overflow" add -mminimal-toc to
12519 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12520 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12521
12522 archive_cmds_GO=''
12523 hardcode_direct_GO=yes
12524 hardcode_direct_absolute_GO=yes
12525 hardcode_libdir_separator_GO=':'
12526 link_all_deplibs_GO=yes
12527 file_list_spec_GO='${wl}-f,'
12528
12529 if test "$GCC" = yes; then
12530 case $host_os in aix4.[012]|aix4.[012].*)
12531 # We only want to do this on AIX 4.2 and lower, the check
12532 # below for broken collect2 doesn't work under 4.3+
12533 collect2name=`${CC} -print-prog-name=collect2`
12534 if test -f "$collect2name" &&
12535 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12536 then
12537 # We have reworked collect2
12538 :
12539 else
12540 # We have old collect2
12541 hardcode_direct_GO=unsupported
12542 # It fails to find uninstalled libraries when the uninstalled
12543 # path is not listed in the libpath. Setting hardcode_minus_L
12544 # to unsupported forces relinking
12545 hardcode_minus_L_GO=yes
12546 hardcode_libdir_flag_spec_GO='-L$libdir'
12547 hardcode_libdir_separator_GO=
12548 fi
12549 ;;
12550 esac
12551 shared_flag='-shared'
12552 if test "$aix_use_runtimelinking" = yes; then
12553 shared_flag="$shared_flag "'${wl}-G'
12554 fi
12555 else
12556 # not using gcc
12557 if test "$host_cpu" = ia64; then
12558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12559 # chokes on -Wl,-G. The following line is correct:
12560 shared_flag='-G'
12561 else
12562 if test "$aix_use_runtimelinking" = yes; then
12563 shared_flag='${wl}-G'
12564 else
12565 shared_flag='${wl}-bM:SRE'
12566 fi
12567 fi
12568 fi
12569
12570 export_dynamic_flag_spec_GO='${wl}-bexpall'
12571 # It seems that -bexpall does not export symbols beginning with
12572 # underscore (_), so it is better to generate a list of symbols to export.
12573 always_export_symbols_GO=yes
12574 if test "$aix_use_runtimelinking" = yes; then
12575 # Warning - without using the other runtime loading flags (-brtl),
12576 # -berok will link without error, but may produce a broken library.
12577 allow_undefined_flag_GO='-berok'
12578 # Determine the default libpath from the value encoded in an
12579 # empty executable.
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582
12583 int
12584 main ()
12585 {
12586
12587 ;
12588 return 0;
12589 }
12590 _ACEOF
12591 if ac_fn_c_try_link "$LINENO"; then :
12592
12593 lt_aix_libpath_sed='
12594 /Import File Strings/,/^$/ {
12595 /^0/ {
12596 s/^0 *\(.*\)$/\1/
12597 p
12598 }
12599 }'
12600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12601 # Check for a 64-bit object if we didn't find anything.
12602 if test -z "$aix_libpath"; then
12603 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12604 fi
12605 fi
12606 rm -f core conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12608 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12609
12610 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12611 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"
12612 else
12613 if test "$host_cpu" = ia64; then
12614 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12615 allow_undefined_flag_GO="-z nodefs"
12616 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"
12617 else
12618 # Determine the default libpath from the value encoded in an
12619 # empty executable.
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622
12623 int
12624 main ()
12625 {
12626
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 if ac_fn_c_try_link "$LINENO"; then :
12632
12633 lt_aix_libpath_sed='
12634 /Import File Strings/,/^$/ {
12635 /^0/ {
12636 s/^0 *\(.*\)$/\1/
12637 p
12638 }
12639 }'
12640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641 # Check for a 64-bit object if we didn't find anything.
12642 if test -z "$aix_libpath"; then
12643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12644 fi
12645 fi
12646 rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12649
12650 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12651 # Warning - without using the other run time loading flags,
12652 # -berok will link without error, but may produce a broken library.
12653 no_undefined_flag_GO=' ${wl}-bernotok'
12654 allow_undefined_flag_GO=' ${wl}-berok'
12655 if test "$with_gnu_ld" = yes; then
12656 # We only use this code for GNU lds that support --whole-archive.
12657 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12658 else
12659 # Exported symbols can be pulled into shared objects from archives
12660 whole_archive_flag_spec_GO='$convenience'
12661 fi
12662 archive_cmds_need_lc_GO=yes
12663 # This is similar to how AIX traditionally builds its shared libraries.
12664 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'
12665 fi
12666 fi
12667 ;;
12668
12669 amigaos*)
12670 case $host_cpu in
12671 powerpc)
12672 # see comment about AmigaOS4 .so support
12673 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12674 archive_expsym_cmds_GO=''
12675 ;;
12676 m68k)
12677 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)'
12678 hardcode_libdir_flag_spec_GO='-L$libdir'
12679 hardcode_minus_L_GO=yes
12680 ;;
12681 esac
12682 ;;
12683
12684 bsdi[45]*)
12685 export_dynamic_flag_spec_GO=-rdynamic
12686 ;;
12687
12688 cygwin* | mingw* | pw32* | cegcc*)
12689 # When not using gcc, we currently assume that we are using
12690 # Microsoft Visual C++.
12691 # hardcode_libdir_flag_spec is actually meaningless, as there is
12692 # no search path for DLLs.
12693 hardcode_libdir_flag_spec_GO=' '
12694 allow_undefined_flag_GO=unsupported
12695 # Tell ltmain to make .lib files, not .a files.
12696 libext=lib
12697 # Tell ltmain to make .dll files, not .so files.
12698 shrext_cmds=".dll"
12699 # FIXME: Setting linknames here is a bad hack.
12700 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12701 # The linker will automatically build a .lib file if we build a DLL.
12702 old_archive_from_new_cmds_GO='true'
12703 # FIXME: Should let the user specify the lib program.
12704 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12705 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12706 enable_shared_with_static_runtimes_GO=yes
12707 ;;
12708
12709 darwin* | rhapsody*)
12710
12711
12712 archive_cmds_need_lc_GO=no
12713 hardcode_direct_GO=no
12714 hardcode_automatic_GO=yes
12715 hardcode_shlibpath_var_GO=unsupported
12716 if test "$lt_cv_ld_force_load" = "yes"; then
12717 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\"`'
12718 else
12719 whole_archive_flag_spec_GO=''
12720 fi
12721 link_all_deplibs_GO=yes
12722 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12723 case $cc_basename in
12724 ifort*) _lt_dar_can_shared=yes ;;
12725 *) _lt_dar_can_shared=$GCC ;;
12726 esac
12727 if test "$_lt_dar_can_shared" = "yes"; then
12728 output_verbose_link_cmd=func_echo_all
12729 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}"
12730 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12731 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}"
12732 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}"
12733
12734 else
12735 ld_shlibs_GO=no
12736 fi
12737
12738 ;;
12739
12740 dgux*)
12741 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12742 hardcode_libdir_flag_spec_GO='-L$libdir'
12743 hardcode_shlibpath_var_GO=no
12744 ;;
12745
12746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12747 # support. Future versions do this automatically, but an explicit c++rt0.o
12748 # does not break anything, and helps significantly (at the cost of a little
12749 # extra space).
12750 freebsd2.2*)
12751 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12752 hardcode_libdir_flag_spec_GO='-R$libdir'
12753 hardcode_direct_GO=yes
12754 hardcode_shlibpath_var_GO=no
12755 ;;
12756
12757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12758 freebsd2*)
12759 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_direct_GO=yes
12761 hardcode_minus_L_GO=yes
12762 hardcode_shlibpath_var_GO=no
12763 ;;
12764
12765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12766 freebsd* | dragonfly*)
12767 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12768 hardcode_libdir_flag_spec_GO='-R$libdir'
12769 hardcode_direct_GO=yes
12770 hardcode_shlibpath_var_GO=no
12771 ;;
12772
12773 hpux9*)
12774 if test "$GCC" = yes; then
12775 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'
12776 else
12777 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'
12778 fi
12779 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12780 hardcode_libdir_separator_GO=:
12781 hardcode_direct_GO=yes
12782
12783 # hardcode_minus_L: Not really in the search PATH,
12784 # but as the default location of the library.
12785 hardcode_minus_L_GO=yes
12786 export_dynamic_flag_spec_GO='${wl}-E'
12787 ;;
12788
12789 hpux10*)
12790 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12791 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12792 else
12793 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12794 fi
12795 if test "$with_gnu_ld" = no; then
12796 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12797 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12798 hardcode_libdir_separator_GO=:
12799 hardcode_direct_GO=yes
12800 hardcode_direct_absolute_GO=yes
12801 export_dynamic_flag_spec_GO='${wl}-E'
12802 # hardcode_minus_L: Not really in the search PATH,
12803 # but as the default location of the library.
12804 hardcode_minus_L_GO=yes
12805 fi
12806 ;;
12807
12808 hpux11*)
12809 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12810 case $host_cpu in
12811 hppa*64*)
12812 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12813 ;;
12814 ia64*)
12815 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12816 ;;
12817 *)
12818 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12819 ;;
12820 esac
12821 else
12822 case $host_cpu in
12823 hppa*64*)
12824 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12825 ;;
12826 ia64*)
12827 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12828 ;;
12829 *)
12830 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12831 ;;
12832 esac
12833 fi
12834 if test "$with_gnu_ld" = no; then
12835 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12836 hardcode_libdir_separator_GO=:
12837
12838 case $host_cpu in
12839 hppa*64*|ia64*)
12840 hardcode_direct_GO=no
12841 hardcode_shlibpath_var_GO=no
12842 ;;
12843 *)
12844 hardcode_direct_GO=yes
12845 hardcode_direct_absolute_GO=yes
12846 export_dynamic_flag_spec_GO='${wl}-E'
12847
12848 # hardcode_minus_L: Not really in the search PATH,
12849 # but as the default location of the library.
12850 hardcode_minus_L_GO=yes
12851 ;;
12852 esac
12853 fi
12854 ;;
12855
12856 irix5* | irix6* | nonstopux*)
12857 if test "$GCC" = yes; then
12858 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'
12859 # Try to use the -exported_symbol ld option, if it does not
12860 # work, assume that -exports_file does not work either and
12861 # implicitly export all symbols.
12862 save_LDFLAGS="$LDFLAGS"
12863 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12866 int foo(void) {}
12867 _ACEOF
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 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'
12870
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext conftest.$ac_ext
12874 LDFLAGS="$save_LDFLAGS"
12875 else
12876 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'
12877 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'
12878 fi
12879 archive_cmds_need_lc_GO='no'
12880 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12881 hardcode_libdir_separator_GO=:
12882 inherit_rpath_GO=yes
12883 link_all_deplibs_GO=yes
12884 ;;
12885
12886 netbsd*)
12887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12888 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12889 else
12890 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12891 fi
12892 hardcode_libdir_flag_spec_GO='-R$libdir'
12893 hardcode_direct_GO=yes
12894 hardcode_shlibpath_var_GO=no
12895 ;;
12896
12897 newsos6)
12898 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12899 hardcode_direct_GO=yes
12900 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12901 hardcode_libdir_separator_GO=:
12902 hardcode_shlibpath_var_GO=no
12903 ;;
12904
12905 *nto* | *qnx*)
12906 ;;
12907
12908 openbsd*)
12909 if test -f /usr/libexec/ld.so; then
12910 hardcode_direct_GO=yes
12911 hardcode_shlibpath_var_GO=no
12912 hardcode_direct_absolute_GO=yes
12913 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12915 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12916 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12917 export_dynamic_flag_spec_GO='${wl}-E'
12918 else
12919 case $host_os in
12920 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12921 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12922 hardcode_libdir_flag_spec_GO='-R$libdir'
12923 ;;
12924 *)
12925 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12926 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12927 ;;
12928 esac
12929 fi
12930 else
12931 ld_shlibs_GO=no
12932 fi
12933 ;;
12934
12935 os2*)
12936 hardcode_libdir_flag_spec_GO='-L$libdir'
12937 hardcode_minus_L_GO=yes
12938 allow_undefined_flag_GO=unsupported
12939 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'
12940 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12941 ;;
12942
12943 osf3*)
12944 if test "$GCC" = yes; then
12945 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12946 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'
12947 else
12948 allow_undefined_flag_GO=' -expect_unresolved \*'
12949 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'
12950 fi
12951 archive_cmds_need_lc_GO='no'
12952 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12953 hardcode_libdir_separator_GO=:
12954 ;;
12955
12956 osf4* | osf5*) # as osf3* with the addition of -msym flag
12957 if test "$GCC" = yes; then
12958 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12959 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'
12960 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12961 else
12962 allow_undefined_flag_GO=' -expect_unresolved \*'
12963 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'
12964 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~
12965 $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'
12966
12967 # Both c and cxx compiler support -rpath directly
12968 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12969 fi
12970 archive_cmds_need_lc_GO='no'
12971 hardcode_libdir_separator_GO=:
12972 ;;
12973
12974 solaris*)
12975 no_undefined_flag_GO=' -z defs'
12976 if test "$GCC" = yes; then
12977 wlarc='${wl}'
12978 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12979 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12980 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12981 else
12982 case `$CC -V 2>&1` in
12983 *"Compilers 5.0"*)
12984 wlarc=''
12985 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12986 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12987 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12988 ;;
12989 *)
12990 wlarc='${wl}'
12991 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12992 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12993 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12994 ;;
12995 esac
12996 fi
12997 hardcode_libdir_flag_spec_GO='-R$libdir'
12998 hardcode_shlibpath_var_GO=no
12999 case $host_os in
13000 solaris2.[0-5] | solaris2.[0-5].*) ;;
13001 *)
13002 # The compiler driver will combine and reorder linker options,
13003 # but understands `-z linker_flag'. GCC discards it without `$wl',
13004 # but is careful enough not to reorder.
13005 # Supported since Solaris 2.6 (maybe 2.5.1?)
13006 if test "$GCC" = yes; then
13007 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13008 else
13009 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13010 fi
13011 ;;
13012 esac
13013 link_all_deplibs_GO=yes
13014 ;;
13015
13016 sunos4*)
13017 if test "x$host_vendor" = xsequent; then
13018 # Use $CC to link under sequent, because it throws in some extra .o
13019 # files that make .init and .fini sections work.
13020 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13021 else
13022 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13023 fi
13024 hardcode_libdir_flag_spec_GO='-L$libdir'
13025 hardcode_direct_GO=yes
13026 hardcode_minus_L_GO=yes
13027 hardcode_shlibpath_var_GO=no
13028 ;;
13029
13030 sysv4)
13031 case $host_vendor in
13032 sni)
13033 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13034 hardcode_direct_GO=yes # is this really true???
13035 ;;
13036 siemens)
13037 ## LD is ld it makes a PLAMLIB
13038 ## CC just makes a GrossModule.
13039 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13040 reload_cmds_GO='$CC -r -o $output$reload_objs'
13041 hardcode_direct_GO=no
13042 ;;
13043 motorola)
13044 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13045 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13046 ;;
13047 esac
13048 runpath_var='LD_RUN_PATH'
13049 hardcode_shlibpath_var_GO=no
13050 ;;
13051
13052 sysv4.3*)
13053 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_shlibpath_var_GO=no
13055 export_dynamic_flag_spec_GO='-Bexport'
13056 ;;
13057
13058 sysv4*MP*)
13059 if test -d /usr/nec; then
13060 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13061 hardcode_shlibpath_var_GO=no
13062 runpath_var=LD_RUN_PATH
13063 hardcode_runpath_var=yes
13064 ld_shlibs_GO=yes
13065 fi
13066 ;;
13067
13068 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13069 no_undefined_flag_GO='${wl}-z,text'
13070 archive_cmds_need_lc_GO=no
13071 hardcode_shlibpath_var_GO=no
13072 runpath_var='LD_RUN_PATH'
13073
13074 if test "$GCC" = yes; then
13075 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 else
13078 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 fi
13081 ;;
13082
13083 sysv5* | sco3.2v5* | sco5v6*)
13084 # Note: We can NOT use -z defs as we might desire, because we do not
13085 # link with -lc, and that would cause any symbols used from libc to
13086 # always be unresolved, which means just about no library would
13087 # ever link correctly. If we're not using GNU ld we use -z text
13088 # though, which does catch some bad symbols but isn't as heavy-handed
13089 # as -z defs.
13090 no_undefined_flag_GO='${wl}-z,text'
13091 allow_undefined_flag_GO='${wl}-z,nodefs'
13092 archive_cmds_need_lc_GO=no
13093 hardcode_shlibpath_var_GO=no
13094 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13095 hardcode_libdir_separator_GO=':'
13096 link_all_deplibs_GO=yes
13097 export_dynamic_flag_spec_GO='${wl}-Bexport'
13098 runpath_var='LD_RUN_PATH'
13099
13100 if test "$GCC" = yes; then
13101 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 else
13104 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 fi
13107 ;;
13108
13109 uts4*)
13110 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13111 hardcode_libdir_flag_spec_GO='-L$libdir'
13112 hardcode_shlibpath_var_GO=no
13113 ;;
13114
13115 *)
13116 ld_shlibs_GO=no
13117 ;;
13118 esac
13119
13120 if test x$host_vendor = xsni; then
13121 case $host in
13122 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13123 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13124 ;;
13125 esac
13126 fi
13127 fi
13128
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13130 $as_echo "$ld_shlibs_GO" >&6; }
13131 test "$ld_shlibs_GO" = no && can_build_shared=no
13132
13133 with_gnu_ld_GO=$with_gnu_ld
13134
13135
13136
13137
13138
13139
13140 #
13141 # Do we need to explicitly link libc?
13142 #
13143 case "x$archive_cmds_need_lc_GO" in
13144 x|xyes)
13145 # Assume -lc should be added
13146 archive_cmds_need_lc_GO=yes
13147
13148 if test "$enable_shared" = yes && test "$GCC" = yes; then
13149 case $archive_cmds_GO in
13150 *'~'*)
13151 # FIXME: we may have to deal with multi-command sequences.
13152 ;;
13153 '$CC '*)
13154 # Test whether the compiler implicitly links with -lc since on some
13155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13156 # to ld, don't add -lc before -lgcc.
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13158 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13159 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 $RM conftest*
13163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13164
13165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13166 (eval $ac_compile) 2>&5
13167 ac_status=$?
13168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13169 test $ac_status = 0; } 2>conftest.err; then
13170 soname=conftest
13171 lib=conftest
13172 libobjs=conftest.$ac_objext
13173 deplibs=
13174 wl=$lt_prog_compiler_wl_GO
13175 pic_flag=$lt_prog_compiler_pic_GO
13176 compiler_flags=-v
13177 linker_flags=-v
13178 verstring=
13179 output_objdir=.
13180 libname=conftest
13181 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13182 allow_undefined_flag_GO=
13183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13184 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13185 ac_status=$?
13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13187 test $ac_status = 0; }
13188 then
13189 lt_cv_archive_cmds_need_lc_GO=no
13190 else
13191 lt_cv_archive_cmds_need_lc_GO=yes
13192 fi
13193 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13194 else
13195 cat conftest.err 1>&5
13196 fi
13197 $RM conftest*
13198
13199 fi
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13201 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13202 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13203 ;;
13204 esac
13205 fi
13206 ;;
13207 esac
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13273 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13274 hardcode_action_GO=
13275 if test -n "$hardcode_libdir_flag_spec_GO" ||
13276 test -n "$runpath_var_GO" ||
13277 test "X$hardcode_automatic_GO" = "Xyes" ; then
13278
13279 # We can hardcode non-existent directories.
13280 if test "$hardcode_direct_GO" != no &&
13281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13282 # have to relink, otherwise we might link with an installed library
13283 # when we should be linking with a yet-to-be-installed one
13284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13285 test "$hardcode_minus_L_GO" != no; then
13286 # Linking always hardcodes the temporary library directory.
13287 hardcode_action_GO=relink
13288 else
13289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13290 hardcode_action_GO=immediate
13291 fi
13292 else
13293 # We cannot hardcode anything, or else we can only hardcode existing
13294 # directories.
13295 hardcode_action_GO=unsupported
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13298 $as_echo "$hardcode_action_GO" >&6; }
13299
13300 if test "$hardcode_action_GO" = relink ||
13301 test "$inherit_rpath_GO" = yes; then
13302 # Fast installation is not supported
13303 enable_fast_install=no
13304 elif test "$shlibpath_overrides_runpath" = yes ||
13305 test "$enable_shared" = no; then
13306 # Fast installation is not necessary
13307 enable_fast_install=needless
13308 fi
13309
13310
13311
13312
13313
13314
13315
13316 fi
13317
13318 ac_ext=c
13319 ac_cpp='$CPP $CPPFLAGS'
13320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13323
13324
13325 GCC=$lt_save_GCC
13326 CC="$lt_save_CC"
13327
13328
13329
13330
13331 ac_config_commands="$ac_config_commands libtool"
13332
13333
13334
13335
13336 # Only expand once:
13337
13338
13339
13340
13341
13342 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13343
13344
13345 for ac_prog in gawk mawk nawk awk
13346 do
13347 # Extract the first word of "$ac_prog", so it can be a program name with args.
13348 set dummy $ac_prog; ac_word=$2
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13350 $as_echo_n "checking for $ac_word... " >&6; }
13351 if test "${ac_cv_prog_AWK+set}" = set; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 if test -n "$AWK"; then
13355 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13356 else
13357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358 for as_dir in $PATH
13359 do
13360 IFS=$as_save_IFS
13361 test -z "$as_dir" && as_dir=.
13362 for ac_exec_ext in '' $ac_executable_extensions; do
13363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13364 ac_cv_prog_AWK="$ac_prog"
13365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13366 break 2
13367 fi
13368 done
13369 done
13370 IFS=$as_save_IFS
13371
13372 fi
13373 fi
13374 AWK=$ac_cv_prog_AWK
13375 if test -n "$AWK"; then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13377 $as_echo "$AWK" >&6; }
13378 else
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13380 $as_echo "no" >&6; }
13381 fi
13382
13383
13384 test -n "$AWK" && break
13385 done
13386
13387
13388 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13389
13390
13391 # Check whether --enable-werror was given.
13392 if test "${enable_werror+set}" = set; then :
13393 enableval=$enable_werror;
13394 fi
13395
13396 if test "x$enable_werror" != "xno"; then
13397 WERROR="-Werror"
13398 fi
13399
13400
13401 glibgo_toolexecdir=no
13402 glibgo_toolexeclibdir=no
13403
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13405 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13406 # Check whether --enable-version-specific-runtime-libs was given.
13407 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13408 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13409 yes) version_specific_libs=yes ;;
13410 no) version_specific_libs=no ;;
13411 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13412 esac
13413 else
13414 version_specific_libs=no
13415 fi
13416
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13418 $as_echo "$version_specific_libs" >&6; }
13419
13420 # Version-specific runtime libs processing.
13421 if test $version_specific_libs = yes; then
13422 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13423 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13424 fi
13425
13426 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13427 # Install a library built with a cross compiler in tooldir, not libdir.
13428 if test -n "$with_cross_host" &&
13429 test x"$with_cross_host" != x"no"; then
13430 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13431 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13432 else
13433 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13434 nover_glibgo_toolexeclibdir='${libdir}'
13435 fi
13436 multi_os_directory=`$CC -print-multi-os-directory`
13437 case $multi_os_directory in
13438 .) ;; # Avoid trailing /.
13439 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13440 esac
13441
13442 if test x"$glibgo_toolexecdir" = x"no"; then
13443 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13444 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13445 fi
13446
13447
13448
13449
13450
13451 # See if the user wants to configure without libffi. Some
13452 # architectures don't support it. FIXME: We should set a default
13453 # based on the host.
13454
13455 # Check whether --with-libffi was given.
13456 if test "${with_libffi+set}" = set; then :
13457 withval=$with_libffi; :
13458 else
13459 with_libffi=${with_libffi_default-yes}
13460 fi
13461
13462
13463 LIBFFI=
13464 LIBFFIINCS=
13465 if test "$with_libffi" != no; then
13466
13467 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13468
13469 LIBFFI=../libffi/libffi_convenience.la
13470 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13471 fi
13472
13473
13474
13475 # Used to tell GNU make to include a file without telling automake to
13476 # include it.
13477 go_include="-include"
13478
13479
13480 is_darwin=no
13481 is_freebsd=no
13482 is_irix=no
13483 is_linux=no
13484 is_netbsd=no
13485 is_openbsd=no
13486 is_rtems=no
13487 is_solaris=no
13488 GOOS=unknown
13489 case ${host} in
13490 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13491 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13492 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13493 *-*-linux*) is_linux=yes; GOOS=linux ;;
13494 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13495 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13496 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13497 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13498 esac
13499 if test $is_darwin = yes; then
13500 LIBGO_IS_DARWIN_TRUE=
13501 LIBGO_IS_DARWIN_FALSE='#'
13502 else
13503 LIBGO_IS_DARWIN_TRUE='#'
13504 LIBGO_IS_DARWIN_FALSE=
13505 fi
13506
13507 if test $is_freebsd = yes; then
13508 LIBGO_IS_FREEBSD_TRUE=
13509 LIBGO_IS_FREEBSD_FALSE='#'
13510 else
13511 LIBGO_IS_FREEBSD_TRUE='#'
13512 LIBGO_IS_FREEBSD_FALSE=
13513 fi
13514
13515 if test $is_irix = yes; then
13516 LIBGO_IS_IRIX_TRUE=
13517 LIBGO_IS_IRIX_FALSE='#'
13518 else
13519 LIBGO_IS_IRIX_TRUE='#'
13520 LIBGO_IS_IRIX_FALSE=
13521 fi
13522
13523 if test $is_linux = yes; then
13524 LIBGO_IS_LINUX_TRUE=
13525 LIBGO_IS_LINUX_FALSE='#'
13526 else
13527 LIBGO_IS_LINUX_TRUE='#'
13528 LIBGO_IS_LINUX_FALSE=
13529 fi
13530
13531 if test $is_netbsd = yes; then
13532 LIBGO_IS_NETBSD_TRUE=
13533 LIBGO_IS_NETBSD_FALSE='#'
13534 else
13535 LIBGO_IS_NETBSD_TRUE='#'
13536 LIBGO_IS_NETBSD_FALSE=
13537 fi
13538
13539 if test $is_openbsd = yes; then
13540 LIBGO_IS_OPENBSD_TRUE=
13541 LIBGO_IS_OPENBSD_FALSE='#'
13542 else
13543 LIBGO_IS_OPENBSD_TRUE='#'
13544 LIBGO_IS_OPENBSD_FALSE=
13545 fi
13546
13547 if test $is_rtems = yes; then
13548 LIBGO_IS_RTEMS_TRUE=
13549 LIBGO_IS_RTEMS_FALSE='#'
13550 else
13551 LIBGO_IS_RTEMS_TRUE='#'
13552 LIBGO_IS_RTEMS_FALSE=
13553 fi
13554
13555 if test $is_solaris = yes; then
13556 LIBGO_IS_SOLARIS_TRUE=
13557 LIBGO_IS_SOLARIS_FALSE='#'
13558 else
13559 LIBGO_IS_SOLARIS_TRUE='#'
13560 LIBGO_IS_SOLARIS_FALSE=
13561 fi
13562
13563
13564
13565 is_386=no
13566 is_alpha=no
13567 is_arm=no
13568 is_m68k=no
13569 mips_abi=unknown
13570 is_ppc=no
13571 is_ppc64=no
13572 is_sparc=no
13573 is_sparc64=no
13574 is_x86_64=no
13575 GOARCH=unknown
13576 case ${host} in
13577 alpha*-*-*)
13578 is_alpha=yes
13579 GOARCH=alpha
13580 ;;
13581 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13582 is_arm=yes
13583 GOARCH=arm
13584 ;;
13585 i[34567]86-*-* | x86_64-*-*)
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588
13589 #ifdef __x86_64__
13590 #error 64-bit
13591 #endif
13592 _ACEOF
13593 if ac_fn_c_try_compile "$LINENO"; then :
13594 is_386=yes
13595 else
13596 is_x86_64=yes
13597 fi
13598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13599 if test "$is_386" = "yes"; then
13600 GOARCH=386
13601 else
13602 GOARCH=amd64
13603 fi
13604 ;;
13605 m68k*-*-*)
13606 is_m68k=yes
13607 GOARCH=m68k
13608 ;;
13609 mips*-*-*)
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612
13613 #if _MIPS_SIM != _ABIO32
13614 #error not o32
13615 #endif
13616 _ACEOF
13617 if ac_fn_c_try_compile "$LINENO"; then :
13618 mips_abi="o32"
13619 else
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622
13623 #if _MIPS_SIM != _ABIN32
13624 #error not n32
13625 #endif
13626 _ACEOF
13627 if ac_fn_c_try_compile "$LINENO"; then :
13628 mips_abi="n32"
13629 else
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13632
13633 #if _MIPS_SIM != _ABI64
13634 #error not n64
13635 #endif
13636 _ACEOF
13637 if ac_fn_c_try_compile "$LINENO"; then :
13638 mips_abi="n64"
13639 else
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642
13643 #if _MIPS_SIM != _ABIO64
13644 #error not o64
13645 #endif
13646 _ACEOF
13647 if ac_fn_c_try_compile "$LINENO"; then :
13648 mips_abi="o64"
13649 else
13650 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13651 mips_abi="n32"
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 case "$mips_abi" in
13661 "o32") GOARCH=mipso32 ;;
13662 "n32") GOARCH=mipsn32 ;;
13663 "n64") GOARCH=mipsn64 ;;
13664 "o64") GOARCH=mipso64 ;;
13665 esac
13666 ;;
13667 rs6000*-*-* | powerpc*-*-*)
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670
13671 #ifdef _ARCH_PPC64
13672 #error 64-bit
13673 #endif
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 is_ppc=yes
13677 else
13678 is_ppc64=yes
13679 fi
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 if test "$is_ppc" = "yes"; then
13682 GOARCH=ppc
13683 else
13684 GOARCH=ppc64
13685 fi
13686 ;;
13687 sparc*-*-*)
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690
13691 #if defined(__sparcv9) || defined(__arch64__)
13692 #error 64-bit
13693 #endif
13694 _ACEOF
13695 if ac_fn_c_try_compile "$LINENO"; then :
13696 is_sparc=yes
13697 else
13698 is_sparc64=yes
13699 fi
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 if test "$is_sparc" = "yes"; then
13702 GOARCH=sparc
13703 else
13704 GOARCH=sparc64
13705 fi
13706 ;;
13707 esac
13708 if test $is_386 = yes; then
13709 LIBGO_IS_386_TRUE=
13710 LIBGO_IS_386_FALSE='#'
13711 else
13712 LIBGO_IS_386_TRUE='#'
13713 LIBGO_IS_386_FALSE=
13714 fi
13715
13716 if test $is_alpha = yes; then
13717 LIBGO_IS_ALPHA_TRUE=
13718 LIBGO_IS_ALPHA_FALSE='#'
13719 else
13720 LIBGO_IS_ALPHA_TRUE='#'
13721 LIBGO_IS_ALPHA_FALSE=
13722 fi
13723
13724 if test $is_arm = yes; then
13725 LIBGO_IS_ARM_TRUE=
13726 LIBGO_IS_ARM_FALSE='#'
13727 else
13728 LIBGO_IS_ARM_TRUE='#'
13729 LIBGO_IS_ARM_FALSE=
13730 fi
13731
13732 if test $is_m68k = yes; then
13733 LIBGO_IS_M68K_TRUE=
13734 LIBGO_IS_M68K_FALSE='#'
13735 else
13736 LIBGO_IS_M68K_TRUE='#'
13737 LIBGO_IS_M68K_FALSE=
13738 fi
13739
13740 if test $mips_abi != unknown; then
13741 LIBGO_IS_MIPS_TRUE=
13742 LIBGO_IS_MIPS_FALSE='#'
13743 else
13744 LIBGO_IS_MIPS_TRUE='#'
13745 LIBGO_IS_MIPS_FALSE=
13746 fi
13747
13748 if test $mips_abi = o32; then
13749 LIBGO_IS_MIPSO32_TRUE=
13750 LIBGO_IS_MIPSO32_FALSE='#'
13751 else
13752 LIBGO_IS_MIPSO32_TRUE='#'
13753 LIBGO_IS_MIPSO32_FALSE=
13754 fi
13755
13756 if test $mips_abi = n32; then
13757 LIBGO_IS_MIPSN32_TRUE=
13758 LIBGO_IS_MIPSN32_FALSE='#'
13759 else
13760 LIBGO_IS_MIPSN32_TRUE='#'
13761 LIBGO_IS_MIPSN32_FALSE=
13762 fi
13763
13764 if test $mips_abi = n64; then
13765 LIBGO_IS_MIPSN64_TRUE=
13766 LIBGO_IS_MIPSN64_FALSE='#'
13767 else
13768 LIBGO_IS_MIPSN64_TRUE='#'
13769 LIBGO_IS_MIPSN64_FALSE=
13770 fi
13771
13772 if test $mips_abi = o64; then
13773 LIBGO_IS_MIPSO64_TRUE=
13774 LIBGO_IS_MIPSO64_FALSE='#'
13775 else
13776 LIBGO_IS_MIPSO64_TRUE='#'
13777 LIBGO_IS_MIPSO64_FALSE=
13778 fi
13779
13780 if test $is_ppc = yes; then
13781 LIBGO_IS_PPC_TRUE=
13782 LIBGO_IS_PPC_FALSE='#'
13783 else
13784 LIBGO_IS_PPC_TRUE='#'
13785 LIBGO_IS_PPC_FALSE=
13786 fi
13787
13788 if test $is_ppc64 = yes; then
13789 LIBGO_IS_PPC64_TRUE=
13790 LIBGO_IS_PPC64_FALSE='#'
13791 else
13792 LIBGO_IS_PPC64_TRUE='#'
13793 LIBGO_IS_PPC64_FALSE=
13794 fi
13795
13796 if test $is_sparc = yes; then
13797 LIBGO_IS_SPARC_TRUE=
13798 LIBGO_IS_SPARC_FALSE='#'
13799 else
13800 LIBGO_IS_SPARC_TRUE='#'
13801 LIBGO_IS_SPARC_FALSE=
13802 fi
13803
13804 if test $is_sparc64 = yes; then
13805 LIBGO_IS_SPARC64_TRUE=
13806 LIBGO_IS_SPARC64_FALSE='#'
13807 else
13808 LIBGO_IS_SPARC64_TRUE='#'
13809 LIBGO_IS_SPARC64_FALSE=
13810 fi
13811
13812 if test $is_x86_64 = yes; then
13813 LIBGO_IS_X86_64_TRUE=
13814 LIBGO_IS_X86_64_FALSE='#'
13815 else
13816 LIBGO_IS_X86_64_TRUE='#'
13817 LIBGO_IS_X86_64_FALSE=
13818 fi
13819
13820
13821
13822 GO_LIBCALL_OS_FILE=
13823 GO_LIBCALL_OS_ARCH_FILE=
13824 GO_SYSCALL_OS_FILE=
13825 GO_SYSCALL_OS_ARCH_FILE=
13826 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13827 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13828 fi
13829 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13830 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13831 fi
13832 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13833 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13834 fi
13835 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13836 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13837 fi
13838
13839
13840
13841
13842
13843 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13844 case "$target" in
13845 mips-sgi-irix6.5*)
13846 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13847 # msghdr in <sys/socket.h>.
13848 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13849 ;;
13850 *-*-solaris2.[89])
13851 # Solaris 8/9 need this so struct msghdr gets the msg_control
13852 # etc. fields in <sys/socket.h> (_XPG4_2).
13853 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13854 ;;
13855 *-*-solaris2.1[01])
13856 # Solaris 10+ needs this so struct msghdr gets the msg_control
13857 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13858 # above doesn't work with C99.
13859 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13860 ;;
13861 esac
13862
13863
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13865 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13866 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 CFLAGS_hold=$CFLAGS
13870 CFLAGS="$CFLAGS -fsplit-stack"
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 int i;
13874 _ACEOF
13875 if ac_fn_c_try_compile "$LINENO"; then :
13876 libgo_cv_c_split_stack_supported=yes
13877 else
13878 libgo_cv_c_split_stack_supported=no
13879 fi
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881 CFLAGS=$CFLAGS_hold
13882 fi
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13884 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13885 if test "$libgo_cv_c_split_stack_supported" = yes; then
13886 SPLIT_STACK=-fsplit-stack
13887
13888 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13889
13890 else
13891 SPLIT_STACK=
13892 fi
13893
13894 if test "$libgo_cv_c_split_stack_supported" = yes; then
13895 USING_SPLIT_STACK_TRUE=
13896 USING_SPLIT_STACK_FALSE='#'
13897 else
13898 USING_SPLIT_STACK_TRUE='#'
13899 USING_SPLIT_STACK_FALSE=
13900 fi
13901
13902
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13904 $as_echo_n "checking whether linker supports split stack... " >&6; }
13905 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13908 libgo_cv_c_linker_supports_split_stack=no
13909 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13910 libgo_cv_c_linker_supports_split_stack=yes
13911 fi
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13914 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13915 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13916
13917 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13918
13919 fi
13920
13921 MATH_LIBS=
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13923 $as_echo_n "checking for sqrt in -lm... " >&6; }
13924 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13925 $as_echo_n "(cached) " >&6
13926 else
13927 ac_check_lib_save_LIBS=$LIBS
13928 LIBS="-lm $LIBS"
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931
13932 /* Override any GCC internal prototype to avoid an error.
13933 Use char because int might match the return type of a GCC
13934 builtin and then its argument prototype would still apply. */
13935 #ifdef __cplusplus
13936 extern "C"
13937 #endif
13938 char sqrt ();
13939 int
13940 main ()
13941 {
13942 return sqrt ();
13943 ;
13944 return 0;
13945 }
13946 _ACEOF
13947 if ac_fn_c_try_link "$LINENO"; then :
13948 ac_cv_lib_m_sqrt=yes
13949 else
13950 ac_cv_lib_m_sqrt=no
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS
13955 fi
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13957 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13958 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13959 MATH_LIBS=-lm
13960 fi
13961
13962
13963
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13965 $as_echo_n "checking for socket libraries... " >&6; }
13966 if test "${libgo_cv_lib_sockets+set}" = set; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 libgo_cv_lib_sockets=
13970 libgo_check_both=no
13971 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13972 if test "x$ac_cv_func_connect" = x""yes; then :
13973 libgo_check_socket=no
13974 else
13975 libgo_check_socket=yes
13976 fi
13977
13978 if test "$libgo_check_socket" = "yes"; then
13979 unset ac_cv_func_connect
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13981 $as_echo_n "checking for main in -lsocket... " >&6; }
13982 if test "${ac_cv_lib_socket_main+set}" = set; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 ac_check_lib_save_LIBS=$LIBS
13986 LIBS="-lsocket $LIBS"
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989
13990
13991 int
13992 main ()
13993 {
13994 return main ();
13995 ;
13996 return 0;
13997 }
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 ac_cv_lib_socket_main=yes
14001 else
14002 ac_cv_lib_socket_main=no
14003 fi
14004 rm -f core conftest.err conftest.$ac_objext \
14005 conftest$ac_exeext conftest.$ac_ext
14006 LIBS=$ac_check_lib_save_LIBS
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14009 $as_echo "$ac_cv_lib_socket_main" >&6; }
14010 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14011 libgo_cv_lib_sockets="-lsocket"
14012 else
14013 libgo_check_both=yes
14014 fi
14015
14016 fi
14017 if test "$libgo_check_both" = "yes"; then
14018 libgo_old_libs=$LIBS
14019 LIBS="$LIBS -lsocket -lnsl"
14020 unset ac_cv_func_accept
14021 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14022 if test "x$ac_cv_func_accept" = x""yes; then :
14023 libgo_check_nsl=no
14024 libgo_cv_lib_sockets="-lsocket -lnsl"
14025 fi
14026
14027 unset ac_cv_func_accept
14028 LIBS=$libgo_old_libs
14029 fi
14030 unset ac_cv_func_gethostbyname
14031 libgo_old_libs="$LIBS"
14032 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14033 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14034
14035 else
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14037 $as_echo_n "checking for main in -lnsl... " >&6; }
14038 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 ac_check_lib_save_LIBS=$LIBS
14042 LIBS="-lnsl $LIBS"
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14045
14046
14047 int
14048 main ()
14049 {
14050 return main ();
14051 ;
14052 return 0;
14053 }
14054 _ACEOF
14055 if ac_fn_c_try_link "$LINENO"; then :
14056 ac_cv_lib_nsl_main=yes
14057 else
14058 ac_cv_lib_nsl_main=no
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14063 fi
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14065 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14066 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14067 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14068 fi
14069
14070 fi
14071
14072 unset ac_cv_func_gethostbyname
14073 LIBS=$libgo_old_libs
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14077 $as_echo "$libgo_cv_lib_sockets" >&6; }
14078 NET_LIBS="$libgo_cv_lib_sockets"
14079
14080
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14082 $as_echo_n "checking whether -pthread is supported... " >&6; }
14083 if test "${libgo_cv_lib_pthread+set}" = set; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 CFLAGS_hold=$CFLAGS
14087 CFLAGS="$CFLAGS -pthread"
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 int i;
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093 libgo_cv_lib_pthread=yes
14094 else
14095 libgo_cv_lib_pthread=no
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 CFLAGS=$CFLAGS_hold
14099 fi
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14101 $as_echo "$libgo_cv_lib_pthread" >&6; }
14102 PTHREAD_CFLAGS=
14103 if test "$libgo_cv_lib_pthread" = yes; then
14104 PTHREAD_CFLAGS=-pthread
14105 fi
14106
14107
14108 PTHREAD_LIBS=
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14110 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14111 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14112 $as_echo_n "(cached) " >&6
14113 else
14114 ac_check_lib_save_LIBS=$LIBS
14115 LIBS="-lpthread $LIBS"
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118
14119 /* Override any GCC internal prototype to avoid an error.
14120 Use char because int might match the return type of a GCC
14121 builtin and then its argument prototype would still apply. */
14122 #ifdef __cplusplus
14123 extern "C"
14124 #endif
14125 char pthread_create ();
14126 int
14127 main ()
14128 {
14129 return pthread_create ();
14130 ;
14131 return 0;
14132 }
14133 _ACEOF
14134 if ac_fn_c_try_link "$LINENO"; then :
14135 ac_cv_lib_pthread_pthread_create=yes
14136 else
14137 ac_cv_lib_pthread_pthread_create=no
14138 fi
14139 rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141 LIBS=$ac_check_lib_save_LIBS
14142 fi
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14144 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14145 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14146 PTHREAD_LIBS=-lpthread
14147 fi
14148
14149
14150
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14152 $as_echo_n "checking for library containing sched_yield... " >&6; }
14153 if test "${ac_cv_search_sched_yield+set}" = set; then :
14154 $as_echo_n "(cached) " >&6
14155 else
14156 ac_func_search_save_LIBS=$LIBS
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159
14160 /* Override any GCC internal prototype to avoid an error.
14161 Use char because int might match the return type of a GCC
14162 builtin and then its argument prototype would still apply. */
14163 #ifdef __cplusplus
14164 extern "C"
14165 #endif
14166 char sched_yield ();
14167 int
14168 main ()
14169 {
14170 return sched_yield ();
14171 ;
14172 return 0;
14173 }
14174 _ACEOF
14175 for ac_lib in '' rt; do
14176 if test -z "$ac_lib"; then
14177 ac_res="none required"
14178 else
14179 ac_res=-l$ac_lib
14180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14181 fi
14182 if ac_fn_c_try_link "$LINENO"; then :
14183 ac_cv_search_sched_yield=$ac_res
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext
14187 if test "${ac_cv_search_sched_yield+set}" = set; then :
14188 break
14189 fi
14190 done
14191 if test "${ac_cv_search_sched_yield+set}" = set; then :
14192
14193 else
14194 ac_cv_search_sched_yield=no
14195 fi
14196 rm conftest.$ac_ext
14197 LIBS=$ac_func_search_save_LIBS
14198 fi
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14200 $as_echo "$ac_cv_search_sched_yield" >&6; }
14201 ac_res=$ac_cv_search_sched_yield
14202 if test "$ac_res" != no; then :
14203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14204
14205 fi
14206
14207
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14209 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14210 if test "${ac_cv_c_bigendian+set}" = set; then :
14211 $as_echo_n "(cached) " >&6
14212 else
14213 ac_cv_c_bigendian=unknown
14214 # See if we're dealing with a universal compiler.
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217 #ifndef __APPLE_CC__
14218 not a universal capable compiler
14219 #endif
14220 typedef int dummy;
14221
14222 _ACEOF
14223 if ac_fn_c_try_compile "$LINENO"; then :
14224
14225 # Check for potential -arch flags. It is not universal unless
14226 # there are at least two -arch flags with different values.
14227 ac_arch=
14228 ac_prev=
14229 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14230 if test -n "$ac_prev"; then
14231 case $ac_word in
14232 i?86 | x86_64 | ppc | ppc64)
14233 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14234 ac_arch=$ac_word
14235 else
14236 ac_cv_c_bigendian=universal
14237 break
14238 fi
14239 ;;
14240 esac
14241 ac_prev=
14242 elif test "x$ac_word" = "x-arch"; then
14243 ac_prev=arch
14244 fi
14245 done
14246 fi
14247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248 if test $ac_cv_c_bigendian = unknown; then
14249 # See if sys/param.h defines the BYTE_ORDER macro.
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 #include <sys/types.h>
14253 #include <sys/param.h>
14254
14255 int
14256 main ()
14257 {
14258 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14259 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14260 && LITTLE_ENDIAN)
14261 bogus endian macros
14262 #endif
14263
14264 ;
14265 return 0;
14266 }
14267 _ACEOF
14268 if ac_fn_c_try_compile "$LINENO"; then :
14269 # It does; now see whether it defined to BIG_ENDIAN or not.
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14272 #include <sys/types.h>
14273 #include <sys/param.h>
14274
14275 int
14276 main ()
14277 {
14278 #if BYTE_ORDER != BIG_ENDIAN
14279 not big endian
14280 #endif
14281
14282 ;
14283 return 0;
14284 }
14285 _ACEOF
14286 if ac_fn_c_try_compile "$LINENO"; then :
14287 ac_cv_c_bigendian=yes
14288 else
14289 ac_cv_c_bigendian=no
14290 fi
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294 fi
14295 if test $ac_cv_c_bigendian = unknown; then
14296 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14299 #include <limits.h>
14300
14301 int
14302 main ()
14303 {
14304 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14305 bogus endian macros
14306 #endif
14307
14308 ;
14309 return 0;
14310 }
14311 _ACEOF
14312 if ac_fn_c_try_compile "$LINENO"; then :
14313 # It does; now see whether it defined to _BIG_ENDIAN or not.
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 #include <limits.h>
14317
14318 int
14319 main ()
14320 {
14321 #ifndef _BIG_ENDIAN
14322 not big endian
14323 #endif
14324
14325 ;
14326 return 0;
14327 }
14328 _ACEOF
14329 if ac_fn_c_try_compile "$LINENO"; then :
14330 ac_cv_c_bigendian=yes
14331 else
14332 ac_cv_c_bigendian=no
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 fi
14336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337 fi
14338 if test $ac_cv_c_bigendian = unknown; then
14339 # Compile a test program.
14340 if test "$cross_compiling" = yes; then :
14341 # Try to guess by grepping values from an object file.
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 short int ascii_mm[] =
14345 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14346 short int ascii_ii[] =
14347 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14348 int use_ascii (int i) {
14349 return ascii_mm[i] + ascii_ii[i];
14350 }
14351 short int ebcdic_ii[] =
14352 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14353 short int ebcdic_mm[] =
14354 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14355 int use_ebcdic (int i) {
14356 return ebcdic_mm[i] + ebcdic_ii[i];
14357 }
14358 extern int foo;
14359
14360 int
14361 main ()
14362 {
14363 return use_ascii (foo) == use_ebcdic (foo);
14364 ;
14365 return 0;
14366 }
14367 _ACEOF
14368 if ac_fn_c_try_compile "$LINENO"; then :
14369 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14370 ac_cv_c_bigendian=yes
14371 fi
14372 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14373 if test "$ac_cv_c_bigendian" = unknown; then
14374 ac_cv_c_bigendian=no
14375 else
14376 # finding both strings is unlikely to happen, but who knows?
14377 ac_cv_c_bigendian=unknown
14378 fi
14379 fi
14380 fi
14381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382 else
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385 $ac_includes_default
14386 int
14387 main ()
14388 {
14389
14390 /* Are we little or big endian? From Harbison&Steele. */
14391 union
14392 {
14393 long int l;
14394 char c[sizeof (long int)];
14395 } u;
14396 u.l = 1;
14397 return u.c[sizeof (long int) - 1] == 1;
14398
14399 ;
14400 return 0;
14401 }
14402 _ACEOF
14403 if ac_fn_c_try_run "$LINENO"; then :
14404 ac_cv_c_bigendian=no
14405 else
14406 ac_cv_c_bigendian=yes
14407 fi
14408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14409 conftest.$ac_objext conftest.beam conftest.$ac_ext
14410 fi
14411
14412 fi
14413 fi
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14415 $as_echo "$ac_cv_c_bigendian" >&6; }
14416 case $ac_cv_c_bigendian in #(
14417 yes)
14418 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14419 ;; #(
14420 no)
14421 ;; #(
14422 universal)
14423
14424 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14425
14426 ;; #(
14427 *)
14428 as_fn_error "unknown endianness
14429 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14430 esac
14431
14432
14433
14434
14435 # Check whether --with-system-libunwind was given.
14436 if test "${with_system_libunwind+set}" = set; then :
14437 withval=$with_system_libunwind;
14438 fi
14439
14440 # If system-libunwind was not specifically set, pick a default setting.
14441 if test x$with_system_libunwind = x; then
14442 case ${target} in
14443 ia64-*-hpux*) with_system_libunwind=yes ;;
14444 *) with_system_libunwind=no ;;
14445 esac
14446 fi
14447 # Based on system-libunwind and target, do we have ipinfo?
14448 if test x$with_system_libunwind = xyes; then
14449 case ${target} in
14450 ia64-*-*) have_unwind_getipinfo=no ;;
14451 *) have_unwind_getipinfo=yes ;;
14452 esac
14453 else
14454 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14455
14456 case ${target} in
14457 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14458 *) have_unwind_getipinfo=yes ;;
14459 esac
14460
14461 fi
14462
14463 if test x$have_unwind_getipinfo = xyes; then
14464
14465 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14466
14467 fi
14468
14469
14470 # Check whether --enable-sjlj-exceptions was given.
14471 if test "${enable_sjlj_exceptions+set}" = set; then :
14472 enableval=$enable_sjlj_exceptions; case "$enableval" in
14473 yes|no|auto) ;;
14474 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14475 esac
14476 else
14477 enable_sjlj_exceptions=auto
14478 fi
14479
14480
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14482 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14483 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14484 $as_echo_n "(cached) " >&6
14485 else
14486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14488
14489 void bar ();
14490 void clean (int *);
14491 void foo ()
14492 {
14493 int i __attribute__ ((cleanup (clean)));
14494 bar();
14495 }
14496
14497 _ACEOF
14498 CFLAGS_hold=$CFLAGS
14499 CFLAGS="--save-temps -fexceptions"
14500 libgo_cv_lib_sjlj_exceptions=unknown
14501 if ac_fn_c_try_compile; then :
14502 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14503 libgo_cv_lib_sjlj_exceptions=yes
14504 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14505 libgo_cv_lib_sjlj_exceptions=no
14506 fi
14507 fi
14508 CFLAGS=$CFLAGS_hold
14509 rm -f conftest*
14510
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14513 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14514
14515 if test "$enable_sjlj_exceptions" = "auto"; then
14516 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14517 fi
14518
14519 case $enable_sjlj_exceptions in
14520 yes)
14521
14522 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14523
14524 ;;
14525 no)
14526 ;;
14527 *)
14528 as_fn_error "unable to detect exception model" "$LINENO" 5
14529 ;;
14530 esac
14531
14532 for ac_header in sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14533 do :
14534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14535 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14536 eval as_val=\$$as_ac_Header
14537 if test "x$as_val" = x""yes; then :
14538 cat >>confdefs.h <<_ACEOF
14539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14540 _ACEOF
14541
14542 fi
14543
14544 done
14545
14546
14547 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
14548 do :
14549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14550 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14551 #include <sys/socket.h>
14552 #endif
14553
14554 "
14555 eval as_val=\$$as_ac_Header
14556 if test "x$as_val" = x""yes; then :
14557 cat >>confdefs.h <<_ACEOF
14558 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14559 _ACEOF
14560
14561 fi
14562
14563 done
14564
14565
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14567 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14568 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14569 $as_echo_n "(cached) " >&6
14570 else
14571 CFLAGS_hold=$CFLAGS
14572 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574 /* end confdefs.h. */
14575
14576 #include <sys/types.h>
14577 #ifdef HAVE_LINUX_FILTER_H
14578 #include <linux/filter.h>
14579 #endif
14580 #include <ustat.h>
14581
14582 _ACEOF
14583 if ac_fn_c_try_compile "$LINENO"; then :
14584 libgo_cv_c_ustat_h=yes
14585 else
14586 libgo_cv_c_ustat_h=no
14587 fi
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 CFLAGS=$CFLAGS_hold
14590 fi
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14592 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14593 if test $libgo_cv_c_ustat_h = yes; then
14594
14595 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14596
14597 fi
14598
14599 if test "$ac_cv_header_sys_mman_h" = yes; then
14600 HAVE_SYS_MMAN_H_TRUE=
14601 HAVE_SYS_MMAN_H_FALSE='#'
14602 else
14603 HAVE_SYS_MMAN_H_TRUE='#'
14604 HAVE_SYS_MMAN_H_FALSE=
14605 fi
14606
14607
14608 for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
14609 do :
14610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14612 eval as_val=\$$as_ac_var
14613 if test "x$as_val" = x""yes; then :
14614 cat >>confdefs.h <<_ACEOF
14615 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14616 _ACEOF
14617
14618 fi
14619 done
14620
14621 if test "$ac_cv_func_strerror_r" = yes; then
14622 HAVE_STRERROR_R_TRUE=
14623 HAVE_STRERROR_R_FALSE='#'
14624 else
14625 HAVE_STRERROR_R_TRUE='#'
14626 HAVE_STRERROR_R_FALSE=
14627 fi
14628
14629 if test "$ac_cv_func_wait4" = yes; then
14630 HAVE_WAIT4_TRUE=
14631 HAVE_WAIT4_FALSE='#'
14632 else
14633 HAVE_WAIT4_TRUE='#'
14634 HAVE_WAIT4_FALSE=
14635 fi
14636
14637
14638 for ac_func in accept4 epoll_create1 faccessat fallocate fchmodat fchownat futimesat inotify_add_watch inotify_init inotify_init1 inotify_rm_watch mkdirat mknodat openat pipe2 renameat sync_file_range splice tee unlinkat unshare utimensat
14639 do :
14640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14642 eval as_val=\$$as_ac_var
14643 if test "x$as_val" = x""yes; then :
14644 cat >>confdefs.h <<_ACEOF
14645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14646 _ACEOF
14647
14648 fi
14649 done
14650
14651 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14652 if test "x$ac_cv_type_off_t" = x""yes; then :
14653
14654 else
14655
14656 cat >>confdefs.h <<_ACEOF
14657 #define off_t long int
14658 _ACEOF
14659
14660 fi
14661
14662 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14663 if test "x$ac_cv_type_loff_t" = x""yes; then :
14664
14665 cat >>confdefs.h <<_ACEOF
14666 #define HAVE_LOFF_T 1
14667 _ACEOF
14668
14669
14670 fi
14671
14672
14673 LIBS_hold="$LIBS"
14674 LIBS="$LIBS -lm"
14675 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14676 do :
14677 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14678 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14679 eval as_val=\$$as_ac_var
14680 if test "x$as_val" = x""yes; then :
14681 cat >>confdefs.h <<_ACEOF
14682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14683 _ACEOF
14684
14685 fi
14686 done
14687
14688 LIBS="$LIBS_hold"
14689
14690 CFLAGS_hold="$CFLAGS"
14691 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14692 LIBS_hold="$LIBS"
14693 LIBS="$LIBS $PTHREAD_LIBS"
14694 for ac_func in sem_timedwait
14695 do :
14696 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14697 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14698 cat >>confdefs.h <<_ACEOF
14699 #define HAVE_SEM_TIMEDWAIT 1
14700 _ACEOF
14701
14702 fi
14703 done
14704
14705 CFLAGS="$CFLAGS_hold"
14706 LIBS="$LIBS_hold"
14707
14708 LIBS_hold="$LIBS"
14709 LIBS="$LIBS $MATH_LIBS"
14710 for ac_func in matherr
14711 do :
14712 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14713 if test "x$ac_cv_func_matherr" = x""yes; then :
14714 cat >>confdefs.h <<_ACEOF
14715 #define HAVE_MATHERR 1
14716 _ACEOF
14717
14718 fi
14719 done
14720
14721 LIBS="$LIBS_hold"
14722
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14724 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14725 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14726 $as_echo_n "(cached) " >&6
14727 else
14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14729 /* end confdefs.h. */
14730
14731 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14732 uint32 i;
14733 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14734
14735 _ACEOF
14736 if ac_fn_c_try_link "$LINENO"; then :
14737 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14738 else
14739 libgo_cv_func___sync_bool_compare_and_swap_4=no
14740 fi
14741 rm -f core conftest.err conftest.$ac_objext \
14742 conftest$ac_exeext conftest.$ac_ext
14743 fi
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14745 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14746 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14747
14748 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14749
14750 fi
14751
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14753 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14754 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759
14760 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14761 uint64 i;
14762 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14763
14764 _ACEOF
14765 if ac_fn_c_try_link "$LINENO"; then :
14766 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14767 else
14768 libgo_cv_func___sync_bool_compare_and_swap_8=no
14769 fi
14770 rm -f core conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14772 fi
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14774 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14775 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14776
14777 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14778
14779 fi
14780
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14782 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14783 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14784 $as_echo_n "(cached) " >&6
14785 else
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788
14789 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14790 uint32 i;
14791 int main() { return __sync_fetch_and_add (&i, 1); }
14792
14793 _ACEOF
14794 if ac_fn_c_try_link "$LINENO"; then :
14795 libgo_cv_func___sync_fetch_and_add_4=yes
14796 else
14797 libgo_cv_func___sync_fetch_and_add_4=no
14798 fi
14799 rm -f core conftest.err conftest.$ac_objext \
14800 conftest$ac_exeext conftest.$ac_ext
14801 fi
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14803 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14804 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14805
14806 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14807
14808 fi
14809
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14811 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14812 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817
14818 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14819 uint64 i;
14820 int main() { return __sync_add_and_fetch (&i, 1); }
14821
14822 _ACEOF
14823 if ac_fn_c_try_link "$LINENO"; then :
14824 libgo_cv_func___sync_add_and_fetch_8=yes
14825 else
14826 libgo_cv_func___sync_add_and_fetch_8=no
14827 fi
14828 rm -f core conftest.err conftest.$ac_objext \
14829 conftest$ac_exeext conftest.$ac_ext
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14832 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14833 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14834
14835 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14836
14837 fi
14838
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14840 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14841 if test "${libgo_cv_c_stringops+set}" = set; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 CFLAGS_hold=$CFLAGS
14845 CFLAGS="$CFLAGS -minline-all-stringops"
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14848 int i;
14849 _ACEOF
14850 if ac_fn_c_try_compile "$LINENO"; then :
14851 libgo_cv_c_stringops=yes
14852 else
14853 libgo_cv_c_stringops=no
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 CFLAGS=$CFLAGS_hold
14857 fi
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14859 $as_echo "$libgo_cv_c_stringops" >&6; }
14860 STRINGOPS_FLAG=
14861 if test "$libgo_cv_c_stringops" = yes; then
14862 STRINGOPS_FLAG=-minline-all-stringops
14863 fi
14864
14865
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14867 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14868 if test "${libgo_cv_c_fancymath+set}" = set; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 CFLAGS_hold=$CFLAGS
14872 CFLAGS="$CFLAGS -mfancy-math-387"
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 /* end confdefs.h. */
14875 int i;
14876 _ACEOF
14877 if ac_fn_c_try_compile "$LINENO"; then :
14878 libgo_cv_c_fancymath=yes
14879 else
14880 libgo_cv_c_fancymath=no
14881 fi
14882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14883 CFLAGS=$CFLAGS_hold
14884 fi
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
14886 $as_echo "$libgo_cv_c_fancymath" >&6; }
14887 MATH_FLAG=
14888 if test "$libgo_cv_c_fancymath" = yes; then
14889 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
14890 fi
14891
14892
14893 CFLAGS_hold=$CFLAGS
14894 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14895 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14896 if test "x$ac_cv_type_off64_t" = x""yes; then :
14897
14898 cat >>confdefs.h <<_ACEOF
14899 #define HAVE_OFF64_T 1
14900 _ACEOF
14901
14902
14903 fi
14904
14905 CFLAGS=$CFLAGS_hold
14906
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14908 $as_echo_n "checking epoll_event size... " >&6; }
14909 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14913
14914 else
14915 libgo_cv_c_epoll_event_size=0
14916 fi
14917
14918 fi
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14920 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14921 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14922
14923
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14925 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14926 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14930 #include <sys/epoll.h>"; then :
14931
14932 else
14933 libgo_cv_c_epoll_event_fd_offset=0
14934 fi
14935
14936 fi
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14938 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14939 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14940
14941
14942 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
14943 "
14944 if test "x$ac_cv_type_struct_exception" = x""yes; then :
14945 libgo_has_struct_exception=yes
14946 else
14947 libgo_has_struct_exception=no
14948 fi
14949
14950 if test "$libgo_has_struct_exception" = "yes"; then
14951
14952 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
14953
14954 fi
14955
14956 case "$target" in
14957 sparc*-*-solaris2.[89]*)
14958 libgo_cv_lib_makecontext_stack_top=yes
14959 ;;
14960 *)
14961 libgo_cv_lib_makecontext_stack_top=no
14962 ;;
14963 esac
14964 if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
14965
14966 $as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
14967
14968 fi
14969
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
14971 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
14972 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 CFLAGS_hold="$CFLAGS"
14976 CFLAGS="$PTHREAD_CFLAGS"
14977 LIBS_hold="$LIBS"
14978 LIBS="$LIBS $PTHREAD_LIBS"
14979 # The cast to long int works around a bug in the HP C Compiler
14980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14982 # This bug is HP SR number 8606223364.
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14984 $as_echo_n "checking size of void *... " >&6; }
14985 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14986 $as_echo_n "(cached) " >&6
14987 else
14988 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14989
14990 else
14991 if test "$ac_cv_type_void_p" = yes; then
14992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14994 { as_fn_set_status 77
14995 as_fn_error "cannot compute sizeof (void *)
14996 See \`config.log' for more details." "$LINENO" 5; }; }
14997 else
14998 ac_cv_sizeof_void_p=0
14999 fi
15000 fi
15001
15002 fi
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15004 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15005
15006
15007
15008 cat >>confdefs.h <<_ACEOF
15009 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15010 _ACEOF
15011
15012
15013 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15014 if test "$cross_compiling" = yes; then :
15015 case "$target:$ptr_type_size" in
15016 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15017 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15018 *)
15019 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15020 esac
15021
15022 else
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15025
15026 #include <pthread.h>
15027 #include <stdlib.h>
15028 #include <ucontext.h>
15029 #include <unistd.h>
15030
15031 __thread int tls;
15032
15033 static char stack[10 * 1024 * 1024];
15034 static ucontext_t c;
15035
15036 /* Called via makecontext/setcontext. */
15037
15038 static void
15039 cfn (void)
15040 {
15041 exit (tls);
15042 }
15043
15044 /* Called via pthread_create. */
15045
15046 static void *
15047 tfn (void *dummy)
15048 {
15049 /* The thread should still see this value after calling
15050 setcontext. */
15051 tls = 0;
15052
15053 setcontext (&c);
15054
15055 /* The call to setcontext should not return. */
15056 abort ();
15057 }
15058
15059 int
15060 main ()
15061 {
15062 pthread_t tid;
15063
15064 /* The thread should not see this value. */
15065 tls = 1;
15066
15067 if (getcontext (&c) < 0)
15068 abort ();
15069
15070 c.uc_stack.ss_sp = stack;
15071 #ifdef MAKECONTEXT_STACK_TOP
15072 c.uc_stack.ss_sp += sizeof stack;
15073 #endif
15074 c.uc_stack.ss_flags = 0;
15075 c.uc_stack.ss_size = sizeof stack;
15076 c.uc_link = NULL;
15077 makecontext (&c, cfn, 0);
15078
15079 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15080 abort ();
15081
15082 if (pthread_join (tid, NULL) != 0)
15083 abort ();
15084
15085 /* The thread should have called exit. */
15086 abort ();
15087 }
15088
15089 _ACEOF
15090 if ac_fn_c_try_run "$LINENO"; then :
15091 libgo_cv_lib_setcontext_clobbers_tls=no
15092 else
15093 libgo_cv_lib_setcontext_clobbers_tls=yes
15094 fi
15095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15096 conftest.$ac_objext conftest.beam conftest.$ac_ext
15097 fi
15098
15099 CFLAGS="$CFLAGS_hold"
15100 LIBS="$LIBS_hold"
15101
15102 fi
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15104 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15105 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15106
15107 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15108
15109 fi
15110
15111 cat >confcache <<\_ACEOF
15112 # This file is a shell script that caches the results of configure
15113 # tests run on this system so they can be shared between configure
15114 # scripts and configure runs, see configure's option --config-cache.
15115 # It is not useful on other systems. If it contains results you don't
15116 # want to keep, you may remove or edit it.
15117 #
15118 # config.status only pays attention to the cache file if you give it
15119 # the --recheck option to rerun configure.
15120 #
15121 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15122 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15123 # following values.
15124
15125 _ACEOF
15126
15127 # The following way of writing the cache mishandles newlines in values,
15128 # but we know of no workaround that is simple, portable, and efficient.
15129 # So, we kill variables containing newlines.
15130 # Ultrix sh set writes to stderr and can't be redirected directly,
15131 # and sets the high bit in the cache file unless we assign to the vars.
15132 (
15133 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15134 eval ac_val=\$$ac_var
15135 case $ac_val in #(
15136 *${as_nl}*)
15137 case $ac_var in #(
15138 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15139 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15140 esac
15141 case $ac_var in #(
15142 _ | IFS | as_nl) ;; #(
15143 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15144 *) { eval $ac_var=; unset $ac_var;} ;;
15145 esac ;;
15146 esac
15147 done
15148
15149 (set) 2>&1 |
15150 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15151 *${as_nl}ac_space=\ *)
15152 # `set' does not quote correctly, so add quotes: double-quote
15153 # substitution turns \\\\ into \\, and sed turns \\ into \.
15154 sed -n \
15155 "s/'/'\\\\''/g;
15156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15157 ;; #(
15158 *)
15159 # `set' quotes correctly as required by POSIX, so do not add quotes.
15160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15161 ;;
15162 esac |
15163 sort
15164 ) |
15165 sed '
15166 /^ac_cv_env_/b end
15167 t clear
15168 :clear
15169 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15170 t end
15171 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15172 :end' >>confcache
15173 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15174 if test -w "$cache_file"; then
15175 test "x$cache_file" != "x/dev/null" &&
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15177 $as_echo "$as_me: updating cache $cache_file" >&6;}
15178 cat confcache >$cache_file
15179 else
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15181 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15182 fi
15183 fi
15184 rm -f confcache
15185
15186 if test ${multilib} = yes; then
15187 multilib_arg="--enable-multilib"
15188 else
15189 multilib_arg=
15190 fi
15191
15192 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15193
15194
15195 ac_config_commands="$ac_config_commands default"
15196
15197
15198 cat >confcache <<\_ACEOF
15199 # This file is a shell script that caches the results of configure
15200 # tests run on this system so they can be shared between configure
15201 # scripts and configure runs, see configure's option --config-cache.
15202 # It is not useful on other systems. If it contains results you don't
15203 # want to keep, you may remove or edit it.
15204 #
15205 # config.status only pays attention to the cache file if you give it
15206 # the --recheck option to rerun configure.
15207 #
15208 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15209 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15210 # following values.
15211
15212 _ACEOF
15213
15214 # The following way of writing the cache mishandles newlines in values,
15215 # but we know of no workaround that is simple, portable, and efficient.
15216 # So, we kill variables containing newlines.
15217 # Ultrix sh set writes to stderr and can't be redirected directly,
15218 # and sets the high bit in the cache file unless we assign to the vars.
15219 (
15220 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15221 eval ac_val=\$$ac_var
15222 case $ac_val in #(
15223 *${as_nl}*)
15224 case $ac_var in #(
15225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15227 esac
15228 case $ac_var in #(
15229 _ | IFS | as_nl) ;; #(
15230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15231 *) { eval $ac_var=; unset $ac_var;} ;;
15232 esac ;;
15233 esac
15234 done
15235
15236 (set) 2>&1 |
15237 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15238 *${as_nl}ac_space=\ *)
15239 # `set' does not quote correctly, so add quotes: double-quote
15240 # substitution turns \\\\ into \\, and sed turns \\ into \.
15241 sed -n \
15242 "s/'/'\\\\''/g;
15243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15244 ;; #(
15245 *)
15246 # `set' quotes correctly as required by POSIX, so do not add quotes.
15247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15248 ;;
15249 esac |
15250 sort
15251 ) |
15252 sed '
15253 /^ac_cv_env_/b end
15254 t clear
15255 :clear
15256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15257 t end
15258 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15259 :end' >>confcache
15260 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15261 if test -w "$cache_file"; then
15262 test "x$cache_file" != "x/dev/null" &&
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15264 $as_echo "$as_me: updating cache $cache_file" >&6;}
15265 cat confcache >$cache_file
15266 else
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15268 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15269 fi
15270 fi
15271 rm -f confcache
15272
15273 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15274 # Let make expand exec_prefix.
15275 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15276
15277 DEFS=-DHAVE_CONFIG_H
15278
15279 ac_libobjs=
15280 ac_ltlibobjs=
15281 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15282 # 1. Remove the extension, and $U if already installed.
15283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15284 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15286 # will be set to the directory where LIBOBJS objects are built.
15287 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15288 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15289 done
15290 LIBOBJS=$ac_libobjs
15291
15292 LTLIBOBJS=$ac_ltlibobjs
15293
15294
15295 if test -n "$EXEEXT"; then
15296 am__EXEEXT_TRUE=
15297 am__EXEEXT_FALSE='#'
15298 else
15299 am__EXEEXT_TRUE='#'
15300 am__EXEEXT_FALSE=
15301 fi
15302
15303 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15304 as_fn_error "conditional \"AMDEP\" was never defined.
15305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15306 fi
15307 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15308 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15310 fi
15311 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15312 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15314 fi
15315 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15316 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15318 fi
15319 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15320 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15322 fi
15323 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15324 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15326 fi
15327 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15328 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15330 fi
15331 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15332 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334 fi
15335 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15336 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338 fi
15339 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15340 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342 fi
15343 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15344 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346 fi
15347 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15348 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 fi
15351 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15352 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 fi
15355 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15356 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358 fi
15359 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15360 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362 fi
15363 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15364 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366 fi
15367 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15368 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370 fi
15371 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15372 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15374 fi
15375 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15376 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15378 fi
15379 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15380 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15382 fi
15383 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15384 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15386 fi
15387 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15388 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15390 fi
15391 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15392 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15394 fi
15395 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15396 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15398 fi
15399 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15400 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15402 fi
15403 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15404 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15406 fi
15407
15408 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15409 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15411 fi
15412 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15413 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15415 fi
15416 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15417 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15419 fi
15420
15421 : ${CONFIG_STATUS=./config.status}
15422 ac_write_fail=0
15423 ac_clean_files_save=$ac_clean_files
15424 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15426 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15427 as_write_fail=0
15428 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15429 #! $SHELL
15430 # Generated by $as_me.
15431 # Run this file to recreate the current configuration.
15432 # Compiler output produced by configure, useful for debugging
15433 # configure, is in config.log if it exists.
15434
15435 debug=false
15436 ac_cs_recheck=false
15437 ac_cs_silent=false
15438
15439 SHELL=\${CONFIG_SHELL-$SHELL}
15440 export SHELL
15441 _ASEOF
15442 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15443 ## -------------------- ##
15444 ## M4sh Initialization. ##
15445 ## -------------------- ##
15446
15447 # Be more Bourne compatible
15448 DUALCASE=1; export DUALCASE # for MKS sh
15449 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15450 emulate sh
15451 NULLCMD=:
15452 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15453 # is contrary to our usage. Disable this feature.
15454 alias -g '${1+"$@"}'='"$@"'
15455 setopt NO_GLOB_SUBST
15456 else
15457 case `(set -o) 2>/dev/null` in #(
15458 *posix*) :
15459 set -o posix ;; #(
15460 *) :
15461 ;;
15462 esac
15463 fi
15464
15465
15466 as_nl='
15467 '
15468 export as_nl
15469 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15470 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15471 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15473 # Prefer a ksh shell builtin over an external printf program on Solaris,
15474 # but without wasting forks for bash or zsh.
15475 if test -z "$BASH_VERSION$ZSH_VERSION" \
15476 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15477 as_echo='print -r --'
15478 as_echo_n='print -rn --'
15479 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15480 as_echo='printf %s\n'
15481 as_echo_n='printf %s'
15482 else
15483 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15484 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15485 as_echo_n='/usr/ucb/echo -n'
15486 else
15487 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15488 as_echo_n_body='eval
15489 arg=$1;
15490 case $arg in #(
15491 *"$as_nl"*)
15492 expr "X$arg" : "X\\(.*\\)$as_nl";
15493 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15494 esac;
15495 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15496 '
15497 export as_echo_n_body
15498 as_echo_n='sh -c $as_echo_n_body as_echo'
15499 fi
15500 export as_echo_body
15501 as_echo='sh -c $as_echo_body as_echo'
15502 fi
15503
15504 # The user is always right.
15505 if test "${PATH_SEPARATOR+set}" != set; then
15506 PATH_SEPARATOR=:
15507 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15508 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15509 PATH_SEPARATOR=';'
15510 }
15511 fi
15512
15513
15514 # IFS
15515 # We need space, tab and new line, in precisely that order. Quoting is
15516 # there to prevent editors from complaining about space-tab.
15517 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15518 # splitting by setting IFS to empty value.)
15519 IFS=" "" $as_nl"
15520
15521 # Find who we are. Look in the path if we contain no directory separator.
15522 case $0 in #((
15523 *[\\/]* ) as_myself=$0 ;;
15524 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15525 for as_dir in $PATH
15526 do
15527 IFS=$as_save_IFS
15528 test -z "$as_dir" && as_dir=.
15529 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15530 done
15531 IFS=$as_save_IFS
15532
15533 ;;
15534 esac
15535 # We did not find ourselves, most probably we were run as `sh COMMAND'
15536 # in which case we are not to be found in the path.
15537 if test "x$as_myself" = x; then
15538 as_myself=$0
15539 fi
15540 if test ! -f "$as_myself"; then
15541 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15542 exit 1
15543 fi
15544
15545 # Unset variables that we do not need and which cause bugs (e.g. in
15546 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15547 # suppresses any "Segmentation fault" message there. '((' could
15548 # trigger a bug in pdksh 5.2.14.
15549 for as_var in BASH_ENV ENV MAIL MAILPATH
15550 do eval test x\${$as_var+set} = xset \
15551 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15552 done
15553 PS1='$ '
15554 PS2='> '
15555 PS4='+ '
15556
15557 # NLS nuisances.
15558 LC_ALL=C
15559 export LC_ALL
15560 LANGUAGE=C
15561 export LANGUAGE
15562
15563 # CDPATH.
15564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15565
15566
15567 # as_fn_error ERROR [LINENO LOG_FD]
15568 # ---------------------------------
15569 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15570 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15571 # script with status $?, using 1 if that was 0.
15572 as_fn_error ()
15573 {
15574 as_status=$?; test $as_status -eq 0 && as_status=1
15575 if test "$3"; then
15576 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15577 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15578 fi
15579 $as_echo "$as_me: error: $1" >&2
15580 as_fn_exit $as_status
15581 } # as_fn_error
15582
15583
15584 # as_fn_set_status STATUS
15585 # -----------------------
15586 # Set $? to STATUS, without forking.
15587 as_fn_set_status ()
15588 {
15589 return $1
15590 } # as_fn_set_status
15591
15592 # as_fn_exit STATUS
15593 # -----------------
15594 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15595 as_fn_exit ()
15596 {
15597 set +e
15598 as_fn_set_status $1
15599 exit $1
15600 } # as_fn_exit
15601
15602 # as_fn_unset VAR
15603 # ---------------
15604 # Portably unset VAR.
15605 as_fn_unset ()
15606 {
15607 { eval $1=; unset $1;}
15608 }
15609 as_unset=as_fn_unset
15610 # as_fn_append VAR VALUE
15611 # ----------------------
15612 # Append the text in VALUE to the end of the definition contained in VAR. Take
15613 # advantage of any shell optimizations that allow amortized linear growth over
15614 # repeated appends, instead of the typical quadratic growth present in naive
15615 # implementations.
15616 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15617 eval 'as_fn_append ()
15618 {
15619 eval $1+=\$2
15620 }'
15621 else
15622 as_fn_append ()
15623 {
15624 eval $1=\$$1\$2
15625 }
15626 fi # as_fn_append
15627
15628 # as_fn_arith ARG...
15629 # ------------------
15630 # Perform arithmetic evaluation on the ARGs, and store the result in the
15631 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15632 # must be portable across $(()) and expr.
15633 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15634 eval 'as_fn_arith ()
15635 {
15636 as_val=$(( $* ))
15637 }'
15638 else
15639 as_fn_arith ()
15640 {
15641 as_val=`expr "$@" || test $? -eq 1`
15642 }
15643 fi # as_fn_arith
15644
15645
15646 if expr a : '\(a\)' >/dev/null 2>&1 &&
15647 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15648 as_expr=expr
15649 else
15650 as_expr=false
15651 fi
15652
15653 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15654 as_basename=basename
15655 else
15656 as_basename=false
15657 fi
15658
15659 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15660 as_dirname=dirname
15661 else
15662 as_dirname=false
15663 fi
15664
15665 as_me=`$as_basename -- "$0" ||
15666 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15667 X"$0" : 'X\(//\)$' \| \
15668 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15669 $as_echo X/"$0" |
15670 sed '/^.*\/\([^/][^/]*\)\/*$/{
15671 s//\1/
15672 q
15673 }
15674 /^X\/\(\/\/\)$/{
15675 s//\1/
15676 q
15677 }
15678 /^X\/\(\/\).*/{
15679 s//\1/
15680 q
15681 }
15682 s/.*/./; q'`
15683
15684 # Avoid depending upon Character Ranges.
15685 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15686 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15687 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15688 as_cr_digits='0123456789'
15689 as_cr_alnum=$as_cr_Letters$as_cr_digits
15690
15691 ECHO_C= ECHO_N= ECHO_T=
15692 case `echo -n x` in #(((((
15693 -n*)
15694 case `echo 'xy\c'` in
15695 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15696 xy) ECHO_C='\c';;
15697 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15698 ECHO_T=' ';;
15699 esac;;
15700 *)
15701 ECHO_N='-n';;
15702 esac
15703
15704 rm -f conf$$ conf$$.exe conf$$.file
15705 if test -d conf$$.dir; then
15706 rm -f conf$$.dir/conf$$.file
15707 else
15708 rm -f conf$$.dir
15709 mkdir conf$$.dir 2>/dev/null
15710 fi
15711 if (echo >conf$$.file) 2>/dev/null; then
15712 if ln -s conf$$.file conf$$ 2>/dev/null; then
15713 as_ln_s='ln -s'
15714 # ... but there are two gotchas:
15715 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15716 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15717 # In both cases, we have to default to `cp -p'.
15718 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15719 as_ln_s='cp -p'
15720 elif ln conf$$.file conf$$ 2>/dev/null; then
15721 as_ln_s=ln
15722 else
15723 as_ln_s='cp -p'
15724 fi
15725 else
15726 as_ln_s='cp -p'
15727 fi
15728 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15729 rmdir conf$$.dir 2>/dev/null
15730
15731
15732 # as_fn_mkdir_p
15733 # -------------
15734 # Create "$as_dir" as a directory, including parents if necessary.
15735 as_fn_mkdir_p ()
15736 {
15737
15738 case $as_dir in #(
15739 -*) as_dir=./$as_dir;;
15740 esac
15741 test -d "$as_dir" || eval $as_mkdir_p || {
15742 as_dirs=
15743 while :; do
15744 case $as_dir in #(
15745 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15746 *) as_qdir=$as_dir;;
15747 esac
15748 as_dirs="'$as_qdir' $as_dirs"
15749 as_dir=`$as_dirname -- "$as_dir" ||
15750 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15751 X"$as_dir" : 'X\(//\)[^/]' \| \
15752 X"$as_dir" : 'X\(//\)$' \| \
15753 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15754 $as_echo X"$as_dir" |
15755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15756 s//\1/
15757 q
15758 }
15759 /^X\(\/\/\)[^/].*/{
15760 s//\1/
15761 q
15762 }
15763 /^X\(\/\/\)$/{
15764 s//\1/
15765 q
15766 }
15767 /^X\(\/\).*/{
15768 s//\1/
15769 q
15770 }
15771 s/.*/./; q'`
15772 test -d "$as_dir" && break
15773 done
15774 test -z "$as_dirs" || eval "mkdir $as_dirs"
15775 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15776
15777
15778 } # as_fn_mkdir_p
15779 if mkdir -p . 2>/dev/null; then
15780 as_mkdir_p='mkdir -p "$as_dir"'
15781 else
15782 test -d ./-p && rmdir ./-p
15783 as_mkdir_p=false
15784 fi
15785
15786 if test -x / >/dev/null 2>&1; then
15787 as_test_x='test -x'
15788 else
15789 if ls -dL / >/dev/null 2>&1; then
15790 as_ls_L_option=L
15791 else
15792 as_ls_L_option=
15793 fi
15794 as_test_x='
15795 eval sh -c '\''
15796 if test -d "$1"; then
15797 test -d "$1/.";
15798 else
15799 case $1 in #(
15800 -*)set "./$1";;
15801 esac;
15802 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15803 ???[sx]*):;;*)false;;esac;fi
15804 '\'' sh
15805 '
15806 fi
15807 as_executable_p=$as_test_x
15808
15809 # Sed expression to map a string onto a valid CPP name.
15810 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15811
15812 # Sed expression to map a string onto a valid variable name.
15813 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15814
15815
15816 exec 6>&1
15817 ## ----------------------------------- ##
15818 ## Main body of $CONFIG_STATUS script. ##
15819 ## ----------------------------------- ##
15820 _ASEOF
15821 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15822
15823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15824 # Save the log message, to keep $0 and so on meaningful, and to
15825 # report actual input values of CONFIG_FILES etc. instead of their
15826 # values after options handling.
15827 ac_log="
15828 This file was extended by package-unused $as_me version-unused, which was
15829 generated by GNU Autoconf 2.64. Invocation command line was
15830
15831 CONFIG_FILES = $CONFIG_FILES
15832 CONFIG_HEADERS = $CONFIG_HEADERS
15833 CONFIG_LINKS = $CONFIG_LINKS
15834 CONFIG_COMMANDS = $CONFIG_COMMANDS
15835 $ $0 $@
15836
15837 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15838 "
15839
15840 _ACEOF
15841
15842 case $ac_config_files in *"
15843 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15844 esac
15845
15846 case $ac_config_headers in *"
15847 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15848 esac
15849
15850
15851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15852 # Files that config.status was made for.
15853 config_files="$ac_config_files"
15854 config_headers="$ac_config_headers"
15855 config_commands="$ac_config_commands"
15856
15857 _ACEOF
15858
15859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15860 ac_cs_usage="\
15861 \`$as_me' instantiates files and other configuration actions
15862 from templates according to the current configuration. Unless the files
15863 and actions are specified as TAGs, all are instantiated by default.
15864
15865 Usage: $0 [OPTION]... [TAG]...
15866
15867 -h, --help print this help, then exit
15868 -V, --version print version number and configuration settings, then exit
15869 -q, --quiet, --silent
15870 do not print progress messages
15871 -d, --debug don't remove temporary files
15872 --recheck update $as_me by reconfiguring in the same conditions
15873 --file=FILE[:TEMPLATE]
15874 instantiate the configuration file FILE
15875 --header=FILE[:TEMPLATE]
15876 instantiate the configuration header FILE
15877
15878 Configuration files:
15879 $config_files
15880
15881 Configuration headers:
15882 $config_headers
15883
15884 Configuration commands:
15885 $config_commands
15886
15887 Report bugs to the package provider."
15888
15889 _ACEOF
15890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15891 ac_cs_version="\\
15892 package-unused config.status version-unused
15893 configured by $0, generated by GNU Autoconf 2.64,
15894 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15895
15896 Copyright (C) 2009 Free Software Foundation, Inc.
15897 This config.status script is free software; the Free Software Foundation
15898 gives unlimited permission to copy, distribute and modify it."
15899
15900 ac_pwd='$ac_pwd'
15901 srcdir='$srcdir'
15902 INSTALL='$INSTALL'
15903 MKDIR_P='$MKDIR_P'
15904 AWK='$AWK'
15905 test -n "\$AWK" || AWK=awk
15906 _ACEOF
15907
15908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15909 # The default lists apply if the user does not specify any file.
15910 ac_need_defaults=:
15911 while test $# != 0
15912 do
15913 case $1 in
15914 --*=*)
15915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15917 ac_shift=:
15918 ;;
15919 *)
15920 ac_option=$1
15921 ac_optarg=$2
15922 ac_shift=shift
15923 ;;
15924 esac
15925
15926 case $ac_option in
15927 # Handling of the options.
15928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15929 ac_cs_recheck=: ;;
15930 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15931 $as_echo "$ac_cs_version"; exit ;;
15932 --debug | --debu | --deb | --de | --d | -d )
15933 debug=: ;;
15934 --file | --fil | --fi | --f )
15935 $ac_shift
15936 case $ac_optarg in
15937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15938 esac
15939 as_fn_append CONFIG_FILES " '$ac_optarg'"
15940 ac_need_defaults=false;;
15941 --header | --heade | --head | --hea )
15942 $ac_shift
15943 case $ac_optarg in
15944 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15945 esac
15946 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15947 ac_need_defaults=false;;
15948 --he | --h)
15949 # Conflict between --help and --header
15950 as_fn_error "ambiguous option: \`$1'
15951 Try \`$0 --help' for more information.";;
15952 --help | --hel | -h )
15953 $as_echo "$ac_cs_usage"; exit ;;
15954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15955 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15956 ac_cs_silent=: ;;
15957
15958 # This is an error.
15959 -*) as_fn_error "unrecognized option: \`$1'
15960 Try \`$0 --help' for more information." ;;
15961
15962 *) as_fn_append ac_config_targets " $1"
15963 ac_need_defaults=false ;;
15964
15965 esac
15966 shift
15967 done
15968
15969 ac_configure_extra_args=
15970
15971 if $ac_cs_silent; then
15972 exec 6>/dev/null
15973 ac_configure_extra_args="$ac_configure_extra_args --silent"
15974 fi
15975
15976 _ACEOF
15977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15978 if \$ac_cs_recheck; then
15979 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15980 shift
15981 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15982 CONFIG_SHELL='$SHELL'
15983 export CONFIG_SHELL
15984 exec "\$@"
15985 fi
15986
15987 _ACEOF
15988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15989 exec 5>>config.log
15990 {
15991 echo
15992 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15993 ## Running $as_me. ##
15994 _ASBOX
15995 $as_echo "$ac_log"
15996 } >&5
15997
15998 _ACEOF
15999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16000 #
16001 # INIT-COMMANDS
16002 #
16003
16004 srcdir="$srcdir"
16005 host="$host"
16006 target="$target"
16007 with_multisubdir="$with_multisubdir"
16008 with_multisrctop="$with_multisrctop"
16009 with_target_subdir="$with_target_subdir"
16010 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16011 multi_basedir="$multi_basedir"
16012 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16013 CC="$CC"
16014 CXX="$CXX"
16015 GFORTRAN="$GFORTRAN"
16016 GCJ="$GCJ"
16017 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16018
16019
16020 # The HP-UX ksh and POSIX shell print the target directory to stdout
16021 # if CDPATH is set.
16022 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16023
16024 sed_quote_subst='$sed_quote_subst'
16025 double_quote_subst='$double_quote_subst'
16026 delay_variable_subst='$delay_variable_subst'
16027 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16028 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16029 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16030 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16031 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16032 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16033 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16034 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16035 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16036 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16037 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16038 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16039 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16040 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16041 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16042 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16043 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16044 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16045 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16046 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16047 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16048 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16049 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16050 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16051 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16052 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16053 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16054 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16055 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16056 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16057 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16058 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16059 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16060 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16061 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16062 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16063 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16064 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16065 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16066 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16067 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16068 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16069 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16070 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16071 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16072 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16073 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16074 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16075 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"`'
16076 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16077 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16078 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16079 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16080 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16081 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16082 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16083 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16084 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16085 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16086 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16087 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16088 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16089 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16090 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16091 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16092 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16093 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16094 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16095 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16096 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16097 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16098 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16099 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16100 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16101 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16102 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16103 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16104 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16105 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16106 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16107 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16108 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16109 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16110 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16111 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16112 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16113 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16114 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16115 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16116 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16117 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16118 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16119 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16120 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16121 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16122 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16123 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16124 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16125 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16126 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16127 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16128 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16129 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16130 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16131 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16132 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16133 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16134 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16135 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16136 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16137 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16138 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16139 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16140 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16141 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16142 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16143 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16144 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16145 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16146 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16147 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16148 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16149 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16150 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16151 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16152 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16153 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16154 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16155 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16156 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16157 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16158 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16159 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16160 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16161 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16162 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16163 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16164 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16165 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16166 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16167 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16168 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16169 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16170 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16171 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16172 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16173 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16174 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16175 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16176 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16177 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16178 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16179 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16180 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16181 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16182 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16183 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16184 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16185 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16186 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16187 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16188 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16189 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16190
16191 LTCC='$LTCC'
16192 LTCFLAGS='$LTCFLAGS'
16193 compiler='$compiler_DEFAULT'
16194
16195 # A function that is used when there is no print builtin or printf.
16196 func_fallback_echo ()
16197 {
16198 eval 'cat <<_LTECHO_EOF
16199 \$1
16200 _LTECHO_EOF'
16201 }
16202
16203 # Quote evaled strings.
16204 for var in SED \
16205 GREP \
16206 EGREP \
16207 FGREP \
16208 SHELL \
16209 ECHO \
16210 LD \
16211 NM \
16212 LN_S \
16213 lt_SP2NL \
16214 lt_NL2SP \
16215 reload_flag \
16216 OBJDUMP \
16217 deplibs_check_method \
16218 file_magic_cmd \
16219 AR \
16220 AR_FLAGS \
16221 STRIP \
16222 RANLIB \
16223 CC \
16224 CFLAGS \
16225 compiler \
16226 lt_cv_sys_global_symbol_pipe \
16227 lt_cv_sys_global_symbol_to_cdecl \
16228 lt_cv_sys_global_symbol_to_c_name_address \
16229 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16230 lt_prog_compiler_no_builtin_flag \
16231 lt_prog_compiler_wl \
16232 lt_prog_compiler_pic \
16233 lt_prog_compiler_static \
16234 lt_cv_prog_compiler_c_o \
16235 need_locks \
16236 DSYMUTIL \
16237 NMEDIT \
16238 LIPO \
16239 OTOOL \
16240 OTOOL64 \
16241 shrext_cmds \
16242 export_dynamic_flag_spec \
16243 whole_archive_flag_spec \
16244 compiler_needs_object \
16245 with_gnu_ld \
16246 allow_undefined_flag \
16247 no_undefined_flag \
16248 hardcode_libdir_flag_spec \
16249 hardcode_libdir_flag_spec_ld \
16250 hardcode_libdir_separator \
16251 fix_srcfile_path \
16252 exclude_expsyms \
16253 include_expsyms \
16254 file_list_spec \
16255 variables_saved_for_relink \
16256 libname_spec \
16257 library_names_spec \
16258 soname_spec \
16259 install_override_mode \
16260 finish_eval \
16261 old_striplib \
16262 striplib \
16263 LD_GO \
16264 reload_flag_GO \
16265 compiler_GO \
16266 lt_prog_compiler_no_builtin_flag_GO \
16267 lt_prog_compiler_wl_GO \
16268 lt_prog_compiler_pic_GO \
16269 lt_prog_compiler_static_GO \
16270 lt_cv_prog_compiler_c_o_GO \
16271 export_dynamic_flag_spec_GO \
16272 whole_archive_flag_spec_GO \
16273 compiler_needs_object_GO \
16274 with_gnu_ld_GO \
16275 allow_undefined_flag_GO \
16276 no_undefined_flag_GO \
16277 hardcode_libdir_flag_spec_GO \
16278 hardcode_libdir_flag_spec_ld_GO \
16279 hardcode_libdir_separator_GO \
16280 fix_srcfile_path_GO \
16281 exclude_expsyms_GO \
16282 include_expsyms_GO \
16283 file_list_spec_GO; do
16284 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16285 *[\\\\\\\`\\"\\\$]*)
16286 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16287 ;;
16288 *)
16289 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16290 ;;
16291 esac
16292 done
16293
16294 # Double-quote double-evaled strings.
16295 for var in reload_cmds \
16296 old_postinstall_cmds \
16297 old_postuninstall_cmds \
16298 old_archive_cmds \
16299 extract_expsyms_cmds \
16300 old_archive_from_new_cmds \
16301 old_archive_from_expsyms_cmds \
16302 archive_cmds \
16303 archive_expsym_cmds \
16304 module_cmds \
16305 module_expsym_cmds \
16306 export_symbols_cmds \
16307 prelink_cmds \
16308 postinstall_cmds \
16309 postuninstall_cmds \
16310 finish_cmds \
16311 sys_lib_search_path_spec \
16312 sys_lib_dlsearch_path_spec \
16313 reload_cmds_GO \
16314 old_archive_cmds_GO \
16315 old_archive_from_new_cmds_GO \
16316 old_archive_from_expsyms_cmds_GO \
16317 archive_cmds_GO \
16318 archive_expsym_cmds_GO \
16319 module_cmds_GO \
16320 module_expsym_cmds_GO \
16321 export_symbols_cmds_GO \
16322 prelink_cmds_GO; do
16323 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16324 *[\\\\\\\`\\"\\\$]*)
16325 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16326 ;;
16327 *)
16328 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16329 ;;
16330 esac
16331 done
16332
16333 ac_aux_dir='$ac_aux_dir'
16334 xsi_shell='$xsi_shell'
16335 lt_shell_append='$lt_shell_append'
16336
16337 # See if we are running on zsh, and set the options which allow our
16338 # commands through without removal of \ escapes INIT.
16339 if test -n "\${ZSH_VERSION+set}" ; then
16340 setopt NO_GLOB_SUBST
16341 fi
16342
16343
16344 PACKAGE='$PACKAGE'
16345 VERSION='$VERSION'
16346 TIMESTAMP='$TIMESTAMP'
16347 RM='$RM'
16348 ofile='$ofile'
16349
16350
16351
16352
16353
16354
16355 # Variables needed in config.status (file generation) which aren't already
16356 # passed by autoconf.
16357 SUBDIRS="$SUBDIRS"
16358
16359
16360 _ACEOF
16361
16362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363
16364 # Handling of arguments.
16365 for ac_config_target in $ac_config_targets
16366 do
16367 case $ac_config_target in
16368 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16369 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16370 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16371 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16372 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16373 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16374 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16375
16376 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16377 esac
16378 done
16379
16380
16381 # If the user did not use the arguments to specify the items to instantiate,
16382 # then the envvar interface is used. Set only those that are not.
16383 # We use the long form for the default assignment because of an extremely
16384 # bizarre bug on SunOS 4.1.3.
16385 if $ac_need_defaults; then
16386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16388 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16389 fi
16390
16391 # Have a temporary directory for convenience. Make it in the build tree
16392 # simply because there is no reason against having it here, and in addition,
16393 # creating and moving files from /tmp can sometimes cause problems.
16394 # Hook for its removal unless debugging.
16395 # Note that there is a small window in which the directory will not be cleaned:
16396 # after its creation but before its name has been assigned to `$tmp'.
16397 $debug ||
16398 {
16399 tmp=
16400 trap 'exit_status=$?
16401 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16402 ' 0
16403 trap 'as_fn_exit 1' 1 2 13 15
16404 }
16405 # Create a (secure) tmp directory for tmp files.
16406
16407 {
16408 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16409 test -n "$tmp" && test -d "$tmp"
16410 } ||
16411 {
16412 tmp=./conf$$-$RANDOM
16413 (umask 077 && mkdir "$tmp")
16414 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16415
16416 # Set up the scripts for CONFIG_FILES section.
16417 # No need to generate them if there are no CONFIG_FILES.
16418 # This happens for instance with `./config.status config.h'.
16419 if test -n "$CONFIG_FILES"; then
16420
16421
16422 ac_cr=`echo X | tr X '\015'`
16423 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16424 # But we know of no other shell where ac_cr would be empty at this
16425 # point, so we can use a bashism as a fallback.
16426 if test "x$ac_cr" = x; then
16427 eval ac_cr=\$\'\\r\'
16428 fi
16429 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16430 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16431 ac_cs_awk_cr='\r'
16432 else
16433 ac_cs_awk_cr=$ac_cr
16434 fi
16435
16436 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16437 _ACEOF
16438
16439
16440 {
16441 echo "cat >conf$$subs.awk <<_ACEOF" &&
16442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16443 echo "_ACEOF"
16444 } >conf$$subs.sh ||
16445 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16446 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16447 ac_delim='%!_!# '
16448 for ac_last_try in false false false false false :; do
16449 . ./conf$$subs.sh ||
16450 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16451
16452 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16453 if test $ac_delim_n = $ac_delim_num; then
16454 break
16455 elif $ac_last_try; then
16456 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16457 else
16458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16459 fi
16460 done
16461 rm -f conf$$subs.sh
16462
16463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16464 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16465 _ACEOF
16466 sed -n '
16467 h
16468 s/^/S["/; s/!.*/"]=/
16469 p
16470 g
16471 s/^[^!]*!//
16472 :repl
16473 t repl
16474 s/'"$ac_delim"'$//
16475 t delim
16476 :nl
16477 h
16478 s/\(.\{148\}\).*/\1/
16479 t more1
16480 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16481 p
16482 n
16483 b repl
16484 :more1
16485 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16486 p
16487 g
16488 s/.\{148\}//
16489 t nl
16490 :delim
16491 h
16492 s/\(.\{148\}\).*/\1/
16493 t more2
16494 s/["\\]/\\&/g; s/^/"/; s/$/"/
16495 p
16496 b
16497 :more2
16498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16499 p
16500 g
16501 s/.\{148\}//
16502 t delim
16503 ' <conf$$subs.awk | sed '
16504 /^[^""]/{
16505 N
16506 s/\n//
16507 }
16508 ' >>$CONFIG_STATUS || ac_write_fail=1
16509 rm -f conf$$subs.awk
16510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16511 _ACAWK
16512 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16513 for (key in S) S_is_set[key] = 1
16514 FS = "\a"
16515
16516 }
16517 {
16518 line = $ 0
16519 nfields = split(line, field, "@")
16520 substed = 0
16521 len = length(field[1])
16522 for (i = 2; i < nfields; i++) {
16523 key = field[i]
16524 keylen = length(key)
16525 if (S_is_set[key]) {
16526 value = S[key]
16527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16528 len += length(value) + length(field[++i])
16529 substed = 1
16530 } else
16531 len += 1 + keylen
16532 }
16533
16534 print line
16535 }
16536
16537 _ACAWK
16538 _ACEOF
16539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16540 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16541 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16542 else
16543 cat
16544 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16545 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16546 _ACEOF
16547
16548 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16549 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16550 # trailing colons and then remove the whole line if VPATH becomes empty
16551 # (actually we leave an empty line to preserve line numbers).
16552 if test "x$srcdir" = x.; then
16553 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16554 s/:*\$(srcdir):*/:/
16555 s/:*\${srcdir}:*/:/
16556 s/:*@srcdir@:*/:/
16557 s/^\([^=]*=[ ]*\):*/\1/
16558 s/:*$//
16559 s/^[^=]*=[ ]*$//
16560 }'
16561 fi
16562
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16564 fi # test -n "$CONFIG_FILES"
16565
16566 # Set up the scripts for CONFIG_HEADERS section.
16567 # No need to generate them if there are no CONFIG_HEADERS.
16568 # This happens for instance with `./config.status Makefile'.
16569 if test -n "$CONFIG_HEADERS"; then
16570 cat >"$tmp/defines.awk" <<\_ACAWK ||
16571 BEGIN {
16572 _ACEOF
16573
16574 # Transform confdefs.h into an awk script `defines.awk', embedded as
16575 # here-document in config.status, that substitutes the proper values into
16576 # config.h.in to produce config.h.
16577
16578 # Create a delimiter string that does not exist in confdefs.h, to ease
16579 # handling of long lines.
16580 ac_delim='%!_!# '
16581 for ac_last_try in false false :; do
16582 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16583 if test -z "$ac_t"; then
16584 break
16585 elif $ac_last_try; then
16586 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16587 else
16588 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16589 fi
16590 done
16591
16592 # For the awk script, D is an array of macro values keyed by name,
16593 # likewise P contains macro parameters if any. Preserve backslash
16594 # newline sequences.
16595
16596 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16597 sed -n '
16598 s/.\{148\}/&'"$ac_delim"'/g
16599 t rset
16600 :rset
16601 s/^[ ]*#[ ]*define[ ][ ]*/ /
16602 t def
16603 d
16604 :def
16605 s/\\$//
16606 t bsnl
16607 s/["\\]/\\&/g
16608 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16609 D["\1"]=" \3"/p
16610 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16611 d
16612 :bsnl
16613 s/["\\]/\\&/g
16614 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16615 D["\1"]=" \3\\\\\\n"\\/p
16616 t cont
16617 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16618 t cont
16619 d
16620 :cont
16621 n
16622 s/.\{148\}/&'"$ac_delim"'/g
16623 t clear
16624 :clear
16625 s/\\$//
16626 t bsnlc
16627 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16628 d
16629 :bsnlc
16630 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16631 b cont
16632 ' <confdefs.h | sed '
16633 s/'"$ac_delim"'/"\\\
16634 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16635
16636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16637 for (key in D) D_is_set[key] = 1
16638 FS = "\a"
16639 }
16640 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16641 line = \$ 0
16642 split(line, arg, " ")
16643 if (arg[1] == "#") {
16644 defundef = arg[2]
16645 mac1 = arg[3]
16646 } else {
16647 defundef = substr(arg[1], 2)
16648 mac1 = arg[2]
16649 }
16650 split(mac1, mac2, "(") #)
16651 macro = mac2[1]
16652 prefix = substr(line, 1, index(line, defundef) - 1)
16653 if (D_is_set[macro]) {
16654 # Preserve the white space surrounding the "#".
16655 print prefix "define", macro P[macro] D[macro]
16656 next
16657 } else {
16658 # Replace #undef with comments. This is necessary, for example,
16659 # in the case of _POSIX_SOURCE, which is predefined and required
16660 # on some systems where configure will not decide to define it.
16661 if (defundef == "undef") {
16662 print "/*", prefix defundef, macro, "*/"
16663 next
16664 }
16665 }
16666 }
16667 { print }
16668 _ACAWK
16669 _ACEOF
16670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16671 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16672 fi # test -n "$CONFIG_HEADERS"
16673
16674
16675 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16676 shift
16677 for ac_tag
16678 do
16679 case $ac_tag in
16680 :[FHLC]) ac_mode=$ac_tag; continue;;
16681 esac
16682 case $ac_mode$ac_tag in
16683 :[FHL]*:*);;
16684 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16685 :[FH]-) ac_tag=-:-;;
16686 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16687 esac
16688 ac_save_IFS=$IFS
16689 IFS=:
16690 set x $ac_tag
16691 IFS=$ac_save_IFS
16692 shift
16693 ac_file=$1
16694 shift
16695
16696 case $ac_mode in
16697 :L) ac_source=$1;;
16698 :[FH])
16699 ac_file_inputs=
16700 for ac_f
16701 do
16702 case $ac_f in
16703 -) ac_f="$tmp/stdin";;
16704 *) # Look for the file first in the build tree, then in the source tree
16705 # (if the path is not absolute). The absolute path cannot be DOS-style,
16706 # because $ac_f cannot contain `:'.
16707 test -f "$ac_f" ||
16708 case $ac_f in
16709 [\\/$]*) false;;
16710 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16711 esac ||
16712 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16713 esac
16714 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16715 as_fn_append ac_file_inputs " '$ac_f'"
16716 done
16717
16718 # Let's still pretend it is `configure' which instantiates (i.e., don't
16719 # use $as_me), people would be surprised to read:
16720 # /* config.h. Generated by config.status. */
16721 configure_input='Generated from '`
16722 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16723 `' by configure.'
16724 if test x"$ac_file" != x-; then
16725 configure_input="$ac_file. $configure_input"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16727 $as_echo "$as_me: creating $ac_file" >&6;}
16728 fi
16729 # Neutralize special characters interpreted by sed in replacement strings.
16730 case $configure_input in #(
16731 *\&* | *\|* | *\\* )
16732 ac_sed_conf_input=`$as_echo "$configure_input" |
16733 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16734 *) ac_sed_conf_input=$configure_input;;
16735 esac
16736
16737 case $ac_tag in
16738 *:-:* | *:-) cat >"$tmp/stdin" \
16739 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16740 esac
16741 ;;
16742 esac
16743
16744 ac_dir=`$as_dirname -- "$ac_file" ||
16745 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16746 X"$ac_file" : 'X\(//\)[^/]' \| \
16747 X"$ac_file" : 'X\(//\)$' \| \
16748 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16749 $as_echo X"$ac_file" |
16750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16751 s//\1/
16752 q
16753 }
16754 /^X\(\/\/\)[^/].*/{
16755 s//\1/
16756 q
16757 }
16758 /^X\(\/\/\)$/{
16759 s//\1/
16760 q
16761 }
16762 /^X\(\/\).*/{
16763 s//\1/
16764 q
16765 }
16766 s/.*/./; q'`
16767 as_dir="$ac_dir"; as_fn_mkdir_p
16768 ac_builddir=.
16769
16770 case "$ac_dir" in
16771 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16772 *)
16773 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16774 # A ".." for each directory in $ac_dir_suffix.
16775 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16776 case $ac_top_builddir_sub in
16777 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16778 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16779 esac ;;
16780 esac
16781 ac_abs_top_builddir=$ac_pwd
16782 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16783 # for backward compatibility:
16784 ac_top_builddir=$ac_top_build_prefix
16785
16786 case $srcdir in
16787 .) # We are building in place.
16788 ac_srcdir=.
16789 ac_top_srcdir=$ac_top_builddir_sub
16790 ac_abs_top_srcdir=$ac_pwd ;;
16791 [\\/]* | ?:[\\/]* ) # Absolute name.
16792 ac_srcdir=$srcdir$ac_dir_suffix;
16793 ac_top_srcdir=$srcdir
16794 ac_abs_top_srcdir=$srcdir ;;
16795 *) # Relative name.
16796 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16797 ac_top_srcdir=$ac_top_build_prefix$srcdir
16798 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16799 esac
16800 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16801
16802
16803 case $ac_mode in
16804 :F)
16805 #
16806 # CONFIG_FILE
16807 #
16808
16809 case $INSTALL in
16810 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16811 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16812 esac
16813 ac_MKDIR_P=$MKDIR_P
16814 case $MKDIR_P in
16815 [\\/$]* | ?:[\\/]* ) ;;
16816 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16817 esac
16818 _ACEOF
16819
16820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16821 # If the template does not know about datarootdir, expand it.
16822 # FIXME: This hack should be removed a few years after 2.60.
16823 ac_datarootdir_hack=; ac_datarootdir_seen=
16824 ac_sed_dataroot='
16825 /datarootdir/ {
16826 p
16827 q
16828 }
16829 /@datadir@/p
16830 /@docdir@/p
16831 /@infodir@/p
16832 /@localedir@/p
16833 /@mandir@/p'
16834 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16835 *datarootdir*) ac_datarootdir_seen=yes;;
16836 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16838 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16839 _ACEOF
16840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16841 ac_datarootdir_hack='
16842 s&@datadir@&$datadir&g
16843 s&@docdir@&$docdir&g
16844 s&@infodir@&$infodir&g
16845 s&@localedir@&$localedir&g
16846 s&@mandir@&$mandir&g
16847 s&\\\${datarootdir}&$datarootdir&g' ;;
16848 esac
16849 _ACEOF
16850
16851 # Neutralize VPATH when `$srcdir' = `.'.
16852 # Shell code in configure.ac might set extrasub.
16853 # FIXME: do we really want to maintain this feature?
16854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16855 ac_sed_extra="$ac_vpsub
16856 $extrasub
16857 _ACEOF
16858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16859 :t
16860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16861 s|@configure_input@|$ac_sed_conf_input|;t t
16862 s&@top_builddir@&$ac_top_builddir_sub&;t t
16863 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16864 s&@srcdir@&$ac_srcdir&;t t
16865 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16866 s&@top_srcdir@&$ac_top_srcdir&;t t
16867 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16868 s&@builddir@&$ac_builddir&;t t
16869 s&@abs_builddir@&$ac_abs_builddir&;t t
16870 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16871 s&@INSTALL@&$ac_INSTALL&;t t
16872 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16873 $ac_datarootdir_hack
16874 "
16875 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16876 || as_fn_error "could not create $ac_file" "$LINENO" 5
16877
16878 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16879 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16880 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16882 which seems to be undefined. Please make sure it is defined." >&5
16883 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16884 which seems to be undefined. Please make sure it is defined." >&2;}
16885
16886 rm -f "$tmp/stdin"
16887 case $ac_file in
16888 -) cat "$tmp/out" && rm -f "$tmp/out";;
16889 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16890 esac \
16891 || as_fn_error "could not create $ac_file" "$LINENO" 5
16892 ;;
16893 :H)
16894 #
16895 # CONFIG_HEADER
16896 #
16897 if test x"$ac_file" != x-; then
16898 {
16899 $as_echo "/* $configure_input */" \
16900 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16901 } >"$tmp/config.h" \
16902 || as_fn_error "could not create $ac_file" "$LINENO" 5
16903 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16905 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16906 else
16907 rm -f "$ac_file"
16908 mv "$tmp/config.h" "$ac_file" \
16909 || as_fn_error "could not create $ac_file" "$LINENO" 5
16910 fi
16911 else
16912 $as_echo "/* $configure_input */" \
16913 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16914 || as_fn_error "could not create -" "$LINENO" 5
16915 fi
16916 # Compute "$ac_file"'s index in $config_headers.
16917 _am_arg="$ac_file"
16918 _am_stamp_count=1
16919 for _am_header in $config_headers :; do
16920 case $_am_header in
16921 $_am_arg | $_am_arg:* )
16922 break ;;
16923 * )
16924 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16925 esac
16926 done
16927 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16928 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16929 X"$_am_arg" : 'X\(//\)[^/]' \| \
16930 X"$_am_arg" : 'X\(//\)$' \| \
16931 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16932 $as_echo X"$_am_arg" |
16933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16934 s//\1/
16935 q
16936 }
16937 /^X\(\/\/\)[^/].*/{
16938 s//\1/
16939 q
16940 }
16941 /^X\(\/\/\)$/{
16942 s//\1/
16943 q
16944 }
16945 /^X\(\/\).*/{
16946 s//\1/
16947 q
16948 }
16949 s/.*/./; q'`/stamp-h$_am_stamp_count
16950 ;;
16951
16952 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16953 $as_echo "$as_me: executing $ac_file commands" >&6;}
16954 ;;
16955 esac
16956
16957
16958 case $ac_file$ac_mode in
16959 "default-1":C)
16960 # Only add multilib support code if we just rebuilt the top-level
16961 # Makefile.
16962 case " $CONFIG_FILES " in
16963 *" Makefile "*)
16964 ac_file=Makefile . ${multi_basedir}/config-ml.in
16965 ;;
16966 esac ;;
16967 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16968 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16969 # are listed without --file. Let's play safe and only enable the eval
16970 # if we detect the quoting.
16971 case $CONFIG_FILES in
16972 *\'*) eval set x "$CONFIG_FILES" ;;
16973 *) set x $CONFIG_FILES ;;
16974 esac
16975 shift
16976 for mf
16977 do
16978 # Strip MF so we end up with the name of the file.
16979 mf=`echo "$mf" | sed -e 's/:.*$//'`
16980 # Check whether this is an Automake generated Makefile or not.
16981 # We used to match only the files named `Makefile.in', but
16982 # some people rename them; so instead we look at the file content.
16983 # Grep'ing the first line is not enough: some people post-process
16984 # each Makefile.in and add a new line on top of each file to say so.
16985 # Grep'ing the whole file is not good either: AIX grep has a line
16986 # limit of 2048, but all sed's we know have understand at least 4000.
16987 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16988 dirpart=`$as_dirname -- "$mf" ||
16989 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16990 X"$mf" : 'X\(//\)[^/]' \| \
16991 X"$mf" : 'X\(//\)$' \| \
16992 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16993 $as_echo X"$mf" |
16994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16995 s//\1/
16996 q
16997 }
16998 /^X\(\/\/\)[^/].*/{
16999 s//\1/
17000 q
17001 }
17002 /^X\(\/\/\)$/{
17003 s//\1/
17004 q
17005 }
17006 /^X\(\/\).*/{
17007 s//\1/
17008 q
17009 }
17010 s/.*/./; q'`
17011 else
17012 continue
17013 fi
17014 # Extract the definition of DEPDIR, am__include, and am__quote
17015 # from the Makefile without running `make'.
17016 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17017 test -z "$DEPDIR" && continue
17018 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17019 test -z "am__include" && continue
17020 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17021 # When using ansi2knr, U may be empty or an underscore; expand it
17022 U=`sed -n 's/^U = //p' < "$mf"`
17023 # Find all dependency output files, they are included files with
17024 # $(DEPDIR) in their names. We invoke sed twice because it is the
17025 # simplest approach to changing $(DEPDIR) to its actual value in the
17026 # expansion.
17027 for file in `sed -n "
17028 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17029 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17030 # Make sure the directory exists.
17031 test -f "$dirpart/$file" && continue
17032 fdir=`$as_dirname -- "$file" ||
17033 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17034 X"$file" : 'X\(//\)[^/]' \| \
17035 X"$file" : 'X\(//\)$' \| \
17036 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17037 $as_echo X"$file" |
17038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17039 s//\1/
17040 q
17041 }
17042 /^X\(\/\/\)[^/].*/{
17043 s//\1/
17044 q
17045 }
17046 /^X\(\/\/\)$/{
17047 s//\1/
17048 q
17049 }
17050 /^X\(\/\).*/{
17051 s//\1/
17052 q
17053 }
17054 s/.*/./; q'`
17055 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17056 # echo "creating $dirpart/$file"
17057 echo '# dummy' > "$dirpart/$file"
17058 done
17059 done
17060 }
17061 ;;
17062 "libtool":C)
17063
17064 # See if we are running on zsh, and set the options which allow our
17065 # commands through without removal of \ escapes.
17066 if test -n "${ZSH_VERSION+set}" ; then
17067 setopt NO_GLOB_SUBST
17068 fi
17069
17070 cfgfile="${ofile}T"
17071 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17072 $RM "$cfgfile"
17073
17074 cat <<_LT_EOF >> "$cfgfile"
17075 #! $SHELL
17076
17077 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17078 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17080 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17081 #
17082 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17083 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17084 # Written by Gordon Matzigkeit, 1996
17085 #
17086 # This file is part of GNU Libtool.
17087 #
17088 # GNU Libtool is free software; you can redistribute it and/or
17089 # modify it under the terms of the GNU General Public License as
17090 # published by the Free Software Foundation; either version 2 of
17091 # the License, or (at your option) any later version.
17092 #
17093 # As a special exception to the GNU General Public License,
17094 # if you distribute this file as part of a program or library that
17095 # is built using GNU Libtool, you may include this file under the
17096 # same distribution terms that you use for the rest of that program.
17097 #
17098 # GNU Libtool is distributed in the hope that it will be useful,
17099 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17100 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17101 # GNU General Public License for more details.
17102 #
17103 # You should have received a copy of the GNU General Public License
17104 # along with GNU Libtool; see the file COPYING. If not, a copy
17105 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17106 # obtained by writing to the Free Software Foundation, Inc.,
17107 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17108
17109
17110 # The names of the tagged configurations supported by this script.
17111 available_tags="GO "
17112
17113 # ### BEGIN LIBTOOL CONFIG
17114
17115 # A sed program that does not truncate output.
17116 SED=$lt_SED
17117
17118 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17119 Xsed="\$SED -e 1s/^X//"
17120
17121 # A grep program that handles long lines.
17122 GREP=$lt_GREP
17123
17124 # An ERE matcher.
17125 EGREP=$lt_EGREP
17126
17127 # A literal string matcher.
17128 FGREP=$lt_FGREP
17129
17130 # Shell to use when invoking shell scripts.
17131 SHELL=$lt_SHELL
17132
17133 # An echo program that protects backslashes.
17134 ECHO=$lt_ECHO
17135
17136 # Which release of libtool.m4 was used?
17137 macro_version=$macro_version
17138 macro_revision=$macro_revision
17139
17140 # Whether or not to build shared libraries.
17141 build_libtool_libs=$enable_shared
17142
17143 # Whether or not to build static libraries.
17144 build_old_libs=$enable_static
17145
17146 # What type of objects to build.
17147 pic_mode=$pic_mode
17148
17149 # Whether or not to optimize for fast installation.
17150 fast_install=$enable_fast_install
17151
17152 # The host system.
17153 host_alias=$host_alias
17154 host=$host
17155 host_os=$host_os
17156
17157 # The build system.
17158 build_alias=$build_alias
17159 build=$build
17160 build_os=$build_os
17161
17162 # A BSD- or MS-compatible name lister.
17163 NM=$lt_NM
17164
17165 # Whether we need soft or hard links.
17166 LN_S=$lt_LN_S
17167
17168 # What is the maximum length of a command?
17169 max_cmd_len=$max_cmd_len
17170
17171 # Object file suffix (normally "o").
17172 objext=$ac_objext
17173
17174 # Executable file suffix (normally "").
17175 exeext=$exeext
17176
17177 # whether the shell understands "unset".
17178 lt_unset=$lt_unset
17179
17180 # turn spaces into newlines.
17181 SP2NL=$lt_lt_SP2NL
17182
17183 # turn newlines into spaces.
17184 NL2SP=$lt_lt_NL2SP
17185
17186 # An object symbol dumper.
17187 OBJDUMP=$lt_OBJDUMP
17188
17189 # Method to check whether dependent libraries are shared objects.
17190 deplibs_check_method=$lt_deplibs_check_method
17191
17192 # Command to use when deplibs_check_method == "file_magic".
17193 file_magic_cmd=$lt_file_magic_cmd
17194
17195 # The archiver.
17196 AR=$lt_AR
17197 AR_FLAGS=$lt_AR_FLAGS
17198
17199 # A symbol stripping program.
17200 STRIP=$lt_STRIP
17201
17202 # Commands used to install an old-style archive.
17203 RANLIB=$lt_RANLIB
17204 old_postinstall_cmds=$lt_old_postinstall_cmds
17205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17206
17207 # Whether to use a lock for old archive extraction.
17208 lock_old_archive_extraction=$lock_old_archive_extraction
17209
17210 # A C compiler.
17211 LTCC=$lt_CC
17212
17213 # LTCC compiler flags.
17214 LTCFLAGS=$lt_CFLAGS
17215
17216 # Take the output of nm and produce a listing of raw symbols and C names.
17217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17218
17219 # Transform the output of nm in a proper C declaration.
17220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17221
17222 # Transform the output of nm in a C name address pair.
17223 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17224
17225 # Transform the output of nm in a C name address pair when lib prefix is needed.
17226 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17227
17228 # The name of the directory that contains temporary libtool files.
17229 objdir=$objdir
17230
17231 # Used to examine libraries when file_magic_cmd begins with "file".
17232 MAGIC_CMD=$MAGIC_CMD
17233
17234 # Must we lock files when doing compilation?
17235 need_locks=$lt_need_locks
17236
17237 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17238 DSYMUTIL=$lt_DSYMUTIL
17239
17240 # Tool to change global to local symbols on Mac OS X.
17241 NMEDIT=$lt_NMEDIT
17242
17243 # Tool to manipulate fat objects and archives on Mac OS X.
17244 LIPO=$lt_LIPO
17245
17246 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17247 OTOOL=$lt_OTOOL
17248
17249 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17250 OTOOL64=$lt_OTOOL64
17251
17252 # Old archive suffix (normally "a").
17253 libext=$libext
17254
17255 # Shared library suffix (normally ".so").
17256 shrext_cmds=$lt_shrext_cmds
17257
17258 # The commands to extract the exported symbol list from a shared archive.
17259 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17260
17261 # Variables whose values should be saved in libtool wrapper scripts and
17262 # restored at link time.
17263 variables_saved_for_relink=$lt_variables_saved_for_relink
17264
17265 # Do we need the "lib" prefix for modules?
17266 need_lib_prefix=$need_lib_prefix
17267
17268 # Do we need a version for libraries?
17269 need_version=$need_version
17270
17271 # Library versioning type.
17272 version_type=$version_type
17273
17274 # Shared library runtime path variable.
17275 runpath_var=$runpath_var
17276
17277 # Shared library path variable.
17278 shlibpath_var=$shlibpath_var
17279
17280 # Is shlibpath searched before the hard-coded library search path?
17281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17282
17283 # Format of library name prefix.
17284 libname_spec=$lt_libname_spec
17285
17286 # List of archive names. First name is the real one, the rest are links.
17287 # The last name is the one that the linker finds with -lNAME
17288 library_names_spec=$lt_library_names_spec
17289
17290 # The coded name of the library, if different from the real name.
17291 soname_spec=$lt_soname_spec
17292
17293 # Permission mode override for installation of shared libraries.
17294 install_override_mode=$lt_install_override_mode
17295
17296 # Command to use after installation of a shared archive.
17297 postinstall_cmds=$lt_postinstall_cmds
17298
17299 # Command to use after uninstallation of a shared archive.
17300 postuninstall_cmds=$lt_postuninstall_cmds
17301
17302 # Commands used to finish a libtool library installation in a directory.
17303 finish_cmds=$lt_finish_cmds
17304
17305 # As "finish_cmds", except a single script fragment to be evaled but
17306 # not shown.
17307 finish_eval=$lt_finish_eval
17308
17309 # Whether we should hardcode library paths into libraries.
17310 hardcode_into_libs=$hardcode_into_libs
17311
17312 # Compile-time system search path for libraries.
17313 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17314
17315 # Run-time system search path for libraries.
17316 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17317
17318 # Whether dlopen is supported.
17319 dlopen_support=$enable_dlopen
17320
17321 # Whether dlopen of programs is supported.
17322 dlopen_self=$enable_dlopen_self
17323
17324 # Whether dlopen of statically linked programs is supported.
17325 dlopen_self_static=$enable_dlopen_self_static
17326
17327 # Commands to strip libraries.
17328 old_striplib=$lt_old_striplib
17329 striplib=$lt_striplib
17330
17331
17332 # The linker used to build libraries.
17333 LD=$lt_LD
17334
17335 # How to create reloadable object files.
17336 reload_flag=$lt_reload_flag
17337 reload_cmds=$lt_reload_cmds
17338
17339 # Commands used to build an old-style archive.
17340 old_archive_cmds=$lt_old_archive_cmds
17341
17342 # A language specific compiler.
17343 CC=$lt_compiler
17344
17345 # Is the compiler the GNU compiler?
17346 with_gcc=$GCC
17347
17348 # Compiler flag to turn off builtin functions.
17349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17350
17351 # How to pass a linker flag through the compiler.
17352 wl=$lt_lt_prog_compiler_wl
17353
17354 # Additional compiler flags for building library objects.
17355 pic_flag=$lt_lt_prog_compiler_pic
17356
17357 # Compiler flag to prevent dynamic linking.
17358 link_static_flag=$lt_lt_prog_compiler_static
17359
17360 # Does compiler simultaneously support -c and -o options?
17361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17362
17363 # Whether or not to add -lc for building shared libraries.
17364 build_libtool_need_lc=$archive_cmds_need_lc
17365
17366 # Whether or not to disallow shared libs when runtime libs are static.
17367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17368
17369 # Compiler flag to allow reflexive dlopens.
17370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17371
17372 # Compiler flag to generate shared objects directly from archives.
17373 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17374
17375 # Whether the compiler copes with passing no objects directly.
17376 compiler_needs_object=$lt_compiler_needs_object
17377
17378 # Create an old-style archive from a shared archive.
17379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17380
17381 # Create a temporary old-style archive to link instead of a shared archive.
17382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17383
17384 # Commands used to build a shared archive.
17385 archive_cmds=$lt_archive_cmds
17386 archive_expsym_cmds=$lt_archive_expsym_cmds
17387
17388 # Commands used to build a loadable module if different from building
17389 # a shared archive.
17390 module_cmds=$lt_module_cmds
17391 module_expsym_cmds=$lt_module_expsym_cmds
17392
17393 # Whether we are building with GNU ld or not.
17394 with_gnu_ld=$lt_with_gnu_ld
17395
17396 # Flag that allows shared libraries with undefined symbols to be built.
17397 allow_undefined_flag=$lt_allow_undefined_flag
17398
17399 # Flag that enforces no undefined symbols.
17400 no_undefined_flag=$lt_no_undefined_flag
17401
17402 # Flag to hardcode \$libdir into a binary during linking.
17403 # This must work even if \$libdir does not exist
17404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17405
17406 # If ld is used when linking, flag to hardcode \$libdir into a binary
17407 # during linking. This must work even if \$libdir does not exist.
17408 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17409
17410 # Whether we need a single "-rpath" flag with a separated argument.
17411 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17412
17413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17414 # DIR into the resulting binary.
17415 hardcode_direct=$hardcode_direct
17416
17417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17418 # DIR into the resulting binary and the resulting library dependency is
17419 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17420 # library is relocated.
17421 hardcode_direct_absolute=$hardcode_direct_absolute
17422
17423 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17424 # into the resulting binary.
17425 hardcode_minus_L=$hardcode_minus_L
17426
17427 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17428 # into the resulting binary.
17429 hardcode_shlibpath_var=$hardcode_shlibpath_var
17430
17431 # Set to "yes" if building a shared library automatically hardcodes DIR
17432 # into the library and all subsequent libraries and executables linked
17433 # against it.
17434 hardcode_automatic=$hardcode_automatic
17435
17436 # Set to yes if linker adds runtime paths of dependent libraries
17437 # to runtime path list.
17438 inherit_rpath=$inherit_rpath
17439
17440 # Whether libtool must link a program against all its dependency libraries.
17441 link_all_deplibs=$link_all_deplibs
17442
17443 # Fix the shell variable \$srcfile for the compiler.
17444 fix_srcfile_path=$lt_fix_srcfile_path
17445
17446 # Set to "yes" if exported symbols are required.
17447 always_export_symbols=$always_export_symbols
17448
17449 # The commands to list exported symbols.
17450 export_symbols_cmds=$lt_export_symbols_cmds
17451
17452 # Symbols that should not be listed in the preloaded symbols.
17453 exclude_expsyms=$lt_exclude_expsyms
17454
17455 # Symbols that must always be exported.
17456 include_expsyms=$lt_include_expsyms
17457
17458 # Commands necessary for linking programs (against libraries) with templates.
17459 prelink_cmds=$lt_prelink_cmds
17460
17461 # Specify filename containing input files.
17462 file_list_spec=$lt_file_list_spec
17463
17464 # How to hardcode a shared library path into an executable.
17465 hardcode_action=$hardcode_action
17466
17467 # ### END LIBTOOL CONFIG
17468
17469 _LT_EOF
17470
17471 case $host_os in
17472 aix3*)
17473 cat <<\_LT_EOF >> "$cfgfile"
17474 # AIX sometimes has problems with the GCC collect2 program. For some
17475 # reason, if we set the COLLECT_NAMES environment variable, the problems
17476 # vanish in a puff of smoke.
17477 if test "X${COLLECT_NAMES+set}" != Xset; then
17478 COLLECT_NAMES=
17479 export COLLECT_NAMES
17480 fi
17481 _LT_EOF
17482 ;;
17483 esac
17484
17485
17486 ltmain="$ac_aux_dir/ltmain.sh"
17487
17488
17489 # We use sed instead of cat because bash on DJGPP gets confused if
17490 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17491 # text mode, it properly converts lines to CR/LF. This bash problem
17492 # is reportedly fixed, but why not run on old versions too?
17493 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17494 || (rm -f "$cfgfile"; exit 1)
17495
17496 case $xsi_shell in
17497 yes)
17498 cat << \_LT_EOF >> "$cfgfile"
17499
17500 # func_dirname file append nondir_replacement
17501 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17502 # otherwise set result to NONDIR_REPLACEMENT.
17503 func_dirname ()
17504 {
17505 case ${1} in
17506 */*) func_dirname_result="${1%/*}${2}" ;;
17507 * ) func_dirname_result="${3}" ;;
17508 esac
17509 }
17510
17511 # func_basename file
17512 func_basename ()
17513 {
17514 func_basename_result="${1##*/}"
17515 }
17516
17517 # func_dirname_and_basename file append nondir_replacement
17518 # perform func_basename and func_dirname in a single function
17519 # call:
17520 # dirname: Compute the dirname of FILE. If nonempty,
17521 # add APPEND to the result, otherwise set result
17522 # to NONDIR_REPLACEMENT.
17523 # value returned in "$func_dirname_result"
17524 # basename: Compute filename of FILE.
17525 # value retuned in "$func_basename_result"
17526 # Implementation must be kept synchronized with func_dirname
17527 # and func_basename. For efficiency, we do not delegate to
17528 # those functions but instead duplicate the functionality here.
17529 func_dirname_and_basename ()
17530 {
17531 case ${1} in
17532 */*) func_dirname_result="${1%/*}${2}" ;;
17533 * ) func_dirname_result="${3}" ;;
17534 esac
17535 func_basename_result="${1##*/}"
17536 }
17537
17538 # func_stripname prefix suffix name
17539 # strip PREFIX and SUFFIX off of NAME.
17540 # PREFIX and SUFFIX must not contain globbing or regex special
17541 # characters, hashes, percent signs, but SUFFIX may contain a leading
17542 # dot (in which case that matches only a dot).
17543 func_stripname ()
17544 {
17545 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17546 # positional parameters, so assign one to ordinary parameter first.
17547 func_stripname_result=${3}
17548 func_stripname_result=${func_stripname_result#"${1}"}
17549 func_stripname_result=${func_stripname_result%"${2}"}
17550 }
17551
17552 # func_opt_split
17553 func_opt_split ()
17554 {
17555 func_opt_split_opt=${1%%=*}
17556 func_opt_split_arg=${1#*=}
17557 }
17558
17559 # func_lo2o object
17560 func_lo2o ()
17561 {
17562 case ${1} in
17563 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17564 *) func_lo2o_result=${1} ;;
17565 esac
17566 }
17567
17568 # func_xform libobj-or-source
17569 func_xform ()
17570 {
17571 func_xform_result=${1%.*}.lo
17572 }
17573
17574 # func_arith arithmetic-term...
17575 func_arith ()
17576 {
17577 func_arith_result=$(( $* ))
17578 }
17579
17580 # func_len string
17581 # STRING may not start with a hyphen.
17582 func_len ()
17583 {
17584 func_len_result=${#1}
17585 }
17586
17587 _LT_EOF
17588 ;;
17589 *) # Bourne compatible functions.
17590 cat << \_LT_EOF >> "$cfgfile"
17591
17592 # func_dirname file append nondir_replacement
17593 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17594 # otherwise set result to NONDIR_REPLACEMENT.
17595 func_dirname ()
17596 {
17597 # Extract subdirectory from the argument.
17598 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17599 if test "X$func_dirname_result" = "X${1}"; then
17600 func_dirname_result="${3}"
17601 else
17602 func_dirname_result="$func_dirname_result${2}"
17603 fi
17604 }
17605
17606 # func_basename file
17607 func_basename ()
17608 {
17609 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17610 }
17611
17612
17613 # func_stripname prefix suffix name
17614 # strip PREFIX and SUFFIX off of NAME.
17615 # PREFIX and SUFFIX must not contain globbing or regex special
17616 # characters, hashes, percent signs, but SUFFIX may contain a leading
17617 # dot (in which case that matches only a dot).
17618 # func_strip_suffix prefix name
17619 func_stripname ()
17620 {
17621 case ${2} in
17622 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17623 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17624 esac
17625 }
17626
17627 # sed scripts:
17628 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17629 my_sed_long_arg='1s/^-[^=]*=//'
17630
17631 # func_opt_split
17632 func_opt_split ()
17633 {
17634 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17635 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17636 }
17637
17638 # func_lo2o object
17639 func_lo2o ()
17640 {
17641 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17642 }
17643
17644 # func_xform libobj-or-source
17645 func_xform ()
17646 {
17647 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17648 }
17649
17650 # func_arith arithmetic-term...
17651 func_arith ()
17652 {
17653 func_arith_result=`expr "$@"`
17654 }
17655
17656 # func_len string
17657 # STRING may not start with a hyphen.
17658 func_len ()
17659 {
17660 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17661 }
17662
17663 _LT_EOF
17664 esac
17665
17666 case $lt_shell_append in
17667 yes)
17668 cat << \_LT_EOF >> "$cfgfile"
17669
17670 # func_append var value
17671 # Append VALUE to the end of shell variable VAR.
17672 func_append ()
17673 {
17674 eval "$1+=\$2"
17675 }
17676 _LT_EOF
17677 ;;
17678 *)
17679 cat << \_LT_EOF >> "$cfgfile"
17680
17681 # func_append var value
17682 # Append VALUE to the end of shell variable VAR.
17683 func_append ()
17684 {
17685 eval "$1=\$$1\$2"
17686 }
17687
17688 _LT_EOF
17689 ;;
17690 esac
17691
17692
17693 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17694 || (rm -f "$cfgfile"; exit 1)
17695
17696 mv -f "$cfgfile" "$ofile" ||
17697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17698 chmod +x "$ofile"
17699
17700
17701 cat <<_LT_EOF >> "$ofile"
17702
17703 # ### BEGIN LIBTOOL TAG CONFIG: GO
17704
17705 # The linker used to build libraries.
17706 LD=$lt_LD_GO
17707
17708 # How to create reloadable object files.
17709 reload_flag=$lt_reload_flag_GO
17710 reload_cmds=$lt_reload_cmds_GO
17711
17712 # Commands used to build an old-style archive.
17713 old_archive_cmds=$lt_old_archive_cmds_GO
17714
17715 # A language specific compiler.
17716 CC=$lt_compiler_GO
17717
17718 # Is the compiler the GNU compiler?
17719 with_gcc=$GCC_GO
17720
17721 # Compiler flag to turn off builtin functions.
17722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17723
17724 # How to pass a linker flag through the compiler.
17725 wl=$lt_lt_prog_compiler_wl_GO
17726
17727 # Additional compiler flags for building library objects.
17728 pic_flag=$lt_lt_prog_compiler_pic_GO
17729
17730 # Compiler flag to prevent dynamic linking.
17731 link_static_flag=$lt_lt_prog_compiler_static_GO
17732
17733 # Does compiler simultaneously support -c and -o options?
17734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17735
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc_GO
17738
17739 # Whether or not to disallow shared libs when runtime libs are static.
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17741
17742 # Compiler flag to allow reflexive dlopens.
17743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17744
17745 # Compiler flag to generate shared objects directly from archives.
17746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17747
17748 # Whether the compiler copes with passing no objects directly.
17749 compiler_needs_object=$lt_compiler_needs_object_GO
17750
17751 # Create an old-style archive from a shared archive.
17752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17753
17754 # Create a temporary old-style archive to link instead of a shared archive.
17755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17756
17757 # Commands used to build a shared archive.
17758 archive_cmds=$lt_archive_cmds_GO
17759 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17760
17761 # Commands used to build a loadable module if different from building
17762 # a shared archive.
17763 module_cmds=$lt_module_cmds_GO
17764 module_expsym_cmds=$lt_module_expsym_cmds_GO
17765
17766 # Whether we are building with GNU ld or not.
17767 with_gnu_ld=$lt_with_gnu_ld_GO
17768
17769 # Flag that allows shared libraries with undefined symbols to be built.
17770 allow_undefined_flag=$lt_allow_undefined_flag_GO
17771
17772 # Flag that enforces no undefined symbols.
17773 no_undefined_flag=$lt_no_undefined_flag_GO
17774
17775 # Flag to hardcode \$libdir into a binary during linking.
17776 # This must work even if \$libdir does not exist
17777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17778
17779 # If ld is used when linking, flag to hardcode \$libdir into a binary
17780 # during linking. This must work even if \$libdir does not exist.
17781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17782
17783 # Whether we need a single "-rpath" flag with a separated argument.
17784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17785
17786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17787 # DIR into the resulting binary.
17788 hardcode_direct=$hardcode_direct_GO
17789
17790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17791 # DIR into the resulting binary and the resulting library dependency is
17792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17793 # library is relocated.
17794 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17795
17796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17797 # into the resulting binary.
17798 hardcode_minus_L=$hardcode_minus_L_GO
17799
17800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17801 # into the resulting binary.
17802 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17803
17804 # Set to "yes" if building a shared library automatically hardcodes DIR
17805 # into the library and all subsequent libraries and executables linked
17806 # against it.
17807 hardcode_automatic=$hardcode_automatic_GO
17808
17809 # Set to yes if linker adds runtime paths of dependent libraries
17810 # to runtime path list.
17811 inherit_rpath=$inherit_rpath_GO
17812
17813 # Whether libtool must link a program against all its dependency libraries.
17814 link_all_deplibs=$link_all_deplibs_GO
17815
17816 # Fix the shell variable \$srcfile for the compiler.
17817 fix_srcfile_path=$lt_fix_srcfile_path_GO
17818
17819 # Set to "yes" if exported symbols are required.
17820 always_export_symbols=$always_export_symbols_GO
17821
17822 # The commands to list exported symbols.
17823 export_symbols_cmds=$lt_export_symbols_cmds_GO
17824
17825 # Symbols that should not be listed in the preloaded symbols.
17826 exclude_expsyms=$lt_exclude_expsyms_GO
17827
17828 # Symbols that must always be exported.
17829 include_expsyms=$lt_include_expsyms_GO
17830
17831 # Commands necessary for linking programs (against libraries) with templates.
17832 prelink_cmds=$lt_prelink_cmds_GO
17833
17834 # Specify filename containing input files.
17835 file_list_spec=$lt_file_list_spec_GO
17836
17837 # How to hardcode a shared library path into an executable.
17838 hardcode_action=$hardcode_action_GO
17839
17840 # ### END LIBTOOL TAG CONFIG: GO
17841 _LT_EOF
17842
17843 ;;
17844 "default":C) if test -n "$CONFIG_FILES"; then
17845 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17846 # that multilib installs will end up installed in the correct place.
17847 # The testsuite needs it for multilib-aware ABI baseline files.
17848 # To work around this not being passed down from config-ml.in ->
17849 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17850 # append it here. Only modify Makefiles that have just been created.
17851 #
17852 # Also, get rid of this simulated-VPATH thing that automake does.
17853 cat > vpsed << \_EOF
17854 s!`test -f '$<' || echo '$(srcdir)/'`!!
17855 _EOF
17856 for i in $SUBDIRS; do
17857 case $CONFIG_FILES in
17858 *${i}/Makefile*)
17859 #echo "Adding MULTISUBDIR to $i/Makefile"
17860 sed -f vpsed $i/Makefile > tmp
17861 grep '^MULTISUBDIR =' Makefile >> tmp
17862 mv tmp $i/Makefile
17863 ;;
17864 esac
17865 done
17866 rm vpsed
17867 fi
17868 ;;
17869
17870 esac
17871 done # for ac_tag
17872
17873
17874 as_fn_exit 0
17875 _ACEOF
17876 ac_clean_files=$ac_clean_files_save
17877
17878 test $ac_write_fail = 0 ||
17879 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17880
17881
17882 # configure is writing to config.log, and then calls config.status.
17883 # config.status does its own redirection, appending to config.log.
17884 # Unfortunately, on DOS this fails, as config.log is still kept open
17885 # by configure, so config.status won't be able to write to it; its
17886 # output is simply discarded. So we exec the FD to /dev/null,
17887 # effectively closing config.log, so it can be properly (re)opened and
17888 # appended to by config.status. When coming back to configure, we
17889 # need to make the FD available again.
17890 if test "$no_create" != yes; then
17891 ac_cs_success=:
17892 ac_config_status_args=
17893 test "$silent" = yes &&
17894 ac_config_status_args="$ac_config_status_args --quiet"
17895 exec 5>/dev/null
17896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17897 exec 5>>config.log
17898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17899 # would make configure fail if this is the last instruction.
17900 $ac_cs_success || as_fn_exit $?
17901 fi
17902 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17904 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17905 fi
17906