]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
re PR bootstrap/56227 (Bootstrap failure on MinGW building ggc-page.c)
[thirdparty/gcc.git] / libgo / configure
CommitLineData
7a938933
ILT
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
79fi
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 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
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
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
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
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
215fi; }
216IFS=$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+"$@"}
228fi
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
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_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.
275as_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.
285as_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.
335if (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 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # 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.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # 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.
370as_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
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_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.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_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
458ECHO_C= ECHO_N= ECHO_T=
459case `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';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (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
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
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 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_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.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 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.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='package-unused'
558PACKAGE_TARNAME='libgo'
559PACKAGE_VERSION='version-unused'
560PACKAGE_STRING='package-unused version-unused'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564ac_unique_file="Makefile.am"
565# Factoring default headers for most tests.
566ac_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
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
207c35fa
ILT
605STRUCT_EPOLL_EVENT_FD_OFFSET
606SIZEOF_STRUCT_EPOLL_EVENT
9d465faf 607MATH_FLAG
7a938933 608STRINGOPS_FLAG
0b3189e7
ILT
609HAVE_WAIT4_FALSE
610HAVE_WAIT4_TRUE
8955c80a
ILT
611HAVE_STRERROR_R_FALSE
612HAVE_STRERROR_R_TRUE
7a938933
ILT
613HAVE_SYS_MMAN_H_FALSE
614HAVE_SYS_MMAN_H_TRUE
6c94a9fa
ILT
615PTHREAD_LIBS
616PTHREAD_CFLAGS
f2ee78b8 617NET_LIBS
505b439a 618MATH_LIBS
7a938933
ILT
619USING_SPLIT_STACK_FALSE
620USING_SPLIT_STACK_TRUE
621SPLIT_STACK
90630d19 622OSCFLAGS
de27caac
ILT
623GO_SYSCALL_OS_ARCH_FILE
624GO_SYSCALL_OS_FILE
625GO_LIBCALL_OS_ARCH_FILE
626GO_LIBCALL_OS_FILE
c3b5b97b 627GOARCH
7a938933
ILT
628LIBGO_IS_X86_64_FALSE
629LIBGO_IS_X86_64_TRUE
545d1aa1
ILT
630LIBGO_IS_SPARC64_FALSE
631LIBGO_IS_SPARC64_TRUE
f2ee78b8
ILT
632LIBGO_IS_SPARC_FALSE
633LIBGO_IS_SPARC_TRUE
ca11cc98
ILT
634LIBGO_IS_PPC64_FALSE
635LIBGO_IS_PPC64_TRUE
636LIBGO_IS_PPC_FALSE
637LIBGO_IS_PPC_TRUE
85a09210
ILT
638LIBGO_IS_MIPSO64_FALSE
639LIBGO_IS_MIPSO64_TRUE
640LIBGO_IS_MIPSN64_FALSE
641LIBGO_IS_MIPSN64_TRUE
642LIBGO_IS_MIPSN32_FALSE
643LIBGO_IS_MIPSN32_TRUE
644LIBGO_IS_MIPSO32_FALSE
645LIBGO_IS_MIPSO32_TRUE
ca11cc98
ILT
646LIBGO_IS_MIPS_FALSE
647LIBGO_IS_MIPS_TRUE
648LIBGO_IS_M68K_FALSE
649LIBGO_IS_M68K_TRUE
f2ee78b8
ILT
650LIBGO_IS_ARM_FALSE
651LIBGO_IS_ARM_TRUE
e59b9171
ILT
652LIBGO_IS_ALPHA_FALSE
653LIBGO_IS_ALPHA_TRUE
7a938933
ILT
654LIBGO_IS_386_FALSE
655LIBGO_IS_386_TRUE
7134cf28 656USE_DEJAGNU
c3b5b97b 657GOOS
f2ee78b8
ILT
658LIBGO_IS_SOLARIS_FALSE
659LIBGO_IS_SOLARIS_TRUE
7a938933
ILT
660LIBGO_IS_RTEMS_FALSE
661LIBGO_IS_RTEMS_TRUE
4ccad563
ILT
662LIBGO_IS_OPENBSD_FALSE
663LIBGO_IS_OPENBSD_TRUE
df4aa89a
ILT
664LIBGO_IS_NETBSD_FALSE
665LIBGO_IS_NETBSD_TRUE
7a938933
ILT
666LIBGO_IS_LINUX_FALSE
667LIBGO_IS_LINUX_TRUE
654d2ec0
ILT
668LIBGO_IS_IRIX_FALSE
669LIBGO_IS_IRIX_TRUE
7a938933
ILT
670LIBGO_IS_FREEBSD_FALSE
671LIBGO_IS_FREEBSD_TRUE
672LIBGO_IS_DARWIN_FALSE
673LIBGO_IS_DARWIN_TRUE
18c70075 674go_include
7a938933
ILT
675LIBFFIINCS
676LIBFFI
317ea7c0 677nover_glibgo_toolexeclibdir
7a938933
ILT
678glibgo_toolexeclibdir
679glibgo_toolexecdir
7a938933
ILT
680WERROR
681WARN_FLAGS
d983a802 682CC_FOR_BUILD
7a938933
ILT
683enable_static
684enable_shared
061793a4 685CPP
7a938933
ILT
686OTOOL64
687OTOOL
688LIPO
689NMEDIT
690DSYMUTIL
691AR
692OBJDUMP
693LN_S
694NM
695ac_ct_DUMPBIN
696DUMPBIN
697LIBTOOL
698OBJCOPY
699RANLIB
700LD
701FGREP
702EGREP
703GREP
061793a4 704SED
7a938933
ILT
705MAINT
706MAINTAINER_MODE_FALSE
707MAINTAINER_MODE_TRUE
708GOCFLAGS
709GOC
710am__fastdepCC_FALSE
711am__fastdepCC_TRUE
712CCDEPMODE
713AMDEPBACKSLASH
714AMDEP_FALSE
715AMDEP_TRUE
716am__quote
717am__include
718DEPDIR
719OBJEXT
720EXEEXT
721ac_ct_CC
722CPPFLAGS
723LDFLAGS
724CFLAGS
725CC
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749target_os
750target_vendor
751target_cpu
752target
753host_os
754host_vendor
755host_cpu
756host
757build_os
758build_vendor
759build_cpu
760build
761multi_basedir
762libtool_VERSION
763target_alias
764host_alias
765build_alias
766LIBS
767ECHO_T
768ECHO_N
769ECHO_C
770DEFS
771mandir
772localedir
773libdir
774psdir
775pdfdir
776dvidir
777htmldir
778infodir
779docdir
780oldincludedir
781includedir
782localstatedir
783sharedstatedir
784sysconfdir
785datadir
786datarootdir
787libexecdir
788sbindir
789bindir
790program_transform_name
791prefix
792exec_prefix
793PACKAGE_URL
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL'
801ac_subst_files=''
802ac_user_opts='
803enable_option_checking
804enable_multilib
805enable_dependency_tracking
806enable_maintainer_mode
807with_gnu_ld
808enable_shared
809enable_static
810with_pic
811enable_fast_install
812enable_libtool_lock
0d4668c1 813enable_werror
7a938933
ILT
814enable_version_specific_runtime_libs
815with_libffi
816with_system_libunwind
0c521d18 817enable_sjlj_exceptions
7a938933
ILT
818'
819 ac_precious_vars='build_alias
820host_alias
821target_alias
822CPP
823CPPFLAGS'
824
825
826# Initialize some variables set by options.
827ac_init_help=
828ac_init_version=false
829ac_unrecognized_opts=
830ac_unrecognized_sep=
831# The variables have the same names as the options, with
832# dashes changed to underlines.
833cache_file=/dev/null
834exec_prefix=NONE
835no_create=
836no_recursion=
837prefix=NONE
838program_prefix=NONE
839program_suffix=NONE
840program_transform_name=s,x,x,
841silent=
842site=
843srcdir=
844verbose=
845x_includes=NONE
846x_libraries=NONE
847
848# Installation directory options.
849# These are left unexpanded so users can "make install exec_prefix=/foo"
850# and all the variables that are supposed to be based on exec_prefix
851# by default will actually change.
852# Use braces instead of parens because sh, perl, etc. also accept them.
853# (The list follows the same order as the GNU Coding Standards.)
854bindir='${exec_prefix}/bin'
855sbindir='${exec_prefix}/sbin'
856libexecdir='${exec_prefix}/libexec'
857datarootdir='${prefix}/share'
858datadir='${datarootdir}'
859sysconfdir='${prefix}/etc'
860sharedstatedir='${prefix}/com'
861localstatedir='${prefix}/var'
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
873
874ac_prev=
875ac_dashdash=
876for ac_option
877do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
880 eval $ac_prev=\$ac_option
881 ac_prev=
882 continue
883 fi
884
885 case $ac_option in
886 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *) ac_optarg=yes ;;
888 esac
889
890 # Accept the important Cygnus configure options, so we can diagnose typos.
891
892 case $ac_dashdash$ac_option in
893 --)
894 ac_dashdash=yes ;;
895
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 bindir=$ac_optarg ;;
900
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
905
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
912
913 --config-cache | -C)
914 cache_file=config.cache ;;
915
916 -datadir | --datadir | --datadi | --datad)
917 ac_prev=datadir ;;
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
920
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
927
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937"enable_$ac_useropt"
938"*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
943
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
948
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
953
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963"enable_$ac_useropt"
964"*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
969
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
978
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
982
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
989
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
994
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1000
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1007
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1012
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1017
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1024
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1029
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1036
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1041
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1045
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1049
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1053
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1062
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1067
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1074
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1081
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1098
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1103
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1108
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1112
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
1117 sbindir=$ac_optarg ;;
1118
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
1128 sharedstatedir=$ac_optarg ;;
1129
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
1133 site=$ac_optarg ;;
1134
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1139
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1146
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1151
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1154
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1157
1158 -with-* | --with-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167"with_$ac_useropt"
1168"*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=\$ac_optarg ;;
1173
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183"with_$ac_useropt"
1184"*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=no ;;
1189
1190 --x)
1191 # Obsolete; use --with-x.
1192 with_x=yes ;;
1193
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1200
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1207
1208 -*) as_fn_error "unrecognized option: \`$ac_option'
1209Try \`$0 --help' for more information."
1210 ;;
1211
1212 *=*)
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1218 esac
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1221
1222 *)
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228 ;;
1229
1230 esac
1231done
1232
1233if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error "missing argument to $ac_option"
1236fi
1237
1238if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1240 no) ;;
1241 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 esac
1244fi
1245
1246# Check all directory arguments for consistency.
1247for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1251do
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1254 case $ac_val in
1255 */ )
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1258 esac
1259 # Be sure to have absolute directory names.
1260 case $ac_val in
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263 esac
1264 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1265done
1266
1267# There might be people who depend on the old broken behavior: `$host'
1268# used to hold the argument of --host etc.
1269# FIXME: To remove some day.
1270build=$build_alias
1271host=$host_alias
1272target=$target_alias
1273
1274# FIXME: To remove some day.
1275if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1282 fi
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
1289
1290
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error "working directory cannot be determined"
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error "pwd does not report name of working directory"
1297
1298
1299# Find the source files, if location was not specified.
1300if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308$as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)[^/].*/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\).*/{
1322 s//\1/
1323 q
1324 }
1325 s/.*/./; q'`
1326 srcdir=$ac_confdir
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 srcdir=..
1329 fi
1330else
1331 ac_srcdir_defaulted=no
1332fi
1333if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1340 pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 srcdir=.
1344fi
1345# Remove unnecessary trailing slashes from srcdir.
1346# Double slashes in file names in object file debugging info
1347# mess up M-x gdb in Emacs.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
1351for ac_var in $ac_precious_vars; do
1352 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_env_${ac_var}_value=\$${ac_var}
1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356done
1357
1358#
1359# Report the --help message.
1360#
1361if test "$ac_init_help" = "long"; then
1362 # Omit some internal or obsolete options to make the list less imposing.
1363 # This message is too long to be a string in the A/UX 3.1 sh.
1364 cat <<_ACEOF
1365\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1366
1367Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370VAR=VALUE. See below for descriptions of some of the useful variables.
1371
1372Defaults for the options are specified in brackets.
1373
1374Configuration:
1375 -h, --help display this help and exit
1376 --help=short display options specific to this package
1377 --help=recursive display the short help of all the included packages
1378 -V, --version display version information and exit
1379 -q, --quiet, --silent do not print \`checking...' messages
1380 --cache-file=FILE cache test results in FILE [disabled]
1381 -C, --config-cache alias for \`--cache-file=config.cache'
1382 -n, --no-create do not create output files
1383 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384
1385Installation directories:
1386 --prefix=PREFIX install architecture-independent files in PREFIX
1387 [$ac_default_prefix]
1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 [PREFIX]
1390
1391By default, \`make install' will install all the files in
1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1393an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394for instance \`--prefix=\$HOME'.
1395
1396For better control, use the options below.
1397
1398Fine tuning of the installation directories:
1399 --bindir=DIR user executables [EPREFIX/bin]
1400 --sbindir=DIR system admin executables [EPREFIX/sbin]
1401 --libexecdir=DIR program executables [EPREFIX/libexec]
1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1405 --libdir=DIR object code libraries [EPREFIX/lib]
1406 --includedir=DIR C header files [PREFIX/include]
1407 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1410 --infodir=DIR info documentation [DATAROOTDIR/info]
1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1412 --mandir=DIR man documentation [DATAROOTDIR/man]
1413 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1414 --htmldir=DIR html documentation [DOCDIR]
1415 --dvidir=DIR dvi documentation [DOCDIR]
1416 --pdfdir=DIR pdf documentation [DOCDIR]
1417 --psdir=DIR ps documentation [DOCDIR]
1418_ACEOF
1419
1420 cat <<\_ACEOF
1421
1422Program names:
1423 --program-prefix=PREFIX prepend PREFIX to installed program names
1424 --program-suffix=SUFFIX append SUFFIX to installed program names
1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426
1427System types:
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 --target=TARGET configure for building compilers for TARGET [HOST]
1431_ACEOF
1432fi
1433
1434if test -n "$ac_init_help"; then
1435 case $ac_init_help in
1436 short | recursive ) echo "Configuration of package-unused version-unused:";;
1437 esac
1438 cat <<\_ACEOF
1439
1440Optional Features:
1441 --disable-option-checking ignore unrecognized --enable/--with options
1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1444 --enable-multilib build many library versions (default)
1445 --disable-dependency-tracking speeds up one-time build
1446 --enable-dependency-tracking do not reject slow dependency extractors
1447 --enable-maintainer-mode enable make rules and dependencies not useful
1448 (and sometimes confusing) to the casual installer
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
0d4668c1 1454 --enable-werror turns on -Werror [default=yes]
7a938933
ILT
1455 --enable-version-specific-runtime-libs
1456 Specify that runtime libraries should be installed
1457 in a compiler-specific directory
0c521d18
ILT
1458 --enable-sjlj-exceptions
1459 force use of builtin_setjmp for exceptions
7a938933
ILT
1460
1461Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-pic try to use only PIC/non-PIC objects [default=use
1466 both]
1467 --without-libffi don't use libffi
1468 --with-system-libunwind use installed libunwind
1469
1470Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 LIBS libraries to pass to the linker, e.g. -l<library>
1476 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1477 you have headers in a nonstandard directory <include dir>
1478 GOC Go compiler command
1479 GOCFLAGS Go compiler flags
1480 CPP C preprocessor
1481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
1485Report bugs to the package provider.
1486_ACEOF
1487ac_status=$?
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
1496 ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547 cat <<\_ACEOF
1548package-unused configure version-unused
1549generated by GNU Autoconf 2.64
1550
1551Copyright (C) 2009 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
1555 exit
1556fi
1557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594fi
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 return $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
061793a4
ILT
1600# ac_fn_c_try_link LINENO
1601# -----------------------
1602# Try to link conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_link ()
7a938933
ILT
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4
ILT
1606 rm -f conftest.$ac_objext conftest$ac_exeext
1607 if { { ac_try="$ac_link"
7a938933
ILT
1608case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
061793a4 1614 (eval "$ac_link") 2>conftest.err
7a938933
ILT
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
7a938933 1624 test ! -s conftest.err
061793a4
ILT
1625 } && test -s conftest$ac_exeext && {
1626 test "$cross_compiling" = yes ||
1627 $as_test_x conftest$ac_exeext
7a938933
ILT
1628 }; then :
1629 ac_retval=0
1630else
1631 $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
061793a4 1634 ac_retval=1
7a938933 1635fi
061793a4
ILT
1636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638 # interfere with the next link command; also delete a directory that is
1639 # left behind by Apple's compiler. We do this before executing the actions.
7a938933
ILT
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 return $ac_retval
1643
061793a4 1644} # ac_fn_c_try_link
7a938933
ILT
1645
1646# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists and can be compiled using the include files in
1649# INCLUDES, setting the cache variable VAR accordingly.
1650ac_fn_c_check_header_compile ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 $as_echo_n "(cached) " >&6
1657else
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h. */
1660$4
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_compile "$LINENO"; then :
1664 eval "$3=yes"
1665else
1666 eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669fi
1670eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674
1675} # ac_fn_c_check_header_compile
1676
061793a4
ILT
1677# ac_fn_c_try_cpp LINENO
1678# ----------------------
1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_cpp ()
7a938933
ILT
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4 1683 if { { ac_try="$ac_cpp conftest.$ac_ext"
7a938933
ILT
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
061793a4 1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
7a938933
ILT
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1698 test $ac_status = 0; } >/dev/null && {
1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7a938933
ILT
1700 test ! -s conftest.err
1701 }; then :
1702 ac_retval=0
1703else
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
061793a4
ILT
1707 ac_retval=1
1708fi
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 return $ac_retval
1711
1712} # ac_fn_c_try_cpp
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=$ac_status
7a938933
ILT
1749fi
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 return $ac_retval
1753
061793a4 1754} # ac_fn_c_try_run
7a938933
ILT
1755
1756# ac_fn_c_check_func LINENO FUNC VAR
1757# ----------------------------------
1758# Tests whether FUNC exists, setting the cache variable VAR accordingly
1759ac_fn_c_check_func ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 $as_echo_n "(cached) " >&6
1766else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h. */
1769/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1771#define $2 innocuous_$2
1772
1773/* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $2 (); below.
1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776 <limits.h> exists even on freestanding compilers. */
1777
1778#ifdef __STDC__
1779# include <limits.h>
1780#else
1781# include <assert.h>
1782#endif
1783
1784#undef $2
1785
1786/* Override any GCC internal prototype to avoid an error.
1787 Use char because int might match the return type of a GCC
1788 builtin and then its argument prototype would still apply. */
1789#ifdef __cplusplus
1790extern "C"
1791#endif
1792char $2 ();
1793/* The GNU C library defines this for functions which it implements
1794 to always fail with ENOSYS. Some functions are actually named
1795 something starting with __ and the normal name is an alias. */
1796#if defined __stub_$2 || defined __stub___$2
1797choke me
1798#endif
1799
1800int
1801main ()
1802{
1803return $2 ();
1804 ;
1805 return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_link "$LINENO"; then :
1809 eval "$3=yes"
1810else
1811 eval "$3=no"
1812fi
1813rm -f core conftest.err conftest.$ac_objext \
1814 conftest$ac_exeext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820
1821} # ac_fn_c_check_func
1822
1823# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824# -------------------------------------------------------
1825# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826# the include files in INCLUDES and setting the cache variable VAR
1827# accordingly.
1828ac_fn_c_check_header_mongrel ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835 $as_echo_n "(cached) " >&6
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840else
1841 # Is the header compilable?
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843$as_echo_n "checking $2 usability... " >&6; }
1844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h. */
1846$4
1847#include <$2>
1848_ACEOF
1849if ac_fn_c_try_compile "$LINENO"; then :
1850 ac_header_compiler=yes
1851else
1852 ac_header_compiler=no
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856$as_echo "$ac_header_compiler" >&6; }
1857
1858# Is the header present?
1859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860$as_echo_n "checking $2 presence... " >&6; }
1861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h. */
1863#include <$2>
1864_ACEOF
1865if ac_fn_c_try_cpp "$LINENO"; then :
1866 ac_header_preproc=yes
1867else
1868 ac_header_preproc=no
1869fi
1870rm -f conftest.err conftest.$ac_ext
1871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872$as_echo "$ac_header_preproc" >&6; }
1873
1874# So? What about this header?
1875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1876 yes:no: )
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 ;;
1882 no:yes:* )
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1886$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1890$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893 ;;
1894esac
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896$as_echo_n "checking for $2... " >&6; }
1897if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899else
1900 eval "$3=\$ac_header_compiler"
1901fi
1902eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904$as_echo "$ac_res" >&6; }
1905fi
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907
1908} # ac_fn_c_check_header_mongrel
1909
1910# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1911# -------------------------------------------
1912# Tests whether TYPE exists after having included INCLUDES, setting cache
1913# variable VAR accordingly.
1914ac_fn_c_check_type ()
1915{
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1921else
1922 eval "$3=no"
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925$4
1926int
1927main ()
1928{
1929if (sizeof ($2))
1930 return 0;
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935if ac_fn_c_try_compile "$LINENO"; then :
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h. */
1938$4
1939int
1940main ()
1941{
1942if (sizeof (($2)))
1943 return 0;
1944 ;
1945 return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949
1950else
1951 eval "$3=yes"
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956fi
1957eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961
1962} # ac_fn_c_check_type
207c35fa
ILT
1963
1964# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1965# --------------------------------------------
1966# Tries to find the compile-time value of EXPR in a program that includes
1967# INCLUDES, setting VAR accordingly. Returns whether the value could be
1968# computed
1969ac_fn_c_compute_int ()
1970{
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if test "$cross_compiling" = yes; then
1973 # Depending upon the size, compute the lo and hi bounds.
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976$4
1977int
1978main ()
1979{
1980static int test_array [1 - 2 * !(($2) >= 0)];
1981test_array [0] = 0
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_lo=0 ac_mid=0
1989 while :; do
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991/* end confdefs.h. */
1992$4
1993int
1994main ()
1995{
1996static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997test_array [0] = 0
1998
1999 ;
2000 return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_hi=$ac_mid; break
2005else
2006 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2007 if test $ac_lo -le $ac_mid; then
2008 ac_lo= ac_hi=
2009 break
2010 fi
2011 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2012fi
2013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 done
2015else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h. */
2018$4
2019int
2020main ()
2021{
2022static int test_array [1 - 2 * !(($2) < 0)];
2023test_array [0] = 0
2024
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_hi=-1 ac_mid=-1
2031 while :; do
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h. */
2034$4
2035int
2036main ()
2037{
2038static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2039test_array [0] = 0
2040
2041 ;
2042 return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_lo=$ac_mid; break
2047else
2048 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2049 if test $ac_mid -le $ac_hi; then
2050 ac_lo= ac_hi=
2051 break
2052 fi
2053 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2054fi
2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 done
2057else
2058 ac_lo= ac_hi=
2059fi
2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061fi
2062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063# Binary search between lo and hi bounds.
2064while test "x$ac_lo" != "x$ac_hi"; do
2065 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h. */
2068$4
2069int
2070main ()
2071{
2072static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2073test_array [0] = 0
2074
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_hi=$ac_mid
2081else
2082 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2083fi
2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085done
2086case $ac_lo in #((
2087?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2088'') ac_retval=1 ;;
2089esac
2090 else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094static long int longval () { return $2; }
2095static unsigned long int ulongval () { return $2; }
2096#include <stdio.h>
2097#include <stdlib.h>
2098int
2099main ()
2100{
2101
2102 FILE *f = fopen ("conftest.val", "w");
2103 if (! f)
2104 return 1;
2105 if (($2) < 0)
2106 {
2107 long int i = longval ();
2108 if (i != ($2))
2109 return 1;
2110 fprintf (f, "%ld", i);
2111 }
2112 else
2113 {
2114 unsigned long int i = ulongval ();
2115 if (i != ($2))
2116 return 1;
2117 fprintf (f, "%lu", i);
2118 }
2119 /* Do not output a trailing newline, as this causes \r\n confusion
2120 on some platforms. */
2121 return ferror (f) || fclose (f) != 0;
2122
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127if ac_fn_c_try_run "$LINENO"; then :
2128 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2129else
2130 ac_retval=1
2131fi
2132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2133 conftest.$ac_objext conftest.beam conftest.$ac_ext
2134rm -f conftest.val
2135
2136 fi
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 return $ac_retval
2139
2140} # ac_fn_c_compute_int
7a938933
ILT
2141cat >config.log <<_ACEOF
2142This file contains any messages produced by compilers while
2143running configure, to aid debugging if configure makes a mistake.
2144
2145It was created by package-unused $as_me version-unused, which was
2146generated by GNU Autoconf 2.64. Invocation command line was
2147
2148 $ $0 $@
2149
2150_ACEOF
2151exec 5>>config.log
2152{
2153cat <<_ASUNAME
2154## --------- ##
2155## Platform. ##
2156## --------- ##
2157
2158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2159uname -m = `(uname -m) 2>/dev/null || echo unknown`
2160uname -r = `(uname -r) 2>/dev/null || echo unknown`
2161uname -s = `(uname -s) 2>/dev/null || echo unknown`
2162uname -v = `(uname -v) 2>/dev/null || echo unknown`
2163
2164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2165/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2166
2167/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2168/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2170/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2171/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2172/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2173/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2174
2175_ASUNAME
2176
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 $as_echo "PATH: $as_dir"
2183 done
2184IFS=$as_save_IFS
2185
2186} >&5
2187
2188cat >&5 <<_ACEOF
2189
2190
2191## ----------- ##
2192## Core tests. ##
2193## ----------- ##
2194
2195_ACEOF
2196
2197
2198# Keep a trace of the command line.
2199# Strip out --no-create and --no-recursion so they do not pile up.
2200# Strip out --silent because we don't want to record it for future runs.
2201# Also quote any args containing shell meta-characters.
2202# Make two passes to allow for proper duplicate-argument suppression.
2203ac_configure_args=
2204ac_configure_args0=
2205ac_configure_args1=
2206ac_must_keep_next=false
2207for ac_pass in 1 2
2208do
2209 for ac_arg
2210 do
2211 case $ac_arg in
2212 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214 | -silent | --silent | --silen | --sile | --sil)
2215 continue ;;
2216 *\'*)
2217 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218 esac
2219 case $ac_pass in
2220 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2221 2)
2222 as_fn_append ac_configure_args1 " '$ac_arg'"
2223 if test $ac_must_keep_next = true; then
2224 ac_must_keep_next=false # Got value, back to normal.
2225 else
2226 case $ac_arg in
2227 *=* | --config-cache | -C | -disable-* | --disable-* \
2228 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230 | -with-* | --with-* | -without-* | --without-* | --x)
2231 case "$ac_configure_args0 " in
2232 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233 esac
2234 ;;
2235 -* ) ac_must_keep_next=true ;;
2236 esac
2237 fi
2238 as_fn_append ac_configure_args " '$ac_arg'"
2239 ;;
2240 esac
2241 done
2242done
2243{ ac_configure_args0=; unset ac_configure_args0;}
2244{ ac_configure_args1=; unset ac_configure_args1;}
2245
2246# When interrupted or exit'd, cleanup temporary files, and complete
2247# config.log. We remove comments because anyway the quotes in there
2248# would cause problems or look ugly.
2249# WARNING: Use '\'' to represent an apostrophe within the trap.
2250# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251trap 'exit_status=$?
2252 # Save into config.log some information that might help in debugging.
2253 {
2254 echo
2255
2256 cat <<\_ASBOX
2257## ---------------- ##
2258## Cache variables. ##
2259## ---------------- ##
2260_ASBOX
2261 echo
2262 # The following way of writing the cache mishandles newlines in values,
2263(
2264 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in #(
2267 *${as_nl}*)
2268 case $ac_var in #(
2269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2270$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2271 esac
2272 case $ac_var in #(
2273 _ | IFS | as_nl) ;; #(
2274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2275 *) { eval $ac_var=; unset $ac_var;} ;;
2276 esac ;;
2277 esac
2278 done
2279 (set) 2>&1 |
2280 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2281 *${as_nl}ac_space=\ *)
2282 sed -n \
2283 "s/'\''/'\''\\\\'\'''\''/g;
2284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2285 ;; #(
2286 *)
2287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2288 ;;
2289 esac |
2290 sort
2291)
2292 echo
2293
2294 cat <<\_ASBOX
2295## ----------------- ##
2296## Output variables. ##
2297## ----------------- ##
2298_ASBOX
2299 echo
2300 for ac_var in $ac_subst_vars
2301 do
2302 eval ac_val=\$$ac_var
2303 case $ac_val in
2304 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2305 esac
2306 $as_echo "$ac_var='\''$ac_val'\''"
2307 done | sort
2308 echo
2309
2310 if test -n "$ac_subst_files"; then
2311 cat <<\_ASBOX
2312## ------------------- ##
2313## File substitutions. ##
2314## ------------------- ##
2315_ASBOX
2316 echo
2317 for ac_var in $ac_subst_files
2318 do
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2326 fi
2327
2328 if test -s confdefs.h; then
2329 cat <<\_ASBOX
2330## ----------- ##
2331## confdefs.h. ##
2332## ----------- ##
2333_ASBOX
2334 echo
2335 cat confdefs.h
2336 echo
2337 fi
2338 test "$ac_signal" != 0 &&
2339 $as_echo "$as_me: caught signal $ac_signal"
2340 $as_echo "$as_me: exit $exit_status"
2341 } >&5
2342 rm -f core *.core core.conftest.* &&
2343 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2344 exit $exit_status
2345' 0
2346for ac_signal in 1 2 13 15; do
2347 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2348done
2349ac_signal=0
2350
2351# confdefs.h avoids OS command line length limits that DEFS can exceed.
2352rm -f -r conftest* confdefs.h
2353
2354$as_echo "/* confdefs.h */" > confdefs.h
2355
2356# Predefined preprocessor variables.
2357
2358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_NAME "$PACKAGE_NAME"
2360_ACEOF
2361
2362cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2364_ACEOF
2365
2366cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_VERSION "$PACKAGE_VERSION"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_STRING "$PACKAGE_STRING"
2372_ACEOF
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2376_ACEOF
2377
2378cat >>confdefs.h <<_ACEOF
2379#define PACKAGE_URL "$PACKAGE_URL"
2380_ACEOF
2381
2382
2383# Let the site file select an alternate cache file if it wants to.
2384# Prefer an explicitly selected file to automatically selected ones.
2385ac_site_file1=NONE
2386ac_site_file2=NONE
2387if test -n "$CONFIG_SITE"; then
2388 ac_site_file1=$CONFIG_SITE
2389elif test "x$prefix" != xNONE; then
2390 ac_site_file1=$prefix/share/config.site
2391 ac_site_file2=$prefix/etc/config.site
2392else
2393 ac_site_file1=$ac_default_prefix/share/config.site
2394 ac_site_file2=$ac_default_prefix/etc/config.site
2395fi
2396for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2397do
2398 test "x$ac_site_file" = xNONE && continue
2399 if test -r "$ac_site_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2401$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2402 sed 's/^/| /' "$ac_site_file" >&5
2403 . "$ac_site_file"
2404 fi
2405done
2406
2407if test -r "$cache_file"; then
2408 # Some versions of bash will fail to source /dev/null (special
2409 # files actually), so we avoid doing that.
2410 if test -f "$cache_file"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2412$as_echo "$as_me: loading cache $cache_file" >&6;}
2413 case $cache_file in
2414 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2415 *) . "./$cache_file";;
2416 esac
2417 fi
2418else
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2420$as_echo "$as_me: creating cache $cache_file" >&6;}
2421 >$cache_file
2422fi
2423
2424# Check that the precious variables saved in the cache have kept the same
2425# value.
2426ac_cache_corrupted=false
2427for ac_var in $ac_precious_vars; do
2428 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2429 eval ac_new_set=\$ac_env_${ac_var}_set
2430 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2431 eval ac_new_val=\$ac_env_${ac_var}_value
2432 case $ac_old_set,$ac_new_set in
2433 set,)
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2435$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2436 ac_cache_corrupted=: ;;
2437 ,set)
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2439$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2440 ac_cache_corrupted=: ;;
2441 ,);;
2442 *)
2443 if test "x$ac_old_val" != "x$ac_new_val"; then
2444 # differences in whitespace do not lead to failure.
2445 ac_old_val_w=`echo x $ac_old_val`
2446 ac_new_val_w=`echo x $ac_new_val`
2447 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2449$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2450 ac_cache_corrupted=:
2451 else
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2453$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2454 eval $ac_var=\$ac_old_val
2455 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2457$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2459$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2460 fi;;
2461 esac
2462 # Pass precious variables to config.status.
2463 if test "$ac_new_set" = set; then
2464 case $ac_new_val in
2465 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2466 *) ac_arg=$ac_var=$ac_new_val ;;
2467 esac
2468 case " $ac_configure_args " in
2469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2470 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2471 esac
2472 fi
2473done
2474if $ac_cache_corrupted; then
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2478$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2479 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2480fi
2481## -------------------- ##
2482## Main body of script. ##
2483## -------------------- ##
2484
2485ac_ext=c
2486ac_cpp='$CPP $CPPFLAGS'
2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490
2491
2492
2493
2494
2495
2496ac_config_headers="$ac_config_headers config.h"
2497
2498
e8028ecd 2499libtool_VERSION=3:1:0
7a938933
ILT
2500
2501
2502# Default to --enable-multilib
2503# Check whether --enable-multilib was given.
2504if test "${enable_multilib+set}" = set; then :
2505 enableval=$enable_multilib; case "$enableval" in
2506 yes) multilib=yes ;;
2507 no) multilib=no ;;
2508 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2509 esac
2510else
2511 multilib=yes
2512fi
2513
2514
2515# We may get other options which we leave undocumented:
2516# --with-target-subdir, --with-multisrctop, --with-multisubdir
2517# See config-ml.in if you want the gory details.
2518
2519if test "$srcdir" = "."; then
2520 if test "$with_target_subdir" != "."; then
2521 multi_basedir="$srcdir/$with_multisrctop../.."
2522 else
2523 multi_basedir="$srcdir/$with_multisrctop.."
2524 fi
2525else
2526 multi_basedir="$srcdir/.."
2527fi
2528
2529
2530# Even if the default multilib is not a cross compilation,
2531# it may be that some of the other multilibs are.
2532if test $cross_compiling = no && test $multilib = yes \
2533 && test "x${with_multisubdir}" != x ; then
2534 cross_compiling=maybe
2535fi
2536
2537ac_config_commands="$ac_config_commands default-1"
2538
2539
2540ac_aux_dir=
2541for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2542 for ac_t in install-sh install.sh shtool; do
2543 if test -f "$ac_dir/$ac_t"; then
2544 ac_aux_dir=$ac_dir
2545 ac_install_sh="$ac_aux_dir/$ac_t -c"
2546 break 2
2547 fi
2548 done
2549done
2550if test -z "$ac_aux_dir"; then
2551 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2552fi
2553
2554# These three variables are undocumented and unsupported,
2555# and are intended to be withdrawn in a future Autoconf release.
2556# They can cause serious problems if a builder's source tree is in a directory
2557# whose full name contains unusual characters.
2558ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2559ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2560ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561
2562
2563# Make sure we can run config.sub.
2564$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2565 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2566
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2568$as_echo_n "checking build system type... " >&6; }
2569if test "${ac_cv_build+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571else
2572 ac_build_alias=$build_alias
2573test "x$ac_build_alias" = x &&
2574 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2575test "x$ac_build_alias" = x &&
2576 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2577ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2578 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2579
2580fi
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2582$as_echo "$ac_cv_build" >&6; }
2583case $ac_cv_build in
2584*-*-*) ;;
2585*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2586esac
2587build=$ac_cv_build
2588ac_save_IFS=$IFS; IFS='-'
2589set x $ac_cv_build
2590shift
2591build_cpu=$1
2592build_vendor=$2
2593shift; shift
2594# Remember, the first character of IFS is used to create $*,
2595# except with old shells:
2596build_os=$*
2597IFS=$ac_save_IFS
2598case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2599
2600
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2602$as_echo_n "checking host system type... " >&6; }
2603if test "${ac_cv_host+set}" = set; then :
2604 $as_echo_n "(cached) " >&6
2605else
2606 if test "x$host_alias" = x; then
2607 ac_cv_host=$ac_cv_build
2608else
2609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2610 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2611fi
2612
2613fi
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2615$as_echo "$ac_cv_host" >&6; }
2616case $ac_cv_host in
2617*-*-*) ;;
2618*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2619esac
2620host=$ac_cv_host
2621ac_save_IFS=$IFS; IFS='-'
2622set x $ac_cv_host
2623shift
2624host_cpu=$1
2625host_vendor=$2
2626shift; shift
2627# Remember, the first character of IFS is used to create $*,
2628# except with old shells:
2629host_os=$*
2630IFS=$ac_save_IFS
2631case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2632
2633
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2635$as_echo_n "checking target system type... " >&6; }
2636if test "${ac_cv_target+set}" = set; then :
2637 $as_echo_n "(cached) " >&6
2638else
2639 if test "x$target_alias" = x; then
2640 ac_cv_target=$ac_cv_host
2641else
2642 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2643 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2644fi
2645
2646fi
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2648$as_echo "$ac_cv_target" >&6; }
2649case $ac_cv_target in
2650*-*-*) ;;
2651*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2652esac
2653target=$ac_cv_target
2654ac_save_IFS=$IFS; IFS='-'
2655set x $ac_cv_target
2656shift
2657target_cpu=$1
2658target_vendor=$2
2659shift; shift
2660# Remember, the first character of IFS is used to create $*,
2661# except with old shells:
2662target_os=$*
2663IFS=$ac_save_IFS
2664case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2665
2666
2667# The aliases save the names the user supplied, while $host etc.
2668# will get canonicalized.
2669test -n "$target_alias" &&
2670 test "$program_prefix$program_suffix$program_transform_name" = \
2671 NONENONEs,x,x, &&
2672 program_prefix=${target_alias}-
2673
2674target_alias=${target_alias-$host_alias}
2675
2676am__api_version='1.11'
2677
2678# Find a good install program. We prefer a C program (faster),
2679# so one script is as good as another. But avoid the broken or
2680# incompatible versions:
2681# SysV /etc/install, /usr/sbin/install
2682# SunOS /usr/etc/install
2683# IRIX /sbin/install
2684# AIX /bin/install
2685# AmigaOS /C/install, which installs bootblocks on floppy discs
2686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2689# OS/2's system install, which has a completely different semantic
2690# ./install, which can be erroneously created by make from ./install.sh.
2691# Reject install programs that cannot install multiple files.
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2693$as_echo_n "checking for a BSD-compatible install... " >&6; }
2694if test -z "$INSTALL"; then
2695if test "${ac_cv_path_install+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697else
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701 IFS=$as_save_IFS
2702 test -z "$as_dir" && as_dir=.
2703 # Account for people who put trailing slashes in PATH elements.
2704case $as_dir/ in #((
2705 ./ | .// | /[cC]/* | \
2706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2707 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2708 /usr/ucb/* ) ;;
2709 *)
2710 # OSF1 and SCO ODT 3.0 have their own names for install.
2711 # Don't use installbsd from OSF since it installs stuff as root
2712 # by default.
2713 for ac_prog in ginstall scoinst install; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2716 if test $ac_prog = install &&
2717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # AIX install. It has an incompatible calling convention.
2719 :
2720 elif test $ac_prog = install &&
2721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2722 # program-specific install script used by HP pwplus--don't use.
2723 :
2724 else
2725 rm -rf conftest.one conftest.two conftest.dir
2726 echo one > conftest.one
2727 echo two > conftest.two
2728 mkdir conftest.dir
2729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2730 test -s conftest.one && test -s conftest.two &&
2731 test -s conftest.dir/conftest.one &&
2732 test -s conftest.dir/conftest.two
2733 then
2734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2735 break 3
2736 fi
2737 fi
2738 fi
2739 done
2740 done
2741 ;;
2742esac
2743
2744 done
2745IFS=$as_save_IFS
2746
2747rm -rf conftest.one conftest.two conftest.dir
2748
2749fi
2750 if test "${ac_cv_path_install+set}" = set; then
2751 INSTALL=$ac_cv_path_install
2752 else
2753 # As a last resort, use the slow shell script. Don't cache a
2754 # value for INSTALL within a source directory, because that will
2755 # break other packages using the cache if that directory is
2756 # removed, or if the value is a relative name.
2757 INSTALL=$ac_install_sh
2758 fi
2759fi
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2761$as_echo "$INSTALL" >&6; }
2762
2763# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2764# It thinks the first close brace ends the variable substitution.
2765test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2766
2767test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2768
2769test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2770
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2772$as_echo_n "checking whether build environment is sane... " >&6; }
2773# Just in case
2774sleep 1
2775echo timestamp > conftest.file
2776# Reject unsafe characters in $srcdir or the absolute working directory
2777# name. Accept space and tab only in the latter.
2778am_lf='
2779'
2780case `pwd` in
2781 *[\\\"\#\$\&\'\`$am_lf]*)
2782 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2783esac
2784case $srcdir in
2785 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2786 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2787esac
2788
2789# Do `set' in a subshell so we don't clobber the current shell's
2790# arguments. Must try -L first in case configure is actually a
2791# symlink; some systems play weird games with the mod time of symlinks
2792# (eg FreeBSD returns the mod time of the symlink's containing
2793# directory).
2794if (
2795 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2796 if test "$*" = "X"; then
2797 # -L didn't work.
2798 set X `ls -t "$srcdir/configure" conftest.file`
2799 fi
2800 rm -f conftest.file
2801 if test "$*" != "X $srcdir/configure conftest.file" \
2802 && test "$*" != "X conftest.file $srcdir/configure"; then
2803
2804 # If neither matched, then we have a broken ls. This can happen
2805 # if, for instance, CONFIG_SHELL is bash and it inherits a
2806 # broken ls alias from the environment. This has actually
2807 # happened. Such a system could not be considered "sane".
2808 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2809alias in your environment" "$LINENO" 5
2810 fi
2811
2812 test "$2" = conftest.file
2813 )
2814then
2815 # Ok.
2816 :
2817else
2818 as_fn_error "newly created file is older than distributed files!
2819Check your system clock" "$LINENO" 5
2820fi
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2822$as_echo "yes" >&6; }
2823test "$program_prefix" != NONE &&
2824 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2825# Use a double $ so make ignores it.
2826test "$program_suffix" != NONE &&
2827 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2828# Double any \ or $.
2829# By default was `s,x,x', remove it if useless.
2830ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2831program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2832
2833# expand $ac_aux_dir to an absolute path
2834am_aux_dir=`cd $ac_aux_dir && pwd`
2835
2836if test x"${MISSING+set}" != xset; then
2837 case $am_aux_dir in
2838 *\ * | *\ *)
2839 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2840 *)
2841 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2842 esac
2843fi
2844# Use eval to expand $SHELL
2845if eval "$MISSING --run true"; then
2846 am_missing_run="$MISSING --run "
2847else
2848 am_missing_run=
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2850$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2851fi
2852
2853if test x"${install_sh}" != xset; then
2854 case $am_aux_dir in
2855 *\ * | *\ *)
2856 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2857 *)
2858 install_sh="\${SHELL} $am_aux_dir/install-sh"
2859 esac
2860fi
2861
2862# Installed binaries are usually stripped using `strip' when the user
2863# run `make install-strip'. However `strip' might not be the right
2864# tool to use in cross-compilation environments, therefore Automake
2865# will honor the `STRIP' environment variable to overrule this program.
2866if test "$cross_compiling" != no; then
2867 if test -n "$ac_tool_prefix"; then
2868 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2869set dummy ${ac_tool_prefix}strip; ac_word=$2
2870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871$as_echo_n "checking for $ac_word... " >&6; }
2872if test "${ac_cv_prog_STRIP+set}" = set; then :
2873 $as_echo_n "(cached) " >&6
2874else
2875 if test -n "$STRIP"; then
2876 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2877else
2878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879for as_dir in $PATH
2880do
2881 IFS=$as_save_IFS
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 break 2
2888 fi
2889done
2890 done
2891IFS=$as_save_IFS
2892
2893fi
2894fi
2895STRIP=$ac_cv_prog_STRIP
2896if test -n "$STRIP"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2898$as_echo "$STRIP" >&6; }
2899else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901$as_echo "no" >&6; }
2902fi
2903
2904
2905fi
2906if test -z "$ac_cv_prog_STRIP"; then
2907 ac_ct_STRIP=$STRIP
2908 # Extract the first word of "strip", so it can be a program name with args.
2909set dummy strip; ac_word=$2
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911$as_echo_n "checking for $ac_word... " >&6; }
2912if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2914else
2915 if test -n "$ac_ct_STRIP"; then
2916 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917else
2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_ac_ct_STRIP="strip"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2928 fi
2929done
2930 done
2931IFS=$as_save_IFS
2932
2933fi
2934fi
2935ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936if test -n "$ac_ct_STRIP"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2938$as_echo "$ac_ct_STRIP" >&6; }
2939else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942fi
2943
2944 if test "x$ac_ct_STRIP" = x; then
2945 STRIP=":"
2946 else
2947 case $cross_compiling:$ac_tool_warned in
2948yes:)
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951ac_tool_warned=yes ;;
2952esac
2953 STRIP=$ac_ct_STRIP
2954 fi
2955else
2956 STRIP="$ac_cv_prog_STRIP"
2957fi
2958
2959fi
2960INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2961
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2963$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2964if test -z "$MKDIR_P"; then
2965 if test "${ac_cv_path_mkdir+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2967else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2970do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_prog in mkdir gmkdir; do
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2976 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2977 'mkdir (GNU coreutils) '* | \
2978 'mkdir (coreutils) '* | \
2979 'mkdir (fileutils) '4.1*)
2980 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2981 break 3;;
2982 esac
2983 done
2984 done
2985 done
2986IFS=$as_save_IFS
2987
2988fi
2989
2990 if test "${ac_cv_path_mkdir+set}" = set; then
2991 MKDIR_P="$ac_cv_path_mkdir -p"
2992 else
2993 # As a last resort, use the slow shell script. Don't cache a
2994 # value for MKDIR_P within a source directory, because that will
2995 # break other packages using the cache if that directory is
2996 # removed, or if the value is a relative name.
2997 test -d ./--version && rmdir ./--version
2998 MKDIR_P="$ac_install_sh -d"
2999 fi
3000fi
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3002$as_echo "$MKDIR_P" >&6; }
3003
3004mkdir_p="$MKDIR_P"
3005case $mkdir_p in
3006 [\\/$]* | ?:[\\/]*) ;;
3007 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3008esac
3009
3010for ac_prog in gawk mawk nawk awk
3011do
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013set dummy $ac_prog; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if test "${ac_cv_prog_AWK+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3018else
3019 if test -n "$AWK"; then
3020 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_AWK="$ac_prog"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3032 fi
3033done
3034 done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039AWK=$ac_cv_prog_AWK
3040if test -n "$AWK"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3042$as_echo "$AWK" >&6; }
3043else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048
3049 test -n "$AWK" && break
3050done
3051
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3053$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3054set x ${MAKE-make}
3055ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3056if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3057 $as_echo_n "(cached) " >&6
3058else
3059 cat >conftest.make <<\_ACEOF
3060SHELL = /bin/sh
3061all:
3062 @echo '@@@%%%=$(MAKE)=@@@%%%'
3063_ACEOF
3064# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3065case `${MAKE-make} -f conftest.make 2>/dev/null` in
3066 *@@@%%%=?*=@@@%%%*)
3067 eval ac_cv_prog_make_${ac_make}_set=yes;;
3068 *)
3069 eval ac_cv_prog_make_${ac_make}_set=no;;
3070esac
3071rm -f conftest.make
3072fi
3073if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075$as_echo "yes" >&6; }
3076 SET_MAKE=
3077else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079$as_echo "no" >&6; }
3080 SET_MAKE="MAKE=${MAKE-make}"
3081fi
3082
3083rm -rf .tst 2>/dev/null
3084mkdir .tst 2>/dev/null
3085if test -d .tst; then
3086 am__leading_dot=.
3087else
3088 am__leading_dot=_
3089fi
3090rmdir .tst 2>/dev/null
3091
3092if test "`cd $srcdir && pwd`" != "`pwd`"; then
3093 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3094 # is not polluted with repeated "-I."
3095 am__isrc=' -I$(srcdir)'
3096 # test to see if srcdir already configured
3097 if test -f $srcdir/config.status; then
3098 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3099 fi
3100fi
3101
3102# test whether we have cygpath
3103if test -z "$CYGPATH_W"; then
3104 if (cygpath --version) >/dev/null 2>/dev/null; then
3105 CYGPATH_W='cygpath -w'
3106 else
3107 CYGPATH_W=echo
3108 fi
3109fi
3110
3111
3112# Define the identity of the package.
3113 PACKAGE='libgo'
3114 VERSION='version-unused'
3115
3116
3117# Some tools Automake needs.
3118
3119ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3120
3121
3122AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3123
3124
3125AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3126
3127
3128AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3129
3130
3131MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3132
3133# We need awk for the "check" target. The system "awk" is bad on
3134# some platforms.
3135# Always define AMTAR for backward compatibility.
3136
3137AMTAR=${AMTAR-"${am_missing_run}tar"}
3138
3139am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150ac_ext=c
3151ac_cpp='$CPP $CPPFLAGS'
3152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154ac_compiler_gnu=$ac_cv_c_compiler_gnu
3155if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3157set dummy ${ac_tool_prefix}gcc; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if test "${ac_cv_prog_CC+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3162else
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC="$CC" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177done
3178 done
3179IFS=$as_save_IFS
3180
3181fi
3182fi
3183CC=$ac_cv_prog_CC
3184if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186$as_echo "$CC" >&6; }
3187else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190fi
3191
3192
3193fi
3194if test -z "$ac_cv_prog_CC"; then
3195 ac_ct_CC=$CC
3196 # Extract the first word of "gcc", so it can be a program name with args.
3197set dummy gcc; ac_word=$2
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199$as_echo_n "checking for $ac_word... " >&6; }
3200if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3201 $as_echo_n "(cached) " >&6
3202else
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205else
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_ac_ct_CC="gcc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218 done
3219IFS=$as_save_IFS
3220
3221fi
3222fi
3223ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226$as_echo "$ac_ct_CC" >&6; }
3227else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229$as_echo "no" >&6; }
3230fi
3231
3232 if test "x$ac_ct_CC" = x; then
3233 CC=""
3234 else
3235 case $cross_compiling:$ac_tool_warned in
3236yes:)
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239ac_tool_warned=yes ;;
3240esac
3241 CC=$ac_ct_CC
3242 fi
3243else
3244 CC="$ac_cv_prog_CC"
3245fi
3246
3247if test -z "$CC"; then
3248 if test -n "$ac_tool_prefix"; then
3249 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3250set dummy ${ac_tool_prefix}cc; ac_word=$2
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252$as_echo_n "checking for $ac_word... " >&6; }
3253if test "${ac_cv_prog_CC+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3255else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_CC="${ac_tool_prefix}cc"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270done
3271 done
3272IFS=$as_save_IFS
3273
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279$as_echo "$CC" >&6; }
3280else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283fi
3284
3285
3286 fi
3287fi
3288if test -z "$CC"; then
3289 # Extract the first word of "cc", so it can be a program name with args.
3290set dummy cc; ac_word=$2
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if test "${ac_cv_prog_CC+set}" = set; then :
3294 $as_echo_n "(cached) " >&6
3295else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299 ac_prog_rejected=no
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3308 ac_prog_rejected=yes
3309 continue
3310 fi
3311 ac_cv_prog_CC="cc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315done
3316 done
3317IFS=$as_save_IFS
3318
3319if test $ac_prog_rejected = yes; then
3320 # We found a bogon in the path, so make sure we never use it.
3321 set dummy $ac_cv_prog_CC
3322 shift
3323 if test $# != 0; then
3324 # We chose a different compiler from the bogus one.
3325 # However, it has the same basename, so the bogon will be chosen
3326 # first if we set CC to just the basename; use the full file name.
3327 shift
3328 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3329 fi
3330fi
3331fi
3332fi
3333CC=$ac_cv_prog_CC
3334if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336$as_echo "$CC" >&6; }
3337else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340fi
3341
3342
3343fi
3344if test -z "$CC"; then
3345 if test -n "$ac_tool_prefix"; then
3346 for ac_prog in cl.exe
3347 do
3348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351$as_echo_n "checking for $ac_word... " >&6; }
3352if test "${ac_cv_prog_CC+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3354else
3355 if test -n "$CC"; then
3356 ac_cv_prog_CC="$CC" # Let the user override the test.
3357else
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359for as_dir in $PATH
3360do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3368 fi
3369done
3370 done
3371IFS=$as_save_IFS
3372
3373fi
3374fi
3375CC=$ac_cv_prog_CC
3376if test -n "$CC"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3378$as_echo "$CC" >&6; }
3379else
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381$as_echo "no" >&6; }
3382fi
3383
3384
3385 test -n "$CC" && break
3386 done
3387fi
3388if test -z "$CC"; then
3389 ac_ct_CC=$CC
3390 for ac_prog in cl.exe
3391do
3392 # Extract the first word of "$ac_prog", so it can be a program name with args.
3393set dummy $ac_prog; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
3396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3398else
3399 if test -n "$ac_ct_CC"; then
3400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3401else
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_ac_ct_CC="$ac_prog"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413done
3414 done
3415IFS=$as_save_IFS
3416
3417fi
3418fi
3419ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420if test -n "$ac_ct_CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422$as_echo "$ac_ct_CC" >&6; }
3423else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426fi
3427
3428
3429 test -n "$ac_ct_CC" && break
3430done
3431
3432 if test "x$ac_ct_CC" = x; then
3433 CC=""
3434 else
3435 case $cross_compiling:$ac_tool_warned in
3436yes:)
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3439ac_tool_warned=yes ;;
3440esac
3441 CC=$ac_ct_CC
3442 fi
3443fi
3444
3445fi
3446
3447
3448test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450as_fn_error "no acceptable C compiler found in \$PATH
3451See \`config.log' for more details." "$LINENO" 5; }
3452
3453# Provide some information about the compiler.
3454$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3455set X $ac_compile
3456ac_compiler=$2
3457for ac_option in --version -v -V -qversion; do
3458 { { ac_try="$ac_compiler $ac_option >&5"
3459case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462esac
3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464$as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3466 ac_status=$?
3467 if test -s conftest.err; then
3468 sed '10a\
3469... rest of stderr output deleted ...
3470 10q' conftest.err >conftest.er1
3471 cat conftest.er1 >&5
3472 rm -f conftest.er1 conftest.err
3473 fi
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }
3476done
3477
3478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479/* end confdefs.h. */
3480
3481int
3482main ()
3483{
3484
3485 ;
3486 return 0;
3487}
3488_ACEOF
3489ac_clean_files_save=$ac_clean_files
3490ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3491# Try to create an executable without -o first, disregard a.out.
3492# It will help us diagnose broken compilers, and finding out an intuition
3493# of exeext.
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3495$as_echo_n "checking for C compiler default output file name... " >&6; }
3496ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3497
3498# The possible output files:
3499ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3500
3501ac_rmfiles=
3502for ac_file in $ac_files
3503do
3504 case $ac_file in
3505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3506 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3507 esac
3508done
3509rm -f $ac_rmfiles
3510
3511if { { ac_try="$ac_link_default"
3512case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515esac
3516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3517$as_echo "$ac_try_echo"; } >&5
3518 (eval "$ac_link_default") 2>&5
3519 ac_status=$?
3520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3521 test $ac_status = 0; }; then :
3522 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3523# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3524# in a Makefile. We should not override ac_cv_exeext if it was cached,
3525# so that the user can short-circuit this test for compilers unknown to
3526# Autoconf.
3527for ac_file in $ac_files ''
3528do
3529 test -f "$ac_file" || continue
3530 case $ac_file in
3531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3532 ;;
3533 [ab].out )
3534 # We found the default executable, but exeext='' is most
3535 # certainly right.
3536 break;;
3537 *.* )
3538 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3539 then :; else
3540 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541 fi
3542 # We set ac_cv_exeext here because the later test for it is not
3543 # safe: cross compilers may not add the suffix if given an `-o'
3544 # argument, so we may need to know it at that point already.
3545 # Even if this section looks crufty: it has the advantage of
3546 # actually working.
3547 break;;
3548 * )
3549 break;;
3550 esac
3551done
3552test "$ac_cv_exeext" = no && ac_cv_exeext=
3553
3554else
3555 ac_file=''
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3558$as_echo "$ac_file" >&6; }
3559if test -z "$ac_file"; then :
3560 $as_echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565{ as_fn_set_status 77
3566as_fn_error "C compiler cannot create executables
3567See \`config.log' for more details." "$LINENO" 5; }; }
3568fi
3569ac_exeext=$ac_cv_exeext
3570
3571# Check that the compiler produces executables we can run. If not, either
3572# the compiler is broken, or we cross compile.
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3574$as_echo_n "checking whether the C compiler works... " >&6; }
3575# If not cross compiling, check that we can run a simple program.
3576if test "$cross_compiling" != yes; then
3577 if { ac_try='./$ac_file'
3578 { { case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581esac
3582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583$as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_try") 2>&5
3585 ac_status=$?
3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3587 test $ac_status = 0; }; }; then
3588 cross_compiling=no
3589 else
3590 if test "$cross_compiling" = maybe; then
3591 cross_compiling=yes
3592 else
3593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595as_fn_error "cannot run C compiled programs.
3596If you meant to cross compile, use \`--host'.
3597See \`config.log' for more details." "$LINENO" 5; }
3598 fi
3599 fi
3600fi
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3602$as_echo "yes" >&6; }
3603
3604rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3605ac_clean_files=$ac_clean_files_save
3606# Check that the compiler produces executables we can run. If not, either
3607# the compiler is broken, or we cross compile.
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3609$as_echo_n "checking whether we are cross compiling... " >&6; }
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3611$as_echo "$cross_compiling" >&6; }
3612
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3614$as_echo_n "checking for suffix of executables... " >&6; }
3615if { { ac_try="$ac_link"
3616case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619esac
3620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621$as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_link") 2>&5
3623 ac_status=$?
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; then :
3626 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3627# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3628# work properly (i.e., refer to `conftest.exe'), while it won't with
3629# `rm'.
3630for ac_file in conftest.exe conftest conftest.*; do
3631 test -f "$ac_file" || continue
3632 case $ac_file in
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3634 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3635 break;;
3636 * ) break;;
3637 esac
3638done
3639else
3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642as_fn_error "cannot compute suffix of executables: cannot compile and link
3643See \`config.log' for more details." "$LINENO" 5; }
3644fi
3645rm -f conftest$ac_cv_exeext
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3647$as_echo "$ac_cv_exeext" >&6; }
3648
3649rm -f conftest.$ac_ext
3650EXEEXT=$ac_cv_exeext
3651ac_exeext=$EXEEXT
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3653$as_echo_n "checking for suffix of object files... " >&6; }
3654if test "${ac_cv_objext+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656else
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h. */
3659
3660int
3661main ()
3662{
3663
3664 ;
3665 return 0;
3666}
3667_ACEOF
3668rm -f conftest.o conftest.obj
3669if { { ac_try="$ac_compile"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675$as_echo "$ac_try_echo"; } >&5
3676 (eval "$ac_compile") 2>&5
3677 ac_status=$?
3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679 test $ac_status = 0; }; then :
3680 for ac_file in conftest.o conftest.obj conftest.*; do
3681 test -f "$ac_file" || continue;
3682 case $ac_file in
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3684 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3685 break;;
3686 esac
3687done
3688else
3689 $as_echo "$as_me: failed program was:" >&5
3690sed 's/^/| /' conftest.$ac_ext >&5
3691
3692{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694as_fn_error "cannot compute suffix of object files: cannot compile
3695See \`config.log' for more details." "$LINENO" 5; }
3696fi
3697rm -f conftest.$ac_cv_objext conftest.$ac_ext
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3700$as_echo "$ac_cv_objext" >&6; }
3701OBJEXT=$ac_cv_objext
3702ac_objext=$OBJEXT
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3704$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3705if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707else
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h. */
3710
3711int
3712main ()
3713{
3714#ifndef __GNUC__
3715 choke me
3716#endif
3717
3718 ;
3719 return 0;
3720}
3721_ACEOF
3722if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_compiler_gnu=yes
3724else
3725 ac_compiler_gnu=no
3726fi
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728ac_cv_c_compiler_gnu=$ac_compiler_gnu
3729
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3732$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733if test $ac_compiler_gnu = yes; then
3734 GCC=yes
3735else
3736 GCC=
3737fi
3738ac_test_CFLAGS=${CFLAGS+set}
3739ac_save_CFLAGS=$CFLAGS
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3741$as_echo_n "checking whether $CC accepts -g... " >&6; }
3742if test "${ac_cv_prog_cc_g+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744else
3745 ac_save_c_werror_flag=$ac_c_werror_flag
3746 ac_c_werror_flag=yes
3747 ac_cv_prog_cc_g=no
3748 CFLAGS="-g"
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h. */
3751
3752int
3753main ()
3754{
3755
3756 ;
3757 return 0;
3758}
3759_ACEOF
3760if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_prog_cc_g=yes
3762else
3763 CFLAGS=""
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765/* end confdefs.h. */
3766
3767int
3768main ()
3769{
3770
3771 ;
3772 return 0;
3773}
3774_ACEOF
3775if ac_fn_c_try_compile "$LINENO"; then :
3776
3777else
3778 ac_c_werror_flag=$ac_save_c_werror_flag
3779 CFLAGS="-g"
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h. */
3782
3783int
3784main ()
3785{
3786
3787 ;
3788 return 0;
3789}
3790_ACEOF
3791if ac_fn_c_try_compile "$LINENO"; then :
3792 ac_cv_prog_cc_g=yes
3793fi
3794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795fi
3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797fi
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3800fi
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3802$as_echo "$ac_cv_prog_cc_g" >&6; }
3803if test "$ac_test_CFLAGS" = set; then
3804 CFLAGS=$ac_save_CFLAGS
3805elif test $ac_cv_prog_cc_g = yes; then
3806 if test "$GCC" = yes; then
3807 CFLAGS="-g -O2"
3808 else
3809 CFLAGS="-g"
3810 fi
3811else
3812 if test "$GCC" = yes; then
3813 CFLAGS="-O2"
3814 else
3815 CFLAGS=
3816 fi
3817fi
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3819$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3820if test "${ac_cv_prog_cc_c89+set}" = set; then :
3821 $as_echo_n "(cached) " >&6
3822else
3823 ac_cv_prog_cc_c89=no
3824ac_save_CC=$CC
3825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h. */
3827#include <stdarg.h>
3828#include <stdio.h>
3829#include <sys/types.h>
3830#include <sys/stat.h>
3831/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3832struct buf { int x; };
3833FILE * (*rcsopen) (struct buf *, struct stat *, int);
3834static char *e (p, i)
3835 char **p;
3836 int i;
3837{
3838 return p[i];
3839}
3840static char *f (char * (*g) (char **, int), char **p, ...)
3841{
3842 char *s;
3843 va_list v;
3844 va_start (v,p);
3845 s = g (p, va_arg (v,int));
3846 va_end (v);
3847 return s;
3848}
3849
3850/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3851 function prototypes and stuff, but not '\xHH' hex character constants.
3852 These don't provoke an error unfortunately, instead are silently treated
3853 as 'x'. The following induces an error, until -std is added to get
3854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3855 array size at least. It's necessary to write '\x00'==0 to get something
3856 that's true only with -std. */
3857int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3858
3859/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3860 inside strings and character constants. */
3861#define FOO(x) 'x'
3862int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3863
3864int test (int i, double x);
3865struct s1 {int (*f) (int a);};
3866struct s2 {int (*f) (double a);};
3867int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3868int argc;
3869char **argv;
3870int
3871main ()
3872{
3873return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3874 ;
3875 return 0;
3876}
3877_ACEOF
3878for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3880do
3881 CC="$ac_save_CC $ac_arg"
3882 if ac_fn_c_try_compile "$LINENO"; then :
3883 ac_cv_prog_cc_c89=$ac_arg
3884fi
3885rm -f core conftest.err conftest.$ac_objext
3886 test "x$ac_cv_prog_cc_c89" != "xno" && break
3887done
3888rm -f conftest.$ac_ext
3889CC=$ac_save_CC
3890
3891fi
3892# AC_CACHE_VAL
3893case "x$ac_cv_prog_cc_c89" in
3894 x)
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3896$as_echo "none needed" >&6; } ;;
3897 xno)
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3899$as_echo "unsupported" >&6; } ;;
3900 *)
3901 CC="$CC $ac_cv_prog_cc_c89"
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3903$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3904esac
3905if test "x$ac_cv_prog_cc_c89" != xno; then :
3906
3907fi
3908
3909ac_ext=c
3910ac_cpp='$CPP $CPPFLAGS'
3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914DEPDIR="${am__leading_dot}deps"
3915
3916ac_config_commands="$ac_config_commands depfiles"
3917
3918
3919am_make=${MAKE-make}
3920cat > confinc << 'END'
3921am__doit:
3922 @echo this is the am__doit target
3923.PHONY: am__doit
3924END
3925# If we don't find an include directive, just comment out the code.
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3927$as_echo_n "checking for style of include used by $am_make... " >&6; }
3928am__include="#"
3929am__quote=
3930_am_result=none
3931# First try GNU make style include.
3932echo "include confinc" > confmf
3933# Ignore all kinds of additional output from `make'.
3934case `$am_make -s -f confmf 2> /dev/null` in #(
3935*the\ am__doit\ target*)
3936 am__include=include
3937 am__quote=
3938 _am_result=GNU
3939 ;;
3940esac
3941# Now try BSD make style include.
3942if test "$am__include" = "#"; then
3943 echo '.include "confinc"' > confmf
3944 case `$am_make -s -f confmf 2> /dev/null` in #(
3945 *the\ am__doit\ target*)
3946 am__include=.include
3947 am__quote="\""
3948 _am_result=BSD
3949 ;;
3950 esac
3951fi
3952
3953
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3955$as_echo "$_am_result" >&6; }
3956rm -f confinc confmf
3957
3958# Check whether --enable-dependency-tracking was given.
3959if test "${enable_dependency_tracking+set}" = set; then :
3960 enableval=$enable_dependency_tracking;
3961fi
3962
3963if test "x$enable_dependency_tracking" != xno; then
3964 am_depcomp="$ac_aux_dir/depcomp"
3965 AMDEPBACKSLASH='\'
3966fi
3967 if test "x$enable_dependency_tracking" != xno; then
3968 AMDEP_TRUE=
3969 AMDEP_FALSE='#'
3970else
3971 AMDEP_TRUE='#'
3972 AMDEP_FALSE=
3973fi
3974
3975
3976
3977depcc="$CC" am_compiler_list=
3978
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3980$as_echo_n "checking dependency style of $depcc... " >&6; }
3981if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983else
3984 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3985 # We make a subdir and do the tests there. Otherwise we can end up
3986 # making bogus files that we don't know about and never remove. For
3987 # instance it was reported that on HP-UX the gcc test will end up
3988 # making a dummy file named `D' -- because `-MD' means `put the output
3989 # in D'.
3990 mkdir conftest.dir
3991 # Copy depcomp to subdir because otherwise we won't find it if we're
3992 # using a relative directory.
3993 cp "$am_depcomp" conftest.dir
3994 cd conftest.dir
3995 # We will build objects and dependencies in a subdirectory because
3996 # it helps to detect inapplicable dependency modes. For instance
3997 # both Tru64's cc and ICC support -MD to output dependencies as a
3998 # side effect of compilation, but ICC will put the dependencies in
3999 # the current directory while Tru64 will put them in the object
4000 # directory.
4001 mkdir sub
4002
4003 am_cv_CC_dependencies_compiler_type=none
4004 if test "$am_compiler_list" = ""; then
4005 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4006 fi
4007 am__universal=false
4008 case " $depcc " in #(
4009 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4010 esac
4011
4012 for depmode in $am_compiler_list; do
4013 # Setup a source with many dependencies, because some compilers
4014 # like to wrap large dependency lists on column 80 (with \), and
4015 # we should not choose a depcomp mode which is confused by this.
4016 #
4017 # We need to recreate these files for each test, as the compiler may
4018 # overwrite some of them when testing with obscure command lines.
4019 # This happens at least with the AIX C compiler.
4020 : > sub/conftest.c
4021 for i in 1 2 3 4 5 6; do
4022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4024 # Solaris 8's {/usr,}/bin/sh.
4025 touch sub/conftst$i.h
4026 done
4027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4028
4029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4030 # mode. It turns out that the SunPro C++ compiler does not properly
4031 # handle `-M -o', and we need to detect this. Also, some Intel
4032 # versions had trouble with output in subdirs
4033 am__obj=sub/conftest.${OBJEXT-o}
4034 am__minus_obj="-o $am__obj"
4035 case $depmode in
4036 gcc)
4037 # This depmode causes a compiler race in universal mode.
4038 test "$am__universal" = false || continue
4039 ;;
4040 nosideeffect)
4041 # after this tag, mechanisms are not by side-effect, so they'll
4042 # only be used when explicitly requested
4043 if test "x$enable_dependency_tracking" = xyes; then
4044 continue
4045 else
4046 break
4047 fi
4048 ;;
4049 msvisualcpp | msvcmsys)
4050 # This compiler won't grok `-c -o', but also, the minuso test has
4051 # not run yet. These depmodes are late enough in the game, and
4052 # so weak that their functioning should not be impacted.
4053 am__obj=conftest.${OBJEXT-o}
4054 am__minus_obj=
4055 ;;
4056 none) break ;;
4057 esac
4058 if depmode=$depmode \
4059 source=sub/conftest.c object=$am__obj \
4060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4061 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4062 >/dev/null 2>conftest.err &&
4063 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4065 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4067 # icc doesn't choke on unknown options, it will just issue warnings
4068 # or remarks (even with -Werror). So we grep stderr for any message
4069 # that says an option was ignored or not supported.
4070 # When given -MP, icc 7.0 and 7.1 complain thusly:
4071 # icc: Command line warning: ignoring option '-M'; no argument required
4072 # The diagnosis changed in icc 8.0:
4073 # icc: Command line remark: option '-MP' not supported
4074 if (grep 'ignoring option' conftest.err ||
4075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4076 am_cv_CC_dependencies_compiler_type=$depmode
4077 break
4078 fi
4079 fi
4080 done
4081
4082 cd ..
4083 rm -rf conftest.dir
4084else
4085 am_cv_CC_dependencies_compiler_type=none
4086fi
4087
4088fi
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4090$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4091CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4092
4093 if
4094 test "x$enable_dependency_tracking" != xno \
4095 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4096 am__fastdepCC_TRUE=
4097 am__fastdepCC_FALSE='#'
4098else
4099 am__fastdepCC_TRUE='#'
4100 am__fastdepCC_FALSE=
4101fi
4102
4103
4104ac_ext=go
4105ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4106ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compile_gnu=yes
4108if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4110set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112$as_echo_n "checking for $ac_word... " >&6; }
4113if test "${ac_cv_prog_GOC+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115else
4116 if test -n "$GOC"; then
4117 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4118else
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4126 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130done
4131 done
4132IFS=$as_save_IFS
4133
4134fi
4135fi
4136GOC=$ac_cv_prog_GOC
4137if test -n "$GOC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4139$as_echo "$GOC" >&6; }
4140else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142$as_echo "no" >&6; }
4143fi
4144
4145
4146fi
4147if test -z "$ac_cv_prog_GOC"; then
4148 ac_ct_GOC=$GOC
4149 # Extract the first word of "gccgo", so it can be a program name with args.
4150set dummy gccgo; ac_word=$2
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152$as_echo_n "checking for $ac_word... " >&6; }
4153if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4154 $as_echo_n "(cached) " >&6
4155else
4156 if test -n "$ac_ct_GOC"; then
4157 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166 ac_cv_prog_ac_ct_GOC="gccgo"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170done
4171 done
4172IFS=$as_save_IFS
4173
4174fi
4175fi
4176ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4177if test -n "$ac_ct_GOC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4179$as_echo "$ac_ct_GOC" >&6; }
4180else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183fi
4184
4185 if test "x$ac_ct_GOC" = x; then
4186 GOC=""
4187 else
4188 case $cross_compiling:$ac_tool_warned in
4189yes:)
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4192ac_tool_warned=yes ;;
4193esac
4194 GOC=$ac_ct_GOC
4195 fi
4196else
4197 GOC="$ac_cv_prog_GOC"
4198fi
4199
4200if test -z "$GOC"; then
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4203set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205$as_echo_n "checking for $ac_word... " >&6; }
4206if test "${ac_cv_prog_GOC+set}" = set; then :
4207 $as_echo_n "(cached) " >&6
4208else
4209 if test -n "$GOC"; then
4210 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223done
4224 done
4225IFS=$as_save_IFS
4226
4227fi
4228fi
4229GOC=$ac_cv_prog_GOC
4230if test -n "$GOC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4232$as_echo "$GOC" >&6; }
4233else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235$as_echo "no" >&6; }
4236fi
4237
4238
4239 fi
4240fi
4241if test -z "$GOC"; then
4242 # Extract the first word of "gccgo", so it can be a program name with args.
4243set dummy gccgo; ac_word=$2
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if test "${ac_cv_prog_GOC+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248else
4249 if test -n "$GOC"; then
4250 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4251else
4252 ac_prog_rejected=no
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4261 ac_prog_rejected=yes
4262 continue
4263 fi
4264 ac_cv_prog_GOC="gccgo"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268done
4269 done
4270IFS=$as_save_IFS
4271
4272if test $ac_prog_rejected = yes; then
4273 # We found a bogon in the path, so make sure we never use it.
4274 set dummy $ac_cv_prog_GOC
4275 shift
4276 if test $# != 0; then
4277 # We chose a different compiler from the bogus one.
4278 # However, it has the same basename, so the bogon will be chosen
4279 # first if we set GOC to just the basename; use the full file name.
4280 shift
4281 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4282 fi
4283fi
4284fi
4285fi
4286GOC=$ac_cv_prog_GOC
4287if test -n "$GOC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4289$as_echo "$GOC" >&6; }
4290else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
4293fi
4294
4295
4296fi
4297
4298
4299# Provide some information about the compiler.
4300$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4301set X $ac_compile
4302ac_compiler=$2
4303{ { ac_try="$ac_compiler --version >&5"
4304case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307esac
4308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309$as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_compiler --version >&5") 2>conftest.err
4311 ac_status=$?
4312 if test -s conftest.err; then
4313 sed '10a\
4314... rest of stderr output deleted ...
4315 10q' conftest.err >conftest.er1
4316 cat conftest.er1 >&5
4317 rm -f conftest.er1 conftest.err
4318 fi
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }
4321GOCFLAGS="-g -O2"
4322ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327
4328
4329
4330
4331
4332
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4334$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4335 # Check whether --enable-maintainer-mode was given.
4336if test "${enable_maintainer_mode+set}" = set; then :
4337 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4338else
4339 USE_MAINTAINER_MODE=no
4340fi
4341
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4343$as_echo "$USE_MAINTAINER_MODE" >&6; }
4344 if test $USE_MAINTAINER_MODE = yes; then
4345 MAINTAINER_MODE_TRUE=
4346 MAINTAINER_MODE_FALSE='#'
4347else
4348 MAINTAINER_MODE_TRUE='#'
4349 MAINTAINER_MODE_FALSE=
4350fi
4351
4352 MAINT=$MAINTAINER_MODE_TRUE
4353
4354
4355
061793a4
ILT
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4357$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4358if test "${ac_cv_path_SED+set}" = set; then :
7a938933
ILT
4359 $as_echo_n "(cached) " >&6
4360else
061793a4
ILT
4361 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4362 for ac_i in 1 2 3 4 5 6 7; do
4363 ac_script="$ac_script$as_nl$ac_script"
4364 done
4365 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4366 { ac_script=; unset ac_script;}
4367 if test -z "$SED"; then
4368 ac_path_SED_found=false
4369 # Loop through the user's path and test for each of PROGNAME-LIST
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
7a938933 4372do
061793a4
ILT
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in sed gsed; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4378 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4379# Check for GNU ac_path_SED and select it if it is found.
4380 # Check for GNU $ac_path_SED
4381case `"$ac_path_SED" --version 2>&1` in
4382*GNU*)
4383 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4384*)
4385 ac_count=0
4386 $as_echo_n 0123456789 >"conftest.in"
4387 while :
4388 do
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
4392 $as_echo '' >> "conftest.nl"
4393 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395 as_fn_arith $ac_count + 1 && ac_count=$as_val
4396 if test $ac_count -gt ${ac_path_SED_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_SED="$ac_path_SED"
4399 ac_path_SED_max=$ac_count
4400 fi
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4403 done
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405esac
7a938933 4406
061793a4
ILT
4407 $ac_path_SED_found && break 3
4408 done
4409 done
4410 done
4411IFS=$as_save_IFS
4412 if test -z "$ac_cv_path_SED"; then
4413 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4414 fi
7a938933 4415else
061793a4 4416 ac_cv_path_SED=$SED
7a938933
ILT
4417fi
4418
4419fi
061793a4
ILT
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4421$as_echo "$ac_cv_path_SED" >&6; }
4422 SED="$ac_cv_path_SED"
4423 rm -f conftest.sed
4424
4425test -z "$SED" && SED=sed
4426Xsed="$SED -e 1s/^X//"
4427
7a938933
ILT
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4439$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4440if test "${ac_cv_path_GREP+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442else
4443 if test -z "$GREP"; then
4444 ac_path_GREP_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in grep ggrep; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4454 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4455# Check for GNU ac_path_GREP and select it if it is found.
4456 # Check for GNU $ac_path_GREP
4457case `"$ac_path_GREP" --version 2>&1` in
4458*GNU*)
4459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4460*)
4461 ac_count=0
4462 $as_echo_n 0123456789 >"conftest.in"
4463 while :
4464 do
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo 'GREP' >> "conftest.nl"
4469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_GREP="$ac_path_GREP"
4475 ac_path_GREP_max=$ac_count
4476 fi
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481esac
4482
4483 $ac_path_GREP_found && break 3
4484 done
4485 done
4486 done
4487IFS=$as_save_IFS
4488 if test -z "$ac_cv_path_GREP"; then
4489 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4490 fi
4491else
4492 ac_cv_path_GREP=$GREP
4493fi
4494
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4497$as_echo "$ac_cv_path_GREP" >&6; }
4498 GREP="$ac_cv_path_GREP"
4499
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4502$as_echo_n "checking for egrep... " >&6; }
4503if test "${ac_cv_path_EGREP+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4505else
4506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4507 then ac_cv_path_EGREP="$GREP -E"
4508 else
4509 if test -z "$EGREP"; then
4510 ac_path_EGREP_found=false
4511 # Loop through the user's path and test for each of PROGNAME-LIST
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_prog in egrep; do
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4520 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4521# Check for GNU ac_path_EGREP and select it if it is found.
4522 # Check for GNU $ac_path_EGREP
4523case `"$ac_path_EGREP" --version 2>&1` in
4524*GNU*)
4525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4526*)
4527 ac_count=0
4528 $as_echo_n 0123456789 >"conftest.in"
4529 while :
4530 do
4531 cat "conftest.in" "conftest.in" >"conftest.tmp"
4532 mv "conftest.tmp" "conftest.in"
4533 cp "conftest.in" "conftest.nl"
4534 $as_echo 'EGREP' >> "conftest.nl"
4535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4537 as_fn_arith $ac_count + 1 && ac_count=$as_val
4538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4539 # Best one so far, save it but keep looking for a better one
4540 ac_cv_path_EGREP="$ac_path_EGREP"
4541 ac_path_EGREP_max=$ac_count
4542 fi
4543 # 10*(2^10) chars as input seems more than enough
4544 test $ac_count -gt 10 && break
4545 done
4546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547esac
4548
4549 $ac_path_EGREP_found && break 3
4550 done
4551 done
4552 done
4553IFS=$as_save_IFS
4554 if test -z "$ac_cv_path_EGREP"; then
4555 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556 fi
4557else
4558 ac_cv_path_EGREP=$EGREP
4559fi
4560
4561 fi
4562fi
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4564$as_echo "$ac_cv_path_EGREP" >&6; }
4565 EGREP="$ac_cv_path_EGREP"
4566
4567
061793a4
ILT
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4569$as_echo_n "checking for fgrep... " >&6; }
4570if test "${ac_cv_path_FGREP+set}" = set; then :
e02ed81e
ILT
4571 $as_echo_n "(cached) " >&6
4572else
061793a4
ILT
4573 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4574 then ac_cv_path_FGREP="$GREP -F"
4575 else
4576 if test -z "$FGREP"; then
4577 ac_path_FGREP_found=false
7a938933
ILT
4578 # Loop through the user's path and test for each of PROGNAME-LIST
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
061793a4 4580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7a938933
ILT
4581do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
061793a4 4584 for ac_prog in fgrep; do
7a938933 4585 for ac_exec_ext in '' $ac_executable_extensions; do
061793a4
ILT
4586 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4587 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4588# Check for GNU ac_path_FGREP and select it if it is found.
4589 # Check for GNU $ac_path_FGREP
4590case `"$ac_path_FGREP" --version 2>&1` in
7a938933 4591*GNU*)
061793a4 4592 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7a938933
ILT
4593*)
4594 ac_count=0
4595 $as_echo_n 0123456789 >"conftest.in"
4596 while :
4597 do
4598 cat "conftest.in" "conftest.in" >"conftest.tmp"
4599 mv "conftest.tmp" "conftest.in"
4600 cp "conftest.in" "conftest.nl"
061793a4
ILT
4601 $as_echo 'FGREP' >> "conftest.nl"
4602 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7a938933
ILT
4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604 as_fn_arith $ac_count + 1 && ac_count=$as_val
061793a4 4605 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7a938933 4606 # Best one so far, save it but keep looking for a better one
061793a4
ILT
4607 ac_cv_path_FGREP="$ac_path_FGREP"
4608 ac_path_FGREP_max=$ac_count
7a938933
ILT
4609 fi
4610 # 10*(2^10) chars as input seems more than enough
4611 test $ac_count -gt 10 && break
4612 done
4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614esac
4615
061793a4 4616 $ac_path_FGREP_found && break 3
7a938933
ILT
4617 done
4618 done
4619 done
4620IFS=$as_save_IFS
061793a4
ILT
4621 if test -z "$ac_cv_path_FGREP"; then
4622 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7a938933
ILT
4623 fi
4624else
061793a4 4625 ac_cv_path_FGREP=$FGREP
e02ed81e
ILT
4626fi
4627
061793a4 4628 fi
7a938933
ILT
4629fi
4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4631$as_echo "$ac_cv_path_FGREP" >&6; }
4632 FGREP="$ac_cv_path_FGREP"
4633
4634
4635test -z "$GREP" && GREP=grep
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4654ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4655ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4656
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4658$as_echo_n "checking how to print strings... " >&6; }
4659# Test print first, because it will be a builtin if present.
4660if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4661 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4662 ECHO='print -r --'
4663elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4664 ECHO='printf %s\n'
4665else
4666 # Use this function as a fallback that always works.
4667 func_fallback_echo ()
4668 {
4669 eval 'cat <<_LTECHO_EOF
4670$1
4671_LTECHO_EOF'
4672 }
4673 ECHO='func_fallback_echo'
4674fi
4675
4676# func_echo_all arg...
4677# Invoke $ECHO with all args, space-separated.
4678func_echo_all ()
4679{
4680 $ECHO ""
4681}
4682
4683case "$ECHO" in
4684 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4685$as_echo "printf" >&6; } ;;
4686 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4687$as_echo "print -r" >&6; } ;;
4688 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4689$as_echo "cat" >&6; } ;;
4690esac
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707# Check whether --with-gnu-ld was given.
4708if test "${with_gnu_ld+set}" = set; then :
4709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4710else
4711 with_gnu_ld=no
4712fi
4713
4714ac_prog=ld
4715if test "$GCC" = yes; then
4716 # Check if gcc -print-prog-name=ld gives a path.
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4718$as_echo_n "checking for ld used by $CC... " >&6; }
4719 case $host in
4720 *-*-mingw*)
4721 # gcc leaves a trailing carriage return which upsets mingw
4722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4723 *)
4724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4725 esac
4726 case $ac_prog in
4727 # Accept absolute paths.
4728 [\\/]* | ?:[\\/]*)
4729 re_direlt='/[^/][^/]*/\.\./'
4730 # Canonicalize the pathname of ld
4731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4734 done
4735 test -z "$LD" && LD="$ac_prog"
4736 ;;
4737 "")
4738 # If it fails, then pretend we aren't using GCC.
4739 ac_prog=ld
4740 ;;
4741 *)
4742 # If it is relative, then search for the first ld in PATH.
4743 with_gnu_ld=unknown
4744 ;;
4745 esac
4746elif test "$with_gnu_ld" = yes; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4748$as_echo_n "checking for GNU ld... " >&6; }
4749else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4751$as_echo_n "checking for non-GNU ld... " >&6; }
4752fi
4753if test "${lt_cv_path_LD+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755else
4756 if test -z "$LD"; then
4757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4758 for ac_dir in $PATH; do
4759 IFS="$lt_save_ifs"
4760 test -z "$ac_dir" && ac_dir=.
4761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4762 lt_cv_path_LD="$ac_dir/$ac_prog"
4763 # Check to see if the program is GNU ld. I'd rather use --version,
4764 # but apparently some variants of GNU ld only accept -v.
4765 # Break only if it was the GNU/non-GNU ld that we prefer.
4766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4767 *GNU* | *'with BFD'*)
4768 test "$with_gnu_ld" != no && break
4769 ;;
4770 *)
4771 test "$with_gnu_ld" != yes && break
4772 ;;
4773 esac
4774 fi
4775 done
4776 IFS="$lt_save_ifs"
4777else
4778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4779fi
4780fi
4781
4782LD="$lt_cv_path_LD"
4783if test -n "$LD"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4785$as_echo "$LD" >&6; }
4786else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788$as_echo "no" >&6; }
4789fi
4790test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4792$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4793if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4794 $as_echo_n "(cached) " >&6
4795else
4796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4797case `$LD -v 2>&1 </dev/null` in
4798*GNU* | *'with BFD'*)
4799 lt_cv_prog_gnu_ld=yes
4800 ;;
4801*)
4802 lt_cv_prog_gnu_ld=no
4803 ;;
4804esac
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4807$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4808with_gnu_ld=$lt_cv_prog_gnu_ld
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818if test -n "$ac_tool_prefix"; then
4819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4820set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822$as_echo_n "checking for $ac_word... " >&6; }
4823if test "${ac_cv_prog_RANLIB+set}" = set; then :
4824 $as_echo_n "(cached) " >&6
4825else
4826 if test -n "$RANLIB"; then
4827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4828else
4829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840done
4841 done
4842IFS=$as_save_IFS
4843
4844fi
4845fi
4846RANLIB=$ac_cv_prog_RANLIB
4847if test -n "$RANLIB"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4849$as_echo "$RANLIB" >&6; }
4850else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854
4855
4856fi
4857if test -z "$ac_cv_prog_RANLIB"; then
4858 ac_ct_RANLIB=$RANLIB
4859 # Extract the first word of "ranlib", so it can be a program name with args.
4860set dummy ranlib; ac_word=$2
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862$as_echo_n "checking for $ac_word... " >&6; }
4863if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4864 $as_echo_n "(cached) " >&6
4865else
4866 if test -n "$ac_ct_RANLIB"; then
4867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4868else
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_ac_ct_RANLIB="ranlib"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880done
4881 done
4882IFS=$as_save_IFS
4883
4884fi
4885fi
4886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4887if test -n "$ac_ct_RANLIB"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4889$as_echo "$ac_ct_RANLIB" >&6; }
4890else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892$as_echo "no" >&6; }
4893fi
4894
4895 if test "x$ac_ct_RANLIB" = x; then
4896 RANLIB=":"
4897 else
4898 case $cross_compiling:$ac_tool_warned in
4899yes:)
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4902ac_tool_warned=yes ;;
4903esac
4904 RANLIB=$ac_ct_RANLIB
4905 fi
4906else
4907 RANLIB="$ac_cv_prog_RANLIB"
4908fi
4909
4910if test -n "$ac_tool_prefix"; then
4911 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4912set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4914$as_echo_n "checking for $ac_word... " >&6; }
4915if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917else
4918 if test -n "$OBJCOPY"; then
4919 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4928 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932done
4933 done
4934IFS=$as_save_IFS
4935
4936fi
4937fi
4938OBJCOPY=$ac_cv_prog_OBJCOPY
4939if test -n "$OBJCOPY"; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4941$as_echo "$OBJCOPY" >&6; }
4942else
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944$as_echo "no" >&6; }
4945fi
4946
4947
4948fi
4949if test -z "$ac_cv_prog_OBJCOPY"; then
4950 ac_ct_OBJCOPY=$OBJCOPY
4951 # Extract the first word of "objcopy", so it can be a program name with args.
4952set dummy objcopy; ac_word=$2
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954$as_echo_n "checking for $ac_word... " >&6; }
4955if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957else
4958 if test -n "$ac_ct_OBJCOPY"; then
4959 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4960else
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972done
4973 done
4974IFS=$as_save_IFS
4975
4976fi
4977fi
4978ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4979if test -n "$ac_ct_OBJCOPY"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4981$as_echo "$ac_ct_OBJCOPY" >&6; }
4982else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984$as_echo "no" >&6; }
4985fi
4986
4987 if test "x$ac_ct_OBJCOPY" = x; then
4988 OBJCOPY="missing-objcopy"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991yes:)
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994ac_tool_warned=yes ;;
4995esac
4996 OBJCOPY=$ac_ct_OBJCOPY
4997 fi
4998else
4999 OBJCOPY="$ac_cv_prog_OBJCOPY"
5000fi
5001
5002
5003enable_dlopen=yes
5004
5005
5006
5007case `pwd` in
5008 *\ * | *\ *)
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5010$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5011esac
5012
5013
5014
5015macro_version='2.2.7a'
5016macro_revision='1.3134'
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030ltmain="$ac_aux_dir/ltmain.sh"
5031
5032# Backslashify metacharacters that are still active within
5033# double-quoted strings.
5034sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5035
5036# Same as above, but do not quote variable references.
5037double_quote_subst='s/\(["`\\]\)/\\\1/g'
5038
5039# Sed substitution to delay expansion of an escaped shell variable in a
5040# double_quote_subst'ed string.
5041delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5042
5043# Sed substitution to delay expansion of an escaped single quote.
5044delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5045
5046# Sed substitution to avoid accidental globbing in evaled expressions
5047no_glob_subst='s/\*/\\\*/g'
5048
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5050$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5051if test "${lt_cv_path_NM+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5053else
5054 if test -n "$NM"; then
5055 # Let the user override the test.
5056 lt_cv_path_NM="$NM"
5057else
5058 lt_nm_to_check="${ac_tool_prefix}nm"
5059 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5060 lt_nm_to_check="$lt_nm_to_check nm"
5061 fi
5062 for lt_tmp_nm in $lt_nm_to_check; do
5063 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5064 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5065 IFS="$lt_save_ifs"
5066 test -z "$ac_dir" && ac_dir=.
5067 tmp_nm="$ac_dir/$lt_tmp_nm"
5068 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5069 # Check to see if the nm accepts a BSD-compat flag.
5070 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5071 # nm: unknown option "B" ignored
5072 # Tru64's nm complains that /dev/null is an invalid object file
5073 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5074 */dev/null* | *'Invalid file or object type'*)
5075 lt_cv_path_NM="$tmp_nm -B"
5076 break
5077 ;;
5078 *)
5079 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5080 */dev/null*)
5081 lt_cv_path_NM="$tmp_nm -p"
5082 break
5083 ;;
5084 *)
5085 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5086 continue # so that we can try to find one that supports BSD flags
5087 ;;
5088 esac
5089 ;;
5090 esac
5091 fi
5092 done
5093 IFS="$lt_save_ifs"
5094 done
5095 : ${lt_cv_path_NM=no}
5096fi
5097fi
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5099$as_echo "$lt_cv_path_NM" >&6; }
5100if test "$lt_cv_path_NM" != "no"; then
5101 NM="$lt_cv_path_NM"
5102else
5103 # Didn't find any BSD compatible name lister, look for dumpbin.
5104 if test -n "$DUMPBIN"; then :
5105 # Let the user override the test.
5106 else
5107 if test -n "$ac_tool_prefix"; then
5108 for ac_prog in dumpbin "link -dump"
5109 do
5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
5114if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116else
5117 if test -n "$DUMPBIN"; then
5118 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131done
5132 done
5133IFS=$as_save_IFS
5134
5135fi
5136fi
5137DUMPBIN=$ac_cv_prog_DUMPBIN
5138if test -n "$DUMPBIN"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5140$as_echo "$DUMPBIN" >&6; }
5141else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
5144fi
5145
5146
5147 test -n "$DUMPBIN" && break
5148 done
5149fi
5150if test -z "$DUMPBIN"; then
5151 ac_ct_DUMPBIN=$DUMPBIN
5152 for ac_prog in dumpbin "link -dump"
5153do
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155set dummy $ac_prog; ac_word=$2
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
5158if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160else
5161 if test -n "$ac_ct_DUMPBIN"; then
5162 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5163else
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175done
5176 done
5177IFS=$as_save_IFS
5178
5179fi
5180fi
5181ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5182if test -n "$ac_ct_DUMPBIN"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5184$as_echo "$ac_ct_DUMPBIN" >&6; }
5185else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187$as_echo "no" >&6; }
5188fi
5189
5190
5191 test -n "$ac_ct_DUMPBIN" && break
5192done
5193
5194 if test "x$ac_ct_DUMPBIN" = x; then
5195 DUMPBIN=":"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198yes:)
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201ac_tool_warned=yes ;;
5202esac
5203 DUMPBIN=$ac_ct_DUMPBIN
5204 fi
5205fi
5206
5207 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5208 *COFF*)
5209 DUMPBIN="$DUMPBIN -symbols"
5210 ;;
5211 *)
5212 DUMPBIN=:
5213 ;;
5214 esac
5215 fi
5216
5217 if test "$DUMPBIN" != ":"; then
5218 NM="$DUMPBIN"
5219 fi
5220fi
5221test -z "$NM" && NM=nm
5222
5223
5224
5225
5226
5227
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5229$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5230if test "${lt_cv_nm_interface+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232else
5233 lt_cv_nm_interface="BSD nm"
5234 echo "int some_variable = 0;" > conftest.$ac_ext
5235 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5236 (eval "$ac_compile" 2>conftest.err)
5237 cat conftest.err >&5
5238 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5239 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5240 cat conftest.err >&5
5241 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5242 cat conftest.out >&5
5243 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5244 lt_cv_nm_interface="MS dumpbin"
5245 fi
5246 rm -f conftest*
5247fi
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5249$as_echo "$lt_cv_nm_interface" >&6; }
5250
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5252$as_echo_n "checking whether ln -s works... " >&6; }
5253LN_S=$as_ln_s
5254if test "$LN_S" = "ln -s"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5256$as_echo "yes" >&6; }
5257else
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5259$as_echo "no, using $LN_S" >&6; }
5260fi
5261
5262# find the maximum length of command line arguments
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5264$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5265if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5267else
5268 i=0
5269 teststring="ABCD"
5270
5271 case $build_os in
5272 msdosdjgpp*)
5273 # On DJGPP, this test can blow up pretty badly due to problems in libc
5274 # (any single argument exceeding 2000 bytes causes a buffer overrun
5275 # during glob expansion). Even if it were fixed, the result of this
5276 # check would be larger than it should be.
5277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5278 ;;
5279
5280 gnu*)
5281 # Under GNU Hurd, this test is not required because there is
5282 # no limit to the length of command line arguments.
5283 # Libtool will interpret -1 as no limit whatsoever
5284 lt_cv_sys_max_cmd_len=-1;
5285 ;;
5286
5287 cygwin* | mingw* | cegcc*)
5288 # On Win9x/ME, this test blows up -- it succeeds, but takes
5289 # about 5 minutes as the teststring grows exponentially.
5290 # Worse, since 9x/ME are not pre-emptively multitasking,
5291 # you end up with a "frozen" computer, even though with patience
5292 # the test eventually succeeds (with a max line length of 256k).
5293 # Instead, let's just punt: use the minimum linelength reported by
5294 # all of the supported platforms: 8192 (on NT/2K/XP).
5295 lt_cv_sys_max_cmd_len=8192;
5296 ;;
5297
5298 mint*)
5299 # On MiNT this can take a long time and run out of memory.
5300 lt_cv_sys_max_cmd_len=8192;
5301 ;;
5302
5303 amigaos*)
5304 # On AmigaOS with pdksh, this test takes hours, literally.
5305 # So we just punt and use a minimum line length of 8192.
5306 lt_cv_sys_max_cmd_len=8192;
5307 ;;
5308
5309 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5310 # This has been around since 386BSD, at least. Likely further.
5311 if test -x /sbin/sysctl; then
5312 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5313 elif test -x /usr/sbin/sysctl; then
5314 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5315 else
5316 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5317 fi
5318 # And add a safety zone
5319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5321 ;;
5322
5323 interix*)
5324 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5325 lt_cv_sys_max_cmd_len=196608
5326 ;;
5327
5328 osf*)
5329 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5330 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5331 # nice to cause kernel panics so lets avoid the loop below.
5332 # First set a reasonable default.
5333 lt_cv_sys_max_cmd_len=16384
5334 #
5335 if test -x /sbin/sysconfig; then
5336 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5337 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5338 esac
5339 fi
5340 ;;
5341 sco3.2v5*)
5342 lt_cv_sys_max_cmd_len=102400
5343 ;;
5344 sysv5* | sco5v6* | sysv4.2uw2*)
5345 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5346 if test -n "$kargmax"; then
5347 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5348 else
5349 lt_cv_sys_max_cmd_len=32768
5350 fi
5351 ;;
5352 *)
5353 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5354 if test -n "$lt_cv_sys_max_cmd_len"; then
5355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5357 else
5358 # Make teststring a little bigger before we do anything with it.
5359 # a 1K string should be a reasonable start.
5360 for i in 1 2 3 4 5 6 7 8 ; do
5361 teststring=$teststring$teststring
5362 done
5363 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5364 # If test is not a shell built-in, we'll probably end up computing a
5365 # maximum length that is only half of the actual maximum length, but
5366 # we can't tell.
5367 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5368 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5369 test $i != 17 # 1/2 MB should be enough
5370 do
5371 i=`expr $i + 1`
5372 teststring=$teststring$teststring
5373 done
5374 # Only check the string length outside the loop.
5375 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5376 teststring=
5377 # Add a significant safety factor because C++ compilers can tack on
5378 # massive amounts of additional arguments before passing them to the
5379 # linker. It appears as though 1/2 is a usable value.
5380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5381 fi
5382 ;;
5383 esac
5384
5385fi
5386
5387if test -n $lt_cv_sys_max_cmd_len ; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5389$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5390else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5392$as_echo "none" >&6; }
5393fi
5394max_cmd_len=$lt_cv_sys_max_cmd_len
5395
5396
5397
5398
5399
5400
5401: ${CP="cp -f"}
5402: ${MV="mv -f"}
5403: ${RM="rm -f"}
5404
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5406$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5407# Try some XSI features
5408xsi_shell=no
5409( _lt_dummy="a/b/c"
5410 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5411 = c,a/b,, \
5412 && eval 'test $(( 1 + 1 )) -eq 2 \
5413 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5414 && xsi_shell=yes
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5416$as_echo "$xsi_shell" >&6; }
5417
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5420$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5421lt_shell_append=no
5422( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5423 >/dev/null 2>&1 \
5424 && lt_shell_append=yes
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5426$as_echo "$lt_shell_append" >&6; }
5427
5428
5429if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5430 lt_unset=unset
5431else
5432 lt_unset=false
5433fi
5434
5435
5436
5437
5438
5439# test EBCDIC or ASCII
5440case `echo X|tr X '\101'` in
5441 A) # ASCII based system
5442 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5443 lt_SP2NL='tr \040 \012'
5444 lt_NL2SP='tr \015\012 \040\040'
5445 ;;
5446 *) # EBCDIC based system
5447 lt_SP2NL='tr \100 \n'
5448 lt_NL2SP='tr \r\n \100\100'
5449 ;;
5450esac
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5461$as_echo_n "checking for $LD option to reload object files... " >&6; }
5462if test "${lt_cv_ld_reload_flag+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5464else
5465 lt_cv_ld_reload_flag='-r'
5466fi
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5468$as_echo "$lt_cv_ld_reload_flag" >&6; }
5469reload_flag=$lt_cv_ld_reload_flag
5470case $reload_flag in
5471"" | " "*) ;;
5472*) reload_flag=" $reload_flag" ;;
5473esac
5474reload_cmds='$LD$reload_flag -o $output$reload_objs'
5475case $host_os in
5476 darwin*)
5477 if test "$GCC" = yes; then
5478 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5479 else
5480 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5481 fi
5482 ;;
5483esac
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5495set dummy ${ac_tool_prefix}objdump; ac_word=$2
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497$as_echo_n "checking for $ac_word... " >&6; }
5498if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5500else
5501 if test -n "$OBJDUMP"; then
5502 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5503else
5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515done
5516 done
5517IFS=$as_save_IFS
5518
5519fi
5520fi
5521OBJDUMP=$ac_cv_prog_OBJDUMP
5522if test -n "$OBJDUMP"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5524$as_echo "$OBJDUMP" >&6; }
5525else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527$as_echo "no" >&6; }
5528fi
5529
5530
5531fi
5532if test -z "$ac_cv_prog_OBJDUMP"; then
5533 ac_ct_OBJDUMP=$OBJDUMP
5534 # Extract the first word of "objdump", so it can be a program name with args.
5535set dummy objdump; ac_word=$2
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537$as_echo_n "checking for $ac_word... " >&6; }
5538if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540else
5541 if test -n "$ac_ct_OBJDUMP"; then
5542 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555done
5556 done
5557IFS=$as_save_IFS
5558
5559fi
5560fi
5561ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5562if test -n "$ac_ct_OBJDUMP"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5564$as_echo "$ac_ct_OBJDUMP" >&6; }
5565else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567$as_echo "no" >&6; }
5568fi
5569
5570 if test "x$ac_ct_OBJDUMP" = x; then
5571 OBJDUMP="false"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574yes:)
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577ac_tool_warned=yes ;;
5578esac
5579 OBJDUMP=$ac_ct_OBJDUMP
5580 fi
5581else
5582 OBJDUMP="$ac_cv_prog_OBJDUMP"
5583fi
5584
5585test -z "$OBJDUMP" && OBJDUMP=objdump
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5596$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5597if test "${lt_cv_deplibs_check_method+set}" = set; then :
5598 $as_echo_n "(cached) " >&6
5599else
5600 lt_cv_file_magic_cmd='$MAGIC_CMD'
5601lt_cv_file_magic_test_file=
5602lt_cv_deplibs_check_method='unknown'
5603# Need to set the preceding variable on all platforms that support
5604# interlibrary dependencies.
5605# 'none' -- dependencies not supported.
5606# `unknown' -- same as none, but documents that we really don't know.
5607# 'pass_all' -- all dependencies passed with no checks.
5608# 'test_compile' -- check by making test program.
5609# 'file_magic [[regex]]' -- check by looking for files in library path
5610# which responds to the $file_magic_cmd with a given extended regex.
5611# If you have `file' or equivalent on your system and you're not sure
5612# whether `pass_all' will *always* work, you probably want this one.
5613
5614case $host_os in
5615aix[4-9]*)
5616 lt_cv_deplibs_check_method=pass_all
5617 ;;
5618
5619beos*)
5620 lt_cv_deplibs_check_method=pass_all
5621 ;;
5622
5623bsdi[45]*)
5624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5625 lt_cv_file_magic_cmd='/usr/bin/file -L'
5626 lt_cv_file_magic_test_file=/shlib/libc.so
5627 ;;
5628
5629cygwin*)
5630 # func_win32_libid is a shell function defined in ltmain.sh
5631 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5632 lt_cv_file_magic_cmd='func_win32_libid'
5633 ;;
5634
5635mingw* | pw32*)
5636 # Base MSYS/MinGW do not provide the 'file' command needed by
5637 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5638 # unless we find 'file', for example because we are cross-compiling.
5639 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5640 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5641 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5642 lt_cv_file_magic_cmd='func_win32_libid'
5643 else
5644 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5645 lt_cv_file_magic_cmd='$OBJDUMP -f'
5646 fi
5647 ;;
5648
5649cegcc*)
5650 # use the weaker test based on 'objdump'. See mingw*.
5651 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5652 lt_cv_file_magic_cmd='$OBJDUMP -f'
5653 ;;
5654
5655darwin* | rhapsody*)
5656 lt_cv_deplibs_check_method=pass_all
5657 ;;
5658
5659freebsd* | dragonfly*)
5660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5661 case $host_cpu in
5662 i*86 )
5663 # Not sure whether the presence of OpenBSD here was a mistake.
5664 # Let's accept both of them until this is cleared up.
5665 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5666 lt_cv_file_magic_cmd=/usr/bin/file
5667 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5668 ;;
5669 esac
5670 else
5671 lt_cv_deplibs_check_method=pass_all
5672 fi
5673 ;;
5674
5675gnu*)
5676 lt_cv_deplibs_check_method=pass_all
5677 ;;
5678
5679haiku*)
5680 lt_cv_deplibs_check_method=pass_all
5681 ;;
5682
5683hpux10.20* | hpux11*)
5684 lt_cv_file_magic_cmd=/usr/bin/file
5685 case $host_cpu in
5686 ia64*)
5687 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5688 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5689 ;;
5690 hppa*64*)
5691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5692 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5693 ;;
5694 *)
5695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5696 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5697 ;;
5698 esac
5699 ;;
5700
5701interix[3-9]*)
5702 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5704 ;;
5705
5706irix5* | irix6* | nonstopux*)
5707 case $LD in
5708 *-32|*"-32 ") libmagic=32-bit;;
5709 *-n32|*"-n32 ") libmagic=N32;;
5710 *-64|*"-64 ") libmagic=64-bit;;
5711 *) libmagic=never-match;;
5712 esac
5713 lt_cv_deplibs_check_method=pass_all
5714 ;;
5715
5716# This must be Linux ELF.
5717linux* | k*bsd*-gnu | kopensolaris*-gnu)
5718 lt_cv_deplibs_check_method=pass_all
5719 ;;
5720
5721netbsd*)
5722 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5724 else
5725 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5726 fi
5727 ;;
5728
5729newos6*)
5730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5731 lt_cv_file_magic_cmd=/usr/bin/file
5732 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5733 ;;
5734
5735*nto* | *qnx*)
5736 lt_cv_deplibs_check_method=pass_all
5737 ;;
5738
5739openbsd*)
5740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5742 else
5743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5744 fi
5745 ;;
5746
5747osf3* | osf4* | osf5*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751rdos*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755solaris*)
5756 lt_cv_deplibs_check_method=pass_all
5757 ;;
5758
5759sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5760 lt_cv_deplibs_check_method=pass_all
5761 ;;
5762
5763sysv4 | sysv4.3*)
5764 case $host_vendor in
5765 motorola)
5766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5767 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5768 ;;
5769 ncr)
5770 lt_cv_deplibs_check_method=pass_all
5771 ;;
5772 sequent)
5773 lt_cv_file_magic_cmd='/bin/file'
5774 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5775 ;;
5776 sni)
5777 lt_cv_file_magic_cmd='/bin/file'
5778 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5779 lt_cv_file_magic_test_file=/lib/libc.so
5780 ;;
5781 siemens)
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784 pc)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787 esac
5788 ;;
5789
5790tpf*)
5791 lt_cv_deplibs_check_method=pass_all
5792 ;;
5793esac
5794
5795fi
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5797$as_echo "$lt_cv_deplibs_check_method" >&6; }
5798file_magic_cmd=$lt_cv_file_magic_cmd
5799deplibs_check_method=$lt_cv_deplibs_check_method
5800test -z "$deplibs_check_method" && deplibs_check_method=unknown
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5815set dummy ${ac_tool_prefix}ar; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
5818if test "${ac_cv_prog_AR+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5820else
5821 if test -n "$AR"; then
5822 ac_cv_prog_AR="$AR" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5831 ac_cv_prog_AR="${ac_tool_prefix}ar"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835done
5836 done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841AR=$ac_cv_prog_AR
5842if test -n "$AR"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5844$as_echo "$AR" >&6; }
5845else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850
5851fi
5852if test -z "$ac_cv_prog_AR"; then
5853 ac_ct_AR=$AR
5854 # Extract the first word of "ar", so it can be a program name with args.
5855set dummy ar; ac_word=$2
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857$as_echo_n "checking for $ac_word... " >&6; }
5858if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860else
5861 if test -n "$ac_ct_AR"; then
5862 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_ac_ct_AR="ar"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875done
5876 done
5877IFS=$as_save_IFS
5878
5879fi
5880fi
5881ac_ct_AR=$ac_cv_prog_ac_ct_AR
5882if test -n "$ac_ct_AR"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5884$as_echo "$ac_ct_AR" >&6; }
5885else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
5888fi
5889
5890 if test "x$ac_ct_AR" = x; then
5891 AR="false"
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894yes:)
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897ac_tool_warned=yes ;;
5898esac
5899 AR=$ac_ct_AR
5900 fi
5901else
5902 AR="$ac_cv_prog_AR"
5903fi
5904
5905test -z "$AR" && AR=ar
5906test -z "$AR_FLAGS" && AR_FLAGS=cru
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5920set dummy ${ac_tool_prefix}strip; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
5923if test "${ac_cv_prog_STRIP+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$STRIP"; then
5927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941 done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946STRIP=$ac_cv_prog_STRIP
5947if test -n "$STRIP"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5949$as_echo "$STRIP" >&6; }
5950else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955
5956fi
5957if test -z "$ac_cv_prog_STRIP"; then
5958 ac_ct_STRIP=$STRIP
5959 # Extract the first word of "strip", so it can be a program name with args.
5960set dummy strip; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965else
5966 if test -n "$ac_ct_STRIP"; then
5967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972 IFS=$as_save_IFS
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_ac_ct_STRIP="strip"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 break 2
5979 fi
5980done
5981 done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5987if test -n "$ac_ct_STRIP"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5989$as_echo "$ac_ct_STRIP" >&6; }
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995 if test "x$ac_ct_STRIP" = x; then
5996 STRIP=":"
5997 else
5998 case $cross_compiling:$ac_tool_warned in
5999yes:)
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002ac_tool_warned=yes ;;
6003esac
6004 STRIP=$ac_ct_STRIP
6005 fi
6006else
6007 STRIP="$ac_cv_prog_STRIP"
6008fi
6009
6010test -z "$STRIP" && STRIP=:
6011
6012
6013
6014
6015
6016
6017if test -n "$ac_tool_prefix"; then
6018 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6019set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021$as_echo_n "checking for $ac_word... " >&6; }
6022if test "${ac_cv_prog_RANLIB+set}" = set; then :
6023 $as_echo_n "(cached) " >&6
6024else
6025 if test -n "$RANLIB"; then
6026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6027else
6028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029for as_dir in $PATH
6030do
6031 IFS=$as_save_IFS
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6035 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 break 2
6038 fi
6039done
6040 done
6041IFS=$as_save_IFS
6042
6043fi
6044fi
6045RANLIB=$ac_cv_prog_RANLIB
6046if test -n "$RANLIB"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6048$as_echo "$RANLIB" >&6; }
6049else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051$as_echo "no" >&6; }
6052fi
6053
6054
6055fi
6056if test -z "$ac_cv_prog_RANLIB"; then
6057 ac_ct_RANLIB=$RANLIB
6058 # Extract the first word of "ranlib", so it can be a program name with args.
6059set dummy ranlib; ac_word=$2
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061$as_echo_n "checking for $ac_word... " >&6; }
6062if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064else
6065 if test -n "$ac_ct_RANLIB"; then
6066 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6067else
6068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069for as_dir in $PATH
6070do
6071 IFS=$as_save_IFS
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_prog_ac_ct_RANLIB="ranlib"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 break 2
6078 fi
6079done
6080 done
6081IFS=$as_save_IFS
6082
6083fi
6084fi
6085ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6086if test -n "$ac_ct_RANLIB"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6088$as_echo "$ac_ct_RANLIB" >&6; }
6089else
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091$as_echo "no" >&6; }
6092fi
6093
6094 if test "x$ac_ct_RANLIB" = x; then
6095 RANLIB=":"
6096 else
6097 case $cross_compiling:$ac_tool_warned in
6098yes:)
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101ac_tool_warned=yes ;;
6102esac
6103 RANLIB=$ac_ct_RANLIB
6104 fi
6105else
6106 RANLIB="$ac_cv_prog_RANLIB"
6107fi
6108
6109test -z "$RANLIB" && RANLIB=:
6110
6111
6112
6113
6114
6115
6116# Determine commands to create old-style static archives.
6117old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6118old_postinstall_cmds='chmod 644 $oldlib'
6119old_postuninstall_cmds=
6120
6121if test -n "$RANLIB"; then
6122 case $host_os in
6123 openbsd*)
6124 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6125 ;;
6126 *)
6127 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6128 ;;
6129 esac
6130 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6131fi
6132
6133case $host_os in
6134 darwin*)
6135 lock_old_archive_extraction=yes ;;
6136 *)
6137 lock_old_archive_extraction=no ;;
6138esac
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
6178# If no C compiler was specified, use CC.
6179LTCC=${LTCC-"$CC"}
6180
6181# If no C compiler flags were specified, use CFLAGS.
6182LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6183
6184# Allow CC to be a program name with arguments.
6185compiler=$CC
6186
6187
6188# Check for command to grab the raw symbol name followed by C symbol from nm.
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6190$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6191if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6192 $as_echo_n "(cached) " >&6
6193else
6194
6195# These are sane defaults that work on at least a few old systems.
6196# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6197
6198# Character class describing NM global symbol codes.
6199symcode='[BCDEGRST]'
6200
6201# Regexp to match symbols that can be accessed directly from C.
6202sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6203
6204# Define system-specific variables.
6205case $host_os in
6206aix*)
6207 symcode='[BCDT]'
6208 ;;
6209cygwin* | mingw* | pw32* | cegcc*)
6210 symcode='[ABCDGISTW]'
6211 ;;
6212hpux*)
6213 if test "$host_cpu" = ia64; then
6214 symcode='[ABCDEGRST]'
6215 fi
6216 ;;
6217irix* | nonstopux*)
6218 symcode='[BCDEGRST]'
6219 ;;
6220osf*)
6221 symcode='[BCDEGQRST]'
6222 ;;
6223solaris*)
6224 symcode='[BDRT]'
6225 ;;
6226sco3.2v5*)
6227 symcode='[DT]'
6228 ;;
6229sysv4.2uw2*)
6230 symcode='[DT]'
6231 ;;
6232sysv5* | sco5v6* | unixware* | OpenUNIX*)
6233 symcode='[ABDT]'
6234 ;;
6235sysv4)
6236 symcode='[DFNSTU]'
6237 ;;
6238esac
6239
6240# If we're using GNU nm, then use its standard symbol codes.
6241case `$NM -V 2>&1` in
6242*GNU* | *'with BFD'*)
6243 symcode='[ABCDGIRSTW]' ;;
6244esac
6245
6246# Transform an extracted symbol line into a proper C declaration.
6247# Some systems (esp. on ia64) link data and code symbols differently,
6248# so use this general approach.
6249lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6250
6251# Transform an extracted symbol line into symbol name and symbol address
6252lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6253lt_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'"
6254
6255# Handle CRLF in mingw tool chain
6256opt_cr=
6257case $build_os in
6258mingw*)
6259 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6260 ;;
6261esac
6262
6263# Try without a prefix underscore, then with it.
6264for ac_symprfx in "" "_"; do
6265
6266 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6267 symxfrm="\\1 $ac_symprfx\\2 \\2"
6268
6269 # Write the raw and C identifiers.
6270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6271 # Fake it for dumpbin and say T for any non-static function
6272 # and D for any global variable.
6273 # Also find C++ and __fastcall symbols from MSVC++,
6274 # which start with @ or ?.
6275 lt_cv_sys_global_symbol_pipe="$AWK '"\
6276" {last_section=section; section=\$ 3};"\
6277" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6278" \$ 0!~/External *\|/{next};"\
6279" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6280" {if(hide[section]) next};"\
6281" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6282" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6283" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6284" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6285" ' prfx=^$ac_symprfx"
6286 else
6287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6288 fi
6289
6290 # Check to see that the pipe works correctly.
6291 pipe_works=no
6292
6293 rm -f conftest*
6294 cat > conftest.$ac_ext <<_LT_EOF
6295#ifdef __cplusplus
6296extern "C" {
6297#endif
6298char nm_test_var;
6299void nm_test_func(void);
6300void nm_test_func(void){}
6301#ifdef __cplusplus
6302}
6303#endif
6304int main(){nm_test_var='a';nm_test_func();return(0);}
6305_LT_EOF
6306
6307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308 (eval $ac_compile) 2>&5
6309 ac_status=$?
6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311 test $ac_status = 0; }; then
6312 # Now try to grab the symbols.
6313 nlist=conftest.nm
6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6315 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6316 ac_status=$?
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; } && test -s "$nlist"; then
6319 # Try sorting and uniquifying the output.
6320 if sort "$nlist" | uniq > "$nlist"T; then
6321 mv -f "$nlist"T "$nlist"
6322 else
6323 rm -f "$nlist"T
6324 fi
6325
6326 # Make sure that we snagged all the symbols we need.
6327 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6328 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6329 cat <<_LT_EOF > conftest.$ac_ext
6330#ifdef __cplusplus
6331extern "C" {
6332#endif
6333
6334_LT_EOF
6335 # Now generate the symbol file.
6336 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6337
6338 cat <<_LT_EOF >> conftest.$ac_ext
6339
6340/* The mapping between symbol names and symbols. */
6341const struct {
6342 const char *name;
6343 void *address;
6344}
6345lt__PROGRAM__LTX_preloaded_symbols[] =
6346{
6347 { "@PROGRAM@", (void *) 0 },
6348_LT_EOF
6349 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6350 cat <<\_LT_EOF >> conftest.$ac_ext
6351 {0, (void *) 0}
6352};
6353
6354/* This works around a problem in FreeBSD linker */
6355#ifdef FREEBSD_WORKAROUND
6356static const void *lt_preloaded_setup() {
6357 return lt__PROGRAM__LTX_preloaded_symbols;
6358}
6359#endif
6360
6361#ifdef __cplusplus
6362}
6363#endif
6364_LT_EOF
6365 # Now try linking the two files.
6366 mv conftest.$ac_objext conftstm.$ac_objext
6367 lt_save_LIBS="$LIBS"
6368 lt_save_CFLAGS="$CFLAGS"
6369 LIBS="conftstm.$ac_objext"
6370 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6372 (eval $ac_link) 2>&5
6373 ac_status=$?
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6376 pipe_works=yes
6377 fi
6378 LIBS="$lt_save_LIBS"
6379 CFLAGS="$lt_save_CFLAGS"
6380 else
6381 echo "cannot find nm_test_func in $nlist" >&5
6382 fi
6383 else
6384 echo "cannot find nm_test_var in $nlist" >&5
6385 fi
6386 else
6387 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6388 fi
6389 else
6390 echo "$progname: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6392 fi
6393 rm -rf conftest* conftst*
6394
6395 # Do not use the global_symbol_pipe unless it works.
6396 if test "$pipe_works" = yes; then
6397 break
6398 else
6399 lt_cv_sys_global_symbol_pipe=
6400 fi
6401done
6402
6403fi
6404
6405if test -z "$lt_cv_sys_global_symbol_pipe"; then
6406 lt_cv_sys_global_symbol_to_cdecl=
6407fi
6408if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6410$as_echo "failed" >&6; }
6411else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6413$as_echo "ok" >&6; }
6414fi
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
061793a4 6435
7a938933
ILT
6436
6437
6438# Check whether --enable-libtool-lock was given.
6439if test "${enable_libtool_lock+set}" = set; then :
6440 enableval=$enable_libtool_lock;
6441fi
6442
6443test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6444
6445# Some flags need to be propagated to the compiler or linker for good
6446# libtool support.
6447case $host in
6448ia64-*-hpux*)
6449 # Find out which ABI we are using.
6450 echo 'int i;' > conftest.$ac_ext
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6452 (eval $ac_compile) 2>&5
6453 ac_status=$?
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *ELF-32*)
6458 HPUX_IA64_MODE="32"
6459 ;;
6460 *ELF-64*)
6461 HPUX_IA64_MODE="64"
6462 ;;
6463 esac
6464 fi
6465 rm -rf conftest*
6466 ;;
6467*-*-irix6*)
6468 # Find out which ABI we are using.
6469 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 (eval $ac_compile) 2>&5
6472 ac_status=$?
6473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474 test $ac_status = 0; }; then
6475 if test "$lt_cv_prog_gnu_ld" = yes; then
6476 case `/usr/bin/file conftest.$ac_objext` in
6477 *32-bit*)
6478 LD="${LD-ld} -melf32bsmip"
6479 ;;
6480 *N32*)
6481 LD="${LD-ld} -melf32bmipn32"
6482 ;;
6483 *64-bit*)
6484 LD="${LD-ld} -melf64bmip"
6485 ;;
6486 esac
6487 else
6488 case `/usr/bin/file conftest.$ac_objext` in
6489 *32-bit*)
6490 LD="${LD-ld} -32"
6491 ;;
6492 *N32*)
6493 LD="${LD-ld} -n32"
6494 ;;
6495 *64-bit*)
6496 LD="${LD-ld} -64"
6497 ;;
6498 esac
6499 fi
6500 fi
6501 rm -rf conftest*
6502 ;;
6503
6504x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6505s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6506 # Find out which ABI we are using.
6507 echo 'int i;' > conftest.$ac_ext
6508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509 (eval $ac_compile) 2>&5
6510 ac_status=$?
6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512 test $ac_status = 0; }; then
6513 case `/usr/bin/file conftest.o` in
6514 *32-bit*)
6515 case $host in
6516 x86_64-*kfreebsd*-gnu)
6517 LD="${LD-ld} -m elf_i386_fbsd"
6518 ;;
6519 x86_64-*linux*)
6520 LD="${LD-ld} -m elf_i386"
6521 ;;
6522 ppc64-*linux*|powerpc64-*linux*)
6523 LD="${LD-ld} -m elf32ppclinux"
6524 ;;
6525 s390x-*linux*)
6526 LD="${LD-ld} -m elf_s390"
6527 ;;
6528 sparc64-*linux*)
6529 LD="${LD-ld} -m elf32_sparc"
6530 ;;
6531 esac
6532 ;;
6533 *64-bit*)
6534 case $host in
6535 x86_64-*kfreebsd*-gnu)
6536 LD="${LD-ld} -m elf_x86_64_fbsd"
6537 ;;
6538 x86_64-*linux*)
6539 LD="${LD-ld} -m elf_x86_64"
6540 ;;
6541 ppc*-*linux*|powerpc*-*linux*)
6542 LD="${LD-ld} -m elf64ppc"
6543 ;;
6544 s390*-*linux*|s390*-*tpf*)
6545 LD="${LD-ld} -m elf64_s390"
6546 ;;
6547 sparc*-*linux*)
6548 LD="${LD-ld} -m elf64_sparc"
6549 ;;
6550 esac
6551 ;;
6552 esac
6553 fi
6554 rm -rf conftest*
6555 ;;
6556
6557*-*-sco3.2v5*)
6558 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6559 SAVE_CFLAGS="$CFLAGS"
6560 CFLAGS="$CFLAGS -belf"
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6562$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6563if test "${lt_cv_cc_needs_belf+set}" = set; then :
6564 $as_echo_n "(cached) " >&6
6565else
6566 ac_ext=c
6567ac_cpp='$CPP $CPPFLAGS'
6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h. */
6574
6575int
6576main ()
6577{
6578
6579 ;
6580 return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_link "$LINENO"; then :
6584 lt_cv_cc_needs_belf=yes
6585else
6586 lt_cv_cc_needs_belf=no
6587fi
6588rm -f core conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6590 ac_ext=c
6591ac_cpp='$CPP $CPPFLAGS'
6592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6598$as_echo "$lt_cv_cc_needs_belf" >&6; }
6599 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6600 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6601 CFLAGS="$SAVE_CFLAGS"
6602 fi
6603 ;;
932e3237 6604*-*solaris*)
7a938933
ILT
6605 # Find out which ABI we are using.
6606 echo 'int i;' > conftest.$ac_ext
6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6608 (eval $ac_compile) 2>&5
6609 ac_status=$?
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; }; then
6612 case `/usr/bin/file conftest.o` in
6613 *64-bit*)
6614 case $lt_cv_prog_gnu_ld in
932e3237
ILT
6615 yes*)
6616 case $host in
fbdd5d87 6617 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
932e3237
ILT
6618 LD="${LD-ld} -m elf_x86_64"
6619 ;;
6620 sparc*-*-solaris*)
6621 LD="${LD-ld} -m elf64_sparc"
6622 ;;
6623 esac
6624 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6625 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6626 LD="${LD-ld}_sol2"
6627 fi
6628 ;;
7a938933
ILT
6629 *)
6630 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6631 LD="${LD-ld} -64"
6632 fi
6633 ;;
6634 esac
6635 ;;
6636 esac
6637 fi
6638 rm -rf conftest*
6639 ;;
6640esac
6641
6642need_locks="$enable_libtool_lock"
6643
6644
6645 case $host_os in
6646 rhapsody* | darwin*)
6647 if test -n "$ac_tool_prefix"; then
6648 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6649set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651$as_echo_n "checking for $ac_word... " >&6; }
6652if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6653 $as_echo_n "(cached) " >&6
6654else
6655 if test -n "$DSYMUTIL"; then
6656 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6657else
6658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659for as_dir in $PATH
6660do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
6663 for ac_exec_ext in '' $ac_executable_extensions; do
6664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6665 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 break 2
6668 fi
6669done
6670 done
6671IFS=$as_save_IFS
6672
6673fi
6674fi
6675DSYMUTIL=$ac_cv_prog_DSYMUTIL
6676if test -n "$DSYMUTIL"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6678$as_echo "$DSYMUTIL" >&6; }
6679else
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681$as_echo "no" >&6; }
6682fi
6683
6684
6685fi
6686if test -z "$ac_cv_prog_DSYMUTIL"; then
6687 ac_ct_DSYMUTIL=$DSYMUTIL
6688 # Extract the first word of "dsymutil", so it can be a program name with args.
6689set dummy dsymutil; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
6692if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694else
6695 if test -n "$ac_ct_DSYMUTIL"; then
6696 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6697else
6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710 done
6711IFS=$as_save_IFS
6712
6713fi
6714fi
6715ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6716if test -n "$ac_ct_DSYMUTIL"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6718$as_echo "$ac_ct_DSYMUTIL" >&6; }
6719else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721$as_echo "no" >&6; }
6722fi
6723
6724 if test "x$ac_ct_DSYMUTIL" = x; then
6725 DSYMUTIL=":"
6726 else
6727 case $cross_compiling:$ac_tool_warned in
6728yes:)
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731ac_tool_warned=yes ;;
6732esac
6733 DSYMUTIL=$ac_ct_DSYMUTIL
6734 fi
6735else
6736 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6737fi
6738
6739 if test -n "$ac_tool_prefix"; then
6740 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6741set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743$as_echo_n "checking for $ac_word... " >&6; }
6744if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6746else
6747 if test -n "$NMEDIT"; then
6748 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761done
6762 done
6763IFS=$as_save_IFS
6764
6765fi
6766fi
6767NMEDIT=$ac_cv_prog_NMEDIT
6768if test -n "$NMEDIT"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6770$as_echo "$NMEDIT" >&6; }
6771else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773$as_echo "no" >&6; }
6774fi
6775
6776
6777fi
6778if test -z "$ac_cv_prog_NMEDIT"; then
6779 ac_ct_NMEDIT=$NMEDIT
6780 # Extract the first word of "nmedit", so it can be a program name with args.
6781set dummy nmedit; ac_word=$2
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783$as_echo_n "checking for $ac_word... " >&6; }
6784if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6785 $as_echo_n "(cached) " >&6
6786else
6787 if test -n "$ac_ct_NMEDIT"; then
6788 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6789else
6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6797 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801done
6802 done
6803IFS=$as_save_IFS
6804
6805fi
6806fi
6807ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6808if test -n "$ac_ct_NMEDIT"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6810$as_echo "$ac_ct_NMEDIT" >&6; }
6811else
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813$as_echo "no" >&6; }
6814fi
6815
6816 if test "x$ac_ct_NMEDIT" = x; then
6817 NMEDIT=":"
6818 else
6819 case $cross_compiling:$ac_tool_warned in
6820yes:)
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823ac_tool_warned=yes ;;
6824esac
6825 NMEDIT=$ac_ct_NMEDIT
6826 fi
6827else
6828 NMEDIT="$ac_cv_prog_NMEDIT"
6829fi
6830
6831 if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6833set dummy ${ac_tool_prefix}lipo; ac_word=$2
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835$as_echo_n "checking for $ac_word... " >&6; }
6836if test "${ac_cv_prog_LIPO+set}" = set; then :
6837 $as_echo_n "(cached) " >&6
6838else
6839 if test -n "$LIPO"; then
6840 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853done
6854 done
6855IFS=$as_save_IFS
6856
6857fi
6858fi
6859LIPO=$ac_cv_prog_LIPO
6860if test -n "$LIPO"; then
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6862$as_echo "$LIPO" >&6; }
6863else
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865$as_echo "no" >&6; }
6866fi
6867
6868
6869fi
6870if test -z "$ac_cv_prog_LIPO"; then
6871 ac_ct_LIPO=$LIPO
6872 # Extract the first word of "lipo", so it can be a program name with args.
6873set dummy lipo; ac_word=$2
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
6876if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6877 $as_echo_n "(cached) " >&6
6878else
6879 if test -n "$ac_ct_LIPO"; then
6880 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6889 ac_cv_prog_ac_ct_LIPO="lipo"
6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893done
6894 done
6895IFS=$as_save_IFS
6896
6897fi
6898fi
6899ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6900if test -n "$ac_ct_LIPO"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6902$as_echo "$ac_ct_LIPO" >&6; }
6903else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
6906fi
6907
6908 if test "x$ac_ct_LIPO" = x; then
6909 LIPO=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912yes:)
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917 LIPO=$ac_ct_LIPO
6918 fi
6919else
6920 LIPO="$ac_cv_prog_LIPO"
6921fi
6922
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6925set dummy ${ac_tool_prefix}otool; ac_word=$2
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927$as_echo_n "checking for $ac_word... " >&6; }
6928if test "${ac_cv_prog_OTOOL+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930else
6931 if test -n "$OTOOL"; then
6932 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6933else
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945done
6946 done
6947IFS=$as_save_IFS
6948
6949fi
6950fi
6951OTOOL=$ac_cv_prog_OTOOL
6952if test -n "$OTOOL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6954$as_echo "$OTOOL" >&6; }
6955else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957$as_echo "no" >&6; }
6958fi
6959
6960
6961fi
6962if test -z "$ac_cv_prog_OTOOL"; then
6963 ac_ct_OTOOL=$OTOOL
6964 # Extract the first word of "otool", so it can be a program name with args.
6965set dummy otool; ac_word=$2
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967$as_echo_n "checking for $ac_word... " >&6; }
6968if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970else
6971 if test -n "$ac_ct_OTOOL"; then
6972 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6973else
6974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_OTOOL="otool"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985done
6986 done
6987IFS=$as_save_IFS
6988
6989fi
6990fi
6991ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6992if test -n "$ac_ct_OTOOL"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6994$as_echo "$ac_ct_OTOOL" >&6; }
6995else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997$as_echo "no" >&6; }
6998fi
6999
7000 if test "x$ac_ct_OTOOL" = x; then
7001 OTOOL=":"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004yes:)
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007ac_tool_warned=yes ;;
7008esac
7009 OTOOL=$ac_ct_OTOOL
7010 fi
7011else
7012 OTOOL="$ac_cv_prog_OTOOL"
7013fi
7014
7015 if test -n "$ac_tool_prefix"; then
7016 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7017set dummy ${ac_tool_prefix}otool64; ac_word=$2
7018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019$as_echo_n "checking for $ac_word... " >&6; }
7020if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022else
7023 if test -n "$OTOOL64"; then
7024 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7025else
7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
7031 for ac_exec_ext in '' $ac_executable_extensions; do
7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7035 break 2
7036 fi
7037done
7038 done
7039IFS=$as_save_IFS
7040
7041fi
7042fi
7043OTOOL64=$ac_cv_prog_OTOOL64
7044if test -n "$OTOOL64"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7046$as_echo "$OTOOL64" >&6; }
7047else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049$as_echo "no" >&6; }
7050fi
7051
7052
7053fi
7054if test -z "$ac_cv_prog_OTOOL64"; then
7055 ac_ct_OTOOL64=$OTOOL64
7056 # Extract the first word of "otool64", so it can be a program name with args.
7057set dummy otool64; ac_word=$2
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059$as_echo_n "checking for $ac_word... " >&6; }
7060if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062else
7063 if test -n "$ac_ct_OTOOL64"; then
7064 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7065else
7066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067for as_dir in $PATH
7068do
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_ac_ct_OTOOL64="otool64"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7075 break 2
7076 fi
7077done
7078 done
7079IFS=$as_save_IFS
7080
7081fi
7082fi
7083ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7084if test -n "$ac_ct_OTOOL64"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7086$as_echo "$ac_ct_OTOOL64" >&6; }
7087else
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089$as_echo "no" >&6; }
7090fi
7091
7092 if test "x$ac_ct_OTOOL64" = x; then
7093 OTOOL64=":"
7094 else
7095 case $cross_compiling:$ac_tool_warned in
7096yes:)
7097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7099ac_tool_warned=yes ;;
7100esac
7101 OTOOL64=$ac_ct_OTOOL64
7102 fi
7103else
e02ed81e 7104 OTOOL64="$ac_cv_prog_OTOOL64"
7a938933
ILT
7105fi
7106
7a938933
ILT
7107
7108
7a938933 7109
7a938933 7110
7a938933 7111
7a938933 7112
7a938933 7113
7a938933 7114
7a938933 7115
7a938933 7116
7a938933 7117
7a938933 7118
7a938933 7119
e02ed81e
ILT
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7134$as_echo_n "checking for -single_module linker flag... " >&6; }
7135if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7a938933 7137else
e02ed81e
ILT
7138 lt_cv_apple_cc_single_mod=no
7139 if test -z "${LT_MULTI_MODULE}"; then
7140 # By default we will add the -single_module flag. You can override
7141 # by either setting the environment variable LT_MULTI_MODULE
7142 # non-empty at configure time, or by adding -multi_module to the
7143 # link flags.
7144 rm -rf libconftest.dylib*
7145 echo "int foo(void){return 1;}" > conftest.c
7146 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7147-dynamiclib -Wl,-single_module conftest.c" >&5
7148 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7149 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7150 _lt_result=$?
7151 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7152 lt_cv_apple_cc_single_mod=yes
7153 else
7154 cat conftest.err >&5
7155 fi
7156 rm -rf libconftest.dylib*
7157 rm -f conftest.*
7158 fi
7159fi
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7161$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7163$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7164if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7165 $as_echo_n "(cached) " >&6
7166else
7167 lt_cv_ld_exported_symbols_list=no
7168 save_LDFLAGS=$LDFLAGS
7169 echo "_main" > conftest.sym
7170 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a938933 7172/* end confdefs.h. */
7a938933 7173
7a938933
ILT
7174int
7175main ()
7176{
e02ed81e
ILT
7177
7178 ;
7a938933
ILT
7179 return 0;
7180}
7181_ACEOF
e02ed81e
ILT
7182if ac_fn_c_try_link "$LINENO"; then :
7183 lt_cv_ld_exported_symbols_list=yes
7a938933 7184else
e02ed81e 7185 lt_cv_ld_exported_symbols_list=no
7a938933 7186fi
e02ed81e
ILT
7187rm -f core conftest.err conftest.$ac_objext \
7188 conftest$ac_exeext conftest.$ac_ext
7189 LDFLAGS="$save_LDFLAGS"
7a938933
ILT
7190
7191fi
e02ed81e
ILT
7192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7193$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7195$as_echo_n "checking for -force_load linker flag... " >&6; }
7196if test "${lt_cv_ld_force_load+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198else
7199 lt_cv_ld_force_load=no
7200 cat > conftest.c << _LT_EOF
7201int forced_loaded() { return 2;}
7202_LT_EOF
7203 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7204 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7205 echo "$AR cru libconftest.a conftest.o" >&5
7206 $AR cru libconftest.a conftest.o 2>&5
7207 cat > conftest.c << _LT_EOF
7208int main() { return 0;}
7209_LT_EOF
7210 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7211 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7212 _lt_result=$?
7213 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7214 lt_cv_ld_force_load=yes
7215 else
7216 cat conftest.err >&5
7217 fi
7218 rm -f conftest.err libconftest.a conftest conftest.c
7219 rm -rf conftest.dSYM
7a938933
ILT
7220
7221fi
e02ed81e
ILT
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7223$as_echo "$lt_cv_ld_force_load" >&6; }
7224 case $host_os in
7225 rhapsody* | darwin1.[012])
7226 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7227 darwin1.*)
7228 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7229 darwin*) # darwin 5.x on
7230 # if running on 10.5 or later, the deployment target defaults
7231 # to the OS version, if on x86, and 10.4, the deployment
7232 # target defaults to 10.4. Don't you love it?
7233 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7234 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7235 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7236 10.[012]*)
7237 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7238 10.*)
7239 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7240 esac
7241 ;;
7242 esac
7243 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7244 _lt_dar_single_mod='$single_module'
7245 fi
7246 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7247 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7248 else
7249 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7250 fi
7251 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7252 _lt_dsymutil='~$DSYMUTIL $lib || :'
7253 else
7254 _lt_dsymutil=
7255 fi
7256 ;;
7257 esac
7a938933 7258
061793a4
ILT
7259ac_ext=c
7260ac_cpp='$CPP $CPPFLAGS'
7261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7265$as_echo_n "checking how to run the C preprocessor... " >&6; }
7266# On Suns, sometimes $CPP names a directory.
7267if test -n "$CPP" && test -d "$CPP"; then
7268 CPP=
7269fi
7270if test -z "$CPP"; then
7271 if test "${ac_cv_prog_CPP+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7273else
7274 # Double quotes because CPP needs to be expanded
7275 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7276 do
7277 ac_preproc_ok=false
7278for ac_c_preproc_warn_flag in '' yes
7279do
7280 # Use a header file that comes with gcc, so configuring glibc
7281 # with a fresh cross-compiler works.
7282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7283 # <limits.h> exists even on freestanding compilers.
7284 # On the NeXT, cc -E runs the code through the compiler's parser,
7285 # not just through cpp. "Syntax error" is here to catch this case.
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h. */
7288#ifdef __STDC__
7289# include <limits.h>
7290#else
7291# include <assert.h>
7292#endif
7293 Syntax error
7294_ACEOF
7295if ac_fn_c_try_cpp "$LINENO"; then :
7296
7297else
7298 # Broken: fails on valid input.
7299continue
7300fi
7301rm -f conftest.err conftest.$ac_ext
7302
7303 # OK, works on sane cases. Now check whether nonexistent headers
7304 # can be detected and how.
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h. */
7307#include <ac_nonexistent.h>
7308_ACEOF
7309if ac_fn_c_try_cpp "$LINENO"; then :
7310 # Broken: success on invalid input.
7311continue
7312else
7313 # Passes both tests.
7314ac_preproc_ok=:
7315break
7316fi
7317rm -f conftest.err conftest.$ac_ext
7318
7319done
7320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7321rm -f conftest.err conftest.$ac_ext
7322if $ac_preproc_ok; then :
7323 break
7324fi
7325
7326 done
7327 ac_cv_prog_CPP=$CPP
7328
7329fi
7330 CPP=$ac_cv_prog_CPP
7331else
7332 ac_cv_prog_CPP=$CPP
7333fi
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7335$as_echo "$CPP" >&6; }
7336ac_preproc_ok=false
7337for ac_c_preproc_warn_flag in '' yes
7338do
7339 # Use a header file that comes with gcc, so configuring glibc
7340 # with a fresh cross-compiler works.
7341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7342 # <limits.h> exists even on freestanding compilers.
7343 # On the NeXT, cc -E runs the code through the compiler's parser,
7344 # not just through cpp. "Syntax error" is here to catch this case.
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346/* end confdefs.h. */
7347#ifdef __STDC__
7348# include <limits.h>
7349#else
7350# include <assert.h>
7351#endif
7352 Syntax error
7353_ACEOF
7354if ac_fn_c_try_cpp "$LINENO"; then :
7355
7356else
7357 # Broken: fails on valid input.
7358continue
7359fi
7360rm -f conftest.err conftest.$ac_ext
7361
7362 # OK, works on sane cases. Now check whether nonexistent headers
7363 # can be detected and how.
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h. */
7366#include <ac_nonexistent.h>
7367_ACEOF
7368if ac_fn_c_try_cpp "$LINENO"; then :
7369 # Broken: success on invalid input.
7370continue
7371else
7372 # Passes both tests.
7373ac_preproc_ok=:
7374break
7375fi
7376rm -f conftest.err conftest.$ac_ext
7377
7378done
7379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7380rm -f conftest.err conftest.$ac_ext
7381if $ac_preproc_ok; then :
7382
7383else
7384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7386as_fn_error "C preprocessor \"$CPP\" fails sanity check
7387See \`config.log' for more details." "$LINENO" 5; }
7388fi
7389
7390ac_ext=c
7391ac_cpp='$CPP $CPPFLAGS'
7392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395
7396
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7398$as_echo_n "checking for ANSI C header files... " >&6; }
7399if test "${ac_cv_header_stdc+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401else
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h. */
7404#include <stdlib.h>
7405#include <stdarg.h>
7406#include <string.h>
7407#include <float.h>
7408
7409int
7410main ()
7411{
7412
7413 ;
7414 return 0;
7415}
7416_ACEOF
7417if ac_fn_c_try_compile "$LINENO"; then :
7418 ac_cv_header_stdc=yes
7419else
7420 ac_cv_header_stdc=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423
7424if test $ac_cv_header_stdc = yes; then
7425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427/* end confdefs.h. */
7428#include <string.h>
7429
7430_ACEOF
7431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7432 $EGREP "memchr" >/dev/null 2>&1; then :
7433
7434else
7435 ac_cv_header_stdc=no
7436fi
7437rm -f conftest*
7438
7439fi
7440
7441if test $ac_cv_header_stdc = yes; then
7442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h. */
7445#include <stdlib.h>
7446
7447_ACEOF
7448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449 $EGREP "free" >/dev/null 2>&1; then :
7450
7451else
7452 ac_cv_header_stdc=no
7453fi
7454rm -f conftest*
7455
7456fi
7457
7458if test $ac_cv_header_stdc = yes; then
7459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7460 if test "$cross_compiling" = yes; then :
7461 :
7462else
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464/* end confdefs.h. */
7465#include <ctype.h>
7466#include <stdlib.h>
7467#if ((' ' & 0x0FF) == 0x020)
7468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7470#else
7471# define ISLOWER(c) \
7472 (('a' <= (c) && (c) <= 'i') \
7473 || ('j' <= (c) && (c) <= 'r') \
7474 || ('s' <= (c) && (c) <= 'z'))
7475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7476#endif
7477
7478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7479int
7480main ()
7481{
7482 int i;
7483 for (i = 0; i < 256; i++)
7484 if (XOR (islower (i), ISLOWER (i))
7485 || toupper (i) != TOUPPER (i))
7486 return 2;
7487 return 0;
7488}
7489_ACEOF
7490if ac_fn_c_try_run "$LINENO"; then :
7491
7492else
7493 ac_cv_header_stdc=no
7494fi
7495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7496 conftest.$ac_objext conftest.beam conftest.$ac_ext
7497fi
7498
7499fi
7500fi
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7502$as_echo "$ac_cv_header_stdc" >&6; }
7503if test $ac_cv_header_stdc = yes; then
7504
7505$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7506
7507fi
7508
7509# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7511 inttypes.h stdint.h unistd.h
7512do :
7513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7515"
7516eval as_val=\$$as_ac_Header
7517 if test "x$as_val" = x""yes; then :
7518 cat >>confdefs.h <<_ACEOF
7519#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7520_ACEOF
7521
7522fi
7523
7524done
7525
7526
7a938933
ILT
7527for ac_header in dlfcn.h
7528do :
7529 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7530"
7531if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7532 cat >>confdefs.h <<_ACEOF
7533#define HAVE_DLFCN_H 1
7534_ACEOF
7535
7536fi
7537
7538done
7539
7540if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7542set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544$as_echo_n "checking for $ac_word... " >&6; }
7545if test "${ac_cv_prog_GOC+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7547else
7548 if test -n "$GOC"; then
7549 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554 IFS=$as_save_IFS
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562done
7563 done
7564IFS=$as_save_IFS
7565
7566fi
7567fi
7568GOC=$ac_cv_prog_GOC
7569if test -n "$GOC"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7571$as_echo "$GOC" >&6; }
7572else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574$as_echo "no" >&6; }
7575fi
7576
7577
7578fi
7579if test -z "$ac_cv_prog_GOC"; then
7580 ac_ct_GOC=$GOC
7581 # Extract the first word of "gccgo", so it can be a program name with args.
7582set dummy gccgo; ac_word=$2
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584$as_echo_n "checking for $ac_word... " >&6; }
7585if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587else
7588 if test -n "$ac_ct_GOC"; then
7589 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7590else
7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
7594 IFS=$as_save_IFS
7595 test -z "$as_dir" && as_dir=.
7596 for ac_exec_ext in '' $ac_executable_extensions; do
7597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598 ac_cv_prog_ac_ct_GOC="gccgo"
7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 break 2
7601 fi
7602done
7603 done
7604IFS=$as_save_IFS
7605
7606fi
7607fi
7608ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7609if test -n "$ac_ct_GOC"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7611$as_echo "$ac_ct_GOC" >&6; }
7612else
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614$as_echo "no" >&6; }
7615fi
7616
7617 if test "x$ac_ct_GOC" = x; then
7618 GOC=""
7619 else
7620 case $cross_compiling:$ac_tool_warned in
7621yes:)
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624ac_tool_warned=yes ;;
7625esac
7626 GOC=$ac_ct_GOC
7627 fi
7628else
7629 GOC="$ac_cv_prog_GOC"
7630fi
7631
7632
7633
7634
7635
7636
7637# Set options
7638
7639
7640
7641
7642 enable_win32_dll=no
7643
7644
7645 # Check whether --enable-shared was given.
7646if test "${enable_shared+set}" = set; then :
7647 enableval=$enable_shared; p=${PACKAGE-default}
7648 case $enableval in
7649 yes) enable_shared=yes ;;
7650 no) enable_shared=no ;;
7651 *)
7652 enable_shared=no
7653 # Look at the argument we got. We use all the common list separators.
7654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655 for pkg in $enableval; do
7656 IFS="$lt_save_ifs"
7657 if test "X$pkg" = "X$p"; then
7658 enable_shared=yes
7659 fi
7660 done
7661 IFS="$lt_save_ifs"
7662 ;;
7663 esac
7664else
7665 enable_shared=yes
7666fi
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676 # Check whether --enable-static was given.
7677if test "${enable_static+set}" = set; then :
7678 enableval=$enable_static; p=${PACKAGE-default}
7679 case $enableval in
7680 yes) enable_static=yes ;;
7681 no) enable_static=no ;;
7682 *)
7683 enable_static=no
7684 # Look at the argument we got. We use all the common list separators.
7685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686 for pkg in $enableval; do
7687 IFS="$lt_save_ifs"
7688 if test "X$pkg" = "X$p"; then
7689 enable_static=yes
7690 fi
7691 done
7692 IFS="$lt_save_ifs"
7693 ;;
7694 esac
7695else
7696 enable_static=yes
7697fi
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708# Check whether --with-pic was given.
7709if test "${with_pic+set}" = set; then :
7710 withval=$with_pic; pic_mode="$withval"
7711else
7712 pic_mode=default
7713fi
7714
7715
7716test -z "$pic_mode" && pic_mode=default
7717
7718
7719
7720
7721
7722
7723
7724 # Check whether --enable-fast-install was given.
7725if test "${enable_fast_install+set}" = set; then :
7726 enableval=$enable_fast_install; p=${PACKAGE-default}
7727 case $enableval in
7728 yes) enable_fast_install=yes ;;
7729 no) enable_fast_install=no ;;
7730 *)
7731 enable_fast_install=no
7732 # Look at the argument we got. We use all the common list separators.
7733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734 for pkg in $enableval; do
7735 IFS="$lt_save_ifs"
7736 if test "X$pkg" = "X$p"; then
7737 enable_fast_install=yes
7738 fi
7739 done
7740 IFS="$lt_save_ifs"
7741 ;;
7742 esac
7743else
7744 enable_fast_install=yes
7745fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757# This can be used to rebuild libtool when needed
7758LIBTOOL_DEPS="$ltmain"
7759
7760# Always use our own libtool.
7761LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7788test -z "$LN_S" && LN_S="ln -s"
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803if test -n "${ZSH_VERSION+set}" ; then
7804 setopt NO_GLOB_SUBST
7805fi
7806
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7808$as_echo_n "checking for objdir... " >&6; }
7809if test "${lt_cv_objdir+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811else
7812 rm -f .libs 2>/dev/null
7813mkdir .libs 2>/dev/null
7814if test -d .libs; then
7815 lt_cv_objdir=.libs
7816else
7817 # MS-DOS does not allow filenames that begin with a dot.
7818 lt_cv_objdir=_libs
7819fi
7820rmdir .libs 2>/dev/null
7821fi
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7823$as_echo "$lt_cv_objdir" >&6; }
7824objdir=$lt_cv_objdir
7825
7826
7827
7828
7829
7830cat >>confdefs.h <<_ACEOF
7831#define LT_OBJDIR "$lt_cv_objdir/"
7832_ACEOF
7833
7834
7835
7836
7837case $host_os in
7838aix3*)
7839 # AIX sometimes has problems with the GCC collect2 program. For some
7840 # reason, if we set the COLLECT_NAMES environment variable, the problems
7841 # vanish in a puff of smoke.
7842 if test "X${COLLECT_NAMES+set}" != Xset; then
7843 COLLECT_NAMES=
7844 export COLLECT_NAMES
7845 fi
7846 ;;
7847esac
7848
7849# Global variables:
7850ofile=libtool
7851can_build_shared=yes
7852
7853# All known linkers require a `.a' archive for static linking (except MSVC,
7854# which needs '.lib').
7855libext=a
7856
7857with_gnu_ld="$lt_cv_prog_gnu_ld"
7858
7859old_CC="$CC"
7860old_CFLAGS="$CFLAGS"
7861
7862# Set sane defaults for various variables
7863test -z "$CC" && CC=cc
7864test -z "$LTCC" && LTCC=$CC
7865test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7866test -z "$LD" && LD=ld
7867test -z "$ac_objext" && ac_objext=o
7868
7869for cc_temp in $compiler""; do
7870 case $cc_temp in
7871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7873 \-*) ;;
7874 *) break;;
7875 esac
7876done
7877cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7878
7879
7880# Only perform the check for file, if the check method requires it
7881test -z "$MAGIC_CMD" && MAGIC_CMD=file
7882case $deplibs_check_method in
7883file_magic*)
7884 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7886$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7887if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889else
7890 case $MAGIC_CMD in
7891[\\/*] | ?:[\\/]*)
7892 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7893 ;;
7894*)
7895 lt_save_MAGIC_CMD="$MAGIC_CMD"
7896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7897 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7898 for ac_dir in $ac_dummy; do
7899 IFS="$lt_save_ifs"
7900 test -z "$ac_dir" && ac_dir=.
7901 if test -f $ac_dir/${ac_tool_prefix}file; then
7902 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7903 if test -n "$file_magic_test_file"; then
7904 case $deplibs_check_method in
7905 "file_magic "*)
7906 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7909 $EGREP "$file_magic_regex" > /dev/null; then
7910 :
7911 else
7912 cat <<_LT_EOF 1>&2
7913
7914*** Warning: the command libtool uses to detect shared libraries,
7915*** $file_magic_cmd, produces output that libtool cannot recognize.
7916*** The result is that libtool may fail to recognize shared libraries
7917*** as such. This will affect the creation of libtool libraries that
7918*** depend on shared libraries, but programs linked with such libtool
7919*** libraries will work regardless of this problem. Nevertheless, you
7920*** may want to report the problem to your system manager and/or to
7921*** bug-libtool@gnu.org
7922
7923_LT_EOF
7924 fi ;;
7925 esac
7926 fi
7927 break
7928 fi
7929 done
7930 IFS="$lt_save_ifs"
7931 MAGIC_CMD="$lt_save_MAGIC_CMD"
7932 ;;
7933esac
7934fi
7935
7936MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7937if test -n "$MAGIC_CMD"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7939$as_echo "$MAGIC_CMD" >&6; }
7940else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942$as_echo "no" >&6; }
7943fi
7944
7945
7946
7947
7948
7949if test -z "$lt_cv_path_MAGIC_CMD"; then
7950 if test -n "$ac_tool_prefix"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7952$as_echo_n "checking for file... " >&6; }
7953if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955else
7956 case $MAGIC_CMD in
7957[\\/*] | ?:[\\/]*)
7958 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7959 ;;
7960*)
7961 lt_save_MAGIC_CMD="$MAGIC_CMD"
7962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7963 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7964 for ac_dir in $ac_dummy; do
7965 IFS="$lt_save_ifs"
7966 test -z "$ac_dir" && ac_dir=.
7967 if test -f $ac_dir/file; then
7968 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7969 if test -n "$file_magic_test_file"; then
7970 case $deplibs_check_method in
7971 "file_magic "*)
7972 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7974 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7975 $EGREP "$file_magic_regex" > /dev/null; then
7976 :
7977 else
7978 cat <<_LT_EOF 1>&2
7979
7980*** Warning: the command libtool uses to detect shared libraries,
7981*** $file_magic_cmd, produces output that libtool cannot recognize.
7982*** The result is that libtool may fail to recognize shared libraries
7983*** as such. This will affect the creation of libtool libraries that
7984*** depend on shared libraries, but programs linked with such libtool
7985*** libraries will work regardless of this problem. Nevertheless, you
7986*** may want to report the problem to your system manager and/or to
7987*** bug-libtool@gnu.org
7988
7989_LT_EOF
7990 fi ;;
7991 esac
7992 fi
7993 break
7994 fi
7995 done
7996 IFS="$lt_save_ifs"
7997 MAGIC_CMD="$lt_save_MAGIC_CMD"
7998 ;;
7999esac
8000fi
8001
8002MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8003if test -n "$MAGIC_CMD"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8005$as_echo "$MAGIC_CMD" >&6; }
8006else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
8009fi
8010
8011
8012 else
8013 MAGIC_CMD=:
8014 fi
8015fi
8016
8017 fi
8018 ;;
8019esac
8020
8021# Use C for the default configuration in the libtool script
8022
8023lt_save_CC="$CC"
8024ac_ext=c
8025ac_cpp='$CPP $CPPFLAGS'
8026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028ac_compiler_gnu=$ac_cv_c_compiler_gnu
8029
8030
8031# Source file extension for C test sources.
8032ac_ext=c
8033
8034# Object file extension for compiled C test sources.
8035objext=o
8036objext=$objext
8037
8038# Code to be used in simple compile tests
8039lt_simple_compile_test_code="int some_variable = 0;"
8040
8041# Code to be used in simple link tests
8042lt_simple_link_test_code='int main(){return(0);}'
8043
8044
8045
8046
8047
8048
8049
8050# If no C compiler was specified, use CC.
8051LTCC=${LTCC-"$CC"}
8052
8053# If no C compiler flags were specified, use CFLAGS.
8054LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8055
8056# Allow CC to be a program name with arguments.
8057compiler=$CC
8058
8059# Save the default compiler, since it gets overwritten when the other
8060# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8061compiler_DEFAULT=$CC
8062
8063# save warnings/boilerplate of simple test code
8064ac_outfile=conftest.$ac_objext
8065echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8066eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8067_lt_compiler_boilerplate=`cat conftest.err`
8068$RM conftest*
8069
8070ac_outfile=conftest.$ac_objext
8071echo "$lt_simple_link_test_code" >conftest.$ac_ext
8072eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073_lt_linker_boilerplate=`cat conftest.err`
8074$RM -r conftest*
8075
8076
8077## CAVEAT EMPTOR:
8078## There is no encapsulation within the following macros, do not change
8079## the running order or otherwise move them around unless you know exactly
8080## what you are doing...
8081if test -n "$compiler"; then
8082
8083lt_prog_compiler_no_builtin_flag=
8084
8085if test "$GCC" = yes; then
8086 case $cc_basename in
8087 nvcc*)
8088 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8089 *)
8090 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8091 esac
8092
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8094$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8095if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8097else
8098 lt_cv_prog_compiler_rtti_exceptions=no
8099 ac_outfile=conftest.$ac_objext
8100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101 lt_compiler_flag="-fno-rtti -fno-exceptions"
8102 # Insert the option either (1) after the last *FLAGS variable, or
8103 # (2) before a word containing "conftest.", or (3) at the end.
8104 # Note that $ac_compile itself does not contain backslashes and begins
8105 # with a dollar sign (not a hyphen), so the echo should work correctly.
8106 # The option is referenced via a variable to avoid confusing sed.
8107 lt_compile=`echo "$ac_compile" | $SED \
8108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110 -e 's:$: $lt_compiler_flag:'`
8111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8112 (eval "$lt_compile" 2>conftest.err)
8113 ac_status=$?
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 if (exit $ac_status) && test -s "$ac_outfile"; then
8117 # The compiler can only warn and ignore the option if not recognized
8118 # So say no if there are warnings other than the usual output.
8119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8122 lt_cv_prog_compiler_rtti_exceptions=yes
8123 fi
8124 fi
8125 $RM conftest*
8126
8127fi
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8129$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8130
8131if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8133else
8134 :
8135fi
8136
8137fi
8138
8139
8140
8141
8142
8143
8144 lt_prog_compiler_wl=
8145lt_prog_compiler_pic=
8146lt_prog_compiler_static=
8147
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8149$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8150
8151 if test "$GCC" = yes; then
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_static='-static'
8154
8155 case $host_os in
8156 aix*)
8157 # All AIX code is PIC.
8158 if test "$host_cpu" = ia64; then
8159 # AIX 5 now supports IA64 processor
8160 lt_prog_compiler_static='-Bstatic'
8161 fi
8162 ;;
8163
8164 amigaos*)
8165 case $host_cpu in
8166 powerpc)
8167 # see comment about AmigaOS4 .so support
8168 lt_prog_compiler_pic='-fPIC'
8169 ;;
8170 m68k)
8171 # FIXME: we need at least 68020 code to build shared libraries, but
8172 # adding the `-m68020' flag to GCC prevents building anything better,
8173 # like `-m68040'.
8174 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8175 ;;
8176 esac
8177 ;;
8178
8179 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8180 # PIC is the default for these OSes.
8181 ;;
8182
8183 mingw* | cygwin* | pw32* | os2* | cegcc*)
8184 # This hack is so that the source file can tell whether it is being
8185 # built for inclusion in a dll (and should export symbols for example).
8186 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8187 # (--disable-auto-import) libraries
8188 lt_prog_compiler_pic='-DDLL_EXPORT'
8189 ;;
8190
8191 darwin* | rhapsody*)
8192 # PIC is the default on this platform
8193 # Common symbols not allowed in MH_DYLIB files
8194 lt_prog_compiler_pic='-fno-common'
8195 ;;
8196
8197 haiku*)
8198 # PIC is the default for Haiku.
8199 # The "-static" flag exists, but is broken.
8200 lt_prog_compiler_static=
8201 ;;
8202
8203 hpux*)
8204 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8205 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8206 # sets the default TLS model and affects inlining.
8207 case $host_cpu in
8208 hppa*64*)
8209 # +Z the default
8210 ;;
8211 *)
8212 lt_prog_compiler_pic='-fPIC'
8213 ;;
8214 esac
8215 ;;
8216
8217 interix[3-9]*)
8218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8219 # Instead, we relocate shared libraries at runtime.
8220 ;;
8221
8222 msdosdjgpp*)
8223 # Just because we use GCC doesn't mean we suddenly get shared libraries
8224 # on systems that don't support them.
8225 lt_prog_compiler_can_build_shared=no
8226 enable_shared=no
8227 ;;
8228
8229 *nto* | *qnx*)
8230 # QNX uses GNU C++, but need to define -shared option too, otherwise
8231 # it will coredump.
8232 lt_prog_compiler_pic='-fPIC -shared'
8233 ;;
8234
8235 sysv4*MP*)
8236 if test -d /usr/nec; then
8237 lt_prog_compiler_pic=-Kconform_pic
8238 fi
8239 ;;
8240
8241 *)
8242 lt_prog_compiler_pic='-fPIC'
8243 ;;
8244 esac
8245
8246 case $cc_basename in
8247 nvcc*) # Cuda Compiler Driver 2.2
8248 lt_prog_compiler_wl='-Xlinker '
8249 lt_prog_compiler_pic='-Xcompiler -fPIC'
8250 ;;
8251 esac
8252 else
8253 # PORTME Check for flag to pass linker flags through the system compiler.
8254 case $host_os in
8255 aix*)
8256 lt_prog_compiler_wl='-Wl,'
8257 if test "$host_cpu" = ia64; then
8258 # AIX 5 now supports IA64 processor
8259 lt_prog_compiler_static='-Bstatic'
8260 else
8261 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8262 fi
8263 ;;
8264
8265 mingw* | cygwin* | pw32* | os2* | cegcc*)
8266 # This hack is so that the source file can tell whether it is being
8267 # built for inclusion in a dll (and should export symbols for example).
8268 lt_prog_compiler_pic='-DDLL_EXPORT'
8269 ;;
8270
8271 hpux9* | hpux10* | hpux11*)
8272 lt_prog_compiler_wl='-Wl,'
8273 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8274 # not for PA HP-UX.
8275 case $host_cpu in
8276 hppa*64*|ia64*)
8277 # +Z the default
8278 ;;
8279 *)
8280 lt_prog_compiler_pic='+Z'
8281 ;;
8282 esac
8283 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8284 lt_prog_compiler_static='${wl}-a ${wl}archive'
8285 ;;
8286
8287 irix5* | irix6* | nonstopux*)
8288 lt_prog_compiler_wl='-Wl,'
8289 # PIC (with -KPIC) is the default.
8290 lt_prog_compiler_static='-non_shared'
8291 ;;
8292
8293 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8294 case $cc_basename in
8295 # old Intel for x86_64 which still supported -KPIC.
8296 ecc*)
8297 lt_prog_compiler_wl='-Wl,'
8298 lt_prog_compiler_pic='-KPIC'
8299 lt_prog_compiler_static='-static'
8300 ;;
8301 # icc used to be incompatible with GCC.
8302 # ICC 10 doesn't accept -KPIC any more.
8303 icc* | ifort*)
8304 lt_prog_compiler_wl='-Wl,'
8305 lt_prog_compiler_pic='-fPIC'
8306 lt_prog_compiler_static='-static'
8307 ;;
8308 # Lahey Fortran 8.1.
8309 lf95*)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='--shared'
8312 lt_prog_compiler_static='--static'
8313 ;;
8314 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8315 # Portland Group compilers (*not* the Pentium gcc compiler,
8316 # which looks to be a dead project)
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_pic='-fpic'
8319 lt_prog_compiler_static='-Bstatic'
8320 ;;
8321 ccc*)
8322 lt_prog_compiler_wl='-Wl,'
8323 # All Alpha code is PIC.
8324 lt_prog_compiler_static='-non_shared'
8325 ;;
8326 xl* | bgxl* | bgf* | mpixl*)
8327 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='-qpic'
8330 lt_prog_compiler_static='-qstaticlink'
8331 ;;
8332 *)
8333 case `$CC -V 2>&1 | sed 5q` in
8334 *Sun\ F* | *Sun*Fortran*)
8335 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8336 lt_prog_compiler_pic='-KPIC'
8337 lt_prog_compiler_static='-Bstatic'
8338 lt_prog_compiler_wl=''
8339 ;;
8340 *Sun\ C*)
8341 # Sun C 5.9
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8344 lt_prog_compiler_wl='-Wl,'
8345 ;;
8346 esac
8347 ;;
8348 esac
8349 ;;
8350
8351 newsos6)
8352 lt_prog_compiler_pic='-KPIC'
8353 lt_prog_compiler_static='-Bstatic'
8354 ;;
8355
8356 *nto* | *qnx*)
8357 # QNX uses GNU C++, but need to define -shared option too, otherwise
8358 # it will coredump.
8359 lt_prog_compiler_pic='-fPIC -shared'
8360 ;;
8361
8362 osf3* | osf4* | osf5*)
8363 lt_prog_compiler_wl='-Wl,'
8364 # All OSF/1 code is PIC.
8365 lt_prog_compiler_static='-non_shared'
8366 ;;
8367
8368 rdos*)
8369 lt_prog_compiler_static='-non_shared'
8370 ;;
8371
8372 solaris*)
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 case $cc_basename in
8376 f77* | f90* | f95*)
8377 lt_prog_compiler_wl='-Qoption ld ';;
8378 *)
8379 lt_prog_compiler_wl='-Wl,';;
8380 esac
8381 ;;
8382
8383 sunos4*)
8384 lt_prog_compiler_wl='-Qoption ld '
8385 lt_prog_compiler_pic='-PIC'
8386 lt_prog_compiler_static='-Bstatic'
8387 ;;
8388
8389 sysv4 | sysv4.2uw2* | sysv4.3*)
8390 lt_prog_compiler_wl='-Wl,'
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 ;;
8394
8395 sysv4*MP*)
8396 if test -d /usr/nec ;then
8397 lt_prog_compiler_pic='-Kconform_pic'
8398 lt_prog_compiler_static='-Bstatic'
8399 fi
8400 ;;
8401
8402 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 ;;
8407
8408 unicos*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_can_build_shared=no
8411 ;;
8412
8413 uts4*)
8414 lt_prog_compiler_pic='-pic'
8415 lt_prog_compiler_static='-Bstatic'
8416 ;;
8417
8418 *)
8419 lt_prog_compiler_can_build_shared=no
8420 ;;
8421 esac
8422 fi
8423
8424case $host_os in
8425 # For platforms which do not support PIC, -DPIC is meaningless:
8426 *djgpp*)
8427 lt_prog_compiler_pic=
8428 ;;
8429 *)
8430 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8431 ;;
8432esac
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8434$as_echo "$lt_prog_compiler_pic" >&6; }
8435
8436
8437
8438
8439
8440
8441#
8442# Check to make sure the PIC flag actually works.
8443#
8444if test -n "$lt_prog_compiler_pic"; then
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8446$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8447if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449else
8450 lt_cv_prog_compiler_pic_works=no
8451 ac_outfile=conftest.$ac_objext
8452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8453 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8454 # Insert the option either (1) after the last *FLAGS variable, or
8455 # (2) before a word containing "conftest.", or (3) at the end.
8456 # Note that $ac_compile itself does not contain backslashes and begins
8457 # with a dollar sign (not a hyphen), so the echo should work correctly.
8458 # The option is referenced via a variable to avoid confusing sed.
8459 lt_compile=`echo "$ac_compile" | $SED \
8460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462 -e 's:$: $lt_compiler_flag:'`
8463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8464 (eval "$lt_compile" 2>conftest.err)
8465 ac_status=$?
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 if (exit $ac_status) && test -s "$ac_outfile"; then
8469 # The compiler can only warn and ignore the option if not recognized
8470 # So say no if there are warnings other than the usual output.
8471 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8474 lt_cv_prog_compiler_pic_works=yes
8475 fi
8476 fi
8477 $RM conftest*
8478
8479fi
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8481$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8482
8483if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8484 case $lt_prog_compiler_pic in
8485 "" | " "*) ;;
8486 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8487 esac
8488else
8489 lt_prog_compiler_pic=
8490 lt_prog_compiler_can_build_shared=no
8491fi
8492
8493fi
8494
8495
8496
8497
8498
8499
8500#
8501# Check to make sure the static flag actually works.
8502#
8503wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8505$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8506if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508else
8509 lt_cv_prog_compiler_static_works=no
8510 save_LDFLAGS="$LDFLAGS"
8511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8512 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8514 # The linker can only warn and ignore the option if not recognized
8515 # So say no if there are warnings
8516 if test -s conftest.err; then
8517 # Append any errors to the config.log.
8518 cat conftest.err 1>&5
8519 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8521 if diff conftest.exp conftest.er2 >/dev/null; then
8522 lt_cv_prog_compiler_static_works=yes
8523 fi
8524 else
8525 lt_cv_prog_compiler_static_works=yes
8526 fi
8527 fi
8528 $RM -r conftest*
8529 LDFLAGS="$save_LDFLAGS"
8530
8531fi
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8533$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8534
8535if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8536 :
8537else
8538 lt_prog_compiler_static=
8539fi
8540
8541
8542
8543
8544
8545
8546
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8548$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8549if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8551else
8552 lt_cv_prog_compiler_c_o=no
8553 $RM -r conftest 2>/dev/null
8554 mkdir conftest
8555 cd conftest
8556 mkdir out
8557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8558
8559 lt_compiler_flag="-o out/conftest2.$ac_objext"
8560 # Insert the option either (1) after the last *FLAGS variable, or
8561 # (2) before a word containing "conftest.", or (3) at the end.
8562 # Note that $ac_compile itself does not contain backslashes and begins
8563 # with a dollar sign (not a hyphen), so the echo should work correctly.
8564 lt_compile=`echo "$ac_compile" | $SED \
8565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8567 -e 's:$: $lt_compiler_flag:'`
8568 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8569 (eval "$lt_compile" 2>out/conftest.err)
8570 ac_status=$?
8571 cat out/conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8574 then
8575 # The compiler can only warn and ignore the option if not recognized
8576 # So say no if there are warnings
8577 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8580 lt_cv_prog_compiler_c_o=yes
8581 fi
8582 fi
8583 chmod u+w . 2>&5
8584 $RM conftest*
8585 # SGI C++ compiler will create directory out/ii_files/ for
8586 # template instantiation
8587 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8588 $RM out/* && rmdir out
8589 cd ..
8590 $RM -r conftest
8591 $RM conftest*
8592
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8595$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8596
8597
8598
8599
8600
8601
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8603$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8604if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8605 $as_echo_n "(cached) " >&6
8606else
8607 lt_cv_prog_compiler_c_o=no
8608 $RM -r conftest 2>/dev/null
8609 mkdir conftest
8610 cd conftest
8611 mkdir out
8612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8613
8614 lt_compiler_flag="-o out/conftest2.$ac_objext"
8615 # Insert the option either (1) after the last *FLAGS variable, or
8616 # (2) before a word containing "conftest.", or (3) at the end.
8617 # Note that $ac_compile itself does not contain backslashes and begins
8618 # with a dollar sign (not a hyphen), so the echo should work correctly.
8619 lt_compile=`echo "$ac_compile" | $SED \
8620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8622 -e 's:$: $lt_compiler_flag:'`
8623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8624 (eval "$lt_compile" 2>out/conftest.err)
8625 ac_status=$?
8626 cat out/conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8629 then
8630 # The compiler can only warn and ignore the option if not recognized
8631 # So say no if there are warnings
8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8633 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8634 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler_c_o=yes
8636 fi
8637 fi
8638 chmod u+w . 2>&5
8639 $RM conftest*
8640 # SGI C++ compiler will create directory out/ii_files/ for
8641 # template instantiation
8642 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8643 $RM out/* && rmdir out
8644 cd ..
8645 $RM -r conftest
8646 $RM conftest*
8647
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8650$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8651
8652
8653
8654
8655hard_links="nottested"
8656if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8657 # do not overwrite the value of need_locks provided by the user
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8659$as_echo_n "checking if we can lock with hard links... " >&6; }
8660 hard_links=yes
8661 $RM conftest*
8662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8663 touch conftest.a
8664 ln conftest.a conftest.b 2>&5 || hard_links=no
8665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8667$as_echo "$hard_links" >&6; }
8668 if test "$hard_links" = no; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8670$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8671 need_locks=warn
8672 fi
8673else
8674 need_locks=no
8675fi
8676
8677
8678
8679
8680
8681
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8683$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8684
8685 runpath_var=
8686 allow_undefined_flag=
8687 always_export_symbols=no
8688 archive_cmds=
8689 archive_expsym_cmds=
8690 compiler_needs_object=no
8691 enable_shared_with_static_runtimes=no
8692 export_dynamic_flag_spec=
8693 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8694 hardcode_automatic=no
8695 hardcode_direct=no
8696 hardcode_direct_absolute=no
8697 hardcode_libdir_flag_spec=
8698 hardcode_libdir_flag_spec_ld=
8699 hardcode_libdir_separator=
8700 hardcode_minus_L=no
8701 hardcode_shlibpath_var=unsupported
8702 inherit_rpath=no
8703 link_all_deplibs=unknown
8704 module_cmds=
8705 module_expsym_cmds=
8706 old_archive_from_new_cmds=
8707 old_archive_from_expsyms_cmds=
8708 thread_safe_flag_spec=
8709 whole_archive_flag_spec=
8710 # include_expsyms should be a list of space-separated symbols to be *always*
8711 # included in the symbol list
8712 include_expsyms=
8713 # exclude_expsyms can be an extended regexp of symbols to exclude
8714 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8715 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8716 # as well as any symbol that contains `d'.
8717 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8718 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8719 # platforms (ab)use it in PIC code, but their linkers get confused if
8720 # the symbol is explicitly referenced. Since portable code cannot
8721 # rely on this symbol name, it's probably fine to never include it in
8722 # preloaded symbol tables.
8723 # Exclude shared library initialization/finalization symbols.
8724 extract_expsyms_cmds=
8725
8726 case $host_os in
8727 cygwin* | mingw* | pw32* | cegcc*)
8728 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8729 # When not using gcc, we currently assume that we are using
8730 # Microsoft Visual C++.
8731 if test "$GCC" != yes; then
8732 with_gnu_ld=no
8733 fi
8734 ;;
8735 interix*)
8736 # we just hope/assume this is gcc and not c89 (= MSVC++)
8737 with_gnu_ld=yes
8738 ;;
8739 openbsd*)
8740 with_gnu_ld=no
8741 ;;
8742 esac
8743
8744 ld_shlibs=yes
8745
8746 # On some targets, GNU ld is compatible enough with the native linker
8747 # that we're better off using the native interface for both.
8748 lt_use_gnu_ld_interface=no
8749 if test "$with_gnu_ld" = yes; then
8750 case $host_os in
8751 aix*)
8752 # The AIX port of GNU ld has always aspired to compatibility
8753 # with the native linker. However, as the warning in the GNU ld
8754 # block says, versions before 2.19.5* couldn't really create working
8755 # shared libraries, regardless of the interface used.
8756 case `$LD -v 2>&1` in
8757 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8758 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8759 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8760 *)
8761 lt_use_gnu_ld_interface=yes
8762 ;;
8763 esac
8764 ;;
8765 *)
8766 lt_use_gnu_ld_interface=yes
8767 ;;
8768 esac
8769 fi
8770
8771 if test "$lt_use_gnu_ld_interface" = yes; then
8772 # If archive_cmds runs LD, not CC, wlarc should be empty
8773 wlarc='${wl}'
8774
8775 # Set some defaults for GNU ld with shared library support. These
8776 # are reset later if shared libraries are not supported. Putting them
8777 # here allows them to be overridden if necessary.
8778 runpath_var=LD_RUN_PATH
8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8780 export_dynamic_flag_spec='${wl}--export-dynamic'
8781 # ancient GNU ld didn't support --whole-archive et. al.
8782 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8783 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8784 else
8785 whole_archive_flag_spec=
8786 fi
8787 supports_anon_versioning=no
8788 case `$LD -v 2>&1` in
8789 *GNU\ gold*) supports_anon_versioning=yes ;;
8790 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8791 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8792 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8793 *\ 2.11.*) ;; # other 2.11 versions
8794 *) supports_anon_versioning=yes ;;
8795 esac
8796
8797 # See if GNU ld supports shared libraries.
8798 case $host_os in
8799 aix[3-9]*)
8800 # On AIX/PPC, the GNU linker is very broken
8801 if test "$host_cpu" != ia64; then
8802 ld_shlibs=no
8803 cat <<_LT_EOF 1>&2
8804
8805*** Warning: the GNU linker, at least up to release 2.19, is reported
8806*** to be unable to reliably create shared libraries on AIX.
8807*** Therefore, libtool is disabling shared libraries support. If you
8808*** really care for shared libraries, you may want to install binutils
8809*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8810*** You will then need to restart the configuration process.
8811
8812_LT_EOF
8813 fi
8814 ;;
8815
8816 amigaos*)
8817 case $host_cpu in
8818 powerpc)
8819 # see comment about AmigaOS4 .so support
8820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821 archive_expsym_cmds=''
8822 ;;
8823 m68k)
8824 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)'
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_minus_L=yes
8827 ;;
8828 esac
8829 ;;
8830
8831 beos*)
8832 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8833 allow_undefined_flag=unsupported
8834 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8835 # support --undefined. This deserves some investigation. FIXME
8836 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8837 else
8838 ld_shlibs=no
8839 fi
8840 ;;
8841
8842 cygwin* | mingw* | pw32* | cegcc*)
8843 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8844 # as there is no search path for DLLs.
8845 hardcode_libdir_flag_spec='-L$libdir'
8846 export_dynamic_flag_spec='${wl}--export-all-symbols'
8847 allow_undefined_flag=unsupported
8848 always_export_symbols=no
8849 enable_shared_with_static_runtimes=yes
8850 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8851
8852 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8854 # If the export-symbols file already is a .def file (1st line
8855 # is EXPORTS), use it as is; otherwise, prepend...
8856 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8857 cp $export_symbols $output_objdir/$soname.def;
8858 else
8859 echo EXPORTS > $output_objdir/$soname.def;
8860 cat $export_symbols >> $output_objdir/$soname.def;
8861 fi~
8862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8863 else
8864 ld_shlibs=no
8865 fi
8866 ;;
8867
8868 haiku*)
8869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870 link_all_deplibs=yes
8871 ;;
8872
8873 interix[3-9]*)
8874 hardcode_direct=no
8875 hardcode_shlibpath_var=no
8876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8877 export_dynamic_flag_spec='${wl}-E'
8878 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8879 # Instead, shared libraries are loaded at an image base (0x10000000 by
8880 # default) and relocated if they conflict, which is a slow very memory
8881 # consuming and fragmenting process. To avoid this, we pick a random,
8882 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8883 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8884 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8885 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'
8886 ;;
8887
8888 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8889 tmp_diet=no
8890 if test "$host_os" = linux-dietlibc; then
8891 case $cc_basename in
8892 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8893 esac
8894 fi
8895 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8896 && test "$tmp_diet" = no
8897 then
8898 tmp_addflag=
8899 tmp_sharedflag='-shared'
8900 case $cc_basename,$host_cpu in
8901 pgcc*) # Portland Group C compiler
8902 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'
8903 tmp_addflag=' $pic_flag'
8904 ;;
8905 pgf77* | pgf90* | pgf95* | pgfortran*)
8906 # Portland Group f77 and f90 compilers
8907 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'
8908 tmp_addflag=' $pic_flag -Mnomain' ;;
8909 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8910 tmp_addflag=' -i_dynamic' ;;
8911 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8912 tmp_addflag=' -i_dynamic -nofor_main' ;;
8913 ifc* | ifort*) # Intel Fortran compiler
8914 tmp_addflag=' -nofor_main' ;;
8915 lf95*) # Lahey Fortran 8.1
8916 whole_archive_flag_spec=
8917 tmp_sharedflag='--shared' ;;
8918 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8919 tmp_sharedflag='-qmkshrobj'
8920 tmp_addflag= ;;
8921 nvcc*) # Cuda Compiler Driver 2.2
8922 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'
8923 compiler_needs_object=yes
8924 ;;
8925 esac
8926 case `$CC -V 2>&1 | sed 5q` in
8927 *Sun\ C*) # Sun C 5.9
8928 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'
8929 compiler_needs_object=yes
8930 tmp_sharedflag='-G' ;;
8931 *Sun\ F*) # Sun Fortran 8.3
8932 tmp_sharedflag='-G' ;;
8933 esac
8934 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8935
8936 if test "x$supports_anon_versioning" = xyes; then
8937 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8939 echo "local: *; };" >> $output_objdir/$libname.ver~
8940 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8941 fi
8942
8943 case $cc_basename in
8944 xlf* | bgf* | bgxlf* | mpixlf*)
8945 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8946 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8947 hardcode_libdir_flag_spec=
8948 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8949 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8950 if test "x$supports_anon_versioning" = xyes; then
8951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953 echo "local: *; };" >> $output_objdir/$libname.ver~
8954 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8955 fi
8956 ;;
8957 esac
8958 else
8959 ld_shlibs=no
8960 fi
8961 ;;
8962
8963 netbsd*)
8964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8965 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8966 wlarc=
8967 else
8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970 fi
8971 ;;
8972
8973 solaris*)
8974 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8975 ld_shlibs=no
8976 cat <<_LT_EOF 1>&2
8977
8978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8979*** create shared libraries on Solaris systems. Therefore, libtool
8980*** is disabling shared libraries support. We urge you to upgrade GNU
8981*** binutils to release 2.9.1 or newer. Another option is to modify
8982*** your PATH or compiler configuration so that the native linker is
8983*** used, and then restart.
8984
8985_LT_EOF
8986 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989 else
8990 ld_shlibs=no
8991 fi
8992 ;;
8993
8994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8995 case `$LD -v 2>&1` in
8996 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8997 ld_shlibs=no
8998 cat <<_LT_EOF 1>&2
8999
9000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9001*** reliably create shared libraries on SCO systems. Therefore, libtool
9002*** is disabling shared libraries support. We urge you to upgrade GNU
9003*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9004*** your PATH or compiler configuration so that the native linker is
9005*** used, and then restart.
9006
9007_LT_EOF
9008 ;;
9009 *)
9010 # For security reasons, it is highly recommended that you always
9011 # use absolute paths for naming shared libraries, and exclude the
9012 # DT_RUNPATH tag from executables and libraries. But doing so
9013 # requires that you compile everything twice, which is a pain.
9014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9018 else
9019 ld_shlibs=no
9020 fi
9021 ;;
9022 esac
9023 ;;
9024
9025 sunos4*)
9026 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9027 wlarc=
9028 hardcode_direct=yes
9029 hardcode_shlibpath_var=no
9030 ;;
9031
9032 *)
9033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9040 esac
9041
9042 if test "$ld_shlibs" = no; then
9043 runpath_var=
9044 hardcode_libdir_flag_spec=
9045 export_dynamic_flag_spec=
9046 whole_archive_flag_spec=
9047 fi
9048 else
9049 # PORTME fill in a description of your system's linker (not GNU ld)
9050 case $host_os in
9051 aix3*)
9052 allow_undefined_flag=unsupported
9053 always_export_symbols=yes
9054 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'
9055 # Note: this linker hardcodes the directories in LIBPATH if there
9056 # are no directories specified by -L.
9057 hardcode_minus_L=yes
9058 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9059 # Neither direct hardcoding nor static linking is supported with a
9060 # broken collect2.
9061 hardcode_direct=unsupported
9062 fi
9063 ;;
9064
9065 aix[4-9]*)
9066 if test "$host_cpu" = ia64; then
9067 # On IA64, the linker does run time linking by default, so we don't
9068 # have to do anything special.
9069 aix_use_runtimelinking=no
9070 exp_sym_flag='-Bexport'
9071 no_entry_flag=""
9072 else
9073 # If we're using GNU nm, then we don't want the "-C" option.
9074 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9075 # Also, AIX nm treats weak defined symbols like other global
9076 # defined symbols, whereas GNU nm marks them as "W".
9077 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9078 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'
9079 else
9080 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'
9081 fi
9082 aix_use_runtimelinking=no
9083
9084 # Test if we are trying to use run time linking or normal
9085 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9086 # need to do runtime linking.
9087 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9088 for ld_flag in $LDFLAGS; do
9089 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9090 aix_use_runtimelinking=yes
9091 break
9092 fi
9093 done
9094 ;;
9095 esac
9096
9097 exp_sym_flag='-bexport'
9098 no_entry_flag='-bnoentry'
9099 fi
9100
9101 # When large executables or shared objects are built, AIX ld can
9102 # have problems creating the table of contents. If linking a library
9103 # or program results in "error TOC overflow" add -mminimal-toc to
9104 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9105 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9106
9107 archive_cmds=''
9108 hardcode_direct=yes
9109 hardcode_direct_absolute=yes
9110 hardcode_libdir_separator=':'
9111 link_all_deplibs=yes
9112 file_list_spec='${wl}-f,'
9113
9114 if test "$GCC" = yes; then
9115 case $host_os in aix4.[012]|aix4.[012].*)
9116 # We only want to do this on AIX 4.2 and lower, the check
9117 # below for broken collect2 doesn't work under 4.3+
9118 collect2name=`${CC} -print-prog-name=collect2`
9119 if test -f "$collect2name" &&
9120 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9121 then
9122 # We have reworked collect2
9123 :
9124 else
9125 # We have old collect2
9126 hardcode_direct=unsupported
9127 # It fails to find uninstalled libraries when the uninstalled
9128 # path is not listed in the libpath. Setting hardcode_minus_L
9129 # to unsupported forces relinking
9130 hardcode_minus_L=yes
9131 hardcode_libdir_flag_spec='-L$libdir'
9132 hardcode_libdir_separator=
9133 fi
9134 ;;
9135 esac
9136 shared_flag='-shared'
9137 if test "$aix_use_runtimelinking" = yes; then
9138 shared_flag="$shared_flag "'${wl}-G'
9139 fi
9140 else
9141 # not using gcc
9142 if test "$host_cpu" = ia64; then
9143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9144 # chokes on -Wl,-G. The following line is correct:
9145 shared_flag='-G'
9146 else
9147 if test "$aix_use_runtimelinking" = yes; then
9148 shared_flag='${wl}-G'
9149 else
9150 shared_flag='${wl}-bM:SRE'
9151 fi
9152 fi
9153 fi
9154
9155 export_dynamic_flag_spec='${wl}-bexpall'
9156 # It seems that -bexpall does not export symbols beginning with
9157 # underscore (_), so it is better to generate a list of symbols to export.
9158 always_export_symbols=yes
9159 if test "$aix_use_runtimelinking" = yes; then
9160 # Warning - without using the other runtime loading flags (-brtl),
9161 # -berok will link without error, but may produce a broken library.
9162 allow_undefined_flag='-berok'
9163 # Determine the default libpath from the value encoded in an
9164 # empty executable.
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166/* end confdefs.h. */
9167
9168int
9169main ()
9170{
9171
9172 ;
9173 return 0;
9174}
9175_ACEOF
9176if ac_fn_c_try_link "$LINENO"; then :
9177
9178lt_aix_libpath_sed='
9179 /Import File Strings/,/^$/ {
9180 /^0/ {
9181 s/^0 *\(.*\)$/\1/
9182 p
9183 }
9184 }'
9185aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9186# Check for a 64-bit object if we didn't find anything.
9187if test -z "$aix_libpath"; then
9188 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9189fi
9190fi
9191rm -f core conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9194
9195 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9196 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"
9197 else
9198 if test "$host_cpu" = ia64; then
9199 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9200 allow_undefined_flag="-z nodefs"
9201 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"
9202 else
9203 # Determine the default libpath from the value encoded in an
9204 # empty executable.
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h. */
9207
9208int
9209main ()
9210{
9211
9212 ;
9213 return 0;
9214}
9215_ACEOF
9216if ac_fn_c_try_link "$LINENO"; then :
9217
9218lt_aix_libpath_sed='
9219 /Import File Strings/,/^$/ {
9220 /^0/ {
9221 s/^0 *\(.*\)$/\1/
9222 p
9223 }
9224 }'
9225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226# Check for a 64-bit object if we didn't find anything.
9227if test -z "$aix_libpath"; then
9228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229fi
9230fi
9231rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234
9235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236 # Warning - without using the other run time loading flags,
9237 # -berok will link without error, but may produce a broken library.
9238 no_undefined_flag=' ${wl}-bernotok'
9239 allow_undefined_flag=' ${wl}-berok'
9240 if test "$with_gnu_ld" = yes; then
9241 # We only use this code for GNU lds that support --whole-archive.
9242 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9243 else
9244 # Exported symbols can be pulled into shared objects from archives
9245 whole_archive_flag_spec='$convenience'
9246 fi
9247 archive_cmds_need_lc=yes
9248 # This is similar to how AIX traditionally builds its shared libraries.
9249 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9250 fi
9251 fi
9252 ;;
9253
9254 amigaos*)
9255 case $host_cpu in
9256 powerpc)
9257 # see comment about AmigaOS4 .so support
9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 archive_expsym_cmds=''
9260 ;;
9261 m68k)
9262 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)'
9263 hardcode_libdir_flag_spec='-L$libdir'
9264 hardcode_minus_L=yes
9265 ;;
9266 esac
9267 ;;
9268
9269 bsdi[45]*)
9270 export_dynamic_flag_spec=-rdynamic
9271 ;;
9272
9273 cygwin* | mingw* | pw32* | cegcc*)
9274 # When not using gcc, we currently assume that we are using
9275 # Microsoft Visual C++.
9276 # hardcode_libdir_flag_spec is actually meaningless, as there is
9277 # no search path for DLLs.
9278 hardcode_libdir_flag_spec=' '
9279 allow_undefined_flag=unsupported
9280 # Tell ltmain to make .lib files, not .a files.
9281 libext=lib
9282 # Tell ltmain to make .dll files, not .so files.
9283 shrext_cmds=".dll"
9284 # FIXME: Setting linknames here is a bad hack.
9285 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9286 # The linker will automatically build a .lib file if we build a DLL.
9287 old_archive_from_new_cmds='true'
9288 # FIXME: Should let the user specify the lib program.
9289 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9290 fix_srcfile_path='`cygpath -w "$srcfile"`'
9291 enable_shared_with_static_runtimes=yes
9292 ;;
9293
9294 darwin* | rhapsody*)
9295
9296
9297 archive_cmds_need_lc=no
9298 hardcode_direct=no
9299 hardcode_automatic=yes
9300 hardcode_shlibpath_var=unsupported
9301 if test "$lt_cv_ld_force_load" = "yes"; then
9302 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\"`'
9303 else
9304 whole_archive_flag_spec=''
9305 fi
9306 link_all_deplibs=yes
9307 allow_undefined_flag="$_lt_dar_allow_undefined"
9308 case $cc_basename in
9309 ifort*) _lt_dar_can_shared=yes ;;
9310 *) _lt_dar_can_shared=$GCC ;;
9311 esac
9312 if test "$_lt_dar_can_shared" = "yes"; then
9313 output_verbose_link_cmd=func_echo_all
9314 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9315 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9316 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}"
9317 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}"
9318
9319 else
9320 ld_shlibs=no
9321 fi
9322
9323 ;;
9324
9325 dgux*)
9326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_shlibpath_var=no
9329 ;;
9330
7a938933
ILT
9331 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9332 # support. Future versions do this automatically, but an explicit c++rt0.o
9333 # does not break anything, and helps significantly (at the cost of a little
9334 # extra space).
9335 freebsd2.2*)
9336 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9337 hardcode_libdir_flag_spec='-R$libdir'
9338 hardcode_direct=yes
9339 hardcode_shlibpath_var=no
9340 ;;
9341
9342 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9343 freebsd2*)
9344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9345 hardcode_direct=yes
9346 hardcode_minus_L=yes
9347 hardcode_shlibpath_var=no
9348 ;;
9349
9350 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9351 freebsd* | dragonfly*)
9352 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 hardcode_direct=yes
9355 hardcode_shlibpath_var=no
9356 ;;
9357
9358 hpux9*)
9359 if test "$GCC" = yes; then
9360 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'
9361 else
9362 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'
9363 fi
9364 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9365 hardcode_libdir_separator=:
9366 hardcode_direct=yes
9367
9368 # hardcode_minus_L: Not really in the search PATH,
9369 # but as the default location of the library.
9370 hardcode_minus_L=yes
9371 export_dynamic_flag_spec='${wl}-E'
9372 ;;
9373
9374 hpux10*)
9375 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9376 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9377 else
9378 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9379 fi
9380 if test "$with_gnu_ld" = no; then
9381 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9382 hardcode_libdir_flag_spec_ld='+b $libdir'
9383 hardcode_libdir_separator=:
9384 hardcode_direct=yes
9385 hardcode_direct_absolute=yes
9386 export_dynamic_flag_spec='${wl}-E'
9387 # hardcode_minus_L: Not really in the search PATH,
9388 # but as the default location of the library.
9389 hardcode_minus_L=yes
9390 fi
9391 ;;
9392
9393 hpux11*)
9394 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9395 case $host_cpu in
9396 hppa*64*)
9397 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 ;;
9399 ia64*)
9400 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9401 ;;
9402 *)
9403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404 ;;
9405 esac
9406 else
9407 case $host_cpu in
9408 hppa*64*)
9409 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 ;;
9411 ia64*)
9412 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9413 ;;
9414 *)
9415
9416 # Older versions of the 11.00 compiler do not understand -b yet
9417 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9419$as_echo_n "checking if $CC understands -b... " >&6; }
9420if test "${lt_cv_prog_compiler__b+set}" = set; then :
9421 $as_echo_n "(cached) " >&6
9422else
9423 lt_cv_prog_compiler__b=no
9424 save_LDFLAGS="$LDFLAGS"
9425 LDFLAGS="$LDFLAGS -b"
9426 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9427 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9428 # The linker can only warn and ignore the option if not recognized
9429 # So say no if there are warnings
9430 if test -s conftest.err; then
9431 # Append any errors to the config.log.
9432 cat conftest.err 1>&5
9433 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9435 if diff conftest.exp conftest.er2 >/dev/null; then
9436 lt_cv_prog_compiler__b=yes
9437 fi
9438 else
9439 lt_cv_prog_compiler__b=yes
9440 fi
9441 fi
9442 $RM -r conftest*
9443 LDFLAGS="$save_LDFLAGS"
9444
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9447$as_echo "$lt_cv_prog_compiler__b" >&6; }
9448
9449if test x"$lt_cv_prog_compiler__b" = xyes; then
9450 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451else
9452 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9453fi
9454
9455 ;;
9456 esac
9457 fi
9458 if test "$with_gnu_ld" = no; then
9459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9460 hardcode_libdir_separator=:
9461
9462 case $host_cpu in
9463 hppa*64*|ia64*)
9464 hardcode_direct=no
9465 hardcode_shlibpath_var=no
9466 ;;
9467 *)
9468 hardcode_direct=yes
9469 hardcode_direct_absolute=yes
9470 export_dynamic_flag_spec='${wl}-E'
9471
9472 # hardcode_minus_L: Not really in the search PATH,
9473 # but as the default location of the library.
9474 hardcode_minus_L=yes
9475 ;;
9476 esac
9477 fi
9478 ;;
9479
9480 irix5* | irix6* | nonstopux*)
9481 if test "$GCC" = yes; then
9482 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'
9483 # Try to use the -exported_symbol ld option, if it does not
9484 # work, assume that -exports_file does not work either and
9485 # implicitly export all symbols.
9486 save_LDFLAGS="$LDFLAGS"
9487 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h. */
9490int foo(void) {}
9491_ACEOF
9492if ac_fn_c_try_link "$LINENO"; then :
9493 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'
9494
9495fi
9496rm -f core conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9498 LDFLAGS="$save_LDFLAGS"
9499 else
9500 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'
9501 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'
9502 fi
9503 archive_cmds_need_lc='no'
9504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9505 hardcode_libdir_separator=:
9506 inherit_rpath=yes
9507 link_all_deplibs=yes
9508 ;;
9509
9510 netbsd*)
9511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9513 else
9514 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9515 fi
9516 hardcode_libdir_flag_spec='-R$libdir'
9517 hardcode_direct=yes
9518 hardcode_shlibpath_var=no
9519 ;;
9520
9521 newsos6)
9522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523 hardcode_direct=yes
9524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9525 hardcode_libdir_separator=:
9526 hardcode_shlibpath_var=no
9527 ;;
9528
9529 *nto* | *qnx*)
9530 ;;
9531
9532 openbsd*)
9533 if test -f /usr/libexec/ld.so; then
9534 hardcode_direct=yes
9535 hardcode_shlibpath_var=no
9536 hardcode_direct_absolute=yes
9537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9538 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9539 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9541 export_dynamic_flag_spec='${wl}-E'
9542 else
9543 case $host_os in
9544 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9545 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_libdir_flag_spec='-R$libdir'
9547 ;;
9548 *)
9549 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9550 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9551 ;;
9552 esac
9553 fi
9554 else
9555 ld_shlibs=no
9556 fi
9557 ;;
9558
9559 os2*)
9560 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_minus_L=yes
9562 allow_undefined_flag=unsupported
9563 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'
9564 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9565 ;;
9566
9567 osf3*)
9568 if test "$GCC" = yes; then
9569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9570 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'
9571 else
9572 allow_undefined_flag=' -expect_unresolved \*'
9573 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'
9574 fi
9575 archive_cmds_need_lc='no'
9576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9577 hardcode_libdir_separator=:
9578 ;;
9579
9580 osf4* | osf5*) # as osf3* with the addition of -msym flag
9581 if test "$GCC" = yes; then
9582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583 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'
9584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585 else
9586 allow_undefined_flag=' -expect_unresolved \*'
9587 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'
9588 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~
9589 $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'
9590
9591 # Both c and cxx compiler support -rpath directly
9592 hardcode_libdir_flag_spec='-rpath $libdir'
9593 fi
9594 archive_cmds_need_lc='no'
9595 hardcode_libdir_separator=:
9596 ;;
9597
9598 solaris*)
9599 no_undefined_flag=' -z defs'
9600 if test "$GCC" = yes; then
9601 wlarc='${wl}'
9602 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9604 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9605 else
9606 case `$CC -V 2>&1` in
9607 *"Compilers 5.0"*)
9608 wlarc=''
9609 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9612 ;;
9613 *)
9614 wlarc='${wl}'
9615 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 ;;
9619 esac
9620 fi
9621 hardcode_libdir_flag_spec='-R$libdir'
9622 hardcode_shlibpath_var=no
9623 case $host_os in
9624 solaris2.[0-5] | solaris2.[0-5].*) ;;
9625 *)
9626 # The compiler driver will combine and reorder linker options,
9627 # but understands `-z linker_flag'. GCC discards it without `$wl',
9628 # but is careful enough not to reorder.
9629 # Supported since Solaris 2.6 (maybe 2.5.1?)
9630 if test "$GCC" = yes; then
9631 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9632 else
9633 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9634 fi
9635 ;;
9636 esac
9637 link_all_deplibs=yes
9638 ;;
9639
9640 sunos4*)
9641 if test "x$host_vendor" = xsequent; then
9642 # Use $CC to link under sequent, because it throws in some extra .o
9643 # files that make .init and .fini sections work.
9644 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9645 else
9646 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9647 fi
9648 hardcode_libdir_flag_spec='-L$libdir'
9649 hardcode_direct=yes
9650 hardcode_minus_L=yes
9651 hardcode_shlibpath_var=no
9652 ;;
9653
9654 sysv4)
9655 case $host_vendor in
9656 sni)
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_direct=yes # is this really true???
9659 ;;
9660 siemens)
9661 ## LD is ld it makes a PLAMLIB
9662 ## CC just makes a GrossModule.
9663 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9664 reload_cmds='$CC -r -o $output$reload_objs'
9665 hardcode_direct=no
9666 ;;
9667 motorola)
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9670 ;;
9671 esac
9672 runpath_var='LD_RUN_PATH'
9673 hardcode_shlibpath_var=no
9674 ;;
9675
9676 sysv4.3*)
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9678 hardcode_shlibpath_var=no
9679 export_dynamic_flag_spec='-Bexport'
9680 ;;
9681
9682 sysv4*MP*)
9683 if test -d /usr/nec; then
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_shlibpath_var=no
9686 runpath_var=LD_RUN_PATH
9687 hardcode_runpath_var=yes
9688 ld_shlibs=yes
9689 fi
9690 ;;
9691
9692 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9693 no_undefined_flag='${wl}-z,text'
9694 archive_cmds_need_lc=no
9695 hardcode_shlibpath_var=no
9696 runpath_var='LD_RUN_PATH'
9697
9698 if test "$GCC" = yes; then
9699 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 else
9702 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9703 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 fi
9705 ;;
9706
9707 sysv5* | sco3.2v5* | sco5v6*)
9708 # Note: We can NOT use -z defs as we might desire, because we do not
9709 # link with -lc, and that would cause any symbols used from libc to
9710 # always be unresolved, which means just about no library would
9711 # ever link correctly. If we're not using GNU ld we use -z text
9712 # though, which does catch some bad symbols but isn't as heavy-handed
9713 # as -z defs.
9714 no_undefined_flag='${wl}-z,text'
9715 allow_undefined_flag='${wl}-z,nodefs'
9716 archive_cmds_need_lc=no
9717 hardcode_shlibpath_var=no
9718 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9719 hardcode_libdir_separator=':'
9720 link_all_deplibs=yes
9721 export_dynamic_flag_spec='${wl}-Bexport'
9722 runpath_var='LD_RUN_PATH'
9723
9724 if test "$GCC" = yes; then
9725 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 else
9728 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 fi
9731 ;;
9732
9733 uts4*)
9734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735 hardcode_libdir_flag_spec='-L$libdir'
9736 hardcode_shlibpath_var=no
9737 ;;
9738
9739 *)
9740 ld_shlibs=no
9741 ;;
9742 esac
9743
9744 if test x$host_vendor = xsni; then
9745 case $host in
9746 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9747 export_dynamic_flag_spec='${wl}-Blargedynsym'
9748 ;;
9749 esac
9750 fi
9751 fi
9752
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9754$as_echo "$ld_shlibs" >&6; }
9755test "$ld_shlibs" = no && can_build_shared=no
9756
9757with_gnu_ld=$with_gnu_ld
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773#
9774# Do we need to explicitly link libc?
9775#
9776case "x$archive_cmds_need_lc" in
9777x|xyes)
9778 # Assume -lc should be added
9779 archive_cmds_need_lc=yes
9780
9781 if test "$enable_shared" = yes && test "$GCC" = yes; then
9782 case $archive_cmds in
9783 *'~'*)
9784 # FIXME: we may have to deal with multi-command sequences.
9785 ;;
9786 '$CC '*)
9787 # Test whether the compiler implicitly links with -lc since on some
9788 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9789 # to ld, don't add -lc before -lgcc.
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9791$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9792if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9794else
9795 $RM conftest*
9796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9797
9798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9799 (eval $ac_compile) 2>&5
9800 ac_status=$?
9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802 test $ac_status = 0; } 2>conftest.err; then
9803 soname=conftest
9804 lib=conftest
9805 libobjs=conftest.$ac_objext
9806 deplibs=
9807 wl=$lt_prog_compiler_wl
9808 pic_flag=$lt_prog_compiler_pic
9809 compiler_flags=-v
9810 linker_flags=-v
9811 verstring=
9812 output_objdir=.
9813 libname=conftest
9814 lt_save_allow_undefined_flag=$allow_undefined_flag
9815 allow_undefined_flag=
9816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9817 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9818 ac_status=$?
9819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820 test $ac_status = 0; }
9821 then
9822 lt_cv_archive_cmds_need_lc=no
9823 else
9824 lt_cv_archive_cmds_need_lc=yes
9825 fi
9826 allow_undefined_flag=$lt_save_allow_undefined_flag
9827 else
9828 cat conftest.err 1>&5
9829 fi
9830 $RM conftest*
9831
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9834$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9835 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9836 ;;
9837 esac
9838 fi
9839 ;;
9840esac
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
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9999$as_echo_n "checking dynamic linker characteristics... " >&6; }
10000
10001if test "$GCC" = yes; then
10002 case $host_os in
10003 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10004 *) lt_awk_arg="/^libraries:/" ;;
10005 esac
10006 case $host_os in
10007 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10008 *) lt_sed_strip_eq="s,=/,/,g" ;;
10009 esac
10010 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10011 case $lt_search_path_spec in
10012 *\;*)
10013 # if the path contains ";" then we assume it to be the separator
10014 # otherwise default to the standard path separator (i.e. ":") - it is
10015 # assumed that no part of a normal pathname contains ";" but that should
10016 # okay in the real world where ";" in dirpaths is itself problematic.
10017 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10018 ;;
10019 *)
10020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10021 ;;
10022 esac
10023 # Ok, now we have the path, separated by spaces, we can step through it
10024 # and add multilib dir if necessary.
10025 lt_tmp_lt_search_path_spec=
10026 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10027 for lt_sys_path in $lt_search_path_spec; do
10028 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10029 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10030 else
10031 test -d "$lt_sys_path" && \
10032 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10033 fi
10034 done
10035 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10036BEGIN {RS=" "; FS="/|\n";} {
10037 lt_foo="";
10038 lt_count=0;
10039 for (lt_i = NF; lt_i > 0; lt_i--) {
10040 if ($lt_i != "" && $lt_i != ".") {
10041 if ($lt_i == "..") {
10042 lt_count++;
10043 } else {
10044 if (lt_count == 0) {
10045 lt_foo="/" $lt_i lt_foo;
10046 } else {
10047 lt_count--;
10048 }
10049 }
10050 }
10051 }
10052 if (lt_foo != "") { lt_freq[lt_foo]++; }
10053 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10054}'`
10055 # AWK program above erroneously prepends '/' to C:/dos/paths
10056 # for these hosts.
10057 case $host_os in
10058 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10059 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10060 esac
10061 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10062else
10063 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10064fi
10065library_names_spec=
10066libname_spec='lib$name'
10067soname_spec=
10068shrext_cmds=".so"
10069postinstall_cmds=
10070postuninstall_cmds=
10071finish_cmds=
10072finish_eval=
10073shlibpath_var=
10074shlibpath_overrides_runpath=unknown
10075version_type=none
10076dynamic_linker="$host_os ld.so"
10077sys_lib_dlsearch_path_spec="/lib /usr/lib"
10078need_lib_prefix=unknown
10079hardcode_into_libs=no
10080
10081# when you set need_version to no, make sure it does not cause -set_version
10082# flags to be left without arguments
10083need_version=unknown
10084
10085case $host_os in
10086aix3*)
10087 version_type=linux
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10089 shlibpath_var=LIBPATH
10090
10091 # AIX 3 has no versioning support, so we append a major version to the name.
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 ;;
10094
10095aix[4-9]*)
10096 version_type=linux
10097 need_lib_prefix=no
10098 need_version=no
10099 hardcode_into_libs=yes
10100 if test "$host_cpu" = ia64; then
10101 # AIX 5 supports IA64
10102 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10103 shlibpath_var=LD_LIBRARY_PATH
10104 else
10105 # With GCC up to 2.95.x, collect2 would create an import file
10106 # for dependence libraries. The import file would start with
10107 # the line `#! .'. This would cause the generated library to
10108 # depend on `.', always an invalid library. This was fixed in
10109 # development snapshots of GCC prior to 3.0.
10110 case $host_os in
10111 aix4 | aix4.[01] | aix4.[01].*)
10112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10113 echo ' yes '
10114 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10115 :
10116 else
10117 can_build_shared=no
10118 fi
10119 ;;
10120 esac
10121 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10122 # soname into executable. Probably we can add versioning support to
10123 # collect2, so additional links can be useful in future.
10124 if test "$aix_use_runtimelinking" = yes; then
10125 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10126 # instead of lib<name>.a to let people know that these are not
10127 # typical AIX shared libraries.
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 else
10130 # We preserve .a as extension for shared libraries through AIX4.2
10131 # and later when we are not doing run time linking.
10132 library_names_spec='${libname}${release}.a $libname.a'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 fi
10135 shlibpath_var=LIBPATH
10136 fi
10137 ;;
10138
10139amigaos*)
10140 case $host_cpu in
10141 powerpc)
10142 # Since July 2007 AmigaOS4 officially supports .so libraries.
10143 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145 ;;
10146 m68k)
10147 library_names_spec='$libname.ixlibrary $libname.a'
10148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10149 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'
10150 ;;
10151 esac
10152 ;;
10153
10154beos*)
10155 library_names_spec='${libname}${shared_ext}'
10156 dynamic_linker="$host_os ld.so"
10157 shlibpath_var=LIBRARY_PATH
10158 ;;
10159
10160bsdi[45]*)
10161 version_type=linux
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10168 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10169 # the default ld.so.conf also contains /usr/contrib/lib and
10170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10171 # libtool to hard-code these into programs
10172 ;;
10173
10174cygwin* | mingw* | pw32* | cegcc*)
10175 version_type=windows
10176 shrext_cmds=".dll"
10177 need_version=no
10178 need_lib_prefix=no
10179
10180 case $GCC,$host_os in
10181 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10182 library_names_spec='$libname.dll.a'
10183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10184 postinstall_cmds='base_file=`basename \${file}`~
10185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10186 dldir=$destdir/`dirname \$dlpath`~
10187 test -d \$dldir || mkdir -p \$dldir~
10188 $install_prog $dir/$dlname \$dldir/$dlname~
10189 chmod a+x \$dldir/$dlname~
10190 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10191 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10192 fi'
10193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10194 dlpath=$dir/\$dldll~
10195 $RM \$dlpath'
10196 shlibpath_overrides_runpath=yes
10197
10198 case $host_os in
10199 cygwin*)
10200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10202
10203 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10204 ;;
10205 mingw* | cegcc*)
10206 # MinGW DLLs use traditional 'lib' prefix
10207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 ;;
10209 pw32*)
10210 # pw32 DLLs use 'pw' prefix rather than 'lib'
10211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10212 ;;
10213 esac
10214 ;;
10215
10216 *)
10217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10218 ;;
10219 esac
10220 dynamic_linker='Win32 ld.exe'
10221 # FIXME: first we should search . and the directory the executable is in
10222 shlibpath_var=PATH
10223 ;;
10224
10225darwin* | rhapsody*)
10226 dynamic_linker="$host_os dyld"
10227 version_type=darwin
10228 need_lib_prefix=no
10229 need_version=no
10230 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10231 soname_spec='${libname}${release}${major}$shared_ext'
10232 shlibpath_overrides_runpath=yes
10233 shlibpath_var=DYLD_LIBRARY_PATH
10234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10235
10236 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10237 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10238 ;;
10239
10240dgux*)
10241 version_type=linux
10242 need_lib_prefix=no
10243 need_version=no
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10245 soname_spec='${libname}${release}${shared_ext}$major'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 ;;
10248
7a938933
ILT
10249freebsd* | dragonfly*)
10250 # DragonFly does not have aout. When/if they implement a new
10251 # versioning mechanism, adjust this.
10252 if test -x /usr/bin/objformat; then
10253 objformat=`/usr/bin/objformat`
10254 else
10255 case $host_os in
10256 freebsd[123]*) objformat=aout ;;
10257 *) objformat=elf ;;
10258 esac
10259 fi
10260 version_type=freebsd-$objformat
10261 case $version_type in
10262 freebsd-elf*)
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10264 need_version=no
10265 need_lib_prefix=no
10266 ;;
10267 freebsd-*)
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10269 need_version=yes
10270 ;;
10271 esac
10272 shlibpath_var=LD_LIBRARY_PATH
10273 case $host_os in
10274 freebsd2*)
10275 shlibpath_overrides_runpath=yes
10276 ;;
10277 freebsd3.[01]* | freebsdelf3.[01]*)
10278 shlibpath_overrides_runpath=yes
10279 hardcode_into_libs=yes
10280 ;;
10281 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10282 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10283 shlibpath_overrides_runpath=no
10284 hardcode_into_libs=yes
10285 ;;
10286 *) # from 4.6 on, and DragonFly
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10289 ;;
10290 esac
10291 ;;
10292
10293gnu*)
10294 version_type=linux
10295 need_lib_prefix=no
10296 need_version=no
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 hardcode_into_libs=yes
10301 ;;
10302
10303haiku*)
10304 version_type=linux
10305 need_lib_prefix=no
10306 need_version=no
10307 dynamic_linker="$host_os runtime_loader"
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 shlibpath_var=LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes
10312 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10313 hardcode_into_libs=yes
10314 ;;
10315
10316hpux9* | hpux10* | hpux11*)
10317 # Give a soname corresponding to the major version so that dld.sl refuses to
10318 # link against other versions.
10319 version_type=sunos
10320 need_lib_prefix=no
10321 need_version=no
10322 case $host_cpu in
10323 ia64*)
10324 shrext_cmds='.so'
10325 hardcode_into_libs=yes
10326 dynamic_linker="$host_os dld.so"
10327 shlibpath_var=LD_LIBRARY_PATH
10328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 if test "X$HPUX_IA64_MODE" = X32; then
10332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10333 else
10334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10335 fi
10336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10337 ;;
10338 hppa*64*)
10339 shrext_cmds='.sl'
10340 hardcode_into_libs=yes
10341 dynamic_linker="$host_os dld.sl"
10342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345 soname_spec='${libname}${release}${shared_ext}$major'
10346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10348 ;;
10349 *)
10350 shrext_cmds='.sl'
10351 dynamic_linker="$host_os dld.sl"
10352 shlibpath_var=SHLIB_PATH
10353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 ;;
10357 esac
10358 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10359 postinstall_cmds='chmod 555 $lib'
10360 # or fails outright, so override atomically:
10361 install_override_mode=555
10362 ;;
10363
10364interix[3-9]*)
10365 version_type=linux
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=no
10373 hardcode_into_libs=yes
10374 ;;
10375
10376irix5* | irix6* | nonstopux*)
10377 case $host_os in
10378 nonstopux*) version_type=nonstopux ;;
10379 *)
10380 if test "$lt_cv_prog_gnu_ld" = yes; then
10381 version_type=linux
10382 else
10383 version_type=irix
10384 fi ;;
10385 esac
10386 need_lib_prefix=no
10387 need_version=no
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10390 case $host_os in
10391 irix5* | nonstopux*)
10392 libsuff= shlibsuff=
10393 ;;
10394 *)
10395 case $LD in # libtool.m4 will add one of these switches to LD
10396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10397 libsuff= shlibsuff= libmagic=32-bit;;
10398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10399 libsuff=32 shlibsuff=N32 libmagic=N32;;
10400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10402 *) libsuff= shlibsuff= libmagic=never-match;;
10403 esac
10404 ;;
10405 esac
10406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10407 shlibpath_overrides_runpath=no
10408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10410 hardcode_into_libs=yes
10411 ;;
10412
10413# No shared lib support for Linux oldld, aout, or coff.
10414linux*oldld* | linux*aout* | linux*coff*)
10415 dynamic_linker=no
10416 ;;
10417
10418# This must be Linux ELF.
10419linux* | k*bsd*-gnu | kopensolaris*-gnu)
10420 version_type=linux
10421 need_lib_prefix=no
10422 need_version=no
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 soname_spec='${libname}${release}${shared_ext}$major'
10425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=no
10428
10429 # Some binutils ld are patched to set DT_RUNPATH
10430 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10431 $as_echo_n "(cached) " >&6
10432else
10433 lt_cv_shlibpath_overrides_runpath=no
10434 save_LDFLAGS=$LDFLAGS
10435 save_libdir=$libdir
10436 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10437 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439/* end confdefs.h. */
10440
10441int
10442main ()
10443{
10444
10445 ;
10446 return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10451 lt_cv_shlibpath_overrides_runpath=yes
10452fi
10453fi
10454rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 LDFLAGS=$save_LDFLAGS
10457 libdir=$save_libdir
10458
10459fi
10460
10461 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10462
10463 # This implies no fast_install, which is unacceptable.
10464 # Some rework will be needed to allow for fast_install
10465 # before this can be enabled.
10466 hardcode_into_libs=yes
10467
10468 # Append ld.so.conf contents to the search path
10469 if test -f /etc/ld.so.conf; then
10470 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' ' '`
10471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10472 fi
10473
10474 # We used to test for /lib/ld.so.1 and disable shared libraries on
10475 # powerpc, because MkLinux only supported shared libraries with the
10476 # GNU dynamic linker. Since this was broken with cross compilers,
10477 # most powerpc-linux boxes support dynamic linking these days and
10478 # people can always --disable-shared, the test was removed, and we
10479 # assume the GNU/Linux dynamic linker is in use.
10480 dynamic_linker='GNU/Linux ld.so'
10481 ;;
10482
10483netbsd*)
10484 version_type=sunos
10485 need_lib_prefix=no
10486 need_version=no
10487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10490 dynamic_linker='NetBSD (a.out) ld.so'
10491 else
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 dynamic_linker='NetBSD ld.elf_so'
10495 fi
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 hardcode_into_libs=yes
10499 ;;
10500
10501newsos6)
10502 version_type=linux
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 shlibpath_overrides_runpath=yes
10506 ;;
10507
10508*nto* | *qnx*)
10509 version_type=qnx
10510 need_lib_prefix=no
10511 need_version=no
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=no
10516 hardcode_into_libs=yes
10517 dynamic_linker='ldqnx.so'
10518 ;;
10519
10520openbsd*)
10521 version_type=sunos
10522 sys_lib_dlsearch_path_spec="/usr/lib"
10523 need_lib_prefix=no
10524 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10525 case $host_os in
10526 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10527 *) need_version=no ;;
10528 esac
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10533 case $host_os in
10534 openbsd2.[89] | openbsd2.[89].*)
10535 shlibpath_overrides_runpath=no
10536 ;;
10537 *)
10538 shlibpath_overrides_runpath=yes
10539 ;;
10540 esac
10541 else
10542 shlibpath_overrides_runpath=yes
10543 fi
10544 ;;
10545
10546os2*)
10547 libname_spec='$name'
10548 shrext_cmds=".dll"
10549 need_lib_prefix=no
10550 library_names_spec='$libname${shared_ext} $libname.a'
10551 dynamic_linker='OS/2 ld.exe'
10552 shlibpath_var=LIBPATH
10553 ;;
10554
10555osf3* | osf4* | osf5*)
10556 version_type=osf
10557 need_lib_prefix=no
10558 need_version=no
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10564 ;;
10565
10566rdos*)
10567 dynamic_linker=no
10568 ;;
10569
10570solaris*)
10571 version_type=linux
10572 need_lib_prefix=no
10573 need_version=no
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10579 # ldd complains unless libraries are executable
10580 postinstall_cmds='chmod +x $lib'
10581 ;;
10582
10583sunos4*)
10584 version_type=sunos
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10586 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=yes
10589 if test "$with_gnu_ld" = yes; then
10590 need_lib_prefix=no
10591 fi
10592 need_version=yes
10593 ;;
10594
10595sysv4 | sysv4.3*)
10596 version_type=linux
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 case $host_vendor in
10601 sni)
10602 shlibpath_overrides_runpath=no
10603 need_lib_prefix=no
10604 runpath_var=LD_RUN_PATH
10605 ;;
10606 siemens)
10607 need_lib_prefix=no
10608 ;;
10609 motorola)
10610 need_lib_prefix=no
10611 need_version=no
10612 shlibpath_overrides_runpath=no
10613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10614 ;;
10615 esac
10616 ;;
10617
10618sysv4*MP*)
10619 if test -d /usr/nec ;then
10620 version_type=linux
10621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10622 soname_spec='$libname${shared_ext}.$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 fi
10625 ;;
10626
10627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10628 version_type=freebsd-elf
10629 need_lib_prefix=no
10630 need_version=no
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=yes
10635 hardcode_into_libs=yes
10636 if test "$with_gnu_ld" = yes; then
10637 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10638 else
10639 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10640 case $host_os in
10641 sco3.2v5*)
10642 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10643 ;;
10644 esac
10645 fi
10646 sys_lib_dlsearch_path_spec='/usr/lib'
10647 ;;
10648
10649tpf*)
10650 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10651 version_type=linux
10652 need_lib_prefix=no
10653 need_version=no
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=no
10657 hardcode_into_libs=yes
10658 ;;
10659
10660uts4*)
10661 version_type=linux
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 ;;
10666
10667*)
10668 dynamic_linker=no
10669 ;;
10670esac
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10672$as_echo "$dynamic_linker" >&6; }
10673test "$dynamic_linker" = no && can_build_shared=no
10674
10675variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10676if test "$GCC" = yes; then
10677 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10678fi
10679
10680if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10681 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10682fi
10683if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10684 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10685fi
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
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10779$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10780hardcode_action=
10781if test -n "$hardcode_libdir_flag_spec" ||
10782 test -n "$runpath_var" ||
10783 test "X$hardcode_automatic" = "Xyes" ; then
10784
10785 # We can hardcode non-existent directories.
10786 if test "$hardcode_direct" != no &&
10787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10788 # have to relink, otherwise we might link with an installed library
10789 # when we should be linking with a yet-to-be-installed one
10790 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10791 test "$hardcode_minus_L" != no; then
10792 # Linking always hardcodes the temporary library directory.
10793 hardcode_action=relink
10794 else
10795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10796 hardcode_action=immediate
10797 fi
10798else
10799 # We cannot hardcode anything, or else we can only hardcode existing
10800 # directories.
10801 hardcode_action=unsupported
10802fi
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10804$as_echo "$hardcode_action" >&6; }
10805
10806if test "$hardcode_action" = relink ||
10807 test "$inherit_rpath" = yes; then
10808 # Fast installation is not supported
10809 enable_fast_install=no
10810elif test "$shlibpath_overrides_runpath" = yes ||
10811 test "$enable_shared" = no; then
10812 # Fast installation is not necessary
10813 enable_fast_install=needless
10814fi
10815
10816
10817
10818
10819
10820
10821 if test "x$enable_dlopen" != xyes; then
10822 enable_dlopen=unknown
10823 enable_dlopen_self=unknown
10824 enable_dlopen_self_static=unknown
10825else
10826 lt_cv_dlopen=no
10827 lt_cv_dlopen_libs=
10828
10829 case $host_os in
10830 beos*)
10831 lt_cv_dlopen="load_add_on"
10832 lt_cv_dlopen_libs=
10833 lt_cv_dlopen_self=yes
10834 ;;
10835
10836 mingw* | pw32* | cegcc*)
10837 lt_cv_dlopen="LoadLibrary"
10838 lt_cv_dlopen_libs=
10839 ;;
10840
10841 cygwin*)
10842 lt_cv_dlopen="dlopen"
10843 lt_cv_dlopen_libs=
10844 ;;
10845
10846 darwin*)
10847 # if libdl is installed we need to link against it
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10849$as_echo_n "checking for dlopen in -ldl... " >&6; }
10850if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10852else
10853 ac_check_lib_save_LIBS=$LIBS
10854LIBS="-ldl $LIBS"
10855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856/* end confdefs.h. */
10857
10858/* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
10861#ifdef __cplusplus
10862extern "C"
10863#endif
10864char dlopen ();
10865int
10866main ()
10867{
10868return dlopen ();
10869 ;
10870 return 0;
10871}
10872_ACEOF
10873if ac_fn_c_try_link "$LINENO"; then :
10874 ac_cv_lib_dl_dlopen=yes
10875else
10876 ac_cv_lib_dl_dlopen=no
10877fi
10878rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880LIBS=$ac_check_lib_save_LIBS
10881fi
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10883$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10884if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10886else
10887
10888 lt_cv_dlopen="dyld"
10889 lt_cv_dlopen_libs=
10890 lt_cv_dlopen_self=yes
10891
10892fi
10893
10894 ;;
10895
10896 *)
10897 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10898if test "x$ac_cv_func_shl_load" = x""yes; then :
10899 lt_cv_dlopen="shl_load"
10900else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10902$as_echo_n "checking for shl_load in -ldld... " >&6; }
10903if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10904 $as_echo_n "(cached) " >&6
10905else
10906 ac_check_lib_save_LIBS=$LIBS
10907LIBS="-ldld $LIBS"
10908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909/* end confdefs.h. */
10910
10911/* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914#ifdef __cplusplus
10915extern "C"
10916#endif
10917char shl_load ();
10918int
10919main ()
10920{
10921return shl_load ();
10922 ;
10923 return 0;
10924}
10925_ACEOF
10926if ac_fn_c_try_link "$LINENO"; then :
10927 ac_cv_lib_dld_shl_load=yes
10928else
10929 ac_cv_lib_dld_shl_load=no
10930fi
10931rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933LIBS=$ac_check_lib_save_LIBS
10934fi
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10936$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10937if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10938 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10939else
10940 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10941if test "x$ac_cv_func_dlopen" = x""yes; then :
10942 lt_cv_dlopen="dlopen"
10943else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10945$as_echo_n "checking for dlopen in -ldl... " >&6; }
10946if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10947 $as_echo_n "(cached) " >&6
10948else
10949 ac_check_lib_save_LIBS=$LIBS
10950LIBS="-ldl $LIBS"
10951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952/* end confdefs.h. */
10953
10954/* Override any GCC internal prototype to avoid an error.
10955 Use char because int might match the return type of a GCC
10956 builtin and then its argument prototype would still apply. */
10957#ifdef __cplusplus
10958extern "C"
10959#endif
10960char dlopen ();
10961int
10962main ()
10963{
10964return dlopen ();
10965 ;
10966 return 0;
10967}
10968_ACEOF
10969if ac_fn_c_try_link "$LINENO"; then :
10970 ac_cv_lib_dl_dlopen=yes
10971else
10972 ac_cv_lib_dl_dlopen=no
10973fi
10974rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976LIBS=$ac_check_lib_save_LIBS
10977fi
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10979$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10980if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10981 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10982else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10984$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10985if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10987else
10988 ac_check_lib_save_LIBS=$LIBS
10989LIBS="-lsvld $LIBS"
10990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991/* end confdefs.h. */
10992
10993/* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996#ifdef __cplusplus
10997extern "C"
10998#endif
10999char dlopen ();
11000int
11001main ()
11002{
11003return dlopen ();
11004 ;
11005 return 0;
11006}
11007_ACEOF
11008if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_svld_dlopen=yes
11010else
11011 ac_cv_lib_svld_dlopen=no
11012fi
11013rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015LIBS=$ac_check_lib_save_LIBS
11016fi
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11018$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11019if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11021else
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11023$as_echo_n "checking for dld_link in -ldld... " >&6; }
11024if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11026else
11027 ac_check_lib_save_LIBS=$LIBS
11028LIBS="-ldld $LIBS"
11029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h. */
11031
11032/* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11035#ifdef __cplusplus
11036extern "C"
11037#endif
11038char dld_link ();
11039int
11040main ()
11041{
11042return dld_link ();
11043 ;
11044 return 0;
11045}
11046_ACEOF
11047if ac_fn_c_try_link "$LINENO"; then :
11048 ac_cv_lib_dld_dld_link=yes
11049else
11050 ac_cv_lib_dld_dld_link=no
11051fi
11052rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054LIBS=$ac_check_lib_save_LIBS
11055fi
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11057$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11058if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11059 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11060fi
11061
11062
11063fi
11064
11065
11066fi
11067
11068
11069fi
11070
11071
11072fi
11073
11074
11075fi
11076
11077 ;;
11078 esac
11079
11080 if test "x$lt_cv_dlopen" != xno; then
11081 enable_dlopen=yes
11082 else
11083 enable_dlopen=no
11084 fi
11085
11086 case $lt_cv_dlopen in
11087 dlopen)
11088 save_CPPFLAGS="$CPPFLAGS"
11089 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11090
11091 save_LDFLAGS="$LDFLAGS"
11092 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11093
11094 save_LIBS="$LIBS"
11095 LIBS="$lt_cv_dlopen_libs $LIBS"
11096
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11098$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11099if test "${lt_cv_dlopen_self+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11101else
11102 if test "$cross_compiling" = yes; then :
11103 lt_cv_dlopen_self=cross
11104else
11105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11106 lt_status=$lt_dlunknown
11107 cat > conftest.$ac_ext <<_LT_EOF
7134cf28 11108#line 11108 "configure"
7a938933
ILT
11109#include "confdefs.h"
11110
11111#if HAVE_DLFCN_H
11112#include <dlfcn.h>
11113#endif
11114
11115#include <stdio.h>
11116
11117#ifdef RTLD_GLOBAL
11118# define LT_DLGLOBAL RTLD_GLOBAL
11119#else
11120# ifdef DL_GLOBAL
11121# define LT_DLGLOBAL DL_GLOBAL
11122# else
11123# define LT_DLGLOBAL 0
11124# endif
11125#endif
11126
11127/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11128 find out it does not work in some platform. */
11129#ifndef LT_DLLAZY_OR_NOW
11130# ifdef RTLD_LAZY
11131# define LT_DLLAZY_OR_NOW RTLD_LAZY
11132# else
11133# ifdef DL_LAZY
11134# define LT_DLLAZY_OR_NOW DL_LAZY
11135# else
11136# ifdef RTLD_NOW
11137# define LT_DLLAZY_OR_NOW RTLD_NOW
11138# else
11139# ifdef DL_NOW
11140# define LT_DLLAZY_OR_NOW DL_NOW
11141# else
11142# define LT_DLLAZY_OR_NOW 0
11143# endif
11144# endif
11145# endif
11146# endif
11147#endif
11148
11149/* When -fvisbility=hidden is used, assume the code has been annotated
11150 correspondingly for the symbols needed. */
11151#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11152void fnord () __attribute__((visibility("default")));
11153#endif
11154
11155void fnord () { int i=42; }
11156int main ()
11157{
11158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11159 int status = $lt_dlunknown;
11160
11161 if (self)
11162 {
11163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11164 else
11165 {
11166 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11167 else puts (dlerror ());
11168 }
11169 /* dlclose (self); */
11170 }
11171 else
11172 puts (dlerror ());
11173
11174 return status;
11175}
11176_LT_EOF
11177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11178 (eval $ac_link) 2>&5
11179 ac_status=$?
11180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11181 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11182 (./conftest; exit; ) >&5 2>/dev/null
11183 lt_status=$?
11184 case x$lt_status in
11185 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11186 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11187 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11188 esac
11189 else :
11190 # compilation failed
11191 lt_cv_dlopen_self=no
11192 fi
11193fi
11194rm -fr conftest*
11195
11196
11197fi
11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11199$as_echo "$lt_cv_dlopen_self" >&6; }
11200
11201 if test "x$lt_cv_dlopen_self" = xyes; then
11202 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11204$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11205if test "${lt_cv_dlopen_self_static+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11207else
11208 if test "$cross_compiling" = yes; then :
11209 lt_cv_dlopen_self_static=cross
11210else
11211 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11212 lt_status=$lt_dlunknown
11213 cat > conftest.$ac_ext <<_LT_EOF
7134cf28 11214#line 11214 "configure"
7a938933
ILT
11215#include "confdefs.h"
11216
11217#if HAVE_DLFCN_H
11218#include <dlfcn.h>
11219#endif
11220
11221#include <stdio.h>
11222
11223#ifdef RTLD_GLOBAL
11224# define LT_DLGLOBAL RTLD_GLOBAL
11225#else
11226# ifdef DL_GLOBAL
11227# define LT_DLGLOBAL DL_GLOBAL
11228# else
11229# define LT_DLGLOBAL 0
11230# endif
11231#endif
11232
11233/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11234 find out it does not work in some platform. */
11235#ifndef LT_DLLAZY_OR_NOW
11236# ifdef RTLD_LAZY
11237# define LT_DLLAZY_OR_NOW RTLD_LAZY
11238# else
11239# ifdef DL_LAZY
11240# define LT_DLLAZY_OR_NOW DL_LAZY
11241# else
11242# ifdef RTLD_NOW
11243# define LT_DLLAZY_OR_NOW RTLD_NOW
11244# else
11245# ifdef DL_NOW
11246# define LT_DLLAZY_OR_NOW DL_NOW
11247# else
11248# define LT_DLLAZY_OR_NOW 0
11249# endif
11250# endif
11251# endif
11252# endif
11253#endif
11254
11255/* When -fvisbility=hidden is used, assume the code has been annotated
11256 correspondingly for the symbols needed. */
11257#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11258void fnord () __attribute__((visibility("default")));
11259#endif
11260
11261void fnord () { int i=42; }
11262int main ()
11263{
11264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11265 int status = $lt_dlunknown;
11266
11267 if (self)
11268 {
11269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11270 else
11271 {
11272 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11273 else puts (dlerror ());
11274 }
11275 /* dlclose (self); */
11276 }
11277 else
11278 puts (dlerror ());
11279
11280 return status;
11281}
11282_LT_EOF
11283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11284 (eval $ac_link) 2>&5
11285 ac_status=$?
11286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11288 (./conftest; exit; ) >&5 2>/dev/null
11289 lt_status=$?
11290 case x$lt_status in
11291 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11292 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11293 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11294 esac
11295 else :
11296 # compilation failed
11297 lt_cv_dlopen_self_static=no
11298 fi
11299fi
11300rm -fr conftest*
11301
11302
11303fi
11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11305$as_echo "$lt_cv_dlopen_self_static" >&6; }
11306 fi
11307
11308 CPPFLAGS="$save_CPPFLAGS"
11309 LDFLAGS="$save_LDFLAGS"
11310 LIBS="$save_LIBS"
11311 ;;
11312 esac
11313
11314 case $lt_cv_dlopen_self in
11315 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11316 *) enable_dlopen_self=unknown ;;
11317 esac
11318
11319 case $lt_cv_dlopen_self_static in
11320 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11321 *) enable_dlopen_self_static=unknown ;;
11322 esac
11323fi
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341striplib=
11342old_striplib=
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11344$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11345if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11346 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11347 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11349$as_echo "yes" >&6; }
11350else
11351# FIXME - insert some real tests, host_os isn't really good enough
11352 case $host_os in
11353 darwin*)
11354 if test -n "$STRIP" ; then
11355 striplib="$STRIP -x"
11356 old_striplib="$STRIP -S"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11358$as_echo "yes" >&6; }
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361$as_echo "no" >&6; }
11362 fi
11363 ;;
11364 *)
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11366$as_echo "no" >&6; }
11367 ;;
11368 esac
11369fi
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382 # Report which library types will actually be built
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11384$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11386$as_echo "$can_build_shared" >&6; }
11387
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11389$as_echo_n "checking whether to build shared libraries... " >&6; }
11390 test "$can_build_shared" = "no" && enable_shared=no
11391
11392 # On AIX, shared libraries and static libraries use the same namespace, and
11393 # are all built from PIC.
11394 case $host_os in
11395 aix3*)
11396 test "$enable_shared" = yes && enable_static=no
11397 if test -n "$RANLIB"; then
11398 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11399 postinstall_cmds='$RANLIB $lib'
11400 fi
11401 ;;
11402
11403 aix[4-9]*)
11404 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11405 test "$enable_shared" = yes && enable_static=no
11406 fi
11407 ;;
11408 esac
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11410$as_echo "$enable_shared" >&6; }
11411
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11413$as_echo_n "checking whether to build static libraries... " >&6; }
11414 # Make sure either enable_shared or enable_static is yes.
11415 test "$enable_shared" = yes || enable_static=yes
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11417$as_echo "$enable_static" >&6; }
11418
11419
11420
11421
11422fi
11423ac_ext=c
11424ac_cpp='$CPP $CPPFLAGS'
11425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428
11429CC="$lt_save_CC"
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443# Source file extension for Go test sources.
11444ac_ext=go
11445
11446# Object file extension for compiled Go test sources.
11447objext=o
11448objext_GO=$objext
11449
11450# Code to be used in simple compile tests
11451lt_simple_compile_test_code="package main; func main() { }"
11452
11453# Code to be used in simple link tests
11454lt_simple_link_test_code='package main; func main() { }'
11455
11456# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11457
11458
11459
11460
11461
11462
11463# If no C compiler was specified, use CC.
11464LTCC=${LTCC-"$CC"}
11465
11466# If no C compiler flags were specified, use CFLAGS.
11467LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11468
11469# Allow CC to be a program name with arguments.
11470compiler=$CC
11471
11472
11473# save warnings/boilerplate of simple test code
11474ac_outfile=conftest.$ac_objext
11475echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11476eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11477_lt_compiler_boilerplate=`cat conftest.err`
11478$RM conftest*
11479
11480ac_outfile=conftest.$ac_objext
11481echo "$lt_simple_link_test_code" >conftest.$ac_ext
11482eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11483_lt_linker_boilerplate=`cat conftest.err`
11484$RM -r conftest*
11485
11486
11487# Allow CC to be a program name with arguments.
11488lt_save_CC="$CC"
11489lt_save_GCC="$GCC"
11490GCC=yes
11491CC=${GOC-"gccgo"}
11492compiler=$CC
11493compiler_GO=$CC
11494LD_GO="$LD"
11495for cc_temp in $compiler""; do
11496 case $cc_temp in
11497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11499 \-*) ;;
11500 *) break;;
11501 esac
11502done
11503cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11504
11505
11506# Go did not exist at the time GCC didn't implicitly link libc in.
11507archive_cmds_need_lc_GO=no
11508
11509old_archive_cmds_GO=$old_archive_cmds
11510
11511## CAVEAT EMPTOR:
11512## There is no encapsulation within the following macros, do not change
11513## the running order or otherwise move them around unless you know exactly
11514## what you are doing...
11515if test -n "$compiler"; then
11516
11517lt_prog_compiler_no_builtin_flag_GO=
11518
11519if test "$GCC" = yes; then
11520 case $cc_basename in
11521 nvcc*)
11522 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11523 *)
11524 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11525 esac
11526
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11528$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11529if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531else
11532 lt_cv_prog_compiler_rtti_exceptions=no
11533 ac_outfile=conftest.$ac_objext
11534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11535 lt_compiler_flag="-fno-rtti -fno-exceptions"
11536 # Insert the option either (1) after the last *FLAGS variable, or
11537 # (2) before a word containing "conftest.", or (3) at the end.
11538 # Note that $ac_compile itself does not contain backslashes and begins
11539 # with a dollar sign (not a hyphen), so the echo should work correctly.
11540 # The option is referenced via a variable to avoid confusing sed.
11541 lt_compile=`echo "$ac_compile" | $SED \
11542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11544 -e 's:$: $lt_compiler_flag:'`
11545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11546 (eval "$lt_compile" 2>conftest.err)
11547 ac_status=$?
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 if (exit $ac_status) && test -s "$ac_outfile"; then
11551 # The compiler can only warn and ignore the option if not recognized
11552 # So say no if there are warnings other than the usual output.
11553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11555 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11556 lt_cv_prog_compiler_rtti_exceptions=yes
11557 fi
11558 fi
11559 $RM conftest*
11560
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11563$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11564
11565if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11566 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11567else
11568 :
11569fi
11570
11571fi
11572
11573
11574
11575 lt_prog_compiler_wl_GO=
11576lt_prog_compiler_pic_GO=
11577lt_prog_compiler_static_GO=
11578
11579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11580$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11581
11582 if test "$GCC" = yes; then
11583 lt_prog_compiler_wl_GO='-Wl,'
11584 lt_prog_compiler_static_GO='-static'
11585
11586 case $host_os in
11587 aix*)
11588 # All AIX code is PIC.
11589 if test "$host_cpu" = ia64; then
11590 # AIX 5 now supports IA64 processor
11591 lt_prog_compiler_static_GO='-Bstatic'
11592 fi
11593 ;;
11594
11595 amigaos*)
11596 case $host_cpu in
11597 powerpc)
11598 # see comment about AmigaOS4 .so support
11599 lt_prog_compiler_pic_GO='-fPIC'
11600 ;;
11601 m68k)
11602 # FIXME: we need at least 68020 code to build shared libraries, but
11603 # adding the `-m68020' flag to GCC prevents building anything better,
11604 # like `-m68040'.
11605 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11606 ;;
11607 esac
11608 ;;
11609
11610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11611 # PIC is the default for these OSes.
11612 ;;
11613
11614 mingw* | cygwin* | pw32* | os2* | cegcc*)
11615 # This hack is so that the source file can tell whether it is being
11616 # built for inclusion in a dll (and should export symbols for example).
11617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11618 # (--disable-auto-import) libraries
11619 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11620 ;;
11621
11622 darwin* | rhapsody*)
11623 # PIC is the default on this platform
11624 # Common symbols not allowed in MH_DYLIB files
11625 lt_prog_compiler_pic_GO='-fno-common'
11626 ;;
11627
11628 haiku*)
11629 # PIC is the default for Haiku.
11630 # The "-static" flag exists, but is broken.
11631 lt_prog_compiler_static_GO=
11632 ;;
11633
11634 hpux*)
11635 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11636 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11637 # sets the default TLS model and affects inlining.
11638 case $host_cpu in
11639 hppa*64*)
11640 # +Z the default
11641 ;;
11642 *)
11643 lt_prog_compiler_pic_GO='-fPIC'
11644 ;;
11645 esac
11646 ;;
11647
11648 interix[3-9]*)
11649 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11650 # Instead, we relocate shared libraries at runtime.
11651 ;;
11652
11653 msdosdjgpp*)
11654 # Just because we use GCC doesn't mean we suddenly get shared libraries
11655 # on systems that don't support them.
11656 lt_prog_compiler_can_build_shared_GO=no
11657 enable_shared=no
11658 ;;
11659
11660 *nto* | *qnx*)
11661 # QNX uses GNU C++, but need to define -shared option too, otherwise
11662 # it will coredump.
11663 lt_prog_compiler_pic_GO='-fPIC -shared'
11664 ;;
11665
11666 sysv4*MP*)
11667 if test -d /usr/nec; then
11668 lt_prog_compiler_pic_GO=-Kconform_pic
11669 fi
11670 ;;
11671
11672 *)
11673 lt_prog_compiler_pic_GO='-fPIC'
11674 ;;
11675 esac
11676
11677 case $cc_basename in
11678 nvcc*) # Cuda Compiler Driver 2.2
11679 lt_prog_compiler_wl_GO='-Xlinker '
11680 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11681 ;;
11682 esac
11683 else
11684 # PORTME Check for flag to pass linker flags through the system compiler.
11685 case $host_os in
11686 aix*)
11687 lt_prog_compiler_wl_GO='-Wl,'
11688 if test "$host_cpu" = ia64; then
11689 # AIX 5 now supports IA64 processor
11690 lt_prog_compiler_static_GO='-Bstatic'
11691 else
11692 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11693 fi
11694 ;;
11695
11696 mingw* | cygwin* | pw32* | os2* | cegcc*)
11697 # This hack is so that the source file can tell whether it is being
11698 # built for inclusion in a dll (and should export symbols for example).
11699 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11700 ;;
11701
11702 hpux9* | hpux10* | hpux11*)
11703 lt_prog_compiler_wl_GO='-Wl,'
11704 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11705 # not for PA HP-UX.
11706 case $host_cpu in
11707 hppa*64*|ia64*)
11708 # +Z the default
11709 ;;
11710 *)
11711 lt_prog_compiler_pic_GO='+Z'
11712 ;;
11713 esac
11714 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11715 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11716 ;;
11717
11718 irix5* | irix6* | nonstopux*)
11719 lt_prog_compiler_wl_GO='-Wl,'
11720 # PIC (with -KPIC) is the default.
11721 lt_prog_compiler_static_GO='-non_shared'
11722 ;;
11723
11724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11725 case $cc_basename in
11726 # old Intel for x86_64 which still supported -KPIC.
11727 ecc*)
11728 lt_prog_compiler_wl_GO='-Wl,'
11729 lt_prog_compiler_pic_GO='-KPIC'
11730 lt_prog_compiler_static_GO='-static'
11731 ;;
11732 # icc used to be incompatible with GCC.
11733 # ICC 10 doesn't accept -KPIC any more.
11734 icc* | ifort*)
11735 lt_prog_compiler_wl_GO='-Wl,'
11736 lt_prog_compiler_pic_GO='-fPIC'
11737 lt_prog_compiler_static_GO='-static'
11738 ;;
11739 # Lahey Fortran 8.1.
11740 lf95*)
11741 lt_prog_compiler_wl_GO='-Wl,'
11742 lt_prog_compiler_pic_GO='--shared'
11743 lt_prog_compiler_static_GO='--static'
11744 ;;
11745 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11746 # Portland Group compilers (*not* the Pentium gcc compiler,
11747 # which looks to be a dead project)
11748 lt_prog_compiler_wl_GO='-Wl,'
11749 lt_prog_compiler_pic_GO='-fpic'
11750 lt_prog_compiler_static_GO='-Bstatic'
11751 ;;
11752 ccc*)
11753 lt_prog_compiler_wl_GO='-Wl,'
11754 # All Alpha code is PIC.
11755 lt_prog_compiler_static_GO='-non_shared'
11756 ;;
11757 xl* | bgxl* | bgf* | mpixl*)
11758 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11759 lt_prog_compiler_wl_GO='-Wl,'
11760 lt_prog_compiler_pic_GO='-qpic'
11761 lt_prog_compiler_static_GO='-qstaticlink'
11762 ;;
11763 *)
11764 case `$CC -V 2>&1 | sed 5q` in
11765 *Sun\ F* | *Sun*Fortran*)
11766 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11767 lt_prog_compiler_pic_GO='-KPIC'
11768 lt_prog_compiler_static_GO='-Bstatic'
11769 lt_prog_compiler_wl_GO=''
11770 ;;
11771 *Sun\ C*)
11772 # Sun C 5.9
11773 lt_prog_compiler_pic_GO='-KPIC'
11774 lt_prog_compiler_static_GO='-Bstatic'
11775 lt_prog_compiler_wl_GO='-Wl,'
11776 ;;
11777 esac
11778 ;;
11779 esac
11780 ;;
11781
11782 newsos6)
11783 lt_prog_compiler_pic_GO='-KPIC'
11784 lt_prog_compiler_static_GO='-Bstatic'
11785 ;;
11786
11787 *nto* | *qnx*)
11788 # QNX uses GNU C++, but need to define -shared option too, otherwise
11789 # it will coredump.
11790 lt_prog_compiler_pic_GO='-fPIC -shared'
11791 ;;
11792
11793 osf3* | osf4* | osf5*)
11794 lt_prog_compiler_wl_GO='-Wl,'
11795 # All OSF/1 code is PIC.
11796 lt_prog_compiler_static_GO='-non_shared'
11797 ;;
11798
11799 rdos*)
11800 lt_prog_compiler_static_GO='-non_shared'
11801 ;;
11802
11803 solaris*)
11804 lt_prog_compiler_pic_GO='-KPIC'
11805 lt_prog_compiler_static_GO='-Bstatic'
11806 case $cc_basename in
11807 f77* | f90* | f95*)
11808 lt_prog_compiler_wl_GO='-Qoption ld ';;
11809 *)
11810 lt_prog_compiler_wl_GO='-Wl,';;
11811 esac
11812 ;;
11813
11814 sunos4*)
11815 lt_prog_compiler_wl_GO='-Qoption ld '
11816 lt_prog_compiler_pic_GO='-PIC'
11817 lt_prog_compiler_static_GO='-Bstatic'
11818 ;;
11819
11820 sysv4 | sysv4.2uw2* | sysv4.3*)
11821 lt_prog_compiler_wl_GO='-Wl,'
11822 lt_prog_compiler_pic_GO='-KPIC'
11823 lt_prog_compiler_static_GO='-Bstatic'
11824 ;;
11825
11826 sysv4*MP*)
11827 if test -d /usr/nec ;then
11828 lt_prog_compiler_pic_GO='-Kconform_pic'
11829 lt_prog_compiler_static_GO='-Bstatic'
11830 fi
11831 ;;
11832
11833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11834 lt_prog_compiler_wl_GO='-Wl,'
11835 lt_prog_compiler_pic_GO='-KPIC'
11836 lt_prog_compiler_static_GO='-Bstatic'
11837 ;;
11838
11839 unicos*)
11840 lt_prog_compiler_wl_GO='-Wl,'
11841 lt_prog_compiler_can_build_shared_GO=no
11842 ;;
11843
11844 uts4*)
11845 lt_prog_compiler_pic_GO='-pic'
11846 lt_prog_compiler_static_GO='-Bstatic'
11847 ;;
11848
11849 *)
11850 lt_prog_compiler_can_build_shared_GO=no
11851 ;;
11852 esac
11853 fi
11854
11855case $host_os in
11856 # For platforms which do not support PIC, -DPIC is meaningless:
11857 *djgpp*)
11858 lt_prog_compiler_pic_GO=
11859 ;;
11860 *)
11861 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11862 ;;
11863esac
11864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11865$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11866
11867
11868
11869#
11870# Check to make sure the PIC flag actually works.
11871#
11872if test -n "$lt_prog_compiler_pic_GO"; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11874$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11875if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11876 $as_echo_n "(cached) " >&6
11877else
11878 lt_cv_prog_compiler_pic_works_GO=no
11879 ac_outfile=conftest.$ac_objext
11880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11881 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11882 # Insert the option either (1) after the last *FLAGS variable, or
11883 # (2) before a word containing "conftest.", or (3) at the end.
11884 # Note that $ac_compile itself does not contain backslashes and begins
11885 # with a dollar sign (not a hyphen), so the echo should work correctly.
11886 # The option is referenced via a variable to avoid confusing sed.
11887 lt_compile=`echo "$ac_compile" | $SED \
11888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890 -e 's:$: $lt_compiler_flag:'`
11891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11892 (eval "$lt_compile" 2>conftest.err)
11893 ac_status=$?
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 if (exit $ac_status) && test -s "$ac_outfile"; then
11897 # The compiler can only warn and ignore the option if not recognized
11898 # So say no if there are warnings other than the usual output.
11899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11902 lt_cv_prog_compiler_pic_works_GO=yes
11903 fi
11904 fi
11905 $RM conftest*
11906
11907fi
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11909$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11910
11911if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11912 case $lt_prog_compiler_pic_GO in
11913 "" | " "*) ;;
11914 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11915 esac
11916else
11917 lt_prog_compiler_pic_GO=
11918 lt_prog_compiler_can_build_shared_GO=no
11919fi
11920
11921fi
11922
11923
11924
11925#
11926# Check to make sure the static flag actually works.
11927#
11928wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11930$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11931if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933else
11934 lt_cv_prog_compiler_static_works_GO=no
11935 save_LDFLAGS="$LDFLAGS"
11936 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11937 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11939 # The linker can only warn and ignore the option if not recognized
11940 # So say no if there are warnings
11941 if test -s conftest.err; then
11942 # Append any errors to the config.log.
11943 cat conftest.err 1>&5
11944 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11946 if diff conftest.exp conftest.er2 >/dev/null; then
11947 lt_cv_prog_compiler_static_works_GO=yes
11948 fi
11949 else
11950 lt_cv_prog_compiler_static_works_GO=yes
11951 fi
11952 fi
11953 $RM -r conftest*
11954 LDFLAGS="$save_LDFLAGS"
11955
11956fi
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11958$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11959
11960if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11961 :
11962else
11963 lt_prog_compiler_static_GO=
11964fi
11965
11966
11967
11968
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11970$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11971if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11972 $as_echo_n "(cached) " >&6
11973else
11974 lt_cv_prog_compiler_c_o_GO=no
11975 $RM -r conftest 2>/dev/null
11976 mkdir conftest
11977 cd conftest
11978 mkdir out
11979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11980
11981 lt_compiler_flag="-o out/conftest2.$ac_objext"
11982 # Insert the option either (1) after the last *FLAGS variable, or
11983 # (2) before a word containing "conftest.", or (3) at the end.
11984 # Note that $ac_compile itself does not contain backslashes and begins
11985 # with a dollar sign (not a hyphen), so the echo should work correctly.
11986 lt_compile=`echo "$ac_compile" | $SED \
11987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11989 -e 's:$: $lt_compiler_flag:'`
11990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11991 (eval "$lt_compile" 2>out/conftest.err)
11992 ac_status=$?
11993 cat out/conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11996 then
11997 # The compiler can only warn and ignore the option if not recognized
11998 # So say no if there are warnings
11999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12002 lt_cv_prog_compiler_c_o_GO=yes
12003 fi
12004 fi
12005 chmod u+w . 2>&5
12006 $RM conftest*
12007 # SGI C++ compiler will create directory out/ii_files/ for
12008 # template instantiation
12009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12010 $RM out/* && rmdir out
12011 cd ..
12012 $RM -r conftest
12013 $RM conftest*
12014
12015fi
12016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12017$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12018
12019
12020
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12022$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12023if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12025else
12026 lt_cv_prog_compiler_c_o_GO=no
12027 $RM -r conftest 2>/dev/null
12028 mkdir conftest
12029 cd conftest
12030 mkdir out
12031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12032
12033 lt_compiler_flag="-o out/conftest2.$ac_objext"
12034 # Insert the option either (1) after the last *FLAGS variable, or
12035 # (2) before a word containing "conftest.", or (3) at the end.
12036 # Note that $ac_compile itself does not contain backslashes and begins
12037 # with a dollar sign (not a hyphen), so the echo should work correctly.
12038 lt_compile=`echo "$ac_compile" | $SED \
12039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12041 -e 's:$: $lt_compiler_flag:'`
12042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12043 (eval "$lt_compile" 2>out/conftest.err)
12044 ac_status=$?
12045 cat out/conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12048 then
12049 # The compiler can only warn and ignore the option if not recognized
12050 # So say no if there are warnings
12051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12054 lt_cv_prog_compiler_c_o_GO=yes
12055 fi
12056 fi
12057 chmod u+w . 2>&5
12058 $RM conftest*
12059 # SGI C++ compiler will create directory out/ii_files/ for
12060 # template instantiation
12061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12062 $RM out/* && rmdir out
12063 cd ..
12064 $RM -r conftest
12065 $RM conftest*
12066
12067fi
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12069$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12070
12071
12072
12073
12074hard_links="nottested"
12075if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12076 # do not overwrite the value of need_locks provided by the user
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12078$as_echo_n "checking if we can lock with hard links... " >&6; }
12079 hard_links=yes
12080 $RM conftest*
12081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12082 touch conftest.a
12083 ln conftest.a conftest.b 2>&5 || hard_links=no
12084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12086$as_echo "$hard_links" >&6; }
12087 if test "$hard_links" = no; then
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12089$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12090 need_locks=warn
12091 fi
12092else
12093 need_locks=no
12094fi
12095
12096
12097
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12099$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12100
12101 runpath_var=
12102 allow_undefined_flag_GO=
12103 always_export_symbols_GO=no
12104 archive_cmds_GO=
12105 archive_expsym_cmds_GO=
12106 compiler_needs_object_GO=no
12107 enable_shared_with_static_runtimes_GO=no
12108 export_dynamic_flag_spec_GO=
12109 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12110 hardcode_automatic_GO=no
12111 hardcode_direct_GO=no
12112 hardcode_direct_absolute_GO=no
12113 hardcode_libdir_flag_spec_GO=
12114 hardcode_libdir_flag_spec_ld_GO=
12115 hardcode_libdir_separator_GO=
12116 hardcode_minus_L_GO=no
12117 hardcode_shlibpath_var_GO=unsupported
12118 inherit_rpath_GO=no
12119 link_all_deplibs_GO=unknown
12120 module_cmds_GO=
12121 module_expsym_cmds_GO=
12122 old_archive_from_new_cmds_GO=
12123 old_archive_from_expsyms_cmds_GO=
12124 thread_safe_flag_spec_GO=
12125 whole_archive_flag_spec_GO=
12126 # include_expsyms should be a list of space-separated symbols to be *always*
12127 # included in the symbol list
12128 include_expsyms_GO=
12129 # exclude_expsyms can be an extended regexp of symbols to exclude
12130 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12131 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12132 # as well as any symbol that contains `d'.
12133 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12134 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12135 # platforms (ab)use it in PIC code, but their linkers get confused if
12136 # the symbol is explicitly referenced. Since portable code cannot
12137 # rely on this symbol name, it's probably fine to never include it in
12138 # preloaded symbol tables.
12139 # Exclude shared library initialization/finalization symbols.
12140 extract_expsyms_cmds=
12141
12142 case $host_os in
12143 cygwin* | mingw* | pw32* | cegcc*)
12144 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12145 # When not using gcc, we currently assume that we are using
12146 # Microsoft Visual C++.
12147 if test "$GCC" != yes; then
12148 with_gnu_ld=no
12149 fi
12150 ;;
12151 interix*)
12152 # we just hope/assume this is gcc and not c89 (= MSVC++)
12153 with_gnu_ld=yes
12154 ;;
12155 openbsd*)
12156 with_gnu_ld=no
12157 ;;
12158 esac
12159
12160 ld_shlibs_GO=yes
12161
12162 # On some targets, GNU ld is compatible enough with the native linker
12163 # that we're better off using the native interface for both.
12164 lt_use_gnu_ld_interface=no
12165 if test "$with_gnu_ld" = yes; then
12166 case $host_os in
12167 aix*)
12168 # The AIX port of GNU ld has always aspired to compatibility
12169 # with the native linker. However, as the warning in the GNU ld
12170 # block says, versions before 2.19.5* couldn't really create working
12171 # shared libraries, regardless of the interface used.
12172 case `$LD -v 2>&1` in
12173 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12174 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12175 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12176 *)
12177 lt_use_gnu_ld_interface=yes
12178 ;;
12179 esac
12180 ;;
12181 *)
12182 lt_use_gnu_ld_interface=yes
12183 ;;
12184 esac
12185 fi
12186
12187 if test "$lt_use_gnu_ld_interface" = yes; then
12188 # If archive_cmds runs LD, not CC, wlarc should be empty
12189 wlarc='${wl}'
12190
12191 # Set some defaults for GNU ld with shared library support. These
12192 # are reset later if shared libraries are not supported. Putting them
12193 # here allows them to be overridden if necessary.
12194 runpath_var=LD_RUN_PATH
12195 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12196 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12197 # ancient GNU ld didn't support --whole-archive et. al.
12198 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12199 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12200 else
12201 whole_archive_flag_spec_GO=
12202 fi
12203 supports_anon_versioning=no
12204 case `$LD -v 2>&1` in
12205 *GNU\ gold*) supports_anon_versioning=yes ;;
12206 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12207 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12208 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12209 *\ 2.11.*) ;; # other 2.11 versions
12210 *) supports_anon_versioning=yes ;;
12211 esac
12212
12213 # See if GNU ld supports shared libraries.
12214 case $host_os in
12215 aix[3-9]*)
12216 # On AIX/PPC, the GNU linker is very broken
12217 if test "$host_cpu" != ia64; then
12218 ld_shlibs_GO=no
12219 cat <<_LT_EOF 1>&2
12220
12221*** Warning: the GNU linker, at least up to release 2.19, is reported
12222*** to be unable to reliably create shared libraries on AIX.
12223*** Therefore, libtool is disabling shared libraries support. If you
12224*** really care for shared libraries, you may want to install binutils
12225*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12226*** You will then need to restart the configuration process.
12227
12228_LT_EOF
12229 fi
12230 ;;
12231
12232 amigaos*)
12233 case $host_cpu in
12234 powerpc)
12235 # see comment about AmigaOS4 .so support
12236 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237 archive_expsym_cmds_GO=''
12238 ;;
12239 m68k)
12240 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)'
12241 hardcode_libdir_flag_spec_GO='-L$libdir'
12242 hardcode_minus_L_GO=yes
12243 ;;
12244 esac
12245 ;;
12246
12247 beos*)
12248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12249 allow_undefined_flag_GO=unsupported
12250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12251 # support --undefined. This deserves some investigation. FIXME
12252 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12253 else
12254 ld_shlibs_GO=no
12255 fi
12256 ;;
12257
12258 cygwin* | mingw* | pw32* | cegcc*)
12259 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12260 # as there is no search path for DLLs.
12261 hardcode_libdir_flag_spec_GO='-L$libdir'
12262 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12263 allow_undefined_flag_GO=unsupported
12264 always_export_symbols_GO=no
12265 enable_shared_with_static_runtimes_GO=yes
12266 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12267
12268 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12269 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12270 # If the export-symbols file already is a .def file (1st line
12271 # is EXPORTS), use it as is; otherwise, prepend...
12272 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12273 cp $export_symbols $output_objdir/$soname.def;
12274 else
12275 echo EXPORTS > $output_objdir/$soname.def;
12276 cat $export_symbols >> $output_objdir/$soname.def;
12277 fi~
12278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12279 else
12280 ld_shlibs_GO=no
12281 fi
12282 ;;
12283
12284 haiku*)
12285 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12286 link_all_deplibs_GO=yes
12287 ;;
12288
12289 interix[3-9]*)
12290 hardcode_direct_GO=no
12291 hardcode_shlibpath_var_GO=no
12292 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12293 export_dynamic_flag_spec_GO='${wl}-E'
12294 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12295 # Instead, shared libraries are loaded at an image base (0x10000000 by
12296 # default) and relocated if they conflict, which is a slow very memory
12297 # consuming and fragmenting process. To avoid this, we pick a random,
12298 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12299 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12300 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'
12301 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'
12302 ;;
12303
12304 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12305 tmp_diet=no
12306 if test "$host_os" = linux-dietlibc; then
12307 case $cc_basename in
12308 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12309 esac
12310 fi
12311 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12312 && test "$tmp_diet" = no
12313 then
12314 tmp_addflag=
12315 tmp_sharedflag='-shared'
12316 case $cc_basename,$host_cpu in
12317 pgcc*) # Portland Group C compiler
12318 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'
12319 tmp_addflag=' $pic_flag'
12320 ;;
12321 pgf77* | pgf90* | pgf95* | pgfortran*)
12322 # Portland Group f77 and f90 compilers
12323 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'
12324 tmp_addflag=' $pic_flag -Mnomain' ;;
12325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12326 tmp_addflag=' -i_dynamic' ;;
12327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12328 tmp_addflag=' -i_dynamic -nofor_main' ;;
12329 ifc* | ifort*) # Intel Fortran compiler
12330 tmp_addflag=' -nofor_main' ;;
12331 lf95*) # Lahey Fortran 8.1
12332 whole_archive_flag_spec_GO=
12333 tmp_sharedflag='--shared' ;;
12334 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12335 tmp_sharedflag='-qmkshrobj'
12336 tmp_addflag= ;;
12337 nvcc*) # Cuda Compiler Driver 2.2
12338 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'
12339 compiler_needs_object_GO=yes
12340 ;;
12341 esac
12342 case `$CC -V 2>&1 | sed 5q` in
12343 *Sun\ C*) # Sun C 5.9
12344 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'
12345 compiler_needs_object_GO=yes
12346 tmp_sharedflag='-G' ;;
12347 *Sun\ F*) # Sun Fortran 8.3
12348 tmp_sharedflag='-G' ;;
12349 esac
12350 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12351
12352 if test "x$supports_anon_versioning" = xyes; then
12353 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12355 echo "local: *; };" >> $output_objdir/$libname.ver~
12356 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12357 fi
12358
12359 case $cc_basename in
12360 xlf* | bgf* | bgxlf* | mpixlf*)
12361 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12362 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12363 hardcode_libdir_flag_spec_GO=
12364 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12365 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12366 if test "x$supports_anon_versioning" = xyes; then
12367 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12369 echo "local: *; };" >> $output_objdir/$libname.ver~
12370 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12371 fi
12372 ;;
12373 esac
12374 else
12375 ld_shlibs_GO=no
12376 fi
12377 ;;
12378
12379 netbsd*)
12380 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12381 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12382 wlarc=
12383 else
12384 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12385 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12386 fi
12387 ;;
12388
12389 solaris*)
12390 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12391 ld_shlibs_GO=no
12392 cat <<_LT_EOF 1>&2
12393
12394*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12395*** create shared libraries on Solaris systems. Therefore, libtool
12396*** is disabling shared libraries support. We urge you to upgrade GNU
12397*** binutils to release 2.9.1 or newer. Another option is to modify
12398*** your PATH or compiler configuration so that the native linker is
12399*** used, and then restart.
12400
12401_LT_EOF
12402 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12403 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12405 else
12406 ld_shlibs_GO=no
12407 fi
12408 ;;
12409
12410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12411 case `$LD -v 2>&1` in
12412 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12413 ld_shlibs_GO=no
12414 cat <<_LT_EOF 1>&2
12415
12416*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12417*** reliably create shared libraries on SCO systems. Therefore, libtool
12418*** is disabling shared libraries support. We urge you to upgrade GNU
12419*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12420*** your PATH or compiler configuration so that the native linker is
12421*** used, and then restart.
12422
12423_LT_EOF
12424 ;;
12425 *)
12426 # For security reasons, it is highly recommended that you always
12427 # use absolute paths for naming shared libraries, and exclude the
12428 # DT_RUNPATH tag from executables and libraries. But doing so
12429 # requires that you compile everything twice, which is a pain.
12430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12431 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12432 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12434 else
12435 ld_shlibs_GO=no
12436 fi
12437 ;;
12438 esac
12439 ;;
12440
12441 sunos4*)
12442 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12443 wlarc=
12444 hardcode_direct_GO=yes
12445 hardcode_shlibpath_var_GO=no
12446 ;;
12447
12448 *)
12449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12450 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12451 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12452 else
12453 ld_shlibs_GO=no
12454 fi
12455 ;;
12456 esac
12457
12458 if test "$ld_shlibs_GO" = no; then
12459 runpath_var=
12460 hardcode_libdir_flag_spec_GO=
12461 export_dynamic_flag_spec_GO=
12462 whole_archive_flag_spec_GO=
12463 fi
12464 else
12465 # PORTME fill in a description of your system's linker (not GNU ld)
12466 case $host_os in
12467 aix3*)
12468 allow_undefined_flag_GO=unsupported
12469 always_export_symbols_GO=yes
12470 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'
12471 # Note: this linker hardcodes the directories in LIBPATH if there
12472 # are no directories specified by -L.
12473 hardcode_minus_L_GO=yes
12474 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12475 # Neither direct hardcoding nor static linking is supported with a
12476 # broken collect2.
12477 hardcode_direct_GO=unsupported
12478 fi
12479 ;;
12480
12481 aix[4-9]*)
12482 if test "$host_cpu" = ia64; then
12483 # On IA64, the linker does run time linking by default, so we don't
12484 # have to do anything special.
12485 aix_use_runtimelinking=no
12486 exp_sym_flag='-Bexport'
12487 no_entry_flag=""
12488 else
12489 # If we're using GNU nm, then we don't want the "-C" option.
12490 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12491 # Also, AIX nm treats weak defined symbols like other global
12492 # defined symbols, whereas GNU nm marks them as "W".
12493 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12494 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'
12495 else
12496 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'
12497 fi
12498 aix_use_runtimelinking=no
12499
12500 # Test if we are trying to use run time linking or normal
12501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12502 # need to do runtime linking.
12503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12504 for ld_flag in $LDFLAGS; do
12505 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12506 aix_use_runtimelinking=yes
12507 break
12508 fi
12509 done
12510 ;;
12511 esac
12512
12513 exp_sym_flag='-bexport'
12514 no_entry_flag='-bnoentry'
12515 fi
12516
12517 # When large executables or shared objects are built, AIX ld can
12518 # have problems creating the table of contents. If linking a library
12519 # or program results in "error TOC overflow" add -mminimal-toc to
12520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12522
12523 archive_cmds_GO=''
12524 hardcode_direct_GO=yes
12525 hardcode_direct_absolute_GO=yes
12526 hardcode_libdir_separator_GO=':'
12527 link_all_deplibs_GO=yes
12528 file_list_spec_GO='${wl}-f,'
12529
12530 if test "$GCC" = yes; then
12531 case $host_os in aix4.[012]|aix4.[012].*)
12532 # We only want to do this on AIX 4.2 and lower, the check
12533 # below for broken collect2 doesn't work under 4.3+
12534 collect2name=`${CC} -print-prog-name=collect2`
12535 if test -f "$collect2name" &&
12536 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12537 then
12538 # We have reworked collect2
12539 :
12540 else
12541 # We have old collect2
12542 hardcode_direct_GO=unsupported
12543 # It fails to find uninstalled libraries when the uninstalled
12544 # path is not listed in the libpath. Setting hardcode_minus_L
12545 # to unsupported forces relinking
12546 hardcode_minus_L_GO=yes
12547 hardcode_libdir_flag_spec_GO='-L$libdir'
12548 hardcode_libdir_separator_GO=
12549 fi
12550 ;;
12551 esac
12552 shared_flag='-shared'
12553 if test "$aix_use_runtimelinking" = yes; then
12554 shared_flag="$shared_flag "'${wl}-G'
12555 fi
12556 else
12557 # not using gcc
12558 if test "$host_cpu" = ia64; then
12559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12560 # chokes on -Wl,-G. The following line is correct:
12561 shared_flag='-G'
12562 else
12563 if test "$aix_use_runtimelinking" = yes; then
12564 shared_flag='${wl}-G'
12565 else
12566 shared_flag='${wl}-bM:SRE'
12567 fi
12568 fi
12569 fi
12570
12571 export_dynamic_flag_spec_GO='${wl}-bexpall'
12572 # It seems that -bexpall does not export symbols beginning with
12573 # underscore (_), so it is better to generate a list of symbols to export.
12574 always_export_symbols_GO=yes
12575 if test "$aix_use_runtimelinking" = yes; then
12576 # Warning - without using the other runtime loading flags (-brtl),
12577 # -berok will link without error, but may produce a broken library.
12578 allow_undefined_flag_GO='-berok'
12579 # Determine the default libpath from the value encoded in an
12580 # empty executable.
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582/* end confdefs.h. */
12583
12584int
12585main ()
12586{
12587
12588 ;
12589 return 0;
12590}
12591_ACEOF
12592if ac_fn_c_try_link "$LINENO"; then :
12593
12594lt_aix_libpath_sed='
12595 /Import File Strings/,/^$/ {
12596 /^0/ {
12597 s/^0 *\(.*\)$/\1/
12598 p
12599 }
12600 }'
12601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12602# Check for a 64-bit object if we didn't find anything.
12603if test -z "$aix_libpath"; then
12604 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12605fi
12606fi
12607rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12610
12611 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12612 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"
12613 else
12614 if test "$host_cpu" = ia64; then
12615 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12616 allow_undefined_flag_GO="-z nodefs"
12617 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"
12618 else
12619 # Determine the default libpath from the value encoded in an
12620 # empty executable.
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622/* end confdefs.h. */
12623
12624int
12625main ()
12626{
12627
12628 ;
12629 return 0;
12630}
12631_ACEOF
12632if ac_fn_c_try_link "$LINENO"; then :
12633
12634lt_aix_libpath_sed='
12635 /Import File Strings/,/^$/ {
12636 /^0/ {
12637 s/^0 *\(.*\)$/\1/
12638 p
12639 }
12640 }'
12641aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12642# Check for a 64-bit object if we didn't find anything.
12643if test -z "$aix_libpath"; then
12644 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12645fi
12646fi
12647rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12650
12651 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12652 # Warning - without using the other run time loading flags,
12653 # -berok will link without error, but may produce a broken library.
12654 no_undefined_flag_GO=' ${wl}-bernotok'
12655 allow_undefined_flag_GO=' ${wl}-berok'
12656 if test "$with_gnu_ld" = yes; then
12657 # We only use this code for GNU lds that support --whole-archive.
12658 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12659 else
12660 # Exported symbols can be pulled into shared objects from archives
12661 whole_archive_flag_spec_GO='$convenience'
12662 fi
12663 archive_cmds_need_lc_GO=yes
12664 # This is similar to how AIX traditionally builds its shared libraries.
12665 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12666 fi
12667 fi
12668 ;;
12669
12670 amigaos*)
12671 case $host_cpu in
12672 powerpc)
12673 # see comment about AmigaOS4 .so support
12674 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12675 archive_expsym_cmds_GO=''
12676 ;;
12677 m68k)
12678 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)'
12679 hardcode_libdir_flag_spec_GO='-L$libdir'
12680 hardcode_minus_L_GO=yes
12681 ;;
12682 esac
12683 ;;
12684
12685 bsdi[45]*)
12686 export_dynamic_flag_spec_GO=-rdynamic
12687 ;;
12688
12689 cygwin* | mingw* | pw32* | cegcc*)
12690 # When not using gcc, we currently assume that we are using
12691 # Microsoft Visual C++.
12692 # hardcode_libdir_flag_spec is actually meaningless, as there is
12693 # no search path for DLLs.
12694 hardcode_libdir_flag_spec_GO=' '
12695 allow_undefined_flag_GO=unsupported
12696 # Tell ltmain to make .lib files, not .a files.
12697 libext=lib
12698 # Tell ltmain to make .dll files, not .so files.
12699 shrext_cmds=".dll"
12700 # FIXME: Setting linknames here is a bad hack.
12701 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12702 # The linker will automatically build a .lib file if we build a DLL.
12703 old_archive_from_new_cmds_GO='true'
12704 # FIXME: Should let the user specify the lib program.
12705 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12706 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12707 enable_shared_with_static_runtimes_GO=yes
12708 ;;
12709
12710 darwin* | rhapsody*)
12711
12712
12713 archive_cmds_need_lc_GO=no
12714 hardcode_direct_GO=no
12715 hardcode_automatic_GO=yes
12716 hardcode_shlibpath_var_GO=unsupported
12717 if test "$lt_cv_ld_force_load" = "yes"; then
12718 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\"`'
12719 else
12720 whole_archive_flag_spec_GO=''
12721 fi
12722 link_all_deplibs_GO=yes
12723 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12724 case $cc_basename in
12725 ifort*) _lt_dar_can_shared=yes ;;
12726 *) _lt_dar_can_shared=$GCC ;;
12727 esac
12728 if test "$_lt_dar_can_shared" = "yes"; then
12729 output_verbose_link_cmd=func_echo_all
12730 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}"
12731 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12732 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}"
12733 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}"
12734
12735 else
12736 ld_shlibs_GO=no
12737 fi
12738
12739 ;;
12740
12741 dgux*)
12742 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12743 hardcode_libdir_flag_spec_GO='-L$libdir'
12744 hardcode_shlibpath_var_GO=no
12745 ;;
12746
7a938933
ILT
12747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12748 # support. Future versions do this automatically, but an explicit c++rt0.o
12749 # does not break anything, and helps significantly (at the cost of a little
12750 # extra space).
12751 freebsd2.2*)
12752 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12753 hardcode_libdir_flag_spec_GO='-R$libdir'
12754 hardcode_direct_GO=yes
12755 hardcode_shlibpath_var_GO=no
12756 ;;
12757
12758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12759 freebsd2*)
12760 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12761 hardcode_direct_GO=yes
12762 hardcode_minus_L_GO=yes
12763 hardcode_shlibpath_var_GO=no
12764 ;;
12765
12766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12767 freebsd* | dragonfly*)
12768 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12769 hardcode_libdir_flag_spec_GO='-R$libdir'
12770 hardcode_direct_GO=yes
12771 hardcode_shlibpath_var_GO=no
12772 ;;
12773
12774 hpux9*)
12775 if test "$GCC" = yes; then
12776 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'
12777 else
12778 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'
12779 fi
12780 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12781 hardcode_libdir_separator_GO=:
12782 hardcode_direct_GO=yes
12783
12784 # hardcode_minus_L: Not really in the search PATH,
12785 # but as the default location of the library.
12786 hardcode_minus_L_GO=yes
12787 export_dynamic_flag_spec_GO='${wl}-E'
12788 ;;
12789
12790 hpux10*)
12791 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12792 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12793 else
12794 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12795 fi
12796 if test "$with_gnu_ld" = no; then
12797 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12798 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12799 hardcode_libdir_separator_GO=:
12800 hardcode_direct_GO=yes
12801 hardcode_direct_absolute_GO=yes
12802 export_dynamic_flag_spec_GO='${wl}-E'
12803 # hardcode_minus_L: Not really in the search PATH,
12804 # but as the default location of the library.
12805 hardcode_minus_L_GO=yes
12806 fi
12807 ;;
12808
12809 hpux11*)
12810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12811 case $host_cpu in
12812 hppa*64*)
12813 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12814 ;;
12815 ia64*)
12816 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12817 ;;
12818 *)
12819 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12820 ;;
12821 esac
12822 else
12823 case $host_cpu in
12824 hppa*64*)
12825 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12826 ;;
12827 ia64*)
12828 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12829 ;;
12830 *)
12831 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12832 ;;
12833 esac
12834 fi
12835 if test "$with_gnu_ld" = no; then
12836 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12837 hardcode_libdir_separator_GO=:
12838
12839 case $host_cpu in
12840 hppa*64*|ia64*)
12841 hardcode_direct_GO=no
12842 hardcode_shlibpath_var_GO=no
12843 ;;
12844 *)
12845 hardcode_direct_GO=yes
12846 hardcode_direct_absolute_GO=yes
12847 export_dynamic_flag_spec_GO='${wl}-E'
12848
12849 # hardcode_minus_L: Not really in the search PATH,
12850 # but as the default location of the library.
12851 hardcode_minus_L_GO=yes
12852 ;;
12853 esac
12854 fi
12855 ;;
12856
12857 irix5* | irix6* | nonstopux*)
12858 if test "$GCC" = yes; then
12859 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'
12860 # Try to use the -exported_symbol ld option, if it does not
12861 # work, assume that -exports_file does not work either and
12862 # implicitly export all symbols.
12863 save_LDFLAGS="$LDFLAGS"
12864 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866/* end confdefs.h. */
12867int foo(void) {}
12868_ACEOF
12869if ac_fn_c_try_link "$LINENO"; then :
12870 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'
12871
12872fi
12873rm -f core conftest.err conftest.$ac_objext \
12874 conftest$ac_exeext conftest.$ac_ext
12875 LDFLAGS="$save_LDFLAGS"
12876 else
12877 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'
12878 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'
12879 fi
12880 archive_cmds_need_lc_GO='no'
12881 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12882 hardcode_libdir_separator_GO=:
12883 inherit_rpath_GO=yes
12884 link_all_deplibs_GO=yes
12885 ;;
12886
12887 netbsd*)
12888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12889 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12890 else
12891 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12892 fi
12893 hardcode_libdir_flag_spec_GO='-R$libdir'
12894 hardcode_direct_GO=yes
12895 hardcode_shlibpath_var_GO=no
12896 ;;
12897
12898 newsos6)
12899 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_direct_GO=yes
12901 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12902 hardcode_libdir_separator_GO=:
12903 hardcode_shlibpath_var_GO=no
12904 ;;
12905
12906 *nto* | *qnx*)
12907 ;;
12908
12909 openbsd*)
12910 if test -f /usr/libexec/ld.so; then
12911 hardcode_direct_GO=yes
12912 hardcode_shlibpath_var_GO=no
12913 hardcode_direct_absolute_GO=yes
12914 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12915 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12916 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12917 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12918 export_dynamic_flag_spec_GO='${wl}-E'
12919 else
12920 case $host_os in
12921 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12922 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12923 hardcode_libdir_flag_spec_GO='-R$libdir'
12924 ;;
12925 *)
12926 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12927 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12928 ;;
12929 esac
12930 fi
12931 else
12932 ld_shlibs_GO=no
12933 fi
12934 ;;
12935
12936 os2*)
12937 hardcode_libdir_flag_spec_GO='-L$libdir'
12938 hardcode_minus_L_GO=yes
12939 allow_undefined_flag_GO=unsupported
12940 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'
12941 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12942 ;;
12943
12944 osf3*)
12945 if test "$GCC" = yes; then
12946 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12947 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'
12948 else
12949 allow_undefined_flag_GO=' -expect_unresolved \*'
12950 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'
12951 fi
12952 archive_cmds_need_lc_GO='no'
12953 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12954 hardcode_libdir_separator_GO=:
12955 ;;
12956
12957 osf4* | osf5*) # as osf3* with the addition of -msym flag
12958 if test "$GCC" = yes; then
12959 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12960 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'
12961 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12962 else
12963 allow_undefined_flag_GO=' -expect_unresolved \*'
12964 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'
12965 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~
12966 $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'
12967
12968 # Both c and cxx compiler support -rpath directly
12969 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12970 fi
12971 archive_cmds_need_lc_GO='no'
12972 hardcode_libdir_separator_GO=:
12973 ;;
12974
12975 solaris*)
12976 no_undefined_flag_GO=' -z defs'
12977 if test "$GCC" = yes; then
12978 wlarc='${wl}'
12979 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12980 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12981 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12982 else
12983 case `$CC -V 2>&1` in
12984 *"Compilers 5.0"*)
12985 wlarc=''
12986 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12987 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12988 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12989 ;;
12990 *)
12991 wlarc='${wl}'
12992 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12993 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12994 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12995 ;;
12996 esac
12997 fi
12998 hardcode_libdir_flag_spec_GO='-R$libdir'
12999 hardcode_shlibpath_var_GO=no
13000 case $host_os in
13001 solaris2.[0-5] | solaris2.[0-5].*) ;;
13002 *)
13003 # The compiler driver will combine and reorder linker options,
13004 # but understands `-z linker_flag'. GCC discards it without `$wl',
13005 # but is careful enough not to reorder.
13006 # Supported since Solaris 2.6 (maybe 2.5.1?)
13007 if test "$GCC" = yes; then
13008 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13009 else
13010 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13011 fi
13012 ;;
13013 esac
13014 link_all_deplibs_GO=yes
13015 ;;
13016
13017 sunos4*)
13018 if test "x$host_vendor" = xsequent; then
13019 # Use $CC to link under sequent, because it throws in some extra .o
13020 # files that make .init and .fini sections work.
13021 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13022 else
13023 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13024 fi
13025 hardcode_libdir_flag_spec_GO='-L$libdir'
13026 hardcode_direct_GO=yes
13027 hardcode_minus_L_GO=yes
13028 hardcode_shlibpath_var_GO=no
13029 ;;
13030
13031 sysv4)
13032 case $host_vendor in
13033 sni)
13034 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13035 hardcode_direct_GO=yes # is this really true???
13036 ;;
13037 siemens)
13038 ## LD is ld it makes a PLAMLIB
13039 ## CC just makes a GrossModule.
13040 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13041 reload_cmds_GO='$CC -r -o $output$reload_objs'
13042 hardcode_direct_GO=no
13043 ;;
13044 motorola)
13045 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13046 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13047 ;;
13048 esac
13049 runpath_var='LD_RUN_PATH'
13050 hardcode_shlibpath_var_GO=no
13051 ;;
13052
13053 sysv4.3*)
13054 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13055 hardcode_shlibpath_var_GO=no
13056 export_dynamic_flag_spec_GO='-Bexport'
13057 ;;
13058
13059 sysv4*MP*)
13060 if test -d /usr/nec; then
13061 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13062 hardcode_shlibpath_var_GO=no
13063 runpath_var=LD_RUN_PATH
13064 hardcode_runpath_var=yes
13065 ld_shlibs_GO=yes
13066 fi
13067 ;;
13068
13069 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13070 no_undefined_flag_GO='${wl}-z,text'
13071 archive_cmds_need_lc_GO=no
13072 hardcode_shlibpath_var_GO=no
13073 runpath_var='LD_RUN_PATH'
13074
13075 if test "$GCC" = yes; then
13076 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 else
13079 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13081 fi
13082 ;;
13083
13084 sysv5* | sco3.2v5* | sco5v6*)
13085 # Note: We can NOT use -z defs as we might desire, because we do not
13086 # link with -lc, and that would cause any symbols used from libc to
13087 # always be unresolved, which means just about no library would
13088 # ever link correctly. If we're not using GNU ld we use -z text
13089 # though, which does catch some bad symbols but isn't as heavy-handed
13090 # as -z defs.
13091 no_undefined_flag_GO='${wl}-z,text'
13092 allow_undefined_flag_GO='${wl}-z,nodefs'
13093 archive_cmds_need_lc_GO=no
13094 hardcode_shlibpath_var_GO=no
13095 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13096 hardcode_libdir_separator_GO=':'
13097 link_all_deplibs_GO=yes
13098 export_dynamic_flag_spec_GO='${wl}-Bexport'
13099 runpath_var='LD_RUN_PATH'
13100
13101 if test "$GCC" = yes; then
13102 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13104 else
13105 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13107 fi
13108 ;;
13109
13110 uts4*)
13111 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13112 hardcode_libdir_flag_spec_GO='-L$libdir'
13113 hardcode_shlibpath_var_GO=no
13114 ;;
13115
13116 *)
13117 ld_shlibs_GO=no
13118 ;;
13119 esac
13120
13121 if test x$host_vendor = xsni; then
13122 case $host in
13123 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13124 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13125 ;;
13126 esac
13127 fi
13128 fi
13129
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13131$as_echo "$ld_shlibs_GO" >&6; }
13132test "$ld_shlibs_GO" = no && can_build_shared=no
13133
13134with_gnu_ld_GO=$with_gnu_ld
13135
13136
13137
13138
13139
13140
13141#
13142# Do we need to explicitly link libc?
13143#
13144case "x$archive_cmds_need_lc_GO" in
13145x|xyes)
13146 # Assume -lc should be added
13147 archive_cmds_need_lc_GO=yes
13148
13149 if test "$enable_shared" = yes && test "$GCC" = yes; then
13150 case $archive_cmds_GO in
13151 *'~'*)
13152 # FIXME: we may have to deal with multi-command sequences.
13153 ;;
13154 '$CC '*)
13155 # Test whether the compiler implicitly links with -lc since on some
13156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13157 # to ld, don't add -lc before -lgcc.
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13159$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13160if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13162else
13163 $RM conftest*
13164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13165
13166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13167 (eval $ac_compile) 2>&5
13168 ac_status=$?
13169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13170 test $ac_status = 0; } 2>conftest.err; then
13171 soname=conftest
13172 lib=conftest
13173 libobjs=conftest.$ac_objext
13174 deplibs=
13175 wl=$lt_prog_compiler_wl_GO
13176 pic_flag=$lt_prog_compiler_pic_GO
13177 compiler_flags=-v
13178 linker_flags=-v
13179 verstring=
13180 output_objdir=.
13181 libname=conftest
13182 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13183 allow_undefined_flag_GO=
13184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13185 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13186 ac_status=$?
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }
13189 then
13190 lt_cv_archive_cmds_need_lc_GO=no
13191 else
13192 lt_cv_archive_cmds_need_lc_GO=yes
13193 fi
13194 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13195 else
13196 cat conftest.err 1>&5
13197 fi
13198 $RM conftest*
13199
13200fi
13201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13202$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13203 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13204 ;;
13205 esac
13206 fi
13207 ;;
13208esac
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
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13274$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13275hardcode_action_GO=
13276if test -n "$hardcode_libdir_flag_spec_GO" ||
13277 test -n "$runpath_var_GO" ||
13278 test "X$hardcode_automatic_GO" = "Xyes" ; then
13279
13280 # We can hardcode non-existent directories.
13281 if test "$hardcode_direct_GO" != no &&
13282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13283 # have to relink, otherwise we might link with an installed library
13284 # when we should be linking with a yet-to-be-installed one
13285 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13286 test "$hardcode_minus_L_GO" != no; then
13287 # Linking always hardcodes the temporary library directory.
13288 hardcode_action_GO=relink
13289 else
13290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13291 hardcode_action_GO=immediate
13292 fi
13293else
13294 # We cannot hardcode anything, or else we can only hardcode existing
13295 # directories.
13296 hardcode_action_GO=unsupported
13297fi
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13299$as_echo "$hardcode_action_GO" >&6; }
13300
13301if test "$hardcode_action_GO" = relink ||
13302 test "$inherit_rpath_GO" = yes; then
13303 # Fast installation is not supported
13304 enable_fast_install=no
13305elif test "$shlibpath_overrides_runpath" = yes ||
13306 test "$enable_shared" = no; then
13307 # Fast installation is not necessary
13308 enable_fast_install=needless
13309fi
13310
13311
13312
13313
13314
13315
13316
13317fi
13318
13319ac_ext=c
13320ac_cpp='$CPP $CPPFLAGS'
13321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323ac_compiler_gnu=$ac_cv_c_compiler_gnu
13324
13325
13326GCC=$lt_save_GCC
13327CC="$lt_save_CC"
13328
13329
13330
13331
13332 ac_config_commands="$ac_config_commands libtool"
13333
13334
13335
13336
13337# Only expand once:
13338
13339
13340
13341
13342
d983a802
ILT
13343CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13344
13345
de27caac
ILT
13346for ac_prog in gawk mawk nawk awk
13347do
13348 # Extract the first word of "$ac_prog", so it can be a program name with args.
13349set dummy $ac_prog; ac_word=$2
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351$as_echo_n "checking for $ac_word... " >&6; }
13352if test "${ac_cv_prog_AWK+set}" = set; then :
13353 $as_echo_n "(cached) " >&6
13354else
13355 if test -n "$AWK"; then
13356 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13357else
13358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359for as_dir in $PATH
13360do
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13365 ac_cv_prog_AWK="$ac_prog"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 break 2
13368 fi
13369done
13370 done
13371IFS=$as_save_IFS
13372
13373fi
13374fi
13375AWK=$ac_cv_prog_AWK
13376if test -n "$AWK"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13378$as_echo "$AWK" >&6; }
13379else
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381$as_echo "no" >&6; }
13382fi
13383
13384
13385 test -n "$AWK" && break
13386done
13387
13388
7a938933
ILT
13389WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13390
13391
0d4668c1
ILT
13392# Check whether --enable-werror was given.
13393if test "${enable_werror+set}" = set; then :
13394 enableval=$enable_werror;
13395fi
13396
13397if test "x$enable_werror" != "xno"; then
13398 WERROR="-Werror"
13399fi
7a938933
ILT
13400
13401
13402glibgo_toolexecdir=no
13403glibgo_toolexeclibdir=no
7a938933
ILT
13404
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13406$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13407# Check whether --enable-version-specific-runtime-libs was given.
13408if test "${enable_version_specific_runtime_libs+set}" = set; then :
13409 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13410 yes) version_specific_libs=yes ;;
13411 no) version_specific_libs=no ;;
13412 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13413 esac
13414else
13415 version_specific_libs=no
13416fi
13417
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13419$as_echo "$version_specific_libs" >&6; }
13420
13421# Version-specific runtime libs processing.
13422if test $version_specific_libs = yes; then
13423 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13424 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13425fi
13426
13427# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13428# Install a library built with a cross compiler in tooldir, not libdir.
317ea7c0
ILT
13429if test -n "$with_cross_host" &&
13430 test x"$with_cross_host" != x"no"; then
13431 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13432 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13433else
13434 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13435 nover_glibgo_toolexeclibdir='${libdir}'
13436fi
13437multi_os_directory=`$CC -print-multi-os-directory`
13438case $multi_os_directory in
13439 .) ;; # Avoid trailing /.
13440 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13441esac
13442
7a938933 13443if test x"$glibgo_toolexecdir" = x"no"; then
317ea7c0
ILT
13444 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13445 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
7a938933
ILT
13446fi
13447
13448
13449
13450
13451
13452# See if the user wants to configure without libffi. Some
13453# architectures don't support it. FIXME: We should set a default
13454# based on the host.
13455
13456# Check whether --with-libffi was given.
13457if test "${with_libffi+set}" = set; then :
13458 withval=$with_libffi; :
13459else
13460 with_libffi=${with_libffi_default-yes}
13461fi
13462
13463
13464LIBFFI=
13465LIBFFIINCS=
13466if test "$with_libffi" != no; then
13467
13468$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13469
13470 LIBFFI=../libffi/libffi_convenience.la
13471 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13472fi
13473
13474
13475
18c70075
ILT
13476# Used to tell GNU make to include a file without telling automake to
13477# include it.
13478go_include="-include"
13479
13480
7a938933
ILT
13481is_darwin=no
13482is_freebsd=no
654d2ec0 13483is_irix=no
7a938933 13484is_linux=no
1efa38d1 13485is_netbsd=no
4ccad563 13486is_openbsd=no
7a938933 13487is_rtems=no
f2ee78b8 13488is_solaris=no
c3b5b97b 13489GOOS=unknown
7a938933 13490case ${host} in
f2ee78b8
ILT
13491 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13492 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
654d2ec0 13493 *-*-irix6*) is_irix=yes; GOOS=irix ;;
f2ee78b8 13494 *-*-linux*) is_linux=yes; GOOS=linux ;;
df4aa89a 13495 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
4ccad563 13496 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
f2ee78b8
ILT
13497 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13498 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
7a938933
ILT
13499esac
13500 if test $is_darwin = yes; then
13501 LIBGO_IS_DARWIN_TRUE=
13502 LIBGO_IS_DARWIN_FALSE='#'
13503else
13504 LIBGO_IS_DARWIN_TRUE='#'
13505 LIBGO_IS_DARWIN_FALSE=
13506fi
13507
13508 if test $is_freebsd = yes; then
13509 LIBGO_IS_FREEBSD_TRUE=
13510 LIBGO_IS_FREEBSD_FALSE='#'
13511else
13512 LIBGO_IS_FREEBSD_TRUE='#'
13513 LIBGO_IS_FREEBSD_FALSE=
13514fi
13515
654d2ec0
ILT
13516 if test $is_irix = yes; then
13517 LIBGO_IS_IRIX_TRUE=
13518 LIBGO_IS_IRIX_FALSE='#'
13519else
13520 LIBGO_IS_IRIX_TRUE='#'
13521 LIBGO_IS_IRIX_FALSE=
13522fi
13523
7a938933
ILT
13524 if test $is_linux = yes; then
13525 LIBGO_IS_LINUX_TRUE=
13526 LIBGO_IS_LINUX_FALSE='#'
13527else
13528 LIBGO_IS_LINUX_TRUE='#'
13529 LIBGO_IS_LINUX_FALSE=
13530fi
13531
df4aa89a
ILT
13532 if test $is_netbsd = yes; then
13533 LIBGO_IS_NETBSD_TRUE=
13534 LIBGO_IS_NETBSD_FALSE='#'
13535else
13536 LIBGO_IS_NETBSD_TRUE='#'
13537 LIBGO_IS_NETBSD_FALSE=
13538fi
13539
4ccad563
ILT
13540 if test $is_openbsd = yes; then
13541 LIBGO_IS_OPENBSD_TRUE=
13542 LIBGO_IS_OPENBSD_FALSE='#'
13543else
13544 LIBGO_IS_OPENBSD_TRUE='#'
13545 LIBGO_IS_OPENBSD_FALSE=
13546fi
13547
7a938933
ILT
13548 if test $is_rtems = yes; then
13549 LIBGO_IS_RTEMS_TRUE=
13550 LIBGO_IS_RTEMS_FALSE='#'
13551else
13552 LIBGO_IS_RTEMS_TRUE='#'
13553 LIBGO_IS_RTEMS_FALSE=
13554fi
13555
f2ee78b8
ILT
13556 if test $is_solaris = yes; then
13557 LIBGO_IS_SOLARIS_TRUE=
13558 LIBGO_IS_SOLARIS_FALSE='#'
13559else
13560 LIBGO_IS_SOLARIS_TRUE='#'
13561 LIBGO_IS_SOLARIS_FALSE=
13562fi
13563
7a938933 13564
c3b5b97b 13565
7134cf28
ILT
13566USE_DEJAGNU=no
13567case ${host} in
13568 *-*-rtems*) USE_DEJAGNU=yes ;;
13569 ${target}) ;;
13570 *) USE_DEJAGNU=yes ;;
13571esac
13572
13573
7a938933 13574is_386=no
e59b9171 13575is_alpha=no
7a938933 13576is_arm=no
ca11cc98 13577is_m68k=no
9f3b1e6c 13578mips_abi=unknown
ca11cc98
ILT
13579is_ppc=no
13580is_ppc64=no
f2ee78b8 13581is_sparc=no
545d1aa1 13582is_sparc64=no
f2ee78b8 13583is_x86_64=no
c3b5b97b 13584GOARCH=unknown
7a938933 13585case ${host} in
e59b9171
ILT
13586 alpha*-*-*)
13587 is_alpha=yes
13588 GOARCH=alpha
13589 ;;
ca11cc98
ILT
13590 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13591 is_arm=yes
13592 GOARCH=arm
13593 ;;
c3b5b97b
ILT
13594 i[34567]86-*-* | x86_64-*-*)
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596/* end confdefs.h. */
13597
13598#ifdef __x86_64__
13599#error 64-bit
13600#endif
13601_ACEOF
4a299bf4 13602if ac_fn_c_try_compile "$LINENO"; then :
c3b5b97b
ILT
13603 is_386=yes
13604else
13605 is_x86_64=yes
13606fi
4a299bf4 13607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3b5b97b
ILT
13608 if test "$is_386" = "yes"; then
13609 GOARCH=386
7a938933 13610 else
c3b5b97b 13611 GOARCH=amd64
7a938933
ILT
13612 fi
13613 ;;
ca11cc98
ILT
13614 m68k*-*-*)
13615 is_m68k=yes
13616 GOARCH=m68k
13617 ;;
13618 mips*-*-*)
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620/* end confdefs.h. */
13621
85a09210
ILT
13622#if _MIPS_SIM != _ABIO32
13623#error not o32
13624#endif
13625_ACEOF
13626if ac_fn_c_try_compile "$LINENO"; then :
13627 mips_abi="o32"
13628else
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630/* end confdefs.h. */
13631
13632#if _MIPS_SIM != _ABIN32
13633#error not n32
ca11cc98
ILT
13634#endif
13635_ACEOF
4a299bf4 13636if ac_fn_c_try_compile "$LINENO"; then :
85a09210 13637 mips_abi="n32"
ca11cc98 13638else
85a09210
ILT
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640/* end confdefs.h. */
13641
13642#if _MIPS_SIM != _ABI64
13643#error not n64
13644#endif
13645_ACEOF
13646if ac_fn_c_try_compile "$LINENO"; then :
13647 mips_abi="n64"
13648else
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650/* end confdefs.h. */
13651
13652#if _MIPS_SIM != _ABIO64
13653#error not o64
13654#endif
13655_ACEOF
13656if ac_fn_c_try_compile "$LINENO"; then :
13657 mips_abi="o64"
13658else
13659 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13660mips_abi="n32"
ca11cc98 13661fi
4a299bf4 13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85a09210
ILT
13663fi
13664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13665fi
13666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667fi
13668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13669 case "$mips_abi" in
13670 "o32") GOARCH=mipso32 ;;
13671 "n32") GOARCH=mipsn32 ;;
13672 "n64") GOARCH=mipsn64 ;;
13673 "o64") GOARCH=mipso64 ;;
13674 esac
ca11cc98
ILT
13675 ;;
13676 rs6000*-*-* | powerpc*-*-*)
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678/* end confdefs.h. */
13679
13680#ifdef _ARCH_PPC64
13681#error 64-bit
13682#endif
13683_ACEOF
4a299bf4 13684if ac_fn_c_try_compile "$LINENO"; then :
ca11cc98
ILT
13685 is_ppc=yes
13686else
13687 is_ppc64=yes
13688fi
4a299bf4 13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ca11cc98
ILT
13690 if test "$is_ppc" = "yes"; then
13691 GOARCH=ppc
13692 else
13693 GOARCH=ppc64
13694 fi
7a938933 13695 ;;
f2ee78b8
ILT
13696 sparc*-*-*)
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698/* end confdefs.h. */
13699
13700#if defined(__sparcv9) || defined(__arch64__)
13701#error 64-bit
13702#endif
13703_ACEOF
4a299bf4 13704if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8
ILT
13705 is_sparc=yes
13706else
545d1aa1 13707 is_sparc64=yes
f2ee78b8 13708fi
4a299bf4 13709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f2ee78b8 13710 if test "$is_sparc" = "yes"; then
f2ee78b8
ILT
13711 GOARCH=sparc
13712 else
545d1aa1 13713 GOARCH=sparc64
f2ee78b8
ILT
13714 fi
13715 ;;
7a938933
ILT
13716esac
13717 if test $is_386 = yes; then
13718 LIBGO_IS_386_TRUE=
13719 LIBGO_IS_386_FALSE='#'
13720else
13721 LIBGO_IS_386_TRUE='#'
13722 LIBGO_IS_386_FALSE=
13723fi
13724
e59b9171
ILT
13725 if test $is_alpha = yes; then
13726 LIBGO_IS_ALPHA_TRUE=
13727 LIBGO_IS_ALPHA_FALSE='#'
13728else
13729 LIBGO_IS_ALPHA_TRUE='#'
13730 LIBGO_IS_ALPHA_FALSE=
13731fi
13732
7a938933
ILT
13733 if test $is_arm = yes; then
13734 LIBGO_IS_ARM_TRUE=
13735 LIBGO_IS_ARM_FALSE='#'
13736else
13737 LIBGO_IS_ARM_TRUE='#'
13738 LIBGO_IS_ARM_FALSE=
13739fi
13740
ca11cc98
ILT
13741 if test $is_m68k = yes; then
13742 LIBGO_IS_M68K_TRUE=
13743 LIBGO_IS_M68K_FALSE='#'
13744else
13745 LIBGO_IS_M68K_TRUE='#'
13746 LIBGO_IS_M68K_FALSE=
13747fi
13748
9f3b1e6c 13749 if test $mips_abi != unknown; then
ca11cc98
ILT
13750 LIBGO_IS_MIPS_TRUE=
13751 LIBGO_IS_MIPS_FALSE='#'
13752else
13753 LIBGO_IS_MIPS_TRUE='#'
13754 LIBGO_IS_MIPS_FALSE=
13755fi
13756
85a09210
ILT
13757 if test $mips_abi = o32; then
13758 LIBGO_IS_MIPSO32_TRUE=
13759 LIBGO_IS_MIPSO32_FALSE='#'
13760else
13761 LIBGO_IS_MIPSO32_TRUE='#'
13762 LIBGO_IS_MIPSO32_FALSE=
13763fi
13764
13765 if test $mips_abi = n32; then
13766 LIBGO_IS_MIPSN32_TRUE=
13767 LIBGO_IS_MIPSN32_FALSE='#'
ca11cc98 13768else
85a09210
ILT
13769 LIBGO_IS_MIPSN32_TRUE='#'
13770 LIBGO_IS_MIPSN32_FALSE=
13771fi
13772
13773 if test $mips_abi = n64; then
13774 LIBGO_IS_MIPSN64_TRUE=
13775 LIBGO_IS_MIPSN64_FALSE='#'
13776else
13777 LIBGO_IS_MIPSN64_TRUE='#'
13778 LIBGO_IS_MIPSN64_FALSE=
13779fi
13780
13781 if test $mips_abi = o64; then
13782 LIBGO_IS_MIPSO64_TRUE=
13783 LIBGO_IS_MIPSO64_FALSE='#'
13784else
13785 LIBGO_IS_MIPSO64_TRUE='#'
13786 LIBGO_IS_MIPSO64_FALSE=
ca11cc98
ILT
13787fi
13788
13789 if test $is_ppc = yes; then
13790 LIBGO_IS_PPC_TRUE=
13791 LIBGO_IS_PPC_FALSE='#'
13792else
13793 LIBGO_IS_PPC_TRUE='#'
13794 LIBGO_IS_PPC_FALSE=
13795fi
13796
13797 if test $is_ppc64 = yes; then
13798 LIBGO_IS_PPC64_TRUE=
13799 LIBGO_IS_PPC64_FALSE='#'
13800else
13801 LIBGO_IS_PPC64_TRUE='#'
13802 LIBGO_IS_PPC64_FALSE=
13803fi
13804
f2ee78b8
ILT
13805 if test $is_sparc = yes; then
13806 LIBGO_IS_SPARC_TRUE=
13807 LIBGO_IS_SPARC_FALSE='#'
13808else
13809 LIBGO_IS_SPARC_TRUE='#'
13810 LIBGO_IS_SPARC_FALSE=
13811fi
13812
545d1aa1
ILT
13813 if test $is_sparc64 = yes; then
13814 LIBGO_IS_SPARC64_TRUE=
13815 LIBGO_IS_SPARC64_FALSE='#'
f2ee78b8 13816else
545d1aa1
ILT
13817 LIBGO_IS_SPARC64_TRUE='#'
13818 LIBGO_IS_SPARC64_FALSE=
f2ee78b8
ILT
13819fi
13820
13821 if test $is_x86_64 = yes; then
13822 LIBGO_IS_X86_64_TRUE=
13823 LIBGO_IS_X86_64_FALSE='#'
13824else
13825 LIBGO_IS_X86_64_TRUE='#'
13826 LIBGO_IS_X86_64_FALSE=
13827fi
13828
7a938933 13829
c3b5b97b 13830
de27caac
ILT
13831GO_LIBCALL_OS_FILE=
13832GO_LIBCALL_OS_ARCH_FILE=
13833GO_SYSCALL_OS_FILE=
13834GO_SYSCALL_OS_ARCH_FILE=
13835if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13836 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
ca11cc98 13837fi
de27caac
ILT
13838if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13839 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13840fi
13841if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13842 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13843fi
13844if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13845 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13846fi
13847
13848
13849
ca11cc98
ILT
13850
13851
d48be5df 13852OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
90630d19 13853case "$target" in
9f3b1e6c
ILT
13854 mips-sgi-irix6.5*)
13855 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13856 # msghdr in <sys/socket.h>.
d48be5df 13857 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
9f3b1e6c 13858 ;;
90630d19
ILT
13859 *-*-solaris2.[89])
13860 # Solaris 8/9 need this so struct msghdr gets the msg_control
13861 # etc. fields in <sys/socket.h> (_XPG4_2).
d48be5df 13862 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
90630d19
ILT
13863 ;;
13864 *-*-solaris2.1[01])
13865 # Solaris 10+ needs this so struct msghdr gets the msg_control
bbe847a1 13866 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
90630d19 13867 # above doesn't work with C99.
bbe847a1 13868 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
90630d19
ILT
13869 ;;
13870esac
13871
13872
7a938933
ILT
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13874$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
f2ee78b8 13875if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
7a938933
ILT
13876 $as_echo_n "(cached) " >&6
13877else
13878 CFLAGS_hold=$CFLAGS
13879CFLAGS="$CFLAGS -fsplit-stack"
13880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881/* end confdefs.h. */
13882int i;
13883_ACEOF
13884if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 13885 libgo_cv_c_split_stack_supported=yes
7a938933 13886else
f2ee78b8 13887 libgo_cv_c_split_stack_supported=no
7a938933
ILT
13888fi
13889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890CFLAGS=$CFLAGS_hold
13891fi
f2ee78b8
ILT
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13893$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13894if test "$libgo_cv_c_split_stack_supported" = yes; then
7a938933
ILT
13895 SPLIT_STACK=-fsplit-stack
13896
13897$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13898
13899else
13900 SPLIT_STACK=
13901fi
13902
f2ee78b8 13903 if test "$libgo_cv_c_split_stack_supported" = yes; then
7a938933
ILT
13904 USING_SPLIT_STACK_TRUE=
13905 USING_SPLIT_STACK_FALSE='#'
13906else
13907 USING_SPLIT_STACK_TRUE='#'
13908 USING_SPLIT_STACK_FALSE=
13909fi
13910
13911
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13913$as_echo_n "checking whether linker supports split stack... " >&6; }
f2ee78b8 13914if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
7a938933
ILT
13915 $as_echo_n "(cached) " >&6
13916else
f2ee78b8 13917 libgo_cv_c_linker_supports_split_stack=no
7a938933 13918if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
f2ee78b8 13919 libgo_cv_c_linker_supports_split_stack=yes
7a938933
ILT
13920fi
13921fi
f2ee78b8
ILT
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13923$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13924if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
7a938933
ILT
13925
13926$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13927
13928fi
13929
505b439a
ILT
13930MATH_LIBS=
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13932$as_echo_n "checking for sqrt in -lm... " >&6; }
13933if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
13935else
13936 ac_check_lib_save_LIBS=$LIBS
13937LIBS="-lm $LIBS"
13938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939/* end confdefs.h. */
13940
13941/* Override any GCC internal prototype to avoid an error.
13942 Use char because int might match the return type of a GCC
13943 builtin and then its argument prototype would still apply. */
13944#ifdef __cplusplus
13945extern "C"
13946#endif
13947char sqrt ();
13948int
13949main ()
13950{
13951return sqrt ();
13952 ;
13953 return 0;
13954}
13955_ACEOF
13956if ac_fn_c_try_link "$LINENO"; then :
13957 ac_cv_lib_m_sqrt=yes
13958else
13959 ac_cv_lib_m_sqrt=no
13960fi
13961rm -f core conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13963LIBS=$ac_check_lib_save_LIBS
13964fi
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13966$as_echo "$ac_cv_lib_m_sqrt" >&6; }
13967if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13968 MATH_LIBS=-lm
13969fi
13970
13971
13972
f2ee78b8
ILT
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13974$as_echo_n "checking for socket libraries... " >&6; }
13975if test "${libgo_cv_lib_sockets+set}" = set; then :
13976 $as_echo_n "(cached) " >&6
13977else
13978 libgo_cv_lib_sockets=
13979 libgo_check_both=no
13980 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13981if test "x$ac_cv_func_connect" = x""yes; then :
13982 libgo_check_socket=no
13983else
13984 libgo_check_socket=yes
13985fi
13986
13987 if test "$libgo_check_socket" = "yes"; then
13988 unset ac_cv_func_connect
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13990$as_echo_n "checking for main in -lsocket... " >&6; }
13991if test "${ac_cv_lib_socket_main+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993else
13994 ac_check_lib_save_LIBS=$LIBS
13995LIBS="-lsocket $LIBS"
13996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997/* end confdefs.h. */
13998
13999
14000int
14001main ()
14002{
14003return main ();
14004 ;
14005 return 0;
14006}
14007_ACEOF
14008if ac_fn_c_try_link "$LINENO"; then :
14009 ac_cv_lib_socket_main=yes
14010else
14011 ac_cv_lib_socket_main=no
14012fi
14013rm -f core conftest.err conftest.$ac_objext \
14014 conftest$ac_exeext conftest.$ac_ext
14015LIBS=$ac_check_lib_save_LIBS
14016fi
14017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14018$as_echo "$ac_cv_lib_socket_main" >&6; }
14019if test "x$ac_cv_lib_socket_main" = x""yes; then :
14020 libgo_cv_lib_sockets="-lsocket"
14021else
14022 libgo_check_both=yes
14023fi
14024
14025 fi
14026 if test "$libgo_check_both" = "yes"; then
14027 libgo_old_libs=$LIBS
14028 LIBS="$LIBS -lsocket -lnsl"
14029 unset ac_cv_func_accept
14030 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14031if test "x$ac_cv_func_accept" = x""yes; then :
14032 libgo_check_nsl=no
14033 libgo_cv_lib_sockets="-lsocket -lnsl"
14034fi
14035
14036 unset ac_cv_func_accept
14037 LIBS=$libgo_old_libs
14038 fi
14039 unset ac_cv_func_gethostbyname
14040 libgo_old_libs="$LIBS"
14041 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14042if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14043
14044else
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14046$as_echo_n "checking for main in -lnsl... " >&6; }
14047if test "${ac_cv_lib_nsl_main+set}" = set; then :
14048 $as_echo_n "(cached) " >&6
14049else
14050 ac_check_lib_save_LIBS=$LIBS
14051LIBS="-lnsl $LIBS"
14052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053/* end confdefs.h. */
14054
14055
14056int
14057main ()
14058{
14059return main ();
14060 ;
14061 return 0;
14062}
14063_ACEOF
14064if ac_fn_c_try_link "$LINENO"; then :
14065 ac_cv_lib_nsl_main=yes
14066else
14067 ac_cv_lib_nsl_main=no
14068fi
14069rm -f core conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14071LIBS=$ac_check_lib_save_LIBS
14072fi
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14074$as_echo "$ac_cv_lib_nsl_main" >&6; }
14075if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14076 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14077fi
14078
14079fi
14080
14081 unset ac_cv_func_gethostbyname
14082 LIBS=$libgo_old_libs
14083
14084fi
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14086$as_echo "$libgo_cv_lib_sockets" >&6; }
14087NET_LIBS="$libgo_cv_lib_sockets"
14088
14089
6c94a9fa
ILT
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14091$as_echo_n "checking whether -pthread is supported... " >&6; }
f2ee78b8 14092if test "${libgo_cv_lib_pthread+set}" = set; then :
6c94a9fa
ILT
14093 $as_echo_n "(cached) " >&6
14094else
14095 CFLAGS_hold=$CFLAGS
14096CFLAGS="$CFLAGS -pthread"
14097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h. */
14099int i;
14100_ACEOF
14101if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14102 libgo_cv_lib_pthread=yes
6c94a9fa 14103else
f2ee78b8 14104 libgo_cv_lib_pthread=no
6c94a9fa
ILT
14105fi
14106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107CFLAGS=$CFLAGS_hold
14108fi
f2ee78b8
ILT
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14110$as_echo "$libgo_cv_lib_pthread" >&6; }
6c94a9fa 14111PTHREAD_CFLAGS=
f2ee78b8 14112if test "$libgo_cv_lib_pthread" = yes; then
6c94a9fa
ILT
14113 PTHREAD_CFLAGS=-pthread
14114fi
14115
14116
14117PTHREAD_LIBS=
14118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14119$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14120if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14121 $as_echo_n "(cached) " >&6
14122else
14123 ac_check_lib_save_LIBS=$LIBS
14124LIBS="-lpthread $LIBS"
14125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126/* end confdefs.h. */
14127
14128/* Override any GCC internal prototype to avoid an error.
14129 Use char because int might match the return type of a GCC
14130 builtin and then its argument prototype would still apply. */
14131#ifdef __cplusplus
14132extern "C"
14133#endif
14134char pthread_create ();
14135int
14136main ()
14137{
14138return pthread_create ();
14139 ;
14140 return 0;
14141}
14142_ACEOF
14143if ac_fn_c_try_link "$LINENO"; then :
14144 ac_cv_lib_pthread_pthread_create=yes
14145else
14146 ac_cv_lib_pthread_pthread_create=no
14147fi
14148rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150LIBS=$ac_check_lib_save_LIBS
14151fi
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14153$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14154if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14155 PTHREAD_LIBS=-lpthread
14156fi
14157
14158
14159
ed4ebabc
ILT
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14161$as_echo_n "checking for library containing sched_yield... " >&6; }
14162if test "${ac_cv_search_sched_yield+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
14164else
14165 ac_func_search_save_LIBS=$LIBS
14166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167/* end confdefs.h. */
14168
14169/* Override any GCC internal prototype to avoid an error.
14170 Use char because int might match the return type of a GCC
14171 builtin and then its argument prototype would still apply. */
14172#ifdef __cplusplus
14173extern "C"
14174#endif
14175char sched_yield ();
14176int
14177main ()
14178{
14179return sched_yield ();
14180 ;
14181 return 0;
14182}
14183_ACEOF
14184for ac_lib in '' rt; do
14185 if test -z "$ac_lib"; then
14186 ac_res="none required"
14187 else
14188 ac_res=-l$ac_lib
14189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14190 fi
14191 if ac_fn_c_try_link "$LINENO"; then :
14192 ac_cv_search_sched_yield=$ac_res
14193fi
14194rm -f core conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext
14196 if test "${ac_cv_search_sched_yield+set}" = set; then :
14197 break
14198fi
14199done
14200if test "${ac_cv_search_sched_yield+set}" = set; then :
14201
14202else
14203 ac_cv_search_sched_yield=no
14204fi
14205rm conftest.$ac_ext
14206LIBS=$ac_func_search_save_LIBS
14207fi
14208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14209$as_echo "$ac_cv_search_sched_yield" >&6; }
14210ac_res=$ac_cv_search_sched_yield
14211if test "$ac_res" != no; then :
14212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14213
14214fi
14215
14216
7a938933
ILT
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14218$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14219if test "${ac_cv_c_bigendian+set}" = set; then :
14220 $as_echo_n "(cached) " >&6
14221else
14222 ac_cv_c_bigendian=unknown
14223 # See if we're dealing with a universal compiler.
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225/* end confdefs.h. */
14226#ifndef __APPLE_CC__
14227 not a universal capable compiler
14228 #endif
14229 typedef int dummy;
14230
14231_ACEOF
14232if ac_fn_c_try_compile "$LINENO"; then :
14233
14234 # Check for potential -arch flags. It is not universal unless
14235 # there are at least two -arch flags with different values.
14236 ac_arch=
14237 ac_prev=
14238 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14239 if test -n "$ac_prev"; then
14240 case $ac_word in
14241 i?86 | x86_64 | ppc | ppc64)
14242 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14243 ac_arch=$ac_word
14244 else
14245 ac_cv_c_bigendian=universal
14246 break
14247 fi
14248 ;;
14249 esac
14250 ac_prev=
14251 elif test "x$ac_word" = "x-arch"; then
14252 ac_prev=arch
14253 fi
14254 done
14255fi
14256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 if test $ac_cv_c_bigendian = unknown; then
14258 # See if sys/param.h defines the BYTE_ORDER macro.
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260/* end confdefs.h. */
14261#include <sys/types.h>
14262 #include <sys/param.h>
14263
14264int
14265main ()
14266{
14267#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14268 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14269 && LITTLE_ENDIAN)
14270 bogus endian macros
14271 #endif
14272
14273 ;
14274 return 0;
14275}
14276_ACEOF
14277if ac_fn_c_try_compile "$LINENO"; then :
14278 # It does; now see whether it defined to BIG_ENDIAN or not.
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280/* end confdefs.h. */
14281#include <sys/types.h>
14282 #include <sys/param.h>
14283
14284int
14285main ()
14286{
14287#if BYTE_ORDER != BIG_ENDIAN
14288 not big endian
14289 #endif
14290
14291 ;
14292 return 0;
14293}
14294_ACEOF
14295if ac_fn_c_try_compile "$LINENO"; then :
14296 ac_cv_c_bigendian=yes
14297else
14298 ac_cv_c_bigendian=no
14299fi
14300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301fi
14302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303 fi
14304 if test $ac_cv_c_bigendian = unknown; then
14305 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307/* end confdefs.h. */
14308#include <limits.h>
14309
14310int
14311main ()
14312{
14313#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14314 bogus endian macros
14315 #endif
14316
14317 ;
14318 return 0;
14319}
14320_ACEOF
14321if ac_fn_c_try_compile "$LINENO"; then :
14322 # It does; now see whether it defined to _BIG_ENDIAN or not.
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324/* end confdefs.h. */
14325#include <limits.h>
14326
14327int
14328main ()
14329{
14330#ifndef _BIG_ENDIAN
14331 not big endian
14332 #endif
14333
14334 ;
14335 return 0;
14336}
14337_ACEOF
14338if ac_fn_c_try_compile "$LINENO"; then :
14339 ac_cv_c_bigendian=yes
14340else
14341 ac_cv_c_bigendian=no
14342fi
14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344fi
14345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 fi
14347 if test $ac_cv_c_bigendian = unknown; then
14348 # Compile a test program.
14349 if test "$cross_compiling" = yes; then :
14350 # Try to guess by grepping values from an object file.
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352/* end confdefs.h. */
14353short int ascii_mm[] =
14354 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14355 short int ascii_ii[] =
14356 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14357 int use_ascii (int i) {
14358 return ascii_mm[i] + ascii_ii[i];
14359 }
14360 short int ebcdic_ii[] =
14361 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14362 short int ebcdic_mm[] =
14363 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14364 int use_ebcdic (int i) {
14365 return ebcdic_mm[i] + ebcdic_ii[i];
14366 }
14367 extern int foo;
14368
14369int
14370main ()
14371{
14372return use_ascii (foo) == use_ebcdic (foo);
14373 ;
14374 return 0;
14375}
14376_ACEOF
14377if ac_fn_c_try_compile "$LINENO"; then :
14378 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14379 ac_cv_c_bigendian=yes
14380 fi
14381 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14382 if test "$ac_cv_c_bigendian" = unknown; then
14383 ac_cv_c_bigendian=no
14384 else
14385 # finding both strings is unlikely to happen, but who knows?
14386 ac_cv_c_bigendian=unknown
14387 fi
14388 fi
14389fi
14390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391else
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393/* end confdefs.h. */
14394$ac_includes_default
14395int
14396main ()
14397{
14398
14399 /* Are we little or big endian? From Harbison&Steele. */
14400 union
14401 {
14402 long int l;
14403 char c[sizeof (long int)];
14404 } u;
14405 u.l = 1;
14406 return u.c[sizeof (long int) - 1] == 1;
14407
14408 ;
14409 return 0;
14410}
14411_ACEOF
14412if ac_fn_c_try_run "$LINENO"; then :
14413 ac_cv_c_bigendian=no
14414else
14415 ac_cv_c_bigendian=yes
14416fi
14417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14418 conftest.$ac_objext conftest.beam conftest.$ac_ext
14419fi
14420
14421 fi
14422fi
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14424$as_echo "$ac_cv_c_bigendian" >&6; }
14425 case $ac_cv_c_bigendian in #(
14426 yes)
14427 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14428;; #(
14429 no)
14430 ;; #(
14431 universal)
14432
14433$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14434
14435 ;; #(
14436 *)
14437 as_fn_error "unknown endianness
14438 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14439 esac
14440
14441
14442
14443
14444# Check whether --with-system-libunwind was given.
14445if test "${with_system_libunwind+set}" = set; then :
14446 withval=$with_system_libunwind;
14447fi
14448
14449 # If system-libunwind was not specifically set, pick a default setting.
14450 if test x$with_system_libunwind = x; then
14451 case ${target} in
14452 ia64-*-hpux*) with_system_libunwind=yes ;;
14453 *) with_system_libunwind=no ;;
14454 esac
14455 fi
14456 # Based on system-libunwind and target, do we have ipinfo?
14457 if test x$with_system_libunwind = xyes; then
14458 case ${target} in
14459 ia64-*-*) have_unwind_getipinfo=no ;;
14460 *) have_unwind_getipinfo=yes ;;
14461 esac
14462 else
14463 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14464
14465 case ${target} in
14466 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14467 *) have_unwind_getipinfo=yes ;;
14468 esac
14469
14470 fi
14471
14472 if test x$have_unwind_getipinfo = xyes; then
14473
14474$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14475
14476 fi
14477
14478
0c521d18
ILT
14479# Check whether --enable-sjlj-exceptions was given.
14480if test "${enable_sjlj_exceptions+set}" = set; then :
14481 enableval=$enable_sjlj_exceptions; case "$enableval" in
14482 yes|no|auto) ;;
14483 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14484 esac
14485else
14486 enable_sjlj_exceptions=auto
14487fi
14488
14489
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14491$as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14492if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14493 $as_echo_n "(cached) " >&6
14494else
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496/* end confdefs.h. */
14497
14498void bar ();
14499void clean (int *);
14500void foo ()
14501{
14502 int i __attribute__ ((cleanup (clean)));
14503 bar();
14504}
14505
14506_ACEOF
14507CFLAGS_hold=$CFLAGS
14508CFLAGS="--save-temps -fexceptions"
14509libgo_cv_lib_sjlj_exceptions=unknown
14510if ac_fn_c_try_compile; then :
14511 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14512 libgo_cv_lib_sjlj_exceptions=yes
14513 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14514 libgo_cv_lib_sjlj_exceptions=no
14515 fi
14516fi
14517CFLAGS=$CFLAGS_hold
14518rm -f conftest*
14519
14520fi
14521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14522$as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14523
14524if test "$enable_sjlj_exceptions" = "auto"; then
14525 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14526fi
14527
14528case $enable_sjlj_exceptions in
14529yes)
14530
14531$as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14532
14533 ;;
14534no)
14535 ;;
14536*)
14537 as_fn_error "unable to detect exception model" "$LINENO" 5
14538 ;;
14539esac
14540
f04e40af 14541for 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
7a938933
ILT
14542do :
14543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14544ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14545eval as_val=\$$as_ac_Header
14546 if test "x$as_val" = x""yes; then :
14547 cat >>confdefs.h <<_ACEOF
14548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14549_ACEOF
14550
14551fi
14552
14553done
14554
adb0401d 14555
1410c222 14556for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
adb0401d
ILT
14557do :
14558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14559ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14560#include <sys/socket.h>
14561#endif
14562
14563"
14564eval as_val=\$$as_ac_Header
14565 if test "x$as_val" = x""yes; then :
14566 cat >>confdefs.h <<_ACEOF
14567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14568_ACEOF
14569
14570fi
14571
14572done
14573
14574
2aeaf0fb
ILT
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14576$as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14577if test "${libgo_cv_c_ustat_h+set}" = set; then :
14578 $as_echo_n "(cached) " >&6
14579else
dbe1e4a5
ILT
14580 CFLAGS_hold=$CFLAGS
14581CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2aeaf0fb
ILT
14583/* end confdefs.h. */
14584
14585#include <sys/types.h>
14586#ifdef HAVE_LINUX_FILTER_H
14587#include <linux/filter.h>
14588#endif
14589#include <ustat.h>
14590
14591_ACEOF
14592if ac_fn_c_try_compile "$LINENO"; then :
14593 libgo_cv_c_ustat_h=yes
14594else
14595 libgo_cv_c_ustat_h=no
14596fi
14597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dbe1e4a5 14598CFLAGS=$CFLAGS_hold
2aeaf0fb
ILT
14599fi
14600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14601$as_echo "$libgo_cv_c_ustat_h" >&6; }
14602if test $libgo_cv_c_ustat_h = yes; then
14603
14604$as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14605
14606fi
14607
7a938933
ILT
14608 if test "$ac_cv_header_sys_mman_h" = yes; then
14609 HAVE_SYS_MMAN_H_TRUE=
14610 HAVE_SYS_MMAN_H_FALSE='#'
14611else
14612 HAVE_SYS_MMAN_H_TRUE='#'
14613 HAVE_SYS_MMAN_H_FALSE=
14614fi
14615
8955c80a 14616
0d7afaa7 14617for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
7a938933
ILT
14618do :
14619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14620ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14621eval as_val=\$$as_ac_var
14622 if test "x$as_val" = x""yes; then :
14623 cat >>confdefs.h <<_ACEOF
14624#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14625_ACEOF
14626
14627fi
14628done
14629
8955c80a
ILT
14630 if test "$ac_cv_func_strerror_r" = yes; then
14631 HAVE_STRERROR_R_TRUE=
14632 HAVE_STRERROR_R_FALSE='#'
14633else
14634 HAVE_STRERROR_R_TRUE='#'
14635 HAVE_STRERROR_R_FALSE=
14636fi
14637
0b3189e7
ILT
14638 if test "$ac_cv_func_wait4" = yes; then
14639 HAVE_WAIT4_TRUE=
14640 HAVE_WAIT4_FALSE='#'
14641else
14642 HAVE_WAIT4_TRUE='#'
14643 HAVE_WAIT4_FALSE=
14644fi
14645
7a938933 14646
d6f2922e 14647for 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
e02ed81e
ILT
14648do :
14649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14650ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14651eval as_val=\$$as_ac_var
14652 if test "x$as_val" = x""yes; then :
14653 cat >>confdefs.h <<_ACEOF
14654#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14655_ACEOF
14656
14657fi
14658done
14659
5d46bf05
ILT
14660ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14661if test "x$ac_cv_type_off_t" = x""yes; then :
14662
14663else
14664
14665cat >>confdefs.h <<_ACEOF
14666#define off_t long int
14667_ACEOF
14668
14669fi
14670
e02ed81e
ILT
14671ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14672if test "x$ac_cv_type_loff_t" = x""yes; then :
14673
14674cat >>confdefs.h <<_ACEOF
14675#define HAVE_LOFF_T 1
14676_ACEOF
14677
14678
14679fi
14680
14681
324612b3
ILT
14682LIBS_hold="$LIBS"
14683LIBS="$LIBS -lm"
14684for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14685do :
14686 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14687ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14688eval as_val=\$$as_ac_var
14689 if test "x$as_val" = x""yes; then :
14690 cat >>confdefs.h <<_ACEOF
14691#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14692_ACEOF
14693
14694fi
14695done
14696
14697LIBS="$LIBS_hold"
14698
08ee945e
ILT
14699CFLAGS_hold="$CFLAGS"
14700CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14701LIBS_hold="$LIBS"
14702LIBS="$LIBS $PTHREAD_LIBS"
14703for ac_func in sem_timedwait
14704do :
14705 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14706if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14707 cat >>confdefs.h <<_ACEOF
14708#define HAVE_SEM_TIMEDWAIT 1
14709_ACEOF
14710
14711fi
14712done
14713
14714CFLAGS="$CFLAGS_hold"
14715LIBS="$LIBS_hold"
14716
d2b480bc
ILT
14717LIBS_hold="$LIBS"
14718LIBS="$LIBS $MATH_LIBS"
14719for ac_func in matherr
14720do :
14721 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14722if test "x$ac_cv_func_matherr" = x""yes; then :
14723 cat >>confdefs.h <<_ACEOF
14724#define HAVE_MATHERR 1
14725_ACEOF
14726
14727fi
14728done
14729
14730LIBS="$LIBS_hold"
14731
a7c48c8e
ILT
14732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14733$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14734if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14735 $as_echo_n "(cached) " >&6
14736else
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738/* end confdefs.h. */
14739
14740typedef unsigned int uint32 __attribute__ ((mode (SI)));
14741uint32 i;
14742int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14743
14744_ACEOF
14745if ac_fn_c_try_link "$LINENO"; then :
14746 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14747else
14748 libgo_cv_func___sync_bool_compare_and_swap_4=no
14749fi
14750rm -f core conftest.err conftest.$ac_objext \
14751 conftest$ac_exeext conftest.$ac_ext
14752fi
14753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14754$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14755if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
932e3237
ILT
14756
14757$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
a7c48c8e
ILT
14758
14759fi
14760
12e3c396
ILT
14761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14762$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14763if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14765else
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767/* end confdefs.h. */
14768
14769typedef unsigned int uint64 __attribute__ ((mode (DI)));
14770uint64 i;
14771int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14772
14773_ACEOF
14774if ac_fn_c_try_link "$LINENO"; then :
14775 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14776else
14777 libgo_cv_func___sync_bool_compare_and_swap_8=no
14778fi
14779rm -f core conftest.err conftest.$ac_objext \
14780 conftest$ac_exeext conftest.$ac_ext
14781fi
14782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14783$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14784if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14785
14786$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14787
14788fi
14789
084996f1
ILT
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14791$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14792if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14793 $as_echo_n "(cached) " >&6
14794else
14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14796/* end confdefs.h. */
14797
14798typedef unsigned int uint32 __attribute__ ((mode (SI)));
14799uint32 i;
14800int main() { return __sync_fetch_and_add (&i, 1); }
14801
14802_ACEOF
14803if ac_fn_c_try_link "$LINENO"; then :
14804 libgo_cv_func___sync_fetch_and_add_4=yes
14805else
14806 libgo_cv_func___sync_fetch_and_add_4=no
14807fi
14808rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14810fi
14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14812$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14813if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14814
14815$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14816
14817fi
14818
12e3c396
ILT
14819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14820$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14821if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14822 $as_echo_n "(cached) " >&6
14823else
14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825/* end confdefs.h. */
14826
14827typedef unsigned int uint64 __attribute__ ((mode (DI)));
14828uint64 i;
14829int main() { return __sync_add_and_fetch (&i, 1); }
14830
14831_ACEOF
14832if ac_fn_c_try_link "$LINENO"; then :
14833 libgo_cv_func___sync_add_and_fetch_8=yes
14834else
14835 libgo_cv_func___sync_add_and_fetch_8=no
14836fi
14837rm -f core conftest.err conftest.$ac_objext \
14838 conftest$ac_exeext conftest.$ac_ext
14839fi
14840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14841$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14842if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14843
14844$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14845
14846fi
14847
7a938933
ILT
14848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14849$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
f2ee78b8 14850if test "${libgo_cv_c_stringops+set}" = set; then :
7a938933
ILT
14851 $as_echo_n "(cached) " >&6
14852else
14853 CFLAGS_hold=$CFLAGS
14854CFLAGS="$CFLAGS -minline-all-stringops"
14855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856/* end confdefs.h. */
14857int i;
14858_ACEOF
14859if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14860 libgo_cv_c_stringops=yes
7a938933 14861else
f2ee78b8 14862 libgo_cv_c_stringops=no
7a938933
ILT
14863fi
14864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865CFLAGS=$CFLAGS_hold
14866fi
f2ee78b8
ILT
14867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14868$as_echo "$libgo_cv_c_stringops" >&6; }
7a938933 14869STRINGOPS_FLAG=
f2ee78b8 14870if test "$libgo_cv_c_stringops" = yes; then
7a938933
ILT
14871 STRINGOPS_FLAG=-minline-all-stringops
14872fi
14873
14874
9d465faf
ILT
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14876$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14877if test "${libgo_cv_c_fancymath+set}" = set; then :
14878 $as_echo_n "(cached) " >&6
14879else
14880 CFLAGS_hold=$CFLAGS
14881CFLAGS="$CFLAGS -mfancy-math-387"
14882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883/* end confdefs.h. */
14884int i;
14885_ACEOF
14886if ac_fn_c_try_compile "$LINENO"; then :
14887 libgo_cv_c_fancymath=yes
14888else
14889 libgo_cv_c_fancymath=no
14890fi
14891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892CFLAGS=$CFLAGS_hold
14893fi
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
14895$as_echo "$libgo_cv_c_fancymath" >&6; }
14896MATH_FLAG=
14897if test "$libgo_cv_c_fancymath" = yes; then
14898 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
14899fi
14900
14901
7a938933
ILT
14902CFLAGS_hold=$CFLAGS
14903CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14904ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14905if test "x$ac_cv_type_off64_t" = x""yes; then :
14906
14907cat >>confdefs.h <<_ACEOF
14908#define HAVE_OFF64_T 1
14909_ACEOF
14910
14911
14912fi
14913
14914CFLAGS=$CFLAGS_hold
14915
207c35fa
ILT
14916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14917$as_echo_n "checking epoll_event size... " >&6; }
14918if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14919 $as_echo_n "(cached) " >&6
14920else
14921 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14922
14923else
14924 libgo_cv_c_epoll_event_size=0
14925fi
14926
14927fi
14928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14929$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14930SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14931
14932
14933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14934$as_echo_n "checking epoll_event data.fd offset... " >&6; }
14935if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14936 $as_echo_n "(cached) " >&6
14937else
14938 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14939#include <sys/epoll.h>"; then :
14940
14941else
14942 libgo_cv_c_epoll_event_fd_offset=0
14943fi
14944
14945fi
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14947$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14948STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14949
14950
d2b480bc
ILT
14951ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
14952"
14953if test "x$ac_cv_type_struct_exception" = x""yes; then :
14954 libgo_has_struct_exception=yes
14955else
14956 libgo_has_struct_exception=no
14957fi
14958
14959if test "$libgo_has_struct_exception" = "yes"; then
14960
14961$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
14962
14963fi
14964
ca59d219
ILT
14965case "$target" in
14966 sparc*-*-solaris2.[89]*)
14967 libgo_cv_lib_makecontext_stack_top=yes
14968 ;;
14969 *)
14970 libgo_cv_lib_makecontext_stack_top=no
14971 ;;
14972esac
14973if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
14974
14975$as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
14976
14977fi
14978
7f57843f
ILT
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
14980$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
14981if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
14982 $as_echo_n "(cached) " >&6
14983else
e6c5817d
ILT
14984 CFLAGS_hold="$CFLAGS"
14985CFLAGS="$PTHREAD_CFLAGS"
14986LIBS_hold="$LIBS"
7f57843f 14987LIBS="$LIBS $PTHREAD_LIBS"
e6c5817d
ILT
14988# The cast to long int works around a bug in the HP C Compiler
14989# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14990# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14991# This bug is HP SR number 8606223364.
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14993$as_echo_n "checking size of void *... " >&6; }
14994if test "${ac_cv_sizeof_void_p+set}" = set; then :
14995 $as_echo_n "(cached) " >&6
14996else
14997 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14998
14999else
15000 if test "$ac_cv_type_void_p" = yes; then
15001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15003{ as_fn_set_status 77
15004as_fn_error "cannot compute sizeof (void *)
15005See \`config.log' for more details." "$LINENO" 5; }; }
15006 else
15007 ac_cv_sizeof_void_p=0
15008 fi
15009fi
15010
15011fi
15012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15013$as_echo "$ac_cv_sizeof_void_p" >&6; }
15014
15015
15016
15017cat >>confdefs.h <<_ACEOF
15018#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15019_ACEOF
15020
15021
15022as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
7f57843f 15023if test "$cross_compiling" = yes; then :
e6c5817d
ILT
15024 case "$target:$ptr_type_size" in
15025 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15026 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15027 *)
15028 libgo_cv_lib_setcontext_clobbers_tls=no ;;
7f57843f
ILT
15029 esac
15030
15031else
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h. */
15034
15035#include <pthread.h>
15036#include <stdlib.h>
15037#include <ucontext.h>
15038#include <unistd.h>
15039
15040__thread int tls;
15041
15042static char stack[10 * 1024 * 1024];
15043static ucontext_t c;
15044
15045/* Called via makecontext/setcontext. */
15046
15047static void
15048cfn (void)
15049{
15050 exit (tls);
15051}
15052
15053/* Called via pthread_create. */
15054
15055static void *
15056tfn (void *dummy)
15057{
15058 /* The thread should still see this value after calling
15059 setcontext. */
15060 tls = 0;
15061
15062 setcontext (&c);
15063
15064 /* The call to setcontext should not return. */
15065 abort ();
15066}
15067
15068int
15069main ()
15070{
15071 pthread_t tid;
15072
15073 /* The thread should not see this value. */
15074 tls = 1;
15075
15076 if (getcontext (&c) < 0)
15077 abort ();
15078
15079 c.uc_stack.ss_sp = stack;
ca59d219
ILT
15080#ifdef MAKECONTEXT_STACK_TOP
15081 c.uc_stack.ss_sp += sizeof stack;
15082#endif
7f57843f
ILT
15083 c.uc_stack.ss_flags = 0;
15084 c.uc_stack.ss_size = sizeof stack;
15085 c.uc_link = NULL;
15086 makecontext (&c, cfn, 0);
15087
15088 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15089 abort ();
15090
15091 if (pthread_join (tid, NULL) != 0)
15092 abort ();
15093
15094 /* The thread should have called exit. */
15095 abort ();
15096}
15097
15098_ACEOF
15099if ac_fn_c_try_run "$LINENO"; then :
15100 libgo_cv_lib_setcontext_clobbers_tls=no
15101else
15102 libgo_cv_lib_setcontext_clobbers_tls=yes
15103fi
15104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15105 conftest.$ac_objext conftest.beam conftest.$ac_ext
15106fi
15107
e6c5817d 15108CFLAGS="$CFLAGS_hold"
7f57843f
ILT
15109LIBS="$LIBS_hold"
15110
15111fi
15112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15113$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15114if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15115
15116$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15117
15118fi
15119
7a938933
ILT
15120cat >confcache <<\_ACEOF
15121# This file is a shell script that caches the results of configure
15122# tests run on this system so they can be shared between configure
15123# scripts and configure runs, see configure's option --config-cache.
15124# It is not useful on other systems. If it contains results you don't
15125# want to keep, you may remove or edit it.
15126#
15127# config.status only pays attention to the cache file if you give it
15128# the --recheck option to rerun configure.
15129#
15130# `ac_cv_env_foo' variables (set or unset) will be overridden when
15131# loading this file, other *unset* `ac_cv_foo' will be assigned the
15132# following values.
15133
15134_ACEOF
15135
15136# The following way of writing the cache mishandles newlines in values,
15137# but we know of no workaround that is simple, portable, and efficient.
15138# So, we kill variables containing newlines.
15139# Ultrix sh set writes to stderr and can't be redirected directly,
15140# and sets the high bit in the cache file unless we assign to the vars.
15141(
15142 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15143 eval ac_val=\$$ac_var
15144 case $ac_val in #(
15145 *${as_nl}*)
15146 case $ac_var in #(
15147 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15148$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15149 esac
15150 case $ac_var in #(
15151 _ | IFS | as_nl) ;; #(
15152 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15153 *) { eval $ac_var=; unset $ac_var;} ;;
15154 esac ;;
15155 esac
15156 done
15157
15158 (set) 2>&1 |
15159 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15160 *${as_nl}ac_space=\ *)
15161 # `set' does not quote correctly, so add quotes: double-quote
15162 # substitution turns \\\\ into \\, and sed turns \\ into \.
15163 sed -n \
15164 "s/'/'\\\\''/g;
15165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15166 ;; #(
15167 *)
15168 # `set' quotes correctly as required by POSIX, so do not add quotes.
15169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15170 ;;
15171 esac |
15172 sort
15173) |
15174 sed '
15175 /^ac_cv_env_/b end
15176 t clear
15177 :clear
15178 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15179 t end
15180 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15181 :end' >>confcache
15182if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15183 if test -w "$cache_file"; then
15184 test "x$cache_file" != "x/dev/null" &&
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15186$as_echo "$as_me: updating cache $cache_file" >&6;}
15187 cat confcache >$cache_file
15188 else
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15190$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15191 fi
15192fi
15193rm -f confcache
15194
15195if test ${multilib} = yes; then
15196 multilib_arg="--enable-multilib"
15197else
15198 multilib_arg=
15199fi
15200
15201ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15202
15203
15204ac_config_commands="$ac_config_commands default"
15205
15206
15207cat >confcache <<\_ACEOF
15208# This file is a shell script that caches the results of configure
15209# tests run on this system so they can be shared between configure
15210# scripts and configure runs, see configure's option --config-cache.
15211# It is not useful on other systems. If it contains results you don't
15212# want to keep, you may remove or edit it.
15213#
15214# config.status only pays attention to the cache file if you give it
15215# the --recheck option to rerun configure.
15216#
15217# `ac_cv_env_foo' variables (set or unset) will be overridden when
15218# loading this file, other *unset* `ac_cv_foo' will be assigned the
15219# following values.
15220
15221_ACEOF
15222
15223# The following way of writing the cache mishandles newlines in values,
15224# but we know of no workaround that is simple, portable, and efficient.
15225# So, we kill variables containing newlines.
15226# Ultrix sh set writes to stderr and can't be redirected directly,
15227# and sets the high bit in the cache file unless we assign to the vars.
15228(
15229 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15230 eval ac_val=\$$ac_var
15231 case $ac_val in #(
15232 *${as_nl}*)
15233 case $ac_var in #(
15234 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15235$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15236 esac
15237 case $ac_var in #(
15238 _ | IFS | as_nl) ;; #(
15239 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15240 *) { eval $ac_var=; unset $ac_var;} ;;
15241 esac ;;
15242 esac
15243 done
15244
15245 (set) 2>&1 |
15246 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15247 *${as_nl}ac_space=\ *)
15248 # `set' does not quote correctly, so add quotes: double-quote
15249 # substitution turns \\\\ into \\, and sed turns \\ into \.
15250 sed -n \
15251 "s/'/'\\\\''/g;
15252 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15253 ;; #(
15254 *)
15255 # `set' quotes correctly as required by POSIX, so do not add quotes.
15256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15257 ;;
15258 esac |
15259 sort
15260) |
15261 sed '
15262 /^ac_cv_env_/b end
15263 t clear
15264 :clear
15265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15266 t end
15267 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15268 :end' >>confcache
15269if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15270 if test -w "$cache_file"; then
15271 test "x$cache_file" != "x/dev/null" &&
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15273$as_echo "$as_me: updating cache $cache_file" >&6;}
15274 cat confcache >$cache_file
15275 else
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15277$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15278 fi
15279fi
15280rm -f confcache
15281
15282test "x$prefix" = xNONE && prefix=$ac_default_prefix
15283# Let make expand exec_prefix.
15284test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15285
15286DEFS=-DHAVE_CONFIG_H
15287
15288ac_libobjs=
15289ac_ltlibobjs=
15290for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15291 # 1. Remove the extension, and $U if already installed.
15292 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15293 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15294 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15295 # will be set to the directory where LIBOBJS objects are built.
15296 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15297 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15298done
15299LIBOBJS=$ac_libobjs
15300
15301LTLIBOBJS=$ac_ltlibobjs
15302
15303
15304 if test -n "$EXEEXT"; then
15305 am__EXEEXT_TRUE=
15306 am__EXEEXT_FALSE='#'
15307else
15308 am__EXEEXT_TRUE='#'
15309 am__EXEEXT_FALSE=
15310fi
15311
15312if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15313 as_fn_error "conditional \"AMDEP\" was never defined.
15314Usually this means the macro was only invoked conditionally." "$LINENO" 5
15315fi
15316if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15317 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15318Usually this means the macro was only invoked conditionally." "$LINENO" 5
15319fi
15320if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15321 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15322Usually this means the macro was only invoked conditionally." "$LINENO" 5
15323fi
15324if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15325 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15326Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327fi
15328if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15329 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15330Usually this means the macro was only invoked conditionally." "$LINENO" 5
654d2ec0
ILT
15331fi
15332if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15333 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15334Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
15335fi
15336if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15337 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15338Usually this means the macro was only invoked conditionally." "$LINENO" 5
15339fi
df4aa89a
ILT
15340if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15341 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15342Usually this means the macro was only invoked conditionally." "$LINENO" 5
15343fi
4ccad563
ILT
15344if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15345 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15346Usually this means the macro was only invoked conditionally." "$LINENO" 5
15347fi
7a938933
ILT
15348if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15349 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15350Usually this means the macro was only invoked conditionally." "$LINENO" 5
15351fi
f2ee78b8
ILT
15352if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15353 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
7a938933
ILT
15354Usually this means the macro was only invoked conditionally." "$LINENO" 5
15355fi
f2ee78b8
ILT
15356if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15357 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
7a938933
ILT
15358Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359fi
e59b9171
ILT
15360if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15361 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15362Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363fi
7a938933
ILT
15364if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15365 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15366Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367fi
ca11cc98
ILT
15368if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15369 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15370Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371fi
15372if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15373 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15374Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375fi
85a09210
ILT
15376if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15377 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15378Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379fi
15380if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15381 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15382Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383fi
15384if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15385 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15386Usually this means the macro was only invoked conditionally." "$LINENO" 5
15387fi
15388if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15389 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
ca11cc98
ILT
15390Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391fi
15392if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15393 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15394Usually this means the macro was only invoked conditionally." "$LINENO" 5
15395fi
15396if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15397 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15398Usually this means the macro was only invoked conditionally." "$LINENO" 5
15399fi
f2ee78b8
ILT
15400if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15401 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15402Usually this means the macro was only invoked conditionally." "$LINENO" 5
15403fi
545d1aa1
ILT
15404if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15405 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
f2ee78b8
ILT
15406Usually this means the macro was only invoked conditionally." "$LINENO" 5
15407fi
15408if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15409 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15410Usually this means the macro was only invoked conditionally." "$LINENO" 5
15411fi
7a938933
ILT
15412if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15413 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15414Usually this means the macro was only invoked conditionally." "$LINENO" 5
15415fi
15416
15417if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15418 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15419Usually this means the macro was only invoked conditionally." "$LINENO" 5
15420fi
8955c80a
ILT
15421if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15422 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15423Usually this means the macro was only invoked conditionally." "$LINENO" 5
15424fi
0b3189e7
ILT
15425if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15426 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15427Usually this means the macro was only invoked conditionally." "$LINENO" 5
15428fi
7a938933
ILT
15429
15430: ${CONFIG_STATUS=./config.status}
15431ac_write_fail=0
15432ac_clean_files_save=$ac_clean_files
15433ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15435$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15436as_write_fail=0
15437cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15438#! $SHELL
15439# Generated by $as_me.
15440# Run this file to recreate the current configuration.
15441# Compiler output produced by configure, useful for debugging
15442# configure, is in config.log if it exists.
15443
15444debug=false
15445ac_cs_recheck=false
15446ac_cs_silent=false
15447
15448SHELL=\${CONFIG_SHELL-$SHELL}
15449export SHELL
15450_ASEOF
15451cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15452## -------------------- ##
15453## M4sh Initialization. ##
15454## -------------------- ##
15455
15456# Be more Bourne compatible
15457DUALCASE=1; export DUALCASE # for MKS sh
15458if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15459 emulate sh
15460 NULLCMD=:
15461 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15462 # is contrary to our usage. Disable this feature.
15463 alias -g '${1+"$@"}'='"$@"'
15464 setopt NO_GLOB_SUBST
15465else
15466 case `(set -o) 2>/dev/null` in #(
15467 *posix*) :
15468 set -o posix ;; #(
15469 *) :
15470 ;;
15471esac
15472fi
15473
15474
15475as_nl='
15476'
15477export as_nl
15478# Printing a long string crashes Solaris 7 /usr/bin/printf.
15479as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15480as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15481as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15482# Prefer a ksh shell builtin over an external printf program on Solaris,
15483# but without wasting forks for bash or zsh.
15484if test -z "$BASH_VERSION$ZSH_VERSION" \
15485 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15486 as_echo='print -r --'
15487 as_echo_n='print -rn --'
15488elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15489 as_echo='printf %s\n'
15490 as_echo_n='printf %s'
15491else
15492 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15493 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15494 as_echo_n='/usr/ucb/echo -n'
15495 else
15496 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15497 as_echo_n_body='eval
15498 arg=$1;
15499 case $arg in #(
15500 *"$as_nl"*)
15501 expr "X$arg" : "X\\(.*\\)$as_nl";
15502 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15503 esac;
15504 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15505 '
15506 export as_echo_n_body
15507 as_echo_n='sh -c $as_echo_n_body as_echo'
15508 fi
15509 export as_echo_body
15510 as_echo='sh -c $as_echo_body as_echo'
15511fi
15512
15513# The user is always right.
15514if test "${PATH_SEPARATOR+set}" != set; then
15515 PATH_SEPARATOR=:
15516 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15517 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15518 PATH_SEPARATOR=';'
15519 }
15520fi
15521
15522
15523# IFS
15524# We need space, tab and new line, in precisely that order. Quoting is
15525# there to prevent editors from complaining about space-tab.
15526# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15527# splitting by setting IFS to empty value.)
15528IFS=" "" $as_nl"
15529
15530# Find who we are. Look in the path if we contain no directory separator.
15531case $0 in #((
15532 *[\\/]* ) as_myself=$0 ;;
15533 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15534for as_dir in $PATH
15535do
15536 IFS=$as_save_IFS
15537 test -z "$as_dir" && as_dir=.
15538 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15539 done
15540IFS=$as_save_IFS
15541
15542 ;;
15543esac
15544# We did not find ourselves, most probably we were run as `sh COMMAND'
15545# in which case we are not to be found in the path.
15546if test "x$as_myself" = x; then
15547 as_myself=$0
15548fi
15549if test ! -f "$as_myself"; then
15550 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15551 exit 1
15552fi
15553
15554# Unset variables that we do not need and which cause bugs (e.g. in
15555# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15556# suppresses any "Segmentation fault" message there. '((' could
15557# trigger a bug in pdksh 5.2.14.
15558for as_var in BASH_ENV ENV MAIL MAILPATH
15559do eval test x\${$as_var+set} = xset \
15560 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15561done
15562PS1='$ '
15563PS2='> '
15564PS4='+ '
15565
15566# NLS nuisances.
15567LC_ALL=C
15568export LC_ALL
15569LANGUAGE=C
15570export LANGUAGE
15571
15572# CDPATH.
15573(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15574
15575
15576# as_fn_error ERROR [LINENO LOG_FD]
15577# ---------------------------------
15578# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15579# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15580# script with status $?, using 1 if that was 0.
15581as_fn_error ()
15582{
15583 as_status=$?; test $as_status -eq 0 && as_status=1
15584 if test "$3"; then
15585 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15586 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15587 fi
15588 $as_echo "$as_me: error: $1" >&2
15589 as_fn_exit $as_status
15590} # as_fn_error
15591
15592
15593# as_fn_set_status STATUS
15594# -----------------------
15595# Set $? to STATUS, without forking.
15596as_fn_set_status ()
15597{
15598 return $1
15599} # as_fn_set_status
15600
15601# as_fn_exit STATUS
15602# -----------------
15603# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15604as_fn_exit ()
15605{
15606 set +e
15607 as_fn_set_status $1
15608 exit $1
15609} # as_fn_exit
15610
15611# as_fn_unset VAR
15612# ---------------
15613# Portably unset VAR.
15614as_fn_unset ()
15615{
15616 { eval $1=; unset $1;}
15617}
15618as_unset=as_fn_unset
15619# as_fn_append VAR VALUE
15620# ----------------------
15621# Append the text in VALUE to the end of the definition contained in VAR. Take
15622# advantage of any shell optimizations that allow amortized linear growth over
15623# repeated appends, instead of the typical quadratic growth present in naive
15624# implementations.
15625if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15626 eval 'as_fn_append ()
15627 {
15628 eval $1+=\$2
15629 }'
15630else
15631 as_fn_append ()
15632 {
15633 eval $1=\$$1\$2
15634 }
15635fi # as_fn_append
15636
15637# as_fn_arith ARG...
15638# ------------------
15639# Perform arithmetic evaluation on the ARGs, and store the result in the
15640# global $as_val. Take advantage of shells that can avoid forks. The arguments
15641# must be portable across $(()) and expr.
15642if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15643 eval 'as_fn_arith ()
15644 {
15645 as_val=$(( $* ))
15646 }'
15647else
15648 as_fn_arith ()
15649 {
15650 as_val=`expr "$@" || test $? -eq 1`
15651 }
15652fi # as_fn_arith
15653
15654
15655if expr a : '\(a\)' >/dev/null 2>&1 &&
15656 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15657 as_expr=expr
15658else
15659 as_expr=false
15660fi
15661
15662if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15663 as_basename=basename
15664else
15665 as_basename=false
15666fi
15667
15668if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15669 as_dirname=dirname
15670else
15671 as_dirname=false
15672fi
15673
15674as_me=`$as_basename -- "$0" ||
15675$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15676 X"$0" : 'X\(//\)$' \| \
15677 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15678$as_echo X/"$0" |
15679 sed '/^.*\/\([^/][^/]*\)\/*$/{
15680 s//\1/
15681 q
15682 }
15683 /^X\/\(\/\/\)$/{
15684 s//\1/
15685 q
15686 }
15687 /^X\/\(\/\).*/{
15688 s//\1/
15689 q
15690 }
15691 s/.*/./; q'`
15692
15693# Avoid depending upon Character Ranges.
15694as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15695as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15696as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15697as_cr_digits='0123456789'
15698as_cr_alnum=$as_cr_Letters$as_cr_digits
15699
15700ECHO_C= ECHO_N= ECHO_T=
15701case `echo -n x` in #(((((
15702-n*)
15703 case `echo 'xy\c'` in
15704 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15705 xy) ECHO_C='\c';;
15706 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15707 ECHO_T=' ';;
15708 esac;;
15709*)
15710 ECHO_N='-n';;
15711esac
15712
15713rm -f conf$$ conf$$.exe conf$$.file
15714if test -d conf$$.dir; then
15715 rm -f conf$$.dir/conf$$.file
15716else
15717 rm -f conf$$.dir
15718 mkdir conf$$.dir 2>/dev/null
15719fi
15720if (echo >conf$$.file) 2>/dev/null; then
15721 if ln -s conf$$.file conf$$ 2>/dev/null; then
15722 as_ln_s='ln -s'
15723 # ... but there are two gotchas:
15724 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15725 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15726 # In both cases, we have to default to `cp -p'.
15727 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15728 as_ln_s='cp -p'
15729 elif ln conf$$.file conf$$ 2>/dev/null; then
15730 as_ln_s=ln
15731 else
15732 as_ln_s='cp -p'
15733 fi
15734else
15735 as_ln_s='cp -p'
15736fi
15737rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15738rmdir conf$$.dir 2>/dev/null
15739
15740
15741# as_fn_mkdir_p
15742# -------------
15743# Create "$as_dir" as a directory, including parents if necessary.
15744as_fn_mkdir_p ()
15745{
15746
15747 case $as_dir in #(
15748 -*) as_dir=./$as_dir;;
15749 esac
15750 test -d "$as_dir" || eval $as_mkdir_p || {
15751 as_dirs=
15752 while :; do
15753 case $as_dir in #(
15754 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15755 *) as_qdir=$as_dir;;
15756 esac
15757 as_dirs="'$as_qdir' $as_dirs"
15758 as_dir=`$as_dirname -- "$as_dir" ||
15759$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15760 X"$as_dir" : 'X\(//\)[^/]' \| \
15761 X"$as_dir" : 'X\(//\)$' \| \
15762 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15763$as_echo X"$as_dir" |
15764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15765 s//\1/
15766 q
15767 }
15768 /^X\(\/\/\)[^/].*/{
15769 s//\1/
15770 q
15771 }
15772 /^X\(\/\/\)$/{
15773 s//\1/
15774 q
15775 }
15776 /^X\(\/\).*/{
15777 s//\1/
15778 q
15779 }
15780 s/.*/./; q'`
15781 test -d "$as_dir" && break
15782 done
15783 test -z "$as_dirs" || eval "mkdir $as_dirs"
15784 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15785
15786
15787} # as_fn_mkdir_p
15788if mkdir -p . 2>/dev/null; then
15789 as_mkdir_p='mkdir -p "$as_dir"'
15790else
15791 test -d ./-p && rmdir ./-p
15792 as_mkdir_p=false
15793fi
15794
15795if test -x / >/dev/null 2>&1; then
15796 as_test_x='test -x'
15797else
15798 if ls -dL / >/dev/null 2>&1; then
15799 as_ls_L_option=L
15800 else
15801 as_ls_L_option=
15802 fi
15803 as_test_x='
15804 eval sh -c '\''
15805 if test -d "$1"; then
15806 test -d "$1/.";
15807 else
15808 case $1 in #(
15809 -*)set "./$1";;
15810 esac;
15811 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15812 ???[sx]*):;;*)false;;esac;fi
15813 '\'' sh
15814 '
15815fi
15816as_executable_p=$as_test_x
15817
15818# Sed expression to map a string onto a valid CPP name.
15819as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15820
15821# Sed expression to map a string onto a valid variable name.
15822as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15823
15824
15825exec 6>&1
15826## ----------------------------------- ##
15827## Main body of $CONFIG_STATUS script. ##
15828## ----------------------------------- ##
15829_ASEOF
15830test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15831
15832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15833# Save the log message, to keep $0 and so on meaningful, and to
15834# report actual input values of CONFIG_FILES etc. instead of their
15835# values after options handling.
15836ac_log="
15837This file was extended by package-unused $as_me version-unused, which was
15838generated by GNU Autoconf 2.64. Invocation command line was
15839
15840 CONFIG_FILES = $CONFIG_FILES
15841 CONFIG_HEADERS = $CONFIG_HEADERS
15842 CONFIG_LINKS = $CONFIG_LINKS
15843 CONFIG_COMMANDS = $CONFIG_COMMANDS
15844 $ $0 $@
15845
15846on `(hostname || uname -n) 2>/dev/null | sed 1q`
15847"
15848
15849_ACEOF
15850
15851case $ac_config_files in *"
15852"*) set x $ac_config_files; shift; ac_config_files=$*;;
15853esac
15854
15855case $ac_config_headers in *"
15856"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15857esac
15858
15859
15860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861# Files that config.status was made for.
15862config_files="$ac_config_files"
15863config_headers="$ac_config_headers"
15864config_commands="$ac_config_commands"
15865
15866_ACEOF
15867
15868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15869ac_cs_usage="\
15870\`$as_me' instantiates files and other configuration actions
15871from templates according to the current configuration. Unless the files
15872and actions are specified as TAGs, all are instantiated by default.
15873
15874Usage: $0 [OPTION]... [TAG]...
15875
15876 -h, --help print this help, then exit
15877 -V, --version print version number and configuration settings, then exit
15878 -q, --quiet, --silent
15879 do not print progress messages
15880 -d, --debug don't remove temporary files
15881 --recheck update $as_me by reconfiguring in the same conditions
15882 --file=FILE[:TEMPLATE]
15883 instantiate the configuration file FILE
15884 --header=FILE[:TEMPLATE]
15885 instantiate the configuration header FILE
15886
15887Configuration files:
15888$config_files
15889
15890Configuration headers:
15891$config_headers
15892
15893Configuration commands:
15894$config_commands
15895
15896Report bugs to the package provider."
15897
15898_ACEOF
15899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15900ac_cs_version="\\
15901package-unused config.status version-unused
15902configured by $0, generated by GNU Autoconf 2.64,
15903 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15904
15905Copyright (C) 2009 Free Software Foundation, Inc.
15906This config.status script is free software; the Free Software Foundation
15907gives unlimited permission to copy, distribute and modify it."
15908
15909ac_pwd='$ac_pwd'
15910srcdir='$srcdir'
15911INSTALL='$INSTALL'
15912MKDIR_P='$MKDIR_P'
15913AWK='$AWK'
15914test -n "\$AWK" || AWK=awk
15915_ACEOF
15916
15917cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15918# The default lists apply if the user does not specify any file.
15919ac_need_defaults=:
15920while test $# != 0
15921do
15922 case $1 in
15923 --*=*)
15924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15926 ac_shift=:
15927 ;;
15928 *)
15929 ac_option=$1
15930 ac_optarg=$2
15931 ac_shift=shift
15932 ;;
15933 esac
15934
15935 case $ac_option in
15936 # Handling of the options.
15937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15938 ac_cs_recheck=: ;;
15939 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15940 $as_echo "$ac_cs_version"; exit ;;
15941 --debug | --debu | --deb | --de | --d | -d )
15942 debug=: ;;
15943 --file | --fil | --fi | --f )
15944 $ac_shift
15945 case $ac_optarg in
15946 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15947 esac
15948 as_fn_append CONFIG_FILES " '$ac_optarg'"
15949 ac_need_defaults=false;;
15950 --header | --heade | --head | --hea )
15951 $ac_shift
15952 case $ac_optarg in
15953 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15954 esac
15955 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15956 ac_need_defaults=false;;
15957 --he | --h)
15958 # Conflict between --help and --header
15959 as_fn_error "ambiguous option: \`$1'
15960Try \`$0 --help' for more information.";;
15961 --help | --hel | -h )
15962 $as_echo "$ac_cs_usage"; exit ;;
15963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15964 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15965 ac_cs_silent=: ;;
15966
15967 # This is an error.
15968 -*) as_fn_error "unrecognized option: \`$1'
15969Try \`$0 --help' for more information." ;;
15970
15971 *) as_fn_append ac_config_targets " $1"
15972 ac_need_defaults=false ;;
15973
15974 esac
15975 shift
15976done
15977
15978ac_configure_extra_args=
15979
15980if $ac_cs_silent; then
15981 exec 6>/dev/null
15982 ac_configure_extra_args="$ac_configure_extra_args --silent"
15983fi
15984
15985_ACEOF
15986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15987if \$ac_cs_recheck; then
15988 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15989 shift
15990 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15991 CONFIG_SHELL='$SHELL'
15992 export CONFIG_SHELL
15993 exec "\$@"
15994fi
15995
15996_ACEOF
15997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15998exec 5>>config.log
15999{
16000 echo
16001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16002## Running $as_me. ##
16003_ASBOX
16004 $as_echo "$ac_log"
16005} >&5
16006
16007_ACEOF
16008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16009#
16010# INIT-COMMANDS
16011#
16012
16013srcdir="$srcdir"
16014host="$host"
16015target="$target"
16016with_multisubdir="$with_multisubdir"
16017with_multisrctop="$with_multisrctop"
16018with_target_subdir="$with_target_subdir"
16019ac_configure_args="${multilib_arg} ${ac_configure_args}"
16020multi_basedir="$multi_basedir"
16021CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16022CC="$CC"
16023CXX="$CXX"
16024GFORTRAN="$GFORTRAN"
16025GCJ="$GCJ"
16026AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16027
16028
16029# The HP-UX ksh and POSIX shell print the target directory to stdout
16030# if CDPATH is set.
16031(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16032
16033sed_quote_subst='$sed_quote_subst'
16034double_quote_subst='$double_quote_subst'
16035delay_variable_subst='$delay_variable_subst'
16036SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16037Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16038GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16039EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16040FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16041SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16042ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16043LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16044macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16045macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16046enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16047enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16048pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16049enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16050host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16051host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16052host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16053build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16054build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16055build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16056NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16057LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16058max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16059ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16060exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16061lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16062lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16063lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16064reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16065reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16066OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16067deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16068file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16069AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16070AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16071STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16072RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16073old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16074old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16075old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16076lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16077CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16078CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16079compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16080GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16081lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16082lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16083lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16084lt_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"`'
16085objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16086MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16087lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16088lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16089lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16090lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16091lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16092need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16093DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16094NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16095LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16096OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16097OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16098libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16099shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16100extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16101archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16102enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16103export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16104whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16105compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16106old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16107old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16108archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16109archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16110module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16111module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16112with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16113allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16114no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16115hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16116hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16117hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16118hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16119hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16120hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16121hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16122hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16123inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16124link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16125fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16126always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16127export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16128exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16129include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16130prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16131file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16132variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16133need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16134need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16135version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16136runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16137shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16138shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16139libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16140library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16141soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16142install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16143postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16144postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16145finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16146finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16147hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16148sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16149sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16150hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16151enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16152enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16153enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16154old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16155striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16156LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16157reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16158reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16159old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16160compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16161GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16162lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16163lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16164lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16165lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16166lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16167archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16168enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16169export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16170whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16171compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16172old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16173old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16174archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16175archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16176module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16177module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16178with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16179allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16180no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16181hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16182hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16183hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16184hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16185hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16186hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16187hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16188hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16189inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16190link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16191fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16192always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16193export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16194exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16195include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16196prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16197file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16198hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16199
16200LTCC='$LTCC'
16201LTCFLAGS='$LTCFLAGS'
16202compiler='$compiler_DEFAULT'
16203
16204# A function that is used when there is no print builtin or printf.
16205func_fallback_echo ()
16206{
16207 eval 'cat <<_LTECHO_EOF
16208\$1
16209_LTECHO_EOF'
16210}
16211
16212# Quote evaled strings.
16213for var in SED \
16214GREP \
16215EGREP \
16216FGREP \
16217SHELL \
16218ECHO \
16219LD \
16220NM \
16221LN_S \
16222lt_SP2NL \
16223lt_NL2SP \
16224reload_flag \
16225OBJDUMP \
16226deplibs_check_method \
16227file_magic_cmd \
16228AR \
16229AR_FLAGS \
16230STRIP \
16231RANLIB \
16232CC \
16233CFLAGS \
16234compiler \
16235lt_cv_sys_global_symbol_pipe \
16236lt_cv_sys_global_symbol_to_cdecl \
16237lt_cv_sys_global_symbol_to_c_name_address \
16238lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16239lt_prog_compiler_no_builtin_flag \
16240lt_prog_compiler_wl \
16241lt_prog_compiler_pic \
16242lt_prog_compiler_static \
16243lt_cv_prog_compiler_c_o \
16244need_locks \
16245DSYMUTIL \
16246NMEDIT \
16247LIPO \
16248OTOOL \
16249OTOOL64 \
16250shrext_cmds \
16251export_dynamic_flag_spec \
16252whole_archive_flag_spec \
16253compiler_needs_object \
16254with_gnu_ld \
16255allow_undefined_flag \
16256no_undefined_flag \
16257hardcode_libdir_flag_spec \
16258hardcode_libdir_flag_spec_ld \
16259hardcode_libdir_separator \
16260fix_srcfile_path \
16261exclude_expsyms \
16262include_expsyms \
16263file_list_spec \
16264variables_saved_for_relink \
16265libname_spec \
16266library_names_spec \
16267soname_spec \
16268install_override_mode \
16269finish_eval \
16270old_striplib \
16271striplib \
16272LD_GO \
16273reload_flag_GO \
16274compiler_GO \
16275lt_prog_compiler_no_builtin_flag_GO \
16276lt_prog_compiler_wl_GO \
16277lt_prog_compiler_pic_GO \
16278lt_prog_compiler_static_GO \
16279lt_cv_prog_compiler_c_o_GO \
16280export_dynamic_flag_spec_GO \
16281whole_archive_flag_spec_GO \
16282compiler_needs_object_GO \
16283with_gnu_ld_GO \
16284allow_undefined_flag_GO \
16285no_undefined_flag_GO \
16286hardcode_libdir_flag_spec_GO \
16287hardcode_libdir_flag_spec_ld_GO \
16288hardcode_libdir_separator_GO \
16289fix_srcfile_path_GO \
16290exclude_expsyms_GO \
16291include_expsyms_GO \
16292file_list_spec_GO; do
16293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16294 *[\\\\\\\`\\"\\\$]*)
16295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16296 ;;
16297 *)
16298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16299 ;;
16300 esac
16301done
16302
16303# Double-quote double-evaled strings.
16304for var in reload_cmds \
16305old_postinstall_cmds \
16306old_postuninstall_cmds \
16307old_archive_cmds \
16308extract_expsyms_cmds \
16309old_archive_from_new_cmds \
16310old_archive_from_expsyms_cmds \
16311archive_cmds \
16312archive_expsym_cmds \
16313module_cmds \
16314module_expsym_cmds \
16315export_symbols_cmds \
16316prelink_cmds \
16317postinstall_cmds \
16318postuninstall_cmds \
16319finish_cmds \
16320sys_lib_search_path_spec \
16321sys_lib_dlsearch_path_spec \
16322reload_cmds_GO \
16323old_archive_cmds_GO \
16324old_archive_from_new_cmds_GO \
16325old_archive_from_expsyms_cmds_GO \
16326archive_cmds_GO \
16327archive_expsym_cmds_GO \
16328module_cmds_GO \
16329module_expsym_cmds_GO \
16330export_symbols_cmds_GO \
16331prelink_cmds_GO; do
16332 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16333 *[\\\\\\\`\\"\\\$]*)
16334 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16335 ;;
16336 *)
16337 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16338 ;;
16339 esac
16340done
16341
16342ac_aux_dir='$ac_aux_dir'
16343xsi_shell='$xsi_shell'
16344lt_shell_append='$lt_shell_append'
16345
16346# See if we are running on zsh, and set the options which allow our
16347# commands through without removal of \ escapes INIT.
16348if test -n "\${ZSH_VERSION+set}" ; then
16349 setopt NO_GLOB_SUBST
16350fi
16351
16352
16353 PACKAGE='$PACKAGE'
16354 VERSION='$VERSION'
16355 TIMESTAMP='$TIMESTAMP'
16356 RM='$RM'
16357 ofile='$ofile'
16358
16359
16360
16361
16362
16363
16364# Variables needed in config.status (file generation) which aren't already
16365# passed by autoconf.
16366SUBDIRS="$SUBDIRS"
16367
16368
16369_ACEOF
16370
16371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16372
16373# Handling of arguments.
16374for ac_config_target in $ac_config_targets
16375do
16376 case $ac_config_target in
16377 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16378 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16379 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16380 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16381 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16382 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16383 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16384
16385 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16386 esac
16387done
16388
16389
16390# If the user did not use the arguments to specify the items to instantiate,
16391# then the envvar interface is used. Set only those that are not.
16392# We use the long form for the default assignment because of an extremely
16393# bizarre bug on SunOS 4.1.3.
16394if $ac_need_defaults; then
16395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16397 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16398fi
16399
16400# Have a temporary directory for convenience. Make it in the build tree
16401# simply because there is no reason against having it here, and in addition,
16402# creating and moving files from /tmp can sometimes cause problems.
16403# Hook for its removal unless debugging.
16404# Note that there is a small window in which the directory will not be cleaned:
16405# after its creation but before its name has been assigned to `$tmp'.
16406$debug ||
16407{
16408 tmp=
16409 trap 'exit_status=$?
16410 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16411' 0
16412 trap 'as_fn_exit 1' 1 2 13 15
16413}
16414# Create a (secure) tmp directory for tmp files.
16415
16416{
16417 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16418 test -n "$tmp" && test -d "$tmp"
16419} ||
16420{
16421 tmp=./conf$$-$RANDOM
16422 (umask 077 && mkdir "$tmp")
16423} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16424
16425# Set up the scripts for CONFIG_FILES section.
16426# No need to generate them if there are no CONFIG_FILES.
16427# This happens for instance with `./config.status config.h'.
16428if test -n "$CONFIG_FILES"; then
16429
16430
16431ac_cr=`echo X | tr X '\015'`
16432# On cygwin, bash can eat \r inside `` if the user requested igncr.
16433# But we know of no other shell where ac_cr would be empty at this
16434# point, so we can use a bashism as a fallback.
16435if test "x$ac_cr" = x; then
16436 eval ac_cr=\$\'\\r\'
16437fi
16438ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16439if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16440 ac_cs_awk_cr='\r'
16441else
16442 ac_cs_awk_cr=$ac_cr
16443fi
16444
16445echo 'BEGIN {' >"$tmp/subs1.awk" &&
16446_ACEOF
16447
16448
16449{
16450 echo "cat >conf$$subs.awk <<_ACEOF" &&
16451 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16452 echo "_ACEOF"
16453} >conf$$subs.sh ||
16454 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16455ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16456ac_delim='%!_!# '
16457for ac_last_try in false false false false false :; do
16458 . ./conf$$subs.sh ||
16459 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16460
16461 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16462 if test $ac_delim_n = $ac_delim_num; then
16463 break
16464 elif $ac_last_try; then
16465 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16466 else
16467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16468 fi
16469done
16470rm -f conf$$subs.sh
16471
16472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16473cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16474_ACEOF
16475sed -n '
16476h
16477s/^/S["/; s/!.*/"]=/
16478p
16479g
16480s/^[^!]*!//
16481:repl
16482t repl
16483s/'"$ac_delim"'$//
16484t delim
16485:nl
16486h
16487s/\(.\{148\}\).*/\1/
16488t more1
16489s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16490p
16491n
16492b repl
16493:more1
16494s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16495p
16496g
16497s/.\{148\}//
16498t nl
16499:delim
16500h
16501s/\(.\{148\}\).*/\1/
16502t more2
16503s/["\\]/\\&/g; s/^/"/; s/$/"/
16504p
16505b
16506:more2
16507s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16508p
16509g
16510s/.\{148\}//
16511t delim
16512' <conf$$subs.awk | sed '
16513/^[^""]/{
16514 N
16515 s/\n//
16516}
16517' >>$CONFIG_STATUS || ac_write_fail=1
16518rm -f conf$$subs.awk
16519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16520_ACAWK
16521cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16522 for (key in S) S_is_set[key] = 1
16523 FS = "\a"
16524
16525}
16526{
16527 line = $ 0
16528 nfields = split(line, field, "@")
16529 substed = 0
16530 len = length(field[1])
16531 for (i = 2; i < nfields; i++) {
16532 key = field[i]
16533 keylen = length(key)
16534 if (S_is_set[key]) {
16535 value = S[key]
16536 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16537 len += length(value) + length(field[++i])
16538 substed = 1
16539 } else
16540 len += 1 + keylen
16541 }
16542
16543 print line
16544}
16545
16546_ACAWK
16547_ACEOF
16548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16549if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16550 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16551else
16552 cat
16553fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16554 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16555_ACEOF
16556
16557# VPATH may cause trouble with some makes, so we remove $(srcdir),
16558# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16559# trailing colons and then remove the whole line if VPATH becomes empty
16560# (actually we leave an empty line to preserve line numbers).
16561if test "x$srcdir" = x.; then
16562 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16563s/:*\$(srcdir):*/:/
16564s/:*\${srcdir}:*/:/
16565s/:*@srcdir@:*/:/
16566s/^\([^=]*=[ ]*\):*/\1/
16567s/:*$//
16568s/^[^=]*=[ ]*$//
16569}'
16570fi
16571
16572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16573fi # test -n "$CONFIG_FILES"
16574
16575# Set up the scripts for CONFIG_HEADERS section.
16576# No need to generate them if there are no CONFIG_HEADERS.
16577# This happens for instance with `./config.status Makefile'.
16578if test -n "$CONFIG_HEADERS"; then
16579cat >"$tmp/defines.awk" <<\_ACAWK ||
16580BEGIN {
16581_ACEOF
16582
16583# Transform confdefs.h into an awk script `defines.awk', embedded as
16584# here-document in config.status, that substitutes the proper values into
16585# config.h.in to produce config.h.
16586
16587# Create a delimiter string that does not exist in confdefs.h, to ease
16588# handling of long lines.
16589ac_delim='%!_!# '
16590for ac_last_try in false false :; do
16591 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16592 if test -z "$ac_t"; then
16593 break
16594 elif $ac_last_try; then
16595 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16596 else
16597 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16598 fi
16599done
16600
16601# For the awk script, D is an array of macro values keyed by name,
16602# likewise P contains macro parameters if any. Preserve backslash
16603# newline sequences.
16604
16605ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16606sed -n '
16607s/.\{148\}/&'"$ac_delim"'/g
16608t rset
16609:rset
16610s/^[ ]*#[ ]*define[ ][ ]*/ /
16611t def
16612d
16613:def
16614s/\\$//
16615t bsnl
16616s/["\\]/\\&/g
16617s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16618D["\1"]=" \3"/p
16619s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16620d
16621:bsnl
16622s/["\\]/\\&/g
16623s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16624D["\1"]=" \3\\\\\\n"\\/p
16625t cont
16626s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16627t cont
16628d
16629:cont
16630n
16631s/.\{148\}/&'"$ac_delim"'/g
16632t clear
16633:clear
16634s/\\$//
16635t bsnlc
16636s/["\\]/\\&/g; s/^/"/; s/$/"/p
16637d
16638:bsnlc
16639s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16640b cont
16641' <confdefs.h | sed '
16642s/'"$ac_delim"'/"\\\
16643"/g' >>$CONFIG_STATUS || ac_write_fail=1
16644
16645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16646 for (key in D) D_is_set[key] = 1
16647 FS = "\a"
16648}
16649/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16650 line = \$ 0
16651 split(line, arg, " ")
16652 if (arg[1] == "#") {
16653 defundef = arg[2]
16654 mac1 = arg[3]
16655 } else {
16656 defundef = substr(arg[1], 2)
16657 mac1 = arg[2]
16658 }
16659 split(mac1, mac2, "(") #)
16660 macro = mac2[1]
16661 prefix = substr(line, 1, index(line, defundef) - 1)
16662 if (D_is_set[macro]) {
16663 # Preserve the white space surrounding the "#".
16664 print prefix "define", macro P[macro] D[macro]
16665 next
16666 } else {
16667 # Replace #undef with comments. This is necessary, for example,
16668 # in the case of _POSIX_SOURCE, which is predefined and required
16669 # on some systems where configure will not decide to define it.
16670 if (defundef == "undef") {
16671 print "/*", prefix defundef, macro, "*/"
16672 next
16673 }
16674 }
16675}
16676{ print }
16677_ACAWK
16678_ACEOF
16679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16680 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16681fi # test -n "$CONFIG_HEADERS"
16682
16683
16684eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16685shift
16686for ac_tag
16687do
16688 case $ac_tag in
16689 :[FHLC]) ac_mode=$ac_tag; continue;;
16690 esac
16691 case $ac_mode$ac_tag in
16692 :[FHL]*:*);;
16693 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16694 :[FH]-) ac_tag=-:-;;
16695 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16696 esac
16697 ac_save_IFS=$IFS
16698 IFS=:
16699 set x $ac_tag
16700 IFS=$ac_save_IFS
16701 shift
16702 ac_file=$1
16703 shift
16704
16705 case $ac_mode in
16706 :L) ac_source=$1;;
16707 :[FH])
16708 ac_file_inputs=
16709 for ac_f
16710 do
16711 case $ac_f in
16712 -) ac_f="$tmp/stdin";;
16713 *) # Look for the file first in the build tree, then in the source tree
16714 # (if the path is not absolute). The absolute path cannot be DOS-style,
16715 # because $ac_f cannot contain `:'.
16716 test -f "$ac_f" ||
16717 case $ac_f in
16718 [\\/$]*) false;;
16719 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16720 esac ||
16721 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16722 esac
16723 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16724 as_fn_append ac_file_inputs " '$ac_f'"
16725 done
16726
16727 # Let's still pretend it is `configure' which instantiates (i.e., don't
16728 # use $as_me), people would be surprised to read:
16729 # /* config.h. Generated by config.status. */
16730 configure_input='Generated from '`
16731 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16732 `' by configure.'
16733 if test x"$ac_file" != x-; then
16734 configure_input="$ac_file. $configure_input"
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16736$as_echo "$as_me: creating $ac_file" >&6;}
16737 fi
16738 # Neutralize special characters interpreted by sed in replacement strings.
16739 case $configure_input in #(
16740 *\&* | *\|* | *\\* )
16741 ac_sed_conf_input=`$as_echo "$configure_input" |
16742 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16743 *) ac_sed_conf_input=$configure_input;;
16744 esac
16745
16746 case $ac_tag in
16747 *:-:* | *:-) cat >"$tmp/stdin" \
16748 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16749 esac
16750 ;;
16751 esac
16752
16753 ac_dir=`$as_dirname -- "$ac_file" ||
16754$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16755 X"$ac_file" : 'X\(//\)[^/]' \| \
16756 X"$ac_file" : 'X\(//\)$' \| \
16757 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16758$as_echo X"$ac_file" |
16759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16760 s//\1/
16761 q
16762 }
16763 /^X\(\/\/\)[^/].*/{
16764 s//\1/
16765 q
16766 }
16767 /^X\(\/\/\)$/{
16768 s//\1/
16769 q
16770 }
16771 /^X\(\/\).*/{
16772 s//\1/
16773 q
16774 }
16775 s/.*/./; q'`
16776 as_dir="$ac_dir"; as_fn_mkdir_p
16777 ac_builddir=.
16778
16779case "$ac_dir" in
16780.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16781*)
16782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16783 # A ".." for each directory in $ac_dir_suffix.
16784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16785 case $ac_top_builddir_sub in
16786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16788 esac ;;
16789esac
16790ac_abs_top_builddir=$ac_pwd
16791ac_abs_builddir=$ac_pwd$ac_dir_suffix
16792# for backward compatibility:
16793ac_top_builddir=$ac_top_build_prefix
16794
16795case $srcdir in
16796 .) # We are building in place.
16797 ac_srcdir=.
16798 ac_top_srcdir=$ac_top_builddir_sub
16799 ac_abs_top_srcdir=$ac_pwd ;;
16800 [\\/]* | ?:[\\/]* ) # Absolute name.
16801 ac_srcdir=$srcdir$ac_dir_suffix;
16802 ac_top_srcdir=$srcdir
16803 ac_abs_top_srcdir=$srcdir ;;
16804 *) # Relative name.
16805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16806 ac_top_srcdir=$ac_top_build_prefix$srcdir
16807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16808esac
16809ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16810
16811
16812 case $ac_mode in
16813 :F)
16814 #
16815 # CONFIG_FILE
16816 #
16817
16818 case $INSTALL in
16819 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16820 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16821 esac
16822 ac_MKDIR_P=$MKDIR_P
16823 case $MKDIR_P in
16824 [\\/$]* | ?:[\\/]* ) ;;
16825 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16826 esac
16827_ACEOF
16828
16829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16830# If the template does not know about datarootdir, expand it.
16831# FIXME: This hack should be removed a few years after 2.60.
16832ac_datarootdir_hack=; ac_datarootdir_seen=
16833ac_sed_dataroot='
16834/datarootdir/ {
16835 p
16836 q
16837}
16838/@datadir@/p
16839/@docdir@/p
16840/@infodir@/p
16841/@localedir@/p
16842/@mandir@/p'
16843case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16844*datarootdir*) ac_datarootdir_seen=yes;;
16845*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16847$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16848_ACEOF
16849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16850 ac_datarootdir_hack='
16851 s&@datadir@&$datadir&g
16852 s&@docdir@&$docdir&g
16853 s&@infodir@&$infodir&g
16854 s&@localedir@&$localedir&g
16855 s&@mandir@&$mandir&g
16856 s&\\\${datarootdir}&$datarootdir&g' ;;
16857esac
16858_ACEOF
16859
16860# Neutralize VPATH when `$srcdir' = `.'.
16861# Shell code in configure.ac might set extrasub.
16862# FIXME: do we really want to maintain this feature?
16863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16864ac_sed_extra="$ac_vpsub
16865$extrasub
16866_ACEOF
16867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16868:t
16869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16870s|@configure_input@|$ac_sed_conf_input|;t t
16871s&@top_builddir@&$ac_top_builddir_sub&;t t
16872s&@top_build_prefix@&$ac_top_build_prefix&;t t
16873s&@srcdir@&$ac_srcdir&;t t
16874s&@abs_srcdir@&$ac_abs_srcdir&;t t
16875s&@top_srcdir@&$ac_top_srcdir&;t t
16876s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16877s&@builddir@&$ac_builddir&;t t
16878s&@abs_builddir@&$ac_abs_builddir&;t t
16879s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16880s&@INSTALL@&$ac_INSTALL&;t t
16881s&@MKDIR_P@&$ac_MKDIR_P&;t t
16882$ac_datarootdir_hack
16883"
16884eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16885 || as_fn_error "could not create $ac_file" "$LINENO" 5
16886
16887test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16888 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16891which seems to be undefined. Please make sure it is defined." >&5
16892$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16893which seems to be undefined. Please make sure it is defined." >&2;}
16894
16895 rm -f "$tmp/stdin"
16896 case $ac_file in
16897 -) cat "$tmp/out" && rm -f "$tmp/out";;
16898 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16899 esac \
16900 || as_fn_error "could not create $ac_file" "$LINENO" 5
16901 ;;
16902 :H)
16903 #
16904 # CONFIG_HEADER
16905 #
16906 if test x"$ac_file" != x-; then
16907 {
16908 $as_echo "/* $configure_input */" \
16909 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16910 } >"$tmp/config.h" \
16911 || as_fn_error "could not create $ac_file" "$LINENO" 5
16912 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16914$as_echo "$as_me: $ac_file is unchanged" >&6;}
16915 else
16916 rm -f "$ac_file"
16917 mv "$tmp/config.h" "$ac_file" \
16918 || as_fn_error "could not create $ac_file" "$LINENO" 5
16919 fi
16920 else
16921 $as_echo "/* $configure_input */" \
16922 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16923 || as_fn_error "could not create -" "$LINENO" 5
16924 fi
16925# Compute "$ac_file"'s index in $config_headers.
16926_am_arg="$ac_file"
16927_am_stamp_count=1
16928for _am_header in $config_headers :; do
16929 case $_am_header in
16930 $_am_arg | $_am_arg:* )
16931 break ;;
16932 * )
16933 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16934 esac
16935done
16936echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16937$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16938 X"$_am_arg" : 'X\(//\)[^/]' \| \
16939 X"$_am_arg" : 'X\(//\)$' \| \
16940 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16941$as_echo X"$_am_arg" |
16942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16943 s//\1/
16944 q
16945 }
16946 /^X\(\/\/\)[^/].*/{
16947 s//\1/
16948 q
16949 }
16950 /^X\(\/\/\)$/{
16951 s//\1/
16952 q
16953 }
16954 /^X\(\/\).*/{
16955 s//\1/
16956 q
16957 }
16958 s/.*/./; q'`/stamp-h$_am_stamp_count
16959 ;;
16960
16961 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16962$as_echo "$as_me: executing $ac_file commands" >&6;}
16963 ;;
16964 esac
16965
16966
16967 case $ac_file$ac_mode in
16968 "default-1":C)
16969# Only add multilib support code if we just rebuilt the top-level
16970# Makefile.
16971case " $CONFIG_FILES " in
16972 *" Makefile "*)
16973 ac_file=Makefile . ${multi_basedir}/config-ml.in
16974 ;;
16975esac ;;
16976 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16977 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16978 # are listed without --file. Let's play safe and only enable the eval
16979 # if we detect the quoting.
16980 case $CONFIG_FILES in
16981 *\'*) eval set x "$CONFIG_FILES" ;;
16982 *) set x $CONFIG_FILES ;;
16983 esac
16984 shift
16985 for mf
16986 do
16987 # Strip MF so we end up with the name of the file.
16988 mf=`echo "$mf" | sed -e 's/:.*$//'`
16989 # Check whether this is an Automake generated Makefile or not.
16990 # We used to match only the files named `Makefile.in', but
16991 # some people rename them; so instead we look at the file content.
16992 # Grep'ing the first line is not enough: some people post-process
16993 # each Makefile.in and add a new line on top of each file to say so.
16994 # Grep'ing the whole file is not good either: AIX grep has a line
16995 # limit of 2048, but all sed's we know have understand at least 4000.
16996 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16997 dirpart=`$as_dirname -- "$mf" ||
16998$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16999 X"$mf" : 'X\(//\)[^/]' \| \
17000 X"$mf" : 'X\(//\)$' \| \
17001 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17002$as_echo X"$mf" |
17003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17004 s//\1/
17005 q
17006 }
17007 /^X\(\/\/\)[^/].*/{
17008 s//\1/
17009 q
17010 }
17011 /^X\(\/\/\)$/{
17012 s//\1/
17013 q
17014 }
17015 /^X\(\/\).*/{
17016 s//\1/
17017 q
17018 }
17019 s/.*/./; q'`
17020 else
17021 continue
17022 fi
17023 # Extract the definition of DEPDIR, am__include, and am__quote
17024 # from the Makefile without running `make'.
17025 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17026 test -z "$DEPDIR" && continue
17027 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17028 test -z "am__include" && continue
17029 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17030 # When using ansi2knr, U may be empty or an underscore; expand it
17031 U=`sed -n 's/^U = //p' < "$mf"`
17032 # Find all dependency output files, they are included files with
17033 # $(DEPDIR) in their names. We invoke sed twice because it is the
17034 # simplest approach to changing $(DEPDIR) to its actual value in the
17035 # expansion.
17036 for file in `sed -n "
17037 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17038 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17039 # Make sure the directory exists.
17040 test -f "$dirpart/$file" && continue
17041 fdir=`$as_dirname -- "$file" ||
17042$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17043 X"$file" : 'X\(//\)[^/]' \| \
17044 X"$file" : 'X\(//\)$' \| \
17045 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17046$as_echo X"$file" |
17047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17048 s//\1/
17049 q
17050 }
17051 /^X\(\/\/\)[^/].*/{
17052 s//\1/
17053 q
17054 }
17055 /^X\(\/\/\)$/{
17056 s//\1/
17057 q
17058 }
17059 /^X\(\/\).*/{
17060 s//\1/
17061 q
17062 }
17063 s/.*/./; q'`
17064 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17065 # echo "creating $dirpart/$file"
17066 echo '# dummy' > "$dirpart/$file"
17067 done
17068 done
17069}
17070 ;;
17071 "libtool":C)
17072
17073 # See if we are running on zsh, and set the options which allow our
17074 # commands through without removal of \ escapes.
17075 if test -n "${ZSH_VERSION+set}" ; then
17076 setopt NO_GLOB_SUBST
17077 fi
17078
17079 cfgfile="${ofile}T"
17080 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17081 $RM "$cfgfile"
17082
17083 cat <<_LT_EOF >> "$cfgfile"
17084#! $SHELL
17085
17086# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17087# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17088# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17089# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17090#
17091# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17092# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17093# Written by Gordon Matzigkeit, 1996
17094#
17095# This file is part of GNU Libtool.
17096#
17097# GNU Libtool is free software; you can redistribute it and/or
17098# modify it under the terms of the GNU General Public License as
17099# published by the Free Software Foundation; either version 2 of
17100# the License, or (at your option) any later version.
17101#
17102# As a special exception to the GNU General Public License,
17103# if you distribute this file as part of a program or library that
17104# is built using GNU Libtool, you may include this file under the
17105# same distribution terms that you use for the rest of that program.
17106#
17107# GNU Libtool is distributed in the hope that it will be useful,
17108# but WITHOUT ANY WARRANTY; without even the implied warranty of
17109# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17110# GNU General Public License for more details.
17111#
17112# You should have received a copy of the GNU General Public License
17113# along with GNU Libtool; see the file COPYING. If not, a copy
17114# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17115# obtained by writing to the Free Software Foundation, Inc.,
17116# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17117
17118
17119# The names of the tagged configurations supported by this script.
17120available_tags="GO "
17121
17122# ### BEGIN LIBTOOL CONFIG
17123
17124# A sed program that does not truncate output.
17125SED=$lt_SED
17126
17127# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17128Xsed="\$SED -e 1s/^X//"
17129
17130# A grep program that handles long lines.
17131GREP=$lt_GREP
17132
17133# An ERE matcher.
17134EGREP=$lt_EGREP
17135
17136# A literal string matcher.
17137FGREP=$lt_FGREP
17138
17139# Shell to use when invoking shell scripts.
17140SHELL=$lt_SHELL
17141
17142# An echo program that protects backslashes.
17143ECHO=$lt_ECHO
17144
17145# Which release of libtool.m4 was used?
17146macro_version=$macro_version
17147macro_revision=$macro_revision
17148
17149# Whether or not to build shared libraries.
17150build_libtool_libs=$enable_shared
17151
17152# Whether or not to build static libraries.
17153build_old_libs=$enable_static
17154
17155# What type of objects to build.
17156pic_mode=$pic_mode
17157
17158# Whether or not to optimize for fast installation.
17159fast_install=$enable_fast_install
17160
17161# The host system.
17162host_alias=$host_alias
17163host=$host
17164host_os=$host_os
17165
17166# The build system.
17167build_alias=$build_alias
17168build=$build
17169build_os=$build_os
17170
17171# A BSD- or MS-compatible name lister.
17172NM=$lt_NM
17173
17174# Whether we need soft or hard links.
17175LN_S=$lt_LN_S
17176
17177# What is the maximum length of a command?
17178max_cmd_len=$max_cmd_len
17179
17180# Object file suffix (normally "o").
17181objext=$ac_objext
17182
17183# Executable file suffix (normally "").
17184exeext=$exeext
17185
17186# whether the shell understands "unset".
17187lt_unset=$lt_unset
17188
17189# turn spaces into newlines.
17190SP2NL=$lt_lt_SP2NL
17191
17192# turn newlines into spaces.
17193NL2SP=$lt_lt_NL2SP
17194
17195# An object symbol dumper.
17196OBJDUMP=$lt_OBJDUMP
17197
17198# Method to check whether dependent libraries are shared objects.
17199deplibs_check_method=$lt_deplibs_check_method
17200
17201# Command to use when deplibs_check_method == "file_magic".
17202file_magic_cmd=$lt_file_magic_cmd
17203
17204# The archiver.
17205AR=$lt_AR
17206AR_FLAGS=$lt_AR_FLAGS
17207
17208# A symbol stripping program.
17209STRIP=$lt_STRIP
17210
17211# Commands used to install an old-style archive.
17212RANLIB=$lt_RANLIB
17213old_postinstall_cmds=$lt_old_postinstall_cmds
17214old_postuninstall_cmds=$lt_old_postuninstall_cmds
17215
17216# Whether to use a lock for old archive extraction.
17217lock_old_archive_extraction=$lock_old_archive_extraction
17218
17219# A C compiler.
17220LTCC=$lt_CC
17221
17222# LTCC compiler flags.
17223LTCFLAGS=$lt_CFLAGS
17224
17225# Take the output of nm and produce a listing of raw symbols and C names.
17226global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17227
17228# Transform the output of nm in a proper C declaration.
17229global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17230
17231# Transform the output of nm in a C name address pair.
17232global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17233
17234# Transform the output of nm in a C name address pair when lib prefix is needed.
17235global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17236
17237# The name of the directory that contains temporary libtool files.
17238objdir=$objdir
17239
17240# Used to examine libraries when file_magic_cmd begins with "file".
17241MAGIC_CMD=$MAGIC_CMD
17242
17243# Must we lock files when doing compilation?
17244need_locks=$lt_need_locks
17245
17246# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17247DSYMUTIL=$lt_DSYMUTIL
17248
17249# Tool to change global to local symbols on Mac OS X.
17250NMEDIT=$lt_NMEDIT
17251
17252# Tool to manipulate fat objects and archives on Mac OS X.
17253LIPO=$lt_LIPO
17254
17255# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17256OTOOL=$lt_OTOOL
17257
17258# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17259OTOOL64=$lt_OTOOL64
17260
17261# Old archive suffix (normally "a").
17262libext=$libext
17263
17264# Shared library suffix (normally ".so").
17265shrext_cmds=$lt_shrext_cmds
17266
17267# The commands to extract the exported symbol list from a shared archive.
17268extract_expsyms_cmds=$lt_extract_expsyms_cmds
17269
17270# Variables whose values should be saved in libtool wrapper scripts and
17271# restored at link time.
17272variables_saved_for_relink=$lt_variables_saved_for_relink
17273
17274# Do we need the "lib" prefix for modules?
17275need_lib_prefix=$need_lib_prefix
17276
17277# Do we need a version for libraries?
17278need_version=$need_version
17279
17280# Library versioning type.
17281version_type=$version_type
17282
17283# Shared library runtime path variable.
17284runpath_var=$runpath_var
17285
17286# Shared library path variable.
17287shlibpath_var=$shlibpath_var
17288
17289# Is shlibpath searched before the hard-coded library search path?
17290shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17291
17292# Format of library name prefix.
17293libname_spec=$lt_libname_spec
17294
17295# List of archive names. First name is the real one, the rest are links.
17296# The last name is the one that the linker finds with -lNAME
17297library_names_spec=$lt_library_names_spec
17298
17299# The coded name of the library, if different from the real name.
17300soname_spec=$lt_soname_spec
17301
17302# Permission mode override for installation of shared libraries.
17303install_override_mode=$lt_install_override_mode
17304
17305# Command to use after installation of a shared archive.
17306postinstall_cmds=$lt_postinstall_cmds
17307
17308# Command to use after uninstallation of a shared archive.
17309postuninstall_cmds=$lt_postuninstall_cmds
17310
17311# Commands used to finish a libtool library installation in a directory.
17312finish_cmds=$lt_finish_cmds
17313
17314# As "finish_cmds", except a single script fragment to be evaled but
17315# not shown.
17316finish_eval=$lt_finish_eval
17317
17318# Whether we should hardcode library paths into libraries.
17319hardcode_into_libs=$hardcode_into_libs
17320
17321# Compile-time system search path for libraries.
17322sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17323
17324# Run-time system search path for libraries.
17325sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17326
17327# Whether dlopen is supported.
17328dlopen_support=$enable_dlopen
17329
17330# Whether dlopen of programs is supported.
17331dlopen_self=$enable_dlopen_self
17332
17333# Whether dlopen of statically linked programs is supported.
17334dlopen_self_static=$enable_dlopen_self_static
17335
17336# Commands to strip libraries.
17337old_striplib=$lt_old_striplib
17338striplib=$lt_striplib
17339
17340
17341# The linker used to build libraries.
17342LD=$lt_LD
17343
17344# How to create reloadable object files.
17345reload_flag=$lt_reload_flag
17346reload_cmds=$lt_reload_cmds
17347
17348# Commands used to build an old-style archive.
17349old_archive_cmds=$lt_old_archive_cmds
17350
17351# A language specific compiler.
17352CC=$lt_compiler
17353
17354# Is the compiler the GNU compiler?
17355with_gcc=$GCC
17356
17357# Compiler flag to turn off builtin functions.
17358no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17359
17360# How to pass a linker flag through the compiler.
17361wl=$lt_lt_prog_compiler_wl
17362
17363# Additional compiler flags for building library objects.
17364pic_flag=$lt_lt_prog_compiler_pic
17365
17366# Compiler flag to prevent dynamic linking.
17367link_static_flag=$lt_lt_prog_compiler_static
17368
17369# Does compiler simultaneously support -c and -o options?
17370compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17371
17372# Whether or not to add -lc for building shared libraries.
17373build_libtool_need_lc=$archive_cmds_need_lc
17374
17375# Whether or not to disallow shared libs when runtime libs are static.
17376allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17377
17378# Compiler flag to allow reflexive dlopens.
17379export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17380
17381# Compiler flag to generate shared objects directly from archives.
17382whole_archive_flag_spec=$lt_whole_archive_flag_spec
17383
17384# Whether the compiler copes with passing no objects directly.
17385compiler_needs_object=$lt_compiler_needs_object
17386
17387# Create an old-style archive from a shared archive.
17388old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17389
17390# Create a temporary old-style archive to link instead of a shared archive.
17391old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17392
17393# Commands used to build a shared archive.
17394archive_cmds=$lt_archive_cmds
17395archive_expsym_cmds=$lt_archive_expsym_cmds
17396
17397# Commands used to build a loadable module if different from building
17398# a shared archive.
17399module_cmds=$lt_module_cmds
17400module_expsym_cmds=$lt_module_expsym_cmds
17401
17402# Whether we are building with GNU ld or not.
17403with_gnu_ld=$lt_with_gnu_ld
17404
17405# Flag that allows shared libraries with undefined symbols to be built.
17406allow_undefined_flag=$lt_allow_undefined_flag
17407
17408# Flag that enforces no undefined symbols.
17409no_undefined_flag=$lt_no_undefined_flag
17410
17411# Flag to hardcode \$libdir into a binary during linking.
17412# This must work even if \$libdir does not exist
17413hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17414
17415# If ld is used when linking, flag to hardcode \$libdir into a binary
17416# during linking. This must work even if \$libdir does not exist.
17417hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17418
17419# Whether we need a single "-rpath" flag with a separated argument.
17420hardcode_libdir_separator=$lt_hardcode_libdir_separator
17421
17422# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17423# DIR into the resulting binary.
17424hardcode_direct=$hardcode_direct
17425
17426# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17427# DIR into the resulting binary and the resulting library dependency is
17428# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17429# library is relocated.
17430hardcode_direct_absolute=$hardcode_direct_absolute
17431
17432# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17433# into the resulting binary.
17434hardcode_minus_L=$hardcode_minus_L
17435
17436# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17437# into the resulting binary.
17438hardcode_shlibpath_var=$hardcode_shlibpath_var
17439
17440# Set to "yes" if building a shared library automatically hardcodes DIR
17441# into the library and all subsequent libraries and executables linked
17442# against it.
17443hardcode_automatic=$hardcode_automatic
17444
17445# Set to yes if linker adds runtime paths of dependent libraries
17446# to runtime path list.
17447inherit_rpath=$inherit_rpath
17448
17449# Whether libtool must link a program against all its dependency libraries.
17450link_all_deplibs=$link_all_deplibs
17451
17452# Fix the shell variable \$srcfile for the compiler.
17453fix_srcfile_path=$lt_fix_srcfile_path
17454
17455# Set to "yes" if exported symbols are required.
17456always_export_symbols=$always_export_symbols
17457
17458# The commands to list exported symbols.
17459export_symbols_cmds=$lt_export_symbols_cmds
17460
17461# Symbols that should not be listed in the preloaded symbols.
17462exclude_expsyms=$lt_exclude_expsyms
17463
17464# Symbols that must always be exported.
17465include_expsyms=$lt_include_expsyms
17466
17467# Commands necessary for linking programs (against libraries) with templates.
17468prelink_cmds=$lt_prelink_cmds
17469
17470# Specify filename containing input files.
17471file_list_spec=$lt_file_list_spec
17472
17473# How to hardcode a shared library path into an executable.
17474hardcode_action=$hardcode_action
17475
17476# ### END LIBTOOL CONFIG
17477
17478_LT_EOF
17479
17480 case $host_os in
17481 aix3*)
17482 cat <<\_LT_EOF >> "$cfgfile"
17483# AIX sometimes has problems with the GCC collect2 program. For some
17484# reason, if we set the COLLECT_NAMES environment variable, the problems
17485# vanish in a puff of smoke.
17486if test "X${COLLECT_NAMES+set}" != Xset; then
17487 COLLECT_NAMES=
17488 export COLLECT_NAMES
17489fi
17490_LT_EOF
17491 ;;
17492 esac
17493
17494
17495ltmain="$ac_aux_dir/ltmain.sh"
17496
17497
17498 # We use sed instead of cat because bash on DJGPP gets confused if
17499 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17500 # text mode, it properly converts lines to CR/LF. This bash problem
17501 # is reportedly fixed, but why not run on old versions too?
17502 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17503 || (rm -f "$cfgfile"; exit 1)
17504
17505 case $xsi_shell in
17506 yes)
17507 cat << \_LT_EOF >> "$cfgfile"
17508
17509# func_dirname file append nondir_replacement
17510# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17511# otherwise set result to NONDIR_REPLACEMENT.
17512func_dirname ()
17513{
17514 case ${1} in
17515 */*) func_dirname_result="${1%/*}${2}" ;;
17516 * ) func_dirname_result="${3}" ;;
17517 esac
17518}
17519
17520# func_basename file
17521func_basename ()
17522{
17523 func_basename_result="${1##*/}"
17524}
17525
17526# func_dirname_and_basename file append nondir_replacement
17527# perform func_basename and func_dirname in a single function
17528# call:
17529# dirname: Compute the dirname of FILE. If nonempty,
17530# add APPEND to the result, otherwise set result
17531# to NONDIR_REPLACEMENT.
17532# value returned in "$func_dirname_result"
17533# basename: Compute filename of FILE.
17534# value retuned in "$func_basename_result"
17535# Implementation must be kept synchronized with func_dirname
17536# and func_basename. For efficiency, we do not delegate to
17537# those functions but instead duplicate the functionality here.
17538func_dirname_and_basename ()
17539{
17540 case ${1} in
17541 */*) func_dirname_result="${1%/*}${2}" ;;
17542 * ) func_dirname_result="${3}" ;;
17543 esac
17544 func_basename_result="${1##*/}"
17545}
17546
17547# func_stripname prefix suffix name
17548# strip PREFIX and SUFFIX off of NAME.
17549# PREFIX and SUFFIX must not contain globbing or regex special
17550# characters, hashes, percent signs, but SUFFIX may contain a leading
17551# dot (in which case that matches only a dot).
17552func_stripname ()
17553{
17554 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17555 # positional parameters, so assign one to ordinary parameter first.
17556 func_stripname_result=${3}
17557 func_stripname_result=${func_stripname_result#"${1}"}
17558 func_stripname_result=${func_stripname_result%"${2}"}
17559}
17560
17561# func_opt_split
17562func_opt_split ()
17563{
17564 func_opt_split_opt=${1%%=*}
17565 func_opt_split_arg=${1#*=}
17566}
17567
17568# func_lo2o object
17569func_lo2o ()
17570{
17571 case ${1} in
17572 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17573 *) func_lo2o_result=${1} ;;
17574 esac
17575}
17576
17577# func_xform libobj-or-source
17578func_xform ()
17579{
17580 func_xform_result=${1%.*}.lo
17581}
17582
17583# func_arith arithmetic-term...
17584func_arith ()
17585{
17586 func_arith_result=$(( $* ))
17587}
17588
17589# func_len string
17590# STRING may not start with a hyphen.
17591func_len ()
17592{
17593 func_len_result=${#1}
17594}
17595
17596_LT_EOF
17597 ;;
17598 *) # Bourne compatible functions.
17599 cat << \_LT_EOF >> "$cfgfile"
17600
17601# func_dirname file append nondir_replacement
17602# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17603# otherwise set result to NONDIR_REPLACEMENT.
17604func_dirname ()
17605{
17606 # Extract subdirectory from the argument.
17607 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17608 if test "X$func_dirname_result" = "X${1}"; then
17609 func_dirname_result="${3}"
17610 else
17611 func_dirname_result="$func_dirname_result${2}"
17612 fi
17613}
17614
17615# func_basename file
17616func_basename ()
17617{
17618 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17619}
17620
17621
17622# func_stripname prefix suffix name
17623# strip PREFIX and SUFFIX off of NAME.
17624# PREFIX and SUFFIX must not contain globbing or regex special
17625# characters, hashes, percent signs, but SUFFIX may contain a leading
17626# dot (in which case that matches only a dot).
17627# func_strip_suffix prefix name
17628func_stripname ()
17629{
17630 case ${2} in
17631 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17632 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17633 esac
17634}
17635
17636# sed scripts:
17637my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17638my_sed_long_arg='1s/^-[^=]*=//'
17639
17640# func_opt_split
17641func_opt_split ()
17642{
17643 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17644 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17645}
17646
17647# func_lo2o object
17648func_lo2o ()
17649{
17650 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17651}
17652
17653# func_xform libobj-or-source
17654func_xform ()
17655{
17656 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17657}
17658
17659# func_arith arithmetic-term...
17660func_arith ()
17661{
17662 func_arith_result=`expr "$@"`
17663}
17664
17665# func_len string
17666# STRING may not start with a hyphen.
17667func_len ()
17668{
17669 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17670}
17671
17672_LT_EOF
17673esac
17674
17675case $lt_shell_append in
17676 yes)
17677 cat << \_LT_EOF >> "$cfgfile"
17678
17679# func_append var value
17680# Append VALUE to the end of shell variable VAR.
17681func_append ()
17682{
17683 eval "$1+=\$2"
17684}
17685_LT_EOF
17686 ;;
17687 *)
17688 cat << \_LT_EOF >> "$cfgfile"
17689
17690# func_append var value
17691# Append VALUE to the end of shell variable VAR.
17692func_append ()
17693{
17694 eval "$1=\$$1\$2"
17695}
17696
17697_LT_EOF
17698 ;;
17699 esac
17700
17701
17702 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17703 || (rm -f "$cfgfile"; exit 1)
17704
17705 mv -f "$cfgfile" "$ofile" ||
17706 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17707 chmod +x "$ofile"
17708
17709
17710 cat <<_LT_EOF >> "$ofile"
17711
17712# ### BEGIN LIBTOOL TAG CONFIG: GO
17713
17714# The linker used to build libraries.
17715LD=$lt_LD_GO
17716
17717# How to create reloadable object files.
17718reload_flag=$lt_reload_flag_GO
17719reload_cmds=$lt_reload_cmds_GO
17720
17721# Commands used to build an old-style archive.
17722old_archive_cmds=$lt_old_archive_cmds_GO
17723
17724# A language specific compiler.
17725CC=$lt_compiler_GO
17726
17727# Is the compiler the GNU compiler?
17728with_gcc=$GCC_GO
17729
17730# Compiler flag to turn off builtin functions.
17731no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17732
17733# How to pass a linker flag through the compiler.
17734wl=$lt_lt_prog_compiler_wl_GO
17735
17736# Additional compiler flags for building library objects.
17737pic_flag=$lt_lt_prog_compiler_pic_GO
17738
17739# Compiler flag to prevent dynamic linking.
17740link_static_flag=$lt_lt_prog_compiler_static_GO
17741
17742# Does compiler simultaneously support -c and -o options?
17743compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17744
17745# Whether or not to add -lc for building shared libraries.
17746build_libtool_need_lc=$archive_cmds_need_lc_GO
17747
17748# Whether or not to disallow shared libs when runtime libs are static.
17749allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17750
17751# Compiler flag to allow reflexive dlopens.
17752export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17753
17754# Compiler flag to generate shared objects directly from archives.
17755whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17756
17757# Whether the compiler copes with passing no objects directly.
17758compiler_needs_object=$lt_compiler_needs_object_GO
17759
17760# Create an old-style archive from a shared archive.
17761old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17762
17763# Create a temporary old-style archive to link instead of a shared archive.
17764old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17765
17766# Commands used to build a shared archive.
17767archive_cmds=$lt_archive_cmds_GO
17768archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17769
17770# Commands used to build a loadable module if different from building
17771# a shared archive.
17772module_cmds=$lt_module_cmds_GO
17773module_expsym_cmds=$lt_module_expsym_cmds_GO
17774
17775# Whether we are building with GNU ld or not.
17776with_gnu_ld=$lt_with_gnu_ld_GO
17777
17778# Flag that allows shared libraries with undefined symbols to be built.
17779allow_undefined_flag=$lt_allow_undefined_flag_GO
17780
17781# Flag that enforces no undefined symbols.
17782no_undefined_flag=$lt_no_undefined_flag_GO
17783
17784# Flag to hardcode \$libdir into a binary during linking.
17785# This must work even if \$libdir does not exist
17786hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17787
17788# If ld is used when linking, flag to hardcode \$libdir into a binary
17789# during linking. This must work even if \$libdir does not exist.
17790hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17791
17792# Whether we need a single "-rpath" flag with a separated argument.
17793hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17794
17795# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17796# DIR into the resulting binary.
17797hardcode_direct=$hardcode_direct_GO
17798
17799# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17800# DIR into the resulting binary and the resulting library dependency is
17801# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17802# library is relocated.
17803hardcode_direct_absolute=$hardcode_direct_absolute_GO
17804
17805# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17806# into the resulting binary.
17807hardcode_minus_L=$hardcode_minus_L_GO
17808
17809# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17810# into the resulting binary.
17811hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17812
17813# Set to "yes" if building a shared library automatically hardcodes DIR
17814# into the library and all subsequent libraries and executables linked
17815# against it.
17816hardcode_automatic=$hardcode_automatic_GO
17817
17818# Set to yes if linker adds runtime paths of dependent libraries
17819# to runtime path list.
17820inherit_rpath=$inherit_rpath_GO
17821
17822# Whether libtool must link a program against all its dependency libraries.
17823link_all_deplibs=$link_all_deplibs_GO
17824
17825# Fix the shell variable \$srcfile for the compiler.
17826fix_srcfile_path=$lt_fix_srcfile_path_GO
17827
17828# Set to "yes" if exported symbols are required.
17829always_export_symbols=$always_export_symbols_GO
17830
17831# The commands to list exported symbols.
17832export_symbols_cmds=$lt_export_symbols_cmds_GO
17833
17834# Symbols that should not be listed in the preloaded symbols.
17835exclude_expsyms=$lt_exclude_expsyms_GO
17836
17837# Symbols that must always be exported.
17838include_expsyms=$lt_include_expsyms_GO
17839
17840# Commands necessary for linking programs (against libraries) with templates.
17841prelink_cmds=$lt_prelink_cmds_GO
17842
17843# Specify filename containing input files.
17844file_list_spec=$lt_file_list_spec_GO
17845
17846# How to hardcode a shared library path into an executable.
17847hardcode_action=$hardcode_action_GO
17848
17849# ### END LIBTOOL TAG CONFIG: GO
17850_LT_EOF
17851
17852 ;;
17853 "default":C) if test -n "$CONFIG_FILES"; then
17854 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17855 # that multilib installs will end up installed in the correct place.
17856 # The testsuite needs it for multilib-aware ABI baseline files.
17857 # To work around this not being passed down from config-ml.in ->
17858 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17859 # append it here. Only modify Makefiles that have just been created.
17860 #
17861 # Also, get rid of this simulated-VPATH thing that automake does.
17862 cat > vpsed << \_EOF
17863s!`test -f '$<' || echo '$(srcdir)/'`!!
17864_EOF
17865 for i in $SUBDIRS; do
17866 case $CONFIG_FILES in
17867 *${i}/Makefile*)
17868 #echo "Adding MULTISUBDIR to $i/Makefile"
17869 sed -f vpsed $i/Makefile > tmp
17870 grep '^MULTISUBDIR =' Makefile >> tmp
17871 mv tmp $i/Makefile
17872 ;;
17873 esac
17874 done
17875 rm vpsed
17876 fi
17877 ;;
17878
17879 esac
17880done # for ac_tag
17881
17882
17883as_fn_exit 0
17884_ACEOF
17885ac_clean_files=$ac_clean_files_save
17886
17887test $ac_write_fail = 0 ||
17888 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17889
17890
17891# configure is writing to config.log, and then calls config.status.
17892# config.status does its own redirection, appending to config.log.
17893# Unfortunately, on DOS this fails, as config.log is still kept open
17894# by configure, so config.status won't be able to write to it; its
17895# output is simply discarded. So we exec the FD to /dev/null,
17896# effectively closing config.log, so it can be properly (re)opened and
17897# appended to by config.status. When coming back to configure, we
17898# need to make the FD available again.
17899if test "$no_create" != yes; then
17900 ac_cs_success=:
17901 ac_config_status_args=
17902 test "$silent" = yes &&
17903 ac_config_status_args="$ac_config_status_args --quiet"
17904 exec 5>/dev/null
17905 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17906 exec 5>>config.log
17907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17908 # would make configure fail if this is the last instruction.
17909 $ac_cs_success || as_fn_exit $?
17910fi
17911if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17913$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17914fi
17915