]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
S/390: Support IBM z14 Model ZR1 with -march=native
[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
476013d6
ILT
605HAVE_STAT_TIMESPEC_FALSE
606HAVE_STAT_TIMESPEC_TRUE
207c35fa
ILT
607STRUCT_EPOLL_EVENT_FD_OFFSET
608SIZEOF_STRUCT_EPOLL_EVENT
9d465faf 609MATH_FLAG
7a938933 610STRINGOPS_FLAG
0b3189e7
ILT
611HAVE_WAIT4_FALSE
612HAVE_WAIT4_TRUE
8955c80a
ILT
613HAVE_STRERROR_R_FALSE
614HAVE_STRERROR_R_TRUE
7a938933
ILT
615HAVE_SYS_MMAN_H_FALSE
616HAVE_SYS_MMAN_H_TRUE
6c94a9fa
ILT
617PTHREAD_LIBS
618PTHREAD_CFLAGS
f2ee78b8 619NET_LIBS
505b439a 620MATH_LIBS
4c46b5f0
ILT
621GOC_IS_LLGO_FALSE
622GOC_IS_LLGO_TRUE
a2bf11d1 623GO_SPLIT_STACK
7a938933
ILT
624USING_SPLIT_STACK_FALSE
625USING_SPLIT_STACK_TRUE
626SPLIT_STACK
08934aed 627HWCAP_CFLAGS
90630d19 628OSCFLAGS
de27caac
ILT
629GO_SYSCALL_OS_ARCH_FILE
630GO_SYSCALL_OS_FILE
631GO_LIBCALL_OS_ARCH_FILE
632GO_LIBCALL_OS_FILE
a8464243
ILT
633ALLGOARCHFAMILY
634ALLGOARCH
c3b5b97b 635GOARCH
7134cf28 636USE_DEJAGNU
a8464243 637ALLGOOS
c3b5b97b 638GOOS
22b955cc
ILT
639LIBGO_IS_BSD_FALSE
640LIBGO_IS_BSD_TRUE
f163907e
ILT
641LIBGO_IS_AIX_FALSE
642LIBGO_IS_AIX_TRUE
f2ee78b8
ILT
643LIBGO_IS_SOLARIS_FALSE
644LIBGO_IS_SOLARIS_TRUE
7a938933
ILT
645LIBGO_IS_RTEMS_FALSE
646LIBGO_IS_RTEMS_TRUE
f038dae6
ILT
647LIBGO_IS_DRAGONFLY_FALSE
648LIBGO_IS_DRAGONFLY_TRUE
4ccad563
ILT
649LIBGO_IS_OPENBSD_FALSE
650LIBGO_IS_OPENBSD_TRUE
df4aa89a
ILT
651LIBGO_IS_NETBSD_FALSE
652LIBGO_IS_NETBSD_TRUE
7a938933
ILT
653LIBGO_IS_LINUX_FALSE
654LIBGO_IS_LINUX_TRUE
654d2ec0
ILT
655LIBGO_IS_IRIX_FALSE
656LIBGO_IS_IRIX_TRUE
7a938933
ILT
657LIBGO_IS_FREEBSD_FALSE
658LIBGO_IS_FREEBSD_TRUE
659LIBGO_IS_DARWIN_FALSE
660LIBGO_IS_DARWIN_TRUE
18c70075 661go_include
9a85ed03 662LIBATOMIC
5302cd02
ILT
663USE_LIBFFI_FALSE
664USE_LIBFFI_TRUE
7a938933
ILT
665LIBFFIINCS
666LIBFFI
317ea7c0 667nover_glibgo_toolexeclibdir
7a938933
ILT
668glibgo_toolexeclibdir
669glibgo_toolexecdir
7a938933
ILT
670WERROR
671WARN_FLAGS
d983a802 672CC_FOR_BUILD
7a938933
ILT
673enable_static
674enable_shared
061793a4 675CPP
7a938933
ILT
676OTOOL64
677OTOOL
678LIPO
679NMEDIT
680DSYMUTIL
681AR
682OBJDUMP
683LN_S
684NM
685ac_ct_DUMPBIN
686DUMPBIN
687LIBTOOL
688OBJCOPY
689RANLIB
690LD
691FGREP
692EGREP
693GREP
061793a4 694SED
7a938933
ILT
695MAINT
696MAINTAINER_MODE_FALSE
697MAINTAINER_MODE_TRUE
698GOCFLAGS
699GOC
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
44c925bd 703am__nodep
7a938933
ILT
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717am__untar
718am__tar
719AMTAR
720am__leading_dot
721SET_MAKE
722AWK
723mkdir_p
724MKDIR_P
725INSTALL_STRIP_PROGRAM
726STRIP
727install_sh
728MAKEINFO
729AUTOHEADER
730AUTOMAKE
731AUTOCONF
732ACLOCAL
733VERSION
734PACKAGE
735CYGPATH_W
736am__isrc
737INSTALL_DATA
738INSTALL_SCRIPT
739INSTALL_PROGRAM
740target_os
741target_vendor
742target_cpu
743target
744host_os
745host_vendor
746host_cpu
747host
748build_os
749build_vendor
750build_cpu
751build
752multi_basedir
753libtool_VERSION
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
792ac_subst_files=''
793ac_user_opts='
794enable_option_checking
795enable_multilib
796enable_dependency_tracking
797enable_maintainer_mode
798with_gnu_ld
799enable_shared
800enable_static
801with_pic
802enable_fast_install
803enable_libtool_lock
0d4668c1 804enable_werror
7a938933
ILT
805enable_version_specific_runtime_libs
806with_libffi
9a85ed03 807with_libatomic
54f0deb0 808with_system_libunwind
7a938933
ILT
809'
810 ac_precious_vars='build_alias
811host_alias
812target_alias
813CPP
814CPPFLAGS'
815
816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820ac_unrecognized_opts=
821ac_unrecognized_sep=
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
844# (The list follows the same order as the GNU Coding Standards.)
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
853includedir='${prefix}/include'
854oldincludedir='/usr/include'
855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
864
865ac_prev=
866ac_dashdash=
867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
872 ac_prev=
873 continue
874 fi
875
876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
911
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928"enable_$ac_useropt"
929"*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
944
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
980
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
985
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1015
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1089
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158"with_$ac_useropt"
1159"*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error "unrecognized option: \`$ac_option'
1200Try \`$0 --help' for more information."
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219 ;;
1220
1221 esac
1222done
1223
1224if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error "missing argument to $ac_option"
1227fi
1228
1229if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235fi
1236
1237# Check all directory arguments for consistency.
1238for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1242do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1256done
1257
1258# There might be people who depend on the old broken behavior: `$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1270 If a cross compiler is detected then cross compile mode will be used." >&2
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274fi
1275
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
1280
1281
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error "pwd does not report name of working directory"
1288
1289
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
1317 srcdir=$ac_confdir
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 srcdir=..
1320 fi
1321else
1322 ac_srcdir_defaulted=no
1323fi
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1331 pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
1376Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
1378 [$ac_default_prefix]
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 [PREFIX]
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409_ACEOF
1410
1411 cat <<\_ACEOF
1412
1413Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422_ACEOF
1423fi
1424
1425if test -n "$ac_init_help"; then
1426 case $ac_init_help in
1427 short | recursive ) echo "Configuration of package-unused version-unused:";;
1428 esac
1429 cat <<\_ACEOF
1430
1431Optional Features:
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-multilib build many library versions (default)
1436 --disable-dependency-tracking speeds up one-time build
1437 --enable-dependency-tracking do not reject slow dependency extractors
1438 --enable-maintainer-mode enable make rules and dependencies not useful
1439 (and sometimes confusing) to the casual installer
1440 --enable-shared[=PKGS] build shared libraries [default=yes]
1441 --enable-static[=PKGS] build static libraries [default=yes]
1442 --enable-fast-install[=PKGS]
1443 optimize for fast installation [default=yes]
1444 --disable-libtool-lock avoid locking (might break parallel builds)
0d4668c1 1445 --enable-werror turns on -Werror [default=yes]
7a938933
ILT
1446 --enable-version-specific-runtime-libs
1447 Specify that runtime libraries should be installed
1448 in a compiler-specific directory
1449
1450Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 --with-pic try to use only PIC/non-PIC objects [default=use
1455 both]
1456 --without-libffi don't use libffi
9a85ed03 1457 --without-libatomic don't use libatomic
54f0deb0 1458 --with-system-libunwind use installed libunwind
7a938933
ILT
1459
1460Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 GOC Go compiler command
1469 GOCFLAGS Go compiler flags
1470 CPP C preprocessor
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to the package provider.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533fi
1534
1535test -n "$ac_init_help" && exit $ac_status
1536if $ac_init_version; then
1537 cat <<\_ACEOF
1538package-unused configure version-unused
1539generated by GNU Autoconf 2.64
1540
1541Copyright (C) 2009 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
1545 exit
1546fi
1547
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
1551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579else
1580 $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1
1584fi
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 return $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
061793a4
ILT
1590# ac_fn_c_try_link LINENO
1591# -----------------------
1592# Try to link conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_link ()
7a938933
ILT
1594{
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4
ILT
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
7a938933
ILT
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
061793a4 1604 (eval "$ac_link") 2>conftest.err
7a938933
ILT
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
7a938933 1614 test ! -s conftest.err
061793a4
ILT
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 $as_test_x conftest$ac_exeext
7a938933
ILT
1618 }; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
061793a4 1624 ac_retval=1
7a938933 1625fi
061793a4
ILT
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
7a938933
ILT
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632 return $ac_retval
1633
061793a4 1634} # ac_fn_c_try_link
7a938933
ILT
1635
1636# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1637# -------------------------------------------------------
1638# Tests whether HEADER exists and can be compiled using the include files in
1639# INCLUDES, setting the cache variable VAR accordingly.
1640ac_fn_c_check_header_compile ()
1641{
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644$as_echo_n "checking for $2... " >&6; }
1645if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1646 $as_echo_n "(cached) " >&6
1647else
1648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649/* end confdefs.h. */
1650$4
1651#include <$2>
1652_ACEOF
1653if ac_fn_c_try_compile "$LINENO"; then :
1654 eval "$3=yes"
1655else
1656 eval "$3=no"
1657fi
1658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1659fi
1660eval ac_res=\$$3
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662$as_echo "$ac_res" >&6; }
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664
1665} # ac_fn_c_check_header_compile
1666
061793a4
ILT
1667# ac_fn_c_try_cpp LINENO
1668# ----------------------
1669# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_cpp ()
7a938933
ILT
1671{
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4 1673 if { { ac_try="$ac_cpp conftest.$ac_ext"
7a938933
ILT
1674case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
061793a4 1680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
7a938933
ILT
1681 ac_status=$?
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1686 fi
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1688 test $ac_status = 0; } >/dev/null && {
1689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7a938933
ILT
1690 test ! -s conftest.err
1691 }; then :
1692 ac_retval=0
1693else
1694 $as_echo "$as_me: failed program was:" >&5
1695sed 's/^/| /' conftest.$ac_ext >&5
1696
061793a4
ILT
1697 ac_retval=1
1698fi
1699 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700 return $ac_retval
1701
1702} # ac_fn_c_try_cpp
1703
1704# ac_fn_c_try_run LINENO
1705# ----------------------
1706# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1707# that executables *can* be run.
1708ac_fn_c_try_run ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 if { { ac_try="$ac_link"
1712case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_link") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1722 { { case "(($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_try") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; }; }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: program exited with status $ac_status" >&5
1735 $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738 ac_retval=$ac_status
7a938933
ILT
1739fi
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1742 return $ac_retval
1743
061793a4 1744} # ac_fn_c_try_run
7a938933
ILT
1745
1746# ac_fn_c_check_func LINENO FUNC VAR
1747# ----------------------------------
1748# Tests whether FUNC exists, setting the cache variable VAR accordingly
1749ac_fn_c_check_func ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758/* end confdefs.h. */
1759/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761#define $2 innocuous_$2
1762
1763/* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (); below.
1765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1766 <limits.h> exists even on freestanding compilers. */
1767
1768#ifdef __STDC__
1769# include <limits.h>
1770#else
1771# include <assert.h>
1772#endif
1773
1774#undef $2
1775
1776/* Override any GCC internal prototype to avoid an error.
1777 Use char because int might match the return type of a GCC
1778 builtin and then its argument prototype would still apply. */
1779#ifdef __cplusplus
1780extern "C"
1781#endif
1782char $2 ();
1783/* The GNU C library defines this for functions which it implements
1784 to always fail with ENOSYS. Some functions are actually named
1785 something starting with __ and the normal name is an alias. */
1786#if defined __stub_$2 || defined __stub___$2
1787choke me
1788#endif
1789
1790int
1791main ()
1792{
1793return $2 ();
1794 ;
1795 return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_link "$LINENO"; then :
1799 eval "$3=yes"
1800else
1801 eval "$3=no"
1802fi
1803rm -f core conftest.err conftest.$ac_objext \
1804 conftest$ac_exeext conftest.$ac_ext
1805fi
1806eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810
1811} # ac_fn_c_check_func
1812
1813# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814# -------------------------------------------------------
1815# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816# the include files in INCLUDES and setting the cache variable VAR
1817# accordingly.
1818ac_fn_c_check_header_mongrel ()
1819{
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1826fi
1827eval ac_res=\$$3
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829$as_echo "$ac_res" >&6; }
1830else
1831 # Is the header compilable?
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833$as_echo_n "checking $2 usability... " >&6; }
1834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836$4
1837#include <$2>
1838_ACEOF
1839if ac_fn_c_try_compile "$LINENO"; then :
1840 ac_header_compiler=yes
1841else
1842 ac_header_compiler=no
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846$as_echo "$ac_header_compiler" >&6; }
1847
1848# Is the header present?
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850$as_echo_n "checking $2 presence... " >&6; }
1851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h. */
1853#include <$2>
1854_ACEOF
1855if ac_fn_c_try_cpp "$LINENO"; then :
1856 ac_header_preproc=yes
1857else
1858 ac_header_preproc=no
1859fi
1860rm -f conftest.err conftest.$ac_ext
1861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862$as_echo "$ac_header_preproc" >&6; }
1863
1864# So? What about this header?
1865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1866 yes:no: )
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 ;;
1872 no:yes:* )
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1876$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1880$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883 ;;
1884esac
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886$as_echo_n "checking for $2... " >&6; }
1887if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 $as_echo_n "(cached) " >&6
1889else
1890 eval "$3=\$ac_header_compiler"
1891fi
1892eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
1895fi
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897
1898} # ac_fn_c_check_header_mongrel
1899
1900# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1901# -------------------------------------------
1902# Tests whether TYPE exists after having included INCLUDES, setting cache
1903# variable VAR accordingly.
1904ac_fn_c_check_type ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908$as_echo_n "checking for $2... " >&6; }
1909if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1910 $as_echo_n "(cached) " >&6
1911else
1912 eval "$3=no"
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h. */
1915$4
1916int
1917main ()
1918{
1919if (sizeof ($2))
1920 return 0;
1921 ;
1922 return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$4
1929int
1930main ()
1931{
1932if (sizeof (($2)))
1933 return 0;
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939
1940else
1941 eval "$3=yes"
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951
1952} # ac_fn_c_check_type
207c35fa
ILT
1953
1954# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1955# --------------------------------------------
1956# Tries to find the compile-time value of EXPR in a program that includes
1957# INCLUDES, setting VAR accordingly. Returns whether the value could be
1958# computed
1959ac_fn_c_compute_int ()
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if test "$cross_compiling" = yes; then
1963 # Depending upon the size, compute the lo and hi bounds.
1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970static int test_array [1 - 2 * !(($2) >= 0)];
1971test_array [0] = 0
1972
1973 ;
1974 return 0;
1975}
1976_ACEOF
1977if ac_fn_c_try_compile "$LINENO"; then :
1978 ac_lo=0 ac_mid=0
1979 while :; do
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981/* end confdefs.h. */
1982$4
1983int
1984main ()
1985{
1986static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1987test_array [0] = 0
1988
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_hi=$ac_mid; break
1995else
1996 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1997 if test $ac_lo -le $ac_mid; then
1998 ac_lo= ac_hi=
1999 break
2000 fi
2001 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 done
2005else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008$4
2009int
2010main ()
2011{
2012static int test_array [1 - 2 * !(($2) < 0)];
2013test_array [0] = 0
2014
2015 ;
2016 return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_hi=-1 ac_mid=-1
2021 while :; do
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024$4
2025int
2026main ()
2027{
2028static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2029test_array [0] = 0
2030
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_lo=$ac_mid; break
2037else
2038 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2039 if test $ac_mid -le $ac_hi; then
2040 ac_lo= ac_hi=
2041 break
2042 fi
2043 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 done
2047else
2048 ac_lo= ac_hi=
2049fi
2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051fi
2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053# Binary search between lo and hi bounds.
2054while test "x$ac_lo" != "x$ac_hi"; do
2055 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h. */
2058$4
2059int
2060main ()
2061{
2062static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2063test_array [0] = 0
2064
2065 ;
2066 return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"; then :
2070 ac_hi=$ac_mid
2071else
2072 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075done
2076case $ac_lo in #((
2077?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2078'') ac_retval=1 ;;
2079esac
2080 else
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084static long int longval () { return $2; }
2085static unsigned long int ulongval () { return $2; }
2086#include <stdio.h>
2087#include <stdlib.h>
2088int
2089main ()
2090{
2091
2092 FILE *f = fopen ("conftest.val", "w");
2093 if (! f)
2094 return 1;
2095 if (($2) < 0)
2096 {
2097 long int i = longval ();
2098 if (i != ($2))
2099 return 1;
2100 fprintf (f, "%ld", i);
2101 }
2102 else
2103 {
2104 unsigned long int i = ulongval ();
2105 if (i != ($2))
2106 return 1;
2107 fprintf (f, "%lu", i);
2108 }
2109 /* Do not output a trailing newline, as this causes \r\n confusion
2110 on some platforms. */
2111 return ferror (f) || fclose (f) != 0;
2112
2113 ;
2114 return 0;
2115}
2116_ACEOF
2117if ac_fn_c_try_run "$LINENO"; then :
2118 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2119else
2120 ac_retval=1
2121fi
2122rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2123 conftest.$ac_objext conftest.beam conftest.$ac_ext
2124rm -f conftest.val
2125
2126 fi
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128 return $ac_retval
2129
2130} # ac_fn_c_compute_int
7a938933
ILT
2131cat >config.log <<_ACEOF
2132This file contains any messages produced by compilers while
2133running configure, to aid debugging if configure makes a mistake.
2134
2135It was created by package-unused $as_me version-unused, which was
2136generated by GNU Autoconf 2.64. Invocation command line was
2137
2138 $ $0 $@
2139
2140_ACEOF
2141exec 5>>config.log
2142{
2143cat <<_ASUNAME
2144## --------- ##
2145## Platform. ##
2146## --------- ##
2147
2148hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2149uname -m = `(uname -m) 2>/dev/null || echo unknown`
2150uname -r = `(uname -r) 2>/dev/null || echo unknown`
2151uname -s = `(uname -s) 2>/dev/null || echo unknown`
2152uname -v = `(uname -v) 2>/dev/null || echo unknown`
2153
2154/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2155/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2156
2157/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2158/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2159/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2160/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2161/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2162/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2163/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2164
2165_ASUNAME
2166
2167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168for as_dir in $PATH
2169do
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 $as_echo "PATH: $as_dir"
2173 done
2174IFS=$as_save_IFS
2175
2176} >&5
2177
2178cat >&5 <<_ACEOF
2179
2180
2181## ----------- ##
2182## Core tests. ##
2183## ----------- ##
2184
2185_ACEOF
2186
2187
2188# Keep a trace of the command line.
2189# Strip out --no-create and --no-recursion so they do not pile up.
2190# Strip out --silent because we don't want to record it for future runs.
2191# Also quote any args containing shell meta-characters.
2192# Make two passes to allow for proper duplicate-argument suppression.
2193ac_configure_args=
2194ac_configure_args0=
2195ac_configure_args1=
2196ac_must_keep_next=false
2197for ac_pass in 1 2
2198do
2199 for ac_arg
2200 do
2201 case $ac_arg in
2202 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2204 | -silent | --silent | --silen | --sile | --sil)
2205 continue ;;
2206 *\'*)
2207 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2208 esac
2209 case $ac_pass in
2210 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2211 2)
2212 as_fn_append ac_configure_args1 " '$ac_arg'"
2213 if test $ac_must_keep_next = true; then
2214 ac_must_keep_next=false # Got value, back to normal.
2215 else
2216 case $ac_arg in
2217 *=* | --config-cache | -C | -disable-* | --disable-* \
2218 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2219 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2220 | -with-* | --with-* | -without-* | --without-* | --x)
2221 case "$ac_configure_args0 " in
2222 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2223 esac
2224 ;;
2225 -* ) ac_must_keep_next=true ;;
2226 esac
2227 fi
2228 as_fn_append ac_configure_args " '$ac_arg'"
2229 ;;
2230 esac
2231 done
2232done
2233{ ac_configure_args0=; unset ac_configure_args0;}
2234{ ac_configure_args1=; unset ac_configure_args1;}
2235
2236# When interrupted or exit'd, cleanup temporary files, and complete
2237# config.log. We remove comments because anyway the quotes in there
2238# would cause problems or look ugly.
2239# WARNING: Use '\'' to represent an apostrophe within the trap.
2240# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2241trap 'exit_status=$?
2242 # Save into config.log some information that might help in debugging.
2243 {
2244 echo
2245
2246 cat <<\_ASBOX
2247## ---------------- ##
2248## Cache variables. ##
2249## ---------------- ##
2250_ASBOX
2251 echo
2252 # The following way of writing the cache mishandles newlines in values,
2253(
2254 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2255 eval ac_val=\$$ac_var
2256 case $ac_val in #(
2257 *${as_nl}*)
2258 case $ac_var in #(
2259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2260$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2261 esac
2262 case $ac_var in #(
2263 _ | IFS | as_nl) ;; #(
2264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2265 *) { eval $ac_var=; unset $ac_var;} ;;
2266 esac ;;
2267 esac
2268 done
2269 (set) 2>&1 |
2270 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2271 *${as_nl}ac_space=\ *)
2272 sed -n \
2273 "s/'\''/'\''\\\\'\'''\''/g;
2274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2275 ;; #(
2276 *)
2277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2278 ;;
2279 esac |
2280 sort
2281)
2282 echo
2283
2284 cat <<\_ASBOX
2285## ----------------- ##
2286## Output variables. ##
2287## ----------------- ##
2288_ASBOX
2289 echo
2290 for ac_var in $ac_subst_vars
2291 do
2292 eval ac_val=\$$ac_var
2293 case $ac_val in
2294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295 esac
2296 $as_echo "$ac_var='\''$ac_val'\''"
2297 done | sort
2298 echo
2299
2300 if test -n "$ac_subst_files"; then
2301 cat <<\_ASBOX
2302## ------------------- ##
2303## File substitutions. ##
2304## ------------------- ##
2305_ASBOX
2306 echo
2307 for ac_var in $ac_subst_files
2308 do
2309 eval ac_val=\$$ac_var
2310 case $ac_val in
2311 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2312 esac
2313 $as_echo "$ac_var='\''$ac_val'\''"
2314 done | sort
2315 echo
2316 fi
2317
2318 if test -s confdefs.h; then
2319 cat <<\_ASBOX
2320## ----------- ##
2321## confdefs.h. ##
2322## ----------- ##
2323_ASBOX
2324 echo
2325 cat confdefs.h
2326 echo
2327 fi
2328 test "$ac_signal" != 0 &&
2329 $as_echo "$as_me: caught signal $ac_signal"
2330 $as_echo "$as_me: exit $exit_status"
2331 } >&5
2332 rm -f core *.core core.conftest.* &&
2333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2334 exit $exit_status
2335' 0
2336for ac_signal in 1 2 13 15; do
2337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2338done
2339ac_signal=0
2340
2341# confdefs.h avoids OS command line length limits that DEFS can exceed.
2342rm -f -r conftest* confdefs.h
2343
2344$as_echo "/* confdefs.h */" > confdefs.h
2345
2346# Predefined preprocessor variables.
2347
2348cat >>confdefs.h <<_ACEOF
2349#define PACKAGE_NAME "$PACKAGE_NAME"
2350_ACEOF
2351
2352cat >>confdefs.h <<_ACEOF
2353#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2354_ACEOF
2355
2356cat >>confdefs.h <<_ACEOF
2357#define PACKAGE_VERSION "$PACKAGE_VERSION"
2358_ACEOF
2359
2360cat >>confdefs.h <<_ACEOF
2361#define PACKAGE_STRING "$PACKAGE_STRING"
2362_ACEOF
2363
2364cat >>confdefs.h <<_ACEOF
2365#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2366_ACEOF
2367
2368cat >>confdefs.h <<_ACEOF
2369#define PACKAGE_URL "$PACKAGE_URL"
2370_ACEOF
2371
2372
2373# Let the site file select an alternate cache file if it wants to.
2374# Prefer an explicitly selected file to automatically selected ones.
2375ac_site_file1=NONE
2376ac_site_file2=NONE
2377if test -n "$CONFIG_SITE"; then
2378 ac_site_file1=$CONFIG_SITE
2379elif test "x$prefix" != xNONE; then
2380 ac_site_file1=$prefix/share/config.site
2381 ac_site_file2=$prefix/etc/config.site
2382else
2383 ac_site_file1=$ac_default_prefix/share/config.site
2384 ac_site_file2=$ac_default_prefix/etc/config.site
2385fi
2386for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387do
2388 test "x$ac_site_file" = xNONE && continue
2389 if test -r "$ac_site_file"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2391$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2392 sed 's/^/| /' "$ac_site_file" >&5
2393 . "$ac_site_file"
2394 fi
2395done
2396
2397if test -r "$cache_file"; then
2398 # Some versions of bash will fail to source /dev/null (special
2399 # files actually), so we avoid doing that.
2400 if test -f "$cache_file"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2402$as_echo "$as_me: loading cache $cache_file" >&6;}
2403 case $cache_file in
2404 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2405 *) . "./$cache_file";;
2406 esac
2407 fi
2408else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2410$as_echo "$as_me: creating cache $cache_file" >&6;}
2411 >$cache_file
2412fi
2413
2414# Check that the precious variables saved in the cache have kept the same
2415# value.
2416ac_cache_corrupted=false
2417for ac_var in $ac_precious_vars; do
2418 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2419 eval ac_new_set=\$ac_env_${ac_var}_set
2420 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2421 eval ac_new_val=\$ac_env_${ac_var}_value
2422 case $ac_old_set,$ac_new_set in
2423 set,)
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426 ac_cache_corrupted=: ;;
2427 ,set)
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430 ac_cache_corrupted=: ;;
2431 ,);;
2432 *)
2433 if test "x$ac_old_val" != "x$ac_new_val"; then
2434 # differences in whitespace do not lead to failure.
2435 ac_old_val_w=`echo x $ac_old_val`
2436 ac_new_val_w=`echo x $ac_new_val`
2437 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440 ac_cache_corrupted=:
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444 eval $ac_var=\$ac_old_val
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2447$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2449$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2450 fi;;
2451 esac
2452 # Pass precious variables to config.status.
2453 if test "$ac_new_set" = set; then
2454 case $ac_new_val in
2455 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456 *) ac_arg=$ac_var=$ac_new_val ;;
2457 esac
2458 case " $ac_configure_args " in
2459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2460 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2461 esac
2462 fi
2463done
2464if $ac_cache_corrupted; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2470fi
2471## -------------------- ##
2472## Main body of script. ##
2473## -------------------- ##
2474
2475ac_ext=c
2476ac_cpp='$CPP $CPPFLAGS'
2477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479ac_compiler_gnu=$ac_cv_c_compiler_gnu
2480
2481
2482
54f0deb0
ILT
2483
2484
2485
7a938933
ILT
2486ac_config_headers="$ac_config_headers config.h"
2487
2488
1a2f01ef 2489libtool_VERSION=13:0:0
7a938933
ILT
2490
2491
2492# Default to --enable-multilib
2493# Check whether --enable-multilib was given.
2494if test "${enable_multilib+set}" = set; then :
2495 enableval=$enable_multilib; case "$enableval" in
2496 yes) multilib=yes ;;
2497 no) multilib=no ;;
2498 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2499 esac
2500else
2501 multilib=yes
2502fi
2503
2504
2505# We may get other options which we leave undocumented:
2506# --with-target-subdir, --with-multisrctop, --with-multisubdir
2507# See config-ml.in if you want the gory details.
2508
2509if test "$srcdir" = "."; then
2510 if test "$with_target_subdir" != "."; then
2511 multi_basedir="$srcdir/$with_multisrctop../.."
2512 else
2513 multi_basedir="$srcdir/$with_multisrctop.."
2514 fi
2515else
2516 multi_basedir="$srcdir/.."
2517fi
2518
2519
2520# Even if the default multilib is not a cross compilation,
2521# it may be that some of the other multilibs are.
2522if test $cross_compiling = no && test $multilib = yes \
2523 && test "x${with_multisubdir}" != x ; then
2524 cross_compiling=maybe
2525fi
2526
2527ac_config_commands="$ac_config_commands default-1"
2528
2529
2530ac_aux_dir=
2531for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2532 for ac_t in install-sh install.sh shtool; do
2533 if test -f "$ac_dir/$ac_t"; then
2534 ac_aux_dir=$ac_dir
2535 ac_install_sh="$ac_aux_dir/$ac_t -c"
2536 break 2
2537 fi
2538 done
2539done
2540if test -z "$ac_aux_dir"; then
2541 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2542fi
2543
2544# These three variables are undocumented and unsupported,
2545# and are intended to be withdrawn in a future Autoconf release.
2546# They can cause serious problems if a builder's source tree is in a directory
2547# whose full name contains unusual characters.
2548ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2549ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2550ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2551
2552
2553# Make sure we can run config.sub.
2554$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2555 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2556
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2558$as_echo_n "checking build system type... " >&6; }
2559if test "${ac_cv_build+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
2561else
2562 ac_build_alias=$build_alias
2563test "x$ac_build_alias" = x &&
2564 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2565test "x$ac_build_alias" = x &&
2566 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2567ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2568 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2569
2570fi
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2572$as_echo "$ac_cv_build" >&6; }
2573case $ac_cv_build in
2574*-*-*) ;;
2575*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2576esac
2577build=$ac_cv_build
2578ac_save_IFS=$IFS; IFS='-'
2579set x $ac_cv_build
2580shift
2581build_cpu=$1
2582build_vendor=$2
2583shift; shift
2584# Remember, the first character of IFS is used to create $*,
2585# except with old shells:
2586build_os=$*
2587IFS=$ac_save_IFS
2588case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2589
2590
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2592$as_echo_n "checking host system type... " >&6; }
2593if test "${ac_cv_host+set}" = set; then :
2594 $as_echo_n "(cached) " >&6
2595else
2596 if test "x$host_alias" = x; then
2597 ac_cv_host=$ac_cv_build
2598else
2599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2600 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2601fi
2602
2603fi
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2605$as_echo "$ac_cv_host" >&6; }
2606case $ac_cv_host in
2607*-*-*) ;;
2608*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2609esac
2610host=$ac_cv_host
2611ac_save_IFS=$IFS; IFS='-'
2612set x $ac_cv_host
2613shift
2614host_cpu=$1
2615host_vendor=$2
2616shift; shift
2617# Remember, the first character of IFS is used to create $*,
2618# except with old shells:
2619host_os=$*
2620IFS=$ac_save_IFS
2621case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2622
2623
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2625$as_echo_n "checking target system type... " >&6; }
2626if test "${ac_cv_target+set}" = set; then :
2627 $as_echo_n "(cached) " >&6
2628else
2629 if test "x$target_alias" = x; then
2630 ac_cv_target=$ac_cv_host
2631else
2632 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2633 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2634fi
2635
2636fi
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2638$as_echo "$ac_cv_target" >&6; }
2639case $ac_cv_target in
2640*-*-*) ;;
2641*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2642esac
2643target=$ac_cv_target
2644ac_save_IFS=$IFS; IFS='-'
2645set x $ac_cv_target
2646shift
2647target_cpu=$1
2648target_vendor=$2
2649shift; shift
2650# Remember, the first character of IFS is used to create $*,
2651# except with old shells:
2652target_os=$*
2653IFS=$ac_save_IFS
2654case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2655
2656
2657# The aliases save the names the user supplied, while $host etc.
2658# will get canonicalized.
2659test -n "$target_alias" &&
2660 test "$program_prefix$program_suffix$program_transform_name" = \
2661 NONENONEs,x,x, &&
2662 program_prefix=${target_alias}-
2663
2664target_alias=${target_alias-$host_alias}
2665
2666am__api_version='1.11'
2667
2668# Find a good install program. We prefer a C program (faster),
2669# so one script is as good as another. But avoid the broken or
2670# incompatible versions:
2671# SysV /etc/install, /usr/sbin/install
2672# SunOS /usr/etc/install
2673# IRIX /sbin/install
2674# AIX /bin/install
2675# AmigaOS /C/install, which installs bootblocks on floppy discs
2676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2677# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2679# OS/2's system install, which has a completely different semantic
2680# ./install, which can be erroneously created by make from ./install.sh.
2681# Reject install programs that cannot install multiple files.
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2683$as_echo_n "checking for a BSD-compatible install... " >&6; }
2684if test -z "$INSTALL"; then
2685if test "${ac_cv_path_install+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 # Account for people who put trailing slashes in PATH elements.
2694case $as_dir/ in #((
2695 ./ | .// | /[cC]/* | \
2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2698 /usr/ucb/* ) ;;
2699 *)
2700 # OSF1 and SCO ODT 3.0 have their own names for install.
2701 # Don't use installbsd from OSF since it installs stuff as root
2702 # by default.
2703 for ac_prog in ginstall scoinst install; do
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2706 if test $ac_prog = install &&
2707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # AIX install. It has an incompatible calling convention.
2709 :
2710 elif test $ac_prog = install &&
2711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # program-specific install script used by HP pwplus--don't use.
2713 :
2714 else
2715 rm -rf conftest.one conftest.two conftest.dir
2716 echo one > conftest.one
2717 echo two > conftest.two
2718 mkdir conftest.dir
2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2720 test -s conftest.one && test -s conftest.two &&
2721 test -s conftest.dir/conftest.one &&
2722 test -s conftest.dir/conftest.two
2723 then
2724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2725 break 3
2726 fi
2727 fi
2728 fi
2729 done
2730 done
2731 ;;
2732esac
2733
2734 done
2735IFS=$as_save_IFS
2736
2737rm -rf conftest.one conftest.two conftest.dir
2738
2739fi
2740 if test "${ac_cv_path_install+set}" = set; then
2741 INSTALL=$ac_cv_path_install
2742 else
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 INSTALL=$ac_install_sh
2748 fi
2749fi
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2751$as_echo "$INSTALL" >&6; }
2752
2753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754# It thinks the first close brace ends the variable substitution.
2755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
2757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2758
2759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2762$as_echo_n "checking whether build environment is sane... " >&6; }
2763# Just in case
2764sleep 1
2765echo timestamp > conftest.file
2766# Reject unsafe characters in $srcdir or the absolute working directory
2767# name. Accept space and tab only in the latter.
2768am_lf='
2769'
2770case `pwd` in
2771 *[\\\"\#\$\&\'\`$am_lf]*)
2772 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2773esac
2774case $srcdir in
2775 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2776 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2777esac
2778
2779# Do `set' in a subshell so we don't clobber the current shell's
2780# arguments. Must try -L first in case configure is actually a
2781# symlink; some systems play weird games with the mod time of symlinks
2782# (eg FreeBSD returns the mod time of the symlink's containing
2783# directory).
2784if (
2785 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2786 if test "$*" = "X"; then
2787 # -L didn't work.
2788 set X `ls -t "$srcdir/configure" conftest.file`
2789 fi
2790 rm -f conftest.file
2791 if test "$*" != "X $srcdir/configure conftest.file" \
2792 && test "$*" != "X conftest.file $srcdir/configure"; then
2793
2794 # If neither matched, then we have a broken ls. This can happen
2795 # if, for instance, CONFIG_SHELL is bash and it inherits a
2796 # broken ls alias from the environment. This has actually
2797 # happened. Such a system could not be considered "sane".
2798 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2799alias in your environment" "$LINENO" 5
2800 fi
2801
2802 test "$2" = conftest.file
2803 )
2804then
2805 # Ok.
2806 :
2807else
2808 as_fn_error "newly created file is older than distributed files!
2809Check your system clock" "$LINENO" 5
2810fi
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812$as_echo "yes" >&6; }
2813test "$program_prefix" != NONE &&
2814 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2815# Use a double $ so make ignores it.
2816test "$program_suffix" != NONE &&
2817 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2818# Double any \ or $.
2819# By default was `s,x,x', remove it if useless.
2820ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2821program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2822
2823# expand $ac_aux_dir to an absolute path
2824am_aux_dir=`cd $ac_aux_dir && pwd`
2825
2826if test x"${MISSING+set}" != xset; then
2827 case $am_aux_dir in
2828 *\ * | *\ *)
2829 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2830 *)
2831 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2832 esac
2833fi
2834# Use eval to expand $SHELL
2835if eval "$MISSING --run true"; then
2836 am_missing_run="$MISSING --run "
2837else
2838 am_missing_run=
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2840$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2841fi
2842
2843if test x"${install_sh}" != xset; then
2844 case $am_aux_dir in
2845 *\ * | *\ *)
2846 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2847 *)
2848 install_sh="\${SHELL} $am_aux_dir/install-sh"
2849 esac
2850fi
2851
2852# Installed binaries are usually stripped using `strip' when the user
2853# run `make install-strip'. However `strip' might not be the right
2854# tool to use in cross-compilation environments, therefore Automake
2855# will honor the `STRIP' environment variable to overrule this program.
2856if test "$cross_compiling" != no; then
2857 if test -n "$ac_tool_prefix"; then
2858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2859set dummy ${ac_tool_prefix}strip; ac_word=$2
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861$as_echo_n "checking for $ac_word... " >&6; }
2862if test "${ac_cv_prog_STRIP+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2864else
2865 if test -n "$STRIP"; then
2866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2867else
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2878 fi
2879done
2880 done
2881IFS=$as_save_IFS
2882
2883fi
2884fi
2885STRIP=$ac_cv_prog_STRIP
2886if test -n "$STRIP"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2888$as_echo "$STRIP" >&6; }
2889else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891$as_echo "no" >&6; }
2892fi
2893
2894
2895fi
2896if test -z "$ac_cv_prog_STRIP"; then
2897 ac_ct_STRIP=$STRIP
2898 # Extract the first word of "strip", so it can be a program name with args.
2899set dummy strip; ac_word=$2
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901$as_echo_n "checking for $ac_word... " >&6; }
2902if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2903 $as_echo_n "(cached) " >&6
2904else
2905 if test -n "$ac_ct_STRIP"; then
2906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_ac_ct_STRIP="strip"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2918 fi
2919done
2920 done
2921IFS=$as_save_IFS
2922
2923fi
2924fi
2925ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2926if test -n "$ac_ct_STRIP"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2928$as_echo "$ac_ct_STRIP" >&6; }
2929else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931$as_echo "no" >&6; }
2932fi
2933
2934 if test "x$ac_ct_STRIP" = x; then
2935 STRIP=":"
2936 else
2937 case $cross_compiling:$ac_tool_warned in
2938yes:)
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941ac_tool_warned=yes ;;
2942esac
2943 STRIP=$ac_ct_STRIP
2944 fi
2945else
2946 STRIP="$ac_cv_prog_STRIP"
2947fi
2948
2949fi
2950INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2951
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2953$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2954if test -z "$MKDIR_P"; then
2955 if test "${ac_cv_path_mkdir+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2957else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_prog in mkdir gmkdir; do
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2966 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2967 'mkdir (GNU coreutils) '* | \
2968 'mkdir (coreutils) '* | \
2969 'mkdir (fileutils) '4.1*)
2970 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2971 break 3;;
2972 esac
2973 done
2974 done
2975 done
2976IFS=$as_save_IFS
2977
2978fi
2979
2980 if test "${ac_cv_path_mkdir+set}" = set; then
2981 MKDIR_P="$ac_cv_path_mkdir -p"
2982 else
2983 # As a last resort, use the slow shell script. Don't cache a
2984 # value for MKDIR_P within a source directory, because that will
2985 # break other packages using the cache if that directory is
2986 # removed, or if the value is a relative name.
2987 test -d ./--version && rmdir ./--version
2988 MKDIR_P="$ac_install_sh -d"
2989 fi
2990fi
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2992$as_echo "$MKDIR_P" >&6; }
2993
2994mkdir_p="$MKDIR_P"
2995case $mkdir_p in
2996 [\\/$]* | ?:[\\/]*) ;;
2997 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2998esac
2999
3000for ac_prog in gawk mawk nawk awk
3001do
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003set dummy $ac_prog; ac_word=$2
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005$as_echo_n "checking for $ac_word... " >&6; }
3006if test "${ac_cv_prog_AWK+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008else
3009 if test -n "$AWK"; then
3010 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3011else
3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_AWK="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023done
3024 done
3025IFS=$as_save_IFS
3026
3027fi
3028fi
3029AWK=$ac_cv_prog_AWK
3030if test -n "$AWK"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3032$as_echo "$AWK" >&6; }
3033else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035$as_echo "no" >&6; }
3036fi
3037
3038
3039 test -n "$AWK" && break
3040done
3041
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3043$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3044set x ${MAKE-make}
3045ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3046if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3047 $as_echo_n "(cached) " >&6
3048else
3049 cat >conftest.make <<\_ACEOF
3050SHELL = /bin/sh
3051all:
3052 @echo '@@@%%%=$(MAKE)=@@@%%%'
3053_ACEOF
3054# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3055case `${MAKE-make} -f conftest.make 2>/dev/null` in
3056 *@@@%%%=?*=@@@%%%*)
3057 eval ac_cv_prog_make_${ac_make}_set=yes;;
3058 *)
3059 eval ac_cv_prog_make_${ac_make}_set=no;;
3060esac
3061rm -f conftest.make
3062fi
3063if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3065$as_echo "yes" >&6; }
3066 SET_MAKE=
3067else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069$as_echo "no" >&6; }
3070 SET_MAKE="MAKE=${MAKE-make}"
3071fi
3072
3073rm -rf .tst 2>/dev/null
3074mkdir .tst 2>/dev/null
3075if test -d .tst; then
3076 am__leading_dot=.
3077else
3078 am__leading_dot=_
3079fi
3080rmdir .tst 2>/dev/null
3081
3082if test "`cd $srcdir && pwd`" != "`pwd`"; then
3083 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3084 # is not polluted with repeated "-I."
3085 am__isrc=' -I$(srcdir)'
3086 # test to see if srcdir already configured
3087 if test -f $srcdir/config.status; then
3088 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3089 fi
3090fi
3091
3092# test whether we have cygpath
3093if test -z "$CYGPATH_W"; then
3094 if (cygpath --version) >/dev/null 2>/dev/null; then
3095 CYGPATH_W='cygpath -w'
3096 else
3097 CYGPATH_W=echo
3098 fi
3099fi
3100
3101
3102# Define the identity of the package.
3103 PACKAGE='libgo'
3104 VERSION='version-unused'
3105
3106
3107# Some tools Automake needs.
3108
3109ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3110
3111
3112AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3113
3114
3115AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3116
3117
3118AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3119
3120
3121MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3122
3123# We need awk for the "check" target. The system "awk" is bad on
3124# some platforms.
44c925bd
ILT
3125# Always define AMTAR for backward compatibility. Yes, it's still used
3126# in the wild :-( We should find a proper way to deprecate it ...
3127AMTAR='$${TAR-tar}'
7a938933 3128
44c925bd 3129am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
7a938933
ILT
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140ac_ext=c
3141ac_cpp='$CPP $CPPFLAGS'
3142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145if test -n "$ac_tool_prefix"; then
3146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3147set dummy ${ac_tool_prefix}gcc; ac_word=$2
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149$as_echo_n "checking for $ac_word... " >&6; }
3150if test "${ac_cv_prog_CC+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155else
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 break 2
3166 fi
3167done
3168 done
3169IFS=$as_save_IFS
3170
3171fi
3172fi
3173CC=$ac_cv_prog_CC
3174if test -n "$CC"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3176$as_echo "$CC" >&6; }
3177else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180fi
3181
3182
3183fi
3184if test -z "$ac_cv_prog_CC"; then
3185 ac_ct_CC=$CC
3186 # Extract the first word of "gcc", so it can be a program name with args.
3187set dummy gcc; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192else
3193 if test -n "$ac_ct_CC"; then
3194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_ac_ct_CC="gcc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207done
3208 done
3209IFS=$as_save_IFS
3210
3211fi
3212fi
3213ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214if test -n "$ac_ct_CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216$as_echo "$ac_ct_CC" >&6; }
3217else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
3220fi
3221
3222 if test "x$ac_ct_CC" = x; then
3223 CC=""
3224 else
3225 case $cross_compiling:$ac_tool_warned in
3226yes:)
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229ac_tool_warned=yes ;;
3230esac
3231 CC=$ac_ct_CC
3232 fi
3233else
3234 CC="$ac_cv_prog_CC"
3235fi
3236
3237if test -z "$CC"; then
3238 if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3240set dummy ${ac_tool_prefix}cc; ac_word=$2
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242$as_echo_n "checking for $ac_word... " >&6; }
3243if test "${ac_cv_prog_CC+set}" = set; then :
3244 $as_echo_n "(cached) " >&6
3245else
3246 if test -n "$CC"; then
3247 ac_cv_prog_CC="$CC" # Let the user override the test.
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
3255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256 ac_cv_prog_CC="${ac_tool_prefix}cc"
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3259 fi
3260done
3261 done
3262IFS=$as_save_IFS
3263
3264fi
3265fi
3266CC=$ac_cv_prog_CC
3267if test -n "$CC"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3269$as_echo "$CC" >&6; }
3270else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273fi
3274
3275
3276 fi
3277fi
3278if test -z "$CC"; then
3279 # Extract the first word of "cc", so it can be a program name with args.
3280set dummy cc; ac_word=$2
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282$as_echo_n "checking for $ac_word... " >&6; }
3283if test "${ac_cv_prog_CC+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3285else
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3288else
3289 ac_prog_rejected=no
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3298 ac_prog_rejected=yes
3299 continue
3300 fi
3301 ac_cv_prog_CC="cc"
3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305done
3306 done
3307IFS=$as_save_IFS
3308
3309if test $ac_prog_rejected = yes; then
3310 # We found a bogon in the path, so make sure we never use it.
3311 set dummy $ac_cv_prog_CC
3312 shift
3313 if test $# != 0; then
3314 # We chose a different compiler from the bogus one.
3315 # However, it has the same basename, so the bogon will be chosen
3316 # first if we set CC to just the basename; use the full file name.
3317 shift
3318 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3319 fi
3320fi
3321fi
3322fi
3323CC=$ac_cv_prog_CC
3324if test -n "$CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326$as_echo "$CC" >&6; }
3327else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330fi
3331
3332
3333fi
3334if test -z "$CC"; then
3335 if test -n "$ac_tool_prefix"; then
3336 for ac_prog in cl.exe
3337 do
3338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if test "${ac_cv_prog_CC+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359done
3360 done
3361IFS=$as_save_IFS
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368$as_echo "$CC" >&6; }
3369else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372fi
3373
3374
3375 test -n "$CC" && break
3376 done
3377fi
3378if test -z "$CC"; then
3379 ac_ct_CC=$CC
3380 for ac_prog in cl.exe
3381do
3382 # Extract the first word of "$ac_prog", so it can be a program name with args.
3383set dummy $ac_prog; ac_word=$2
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385$as_echo_n "checking for $ac_word... " >&6; }
3386if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3387 $as_echo_n "(cached) " >&6
3388else
3389 if test -n "$ac_ct_CC"; then
3390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3391else
3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393for as_dir in $PATH
3394do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_ac_ct_CC="$ac_prog"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403done
3404 done
3405IFS=$as_save_IFS
3406
3407fi
3408fi
3409ac_ct_CC=$ac_cv_prog_ac_ct_CC
3410if test -n "$ac_ct_CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3412$as_echo "$ac_ct_CC" >&6; }
3413else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415$as_echo "no" >&6; }
3416fi
3417
3418
3419 test -n "$ac_ct_CC" && break
3420done
3421
3422 if test "x$ac_ct_CC" = x; then
3423 CC=""
3424 else
3425 case $cross_compiling:$ac_tool_warned in
3426yes:)
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3429ac_tool_warned=yes ;;
3430esac
3431 CC=$ac_ct_CC
3432 fi
3433fi
3434
3435fi
3436
3437
3438test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440as_fn_error "no acceptable C compiler found in \$PATH
3441See \`config.log' for more details." "$LINENO" 5; }
3442
3443# Provide some information about the compiler.
3444$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3445set X $ac_compile
3446ac_compiler=$2
3447for ac_option in --version -v -V -qversion; do
3448 { { ac_try="$ac_compiler $ac_option >&5"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
3453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454$as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3456 ac_status=$?
3457 if test -s conftest.err; then
3458 sed '10a\
3459... rest of stderr output deleted ...
3460 10q' conftest.err >conftest.er1
3461 cat conftest.er1 >&5
3462 rm -f conftest.er1 conftest.err
3463 fi
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }
3466done
3467
3468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h. */
54f0deb0 3470
7a938933
ILT
3471int
3472main ()
3473{
3474
3475 ;
3476 return 0;
3477}
3478_ACEOF
3479ac_clean_files_save=$ac_clean_files
3480ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3481# Try to create an executable without -o first, disregard a.out.
3482# It will help us diagnose broken compilers, and finding out an intuition
3483# of exeext.
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3485$as_echo_n "checking for C compiler default output file name... " >&6; }
3486ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3487
3488# The possible output files:
3489ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3490
3491ac_rmfiles=
3492for ac_file in $ac_files
3493do
3494 case $ac_file in
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3496 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3497 esac
3498done
3499rm -f $ac_rmfiles
3500
3501if { { ac_try="$ac_link_default"
3502case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507$as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_link_default") 2>&5
3509 ac_status=$?
3510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511 test $ac_status = 0; }; then :
3512 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3513# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3514# in a Makefile. We should not override ac_cv_exeext if it was cached,
3515# so that the user can short-circuit this test for compilers unknown to
3516# Autoconf.
3517for ac_file in $ac_files ''
3518do
3519 test -f "$ac_file" || continue
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3522 ;;
3523 [ab].out )
3524 # We found the default executable, but exeext='' is most
3525 # certainly right.
3526 break;;
3527 *.* )
3528 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3529 then :; else
3530 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3531 fi
3532 # We set ac_cv_exeext here because the later test for it is not
3533 # safe: cross compilers may not add the suffix if given an `-o'
3534 # argument, so we may need to know it at that point already.
3535 # Even if this section looks crufty: it has the advantage of
3536 # actually working.
3537 break;;
3538 * )
3539 break;;
3540 esac
3541done
3542test "$ac_cv_exeext" = no && ac_cv_exeext=
3543
3544else
3545 ac_file=''
3546fi
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3548$as_echo "$ac_file" >&6; }
3549if test -z "$ac_file"; then :
3550 $as_echo "$as_me: failed program was:" >&5
3551sed 's/^/| /' conftest.$ac_ext >&5
3552
3553{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555{ as_fn_set_status 77
3556as_fn_error "C compiler cannot create executables
3557See \`config.log' for more details." "$LINENO" 5; }; }
3558fi
3559ac_exeext=$ac_cv_exeext
3560
3561# Check that the compiler produces executables we can run. If not, either
3562# the compiler is broken, or we cross compile.
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3564$as_echo_n "checking whether the C compiler works... " >&6; }
3565# If not cross compiling, check that we can run a simple program.
3566if test "$cross_compiling" != yes; then
3567 if { ac_try='./$ac_file'
3568 { { case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573$as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_try") 2>&5
3575 ac_status=$?
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; }; then
3578 cross_compiling=no
3579 else
3580 if test "$cross_compiling" = maybe; then
3581 cross_compiling=yes
3582 else
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585as_fn_error "cannot run C compiled programs.
3586If you meant to cross compile, use \`--host'.
3587See \`config.log' for more details." "$LINENO" 5; }
3588 fi
3589 fi
3590fi
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592$as_echo "yes" >&6; }
3593
3594rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3595ac_clean_files=$ac_clean_files_save
3596# Check that the compiler produces executables we can run. If not, either
3597# the compiler is broken, or we cross compile.
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3599$as_echo_n "checking whether we are cross compiling... " >&6; }
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3601$as_echo "$cross_compiling" >&6; }
3602
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3604$as_echo_n "checking for suffix of executables... " >&6; }
3605if { { ac_try="$ac_link"
3606case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609esac
3610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611$as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_link") 2>&5
3613 ac_status=$?
3614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3615 test $ac_status = 0; }; then :
3616 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3617# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3618# work properly (i.e., refer to `conftest.exe'), while it won't with
3619# `rm'.
3620for ac_file in conftest.exe conftest conftest.*; do
3621 test -f "$ac_file" || continue
3622 case $ac_file in
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3624 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625 break;;
3626 * ) break;;
3627 esac
3628done
3629else
3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632as_fn_error "cannot compute suffix of executables: cannot compile and link
3633See \`config.log' for more details." "$LINENO" 5; }
3634fi
3635rm -f conftest$ac_cv_exeext
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3637$as_echo "$ac_cv_exeext" >&6; }
3638
3639rm -f conftest.$ac_ext
3640EXEEXT=$ac_cv_exeext
3641ac_exeext=$EXEEXT
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3643$as_echo_n "checking for suffix of object files... " >&6; }
3644if test "${ac_cv_objext+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3646else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h. */
3649
3650int
3651main ()
3652{
3653
3654 ;
3655 return 0;
3656}
3657_ACEOF
3658rm -f conftest.o conftest.obj
3659if { { ac_try="$ac_compile"
3660case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663esac
3664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665$as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_compile") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 for ac_file in conftest.o conftest.obj conftest.*; do
3671 test -f "$ac_file" || continue;
3672 case $ac_file in
3673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3674 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3675 break;;
3676 esac
3677done
3678else
3679 $as_echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684as_fn_error "cannot compute suffix of object files: cannot compile
3685See \`config.log' for more details." "$LINENO" 5; }
3686fi
3687rm -f conftest.$ac_cv_objext conftest.$ac_ext
3688fi
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3690$as_echo "$ac_cv_objext" >&6; }
3691OBJEXT=$ac_cv_objext
3692ac_objext=$OBJEXT
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3694$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3695if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3697else
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h. */
3700
3701int
3702main ()
3703{
3704#ifndef __GNUC__
3705 choke me
3706#endif
3707
3708 ;
3709 return 0;
3710}
3711_ACEOF
3712if ac_fn_c_try_compile "$LINENO"; then :
3713 ac_compiler_gnu=yes
3714else
3715 ac_compiler_gnu=no
3716fi
3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718ac_cv_c_compiler_gnu=$ac_compiler_gnu
3719
3720fi
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3722$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3723if test $ac_compiler_gnu = yes; then
3724 GCC=yes
3725else
3726 GCC=
3727fi
3728ac_test_CFLAGS=${CFLAGS+set}
3729ac_save_CFLAGS=$CFLAGS
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3731$as_echo_n "checking whether $CC accepts -g... " >&6; }
3732if test "${ac_cv_prog_cc_g+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734else
3735 ac_save_c_werror_flag=$ac_c_werror_flag
3736 ac_c_werror_flag=yes
3737 ac_cv_prog_cc_g=no
3738 CFLAGS="-g"
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740/* end confdefs.h. */
3741
3742int
3743main ()
3744{
3745
3746 ;
3747 return 0;
3748}
3749_ACEOF
3750if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_prog_cc_g=yes
3752else
3753 CFLAGS=""
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755/* end confdefs.h. */
3756
3757int
3758main ()
3759{
3760
3761 ;
3762 return 0;
3763}
3764_ACEOF
3765if ac_fn_c_try_compile "$LINENO"; then :
3766
3767else
3768 ac_c_werror_flag=$ac_save_c_werror_flag
3769 CFLAGS="-g"
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h. */
3772
3773int
3774main ()
3775{
3776
3777 ;
3778 return 0;
3779}
3780_ACEOF
3781if ac_fn_c_try_compile "$LINENO"; then :
3782 ac_cv_prog_cc_g=yes
3783fi
3784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785fi
3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787fi
3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3790fi
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3792$as_echo "$ac_cv_prog_cc_g" >&6; }
3793if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3797 CFLAGS="-g -O2"
3798 else
3799 CFLAGS="-g"
3800 fi
3801else
3802 if test "$GCC" = yes; then
3803 CFLAGS="-O2"
3804 else
3805 CFLAGS=
3806 fi
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3809$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810if test "${ac_cv_prog_cc_c89+set}" = set; then :
3811 $as_echo_n "(cached) " >&6
3812else
3813 ac_cv_prog_cc_c89=no
3814ac_save_CC=$CC
3815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816/* end confdefs.h. */
3817#include <stdarg.h>
3818#include <stdio.h>
3819#include <sys/types.h>
3820#include <sys/stat.h>
3821/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3822struct buf { int x; };
3823FILE * (*rcsopen) (struct buf *, struct stat *, int);
3824static char *e (p, i)
3825 char **p;
3826 int i;
3827{
3828 return p[i];
3829}
3830static char *f (char * (*g) (char **, int), char **p, ...)
3831{
3832 char *s;
3833 va_list v;
3834 va_start (v,p);
3835 s = g (p, va_arg (v,int));
3836 va_end (v);
3837 return s;
3838}
3839
3840/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3841 function prototypes and stuff, but not '\xHH' hex character constants.
3842 These don't provoke an error unfortunately, instead are silently treated
3843 as 'x'. The following induces an error, until -std is added to get
3844 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3845 array size at least. It's necessary to write '\x00'==0 to get something
3846 that's true only with -std. */
3847int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3848
3849/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3850 inside strings and character constants. */
3851#define FOO(x) 'x'
3852int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3853
3854int test (int i, double x);
3855struct s1 {int (*f) (int a);};
3856struct s2 {int (*f) (double a);};
3857int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3858int argc;
3859char **argv;
3860int
3861main ()
3862{
3863return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3864 ;
3865 return 0;
3866}
3867_ACEOF
3868for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3869 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3870do
3871 CC="$ac_save_CC $ac_arg"
3872 if ac_fn_c_try_compile "$LINENO"; then :
3873 ac_cv_prog_cc_c89=$ac_arg
3874fi
3875rm -f core conftest.err conftest.$ac_objext
3876 test "x$ac_cv_prog_cc_c89" != "xno" && break
3877done
3878rm -f conftest.$ac_ext
3879CC=$ac_save_CC
3880
3881fi
3882# AC_CACHE_VAL
3883case "x$ac_cv_prog_cc_c89" in
3884 x)
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3886$as_echo "none needed" >&6; } ;;
3887 xno)
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3889$as_echo "unsupported" >&6; } ;;
3890 *)
3891 CC="$CC $ac_cv_prog_cc_c89"
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3893$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3894esac
3895if test "x$ac_cv_prog_cc_c89" != xno; then :
3896
3897fi
3898
3899ac_ext=c
3900ac_cpp='$CPP $CPPFLAGS'
3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904DEPDIR="${am__leading_dot}deps"
3905
3906ac_config_commands="$ac_config_commands depfiles"
3907
3908
3909am_make=${MAKE-make}
3910cat > confinc << 'END'
3911am__doit:
3912 @echo this is the am__doit target
3913.PHONY: am__doit
3914END
3915# If we don't find an include directive, just comment out the code.
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3917$as_echo_n "checking for style of include used by $am_make... " >&6; }
3918am__include="#"
3919am__quote=
3920_am_result=none
3921# First try GNU make style include.
3922echo "include confinc" > confmf
3923# Ignore all kinds of additional output from `make'.
3924case `$am_make -s -f confmf 2> /dev/null` in #(
3925*the\ am__doit\ target*)
3926 am__include=include
3927 am__quote=
3928 _am_result=GNU
3929 ;;
3930esac
3931# Now try BSD make style include.
3932if test "$am__include" = "#"; then
3933 echo '.include "confinc"' > confmf
3934 case `$am_make -s -f confmf 2> /dev/null` in #(
3935 *the\ am__doit\ target*)
3936 am__include=.include
3937 am__quote="\""
3938 _am_result=BSD
3939 ;;
3940 esac
3941fi
3942
3943
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3945$as_echo "$_am_result" >&6; }
3946rm -f confinc confmf
3947
3948# Check whether --enable-dependency-tracking was given.
3949if test "${enable_dependency_tracking+set}" = set; then :
3950 enableval=$enable_dependency_tracking;
3951fi
3952
3953if test "x$enable_dependency_tracking" != xno; then
3954 am_depcomp="$ac_aux_dir/depcomp"
3955 AMDEPBACKSLASH='\'
44c925bd 3956 am__nodep='_no'
7a938933
ILT
3957fi
3958 if test "x$enable_dependency_tracking" != xno; then
3959 AMDEP_TRUE=
3960 AMDEP_FALSE='#'
3961else
3962 AMDEP_TRUE='#'
3963 AMDEP_FALSE=
3964fi
3965
3966
3967
3968depcc="$CC" am_compiler_list=
3969
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3971$as_echo_n "checking dependency style of $depcc... " >&6; }
3972if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3974else
3975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3976 # We make a subdir and do the tests there. Otherwise we can end up
3977 # making bogus files that we don't know about and never remove. For
3978 # instance it was reported that on HP-UX the gcc test will end up
3979 # making a dummy file named `D' -- because `-MD' means `put the output
3980 # in D'.
44c925bd 3981 rm -rf conftest.dir
7a938933
ILT
3982 mkdir conftest.dir
3983 # Copy depcomp to subdir because otherwise we won't find it if we're
3984 # using a relative directory.
3985 cp "$am_depcomp" conftest.dir
3986 cd conftest.dir
3987 # We will build objects and dependencies in a subdirectory because
3988 # it helps to detect inapplicable dependency modes. For instance
3989 # both Tru64's cc and ICC support -MD to output dependencies as a
3990 # side effect of compilation, but ICC will put the dependencies in
3991 # the current directory while Tru64 will put them in the object
3992 # directory.
3993 mkdir sub
3994
3995 am_cv_CC_dependencies_compiler_type=none
3996 if test "$am_compiler_list" = ""; then
3997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3998 fi
3999 am__universal=false
4000 case " $depcc " in #(
4001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4002 esac
4003
4004 for depmode in $am_compiler_list; do
4005 # Setup a source with many dependencies, because some compilers
4006 # like to wrap large dependency lists on column 80 (with \), and
4007 # we should not choose a depcomp mode which is confused by this.
4008 #
4009 # We need to recreate these files for each test, as the compiler may
4010 # overwrite some of them when testing with obscure command lines.
4011 # This happens at least with the AIX C compiler.
4012 : > sub/conftest.c
4013 for i in 1 2 3 4 5 6; do
4014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4015 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4016 # Solaris 8's {/usr,}/bin/sh.
4017 touch sub/conftst$i.h
4018 done
4019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4020
4021 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4022 # mode. It turns out that the SunPro C++ compiler does not properly
4023 # handle `-M -o', and we need to detect this. Also, some Intel
4024 # versions had trouble with output in subdirs
4025 am__obj=sub/conftest.${OBJEXT-o}
4026 am__minus_obj="-o $am__obj"
4027 case $depmode in
4028 gcc)
4029 # This depmode causes a compiler race in universal mode.
4030 test "$am__universal" = false || continue
4031 ;;
4032 nosideeffect)
4033 # after this tag, mechanisms are not by side-effect, so they'll
4034 # only be used when explicitly requested
4035 if test "x$enable_dependency_tracking" = xyes; then
4036 continue
4037 else
4038 break
4039 fi
4040 ;;
44c925bd 4041 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7a938933
ILT
4042 # This compiler won't grok `-c -o', but also, the minuso test has
4043 # not run yet. These depmodes are late enough in the game, and
4044 # so weak that their functioning should not be impacted.
4045 am__obj=conftest.${OBJEXT-o}
4046 am__minus_obj=
4047 ;;
4048 none) break ;;
4049 esac
4050 if depmode=$depmode \
4051 source=sub/conftest.c object=$am__obj \
4052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4054 >/dev/null 2>conftest.err &&
4055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059 # icc doesn't choke on unknown options, it will just issue warnings
4060 # or remarks (even with -Werror). So we grep stderr for any message
4061 # that says an option was ignored or not supported.
4062 # When given -MP, icc 7.0 and 7.1 complain thusly:
4063 # icc: Command line warning: ignoring option '-M'; no argument required
4064 # The diagnosis changed in icc 8.0:
4065 # icc: Command line remark: option '-MP' not supported
4066 if (grep 'ignoring option' conftest.err ||
4067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068 am_cv_CC_dependencies_compiler_type=$depmode
4069 break
4070 fi
4071 fi
4072 done
4073
4074 cd ..
4075 rm -rf conftest.dir
4076else
4077 am_cv_CC_dependencies_compiler_type=none
4078fi
4079
4080fi
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4082$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4083CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4084
4085 if
4086 test "x$enable_dependency_tracking" != xno \
4087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4088 am__fastdepCC_TRUE=
4089 am__fastdepCC_FALSE='#'
4090else
4091 am__fastdepCC_TRUE='#'
4092 am__fastdepCC_FALSE=
4093fi
4094
4095
4096ac_ext=go
4097ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4098ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compile_gnu=yes
4100if test -n "$ac_tool_prefix"; then
4101 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4102set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104$as_echo_n "checking for $ac_word... " >&6; }
4105if test "${ac_cv_prog_GOC+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107else
4108 if test -n "$GOC"; then
4109 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4110else
4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112for as_dir in $PATH
4113do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122done
4123 done
4124IFS=$as_save_IFS
4125
4126fi
4127fi
4128GOC=$ac_cv_prog_GOC
4129if test -n "$GOC"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4131$as_echo "$GOC" >&6; }
4132else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134$as_echo "no" >&6; }
4135fi
4136
4137
4138fi
4139if test -z "$ac_cv_prog_GOC"; then
4140 ac_ct_GOC=$GOC
4141 # Extract the first word of "gccgo", so it can be a program name with args.
4142set dummy gccgo; ac_word=$2
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144$as_echo_n "checking for $ac_word... " >&6; }
4145if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147else
4148 if test -n "$ac_ct_GOC"; then
4149 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4150else
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_ac_ct_GOC="gccgo"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162done
4163 done
4164IFS=$as_save_IFS
4165
4166fi
4167fi
4168ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4169if test -n "$ac_ct_GOC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4171$as_echo "$ac_ct_GOC" >&6; }
4172else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
4175fi
4176
4177 if test "x$ac_ct_GOC" = x; then
4178 GOC=""
4179 else
4180 case $cross_compiling:$ac_tool_warned in
4181yes:)
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184ac_tool_warned=yes ;;
4185esac
4186 GOC=$ac_ct_GOC
4187 fi
4188else
4189 GOC="$ac_cv_prog_GOC"
4190fi
4191
4192if test -z "$GOC"; then
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4195set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197$as_echo_n "checking for $ac_word... " >&6; }
4198if test "${ac_cv_prog_GOC+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4200else
4201 if test -n "$GOC"; then
4202 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216 done
4217IFS=$as_save_IFS
4218
4219fi
4220fi
4221GOC=$ac_cv_prog_GOC
4222if test -n "$GOC"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4224$as_echo "$GOC" >&6; }
4225else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227$as_echo "no" >&6; }
4228fi
4229
4230
4231 fi
4232fi
4233if test -z "$GOC"; then
4234 # Extract the first word of "gccgo", so it can be a program name with args.
4235set dummy gccgo; ac_word=$2
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
4238if test "${ac_cv_prog_GOC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240else
4241 if test -n "$GOC"; then
4242 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4243else
4244 ac_prog_rejected=no
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4253 ac_prog_rejected=yes
4254 continue
4255 fi
4256 ac_cv_prog_GOC="gccgo"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4259 fi
4260done
4261 done
4262IFS=$as_save_IFS
4263
4264if test $ac_prog_rejected = yes; then
4265 # We found a bogon in the path, so make sure we never use it.
4266 set dummy $ac_cv_prog_GOC
4267 shift
4268 if test $# != 0; then
4269 # We chose a different compiler from the bogus one.
4270 # However, it has the same basename, so the bogon will be chosen
4271 # first if we set GOC to just the basename; use the full file name.
4272 shift
4273 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4274 fi
4275fi
4276fi
4277fi
4278GOC=$ac_cv_prog_GOC
4279if test -n "$GOC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4281$as_echo "$GOC" >&6; }
4282else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284$as_echo "no" >&6; }
4285fi
4286
4287
4288fi
4289
4290
4291# Provide some information about the compiler.
4292$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4293set X $ac_compile
4294ac_compiler=$2
4295{ { ac_try="$ac_compiler --version >&5"
4296case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4301$as_echo "$ac_try_echo"; } >&5
4302 (eval "$ac_compiler --version >&5") 2>conftest.err
4303 ac_status=$?
4304 if test -s conftest.err; then
4305 sed '10a\
4306... rest of stderr output deleted ...
4307 10q' conftest.err >conftest.er1
4308 cat conftest.er1 >&5
4309 rm -f conftest.er1 conftest.err
4310 fi
4311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4312 test $ac_status = 0; }
4313GOCFLAGS="-g -O2"
4314ac_ext=c
4315ac_cpp='$CPP $CPPFLAGS'
4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
4320
4321
4322
4323
f163907e
ILT
4324case ${host} in
4325 *-*-aix*)
4326 # static hash tables crashes on AIX when libgo is built with O2
4327 CFLAGS="$CFLAGS -fno-section-anchors"
4328 GOCFLAGS="$GOCFLAGS -fno-section-anchors"
4329 ;;
4330esac
4331
7a938933
ILT
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
6e6bbb60 6504x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7a938933
ILT
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*)
327a26a3
ILT
6520 case `/usr/bin/file conftest.o` in
6521 *x86-64*)
6522 LD="${LD-ld} -m elf32_x86_64"
6523 ;;
6524 *)
6525 LD="${LD-ld} -m elf_i386"
6526 ;;
6527 esac
7a938933 6528 ;;
42c447c0 6529 powerpc64le-*linux*)
6e6bbb60
ILT
6530 LD="${LD-ld} -m elf32lppclinux"
6531 ;;
42c447c0 6532 powerpc64-*linux*)
7a938933
ILT
6533 LD="${LD-ld} -m elf32ppclinux"
6534 ;;
6535 s390x-*linux*)
6536 LD="${LD-ld} -m elf_s390"
6537 ;;
6538 sparc64-*linux*)
6539 LD="${LD-ld} -m elf32_sparc"
6540 ;;
6541 esac
6542 ;;
6543 *64-bit*)
6544 case $host in
6545 x86_64-*kfreebsd*-gnu)
6546 LD="${LD-ld} -m elf_x86_64_fbsd"
6547 ;;
6548 x86_64-*linux*)
6549 LD="${LD-ld} -m elf_x86_64"
6550 ;;
42c447c0 6551 powerpcle-*linux*)
6e6bbb60
ILT
6552 LD="${LD-ld} -m elf64lppc"
6553 ;;
42c447c0 6554 powerpc-*linux*)
7a938933
ILT
6555 LD="${LD-ld} -m elf64ppc"
6556 ;;
6557 s390*-*linux*|s390*-*tpf*)
6558 LD="${LD-ld} -m elf64_s390"
6559 ;;
6560 sparc*-*linux*)
6561 LD="${LD-ld} -m elf64_sparc"
6562 ;;
6563 esac
6564 ;;
6565 esac
6566 fi
6567 rm -rf conftest*
6568 ;;
6569
6570*-*-sco3.2v5*)
6571 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6572 SAVE_CFLAGS="$CFLAGS"
6573 CFLAGS="$CFLAGS -belf"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6575$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6576if test "${lt_cv_cc_needs_belf+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578else
6579 ac_ext=c
6580ac_cpp='$CPP $CPPFLAGS'
6581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h. */
6587
6588int
6589main ()
6590{
6591
6592 ;
6593 return 0;
6594}
6595_ACEOF
6596if ac_fn_c_try_link "$LINENO"; then :
6597 lt_cv_cc_needs_belf=yes
6598else
6599 lt_cv_cc_needs_belf=no
6600fi
6601rm -f core conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6603 ac_ext=c
6604ac_cpp='$CPP $CPPFLAGS'
6605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6607ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608
6609fi
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6611$as_echo "$lt_cv_cc_needs_belf" >&6; }
6612 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6613 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6614 CFLAGS="$SAVE_CFLAGS"
6615 fi
6616 ;;
327a26a3 6617sparc*-*solaris*)
7a938933
ILT
6618 # Find out which ABI we are using.
6619 echo 'int i;' > conftest.$ac_ext
6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621 (eval $ac_compile) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 case `/usr/bin/file conftest.o` in
6626 *64-bit*)
6627 case $lt_cv_prog_gnu_ld in
327a26a3 6628 yes*) LD="${LD-ld} -m elf64_sparc" ;;
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' ;;
327a26a3 7236 10.[012][,.]*)
e02ed81e
ILT
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
327a26a3 8162 lt_prog_compiler_pic='-fPIC'
7a938933
ILT
8163 ;;
8164
8165 amigaos*)
8166 case $host_cpu in
8167 powerpc)
8168 # see comment about AmigaOS4 .so support
8169 lt_prog_compiler_pic='-fPIC'
8170 ;;
8171 m68k)
8172 # FIXME: we need at least 68020 code to build shared libraries, but
8173 # adding the `-m68020' flag to GCC prevents building anything better,
8174 # like `-m68040'.
8175 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8176 ;;
8177 esac
8178 ;;
8179
8180 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8181 # PIC is the default for these OSes.
8182 ;;
8183
8184 mingw* | cygwin* | pw32* | os2* | cegcc*)
8185 # This hack is so that the source file can tell whether it is being
8186 # built for inclusion in a dll (and should export symbols for example).
8187 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8188 # (--disable-auto-import) libraries
8189 lt_prog_compiler_pic='-DDLL_EXPORT'
8190 ;;
8191
8192 darwin* | rhapsody*)
8193 # PIC is the default on this platform
8194 # Common symbols not allowed in MH_DYLIB files
8195 lt_prog_compiler_pic='-fno-common'
8196 ;;
8197
8198 haiku*)
8199 # PIC is the default for Haiku.
8200 # The "-static" flag exists, but is broken.
8201 lt_prog_compiler_static=
8202 ;;
8203
8204 hpux*)
8205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8207 # sets the default TLS model and affects inlining.
8208 case $host_cpu in
8209 hppa*64*)
8210 # +Z the default
8211 ;;
8212 *)
8213 lt_prog_compiler_pic='-fPIC'
8214 ;;
8215 esac
8216 ;;
8217
8218 interix[3-9]*)
8219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8220 # Instead, we relocate shared libraries at runtime.
8221 ;;
8222
8223 msdosdjgpp*)
8224 # Just because we use GCC doesn't mean we suddenly get shared libraries
8225 # on systems that don't support them.
8226 lt_prog_compiler_can_build_shared=no
8227 enable_shared=no
8228 ;;
8229
8230 *nto* | *qnx*)
8231 # QNX uses GNU C++, but need to define -shared option too, otherwise
8232 # it will coredump.
8233 lt_prog_compiler_pic='-fPIC -shared'
8234 ;;
8235
8236 sysv4*MP*)
8237 if test -d /usr/nec; then
8238 lt_prog_compiler_pic=-Kconform_pic
8239 fi
8240 ;;
8241
8242 *)
8243 lt_prog_compiler_pic='-fPIC'
8244 ;;
8245 esac
8246
8247 case $cc_basename in
8248 nvcc*) # Cuda Compiler Driver 2.2
8249 lt_prog_compiler_wl='-Xlinker '
8250 lt_prog_compiler_pic='-Xcompiler -fPIC'
8251 ;;
8252 esac
8253 else
8254 # PORTME Check for flag to pass linker flags through the system compiler.
8255 case $host_os in
8256 aix*)
8257 lt_prog_compiler_wl='-Wl,'
8258 if test "$host_cpu" = ia64; then
8259 # AIX 5 now supports IA64 processor
8260 lt_prog_compiler_static='-Bstatic'
8261 else
8262 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8263 fi
8264 ;;
8265
8266 mingw* | cygwin* | pw32* | os2* | cegcc*)
8267 # This hack is so that the source file can tell whether it is being
8268 # built for inclusion in a dll (and should export symbols for example).
8269 lt_prog_compiler_pic='-DDLL_EXPORT'
8270 ;;
8271
8272 hpux9* | hpux10* | hpux11*)
8273 lt_prog_compiler_wl='-Wl,'
8274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8275 # not for PA HP-UX.
8276 case $host_cpu in
8277 hppa*64*|ia64*)
8278 # +Z the default
8279 ;;
8280 *)
8281 lt_prog_compiler_pic='+Z'
8282 ;;
8283 esac
8284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8285 lt_prog_compiler_static='${wl}-a ${wl}archive'
8286 ;;
8287
8288 irix5* | irix6* | nonstopux*)
8289 lt_prog_compiler_wl='-Wl,'
8290 # PIC (with -KPIC) is the default.
8291 lt_prog_compiler_static='-non_shared'
8292 ;;
8293
8294 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8295 case $cc_basename in
8296 # old Intel for x86_64 which still supported -KPIC.
8297 ecc*)
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_pic='-KPIC'
8300 lt_prog_compiler_static='-static'
8301 ;;
8302 # icc used to be incompatible with GCC.
8303 # ICC 10 doesn't accept -KPIC any more.
8304 icc* | ifort*)
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='-fPIC'
8307 lt_prog_compiler_static='-static'
8308 ;;
8309 # Lahey Fortran 8.1.
8310 lf95*)
8311 lt_prog_compiler_wl='-Wl,'
8312 lt_prog_compiler_pic='--shared'
8313 lt_prog_compiler_static='--static'
8314 ;;
8315 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8316 # Portland Group compilers (*not* the Pentium gcc compiler,
8317 # which looks to be a dead project)
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='-fpic'
8320 lt_prog_compiler_static='-Bstatic'
8321 ;;
8322 ccc*)
8323 lt_prog_compiler_wl='-Wl,'
8324 # All Alpha code is PIC.
8325 lt_prog_compiler_static='-non_shared'
8326 ;;
8327 xl* | bgxl* | bgf* | mpixl*)
8328 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='-qpic'
8331 lt_prog_compiler_static='-qstaticlink'
8332 ;;
8333 *)
8334 case `$CC -V 2>&1 | sed 5q` in
8335 *Sun\ F* | *Sun*Fortran*)
8336 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 lt_prog_compiler_wl=''
8340 ;;
8341 *Sun\ C*)
8342 # Sun C 5.9
8343 lt_prog_compiler_pic='-KPIC'
8344 lt_prog_compiler_static='-Bstatic'
8345 lt_prog_compiler_wl='-Wl,'
8346 ;;
8347 esac
8348 ;;
8349 esac
8350 ;;
8351
8352 newsos6)
8353 lt_prog_compiler_pic='-KPIC'
8354 lt_prog_compiler_static='-Bstatic'
8355 ;;
8356
8357 *nto* | *qnx*)
8358 # QNX uses GNU C++, but need to define -shared option too, otherwise
8359 # it will coredump.
8360 lt_prog_compiler_pic='-fPIC -shared'
8361 ;;
8362
8363 osf3* | osf4* | osf5*)
8364 lt_prog_compiler_wl='-Wl,'
8365 # All OSF/1 code is PIC.
8366 lt_prog_compiler_static='-non_shared'
8367 ;;
8368
8369 rdos*)
8370 lt_prog_compiler_static='-non_shared'
8371 ;;
8372
8373 solaris*)
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 case $cc_basename in
8377 f77* | f90* | f95*)
8378 lt_prog_compiler_wl='-Qoption ld ';;
8379 *)
8380 lt_prog_compiler_wl='-Wl,';;
8381 esac
8382 ;;
8383
8384 sunos4*)
8385 lt_prog_compiler_wl='-Qoption ld '
8386 lt_prog_compiler_pic='-PIC'
8387 lt_prog_compiler_static='-Bstatic'
8388 ;;
8389
8390 sysv4 | sysv4.2uw2* | sysv4.3*)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8394 ;;
8395
8396 sysv4*MP*)
8397 if test -d /usr/nec ;then
8398 lt_prog_compiler_pic='-Kconform_pic'
8399 lt_prog_compiler_static='-Bstatic'
8400 fi
8401 ;;
8402
8403 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-Bstatic'
8407 ;;
8408
8409 unicos*)
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_can_build_shared=no
8412 ;;
8413
8414 uts4*)
8415 lt_prog_compiler_pic='-pic'
8416 lt_prog_compiler_static='-Bstatic'
8417 ;;
8418
8419 *)
8420 lt_prog_compiler_can_build_shared=no
8421 ;;
8422 esac
8423 fi
8424
8425case $host_os in
8426 # For platforms which do not support PIC, -DPIC is meaningless:
8427 *djgpp*)
8428 lt_prog_compiler_pic=
8429 ;;
8430 *)
8431 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8432 ;;
8433esac
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8435$as_echo "$lt_prog_compiler_pic" >&6; }
8436
8437
8438
8439
8440
8441
8442#
8443# Check to make sure the PIC flag actually works.
8444#
8445if test -n "$lt_prog_compiler_pic"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8447$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8448if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8450else
8451 lt_cv_prog_compiler_pic_works=no
8452 ac_outfile=conftest.$ac_objext
8453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8454 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8455 # Insert the option either (1) after the last *FLAGS variable, or
8456 # (2) before a word containing "conftest.", or (3) at the end.
8457 # Note that $ac_compile itself does not contain backslashes and begins
8458 # with a dollar sign (not a hyphen), so the echo should work correctly.
8459 # The option is referenced via a variable to avoid confusing sed.
8460 lt_compile=`echo "$ac_compile" | $SED \
8461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8463 -e 's:$: $lt_compiler_flag:'`
8464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8465 (eval "$lt_compile" 2>conftest.err)
8466 ac_status=$?
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 if (exit $ac_status) && test -s "$ac_outfile"; then
8470 # The compiler can only warn and ignore the option if not recognized
8471 # So say no if there are warnings other than the usual output.
8472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8475 lt_cv_prog_compiler_pic_works=yes
8476 fi
8477 fi
8478 $RM conftest*
8479
8480fi
8481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8482$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8483
8484if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8485 case $lt_prog_compiler_pic in
8486 "" | " "*) ;;
8487 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8488 esac
8489else
8490 lt_prog_compiler_pic=
8491 lt_prog_compiler_can_build_shared=no
8492fi
8493
8494fi
8495
8496
8497
8498
8499
8500
8501#
8502# Check to make sure the static flag actually works.
8503#
8504wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8506$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8507if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
8509else
8510 lt_cv_prog_compiler_static_works=no
8511 save_LDFLAGS="$LDFLAGS"
8512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8513 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8515 # The linker can only warn and ignore the option if not recognized
8516 # So say no if there are warnings
8517 if test -s conftest.err; then
8518 # Append any errors to the config.log.
8519 cat conftest.err 1>&5
8520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522 if diff conftest.exp conftest.er2 >/dev/null; then
8523 lt_cv_prog_compiler_static_works=yes
8524 fi
8525 else
8526 lt_cv_prog_compiler_static_works=yes
8527 fi
8528 fi
8529 $RM -r conftest*
8530 LDFLAGS="$save_LDFLAGS"
8531
8532fi
8533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8534$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8535
8536if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8537 :
8538else
8539 lt_prog_compiler_static=
8540fi
8541
8542
8543
8544
8545
8546
8547
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8549$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8550if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8552else
8553 lt_cv_prog_compiler_c_o=no
8554 $RM -r conftest 2>/dev/null
8555 mkdir conftest
8556 cd conftest
8557 mkdir out
8558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8559
8560 lt_compiler_flag="-o out/conftest2.$ac_objext"
8561 # Insert the option either (1) after the last *FLAGS variable, or
8562 # (2) before a word containing "conftest.", or (3) at the end.
8563 # Note that $ac_compile itself does not contain backslashes and begins
8564 # with a dollar sign (not a hyphen), so the echo should work correctly.
8565 lt_compile=`echo "$ac_compile" | $SED \
8566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568 -e 's:$: $lt_compiler_flag:'`
8569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8570 (eval "$lt_compile" 2>out/conftest.err)
8571 ac_status=$?
8572 cat out/conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8575 then
8576 # The compiler can only warn and ignore the option if not recognized
8577 # So say no if there are warnings
8578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8581 lt_cv_prog_compiler_c_o=yes
8582 fi
8583 fi
8584 chmod u+w . 2>&5
8585 $RM conftest*
8586 # SGI C++ compiler will create directory out/ii_files/ for
8587 # template instantiation
8588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8589 $RM out/* && rmdir out
8590 cd ..
8591 $RM -r conftest
8592 $RM conftest*
8593
8594fi
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8596$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8597
8598
8599
8600
8601
8602
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8604$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8605if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607else
8608 lt_cv_prog_compiler_c_o=no
8609 $RM -r conftest 2>/dev/null
8610 mkdir conftest
8611 cd conftest
8612 mkdir out
8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8614
8615 lt_compiler_flag="-o out/conftest2.$ac_objext"
8616 # Insert the option either (1) after the last *FLAGS variable, or
8617 # (2) before a word containing "conftest.", or (3) at the end.
8618 # Note that $ac_compile itself does not contain backslashes and begins
8619 # with a dollar sign (not a hyphen), so the echo should work correctly.
8620 lt_compile=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625 (eval "$lt_compile" 2>out/conftest.err)
8626 ac_status=$?
8627 cat out/conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8630 then
8631 # The compiler can only warn and ignore the option if not recognized
8632 # So say no if there are warnings
8633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8636 lt_cv_prog_compiler_c_o=yes
8637 fi
8638 fi
8639 chmod u+w . 2>&5
8640 $RM conftest*
8641 # SGI C++ compiler will create directory out/ii_files/ for
8642 # template instantiation
8643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8644 $RM out/* && rmdir out
8645 cd ..
8646 $RM -r conftest
8647 $RM conftest*
8648
8649fi
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8651$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8652
8653
8654
8655
8656hard_links="nottested"
8657if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8658 # do not overwrite the value of need_locks provided by the user
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8660$as_echo_n "checking if we can lock with hard links... " >&6; }
8661 hard_links=yes
8662 $RM conftest*
8663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8664 touch conftest.a
8665 ln conftest.a conftest.b 2>&5 || hard_links=no
8666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8668$as_echo "$hard_links" >&6; }
8669 if test "$hard_links" = no; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8671$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8672 need_locks=warn
8673 fi
8674else
8675 need_locks=no
8676fi
8677
8678
8679
8680
8681
8682
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8684$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8685
8686 runpath_var=
8687 allow_undefined_flag=
8688 always_export_symbols=no
8689 archive_cmds=
8690 archive_expsym_cmds=
8691 compiler_needs_object=no
8692 enable_shared_with_static_runtimes=no
8693 export_dynamic_flag_spec=
8694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8695 hardcode_automatic=no
8696 hardcode_direct=no
8697 hardcode_direct_absolute=no
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_flag_spec_ld=
8700 hardcode_libdir_separator=
8701 hardcode_minus_L=no
8702 hardcode_shlibpath_var=unsupported
8703 inherit_rpath=no
8704 link_all_deplibs=unknown
8705 module_cmds=
8706 module_expsym_cmds=
8707 old_archive_from_new_cmds=
8708 old_archive_from_expsyms_cmds=
8709 thread_safe_flag_spec=
8710 whole_archive_flag_spec=
8711 # include_expsyms should be a list of space-separated symbols to be *always*
8712 # included in the symbol list
8713 include_expsyms=
8714 # exclude_expsyms can be an extended regexp of symbols to exclude
8715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8717 # as well as any symbol that contains `d'.
8718 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8720 # platforms (ab)use it in PIC code, but their linkers get confused if
8721 # the symbol is explicitly referenced. Since portable code cannot
8722 # rely on this symbol name, it's probably fine to never include it in
8723 # preloaded symbol tables.
8724 # Exclude shared library initialization/finalization symbols.
8725 extract_expsyms_cmds=
8726
8727 case $host_os in
8728 cygwin* | mingw* | pw32* | cegcc*)
8729 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8730 # When not using gcc, we currently assume that we are using
8731 # Microsoft Visual C++.
8732 if test "$GCC" != yes; then
8733 with_gnu_ld=no
8734 fi
8735 ;;
8736 interix*)
8737 # we just hope/assume this is gcc and not c89 (= MSVC++)
8738 with_gnu_ld=yes
8739 ;;
8740 openbsd*)
8741 with_gnu_ld=no
8742 ;;
8743 esac
8744
8745 ld_shlibs=yes
8746
8747 # On some targets, GNU ld is compatible enough with the native linker
8748 # that we're better off using the native interface for both.
8749 lt_use_gnu_ld_interface=no
8750 if test "$with_gnu_ld" = yes; then
8751 case $host_os in
8752 aix*)
8753 # The AIX port of GNU ld has always aspired to compatibility
8754 # with the native linker. However, as the warning in the GNU ld
8755 # block says, versions before 2.19.5* couldn't really create working
8756 # shared libraries, regardless of the interface used.
8757 case `$LD -v 2>&1` in
8758 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8759 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8760 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8761 *)
8762 lt_use_gnu_ld_interface=yes
8763 ;;
8764 esac
8765 ;;
8766 *)
8767 lt_use_gnu_ld_interface=yes
8768 ;;
8769 esac
8770 fi
8771
8772 if test "$lt_use_gnu_ld_interface" = yes; then
8773 # If archive_cmds runs LD, not CC, wlarc should be empty
8774 wlarc='${wl}'
8775
8776 # Set some defaults for GNU ld with shared library support. These
8777 # are reset later if shared libraries are not supported. Putting them
8778 # here allows them to be overridden if necessary.
8779 runpath_var=LD_RUN_PATH
8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781 export_dynamic_flag_spec='${wl}--export-dynamic'
8782 # ancient GNU ld didn't support --whole-archive et. al.
8783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8784 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8785 else
8786 whole_archive_flag_spec=
8787 fi
8788 supports_anon_versioning=no
8789 case `$LD -v 2>&1` in
8790 *GNU\ gold*) supports_anon_versioning=yes ;;
8791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8794 *\ 2.11.*) ;; # other 2.11 versions
8795 *) supports_anon_versioning=yes ;;
8796 esac
8797
8798 # See if GNU ld supports shared libraries.
8799 case $host_os in
8800 aix[3-9]*)
8801 # On AIX/PPC, the GNU linker is very broken
8802 if test "$host_cpu" != ia64; then
8803 ld_shlibs=no
8804 cat <<_LT_EOF 1>&2
8805
8806*** Warning: the GNU linker, at least up to release 2.19, is reported
8807*** to be unable to reliably create shared libraries on AIX.
8808*** Therefore, libtool is disabling shared libraries support. If you
8809*** really care for shared libraries, you may want to install binutils
8810*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8811*** You will then need to restart the configuration process.
8812
8813_LT_EOF
8814 fi
8815 ;;
8816
8817 amigaos*)
8818 case $host_cpu in
8819 powerpc)
8820 # see comment about AmigaOS4 .so support
8821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8822 archive_expsym_cmds=''
8823 ;;
8824 m68k)
8825 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8826 hardcode_libdir_flag_spec='-L$libdir'
8827 hardcode_minus_L=yes
8828 ;;
8829 esac
8830 ;;
8831
8832 beos*)
8833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8834 allow_undefined_flag=unsupported
8835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8836 # support --undefined. This deserves some investigation. FIXME
8837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838 else
8839 ld_shlibs=no
8840 fi
8841 ;;
8842
8843 cygwin* | mingw* | pw32* | cegcc*)
8844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8845 # as there is no search path for DLLs.
8846 hardcode_libdir_flag_spec='-L$libdir'
8847 export_dynamic_flag_spec='${wl}--export-all-symbols'
8848 allow_undefined_flag=unsupported
8849 always_export_symbols=no
8850 enable_shared_with_static_runtimes=yes
8851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8852
8853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8855 # If the export-symbols file already is a .def file (1st line
8856 # is EXPORTS), use it as is; otherwise, prepend...
8857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8858 cp $export_symbols $output_objdir/$soname.def;
8859 else
8860 echo EXPORTS > $output_objdir/$soname.def;
8861 cat $export_symbols >> $output_objdir/$soname.def;
8862 fi~
8863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864 else
8865 ld_shlibs=no
8866 fi
8867 ;;
8868
8869 haiku*)
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 link_all_deplibs=yes
8872 ;;
8873
8874 interix[3-9]*)
8875 hardcode_direct=no
8876 hardcode_shlibpath_var=no
8877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8878 export_dynamic_flag_spec='${wl}-E'
8879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8880 # Instead, shared libraries are loaded at an image base (0x10000000 by
8881 # default) and relocated if they conflict, which is a slow very memory
8882 # consuming and fragmenting process. To avoid this, we pick a random,
8883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8884 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8886 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8887 ;;
8888
8889 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8890 tmp_diet=no
8891 if test "$host_os" = linux-dietlibc; then
8892 case $cc_basename in
8893 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8894 esac
8895 fi
8896 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8897 && test "$tmp_diet" = no
8898 then
8899 tmp_addflag=
8900 tmp_sharedflag='-shared'
8901 case $cc_basename,$host_cpu in
8902 pgcc*) # Portland Group C compiler
8903 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8904 tmp_addflag=' $pic_flag'
8905 ;;
8906 pgf77* | pgf90* | pgf95* | pgfortran*)
8907 # Portland Group f77 and f90 compilers
8908 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8909 tmp_addflag=' $pic_flag -Mnomain' ;;
8910 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8911 tmp_addflag=' -i_dynamic' ;;
8912 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8913 tmp_addflag=' -i_dynamic -nofor_main' ;;
8914 ifc* | ifort*) # Intel Fortran compiler
8915 tmp_addflag=' -nofor_main' ;;
8916 lf95*) # Lahey Fortran 8.1
8917 whole_archive_flag_spec=
8918 tmp_sharedflag='--shared' ;;
8919 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8920 tmp_sharedflag='-qmkshrobj'
8921 tmp_addflag= ;;
8922 nvcc*) # Cuda Compiler Driver 2.2
8923 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8924 compiler_needs_object=yes
8925 ;;
8926 esac
8927 case `$CC -V 2>&1 | sed 5q` in
8928 *Sun\ C*) # Sun C 5.9
8929 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8930 compiler_needs_object=yes
8931 tmp_sharedflag='-G' ;;
8932 *Sun\ F*) # Sun Fortran 8.3
8933 tmp_sharedflag='-G' ;;
8934 esac
8935 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936
8937 if test "x$supports_anon_versioning" = xyes; then
8938 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8940 echo "local: *; };" >> $output_objdir/$libname.ver~
8941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8942 fi
8943
8944 case $cc_basename in
8945 xlf* | bgf* | bgxlf* | mpixlf*)
8946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8947 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8948 hardcode_libdir_flag_spec=
8949 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8950 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8951 if test "x$supports_anon_versioning" = xyes; then
8952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8954 echo "local: *; };" >> $output_objdir/$libname.ver~
8955 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8956 fi
8957 ;;
8958 esac
8959 else
8960 ld_shlibs=no
8961 fi
8962 ;;
8963
8964 netbsd*)
8965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8967 wlarc=
8968 else
8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8971 fi
8972 ;;
8973
8974 solaris*)
8975 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8976 ld_shlibs=no
8977 cat <<_LT_EOF 1>&2
8978
8979*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8980*** create shared libraries on Solaris systems. Therefore, libtool
8981*** is disabling shared libraries support. We urge you to upgrade GNU
8982*** binutils to release 2.9.1 or newer. Another option is to modify
8983*** your PATH or compiler configuration so that the native linker is
8984*** used, and then restart.
8985
8986_LT_EOF
8987 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990 else
8991 ld_shlibs=no
8992 fi
8993 ;;
8994
8995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8996 case `$LD -v 2>&1` in
8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8998 ld_shlibs=no
8999 cat <<_LT_EOF 1>&2
9000
9001*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9002*** reliably create shared libraries on SCO systems. Therefore, libtool
9003*** is disabling shared libraries support. We urge you to upgrade GNU
9004*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9005*** your PATH or compiler configuration so that the native linker is
9006*** used, and then restart.
9007
9008_LT_EOF
9009 ;;
9010 *)
9011 # For security reasons, it is highly recommended that you always
9012 # use absolute paths for naming shared libraries, and exclude the
9013 # DT_RUNPATH tag from executables and libraries. But doing so
9014 # requires that you compile everything twice, which is a pain.
9015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9019 else
9020 ld_shlibs=no
9021 fi
9022 ;;
9023 esac
9024 ;;
9025
9026 sunos4*)
9027 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9028 wlarc=
9029 hardcode_direct=yes
9030 hardcode_shlibpath_var=no
9031 ;;
9032
9033 *)
9034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9037 else
9038 ld_shlibs=no
9039 fi
9040 ;;
9041 esac
9042
9043 if test "$ld_shlibs" = no; then
9044 runpath_var=
9045 hardcode_libdir_flag_spec=
9046 export_dynamic_flag_spec=
9047 whole_archive_flag_spec=
9048 fi
9049 else
9050 # PORTME fill in a description of your system's linker (not GNU ld)
9051 case $host_os in
9052 aix3*)
9053 allow_undefined_flag=unsupported
9054 always_export_symbols=yes
9055 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9056 # Note: this linker hardcodes the directories in LIBPATH if there
9057 # are no directories specified by -L.
9058 hardcode_minus_L=yes
9059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9060 # Neither direct hardcoding nor static linking is supported with a
9061 # broken collect2.
9062 hardcode_direct=unsupported
9063 fi
9064 ;;
9065
9066 aix[4-9]*)
9067 if test "$host_cpu" = ia64; then
9068 # On IA64, the linker does run time linking by default, so we don't
9069 # have to do anything special.
9070 aix_use_runtimelinking=no
9071 exp_sym_flag='-Bexport'
9072 no_entry_flag=""
9073 else
9074 # If we're using GNU nm, then we don't want the "-C" option.
9075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9076 # Also, AIX nm treats weak defined symbols like other global
9077 # defined symbols, whereas GNU nm marks them as "W".
9078 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9079 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9080 else
9081 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9082 fi
9083 aix_use_runtimelinking=no
9084
9085 # Test if we are trying to use run time linking or normal
9086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9087 # need to do runtime linking.
9088 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9089 for ld_flag in $LDFLAGS; do
9090 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9091 aix_use_runtimelinking=yes
9092 break
9093 fi
9094 done
9095 ;;
9096 esac
9097
9098 exp_sym_flag='-bexport'
9099 no_entry_flag='-bnoentry'
9100 fi
9101
9102 # When large executables or shared objects are built, AIX ld can
9103 # have problems creating the table of contents. If linking a library
9104 # or program results in "error TOC overflow" add -mminimal-toc to
9105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9107
9108 archive_cmds=''
9109 hardcode_direct=yes
9110 hardcode_direct_absolute=yes
9111 hardcode_libdir_separator=':'
9112 link_all_deplibs=yes
9113 file_list_spec='${wl}-f,'
9114
9115 if test "$GCC" = yes; then
9116 case $host_os in aix4.[012]|aix4.[012].*)
9117 # We only want to do this on AIX 4.2 and lower, the check
9118 # below for broken collect2 doesn't work under 4.3+
9119 collect2name=`${CC} -print-prog-name=collect2`
9120 if test -f "$collect2name" &&
9121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9122 then
9123 # We have reworked collect2
9124 :
9125 else
9126 # We have old collect2
9127 hardcode_direct=unsupported
9128 # It fails to find uninstalled libraries when the uninstalled
9129 # path is not listed in the libpath. Setting hardcode_minus_L
9130 # to unsupported forces relinking
9131 hardcode_minus_L=yes
9132 hardcode_libdir_flag_spec='-L$libdir'
9133 hardcode_libdir_separator=
9134 fi
9135 ;;
9136 esac
9137 shared_flag='-shared'
9138 if test "$aix_use_runtimelinking" = yes; then
9139 shared_flag="$shared_flag "'${wl}-G'
9140 fi
9141 else
9142 # not using gcc
9143 if test "$host_cpu" = ia64; then
9144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9145 # chokes on -Wl,-G. The following line is correct:
9146 shared_flag='-G'
9147 else
9148 if test "$aix_use_runtimelinking" = yes; then
9149 shared_flag='${wl}-G'
9150 else
9151 shared_flag='${wl}-bM:SRE'
9152 fi
9153 fi
9154 fi
9155
9156 export_dynamic_flag_spec='${wl}-bexpall'
9157 # It seems that -bexpall does not export symbols beginning with
9158 # underscore (_), so it is better to generate a list of symbols to export.
9159 always_export_symbols=yes
9160 if test "$aix_use_runtimelinking" = yes; then
9161 # Warning - without using the other runtime loading flags (-brtl),
9162 # -berok will link without error, but may produce a broken library.
9163 allow_undefined_flag='-berok'
9164 # Determine the default libpath from the value encoded in an
9165 # empty executable.
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167/* end confdefs.h. */
9168
9169int
9170main ()
9171{
9172
9173 ;
9174 return 0;
9175}
9176_ACEOF
9177if ac_fn_c_try_link "$LINENO"; then :
9178
9179lt_aix_libpath_sed='
9180 /Import File Strings/,/^$/ {
9181 /^0/ {
9182 s/^0 *\(.*\)$/\1/
9183 p
9184 }
9185 }'
9186aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187# Check for a 64-bit object if we didn't find anything.
9188if test -z "$aix_libpath"; then
9189 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9190fi
9191fi
9192rm -f core conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9194if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9195
9196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9197 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9198 else
9199 if test "$host_cpu" = ia64; then
9200 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9201 allow_undefined_flag="-z nodefs"
9202 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9203 else
9204 # Determine the default libpath from the value encoded in an
9205 # empty executable.
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h. */
9208
9209int
9210main ()
9211{
9212
9213 ;
9214 return 0;
9215}
9216_ACEOF
9217if ac_fn_c_try_link "$LINENO"; then :
9218
9219lt_aix_libpath_sed='
9220 /Import File Strings/,/^$/ {
9221 /^0/ {
9222 s/^0 *\(.*\)$/\1/
9223 p
9224 }
9225 }'
9226aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227# Check for a 64-bit object if we didn't find anything.
9228if test -z "$aix_libpath"; then
9229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9230fi
9231fi
9232rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9235
9236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9237 # Warning - without using the other run time loading flags,
9238 # -berok will link without error, but may produce a broken library.
9239 no_undefined_flag=' ${wl}-bernotok'
9240 allow_undefined_flag=' ${wl}-berok'
9241 if test "$with_gnu_ld" = yes; then
9242 # We only use this code for GNU lds that support --whole-archive.
9243 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9244 else
9245 # Exported symbols can be pulled into shared objects from archives
9246 whole_archive_flag_spec='$convenience'
9247 fi
9248 archive_cmds_need_lc=yes
9249 # This is similar to how AIX traditionally builds its shared libraries.
9250 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9251 fi
9252 fi
9253 ;;
9254
9255 amigaos*)
9256 case $host_cpu in
9257 powerpc)
9258 # see comment about AmigaOS4 .so support
9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 archive_expsym_cmds=''
9261 ;;
9262 m68k)
9263 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9264 hardcode_libdir_flag_spec='-L$libdir'
9265 hardcode_minus_L=yes
9266 ;;
9267 esac
9268 ;;
9269
9270 bsdi[45]*)
9271 export_dynamic_flag_spec=-rdynamic
9272 ;;
9273
9274 cygwin* | mingw* | pw32* | cegcc*)
9275 # When not using gcc, we currently assume that we are using
9276 # Microsoft Visual C++.
9277 # hardcode_libdir_flag_spec is actually meaningless, as there is
9278 # no search path for DLLs.
9279 hardcode_libdir_flag_spec=' '
9280 allow_undefined_flag=unsupported
9281 # Tell ltmain to make .lib files, not .a files.
9282 libext=lib
9283 # Tell ltmain to make .dll files, not .so files.
9284 shrext_cmds=".dll"
9285 # FIXME: Setting linknames here is a bad hack.
9286 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9287 # The linker will automatically build a .lib file if we build a DLL.
9288 old_archive_from_new_cmds='true'
9289 # FIXME: Should let the user specify the lib program.
9290 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9291 fix_srcfile_path='`cygpath -w "$srcfile"`'
9292 enable_shared_with_static_runtimes=yes
9293 ;;
9294
9295 darwin* | rhapsody*)
9296
9297
9298 archive_cmds_need_lc=no
9299 hardcode_direct=no
9300 hardcode_automatic=yes
9301 hardcode_shlibpath_var=unsupported
9302 if test "$lt_cv_ld_force_load" = "yes"; then
9303 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9304 else
9305 whole_archive_flag_spec=''
9306 fi
9307 link_all_deplibs=yes
9308 allow_undefined_flag="$_lt_dar_allow_undefined"
9309 case $cc_basename in
9310 ifort*) _lt_dar_can_shared=yes ;;
9311 *) _lt_dar_can_shared=$GCC ;;
9312 esac
9313 if test "$_lt_dar_can_shared" = "yes"; then
9314 output_verbose_link_cmd=func_echo_all
9315 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9316 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9317 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9318 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9319
9320 else
9321 ld_shlibs=no
9322 fi
9323
9324 ;;
9325
9326 dgux*)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 hardcode_shlibpath_var=no
9330 ;;
9331
7a938933
ILT
9332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9333 # support. Future versions do this automatically, but an explicit c++rt0.o
9334 # does not break anything, and helps significantly (at the cost of a little
9335 # extra space).
9336 freebsd2.2*)
9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9338 hardcode_libdir_flag_spec='-R$libdir'
9339 hardcode_direct=yes
9340 hardcode_shlibpath_var=no
9341 ;;
9342
9343 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 9344 freebsd2.*)
7a938933
ILT
9345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_direct=yes
9347 hardcode_minus_L=yes
9348 hardcode_shlibpath_var=no
9349 ;;
9350
9351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9352 freebsd* | dragonfly*)
9353 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9354 hardcode_libdir_flag_spec='-R$libdir'
9355 hardcode_direct=yes
9356 hardcode_shlibpath_var=no
9357 ;;
9358
9359 hpux9*)
9360 if test "$GCC" = yes; then
9361 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9362 else
9363 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9364 fi
9365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9366 hardcode_libdir_separator=:
9367 hardcode_direct=yes
9368
9369 # hardcode_minus_L: Not really in the search PATH,
9370 # but as the default location of the library.
9371 hardcode_minus_L=yes
9372 export_dynamic_flag_spec='${wl}-E'
9373 ;;
9374
9375 hpux10*)
9376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9377 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9378 else
9379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9380 fi
9381 if test "$with_gnu_ld" = no; then
9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9383 hardcode_libdir_flag_spec_ld='+b $libdir'
9384 hardcode_libdir_separator=:
9385 hardcode_direct=yes
9386 hardcode_direct_absolute=yes
9387 export_dynamic_flag_spec='${wl}-E'
9388 # hardcode_minus_L: Not really in the search PATH,
9389 # but as the default location of the library.
9390 hardcode_minus_L=yes
9391 fi
9392 ;;
9393
9394 hpux11*)
9395 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9396 case $host_cpu in
9397 hppa*64*)
9398 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9399 ;;
9400 ia64*)
9401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9402 ;;
9403 *)
9404 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9405 ;;
9406 esac
9407 else
9408 case $host_cpu in
9409 hppa*64*)
9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 ;;
9412 ia64*)
9413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9414 ;;
9415 *)
9416
9417 # Older versions of the 11.00 compiler do not understand -b yet
9418 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9420$as_echo_n "checking if $CC understands -b... " >&6; }
9421if test "${lt_cv_prog_compiler__b+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9423else
9424 lt_cv_prog_compiler__b=no
9425 save_LDFLAGS="$LDFLAGS"
9426 LDFLAGS="$LDFLAGS -b"
9427 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9429 # The linker can only warn and ignore the option if not recognized
9430 # So say no if there are warnings
9431 if test -s conftest.err; then
9432 # Append any errors to the config.log.
9433 cat conftest.err 1>&5
9434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436 if diff conftest.exp conftest.er2 >/dev/null; then
9437 lt_cv_prog_compiler__b=yes
9438 fi
9439 else
9440 lt_cv_prog_compiler__b=yes
9441 fi
9442 fi
9443 $RM -r conftest*
9444 LDFLAGS="$save_LDFLAGS"
9445
9446fi
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9448$as_echo "$lt_cv_prog_compiler__b" >&6; }
9449
9450if test x"$lt_cv_prog_compiler__b" = xyes; then
9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9452else
9453 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9454fi
9455
9456 ;;
9457 esac
9458 fi
9459 if test "$with_gnu_ld" = no; then
9460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9461 hardcode_libdir_separator=:
9462
9463 case $host_cpu in
9464 hppa*64*|ia64*)
9465 hardcode_direct=no
9466 hardcode_shlibpath_var=no
9467 ;;
9468 *)
9469 hardcode_direct=yes
9470 hardcode_direct_absolute=yes
9471 export_dynamic_flag_spec='${wl}-E'
9472
9473 # hardcode_minus_L: Not really in the search PATH,
9474 # but as the default location of the library.
9475 hardcode_minus_L=yes
9476 ;;
9477 esac
9478 fi
9479 ;;
9480
9481 irix5* | irix6* | nonstopux*)
9482 if test "$GCC" = yes; then
9483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9484 # Try to use the -exported_symbol ld option, if it does not
9485 # work, assume that -exports_file does not work either and
9486 # implicitly export all symbols.
9487 save_LDFLAGS="$LDFLAGS"
9488 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490/* end confdefs.h. */
9491int foo(void) {}
9492_ACEOF
9493if ac_fn_c_try_link "$LINENO"; then :
9494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9495
9496fi
9497rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LDFLAGS="$save_LDFLAGS"
9500 else
9501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9502 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9503 fi
9504 archive_cmds_need_lc='no'
9505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9506 hardcode_libdir_separator=:
9507 inherit_rpath=yes
9508 link_all_deplibs=yes
9509 ;;
9510
9511 netbsd*)
9512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9514 else
9515 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9516 fi
9517 hardcode_libdir_flag_spec='-R$libdir'
9518 hardcode_direct=yes
9519 hardcode_shlibpath_var=no
9520 ;;
9521
9522 newsos6)
9523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_direct=yes
9525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526 hardcode_libdir_separator=:
9527 hardcode_shlibpath_var=no
9528 ;;
9529
9530 *nto* | *qnx*)
9531 ;;
9532
9533 openbsd*)
9534 if test -f /usr/libexec/ld.so; then
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 hardcode_direct_absolute=yes
9538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9542 export_dynamic_flag_spec='${wl}-E'
9543 else
9544 case $host_os in
9545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9547 hardcode_libdir_flag_spec='-R$libdir'
9548 ;;
9549 *)
9550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9552 ;;
9553 esac
9554 fi
9555 else
9556 ld_shlibs=no
9557 fi
9558 ;;
9559
9560 os2*)
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_minus_L=yes
9563 allow_undefined_flag=unsupported
9564 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9565 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9566 ;;
9567
9568 osf3*)
9569 if test "$GCC" = yes; then
9570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9571 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9572 else
9573 allow_undefined_flag=' -expect_unresolved \*'
9574 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9575 fi
9576 archive_cmds_need_lc='no'
9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578 hardcode_libdir_separator=:
9579 ;;
9580
9581 osf4* | osf5*) # as osf3* with the addition of -msym flag
9582 if test "$GCC" = yes; then
9583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586 else
9587 allow_undefined_flag=' -expect_unresolved \*'
9588 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9589 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9590 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9591
9592 # Both c and cxx compiler support -rpath directly
9593 hardcode_libdir_flag_spec='-rpath $libdir'
9594 fi
9595 archive_cmds_need_lc='no'
9596 hardcode_libdir_separator=:
9597 ;;
9598
9599 solaris*)
9600 no_undefined_flag=' -z defs'
9601 if test "$GCC" = yes; then
9602 wlarc='${wl}'
9603 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9606 else
9607 case `$CC -V 2>&1` in
9608 *"Compilers 5.0"*)
9609 wlarc=''
9610 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9613 ;;
9614 *)
9615 wlarc='${wl}'
9616 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9618 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9619 ;;
9620 esac
9621 fi
9622 hardcode_libdir_flag_spec='-R$libdir'
9623 hardcode_shlibpath_var=no
9624 case $host_os in
9625 solaris2.[0-5] | solaris2.[0-5].*) ;;
9626 *)
9627 # The compiler driver will combine and reorder linker options,
9628 # but understands `-z linker_flag'. GCC discards it without `$wl',
9629 # but is careful enough not to reorder.
9630 # Supported since Solaris 2.6 (maybe 2.5.1?)
9631 if test "$GCC" = yes; then
9632 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9633 else
9634 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9635 fi
9636 ;;
9637 esac
9638 link_all_deplibs=yes
9639 ;;
9640
9641 sunos4*)
9642 if test "x$host_vendor" = xsequent; then
9643 # Use $CC to link under sequent, because it throws in some extra .o
9644 # files that make .init and .fini sections work.
9645 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9646 else
9647 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9648 fi
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_direct=yes
9651 hardcode_minus_L=yes
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 sysv4)
9656 case $host_vendor in
9657 sni)
9658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_direct=yes # is this really true???
9660 ;;
9661 siemens)
9662 ## LD is ld it makes a PLAMLIB
9663 ## CC just makes a GrossModule.
9664 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9665 reload_cmds='$CC -r -o $output$reload_objs'
9666 hardcode_direct=no
9667 ;;
9668 motorola)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9671 ;;
9672 esac
9673 runpath_var='LD_RUN_PATH'
9674 hardcode_shlibpath_var=no
9675 ;;
9676
9677 sysv4.3*)
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_shlibpath_var=no
9680 export_dynamic_flag_spec='-Bexport'
9681 ;;
9682
9683 sysv4*MP*)
9684 if test -d /usr/nec; then
9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_shlibpath_var=no
9687 runpath_var=LD_RUN_PATH
9688 hardcode_runpath_var=yes
9689 ld_shlibs=yes
9690 fi
9691 ;;
9692
9693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9694 no_undefined_flag='${wl}-z,text'
9695 archive_cmds_need_lc=no
9696 hardcode_shlibpath_var=no
9697 runpath_var='LD_RUN_PATH'
9698
9699 if test "$GCC" = yes; then
9700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 else
9703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 fi
9706 ;;
9707
9708 sysv5* | sco3.2v5* | sco5v6*)
9709 # Note: We can NOT use -z defs as we might desire, because we do not
9710 # link with -lc, and that would cause any symbols used from libc to
9711 # always be unresolved, which means just about no library would
9712 # ever link correctly. If we're not using GNU ld we use -z text
9713 # though, which does catch some bad symbols but isn't as heavy-handed
9714 # as -z defs.
9715 no_undefined_flag='${wl}-z,text'
9716 allow_undefined_flag='${wl}-z,nodefs'
9717 archive_cmds_need_lc=no
9718 hardcode_shlibpath_var=no
9719 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9720 hardcode_libdir_separator=':'
9721 link_all_deplibs=yes
9722 export_dynamic_flag_spec='${wl}-Bexport'
9723 runpath_var='LD_RUN_PATH'
9724
9725 if test "$GCC" = yes; then
9726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 else
9729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 fi
9732 ;;
9733
9734 uts4*)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_shlibpath_var=no
9738 ;;
9739
9740 *)
9741 ld_shlibs=no
9742 ;;
9743 esac
9744
9745 if test x$host_vendor = xsni; then
9746 case $host in
9747 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9748 export_dynamic_flag_spec='${wl}-Blargedynsym'
9749 ;;
9750 esac
9751 fi
9752 fi
9753
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9755$as_echo "$ld_shlibs" >&6; }
9756test "$ld_shlibs" = no && can_build_shared=no
9757
9758with_gnu_ld=$with_gnu_ld
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774#
9775# Do we need to explicitly link libc?
9776#
9777case "x$archive_cmds_need_lc" in
9778x|xyes)
9779 # Assume -lc should be added
9780 archive_cmds_need_lc=yes
9781
9782 if test "$enable_shared" = yes && test "$GCC" = yes; then
9783 case $archive_cmds in
9784 *'~'*)
9785 # FIXME: we may have to deal with multi-command sequences.
9786 ;;
9787 '$CC '*)
9788 # Test whether the compiler implicitly links with -lc since on some
9789 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9790 # to ld, don't add -lc before -lgcc.
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9792$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9793if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9795else
9796 $RM conftest*
9797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9798
9799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9800 (eval $ac_compile) 2>&5
9801 ac_status=$?
9802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9803 test $ac_status = 0; } 2>conftest.err; then
9804 soname=conftest
9805 lib=conftest
9806 libobjs=conftest.$ac_objext
9807 deplibs=
9808 wl=$lt_prog_compiler_wl
9809 pic_flag=$lt_prog_compiler_pic
9810 compiler_flags=-v
9811 linker_flags=-v
9812 verstring=
9813 output_objdir=.
9814 libname=conftest
9815 lt_save_allow_undefined_flag=$allow_undefined_flag
9816 allow_undefined_flag=
9817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9818 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9819 ac_status=$?
9820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9821 test $ac_status = 0; }
9822 then
9823 lt_cv_archive_cmds_need_lc=no
9824 else
9825 lt_cv_archive_cmds_need_lc=yes
9826 fi
9827 allow_undefined_flag=$lt_save_allow_undefined_flag
9828 else
9829 cat conftest.err 1>&5
9830 fi
9831 $RM conftest*
9832
9833fi
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9835$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9836 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9837 ;;
9838 esac
9839 fi
9840 ;;
9841esac
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
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10000$as_echo_n "checking dynamic linker characteristics... " >&6; }
10001
10002if test "$GCC" = yes; then
10003 case $host_os in
10004 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10005 *) lt_awk_arg="/^libraries:/" ;;
10006 esac
10007 case $host_os in
10008 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10009 *) lt_sed_strip_eq="s,=/,/,g" ;;
10010 esac
10011 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10012 case $lt_search_path_spec in
10013 *\;*)
10014 # if the path contains ";" then we assume it to be the separator
10015 # otherwise default to the standard path separator (i.e. ":") - it is
10016 # assumed that no part of a normal pathname contains ";" but that should
10017 # okay in the real world where ";" in dirpaths is itself problematic.
10018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10019 ;;
10020 *)
10021 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10022 ;;
10023 esac
10024 # Ok, now we have the path, separated by spaces, we can step through it
10025 # and add multilib dir if necessary.
10026 lt_tmp_lt_search_path_spec=
10027 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10028 for lt_sys_path in $lt_search_path_spec; do
10029 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10031 else
10032 test -d "$lt_sys_path" && \
10033 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10034 fi
10035 done
10036 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10037BEGIN {RS=" "; FS="/|\n";} {
10038 lt_foo="";
10039 lt_count=0;
10040 for (lt_i = NF; lt_i > 0; lt_i--) {
10041 if ($lt_i != "" && $lt_i != ".") {
10042 if ($lt_i == "..") {
10043 lt_count++;
10044 } else {
10045 if (lt_count == 0) {
10046 lt_foo="/" $lt_i lt_foo;
10047 } else {
10048 lt_count--;
10049 }
10050 }
10051 }
10052 }
10053 if (lt_foo != "") { lt_freq[lt_foo]++; }
10054 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10055}'`
10056 # AWK program above erroneously prepends '/' to C:/dos/paths
10057 # for these hosts.
10058 case $host_os in
10059 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10060 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10061 esac
10062 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10063else
10064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10065fi
10066library_names_spec=
10067libname_spec='lib$name'
10068soname_spec=
10069shrext_cmds=".so"
10070postinstall_cmds=
10071postuninstall_cmds=
10072finish_cmds=
10073finish_eval=
10074shlibpath_var=
10075shlibpath_overrides_runpath=unknown
10076version_type=none
10077dynamic_linker="$host_os ld.so"
10078sys_lib_dlsearch_path_spec="/lib /usr/lib"
10079need_lib_prefix=unknown
10080hardcode_into_libs=no
10081
10082# when you set need_version to no, make sure it does not cause -set_version
10083# flags to be left without arguments
10084need_version=unknown
10085
10086case $host_os in
10087aix3*)
10088 version_type=linux
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10090 shlibpath_var=LIBPATH
10091
10092 # AIX 3 has no versioning support, so we append a major version to the name.
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 ;;
10095
10096aix[4-9]*)
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 hardcode_into_libs=yes
10101 if test "$host_cpu" = ia64; then
10102 # AIX 5 supports IA64
10103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 else
10106 # With GCC up to 2.95.x, collect2 would create an import file
10107 # for dependence libraries. The import file would start with
10108 # the line `#! .'. This would cause the generated library to
10109 # depend on `.', always an invalid library. This was fixed in
10110 # development snapshots of GCC prior to 3.0.
10111 case $host_os in
10112 aix4 | aix4.[01] | aix4.[01].*)
10113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10114 echo ' yes '
10115 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10116 :
10117 else
10118 can_build_shared=no
10119 fi
10120 ;;
10121 esac
10122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10123 # soname into executable. Probably we can add versioning support to
10124 # collect2, so additional links can be useful in future.
10125 if test "$aix_use_runtimelinking" = yes; then
10126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10127 # instead of lib<name>.a to let people know that these are not
10128 # typical AIX shared libraries.
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 else
10131 # We preserve .a as extension for shared libraries through AIX4.2
10132 # and later when we are not doing run time linking.
10133 library_names_spec='${libname}${release}.a $libname.a'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 fi
10136 shlibpath_var=LIBPATH
10137 fi
10138 ;;
10139
10140amigaos*)
10141 case $host_cpu in
10142 powerpc)
10143 # Since July 2007 AmigaOS4 officially supports .so libraries.
10144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 ;;
10147 m68k)
10148 library_names_spec='$libname.ixlibrary $libname.a'
10149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10150 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10151 ;;
10152 esac
10153 ;;
10154
10155beos*)
10156 library_names_spec='${libname}${shared_ext}'
10157 dynamic_linker="$host_os ld.so"
10158 shlibpath_var=LIBRARY_PATH
10159 ;;
10160
10161bsdi[45]*)
10162 version_type=linux
10163 need_version=no
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10170 # the default ld.so.conf also contains /usr/contrib/lib and
10171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10172 # libtool to hard-code these into programs
10173 ;;
10174
10175cygwin* | mingw* | pw32* | cegcc*)
10176 version_type=windows
10177 shrext_cmds=".dll"
10178 need_version=no
10179 need_lib_prefix=no
10180
10181 case $GCC,$host_os in
10182 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10183 library_names_spec='$libname.dll.a'
10184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185 postinstall_cmds='base_file=`basename \${file}`~
10186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187 dldir=$destdir/`dirname \$dlpath`~
10188 test -d \$dldir || mkdir -p \$dldir~
10189 $install_prog $dir/$dlname \$dldir/$dlname~
10190 chmod a+x \$dldir/$dlname~
10191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10193 fi'
10194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195 dlpath=$dir/\$dldll~
10196 $RM \$dlpath'
10197 shlibpath_overrides_runpath=yes
10198
10199 case $host_os in
10200 cygwin*)
10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203
10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10205 ;;
10206 mingw* | cegcc*)
10207 # MinGW DLLs use traditional 'lib' prefix
10208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209 ;;
10210 pw32*)
10211 # pw32 DLLs use 'pw' prefix rather than 'lib'
10212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10213 ;;
10214 esac
10215 ;;
10216
10217 *)
10218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10219 ;;
10220 esac
10221 dynamic_linker='Win32 ld.exe'
10222 # FIXME: first we should search . and the directory the executable is in
10223 shlibpath_var=PATH
10224 ;;
10225
10226darwin* | rhapsody*)
10227 dynamic_linker="$host_os dyld"
10228 version_type=darwin
10229 need_lib_prefix=no
10230 need_version=no
10231 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10232 soname_spec='${libname}${release}${major}$shared_ext'
10233 shlibpath_overrides_runpath=yes
10234 shlibpath_var=DYLD_LIBRARY_PATH
10235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10236
10237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10239 ;;
10240
10241dgux*)
10242 version_type=linux
10243 need_lib_prefix=no
10244 need_version=no
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 shlibpath_var=LD_LIBRARY_PATH
10248 ;;
10249
7a938933
ILT
10250freebsd* | dragonfly*)
10251 # DragonFly does not have aout. When/if they implement a new
10252 # versioning mechanism, adjust this.
10253 if test -x /usr/bin/objformat; then
10254 objformat=`/usr/bin/objformat`
10255 else
10256 case $host_os in
327a26a3 10257 freebsd[23].*) objformat=aout ;;
7a938933
ILT
10258 *) objformat=elf ;;
10259 esac
10260 fi
10261 version_type=freebsd-$objformat
10262 case $version_type in
10263 freebsd-elf*)
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10265 need_version=no
10266 need_lib_prefix=no
10267 ;;
10268 freebsd-*)
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10270 need_version=yes
10271 ;;
10272 esac
10273 shlibpath_var=LD_LIBRARY_PATH
10274 case $host_os in
327a26a3 10275 freebsd2.*)
7a938933
ILT
10276 shlibpath_overrides_runpath=yes
10277 ;;
10278 freebsd3.[01]* | freebsdelf3.[01]*)
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10281 ;;
10282 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10283 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10284 shlibpath_overrides_runpath=no
10285 hardcode_into_libs=yes
10286 ;;
10287 *) # from 4.6 on, and DragonFly
10288 shlibpath_overrides_runpath=yes
10289 hardcode_into_libs=yes
10290 ;;
10291 esac
10292 ;;
10293
10294gnu*)
10295 version_type=linux
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 hardcode_into_libs=yes
10302 ;;
10303
10304haiku*)
10305 version_type=linux
10306 need_lib_prefix=no
10307 need_version=no
10308 dynamic_linker="$host_os runtime_loader"
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10314 hardcode_into_libs=yes
10315 ;;
10316
10317hpux9* | hpux10* | hpux11*)
10318 # Give a soname corresponding to the major version so that dld.sl refuses to
10319 # link against other versions.
10320 version_type=sunos
10321 need_lib_prefix=no
10322 need_version=no
10323 case $host_cpu in
10324 ia64*)
10325 shrext_cmds='.so'
10326 hardcode_into_libs=yes
10327 dynamic_linker="$host_os dld.so"
10328 shlibpath_var=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 if test "X$HPUX_IA64_MODE" = X32; then
10333 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10334 else
10335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10336 fi
10337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10338 ;;
10339 hppa*64*)
10340 shrext_cmds='.sl'
10341 hardcode_into_libs=yes
10342 dynamic_linker="$host_os dld.sl"
10343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10349 ;;
10350 *)
10351 shrext_cmds='.sl'
10352 dynamic_linker="$host_os dld.sl"
10353 shlibpath_var=SHLIB_PATH
10354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 ;;
10358 esac
10359 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10360 postinstall_cmds='chmod 555 $lib'
10361 # or fails outright, so override atomically:
10362 install_override_mode=555
10363 ;;
10364
10365interix[3-9]*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=no
10374 hardcode_into_libs=yes
10375 ;;
10376
10377irix5* | irix6* | nonstopux*)
10378 case $host_os in
10379 nonstopux*) version_type=nonstopux ;;
10380 *)
10381 if test "$lt_cv_prog_gnu_ld" = yes; then
10382 version_type=linux
10383 else
10384 version_type=irix
10385 fi ;;
10386 esac
10387 need_lib_prefix=no
10388 need_version=no
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 case $host_os in
10392 irix5* | nonstopux*)
10393 libsuff= shlibsuff=
10394 ;;
10395 *)
10396 case $LD in # libtool.m4 will add one of these switches to LD
10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10398 libsuff= shlibsuff= libmagic=32-bit;;
10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10400 libsuff=32 shlibsuff=N32 libmagic=N32;;
10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10403 *) libsuff= shlibsuff= libmagic=never-match;;
10404 esac
10405 ;;
10406 esac
10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10411 hardcode_into_libs=yes
10412 ;;
10413
10414# No shared lib support for Linux oldld, aout, or coff.
10415linux*oldld* | linux*aout* | linux*coff*)
10416 dynamic_linker=no
10417 ;;
10418
10419# This must be Linux ELF.
10420linux* | k*bsd*-gnu | kopensolaris*-gnu)
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10429
10430 # Some binutils ld are patched to set DT_RUNPATH
10431 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433else
10434 lt_cv_shlibpath_overrides_runpath=no
10435 save_LDFLAGS=$LDFLAGS
10436 save_libdir=$libdir
10437 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10438 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440/* end confdefs.h. */
10441
10442int
10443main ()
10444{
10445
10446 ;
10447 return 0;
10448}
10449_ACEOF
10450if ac_fn_c_try_link "$LINENO"; then :
10451 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10452 lt_cv_shlibpath_overrides_runpath=yes
10453fi
10454fi
10455rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LDFLAGS=$save_LDFLAGS
10458 libdir=$save_libdir
10459
10460fi
10461
10462 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10463
10464 # This implies no fast_install, which is unacceptable.
10465 # Some rework will be needed to allow for fast_install
10466 # before this can be enabled.
10467 hardcode_into_libs=yes
10468
10469 # Append ld.so.conf contents to the search path
10470 if test -f /etc/ld.so.conf; then
10471 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10472 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10473 fi
10474
10475 # We used to test for /lib/ld.so.1 and disable shared libraries on
10476 # powerpc, because MkLinux only supported shared libraries with the
10477 # GNU dynamic linker. Since this was broken with cross compilers,
10478 # most powerpc-linux boxes support dynamic linking these days and
10479 # people can always --disable-shared, the test was removed, and we
10480 # assume the GNU/Linux dynamic linker is in use.
10481 dynamic_linker='GNU/Linux ld.so'
10482 ;;
10483
10484netbsd*)
10485 version_type=sunos
10486 need_lib_prefix=no
10487 need_version=no
10488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10491 dynamic_linker='NetBSD (a.out) ld.so'
10492 else
10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10494 soname_spec='${libname}${release}${shared_ext}$major'
10495 dynamic_linker='NetBSD ld.elf_so'
10496 fi
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=yes
10499 hardcode_into_libs=yes
10500 ;;
10501
10502newsos6)
10503 version_type=linux
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 shlibpath_var=LD_LIBRARY_PATH
10506 shlibpath_overrides_runpath=yes
10507 ;;
10508
10509*nto* | *qnx*)
10510 version_type=qnx
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=no
10517 hardcode_into_libs=yes
10518 dynamic_linker='ldqnx.so'
10519 ;;
10520
10521openbsd*)
10522 version_type=sunos
10523 sys_lib_dlsearch_path_spec="/usr/lib"
10524 need_lib_prefix=no
10525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10526 case $host_os in
10527 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10528 *) need_version=no ;;
10529 esac
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10534 case $host_os in
10535 openbsd2.[89] | openbsd2.[89].*)
10536 shlibpath_overrides_runpath=no
10537 ;;
10538 *)
10539 shlibpath_overrides_runpath=yes
10540 ;;
10541 esac
10542 else
10543 shlibpath_overrides_runpath=yes
10544 fi
10545 ;;
10546
10547os2*)
10548 libname_spec='$name'
10549 shrext_cmds=".dll"
10550 need_lib_prefix=no
10551 library_names_spec='$libname${shared_ext} $libname.a'
10552 dynamic_linker='OS/2 ld.exe'
10553 shlibpath_var=LIBPATH
10554 ;;
10555
10556osf3* | osf4* | osf5*)
10557 version_type=osf
10558 need_lib_prefix=no
10559 need_version=no
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10565 ;;
10566
10567rdos*)
10568 dynamic_linker=no
10569 ;;
10570
10571solaris*)
10572 version_type=linux
10573 need_lib_prefix=no
10574 need_version=no
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=yes
10579 hardcode_into_libs=yes
10580 # ldd complains unless libraries are executable
10581 postinstall_cmds='chmod +x $lib'
10582 ;;
10583
10584sunos4*)
10585 version_type=sunos
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 shlibpath_overrides_runpath=yes
10590 if test "$with_gnu_ld" = yes; then
10591 need_lib_prefix=no
10592 fi
10593 need_version=yes
10594 ;;
10595
10596sysv4 | sysv4.3*)
10597 version_type=linux
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 case $host_vendor in
10602 sni)
10603 shlibpath_overrides_runpath=no
10604 need_lib_prefix=no
10605 runpath_var=LD_RUN_PATH
10606 ;;
10607 siemens)
10608 need_lib_prefix=no
10609 ;;
10610 motorola)
10611 need_lib_prefix=no
10612 need_version=no
10613 shlibpath_overrides_runpath=no
10614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10615 ;;
10616 esac
10617 ;;
10618
10619sysv4*MP*)
10620 if test -d /usr/nec ;then
10621 version_type=linux
10622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10623 soname_spec='$libname${shared_ext}.$major'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 fi
10626 ;;
10627
10628sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10629 version_type=freebsd-elf
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=yes
10636 hardcode_into_libs=yes
10637 if test "$with_gnu_ld" = yes; then
10638 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10639 else
10640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10641 case $host_os in
10642 sco3.2v5*)
10643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10644 ;;
10645 esac
10646 fi
10647 sys_lib_dlsearch_path_spec='/usr/lib'
10648 ;;
10649
10650tpf*)
10651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10652 version_type=linux
10653 need_lib_prefix=no
10654 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath=no
10658 hardcode_into_libs=yes
10659 ;;
10660
10661uts4*)
10662 version_type=linux
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 ;;
10667
10668*)
10669 dynamic_linker=no
10670 ;;
10671esac
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10673$as_echo "$dynamic_linker" >&6; }
10674test "$dynamic_linker" = no && can_build_shared=no
10675
10676variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10677if test "$GCC" = yes; then
10678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10679fi
10680
10681if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10682 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10683fi
10684if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10685 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10686fi
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
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10780$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10781hardcode_action=
10782if test -n "$hardcode_libdir_flag_spec" ||
10783 test -n "$runpath_var" ||
10784 test "X$hardcode_automatic" = "Xyes" ; then
10785
10786 # We can hardcode non-existent directories.
10787 if test "$hardcode_direct" != no &&
10788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10789 # have to relink, otherwise we might link with an installed library
10790 # when we should be linking with a yet-to-be-installed one
10791 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10792 test "$hardcode_minus_L" != no; then
10793 # Linking always hardcodes the temporary library directory.
10794 hardcode_action=relink
10795 else
10796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10797 hardcode_action=immediate
10798 fi
10799else
10800 # We cannot hardcode anything, or else we can only hardcode existing
10801 # directories.
10802 hardcode_action=unsupported
10803fi
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10805$as_echo "$hardcode_action" >&6; }
10806
10807if test "$hardcode_action" = relink ||
10808 test "$inherit_rpath" = yes; then
10809 # Fast installation is not supported
10810 enable_fast_install=no
10811elif test "$shlibpath_overrides_runpath" = yes ||
10812 test "$enable_shared" = no; then
10813 # Fast installation is not necessary
10814 enable_fast_install=needless
10815fi
10816
10817
10818
10819
10820
10821
10822 if test "x$enable_dlopen" != xyes; then
10823 enable_dlopen=unknown
10824 enable_dlopen_self=unknown
10825 enable_dlopen_self_static=unknown
10826else
10827 lt_cv_dlopen=no
10828 lt_cv_dlopen_libs=
10829
10830 case $host_os in
10831 beos*)
10832 lt_cv_dlopen="load_add_on"
10833 lt_cv_dlopen_libs=
10834 lt_cv_dlopen_self=yes
10835 ;;
10836
10837 mingw* | pw32* | cegcc*)
10838 lt_cv_dlopen="LoadLibrary"
10839 lt_cv_dlopen_libs=
10840 ;;
10841
10842 cygwin*)
10843 lt_cv_dlopen="dlopen"
10844 lt_cv_dlopen_libs=
10845 ;;
10846
10847 darwin*)
10848 # if libdl is installed we need to link against it
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10850$as_echo_n "checking for dlopen in -ldl... " >&6; }
10851if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853else
10854 ac_check_lib_save_LIBS=$LIBS
10855LIBS="-ldl $LIBS"
10856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857/* end confdefs.h. */
10858
10859/* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862#ifdef __cplusplus
10863extern "C"
10864#endif
10865char dlopen ();
10866int
10867main ()
10868{
10869return dlopen ();
10870 ;
10871 return 0;
10872}
10873_ACEOF
10874if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dl_dlopen=yes
10876else
10877 ac_cv_lib_dl_dlopen=no
10878fi
10879rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881LIBS=$ac_check_lib_save_LIBS
10882fi
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10884$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10885if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10887else
10888
10889 lt_cv_dlopen="dyld"
10890 lt_cv_dlopen_libs=
10891 lt_cv_dlopen_self=yes
10892
10893fi
10894
10895 ;;
10896
10897 *)
10898 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10899if test "x$ac_cv_func_shl_load" = x""yes; then :
10900 lt_cv_dlopen="shl_load"
10901else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10903$as_echo_n "checking for shl_load in -ldld... " >&6; }
10904if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906else
10907 ac_check_lib_save_LIBS=$LIBS
10908LIBS="-ldld $LIBS"
10909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910/* end confdefs.h. */
10911
10912/* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915#ifdef __cplusplus
10916extern "C"
10917#endif
10918char shl_load ();
10919int
10920main ()
10921{
10922return shl_load ();
10923 ;
10924 return 0;
10925}
10926_ACEOF
10927if ac_fn_c_try_link "$LINENO"; then :
10928 ac_cv_lib_dld_shl_load=yes
10929else
10930 ac_cv_lib_dld_shl_load=no
10931fi
10932rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934LIBS=$ac_check_lib_save_LIBS
10935fi
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10937$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10938if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10939 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10940else
10941 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10942if test "x$ac_cv_func_dlopen" = x""yes; then :
10943 lt_cv_dlopen="dlopen"
10944else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10946$as_echo_n "checking for dlopen in -ldl... " >&6; }
10947if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
10949else
10950 ac_check_lib_save_LIBS=$LIBS
10951LIBS="-ldl $LIBS"
10952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953/* end confdefs.h. */
10954
10955/* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958#ifdef __cplusplus
10959extern "C"
10960#endif
10961char dlopen ();
10962int
10963main ()
10964{
10965return dlopen ();
10966 ;
10967 return 0;
10968}
10969_ACEOF
10970if ac_fn_c_try_link "$LINENO"; then :
10971 ac_cv_lib_dl_dlopen=yes
10972else
10973 ac_cv_lib_dl_dlopen=no
10974fi
10975rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977LIBS=$ac_check_lib_save_LIBS
10978fi
10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10980$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10981if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10983else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10985$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10986if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988else
10989 ac_check_lib_save_LIBS=$LIBS
10990LIBS="-lsvld $LIBS"
10991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992/* end confdefs.h. */
10993
10994/* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997#ifdef __cplusplus
10998extern "C"
10999#endif
11000char dlopen ();
11001int
11002main ()
11003{
11004return dlopen ();
11005 ;
11006 return 0;
11007}
11008_ACEOF
11009if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_lib_svld_dlopen=yes
11011else
11012 ac_cv_lib_svld_dlopen=no
11013fi
11014rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016LIBS=$ac_check_lib_save_LIBS
11017fi
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11019$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11020if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11022else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11024$as_echo_n "checking for dld_link in -ldld... " >&6; }
11025if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027else
11028 ac_check_lib_save_LIBS=$LIBS
11029LIBS="-ldld $LIBS"
11030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031/* end confdefs.h. */
11032
11033/* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036#ifdef __cplusplus
11037extern "C"
11038#endif
11039char dld_link ();
11040int
11041main ()
11042{
11043return dld_link ();
11044 ;
11045 return 0;
11046}
11047_ACEOF
11048if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_dld_dld_link=yes
11050else
11051 ac_cv_lib_dld_dld_link=no
11052fi
11053rm -f core conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055LIBS=$ac_check_lib_save_LIBS
11056fi
11057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11058$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11059if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11060 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11061fi
11062
11063
11064fi
11065
11066
11067fi
11068
11069
11070fi
11071
11072
11073fi
11074
11075
11076fi
11077
11078 ;;
11079 esac
11080
11081 if test "x$lt_cv_dlopen" != xno; then
11082 enable_dlopen=yes
11083 else
11084 enable_dlopen=no
11085 fi
11086
11087 case $lt_cv_dlopen in
11088 dlopen)
11089 save_CPPFLAGS="$CPPFLAGS"
11090 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11091
11092 save_LDFLAGS="$LDFLAGS"
11093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11094
11095 save_LIBS="$LIBS"
11096 LIBS="$lt_cv_dlopen_libs $LIBS"
11097
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11099$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11100if test "${lt_cv_dlopen_self+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11102else
11103 if test "$cross_compiling" = yes; then :
11104 lt_cv_dlopen_self=cross
11105else
11106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11107 lt_status=$lt_dlunknown
11108 cat > conftest.$ac_ext <<_LT_EOF
ffad1c54 11109#line 11109 "configure"
7a938933
ILT
11110#include "confdefs.h"
11111
11112#if HAVE_DLFCN_H
11113#include <dlfcn.h>
11114#endif
11115
11116#include <stdio.h>
11117
11118#ifdef RTLD_GLOBAL
11119# define LT_DLGLOBAL RTLD_GLOBAL
11120#else
11121# ifdef DL_GLOBAL
11122# define LT_DLGLOBAL DL_GLOBAL
11123# else
11124# define LT_DLGLOBAL 0
11125# endif
11126#endif
11127
11128/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11129 find out it does not work in some platform. */
11130#ifndef LT_DLLAZY_OR_NOW
11131# ifdef RTLD_LAZY
11132# define LT_DLLAZY_OR_NOW RTLD_LAZY
11133# else
11134# ifdef DL_LAZY
11135# define LT_DLLAZY_OR_NOW DL_LAZY
11136# else
11137# ifdef RTLD_NOW
11138# define LT_DLLAZY_OR_NOW RTLD_NOW
11139# else
11140# ifdef DL_NOW
11141# define LT_DLLAZY_OR_NOW DL_NOW
11142# else
11143# define LT_DLLAZY_OR_NOW 0
11144# endif
11145# endif
11146# endif
11147# endif
11148#endif
11149
11150/* When -fvisbility=hidden is used, assume the code has been annotated
11151 correspondingly for the symbols needed. */
11152#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11153void fnord () __attribute__((visibility("default")));
11154#endif
11155
11156void fnord () { int i=42; }
11157int main ()
11158{
11159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11160 int status = $lt_dlunknown;
11161
11162 if (self)
11163 {
11164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11165 else
11166 {
11167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11168 else puts (dlerror ());
11169 }
11170 /* dlclose (self); */
11171 }
11172 else
11173 puts (dlerror ());
11174
11175 return status;
11176}
11177_LT_EOF
11178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11179 (eval $ac_link) 2>&5
11180 ac_status=$?
11181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11182 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11183 (./conftest; exit; ) >&5 2>/dev/null
11184 lt_status=$?
11185 case x$lt_status in
11186 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11187 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11188 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11189 esac
11190 else :
11191 # compilation failed
11192 lt_cv_dlopen_self=no
11193 fi
11194fi
11195rm -fr conftest*
11196
11197
11198fi
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11200$as_echo "$lt_cv_dlopen_self" >&6; }
11201
11202 if test "x$lt_cv_dlopen_self" = xyes; then
11203 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11205$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11206if test "${lt_cv_dlopen_self_static+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11208else
11209 if test "$cross_compiling" = yes; then :
11210 lt_cv_dlopen_self_static=cross
11211else
11212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11213 lt_status=$lt_dlunknown
11214 cat > conftest.$ac_ext <<_LT_EOF
ffad1c54 11215#line 11215 "configure"
7a938933
ILT
11216#include "confdefs.h"
11217
11218#if HAVE_DLFCN_H
11219#include <dlfcn.h>
11220#endif
11221
11222#include <stdio.h>
11223
11224#ifdef RTLD_GLOBAL
11225# define LT_DLGLOBAL RTLD_GLOBAL
11226#else
11227# ifdef DL_GLOBAL
11228# define LT_DLGLOBAL DL_GLOBAL
11229# else
11230# define LT_DLGLOBAL 0
11231# endif
11232#endif
11233
11234/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11235 find out it does not work in some platform. */
11236#ifndef LT_DLLAZY_OR_NOW
11237# ifdef RTLD_LAZY
11238# define LT_DLLAZY_OR_NOW RTLD_LAZY
11239# else
11240# ifdef DL_LAZY
11241# define LT_DLLAZY_OR_NOW DL_LAZY
11242# else
11243# ifdef RTLD_NOW
11244# define LT_DLLAZY_OR_NOW RTLD_NOW
11245# else
11246# ifdef DL_NOW
11247# define LT_DLLAZY_OR_NOW DL_NOW
11248# else
11249# define LT_DLLAZY_OR_NOW 0
11250# endif
11251# endif
11252# endif
11253# endif
11254#endif
11255
11256/* When -fvisbility=hidden is used, assume the code has been annotated
11257 correspondingly for the symbols needed. */
11258#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11259void fnord () __attribute__((visibility("default")));
11260#endif
11261
11262void fnord () { int i=42; }
11263int main ()
11264{
11265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11266 int status = $lt_dlunknown;
11267
11268 if (self)
11269 {
11270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11271 else
11272 {
11273 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11274 else puts (dlerror ());
11275 }
11276 /* dlclose (self); */
11277 }
11278 else
11279 puts (dlerror ());
11280
11281 return status;
11282}
11283_LT_EOF
11284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11285 (eval $ac_link) 2>&5
11286 ac_status=$?
11287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11288 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11289 (./conftest; exit; ) >&5 2>/dev/null
11290 lt_status=$?
11291 case x$lt_status in
11292 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11293 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11294 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11295 esac
11296 else :
11297 # compilation failed
11298 lt_cv_dlopen_self_static=no
11299 fi
11300fi
11301rm -fr conftest*
11302
11303
11304fi
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11306$as_echo "$lt_cv_dlopen_self_static" >&6; }
11307 fi
11308
11309 CPPFLAGS="$save_CPPFLAGS"
11310 LDFLAGS="$save_LDFLAGS"
11311 LIBS="$save_LIBS"
11312 ;;
11313 esac
11314
11315 case $lt_cv_dlopen_self in
11316 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11317 *) enable_dlopen_self=unknown ;;
11318 esac
11319
11320 case $lt_cv_dlopen_self_static in
11321 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11322 *) enable_dlopen_self_static=unknown ;;
11323 esac
11324fi
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342striplib=
11343old_striplib=
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11345$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11346if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11347 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11348 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11350$as_echo "yes" >&6; }
11351else
11352# FIXME - insert some real tests, host_os isn't really good enough
11353 case $host_os in
11354 darwin*)
11355 if test -n "$STRIP" ; then
11356 striplib="$STRIP -x"
11357 old_striplib="$STRIP -S"
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359$as_echo "yes" >&6; }
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362$as_echo "no" >&6; }
11363 fi
11364 ;;
11365 *)
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367$as_echo "no" >&6; }
11368 ;;
11369 esac
11370fi
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383 # Report which library types will actually be built
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11385$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11387$as_echo "$can_build_shared" >&6; }
11388
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11390$as_echo_n "checking whether to build shared libraries... " >&6; }
11391 test "$can_build_shared" = "no" && enable_shared=no
11392
11393 # On AIX, shared libraries and static libraries use the same namespace, and
11394 # are all built from PIC.
11395 case $host_os in
11396 aix3*)
11397 test "$enable_shared" = yes && enable_static=no
11398 if test -n "$RANLIB"; then
11399 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11400 postinstall_cmds='$RANLIB $lib'
11401 fi
11402 ;;
11403
11404 aix[4-9]*)
11405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11406 test "$enable_shared" = yes && enable_static=no
11407 fi
11408 ;;
11409 esac
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11411$as_echo "$enable_shared" >&6; }
11412
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11414$as_echo_n "checking whether to build static libraries... " >&6; }
11415 # Make sure either enable_shared or enable_static is yes.
11416 test "$enable_shared" = yes || enable_static=yes
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11418$as_echo "$enable_static" >&6; }
11419
11420
11421
11422
11423fi
11424ac_ext=c
11425ac_cpp='$CPP $CPPFLAGS'
11426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11428ac_compiler_gnu=$ac_cv_c_compiler_gnu
11429
11430CC="$lt_save_CC"
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444# Source file extension for Go test sources.
11445ac_ext=go
11446
11447# Object file extension for compiled Go test sources.
11448objext=o
11449objext_GO=$objext
11450
11451# Code to be used in simple compile tests
11452lt_simple_compile_test_code="package main; func main() { }"
11453
11454# Code to be used in simple link tests
11455lt_simple_link_test_code='package main; func main() { }'
11456
11457# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11458
11459
11460
11461
11462
11463
11464# If no C compiler was specified, use CC.
11465LTCC=${LTCC-"$CC"}
11466
11467# If no C compiler flags were specified, use CFLAGS.
11468LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11469
11470# Allow CC to be a program name with arguments.
11471compiler=$CC
11472
11473
11474# save warnings/boilerplate of simple test code
11475ac_outfile=conftest.$ac_objext
11476echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11477eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11478_lt_compiler_boilerplate=`cat conftest.err`
11479$RM conftest*
11480
11481ac_outfile=conftest.$ac_objext
11482echo "$lt_simple_link_test_code" >conftest.$ac_ext
11483eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11484_lt_linker_boilerplate=`cat conftest.err`
11485$RM -r conftest*
11486
11487
11488# Allow CC to be a program name with arguments.
11489lt_save_CC="$CC"
11490lt_save_GCC="$GCC"
11491GCC=yes
11492CC=${GOC-"gccgo"}
11493compiler=$CC
11494compiler_GO=$CC
11495LD_GO="$LD"
11496for cc_temp in $compiler""; do
11497 case $cc_temp in
11498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11500 \-*) ;;
11501 *) break;;
11502 esac
11503done
11504cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11505
11506
11507# Go did not exist at the time GCC didn't implicitly link libc in.
11508archive_cmds_need_lc_GO=no
11509
11510old_archive_cmds_GO=$old_archive_cmds
11511
11512## CAVEAT EMPTOR:
11513## There is no encapsulation within the following macros, do not change
11514## the running order or otherwise move them around unless you know exactly
11515## what you are doing...
11516if test -n "$compiler"; then
11517
11518lt_prog_compiler_no_builtin_flag_GO=
11519
11520if test "$GCC" = yes; then
11521 case $cc_basename in
11522 nvcc*)
11523 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11524 *)
11525 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11526 esac
11527
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11529$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11530if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11531 $as_echo_n "(cached) " >&6
11532else
11533 lt_cv_prog_compiler_rtti_exceptions=no
11534 ac_outfile=conftest.$ac_objext
11535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11536 lt_compiler_flag="-fno-rtti -fno-exceptions"
11537 # Insert the option either (1) after the last *FLAGS variable, or
11538 # (2) before a word containing "conftest.", or (3) at the end.
11539 # Note that $ac_compile itself does not contain backslashes and begins
11540 # with a dollar sign (not a hyphen), so the echo should work correctly.
11541 # The option is referenced via a variable to avoid confusing sed.
11542 lt_compile=`echo "$ac_compile" | $SED \
11543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11545 -e 's:$: $lt_compiler_flag:'`
11546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11547 (eval "$lt_compile" 2>conftest.err)
11548 ac_status=$?
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 if (exit $ac_status) && test -s "$ac_outfile"; then
11552 # The compiler can only warn and ignore the option if not recognized
11553 # So say no if there are warnings other than the usual output.
11554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11557 lt_cv_prog_compiler_rtti_exceptions=yes
11558 fi
11559 fi
11560 $RM conftest*
11561
11562fi
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11564$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11565
11566if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11567 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11568else
11569 :
11570fi
11571
11572fi
11573
11574
11575
11576 lt_prog_compiler_wl_GO=
11577lt_prog_compiler_pic_GO=
11578lt_prog_compiler_static_GO=
11579
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11581$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11582
11583 if test "$GCC" = yes; then
11584 lt_prog_compiler_wl_GO='-Wl,'
11585 lt_prog_compiler_static_GO='-static'
11586
11587 case $host_os in
11588 aix*)
11589 # All AIX code is PIC.
11590 if test "$host_cpu" = ia64; then
11591 # AIX 5 now supports IA64 processor
11592 lt_prog_compiler_static_GO='-Bstatic'
11593 fi
327a26a3 11594 lt_prog_compiler_pic_GO='-fPIC'
7a938933
ILT
11595 ;;
11596
11597 amigaos*)
11598 case $host_cpu in
11599 powerpc)
11600 # see comment about AmigaOS4 .so support
11601 lt_prog_compiler_pic_GO='-fPIC'
11602 ;;
11603 m68k)
11604 # FIXME: we need at least 68020 code to build shared libraries, but
11605 # adding the `-m68020' flag to GCC prevents building anything better,
11606 # like `-m68040'.
11607 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11608 ;;
11609 esac
11610 ;;
11611
11612 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11613 # PIC is the default for these OSes.
11614 ;;
11615
11616 mingw* | cygwin* | pw32* | os2* | cegcc*)
11617 # This hack is so that the source file can tell whether it is being
11618 # built for inclusion in a dll (and should export symbols for example).
11619 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11620 # (--disable-auto-import) libraries
11621 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11622 ;;
11623
11624 darwin* | rhapsody*)
11625 # PIC is the default on this platform
11626 # Common symbols not allowed in MH_DYLIB files
11627 lt_prog_compiler_pic_GO='-fno-common'
11628 ;;
11629
11630 haiku*)
11631 # PIC is the default for Haiku.
11632 # The "-static" flag exists, but is broken.
11633 lt_prog_compiler_static_GO=
11634 ;;
11635
11636 hpux*)
11637 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11638 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11639 # sets the default TLS model and affects inlining.
11640 case $host_cpu in
11641 hppa*64*)
11642 # +Z the default
11643 ;;
11644 *)
11645 lt_prog_compiler_pic_GO='-fPIC'
11646 ;;
11647 esac
11648 ;;
11649
11650 interix[3-9]*)
11651 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11652 # Instead, we relocate shared libraries at runtime.
11653 ;;
11654
11655 msdosdjgpp*)
11656 # Just because we use GCC doesn't mean we suddenly get shared libraries
11657 # on systems that don't support them.
11658 lt_prog_compiler_can_build_shared_GO=no
11659 enable_shared=no
11660 ;;
11661
11662 *nto* | *qnx*)
11663 # QNX uses GNU C++, but need to define -shared option too, otherwise
11664 # it will coredump.
11665 lt_prog_compiler_pic_GO='-fPIC -shared'
11666 ;;
11667
11668 sysv4*MP*)
11669 if test -d /usr/nec; then
11670 lt_prog_compiler_pic_GO=-Kconform_pic
11671 fi
11672 ;;
11673
11674 *)
11675 lt_prog_compiler_pic_GO='-fPIC'
11676 ;;
11677 esac
11678
11679 case $cc_basename in
11680 nvcc*) # Cuda Compiler Driver 2.2
11681 lt_prog_compiler_wl_GO='-Xlinker '
11682 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11683 ;;
11684 esac
11685 else
11686 # PORTME Check for flag to pass linker flags through the system compiler.
11687 case $host_os in
11688 aix*)
11689 lt_prog_compiler_wl_GO='-Wl,'
11690 if test "$host_cpu" = ia64; then
11691 # AIX 5 now supports IA64 processor
11692 lt_prog_compiler_static_GO='-Bstatic'
11693 else
11694 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11695 fi
11696 ;;
11697
11698 mingw* | cygwin* | pw32* | os2* | cegcc*)
11699 # This hack is so that the source file can tell whether it is being
11700 # built for inclusion in a dll (and should export symbols for example).
11701 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11702 ;;
11703
11704 hpux9* | hpux10* | hpux11*)
11705 lt_prog_compiler_wl_GO='-Wl,'
11706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11707 # not for PA HP-UX.
11708 case $host_cpu in
11709 hppa*64*|ia64*)
11710 # +Z the default
11711 ;;
11712 *)
11713 lt_prog_compiler_pic_GO='+Z'
11714 ;;
11715 esac
11716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11717 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11718 ;;
11719
11720 irix5* | irix6* | nonstopux*)
11721 lt_prog_compiler_wl_GO='-Wl,'
11722 # PIC (with -KPIC) is the default.
11723 lt_prog_compiler_static_GO='-non_shared'
11724 ;;
11725
11726 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11727 case $cc_basename in
11728 # old Intel for x86_64 which still supported -KPIC.
11729 ecc*)
11730 lt_prog_compiler_wl_GO='-Wl,'
11731 lt_prog_compiler_pic_GO='-KPIC'
11732 lt_prog_compiler_static_GO='-static'
11733 ;;
11734 # icc used to be incompatible with GCC.
11735 # ICC 10 doesn't accept -KPIC any more.
11736 icc* | ifort*)
11737 lt_prog_compiler_wl_GO='-Wl,'
11738 lt_prog_compiler_pic_GO='-fPIC'
11739 lt_prog_compiler_static_GO='-static'
11740 ;;
11741 # Lahey Fortran 8.1.
11742 lf95*)
11743 lt_prog_compiler_wl_GO='-Wl,'
11744 lt_prog_compiler_pic_GO='--shared'
11745 lt_prog_compiler_static_GO='--static'
11746 ;;
11747 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11748 # Portland Group compilers (*not* the Pentium gcc compiler,
11749 # which looks to be a dead project)
11750 lt_prog_compiler_wl_GO='-Wl,'
11751 lt_prog_compiler_pic_GO='-fpic'
11752 lt_prog_compiler_static_GO='-Bstatic'
11753 ;;
11754 ccc*)
11755 lt_prog_compiler_wl_GO='-Wl,'
11756 # All Alpha code is PIC.
11757 lt_prog_compiler_static_GO='-non_shared'
11758 ;;
11759 xl* | bgxl* | bgf* | mpixl*)
11760 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11761 lt_prog_compiler_wl_GO='-Wl,'
11762 lt_prog_compiler_pic_GO='-qpic'
11763 lt_prog_compiler_static_GO='-qstaticlink'
11764 ;;
11765 *)
11766 case `$CC -V 2>&1 | sed 5q` in
11767 *Sun\ F* | *Sun*Fortran*)
11768 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11769 lt_prog_compiler_pic_GO='-KPIC'
11770 lt_prog_compiler_static_GO='-Bstatic'
11771 lt_prog_compiler_wl_GO=''
11772 ;;
11773 *Sun\ C*)
11774 # Sun C 5.9
11775 lt_prog_compiler_pic_GO='-KPIC'
11776 lt_prog_compiler_static_GO='-Bstatic'
11777 lt_prog_compiler_wl_GO='-Wl,'
11778 ;;
11779 esac
11780 ;;
11781 esac
11782 ;;
11783
11784 newsos6)
11785 lt_prog_compiler_pic_GO='-KPIC'
11786 lt_prog_compiler_static_GO='-Bstatic'
11787 ;;
11788
11789 *nto* | *qnx*)
11790 # QNX uses GNU C++, but need to define -shared option too, otherwise
11791 # it will coredump.
11792 lt_prog_compiler_pic_GO='-fPIC -shared'
11793 ;;
11794
11795 osf3* | osf4* | osf5*)
11796 lt_prog_compiler_wl_GO='-Wl,'
11797 # All OSF/1 code is PIC.
11798 lt_prog_compiler_static_GO='-non_shared'
11799 ;;
11800
11801 rdos*)
11802 lt_prog_compiler_static_GO='-non_shared'
11803 ;;
11804
11805 solaris*)
11806 lt_prog_compiler_pic_GO='-KPIC'
11807 lt_prog_compiler_static_GO='-Bstatic'
11808 case $cc_basename in
11809 f77* | f90* | f95*)
11810 lt_prog_compiler_wl_GO='-Qoption ld ';;
11811 *)
11812 lt_prog_compiler_wl_GO='-Wl,';;
11813 esac
11814 ;;
11815
11816 sunos4*)
11817 lt_prog_compiler_wl_GO='-Qoption ld '
11818 lt_prog_compiler_pic_GO='-PIC'
11819 lt_prog_compiler_static_GO='-Bstatic'
11820 ;;
11821
11822 sysv4 | sysv4.2uw2* | sysv4.3*)
11823 lt_prog_compiler_wl_GO='-Wl,'
11824 lt_prog_compiler_pic_GO='-KPIC'
11825 lt_prog_compiler_static_GO='-Bstatic'
11826 ;;
11827
11828 sysv4*MP*)
11829 if test -d /usr/nec ;then
11830 lt_prog_compiler_pic_GO='-Kconform_pic'
11831 lt_prog_compiler_static_GO='-Bstatic'
11832 fi
11833 ;;
11834
11835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11836 lt_prog_compiler_wl_GO='-Wl,'
11837 lt_prog_compiler_pic_GO='-KPIC'
11838 lt_prog_compiler_static_GO='-Bstatic'
11839 ;;
11840
11841 unicos*)
11842 lt_prog_compiler_wl_GO='-Wl,'
11843 lt_prog_compiler_can_build_shared_GO=no
11844 ;;
11845
11846 uts4*)
11847 lt_prog_compiler_pic_GO='-pic'
11848 lt_prog_compiler_static_GO='-Bstatic'
11849 ;;
11850
11851 *)
11852 lt_prog_compiler_can_build_shared_GO=no
11853 ;;
11854 esac
11855 fi
11856
11857case $host_os in
11858 # For platforms which do not support PIC, -DPIC is meaningless:
11859 *djgpp*)
11860 lt_prog_compiler_pic_GO=
11861 ;;
11862 *)
11863 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11864 ;;
11865esac
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11867$as_echo "$lt_prog_compiler_pic_GO" >&6; }
11868
11869
11870
11871#
11872# Check to make sure the PIC flag actually works.
11873#
11874if test -n "$lt_prog_compiler_pic_GO"; then
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11876$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11877if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11878 $as_echo_n "(cached) " >&6
11879else
11880 lt_cv_prog_compiler_pic_works_GO=no
11881 ac_outfile=conftest.$ac_objext
11882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11883 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11884 # Insert the option either (1) after the last *FLAGS variable, or
11885 # (2) before a word containing "conftest.", or (3) at the end.
11886 # Note that $ac_compile itself does not contain backslashes and begins
11887 # with a dollar sign (not a hyphen), so the echo should work correctly.
11888 # The option is referenced via a variable to avoid confusing sed.
11889 lt_compile=`echo "$ac_compile" | $SED \
11890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11892 -e 's:$: $lt_compiler_flag:'`
11893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11894 (eval "$lt_compile" 2>conftest.err)
11895 ac_status=$?
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 if (exit $ac_status) && test -s "$ac_outfile"; then
11899 # The compiler can only warn and ignore the option if not recognized
11900 # So say no if there are warnings other than the usual output.
11901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11903 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11904 lt_cv_prog_compiler_pic_works_GO=yes
11905 fi
11906 fi
11907 $RM conftest*
11908
11909fi
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11911$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11912
11913if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11914 case $lt_prog_compiler_pic_GO in
11915 "" | " "*) ;;
11916 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11917 esac
11918else
11919 lt_prog_compiler_pic_GO=
11920 lt_prog_compiler_can_build_shared_GO=no
11921fi
11922
11923fi
11924
11925
11926
11927#
11928# Check to make sure the static flag actually works.
11929#
11930wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11932$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11933if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
11935else
11936 lt_cv_prog_compiler_static_works_GO=no
11937 save_LDFLAGS="$LDFLAGS"
11938 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11939 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11940 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11941 # The linker can only warn and ignore the option if not recognized
11942 # So say no if there are warnings
11943 if test -s conftest.err; then
11944 # Append any errors to the config.log.
11945 cat conftest.err 1>&5
11946 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11948 if diff conftest.exp conftest.er2 >/dev/null; then
11949 lt_cv_prog_compiler_static_works_GO=yes
11950 fi
11951 else
11952 lt_cv_prog_compiler_static_works_GO=yes
11953 fi
11954 fi
11955 $RM -r conftest*
11956 LDFLAGS="$save_LDFLAGS"
11957
11958fi
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11960$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11961
11962if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11963 :
11964else
11965 lt_prog_compiler_static_GO=
11966fi
11967
11968
11969
11970
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11972$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11973if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11975else
11976 lt_cv_prog_compiler_c_o_GO=no
11977 $RM -r conftest 2>/dev/null
11978 mkdir conftest
11979 cd conftest
11980 mkdir out
11981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11982
11983 lt_compiler_flag="-o out/conftest2.$ac_objext"
11984 # Insert the option either (1) after the last *FLAGS variable, or
11985 # (2) before a word containing "conftest.", or (3) at the end.
11986 # Note that $ac_compile itself does not contain backslashes and begins
11987 # with a dollar sign (not a hyphen), so the echo should work correctly.
11988 lt_compile=`echo "$ac_compile" | $SED \
11989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11991 -e 's:$: $lt_compiler_flag:'`
11992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11993 (eval "$lt_compile" 2>out/conftest.err)
11994 ac_status=$?
11995 cat out/conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11998 then
11999 # The compiler can only warn and ignore the option if not recognized
12000 # So say no if there are warnings
12001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12004 lt_cv_prog_compiler_c_o_GO=yes
12005 fi
12006 fi
12007 chmod u+w . 2>&5
12008 $RM conftest*
12009 # SGI C++ compiler will create directory out/ii_files/ for
12010 # template instantiation
12011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12012 $RM out/* && rmdir out
12013 cd ..
12014 $RM -r conftest
12015 $RM conftest*
12016
12017fi
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12019$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12020
12021
12022
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12024$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12025if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12026 $as_echo_n "(cached) " >&6
12027else
12028 lt_cv_prog_compiler_c_o_GO=no
12029 $RM -r conftest 2>/dev/null
12030 mkdir conftest
12031 cd conftest
12032 mkdir out
12033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12034
12035 lt_compiler_flag="-o out/conftest2.$ac_objext"
12036 # Insert the option either (1) after the last *FLAGS variable, or
12037 # (2) before a word containing "conftest.", or (3) at the end.
12038 # Note that $ac_compile itself does not contain backslashes and begins
12039 # with a dollar sign (not a hyphen), so the echo should work correctly.
12040 lt_compile=`echo "$ac_compile" | $SED \
12041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12043 -e 's:$: $lt_compiler_flag:'`
12044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12045 (eval "$lt_compile" 2>out/conftest.err)
12046 ac_status=$?
12047 cat out/conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12050 then
12051 # The compiler can only warn and ignore the option if not recognized
12052 # So say no if there are warnings
12053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12056 lt_cv_prog_compiler_c_o_GO=yes
12057 fi
12058 fi
12059 chmod u+w . 2>&5
12060 $RM conftest*
12061 # SGI C++ compiler will create directory out/ii_files/ for
12062 # template instantiation
12063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12064 $RM out/* && rmdir out
12065 cd ..
12066 $RM -r conftest
12067 $RM conftest*
12068
12069fi
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12071$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12072
12073
12074
12075
12076hard_links="nottested"
12077if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12078 # do not overwrite the value of need_locks provided by the user
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12080$as_echo_n "checking if we can lock with hard links... " >&6; }
12081 hard_links=yes
12082 $RM conftest*
12083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12084 touch conftest.a
12085 ln conftest.a conftest.b 2>&5 || hard_links=no
12086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12088$as_echo "$hard_links" >&6; }
12089 if test "$hard_links" = no; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12091$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12092 need_locks=warn
12093 fi
12094else
12095 need_locks=no
12096fi
12097
12098
12099
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12101$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12102
12103 runpath_var=
12104 allow_undefined_flag_GO=
12105 always_export_symbols_GO=no
12106 archive_cmds_GO=
12107 archive_expsym_cmds_GO=
12108 compiler_needs_object_GO=no
12109 enable_shared_with_static_runtimes_GO=no
12110 export_dynamic_flag_spec_GO=
12111 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12112 hardcode_automatic_GO=no
12113 hardcode_direct_GO=no
12114 hardcode_direct_absolute_GO=no
12115 hardcode_libdir_flag_spec_GO=
12116 hardcode_libdir_flag_spec_ld_GO=
12117 hardcode_libdir_separator_GO=
12118 hardcode_minus_L_GO=no
12119 hardcode_shlibpath_var_GO=unsupported
12120 inherit_rpath_GO=no
12121 link_all_deplibs_GO=unknown
12122 module_cmds_GO=
12123 module_expsym_cmds_GO=
12124 old_archive_from_new_cmds_GO=
12125 old_archive_from_expsyms_cmds_GO=
12126 thread_safe_flag_spec_GO=
12127 whole_archive_flag_spec_GO=
12128 # include_expsyms should be a list of space-separated symbols to be *always*
12129 # included in the symbol list
12130 include_expsyms_GO=
12131 # exclude_expsyms can be an extended regexp of symbols to exclude
12132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12134 # as well as any symbol that contains `d'.
12135 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12137 # platforms (ab)use it in PIC code, but their linkers get confused if
12138 # the symbol is explicitly referenced. Since portable code cannot
12139 # rely on this symbol name, it's probably fine to never include it in
12140 # preloaded symbol tables.
12141 # Exclude shared library initialization/finalization symbols.
12142 extract_expsyms_cmds=
12143
12144 case $host_os in
12145 cygwin* | mingw* | pw32* | cegcc*)
12146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12147 # When not using gcc, we currently assume that we are using
12148 # Microsoft Visual C++.
12149 if test "$GCC" != yes; then
12150 with_gnu_ld=no
12151 fi
12152 ;;
12153 interix*)
12154 # we just hope/assume this is gcc and not c89 (= MSVC++)
12155 with_gnu_ld=yes
12156 ;;
12157 openbsd*)
12158 with_gnu_ld=no
12159 ;;
12160 esac
12161
12162 ld_shlibs_GO=yes
12163
12164 # On some targets, GNU ld is compatible enough with the native linker
12165 # that we're better off using the native interface for both.
12166 lt_use_gnu_ld_interface=no
12167 if test "$with_gnu_ld" = yes; then
12168 case $host_os in
12169 aix*)
12170 # The AIX port of GNU ld has always aspired to compatibility
12171 # with the native linker. However, as the warning in the GNU ld
12172 # block says, versions before 2.19.5* couldn't really create working
12173 # shared libraries, regardless of the interface used.
12174 case `$LD -v 2>&1` in
12175 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12176 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12177 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12178 *)
12179 lt_use_gnu_ld_interface=yes
12180 ;;
12181 esac
12182 ;;
12183 *)
12184 lt_use_gnu_ld_interface=yes
12185 ;;
12186 esac
12187 fi
12188
12189 if test "$lt_use_gnu_ld_interface" = yes; then
12190 # If archive_cmds runs LD, not CC, wlarc should be empty
12191 wlarc='${wl}'
12192
12193 # Set some defaults for GNU ld with shared library support. These
12194 # are reset later if shared libraries are not supported. Putting them
12195 # here allows them to be overridden if necessary.
12196 runpath_var=LD_RUN_PATH
12197 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12198 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12199 # ancient GNU ld didn't support --whole-archive et. al.
12200 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12201 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12202 else
12203 whole_archive_flag_spec_GO=
12204 fi
12205 supports_anon_versioning=no
12206 case `$LD -v 2>&1` in
12207 *GNU\ gold*) supports_anon_versioning=yes ;;
12208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12211 *\ 2.11.*) ;; # other 2.11 versions
12212 *) supports_anon_versioning=yes ;;
12213 esac
12214
12215 # See if GNU ld supports shared libraries.
12216 case $host_os in
12217 aix[3-9]*)
12218 # On AIX/PPC, the GNU linker is very broken
12219 if test "$host_cpu" != ia64; then
12220 ld_shlibs_GO=no
12221 cat <<_LT_EOF 1>&2
12222
12223*** Warning: the GNU linker, at least up to release 2.19, is reported
12224*** to be unable to reliably create shared libraries on AIX.
12225*** Therefore, libtool is disabling shared libraries support. If you
12226*** really care for shared libraries, you may want to install binutils
12227*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12228*** You will then need to restart the configuration process.
12229
12230_LT_EOF
12231 fi
12232 ;;
12233
12234 amigaos*)
12235 case $host_cpu in
12236 powerpc)
12237 # see comment about AmigaOS4 .so support
12238 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239 archive_expsym_cmds_GO=''
12240 ;;
12241 m68k)
12242 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12243 hardcode_libdir_flag_spec_GO='-L$libdir'
12244 hardcode_minus_L_GO=yes
12245 ;;
12246 esac
12247 ;;
12248
12249 beos*)
12250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12251 allow_undefined_flag_GO=unsupported
12252 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12253 # support --undefined. This deserves some investigation. FIXME
12254 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12255 else
12256 ld_shlibs_GO=no
12257 fi
12258 ;;
12259
12260 cygwin* | mingw* | pw32* | cegcc*)
12261 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12262 # as there is no search path for DLLs.
12263 hardcode_libdir_flag_spec_GO='-L$libdir'
12264 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12265 allow_undefined_flag_GO=unsupported
12266 always_export_symbols_GO=no
12267 enable_shared_with_static_runtimes_GO=yes
12268 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12269
12270 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12271 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12272 # If the export-symbols file already is a .def file (1st line
12273 # is EXPORTS), use it as is; otherwise, prepend...
12274 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12275 cp $export_symbols $output_objdir/$soname.def;
12276 else
12277 echo EXPORTS > $output_objdir/$soname.def;
12278 cat $export_symbols >> $output_objdir/$soname.def;
12279 fi~
12280 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12281 else
12282 ld_shlibs_GO=no
12283 fi
12284 ;;
12285
12286 haiku*)
12287 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12288 link_all_deplibs_GO=yes
12289 ;;
12290
12291 interix[3-9]*)
12292 hardcode_direct_GO=no
12293 hardcode_shlibpath_var_GO=no
12294 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12295 export_dynamic_flag_spec_GO='${wl}-E'
12296 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12297 # Instead, shared libraries are loaded at an image base (0x10000000 by
12298 # default) and relocated if they conflict, which is a slow very memory
12299 # consuming and fragmenting process. To avoid this, we pick a random,
12300 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12301 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12302 archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12303 archive_expsym_cmds_GO='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12304 ;;
12305
12306 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12307 tmp_diet=no
12308 if test "$host_os" = linux-dietlibc; then
12309 case $cc_basename in
12310 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12311 esac
12312 fi
12313 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12314 && test "$tmp_diet" = no
12315 then
12316 tmp_addflag=
12317 tmp_sharedflag='-shared'
12318 case $cc_basename,$host_cpu in
12319 pgcc*) # Portland Group C compiler
12320 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12321 tmp_addflag=' $pic_flag'
12322 ;;
12323 pgf77* | pgf90* | pgf95* | pgfortran*)
12324 # Portland Group f77 and f90 compilers
12325 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12326 tmp_addflag=' $pic_flag -Mnomain' ;;
12327 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12328 tmp_addflag=' -i_dynamic' ;;
12329 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12330 tmp_addflag=' -i_dynamic -nofor_main' ;;
12331 ifc* | ifort*) # Intel Fortran compiler
12332 tmp_addflag=' -nofor_main' ;;
12333 lf95*) # Lahey Fortran 8.1
12334 whole_archive_flag_spec_GO=
12335 tmp_sharedflag='--shared' ;;
12336 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12337 tmp_sharedflag='-qmkshrobj'
12338 tmp_addflag= ;;
12339 nvcc*) # Cuda Compiler Driver 2.2
12340 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12341 compiler_needs_object_GO=yes
12342 ;;
12343 esac
12344 case `$CC -V 2>&1 | sed 5q` in
12345 *Sun\ C*) # Sun C 5.9
12346 whole_archive_flag_spec_GO='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12347 compiler_needs_object_GO=yes
12348 tmp_sharedflag='-G' ;;
12349 *Sun\ F*) # Sun Fortran 8.3
12350 tmp_sharedflag='-G' ;;
12351 esac
12352 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12353
12354 if test "x$supports_anon_versioning" = xyes; then
12355 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12357 echo "local: *; };" >> $output_objdir/$libname.ver~
12358 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12359 fi
12360
12361 case $cc_basename in
12362 xlf* | bgf* | bgxlf* | mpixlf*)
12363 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12364 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12365 hardcode_libdir_flag_spec_GO=
12366 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12367 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12368 if test "x$supports_anon_versioning" = xyes; then
12369 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12370 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12371 echo "local: *; };" >> $output_objdir/$libname.ver~
12372 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12373 fi
12374 ;;
12375 esac
12376 else
12377 ld_shlibs_GO=no
12378 fi
12379 ;;
12380
12381 netbsd*)
12382 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12383 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12384 wlarc=
12385 else
12386 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12387 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12388 fi
12389 ;;
12390
12391 solaris*)
12392 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12393 ld_shlibs_GO=no
12394 cat <<_LT_EOF 1>&2
12395
12396*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12397*** create shared libraries on Solaris systems. Therefore, libtool
12398*** is disabling shared libraries support. We urge you to upgrade GNU
12399*** binutils to release 2.9.1 or newer. Another option is to modify
12400*** your PATH or compiler configuration so that the native linker is
12401*** used, and then restart.
12402
12403_LT_EOF
12404 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12405 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12406 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12407 else
12408 ld_shlibs_GO=no
12409 fi
12410 ;;
12411
12412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12413 case `$LD -v 2>&1` in
12414 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12415 ld_shlibs_GO=no
12416 cat <<_LT_EOF 1>&2
12417
12418*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12419*** reliably create shared libraries on SCO systems. Therefore, libtool
12420*** is disabling shared libraries support. We urge you to upgrade GNU
12421*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12422*** your PATH or compiler configuration so that the native linker is
12423*** used, and then restart.
12424
12425_LT_EOF
12426 ;;
12427 *)
12428 # For security reasons, it is highly recommended that you always
12429 # use absolute paths for naming shared libraries, and exclude the
12430 # DT_RUNPATH tag from executables and libraries. But doing so
12431 # requires that you compile everything twice, which is a pain.
12432 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12433 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12434 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12435 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12436 else
12437 ld_shlibs_GO=no
12438 fi
12439 ;;
12440 esac
12441 ;;
12442
12443 sunos4*)
12444 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12445 wlarc=
12446 hardcode_direct_GO=yes
12447 hardcode_shlibpath_var_GO=no
12448 ;;
12449
12450 *)
12451 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12452 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12453 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12454 else
12455 ld_shlibs_GO=no
12456 fi
12457 ;;
12458 esac
12459
12460 if test "$ld_shlibs_GO" = no; then
12461 runpath_var=
12462 hardcode_libdir_flag_spec_GO=
12463 export_dynamic_flag_spec_GO=
12464 whole_archive_flag_spec_GO=
12465 fi
12466 else
12467 # PORTME fill in a description of your system's linker (not GNU ld)
12468 case $host_os in
12469 aix3*)
12470 allow_undefined_flag_GO=unsupported
12471 always_export_symbols_GO=yes
12472 archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12473 # Note: this linker hardcodes the directories in LIBPATH if there
12474 # are no directories specified by -L.
12475 hardcode_minus_L_GO=yes
12476 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12477 # Neither direct hardcoding nor static linking is supported with a
12478 # broken collect2.
12479 hardcode_direct_GO=unsupported
12480 fi
12481 ;;
12482
12483 aix[4-9]*)
12484 if test "$host_cpu" = ia64; then
12485 # On IA64, the linker does run time linking by default, so we don't
12486 # have to do anything special.
12487 aix_use_runtimelinking=no
12488 exp_sym_flag='-Bexport'
12489 no_entry_flag=""
12490 else
12491 # If we're using GNU nm, then we don't want the "-C" option.
12492 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12493 # Also, AIX nm treats weak defined symbols like other global
12494 # defined symbols, whereas GNU nm marks them as "W".
12495 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12496 export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12497 else
12498 export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12499 fi
12500 aix_use_runtimelinking=no
12501
12502 # Test if we are trying to use run time linking or normal
12503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12504 # need to do runtime linking.
12505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12506 for ld_flag in $LDFLAGS; do
12507 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12508 aix_use_runtimelinking=yes
12509 break
12510 fi
12511 done
12512 ;;
12513 esac
12514
12515 exp_sym_flag='-bexport'
12516 no_entry_flag='-bnoentry'
12517 fi
12518
12519 # When large executables or shared objects are built, AIX ld can
12520 # have problems creating the table of contents. If linking a library
12521 # or program results in "error TOC overflow" add -mminimal-toc to
12522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12524
12525 archive_cmds_GO=''
12526 hardcode_direct_GO=yes
12527 hardcode_direct_absolute_GO=yes
12528 hardcode_libdir_separator_GO=':'
12529 link_all_deplibs_GO=yes
12530 file_list_spec_GO='${wl}-f,'
12531
12532 if test "$GCC" = yes; then
12533 case $host_os in aix4.[012]|aix4.[012].*)
12534 # We only want to do this on AIX 4.2 and lower, the check
12535 # below for broken collect2 doesn't work under 4.3+
12536 collect2name=`${CC} -print-prog-name=collect2`
12537 if test -f "$collect2name" &&
12538 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12539 then
12540 # We have reworked collect2
12541 :
12542 else
12543 # We have old collect2
12544 hardcode_direct_GO=unsupported
12545 # It fails to find uninstalled libraries when the uninstalled
12546 # path is not listed in the libpath. Setting hardcode_minus_L
12547 # to unsupported forces relinking
12548 hardcode_minus_L_GO=yes
12549 hardcode_libdir_flag_spec_GO='-L$libdir'
12550 hardcode_libdir_separator_GO=
12551 fi
12552 ;;
12553 esac
12554 shared_flag='-shared'
12555 if test "$aix_use_runtimelinking" = yes; then
12556 shared_flag="$shared_flag "'${wl}-G'
12557 fi
12558 else
12559 # not using gcc
12560 if test "$host_cpu" = ia64; then
12561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12562 # chokes on -Wl,-G. The following line is correct:
12563 shared_flag='-G'
12564 else
12565 if test "$aix_use_runtimelinking" = yes; then
12566 shared_flag='${wl}-G'
12567 else
12568 shared_flag='${wl}-bM:SRE'
12569 fi
12570 fi
12571 fi
12572
12573 export_dynamic_flag_spec_GO='${wl}-bexpall'
12574 # It seems that -bexpall does not export symbols beginning with
12575 # underscore (_), so it is better to generate a list of symbols to export.
12576 always_export_symbols_GO=yes
12577 if test "$aix_use_runtimelinking" = yes; then
12578 # Warning - without using the other runtime loading flags (-brtl),
12579 # -berok will link without error, but may produce a broken library.
12580 allow_undefined_flag_GO='-berok'
12581 # Determine the default libpath from the value encoded in an
12582 # empty executable.
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584/* end confdefs.h. */
12585
12586int
12587main ()
12588{
12589
12590 ;
12591 return 0;
12592}
12593_ACEOF
12594if ac_fn_c_try_link "$LINENO"; then :
12595
12596lt_aix_libpath_sed='
12597 /Import File Strings/,/^$/ {
12598 /^0/ {
12599 s/^0 *\(.*\)$/\1/
12600 p
12601 }
12602 }'
12603aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12604# Check for a 64-bit object if we didn't find anything.
12605if test -z "$aix_libpath"; then
12606 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12607fi
12608fi
12609rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12611if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12612
12613 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12614 archive_expsym_cmds_GO='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12615 else
12616 if test "$host_cpu" = ia64; then
12617 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12618 allow_undefined_flag_GO="-z nodefs"
12619 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12620 else
12621 # Determine the default libpath from the value encoded in an
12622 # empty executable.
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624/* end confdefs.h. */
12625
12626int
12627main ()
12628{
12629
12630 ;
12631 return 0;
12632}
12633_ACEOF
12634if ac_fn_c_try_link "$LINENO"; then :
12635
12636lt_aix_libpath_sed='
12637 /Import File Strings/,/^$/ {
12638 /^0/ {
12639 s/^0 *\(.*\)$/\1/
12640 p
12641 }
12642 }'
12643aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12644# Check for a 64-bit object if we didn't find anything.
12645if test -z "$aix_libpath"; then
12646 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12647fi
12648fi
12649rm -f core conftest.err conftest.$ac_objext \
12650 conftest$ac_exeext conftest.$ac_ext
12651if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12652
12653 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12654 # Warning - without using the other run time loading flags,
12655 # -berok will link without error, but may produce a broken library.
12656 no_undefined_flag_GO=' ${wl}-bernotok'
12657 allow_undefined_flag_GO=' ${wl}-berok'
12658 if test "$with_gnu_ld" = yes; then
12659 # We only use this code for GNU lds that support --whole-archive.
12660 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12661 else
12662 # Exported symbols can be pulled into shared objects from archives
12663 whole_archive_flag_spec_GO='$convenience'
12664 fi
12665 archive_cmds_need_lc_GO=yes
12666 # This is similar to how AIX traditionally builds its shared libraries.
12667 archive_expsym_cmds_GO="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12668 fi
12669 fi
12670 ;;
12671
12672 amigaos*)
12673 case $host_cpu in
12674 powerpc)
12675 # see comment about AmigaOS4 .so support
12676 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 archive_expsym_cmds_GO=''
12678 ;;
12679 m68k)
12680 archive_cmds_GO='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12681 hardcode_libdir_flag_spec_GO='-L$libdir'
12682 hardcode_minus_L_GO=yes
12683 ;;
12684 esac
12685 ;;
12686
12687 bsdi[45]*)
12688 export_dynamic_flag_spec_GO=-rdynamic
12689 ;;
12690
12691 cygwin* | mingw* | pw32* | cegcc*)
12692 # When not using gcc, we currently assume that we are using
12693 # Microsoft Visual C++.
12694 # hardcode_libdir_flag_spec is actually meaningless, as there is
12695 # no search path for DLLs.
12696 hardcode_libdir_flag_spec_GO=' '
12697 allow_undefined_flag_GO=unsupported
12698 # Tell ltmain to make .lib files, not .a files.
12699 libext=lib
12700 # Tell ltmain to make .dll files, not .so files.
12701 shrext_cmds=".dll"
12702 # FIXME: Setting linknames here is a bad hack.
12703 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12704 # The linker will automatically build a .lib file if we build a DLL.
12705 old_archive_from_new_cmds_GO='true'
12706 # FIXME: Should let the user specify the lib program.
12707 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12708 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12709 enable_shared_with_static_runtimes_GO=yes
12710 ;;
12711
12712 darwin* | rhapsody*)
12713
12714
12715 archive_cmds_need_lc_GO=no
12716 hardcode_direct_GO=no
12717 hardcode_automatic_GO=yes
12718 hardcode_shlibpath_var_GO=unsupported
12719 if test "$lt_cv_ld_force_load" = "yes"; then
12720 whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12721 else
12722 whole_archive_flag_spec_GO=''
12723 fi
12724 link_all_deplibs_GO=yes
12725 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12726 case $cc_basename in
12727 ifort*) _lt_dar_can_shared=yes ;;
12728 *) _lt_dar_can_shared=$GCC ;;
12729 esac
12730 if test "$_lt_dar_can_shared" = "yes"; then
12731 output_verbose_link_cmd=func_echo_all
12732 archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12733 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12734 archive_expsym_cmds_GO="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12735 module_expsym_cmds_GO="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12736
12737 else
12738 ld_shlibs_GO=no
12739 fi
12740
12741 ;;
12742
12743 dgux*)
12744 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12745 hardcode_libdir_flag_spec_GO='-L$libdir'
12746 hardcode_shlibpath_var_GO=no
12747 ;;
12748
7a938933
ILT
12749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12750 # support. Future versions do this automatically, but an explicit c++rt0.o
12751 # does not break anything, and helps significantly (at the cost of a little
12752 # extra space).
12753 freebsd2.2*)
12754 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12755 hardcode_libdir_flag_spec_GO='-R$libdir'
12756 hardcode_direct_GO=yes
12757 hardcode_shlibpath_var_GO=no
12758 ;;
12759
12760 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 12761 freebsd2.*)
7a938933
ILT
12762 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12763 hardcode_direct_GO=yes
12764 hardcode_minus_L_GO=yes
12765 hardcode_shlibpath_var_GO=no
12766 ;;
12767
12768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12769 freebsd* | dragonfly*)
12770 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12771 hardcode_libdir_flag_spec_GO='-R$libdir'
12772 hardcode_direct_GO=yes
12773 hardcode_shlibpath_var_GO=no
12774 ;;
12775
12776 hpux9*)
12777 if test "$GCC" = yes; then
12778 archive_cmds_GO='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12779 else
12780 archive_cmds_GO='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12781 fi
12782 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12783 hardcode_libdir_separator_GO=:
12784 hardcode_direct_GO=yes
12785
12786 # hardcode_minus_L: Not really in the search PATH,
12787 # but as the default location of the library.
12788 hardcode_minus_L_GO=yes
12789 export_dynamic_flag_spec_GO='${wl}-E'
12790 ;;
12791
12792 hpux10*)
12793 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12794 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12795 else
12796 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12797 fi
12798 if test "$with_gnu_ld" = no; then
12799 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12800 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12801 hardcode_libdir_separator_GO=:
12802 hardcode_direct_GO=yes
12803 hardcode_direct_absolute_GO=yes
12804 export_dynamic_flag_spec_GO='${wl}-E'
12805 # hardcode_minus_L: Not really in the search PATH,
12806 # but as the default location of the library.
12807 hardcode_minus_L_GO=yes
12808 fi
12809 ;;
12810
12811 hpux11*)
12812 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12813 case $host_cpu in
12814 hppa*64*)
12815 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12816 ;;
12817 ia64*)
12818 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12819 ;;
12820 *)
12821 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12822 ;;
12823 esac
12824 else
12825 case $host_cpu in
12826 hppa*64*)
12827 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12828 ;;
12829 ia64*)
12830 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12831 ;;
12832 *)
12833 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12834 ;;
12835 esac
12836 fi
12837 if test "$with_gnu_ld" = no; then
12838 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12839 hardcode_libdir_separator_GO=:
12840
12841 case $host_cpu in
12842 hppa*64*|ia64*)
12843 hardcode_direct_GO=no
12844 hardcode_shlibpath_var_GO=no
12845 ;;
12846 *)
12847 hardcode_direct_GO=yes
12848 hardcode_direct_absolute_GO=yes
12849 export_dynamic_flag_spec_GO='${wl}-E'
12850
12851 # hardcode_minus_L: Not really in the search PATH,
12852 # but as the default location of the library.
12853 hardcode_minus_L_GO=yes
12854 ;;
12855 esac
12856 fi
12857 ;;
12858
12859 irix5* | irix6* | nonstopux*)
12860 if test "$GCC" = yes; then
12861 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12862 # Try to use the -exported_symbol ld option, if it does not
12863 # work, assume that -exports_file does not work either and
12864 # implicitly export all symbols.
12865 save_LDFLAGS="$LDFLAGS"
12866 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868/* end confdefs.h. */
12869int foo(void) {}
12870_ACEOF
12871if ac_fn_c_try_link "$LINENO"; then :
12872 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12873
12874fi
12875rm -f core conftest.err conftest.$ac_objext \
12876 conftest$ac_exeext conftest.$ac_ext
12877 LDFLAGS="$save_LDFLAGS"
12878 else
12879 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12880 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12881 fi
12882 archive_cmds_need_lc_GO='no'
12883 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12884 hardcode_libdir_separator_GO=:
12885 inherit_rpath_GO=yes
12886 link_all_deplibs_GO=yes
12887 ;;
12888
12889 netbsd*)
12890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12891 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12892 else
12893 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12894 fi
12895 hardcode_libdir_flag_spec_GO='-R$libdir'
12896 hardcode_direct_GO=yes
12897 hardcode_shlibpath_var_GO=no
12898 ;;
12899
12900 newsos6)
12901 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12902 hardcode_direct_GO=yes
12903 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12904 hardcode_libdir_separator_GO=:
12905 hardcode_shlibpath_var_GO=no
12906 ;;
12907
12908 *nto* | *qnx*)
12909 ;;
12910
12911 openbsd*)
12912 if test -f /usr/libexec/ld.so; then
12913 hardcode_direct_GO=yes
12914 hardcode_shlibpath_var_GO=no
12915 hardcode_direct_absolute_GO=yes
12916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12917 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12918 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12919 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12920 export_dynamic_flag_spec_GO='${wl}-E'
12921 else
12922 case $host_os in
12923 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12924 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12925 hardcode_libdir_flag_spec_GO='-R$libdir'
12926 ;;
12927 *)
12928 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12929 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12930 ;;
12931 esac
12932 fi
12933 else
12934 ld_shlibs_GO=no
12935 fi
12936 ;;
12937
12938 os2*)
12939 hardcode_libdir_flag_spec_GO='-L$libdir'
12940 hardcode_minus_L_GO=yes
12941 allow_undefined_flag_GO=unsupported
12942 archive_cmds_GO='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12943 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12944 ;;
12945
12946 osf3*)
12947 if test "$GCC" = yes; then
12948 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12949 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12950 else
12951 allow_undefined_flag_GO=' -expect_unresolved \*'
12952 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12953 fi
12954 archive_cmds_need_lc_GO='no'
12955 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12956 hardcode_libdir_separator_GO=:
12957 ;;
12958
12959 osf4* | osf5*) # as osf3* with the addition of -msym flag
12960 if test "$GCC" = yes; then
12961 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12962 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12963 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12964 else
12965 allow_undefined_flag_GO=' -expect_unresolved \*'
12966 archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12967 archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12968 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12969
12970 # Both c and cxx compiler support -rpath directly
12971 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12972 fi
12973 archive_cmds_need_lc_GO='no'
12974 hardcode_libdir_separator_GO=:
12975 ;;
12976
12977 solaris*)
12978 no_undefined_flag_GO=' -z defs'
12979 if test "$GCC" = yes; then
12980 wlarc='${wl}'
12981 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12982 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12983 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12984 else
12985 case `$CC -V 2>&1` in
12986 *"Compilers 5.0"*)
12987 wlarc=''
12988 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12989 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12991 ;;
12992 *)
12993 wlarc='${wl}'
12994 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12995 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12996 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12997 ;;
12998 esac
12999 fi
13000 hardcode_libdir_flag_spec_GO='-R$libdir'
13001 hardcode_shlibpath_var_GO=no
13002 case $host_os in
13003 solaris2.[0-5] | solaris2.[0-5].*) ;;
13004 *)
13005 # The compiler driver will combine and reorder linker options,
13006 # but understands `-z linker_flag'. GCC discards it without `$wl',
13007 # but is careful enough not to reorder.
13008 # Supported since Solaris 2.6 (maybe 2.5.1?)
13009 if test "$GCC" = yes; then
13010 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13011 else
13012 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13013 fi
13014 ;;
13015 esac
13016 link_all_deplibs_GO=yes
13017 ;;
13018
13019 sunos4*)
13020 if test "x$host_vendor" = xsequent; then
13021 # Use $CC to link under sequent, because it throws in some extra .o
13022 # files that make .init and .fini sections work.
13023 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13024 else
13025 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13026 fi
13027 hardcode_libdir_flag_spec_GO='-L$libdir'
13028 hardcode_direct_GO=yes
13029 hardcode_minus_L_GO=yes
13030 hardcode_shlibpath_var_GO=no
13031 ;;
13032
13033 sysv4)
13034 case $host_vendor in
13035 sni)
13036 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037 hardcode_direct_GO=yes # is this really true???
13038 ;;
13039 siemens)
13040 ## LD is ld it makes a PLAMLIB
13041 ## CC just makes a GrossModule.
13042 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13043 reload_cmds_GO='$CC -r -o $output$reload_objs'
13044 hardcode_direct_GO=no
13045 ;;
13046 motorola)
13047 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13049 ;;
13050 esac
13051 runpath_var='LD_RUN_PATH'
13052 hardcode_shlibpath_var_GO=no
13053 ;;
13054
13055 sysv4.3*)
13056 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057 hardcode_shlibpath_var_GO=no
13058 export_dynamic_flag_spec_GO='-Bexport'
13059 ;;
13060
13061 sysv4*MP*)
13062 if test -d /usr/nec; then
13063 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13064 hardcode_shlibpath_var_GO=no
13065 runpath_var=LD_RUN_PATH
13066 hardcode_runpath_var=yes
13067 ld_shlibs_GO=yes
13068 fi
13069 ;;
13070
13071 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13072 no_undefined_flag_GO='${wl}-z,text'
13073 archive_cmds_need_lc_GO=no
13074 hardcode_shlibpath_var_GO=no
13075 runpath_var='LD_RUN_PATH'
13076
13077 if test "$GCC" = yes; then
13078 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13079 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13080 else
13081 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13082 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13083 fi
13084 ;;
13085
13086 sysv5* | sco3.2v5* | sco5v6*)
13087 # Note: We can NOT use -z defs as we might desire, because we do not
13088 # link with -lc, and that would cause any symbols used from libc to
13089 # always be unresolved, which means just about no library would
13090 # ever link correctly. If we're not using GNU ld we use -z text
13091 # though, which does catch some bad symbols but isn't as heavy-handed
13092 # as -z defs.
13093 no_undefined_flag_GO='${wl}-z,text'
13094 allow_undefined_flag_GO='${wl}-z,nodefs'
13095 archive_cmds_need_lc_GO=no
13096 hardcode_shlibpath_var_GO=no
13097 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13098 hardcode_libdir_separator_GO=':'
13099 link_all_deplibs_GO=yes
13100 export_dynamic_flag_spec_GO='${wl}-Bexport'
13101 runpath_var='LD_RUN_PATH'
13102
13103 if test "$GCC" = yes; then
13104 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 else
13107 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13108 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13109 fi
13110 ;;
13111
13112 uts4*)
13113 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13114 hardcode_libdir_flag_spec_GO='-L$libdir'
13115 hardcode_shlibpath_var_GO=no
13116 ;;
13117
13118 *)
13119 ld_shlibs_GO=no
13120 ;;
13121 esac
13122
13123 if test x$host_vendor = xsni; then
13124 case $host in
13125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13126 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13127 ;;
13128 esac
13129 fi
13130 fi
13131
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13133$as_echo "$ld_shlibs_GO" >&6; }
13134test "$ld_shlibs_GO" = no && can_build_shared=no
13135
13136with_gnu_ld_GO=$with_gnu_ld
13137
13138
13139
13140
13141
13142
13143#
13144# Do we need to explicitly link libc?
13145#
13146case "x$archive_cmds_need_lc_GO" in
13147x|xyes)
13148 # Assume -lc should be added
13149 archive_cmds_need_lc_GO=yes
13150
13151 if test "$enable_shared" = yes && test "$GCC" = yes; then
13152 case $archive_cmds_GO in
13153 *'~'*)
13154 # FIXME: we may have to deal with multi-command sequences.
13155 ;;
13156 '$CC '*)
13157 # Test whether the compiler implicitly links with -lc since on some
13158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13159 # to ld, don't add -lc before -lgcc.
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13161$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13162if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164else
13165 $RM conftest*
13166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13167
13168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13169 (eval $ac_compile) 2>&5
13170 ac_status=$?
13171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13172 test $ac_status = 0; } 2>conftest.err; then
13173 soname=conftest
13174 lib=conftest
13175 libobjs=conftest.$ac_objext
13176 deplibs=
13177 wl=$lt_prog_compiler_wl_GO
13178 pic_flag=$lt_prog_compiler_pic_GO
13179 compiler_flags=-v
13180 linker_flags=-v
13181 verstring=
13182 output_objdir=.
13183 libname=conftest
13184 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13185 allow_undefined_flag_GO=
13186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13187 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13188 ac_status=$?
13189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190 test $ac_status = 0; }
13191 then
13192 lt_cv_archive_cmds_need_lc_GO=no
13193 else
13194 lt_cv_archive_cmds_need_lc_GO=yes
13195 fi
13196 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13197 else
13198 cat conftest.err 1>&5
13199 fi
13200 $RM conftest*
13201
13202fi
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13204$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13205 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13206 ;;
13207 esac
13208 fi
13209 ;;
13210esac
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
13274
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13276$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13277hardcode_action_GO=
13278if test -n "$hardcode_libdir_flag_spec_GO" ||
13279 test -n "$runpath_var_GO" ||
13280 test "X$hardcode_automatic_GO" = "Xyes" ; then
13281
13282 # We can hardcode non-existent directories.
13283 if test "$hardcode_direct_GO" != no &&
13284 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13285 # have to relink, otherwise we might link with an installed library
13286 # when we should be linking with a yet-to-be-installed one
13287 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13288 test "$hardcode_minus_L_GO" != no; then
13289 # Linking always hardcodes the temporary library directory.
13290 hardcode_action_GO=relink
13291 else
13292 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13293 hardcode_action_GO=immediate
13294 fi
13295else
13296 # We cannot hardcode anything, or else we can only hardcode existing
13297 # directories.
13298 hardcode_action_GO=unsupported
13299fi
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13301$as_echo "$hardcode_action_GO" >&6; }
13302
13303if test "$hardcode_action_GO" = relink ||
13304 test "$inherit_rpath_GO" = yes; then
13305 # Fast installation is not supported
13306 enable_fast_install=no
13307elif test "$shlibpath_overrides_runpath" = yes ||
13308 test "$enable_shared" = no; then
13309 # Fast installation is not necessary
13310 enable_fast_install=needless
13311fi
13312
13313
13314
13315
13316
13317
13318
13319fi
13320
13321ac_ext=c
13322ac_cpp='$CPP $CPPFLAGS'
13323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13325ac_compiler_gnu=$ac_cv_c_compiler_gnu
13326
13327
13328GCC=$lt_save_GCC
13329CC="$lt_save_CC"
13330
13331
13332
13333
13334 ac_config_commands="$ac_config_commands libtool"
13335
13336
13337
13338
13339# Only expand once:
13340
13341
13342
13343
13344
d983a802
ILT
13345CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13346
13347
de27caac
ILT
13348for ac_prog in gawk mawk nawk awk
13349do
13350 # Extract the first word of "$ac_prog", so it can be a program name with args.
13351set dummy $ac_prog; ac_word=$2
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353$as_echo_n "checking for $ac_word... " >&6; }
13354if test "${ac_cv_prog_AWK+set}" = set; then :
13355 $as_echo_n "(cached) " >&6
13356else
13357 if test -n "$AWK"; then
13358 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13359else
13360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361for as_dir in $PATH
13362do
13363 IFS=$as_save_IFS
13364 test -z "$as_dir" && as_dir=.
13365 for ac_exec_ext in '' $ac_executable_extensions; do
13366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13367 ac_cv_prog_AWK="$ac_prog"
13368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13369 break 2
13370 fi
13371done
13372 done
13373IFS=$as_save_IFS
13374
13375fi
13376fi
13377AWK=$ac_cv_prog_AWK
13378if test -n "$AWK"; then
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13380$as_echo "$AWK" >&6; }
13381else
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383$as_echo "no" >&6; }
13384fi
13385
13386
13387 test -n "$AWK" && break
13388done
13389
13390
7a938933
ILT
13391WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13392
13393
0d4668c1
ILT
13394# Check whether --enable-werror was given.
13395if test "${enable_werror+set}" = set; then :
13396 enableval=$enable_werror;
13397fi
13398
13399if test "x$enable_werror" != "xno"; then
13400 WERROR="-Werror"
13401fi
7a938933
ILT
13402
13403
13404glibgo_toolexecdir=no
13405glibgo_toolexeclibdir=no
7a938933
ILT
13406
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13408$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13409# Check whether --enable-version-specific-runtime-libs was given.
13410if test "${enable_version_specific_runtime_libs+set}" = set; then :
13411 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13412 yes) version_specific_libs=yes ;;
13413 no) version_specific_libs=no ;;
13414 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13415 esac
13416else
13417 version_specific_libs=no
13418fi
13419
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13421$as_echo "$version_specific_libs" >&6; }
13422
13423# Version-specific runtime libs processing.
13424if test $version_specific_libs = yes; then
13425 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13426 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13427fi
13428
13429# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13430# Install a library built with a cross compiler in tooldir, not libdir.
317ea7c0
ILT
13431if test -n "$with_cross_host" &&
13432 test x"$with_cross_host" != x"no"; then
13433 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13434 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13435else
13436 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13437 nover_glibgo_toolexeclibdir='${libdir}'
13438fi
6c76a95d 13439multi_os_directory=`$GOC -print-multi-os-directory`
317ea7c0
ILT
13440case $multi_os_directory in
13441 .) ;; # Avoid trailing /.
13442 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13443esac
13444
7a938933 13445if test x"$glibgo_toolexecdir" = x"no"; then
317ea7c0
ILT
13446 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13447 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
7a938933
ILT
13448fi
13449
13450
13451
13452
13453
13454# See if the user wants to configure without libffi. Some
13455# architectures don't support it. FIXME: We should set a default
13456# based on the host.
13457
13458# Check whether --with-libffi was given.
13459if test "${with_libffi+set}" = set; then :
13460 withval=$with_libffi; :
13461else
13462 with_libffi=${with_libffi_default-yes}
13463fi
13464
13465
13466LIBFFI=
13467LIBFFIINCS=
13468if test "$with_libffi" != no; then
13469
13470$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13471
13472 LIBFFI=../libffi/libffi_convenience.la
13473 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13474fi
13475
13476
5302cd02
ILT
13477 if test "$with_liffi" != "no"; then
13478 USE_LIBFFI_TRUE=
13479 USE_LIBFFI_FALSE='#'
13480else
13481 USE_LIBFFI_TRUE='#'
13482 USE_LIBFFI_FALSE=
13483fi
13484
7a938933 13485
9a85ed03
ILT
13486# See if the user wants to configure without libatomic. This is useful if we are
13487# on an architecture for which libgo does not need an atomic support library and
13488# libatomic does not support our C compiler.
13489
13490# Check whether --with-libatomic was given.
13491if test "${with_libatomic+set}" = set; then :
13492 withval=$with_libatomic; :
13493else
13494 with_libatomic=${with_libatomic_default-yes}
13495fi
13496
13497
13498LIBATOMIC=
13499if test "$with_libatomic" != no; then
13500 LIBATOMIC=../libatomic/libatomic_convenience.la
13501fi
13502
13503
18c70075
ILT
13504# Used to tell GNU make to include a file without telling automake to
13505# include it.
13506go_include="-include"
13507
13508
a8464243
ILT
13509# All known GOOS values. This is the union of all operating systems
13510# supported by the gofrontend and all operating systems supported by
13511# the gc toolchain.
f163907e 13512ALLGOOS="aix android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
a8464243 13513
7a938933
ILT
13514is_darwin=no
13515is_freebsd=no
654d2ec0 13516is_irix=no
7a938933 13517is_linux=no
1efa38d1 13518is_netbsd=no
4ccad563 13519is_openbsd=no
f038dae6 13520is_dragonfly=no
7a938933 13521is_rtems=no
f2ee78b8 13522is_solaris=no
f163907e 13523is_aix=no
c3b5b97b 13524GOOS=unknown
7a938933 13525case ${host} in
f2ee78b8
ILT
13526 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13527 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
654d2ec0 13528 *-*-irix6*) is_irix=yes; GOOS=irix ;;
f2ee78b8 13529 *-*-linux*) is_linux=yes; GOOS=linux ;;
df4aa89a 13530 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
4ccad563 13531 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
f038dae6 13532 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
f2ee78b8
ILT
13533 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13534 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
f163907e 13535 *-*-aix*) is_aix=yes; GOOS=aix ;;
7a938933
ILT
13536esac
13537 if test $is_darwin = yes; then
13538 LIBGO_IS_DARWIN_TRUE=
13539 LIBGO_IS_DARWIN_FALSE='#'
13540else
13541 LIBGO_IS_DARWIN_TRUE='#'
13542 LIBGO_IS_DARWIN_FALSE=
13543fi
13544
13545 if test $is_freebsd = yes; then
13546 LIBGO_IS_FREEBSD_TRUE=
13547 LIBGO_IS_FREEBSD_FALSE='#'
13548else
13549 LIBGO_IS_FREEBSD_TRUE='#'
13550 LIBGO_IS_FREEBSD_FALSE=
13551fi
13552
654d2ec0
ILT
13553 if test $is_irix = yes; then
13554 LIBGO_IS_IRIX_TRUE=
13555 LIBGO_IS_IRIX_FALSE='#'
13556else
13557 LIBGO_IS_IRIX_TRUE='#'
13558 LIBGO_IS_IRIX_FALSE=
13559fi
13560
7a938933
ILT
13561 if test $is_linux = yes; then
13562 LIBGO_IS_LINUX_TRUE=
13563 LIBGO_IS_LINUX_FALSE='#'
13564else
13565 LIBGO_IS_LINUX_TRUE='#'
13566 LIBGO_IS_LINUX_FALSE=
13567fi
13568
df4aa89a
ILT
13569 if test $is_netbsd = yes; then
13570 LIBGO_IS_NETBSD_TRUE=
13571 LIBGO_IS_NETBSD_FALSE='#'
13572else
13573 LIBGO_IS_NETBSD_TRUE='#'
13574 LIBGO_IS_NETBSD_FALSE=
13575fi
13576
4ccad563
ILT
13577 if test $is_openbsd = yes; then
13578 LIBGO_IS_OPENBSD_TRUE=
13579 LIBGO_IS_OPENBSD_FALSE='#'
13580else
13581 LIBGO_IS_OPENBSD_TRUE='#'
13582 LIBGO_IS_OPENBSD_FALSE=
13583fi
13584
824393bd 13585 if test $is_dragonfly = yes; then
f038dae6
ILT
13586 LIBGO_IS_DRAGONFLY_TRUE=
13587 LIBGO_IS_DRAGONFLY_FALSE='#'
13588else
13589 LIBGO_IS_DRAGONFLY_TRUE='#'
13590 LIBGO_IS_DRAGONFLY_FALSE=
13591fi
13592
7a938933
ILT
13593 if test $is_rtems = yes; then
13594 LIBGO_IS_RTEMS_TRUE=
13595 LIBGO_IS_RTEMS_FALSE='#'
13596else
13597 LIBGO_IS_RTEMS_TRUE='#'
13598 LIBGO_IS_RTEMS_FALSE=
13599fi
13600
f2ee78b8
ILT
13601 if test $is_solaris = yes; then
13602 LIBGO_IS_SOLARIS_TRUE=
13603 LIBGO_IS_SOLARIS_FALSE='#'
13604else
13605 LIBGO_IS_SOLARIS_TRUE='#'
13606 LIBGO_IS_SOLARIS_FALSE=
13607fi
13608
f163907e
ILT
13609 if test $is_aix = yes; then
13610 LIBGO_IS_AIX_TRUE=
13611 LIBGO_IS_AIX_FALSE='#'
13612else
13613 LIBGO_IS_AIX_TRUE='#'
13614 LIBGO_IS_AIX_FALSE=
13615fi
13616
22b955cc
ILT
13617 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13618 LIBGO_IS_BSD_TRUE=
13619 LIBGO_IS_BSD_FALSE='#'
13620else
13621 LIBGO_IS_BSD_TRUE='#'
13622 LIBGO_IS_BSD_FALSE=
13623fi
13624
7a938933 13625
c3b5b97b 13626
a8464243 13627
7134cf28
ILT
13628USE_DEJAGNU=no
13629case ${host} in
13630 *-*-rtems*) USE_DEJAGNU=yes ;;
553752e1 13631 ${build}) ;;
7134cf28
ILT
13632 *) USE_DEJAGNU=yes ;;
13633esac
13634
13635
a8464243
ILT
13636# All known GOARCH values. This is the union of all architectures
13637# supported by the gofrontend and all architectures supported by the
13638# gc toolchain.
ffad1c54
ILT
13639# To add a new architecture:
13640# - add it to this list
13641# - if appropriate, add an entry to ALLGOARCHFAMILY below
13642# - add an entry to the case on ${host} below to set GOARCH
13643# - update goarchList in libgo/go/go/build/syslist.go
13644# - update goarch.sh to report the values for this architecture
13645# - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
13646# - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
13647# - update arch lists in libgo/match.sh
13648# - update arch lists in libgo/testsuite/gotest
13649# - update +build lines in several places
13650# - libgo/go/runtime/lfstack_NNbit.go
13651# - libgo/go/runtime/hashNN.go
13652# - libgo/go/runtime/unalignedN.go
13653# - libgo/go/syscall/endian_XX.go
13654# - possibly others
13655# - possibly update files in libgo/go/internal/syscall/unix
87cbbc45 13656ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
a8464243 13657
ffad1c54 13658# All known GOARCH family values.
87cbbc45 13659ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
a8464243 13660
c3b5b97b 13661GOARCH=unknown
7a938933 13662case ${host} in
e59b9171 13663 alpha*-*-*)
e59b9171
ILT
13664 GOARCH=alpha
13665 ;;
71d0d50a 13666 aarch64-*-*)
71d0d50a
ILT
13667 GOARCH=arm64
13668 ;;
ca11cc98 13669 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
ca11cc98 13670 GOARCH=arm
1a2f01ef
ILT
13671 case ${host} in
13672 arm*b*-*-*)
13673 GOARCH=armbe
1a2f01ef
ILT
13674 ;;
13675 esac
ca11cc98 13676 ;;
c3b5b97b
ILT
13677 i[34567]86-*-* | x86_64-*-*)
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679/* end confdefs.h. */
13680
13681#ifdef __x86_64__
13682#error 64-bit
13683#endif
13684_ACEOF
4a299bf4 13685if ac_fn_c_try_compile "$LINENO"; then :
a8464243 13686 GOARCH=386
c3b5b97b 13687else
44ef0300
ILT
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h. */
13690
13691#ifdef __ILP32__
13692#error x32
13693#endif
13694_ACEOF
13695if ac_fn_c_try_compile "$LINENO"; then :
a8464243 13696 GOARCH=amd64
44ef0300
ILT
13697else
13698 GOARCH=amd64p32
13699fi
13700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3b5b97b 13701fi
4a299bf4 13702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7a938933 13703 ;;
4f8e688a 13704 ia64-*-*)
4f8e688a
ILT
13705 GOARCH=ia64
13706 ;;
ca11cc98 13707 m68k*-*-*)
ca11cc98
ILT
13708 GOARCH=m68k
13709 ;;
13710 mips*-*-*)
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712/* end confdefs.h. */
13713
85a09210
ILT
13714#if _MIPS_SIM != _ABIO32
13715#error not o32
13716#endif
13717_ACEOF
13718if ac_fn_c_try_compile "$LINENO"; then :
13719 mips_abi="o32"
13720else
13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722/* end confdefs.h. */
13723
13724#if _MIPS_SIM != _ABIN32
13725#error not n32
ca11cc98
ILT
13726#endif
13727_ACEOF
4a299bf4 13728if ac_fn_c_try_compile "$LINENO"; then :
85a09210 13729 mips_abi="n32"
ca11cc98 13730else
85a09210
ILT
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732/* end confdefs.h. */
13733
13734#if _MIPS_SIM != _ABI64
13735#error not n64
13736#endif
13737_ACEOF
13738if ac_fn_c_try_compile "$LINENO"; then :
13739 mips_abi="n64"
85a09210
ILT
13740else
13741 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13742mips_abi="n32"
ca11cc98 13743fi
4a299bf4 13744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85a09210
ILT
13745fi
13746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13747fi
85a09210
ILT
13748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 case "$mips_abi" in
1701a9d8
ILT
13750 "o32") GOARCH=mips ;;
13751 "n32") GOARCH=mips64p32 ;;
13752 "n64") GOARCH=mips64 ;;
85a09210 13753 esac
a8464243 13754 case "${host}" in
1701a9d8 13755 mips*el-*-*)
f30d2091 13756 GOARCH="${GOARCH}le"
a8464243 13757 ;;
a8464243 13758 esac
ca11cc98 13759 ;;
746d6ed4
ILT
13760 nios2-*-*)
13761 GOARCH=nios2
13762 ;;
ca11cc98
ILT
13763 rs6000*-*-* | powerpc*-*-*)
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765/* end confdefs.h. */
13766
13767#ifdef _ARCH_PPC64
13768#error 64-bit
13769#endif
13770_ACEOF
4a299bf4 13771if ac_fn_c_try_compile "$LINENO"; then :
a8464243 13772 GOARCH=ppc
6f7ccafa 13773else
a8464243 13774
a8464243 13775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6f7ccafa
ILT
13776/* end confdefs.h. */
13777
13778#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
13779#error 64be
13780#endif
13781_ACEOF
13782if ac_fn_c_try_compile "$LINENO"; then :
a8464243 13783 GOARCH=ppc64le
ca11cc98 13784else
a8464243 13785 GOARCH=ppc64
ca11cc98 13786fi
6f7ccafa
ILT
13787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13788fi
4a299bf4 13789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7a938933 13790 ;;
b613cc2e
AS
13791 riscv64-*-*)
13792 GOARCH=riscv64
13793 ;;
1fec5f52
ILT
13794 s390*-*-*)
13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796/* end confdefs.h. */
13797
13798#if defined(__s390x__)
13799#error 64-bit
13800#endif
13801_ACEOF
13802if ac_fn_c_try_compile "$LINENO"; then :
a8464243 13803 GOARCH=s390
1fec5f52 13804else
a8464243 13805 GOARCH=s390x
1fec5f52
ILT
13806fi
13807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fec5f52 13808 ;;
ffad1c54 13809 sh3eb*-*-* | sh4eb*-*-*)
fd0c1dd1 13810 GOARCH=shbe
fd0c1dd1 13811 ;;
ffad1c54 13812 sh3*-*-* | sh4*-*-*)
fd0c1dd1 13813 GOARCH=sh
fd0c1dd1 13814 ;;
f2ee78b8
ILT
13815 sparc*-*-*)
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817/* end confdefs.h. */
13818
13819#if defined(__sparcv9) || defined(__arch64__)
13820#error 64-bit
13821#endif
13822_ACEOF
4a299bf4 13823if ac_fn_c_try_compile "$LINENO"; then :
a8464243 13824 GOARCH=sparc
f2ee78b8 13825else
a8464243 13826 GOARCH=sparc64
f2ee78b8 13827fi
4a299bf4 13828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f2ee78b8 13829 ;;
7a938933 13830esac
85a09210 13831
ca11cc98 13832
f98dd1a3 13833
ca11cc98 13834
de27caac
ILT
13835GO_LIBCALL_OS_FILE=
13836GO_LIBCALL_OS_ARCH_FILE=
13837GO_SYSCALL_OS_FILE=
13838GO_SYSCALL_OS_ARCH_FILE=
204b9fc2
ILT
13839if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
13840 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
ca11cc98 13841fi
204b9fc2
ILT
13842if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
13843 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
de27caac 13844fi
204b9fc2
ILT
13845if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
13846 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
de27caac 13847fi
204b9fc2
ILT
13848if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
13849 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
de27caac
ILT
13850fi
13851
13852
13853
ca11cc98
ILT
13854
13855
d48be5df 13856OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
90630d19 13857case "$target" in
9f3b1e6c
ILT
13858 mips-sgi-irix6.5*)
13859 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13860 # msghdr in <sys/socket.h>.
d48be5df 13861 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
9f3b1e6c 13862 ;;
90630d19
ILT
13863 *-*-solaris2.1[01])
13864 # Solaris 10+ needs this so struct msghdr gets the msg_control
bbe847a1 13865 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
90630d19 13866 # above doesn't work with C99.
bbe847a1 13867 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
90630d19
ILT
13868 ;;
13869esac
13870
13871
c3c54e0f 13872
08934aed 13873 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
c3c54e0f 13874
08934aed
ILT
13875 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
13876 # with a different meaning.
13877 case ${target_os} in
13878 solaris2*)
13879 ac_save_CFLAGS="$CFLAGS"
13880 CFLAGS="$CFLAGS -Wa,-nH"
c3c54e0f 13881
08934aed
ILT
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
13883$as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
13884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3c54e0f
ILT
13885/* end confdefs.h. */
13886
13887int
13888main ()
13889{
13890return 0;
13891 ;
13892 return 0;
13893}
13894_ACEOF
08934aed
ILT
13895if ac_fn_c_try_compile "$LINENO"; then :
13896 ac_hwcap_flags=yes
c3c54e0f 13897else
08934aed 13898 ac_hwcap_flags=no
c3c54e0f 13899fi
08934aed
ILT
13900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901 if test "$ac_hwcap_flags" = "yes"; then
13902 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
13903 fi
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
13905$as_echo "$ac_hwcap_flags" >&6; }
c3c54e0f 13906
08934aed
ILT
13907 CFLAGS="$ac_save_CFLAGS"
13908 ;;
13909 esac
c3c54e0f
ILT
13910
13911
c3c54e0f
ILT
13912
13913
7a938933
ILT
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13915$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
f2ee78b8 13916if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
7a938933
ILT
13917 $as_echo_n "(cached) " >&6
13918else
13919 CFLAGS_hold=$CFLAGS
13920CFLAGS="$CFLAGS -fsplit-stack"
13921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922/* end confdefs.h. */
13923int i;
13924_ACEOF
13925if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 13926 libgo_cv_c_split_stack_supported=yes
7a938933 13927else
f2ee78b8 13928 libgo_cv_c_split_stack_supported=no
7a938933
ILT
13929fi
13930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931CFLAGS=$CFLAGS_hold
13932fi
f2ee78b8
ILT
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13934$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
c33c18cd
ILT
13935
13936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
13937$as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
13938if test "${libgo_cv_c_linker_split_non_split+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13940else
13941 cat > conftest1.c << EOF
13942extern void f();
13943int main() { f(); return 0; }
13944EOF
13945cat > conftest2.c << EOF
13946void f() {}
13947EOF
207f844e
ILT
13948$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
13949$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
13950if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
c33c18cd
ILT
13951 libgo_cv_c_linker_split_non_split=yes
13952else
13953 libgo_cv_c_linker_split_non_split=no
13954fi
13955rm -f conftest1.* conftest2.* conftest
13956fi
13957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
13958$as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
13959
13960if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
13961 SPLIT_STACK=-fsplit-stack
13962
13963$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13964
13965else
13966 SPLIT_STACK=
13967fi
13968
c33c18cd 13969 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
13970 USING_SPLIT_STACK_TRUE=
13971 USING_SPLIT_STACK_FALSE='#'
13972else
13973 USING_SPLIT_STACK_TRUE='#'
13974 USING_SPLIT_STACK_FALSE=
13975fi
13976
13977
a2bf11d1
ILT
13978if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
13979 GO_SPLIT_STACK=-fno-split-stack
13980else
13981 GO_SPLIT_STACK=
13982fi
13983
13984
7a938933
ILT
13985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13986$as_echo_n "checking whether linker supports split stack... " >&6; }
f2ee78b8 13987if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
7a938933
ILT
13988 $as_echo_n "(cached) " >&6
13989else
f2ee78b8 13990 libgo_cv_c_linker_supports_split_stack=no
f56c5dd1 13991if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
f2ee78b8 13992 libgo_cv_c_linker_supports_split_stack=yes
7a938933
ILT
13993fi
13994fi
f2ee78b8
ILT
13995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13996$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13997if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
7a938933
ILT
13998
13999$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14000
14001fi
14002
4c46b5f0
ILT
14003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14004$as_echo_n "checking whether compiler is llgo... " >&6; }
14005if test "${libgo_cv_c_goc_is_llgo+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14007else
14008 libgo_cv_c_goc_is_llgo=no
14009if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14010 libgo_cv_c_goc_is_llgo=yes
14011fi
14012fi
14013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14014$as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14015 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14016 GOC_IS_LLGO_TRUE=
14017 GOC_IS_LLGO_FALSE='#'
14018else
14019 GOC_IS_LLGO_TRUE='#'
14020 GOC_IS_LLGO_FALSE=
14021fi
14022
14023
505b439a
ILT
14024MATH_LIBS=
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14026$as_echo_n "checking for sqrt in -lm... " >&6; }
14027if test "${ac_cv_lib_m_sqrt+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029else
14030 ac_check_lib_save_LIBS=$LIBS
14031LIBS="-lm $LIBS"
14032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033/* end confdefs.h. */
14034
14035/* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14038#ifdef __cplusplus
14039extern "C"
14040#endif
14041char sqrt ();
14042int
14043main ()
14044{
14045return sqrt ();
14046 ;
14047 return 0;
14048}
14049_ACEOF
14050if ac_fn_c_try_link "$LINENO"; then :
14051 ac_cv_lib_m_sqrt=yes
14052else
14053 ac_cv_lib_m_sqrt=no
14054fi
14055rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057LIBS=$ac_check_lib_save_LIBS
14058fi
14059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14060$as_echo "$ac_cv_lib_m_sqrt" >&6; }
14061if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14062 MATH_LIBS=-lm
14063fi
14064
14065
14066
f2ee78b8
ILT
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14068$as_echo_n "checking for socket libraries... " >&6; }
14069if test "${libgo_cv_lib_sockets+set}" = set; then :
14070 $as_echo_n "(cached) " >&6
14071else
14072 libgo_cv_lib_sockets=
14073 libgo_check_both=no
14074 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14075if test "x$ac_cv_func_connect" = x""yes; then :
14076 libgo_check_socket=no
14077else
14078 libgo_check_socket=yes
14079fi
14080
14081 if test "$libgo_check_socket" = "yes"; then
14082 unset ac_cv_func_connect
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14084$as_echo_n "checking for main in -lsocket... " >&6; }
14085if test "${ac_cv_lib_socket_main+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14087else
14088 ac_check_lib_save_LIBS=$LIBS
14089LIBS="-lsocket $LIBS"
14090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091/* end confdefs.h. */
14092
14093
14094int
14095main ()
14096{
14097return main ();
14098 ;
14099 return 0;
14100}
14101_ACEOF
14102if ac_fn_c_try_link "$LINENO"; then :
14103 ac_cv_lib_socket_main=yes
14104else
14105 ac_cv_lib_socket_main=no
14106fi
14107rm -f core conftest.err conftest.$ac_objext \
14108 conftest$ac_exeext conftest.$ac_ext
14109LIBS=$ac_check_lib_save_LIBS
14110fi
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14112$as_echo "$ac_cv_lib_socket_main" >&6; }
14113if test "x$ac_cv_lib_socket_main" = x""yes; then :
14114 libgo_cv_lib_sockets="-lsocket"
14115else
14116 libgo_check_both=yes
14117fi
14118
14119 fi
14120 if test "$libgo_check_both" = "yes"; then
14121 libgo_old_libs=$LIBS
14122 LIBS="$LIBS -lsocket -lnsl"
14123 unset ac_cv_func_accept
14124 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14125if test "x$ac_cv_func_accept" = x""yes; then :
14126 libgo_check_nsl=no
14127 libgo_cv_lib_sockets="-lsocket -lnsl"
14128fi
14129
14130 unset ac_cv_func_accept
14131 LIBS=$libgo_old_libs
14132 fi
14133 unset ac_cv_func_gethostbyname
14134 libgo_old_libs="$LIBS"
14135 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14136if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14137
14138else
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14140$as_echo_n "checking for main in -lnsl... " >&6; }
14141if test "${ac_cv_lib_nsl_main+set}" = set; then :
14142 $as_echo_n "(cached) " >&6
14143else
14144 ac_check_lib_save_LIBS=$LIBS
14145LIBS="-lnsl $LIBS"
14146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147/* end confdefs.h. */
14148
14149
14150int
14151main ()
14152{
14153return main ();
14154 ;
14155 return 0;
14156}
14157_ACEOF
14158if ac_fn_c_try_link "$LINENO"; then :
14159 ac_cv_lib_nsl_main=yes
14160else
14161 ac_cv_lib_nsl_main=no
14162fi
14163rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165LIBS=$ac_check_lib_save_LIBS
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14168$as_echo "$ac_cv_lib_nsl_main" >&6; }
14169if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14170 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14171fi
14172
14173fi
14174
14175 unset ac_cv_func_gethostbyname
88cf4de8
ILT
14176 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14177if test "x$ac_cv_func_sendfile" = x""yes; then :
14178
14179else
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14181$as_echo_n "checking for main in -lsendfile... " >&6; }
14182if test "${ac_cv_lib_sendfile_main+set}" = set; then :
14183 $as_echo_n "(cached) " >&6
14184else
14185 ac_check_lib_save_LIBS=$LIBS
14186LIBS="-lsendfile $LIBS"
14187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188/* end confdefs.h. */
14189
14190
14191int
14192main ()
14193{
14194return main ();
14195 ;
14196 return 0;
14197}
14198_ACEOF
14199if ac_fn_c_try_link "$LINENO"; then :
14200 ac_cv_lib_sendfile_main=yes
14201else
14202 ac_cv_lib_sendfile_main=no
14203fi
14204rm -f core conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
14206LIBS=$ac_check_lib_save_LIBS
14207fi
14208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14209$as_echo "$ac_cv_lib_sendfile_main" >&6; }
14210if test "x$ac_cv_lib_sendfile_main" = x""yes; then :
14211 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14212fi
14213
14214fi
14215
f2ee78b8
ILT
14216 LIBS=$libgo_old_libs
14217
14218fi
14219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14220$as_echo "$libgo_cv_lib_sockets" >&6; }
14221NET_LIBS="$libgo_cv_lib_sockets"
14222
14223
6c94a9fa
ILT
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14225$as_echo_n "checking whether -pthread is supported... " >&6; }
f2ee78b8 14226if test "${libgo_cv_lib_pthread+set}" = set; then :
6c94a9fa
ILT
14227 $as_echo_n "(cached) " >&6
14228else
14229 CFLAGS_hold=$CFLAGS
35e7db41 14230CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
6c94a9fa
ILT
14231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232/* end confdefs.h. */
14233int i;
14234_ACEOF
14235if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14236 libgo_cv_lib_pthread=yes
6c94a9fa 14237else
f2ee78b8 14238 libgo_cv_lib_pthread=no
6c94a9fa
ILT
14239fi
14240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14241CFLAGS=$CFLAGS_hold
14242fi
f2ee78b8
ILT
14243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14244$as_echo "$libgo_cv_lib_pthread" >&6; }
6c94a9fa 14245PTHREAD_CFLAGS=
f2ee78b8 14246if test "$libgo_cv_lib_pthread" = yes; then
35e7db41
ILT
14247 # RISC-V apparently adds -latomic when using -pthread.
14248 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
6c94a9fa
ILT
14249fi
14250
14251
14252PTHREAD_LIBS=
14253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14254$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14255if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14256 $as_echo_n "(cached) " >&6
14257else
14258 ac_check_lib_save_LIBS=$LIBS
14259LIBS="-lpthread $LIBS"
14260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261/* end confdefs.h. */
14262
14263/* Override any GCC internal prototype to avoid an error.
14264 Use char because int might match the return type of a GCC
14265 builtin and then its argument prototype would still apply. */
14266#ifdef __cplusplus
14267extern "C"
14268#endif
14269char pthread_create ();
14270int
14271main ()
14272{
14273return pthread_create ();
14274 ;
14275 return 0;
14276}
14277_ACEOF
14278if ac_fn_c_try_link "$LINENO"; then :
14279 ac_cv_lib_pthread_pthread_create=yes
14280else
14281 ac_cv_lib_pthread_pthread_create=no
14282fi
14283rm -f core conftest.err conftest.$ac_objext \
14284 conftest$ac_exeext conftest.$ac_ext
14285LIBS=$ac_check_lib_save_LIBS
14286fi
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14288$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14289if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14290 PTHREAD_LIBS=-lpthread
14291fi
14292
14293
14294
ed4ebabc
ILT
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14296$as_echo_n "checking for library containing sched_yield... " >&6; }
14297if test "${ac_cv_search_sched_yield+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14299else
14300 ac_func_search_save_LIBS=$LIBS
14301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302/* end confdefs.h. */
14303
14304/* Override any GCC internal prototype to avoid an error.
14305 Use char because int might match the return type of a GCC
14306 builtin and then its argument prototype would still apply. */
14307#ifdef __cplusplus
14308extern "C"
14309#endif
14310char sched_yield ();
14311int
14312main ()
14313{
14314return sched_yield ();
14315 ;
14316 return 0;
14317}
14318_ACEOF
14319for ac_lib in '' rt; do
14320 if test -z "$ac_lib"; then
14321 ac_res="none required"
14322 else
14323 ac_res=-l$ac_lib
14324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14325 fi
14326 if ac_fn_c_try_link "$LINENO"; then :
14327 ac_cv_search_sched_yield=$ac_res
14328fi
14329rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext
14331 if test "${ac_cv_search_sched_yield+set}" = set; then :
14332 break
14333fi
14334done
14335if test "${ac_cv_search_sched_yield+set}" = set; then :
14336
14337else
14338 ac_cv_search_sched_yield=no
14339fi
14340rm conftest.$ac_ext
14341LIBS=$ac_func_search_save_LIBS
14342fi
14343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14344$as_echo "$ac_cv_search_sched_yield" >&6; }
14345ac_res=$ac_cv_search_sched_yield
14346if test "$ac_res" != no; then :
14347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14348
ae135907
ILT
14349fi
14350
14351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14352$as_echo_n "checking for library containing nanosleep... " >&6; }
14353if test "${ac_cv_search_nanosleep+set}" = set; then :
14354 $as_echo_n "(cached) " >&6
14355else
14356 ac_func_search_save_LIBS=$LIBS
14357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358/* end confdefs.h. */
14359
14360/* Override any GCC internal prototype to avoid an error.
14361 Use char because int might match the return type of a GCC
14362 builtin and then its argument prototype would still apply. */
14363#ifdef __cplusplus
14364extern "C"
14365#endif
14366char nanosleep ();
14367int
14368main ()
14369{
14370return nanosleep ();
14371 ;
14372 return 0;
14373}
14374_ACEOF
14375for ac_lib in '' rt; do
14376 if test -z "$ac_lib"; then
14377 ac_res="none required"
14378 else
14379 ac_res=-l$ac_lib
14380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14381 fi
14382 if ac_fn_c_try_link "$LINENO"; then :
14383 ac_cv_search_nanosleep=$ac_res
14384fi
14385rm -f core conftest.err conftest.$ac_objext \
14386 conftest$ac_exeext
14387 if test "${ac_cv_search_nanosleep+set}" = set; then :
14388 break
14389fi
14390done
14391if test "${ac_cv_search_nanosleep+set}" = set; then :
14392
14393else
14394 ac_cv_search_nanosleep=no
14395fi
14396rm conftest.$ac_ext
14397LIBS=$ac_func_search_save_LIBS
14398fi
14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14400$as_echo "$ac_cv_search_nanosleep" >&6; }
14401ac_res=$ac_cv_search_nanosleep
14402if test "$ac_res" != no; then :
14403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14404
bbbe8b33
ILT
14405fi
14406
14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14408$as_echo_n "checking for library containing clock_gettime... " >&6; }
14409if test "${ac_cv_search_clock_gettime+set}" = set; then :
14410 $as_echo_n "(cached) " >&6
14411else
14412 ac_func_search_save_LIBS=$LIBS
14413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414/* end confdefs.h. */
14415
14416/* Override any GCC internal prototype to avoid an error.
14417 Use char because int might match the return type of a GCC
14418 builtin and then its argument prototype would still apply. */
14419#ifdef __cplusplus
14420extern "C"
14421#endif
14422char clock_gettime ();
14423int
14424main ()
14425{
14426return clock_gettime ();
14427 ;
14428 return 0;
14429}
14430_ACEOF
14431for ac_lib in '' rt; do
14432 if test -z "$ac_lib"; then
14433 ac_res="none required"
14434 else
14435 ac_res=-l$ac_lib
14436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14437 fi
14438 if ac_fn_c_try_link "$LINENO"; then :
14439 ac_cv_search_clock_gettime=$ac_res
14440fi
14441rm -f core conftest.err conftest.$ac_objext \
14442 conftest$ac_exeext
14443 if test "${ac_cv_search_clock_gettime+set}" = set; then :
14444 break
14445fi
14446done
14447if test "${ac_cv_search_clock_gettime+set}" = set; then :
14448
14449else
14450 ac_cv_search_clock_gettime=no
14451fi
14452rm conftest.$ac_ext
14453LIBS=$ac_func_search_save_LIBS
14454fi
14455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14456$as_echo "$ac_cv_search_clock_gettime" >&6; }
14457ac_res=$ac_cv_search_clock_gettime
14458if test "$ac_res" != no; then :
14459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14460
ed4ebabc
ILT
14461fi
14462
14463
7a938933
ILT
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14465$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14466if test "${ac_cv_c_bigendian+set}" = set; then :
14467 $as_echo_n "(cached) " >&6
14468else
14469 ac_cv_c_bigendian=unknown
14470 # See if we're dealing with a universal compiler.
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472/* end confdefs.h. */
14473#ifndef __APPLE_CC__
14474 not a universal capable compiler
14475 #endif
14476 typedef int dummy;
14477
14478_ACEOF
14479if ac_fn_c_try_compile "$LINENO"; then :
14480
14481 # Check for potential -arch flags. It is not universal unless
14482 # there are at least two -arch flags with different values.
14483 ac_arch=
14484 ac_prev=
14485 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14486 if test -n "$ac_prev"; then
14487 case $ac_word in
14488 i?86 | x86_64 | ppc | ppc64)
14489 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14490 ac_arch=$ac_word
14491 else
14492 ac_cv_c_bigendian=universal
14493 break
14494 fi
14495 ;;
14496 esac
14497 ac_prev=
14498 elif test "x$ac_word" = "x-arch"; then
14499 ac_prev=arch
14500 fi
14501 done
14502fi
14503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504 if test $ac_cv_c_bigendian = unknown; then
14505 # See if sys/param.h defines the BYTE_ORDER macro.
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507/* end confdefs.h. */
14508#include <sys/types.h>
14509 #include <sys/param.h>
14510
14511int
14512main ()
14513{
14514#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14515 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14516 && LITTLE_ENDIAN)
14517 bogus endian macros
14518 #endif
14519
14520 ;
14521 return 0;
14522}
14523_ACEOF
14524if ac_fn_c_try_compile "$LINENO"; then :
14525 # It does; now see whether it defined to BIG_ENDIAN or not.
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527/* end confdefs.h. */
14528#include <sys/types.h>
14529 #include <sys/param.h>
14530
14531int
14532main ()
14533{
14534#if BYTE_ORDER != BIG_ENDIAN
14535 not big endian
14536 #endif
14537
14538 ;
14539 return 0;
14540}
14541_ACEOF
14542if ac_fn_c_try_compile "$LINENO"; then :
14543 ac_cv_c_bigendian=yes
14544else
14545 ac_cv_c_bigendian=no
14546fi
14547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14548fi
14549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 fi
14551 if test $ac_cv_c_bigendian = unknown; then
14552 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554/* end confdefs.h. */
14555#include <limits.h>
14556
14557int
14558main ()
14559{
14560#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14561 bogus endian macros
14562 #endif
14563
14564 ;
14565 return 0;
14566}
14567_ACEOF
14568if ac_fn_c_try_compile "$LINENO"; then :
14569 # It does; now see whether it defined to _BIG_ENDIAN or not.
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571/* end confdefs.h. */
14572#include <limits.h>
14573
14574int
14575main ()
14576{
14577#ifndef _BIG_ENDIAN
14578 not big endian
14579 #endif
14580
14581 ;
14582 return 0;
14583}
14584_ACEOF
14585if ac_fn_c_try_compile "$LINENO"; then :
14586 ac_cv_c_bigendian=yes
14587else
14588 ac_cv_c_bigendian=no
14589fi
14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591fi
14592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593 fi
14594 if test $ac_cv_c_bigendian = unknown; then
14595 # Compile a test program.
14596 if test "$cross_compiling" = yes; then :
14597 # Try to guess by grepping values from an object file.
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599/* end confdefs.h. */
14600short int ascii_mm[] =
14601 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14602 short int ascii_ii[] =
14603 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14604 int use_ascii (int i) {
14605 return ascii_mm[i] + ascii_ii[i];
14606 }
14607 short int ebcdic_ii[] =
14608 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14609 short int ebcdic_mm[] =
14610 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14611 int use_ebcdic (int i) {
14612 return ebcdic_mm[i] + ebcdic_ii[i];
14613 }
14614 extern int foo;
14615
14616int
14617main ()
14618{
14619return use_ascii (foo) == use_ebcdic (foo);
14620 ;
14621 return 0;
14622}
14623_ACEOF
14624if ac_fn_c_try_compile "$LINENO"; then :
14625 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14626 ac_cv_c_bigendian=yes
14627 fi
14628 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14629 if test "$ac_cv_c_bigendian" = unknown; then
14630 ac_cv_c_bigendian=no
14631 else
14632 # finding both strings is unlikely to happen, but who knows?
14633 ac_cv_c_bigendian=unknown
14634 fi
14635 fi
14636fi
14637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638else
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640/* end confdefs.h. */
14641$ac_includes_default
14642int
14643main ()
14644{
14645
14646 /* Are we little or big endian? From Harbison&Steele. */
14647 union
14648 {
14649 long int l;
14650 char c[sizeof (long int)];
14651 } u;
14652 u.l = 1;
14653 return u.c[sizeof (long int) - 1] == 1;
14654
14655 ;
14656 return 0;
14657}
14658_ACEOF
14659if ac_fn_c_try_run "$LINENO"; then :
14660 ac_cv_c_bigendian=no
14661else
14662 ac_cv_c_bigendian=yes
14663fi
14664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14665 conftest.$ac_objext conftest.beam conftest.$ac_ext
14666fi
14667
14668 fi
14669fi
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14671$as_echo "$ac_cv_c_bigendian" >&6; }
14672 case $ac_cv_c_bigendian in #(
14673 yes)
14674 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14675;; #(
14676 no)
14677 ;; #(
14678 universal)
14679
14680$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14681
14682 ;; #(
14683 *)
14684 as_fn_error "unknown endianness
14685 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14686 esac
14687
14688
54f0deb0
ILT
14689
14690
14691# Check whether --with-system-libunwind was given.
14692if test "${with_system_libunwind+set}" = set; then :
14693 withval=$with_system_libunwind;
14694fi
14695
14696 # If system-libunwind was not specifically set, pick a default setting.
14697 if test x$with_system_libunwind = x; then
14698 case ${target} in
14699 ia64-*-hpux*) with_system_libunwind=yes ;;
14700 *) with_system_libunwind=no ;;
14701 esac
14702 fi
14703 # Based on system-libunwind and target, do we have ipinfo?
14704 if test x$with_system_libunwind = xyes; then
14705 case ${target} in
14706 ia64-*-*) have_unwind_getipinfo=no ;;
14707 *) have_unwind_getipinfo=yes ;;
14708 esac
14709 else
14710 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14711
14712 case ${target} in
14713 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14714 *) have_unwind_getipinfo=yes ;;
14715 esac
14716
14717 fi
14718
14719 if test x$have_unwind_getipinfo = xyes; then
14720
14721$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14722
14723 fi
14724
7a938933 14725
6222bddc 14726for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
7a938933
ILT
14727do :
14728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14729ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14730eval as_val=\$$as_ac_Header
14731 if test "x$as_val" = x""yes; then :
14732 cat >>confdefs.h <<_ACEOF
14733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14734_ACEOF
14735
14736fi
14737
14738done
14739
adb0401d 14740
6222bddc
ILT
14741for ac_header in netinet/icmp6.h
14742do :
14743 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
14744
14745"
14746if test "x$ac_cv_header_netinet_icmp6_h" = x""yes; then :
14747 cat >>confdefs.h <<_ACEOF
14748#define HAVE_NETINET_ICMP6_H 1
14749_ACEOF
14750
14751fi
14752
14753done
14754
14755
1410c222 14756for 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
14757do :
14758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14759ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14760#include <sys/socket.h>
14761#endif
14762
14763"
14764eval as_val=\$$as_ac_Header
14765 if test "x$as_val" = x""yes; then :
14766 cat >>confdefs.h <<_ACEOF
14767#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14768_ACEOF
14769
14770fi
14771
14772done
14773
14774
7a938933
ILT
14775 if test "$ac_cv_header_sys_mman_h" = yes; then
14776 HAVE_SYS_MMAN_H_TRUE=
14777 HAVE_SYS_MMAN_H_FALSE='#'
14778else
14779 HAVE_SYS_MMAN_H_TRUE='#'
14780 HAVE_SYS_MMAN_H_FALSE=
14781fi
14782
8955c80a 14783
f8d9fa9e 14784for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr
7a938933
ILT
14785do :
14786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14787ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14788eval as_val=\$$as_ac_var
14789 if test "x$as_val" = x""yes; then :
14790 cat >>confdefs.h <<_ACEOF
14791#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14792_ACEOF
14793
14794fi
14795done
14796
8955c80a
ILT
14797 if test "$ac_cv_func_strerror_r" = yes; then
14798 HAVE_STRERROR_R_TRUE=
14799 HAVE_STRERROR_R_FALSE='#'
14800else
14801 HAVE_STRERROR_R_TRUE='#'
14802 HAVE_STRERROR_R_FALSE=
14803fi
14804
0b3189e7
ILT
14805 if test "$ac_cv_func_wait4" = yes; then
14806 HAVE_WAIT4_TRUE=
14807 HAVE_WAIT4_FALSE='#'
14808else
14809 HAVE_WAIT4_TRUE='#'
14810 HAVE_WAIT4_FALSE=
14811fi
14812
7a938933 14813
f163907e 14814for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice syscall tee unlinkat unshare utimensat
e02ed81e
ILT
14815do :
14816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14817ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14818eval as_val=\$$as_ac_var
14819 if test "x$as_val" = x""yes; then :
14820 cat >>confdefs.h <<_ACEOF
14821#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14822_ACEOF
14823
14824fi
14825done
14826
5d46bf05
ILT
14827ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14828if test "x$ac_cv_type_off_t" = x""yes; then :
14829
14830else
14831
14832cat >>confdefs.h <<_ACEOF
14833#define off_t long int
14834_ACEOF
14835
14836fi
14837
e02ed81e
ILT
14838ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14839if test "x$ac_cv_type_loff_t" = x""yes; then :
14840
14841cat >>confdefs.h <<_ACEOF
14842#define HAVE_LOFF_T 1
14843_ACEOF
14844
14845
14846fi
14847
14848
324612b3
ILT
14849LIBS_hold="$LIBS"
14850LIBS="$LIBS -lm"
14851for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14852do :
14853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14854ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14855eval as_val=\$$as_ac_var
14856 if test "x$as_val" = x""yes; then :
14857 cat >>confdefs.h <<_ACEOF
14858#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14859_ACEOF
14860
14861fi
14862done
14863
14864LIBS="$LIBS_hold"
14865
08ee945e
ILT
14866CFLAGS_hold="$CFLAGS"
14867CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14868LIBS_hold="$LIBS"
14869LIBS="$LIBS $PTHREAD_LIBS"
14870for ac_func in sem_timedwait
14871do :
14872 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14873if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14874 cat >>confdefs.h <<_ACEOF
14875#define HAVE_SEM_TIMEDWAIT 1
14876_ACEOF
14877
14878fi
14879done
14880
14881CFLAGS="$CFLAGS_hold"
14882LIBS="$LIBS_hold"
14883
d2b480bc
ILT
14884LIBS_hold="$LIBS"
14885LIBS="$LIBS $MATH_LIBS"
14886for ac_func in matherr
14887do :
14888 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14889if test "x$ac_cv_func_matherr" = x""yes; then :
14890 cat >>confdefs.h <<_ACEOF
14891#define HAVE_MATHERR 1
14892_ACEOF
14893
14894fi
14895done
14896
14897LIBS="$LIBS_hold"
14898
a7c48c8e
ILT
14899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14900$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14901if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14902 $as_echo_n "(cached) " >&6
14903else
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905/* end confdefs.h. */
14906
14907typedef unsigned int uint32 __attribute__ ((mode (SI)));
14908uint32 i;
14909int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14910
14911_ACEOF
14912if ac_fn_c_try_link "$LINENO"; then :
14913 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14914else
14915 libgo_cv_func___sync_bool_compare_and_swap_4=no
14916fi
14917rm -f core conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
14919fi
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14921$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14922if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
932e3237
ILT
14923
14924$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
a7c48c8e
ILT
14925
14926fi
14927
12e3c396
ILT
14928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14929$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14930if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14931 $as_echo_n "(cached) " >&6
14932else
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934/* end confdefs.h. */
14935
14936typedef unsigned int uint64 __attribute__ ((mode (DI)));
14937uint64 i;
14938int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14939
14940_ACEOF
14941if ac_fn_c_try_link "$LINENO"; then :
14942 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14943else
14944 libgo_cv_func___sync_bool_compare_and_swap_8=no
14945fi
14946rm -f core conftest.err conftest.$ac_objext \
14947 conftest$ac_exeext conftest.$ac_ext
14948fi
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14950$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14951if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14952
14953$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14954
14955fi
14956
084996f1
ILT
14957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14958$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14959if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14960 $as_echo_n "(cached) " >&6
14961else
14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14963/* end confdefs.h. */
14964
14965typedef unsigned int uint32 __attribute__ ((mode (SI)));
14966uint32 i;
14967int main() { return __sync_fetch_and_add (&i, 1); }
14968
14969_ACEOF
14970if ac_fn_c_try_link "$LINENO"; then :
14971 libgo_cv_func___sync_fetch_and_add_4=yes
14972else
14973 libgo_cv_func___sync_fetch_and_add_4=no
14974fi
14975rm -f core conftest.err conftest.$ac_objext \
14976 conftest$ac_exeext conftest.$ac_ext
14977fi
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14979$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14980if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14981
14982$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14983
14984fi
14985
12e3c396
ILT
14986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14987$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14988if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14989 $as_echo_n "(cached) " >&6
14990else
14991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14992/* end confdefs.h. */
14993
14994typedef unsigned int uint64 __attribute__ ((mode (DI)));
14995uint64 i;
14996int main() { return __sync_add_and_fetch (&i, 1); }
14997
14998_ACEOF
14999if ac_fn_c_try_link "$LINENO"; then :
15000 libgo_cv_func___sync_add_and_fetch_8=yes
15001else
15002 libgo_cv_func___sync_add_and_fetch_8=no
15003fi
15004rm -f core conftest.err conftest.$ac_objext \
15005 conftest$ac_exeext conftest.$ac_ext
15006fi
15007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15008$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15009if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15010
15011$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15012
15013fi
15014
7a938933
ILT
15015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15016$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
f2ee78b8 15017if test "${libgo_cv_c_stringops+set}" = set; then :
7a938933
ILT
15018 $as_echo_n "(cached) " >&6
15019else
15020 CFLAGS_hold=$CFLAGS
15021CFLAGS="$CFLAGS -minline-all-stringops"
15022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023/* end confdefs.h. */
15024int i;
15025_ACEOF
15026if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 15027 libgo_cv_c_stringops=yes
7a938933 15028else
f2ee78b8 15029 libgo_cv_c_stringops=no
7a938933
ILT
15030fi
15031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032CFLAGS=$CFLAGS_hold
15033fi
f2ee78b8
ILT
15034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15035$as_echo "$libgo_cv_c_stringops" >&6; }
7a938933 15036STRINGOPS_FLAG=
f2ee78b8 15037if test "$libgo_cv_c_stringops" = yes; then
7a938933
ILT
15038 STRINGOPS_FLAG=-minline-all-stringops
15039fi
15040
15041
9d465faf
ILT
15042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15043$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15044if test "${libgo_cv_c_fancymath+set}" = set; then :
15045 $as_echo_n "(cached) " >&6
15046else
15047 CFLAGS_hold=$CFLAGS
15048CFLAGS="$CFLAGS -mfancy-math-387"
15049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050/* end confdefs.h. */
15051int i;
15052_ACEOF
15053if ac_fn_c_try_compile "$LINENO"; then :
15054 libgo_cv_c_fancymath=yes
15055else
15056 libgo_cv_c_fancymath=no
15057fi
15058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059CFLAGS=$CFLAGS_hold
15060fi
15061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15062$as_echo "$libgo_cv_c_fancymath" >&6; }
15063MATH_FLAG=
15064if test "$libgo_cv_c_fancymath" = yes; then
28f3c814 15065 MATH_FLAG="-mfancy-math-387"
9d465faf 15066fi
28f3c814 15067MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
9d465faf
ILT
15068
15069
7a938933
ILT
15070CFLAGS_hold=$CFLAGS
15071CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15072ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15073if test "x$ac_cv_type_off64_t" = x""yes; then :
15074
15075cat >>confdefs.h <<_ACEOF
15076#define HAVE_OFF64_T 1
15077_ACEOF
15078
15079
15080fi
15081
15082CFLAGS=$CFLAGS_hold
15083
207c35fa
ILT
15084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15085$as_echo_n "checking epoll_event size... " >&6; }
15086if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15087 $as_echo_n "(cached) " >&6
15088else
15089 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15090
15091else
15092 libgo_cv_c_epoll_event_size=0
15093fi
15094
15095fi
15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15097$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15098SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15099
15100
15101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15102$as_echo_n "checking epoll_event data.fd offset... " >&6; }
15103if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15104 $as_echo_n "(cached) " >&6
15105else
15106 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15107#include <sys/epoll.h>"; then :
15108
15109else
15110 libgo_cv_c_epoll_event_fd_offset=0
15111fi
15112
15113fi
15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15115$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15116STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15117
15118
476013d6
ILT
15119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120/* end confdefs.h. */
15121#include <sys/stat.h>
15122
15123_ACEOF
15124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15125 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15126 have_stat_timespec=yes
15127else
15128 have_stat_timespec=no
15129fi
15130rm -f conftest*
15131
15132 if test $have_stat_timespec = yes; then
15133 HAVE_STAT_TIMESPEC_TRUE=
15134 HAVE_STAT_TIMESPEC_FALSE='#'
15135else
15136 HAVE_STAT_TIMESPEC_TRUE='#'
15137 HAVE_STAT_TIMESPEC_FALSE=
15138fi
15139
15140
d2b480bc
ILT
15141ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15142"
15143if test "x$ac_cv_type_struct_exception" = x""yes; then :
15144 libgo_has_struct_exception=yes
15145else
15146 libgo_has_struct_exception=no
15147fi
15148
15149if test "$libgo_has_struct_exception" = "yes"; then
15150
15151$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15152
15153fi
15154
7f57843f
ILT
15155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15156$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15157if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15158 $as_echo_n "(cached) " >&6
15159else
e6c5817d
ILT
15160 CFLAGS_hold="$CFLAGS"
15161CFLAGS="$PTHREAD_CFLAGS"
15162LIBS_hold="$LIBS"
7f57843f 15163LIBS="$LIBS $PTHREAD_LIBS"
e6c5817d
ILT
15164# The cast to long int works around a bug in the HP C Compiler
15165# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15166# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15167# This bug is HP SR number 8606223364.
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15169$as_echo_n "checking size of void *... " >&6; }
15170if test "${ac_cv_sizeof_void_p+set}" = set; then :
15171 $as_echo_n "(cached) " >&6
15172else
15173 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15174
15175else
15176 if test "$ac_cv_type_void_p" = yes; then
15177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15179{ as_fn_set_status 77
15180as_fn_error "cannot compute sizeof (void *)
15181See \`config.log' for more details." "$LINENO" 5; }; }
15182 else
15183 ac_cv_sizeof_void_p=0
15184 fi
15185fi
15186
15187fi
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15189$as_echo "$ac_cv_sizeof_void_p" >&6; }
15190
15191
15192
15193cat >>confdefs.h <<_ACEOF
15194#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15195_ACEOF
15196
15197
15198as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
7f57843f 15199if test "$cross_compiling" = yes; then :
e6c5817d
ILT
15200 case "$target:$ptr_type_size" in
15201 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15202 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15203 *)
15204 libgo_cv_lib_setcontext_clobbers_tls=no ;;
7f57843f
ILT
15205 esac
15206
15207else
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209/* end confdefs.h. */
15210
15211#include <pthread.h>
15212#include <stdlib.h>
15213#include <ucontext.h>
15214#include <unistd.h>
15215
15216__thread int tls;
15217
15218static char stack[10 * 1024 * 1024];
15219static ucontext_t c;
15220
15221/* Called via makecontext/setcontext. */
15222
15223static void
15224cfn (void)
15225{
15226 exit (tls);
15227}
15228
15229/* Called via pthread_create. */
15230
15231static void *
15232tfn (void *dummy)
15233{
15234 /* The thread should still see this value after calling
15235 setcontext. */
15236 tls = 0;
15237
15238 setcontext (&c);
15239
15240 /* The call to setcontext should not return. */
15241 abort ();
15242}
15243
15244int
15245main ()
15246{
15247 pthread_t tid;
15248
15249 /* The thread should not see this value. */
15250 tls = 1;
15251
15252 if (getcontext (&c) < 0)
15253 abort ();
15254
15255 c.uc_stack.ss_sp = stack;
ca59d219
ILT
15256#ifdef MAKECONTEXT_STACK_TOP
15257 c.uc_stack.ss_sp += sizeof stack;
15258#endif
7f57843f
ILT
15259 c.uc_stack.ss_flags = 0;
15260 c.uc_stack.ss_size = sizeof stack;
15261 c.uc_link = NULL;
15262 makecontext (&c, cfn, 0);
15263
15264 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15265 abort ();
15266
15267 if (pthread_join (tid, NULL) != 0)
15268 abort ();
15269
15270 /* The thread should have called exit. */
15271 abort ();
15272}
15273
15274_ACEOF
15275if ac_fn_c_try_run "$LINENO"; then :
15276 libgo_cv_lib_setcontext_clobbers_tls=no
15277else
15278 libgo_cv_lib_setcontext_clobbers_tls=yes
15279fi
15280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15281 conftest.$ac_objext conftest.beam conftest.$ac_ext
15282fi
15283
e6c5817d 15284CFLAGS="$CFLAGS_hold"
7f57843f
ILT
15285LIBS="$LIBS_hold"
15286
15287fi
15288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15289$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15290if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15291
15292$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15293
15294fi
15295
cc1a9ac8
ILT
15296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15297$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15298if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15299 $as_echo_n "(cached) " >&6
15300else
15301
15302libgo_cv_ro_eh_frame=no
15303echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15304if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15305 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15306 libgo_cv_ro_eh_frame=yes
15307 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15308 | grep -v '#write' > /dev/null; then
15309 libgo_cv_ro_eh_frame=yes
15310 fi
15311fi
15312rm -f conftest.*
15313
15314fi
15315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15316$as_echo "$libgo_cv_ro_eh_frame" >&6; }
15317if test "x$libgo_cv_ro_eh_frame" = xyes; then
15318
15319$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15320
15321else
15322
15323$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15324
15325fi
15326
a819231d
ILT
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15328$as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15329if test "${libgo_cv_c_unused_arguments+set}" = set; then :
15330 $as_echo_n "(cached) " >&6
15331else
15332 CFLAGS_hold=$CFLAGS
15333CFLAGS="$CFLAGS -Qunused-arguments"
15334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335/* end confdefs.h. */
15336int i;
15337_ACEOF
15338if ac_fn_c_try_compile "$LINENO"; then :
15339 libgo_cv_c_unused_arguments=yes
15340else
15341 libgo_cv_c_unused_arguments=no
15342fi
15343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15344CFLAGS=$CFLAGS_hold
15345fi
15346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15347$as_echo "$libgo_cv_c_unused_arguments" >&6; }
15348
cc1a9ac8
ILT
15349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15350$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15351if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15352 $as_echo_n "(cached) " >&6
15353else
15354
15355echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
a819231d
ILT
15356CFLAGS_hold=$CFLAGS
15357if test "$libgo_cv_c_unused_arguments" = yes; then
15358 CFLAGS="$CFLAGS -Qunused-arguments"
15359fi
cc1a9ac8
ILT
15360if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15361 libgo_cv_as_comdat_gnu=yes
15362else
15363 libgo_cv_as_comdat_gnu=no
15364fi
a819231d 15365CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15366
15367fi
15368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15369$as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15370if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15371
15372$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15373
15374fi
15375
15376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15377$as_echo_n "checking assembler supports pc related relocs... " >&6; }
15378if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15379 $as_echo_n "(cached) " >&6
15380else
15381
15382libgo_cv_as_x86_pcrel=yes
15383echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
a819231d
ILT
15384CFLAGS_hold=$CFLAGS
15385if test "$libgo_cv_c_unused_arguments" = yes; then
15386 CFLAGS="$CFLAGS -Qunused-arguments"
15387fi
cc1a9ac8
ILT
15388if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15389 libgo_cv_as_x86_pcrel=no
15390fi
a819231d 15391CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15392
15393fi
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15395$as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15396if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15397
15398$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15399
15400fi
15401
15402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15403$as_echo_n "checking assembler supports unwind section type... " >&6; }
15404if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15405 $as_echo_n "(cached) " >&6
15406else
15407
15408libgo_cv_as_x86_64_unwind_section_type=yes
15409echo '.section .eh_frame,"a",@unwind' > conftest.s
a819231d
ILT
15410CFLAGS_hold=$CFLAGS
15411if test "$libgo_cv_c_unused_arguments" = yes; then
15412 CFLAGS="$CFLAGS -Qunused-arguments"
15413fi
cc1a9ac8
ILT
15414if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15415 libgo_cv_as_x86_64_unwind_section_type=no
15416fi
a819231d 15417CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15418
15419fi
15420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15421$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15422if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15423
15424$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15425
15426fi
15427
b379f8d8
ILT
15428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15429$as_echo_n "checking assembler supports AES instructions... " >&6; }
15430if test "${libgo_cv_as_x86_aes+set}" = set; then :
15431 $as_echo_n "(cached) " >&6
15432else
15433
15434libgo_cv_as_x86_aes=yes
15435echo 'aesenc %xmm0, %xmm1' > conftest.s
15436CFLAGS_hold=$CFLAGS
15437if test "$libgo_cv_c_unused_arguments" = yes; then
15438 CFLAGS="$CFLAGS -Qunused-arguments"
15439fi
15440if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15441 libgo_cv_as_x86_aes=no
15442fi
15443CFLAGS=$CFLAGS_hold
15444
15445fi
15446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15447$as_echo "$libgo_cv_as_x86_aes" >&6; }
15448if test "x$libgo_cv_as_x86_aes" = xyes; then
15449
15450$as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15451
15452fi
15453
7a938933
ILT
15454cat >confcache <<\_ACEOF
15455# This file is a shell script that caches the results of configure
15456# tests run on this system so they can be shared between configure
15457# scripts and configure runs, see configure's option --config-cache.
15458# It is not useful on other systems. If it contains results you don't
15459# want to keep, you may remove or edit it.
15460#
15461# config.status only pays attention to the cache file if you give it
15462# the --recheck option to rerun configure.
15463#
15464# `ac_cv_env_foo' variables (set or unset) will be overridden when
15465# loading this file, other *unset* `ac_cv_foo' will be assigned the
15466# following values.
15467
15468_ACEOF
15469
15470# The following way of writing the cache mishandles newlines in values,
15471# but we know of no workaround that is simple, portable, and efficient.
15472# So, we kill variables containing newlines.
15473# Ultrix sh set writes to stderr and can't be redirected directly,
15474# and sets the high bit in the cache file unless we assign to the vars.
15475(
15476 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15477 eval ac_val=\$$ac_var
15478 case $ac_val in #(
15479 *${as_nl}*)
15480 case $ac_var in #(
15481 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15482$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15483 esac
15484 case $ac_var in #(
15485 _ | IFS | as_nl) ;; #(
15486 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15487 *) { eval $ac_var=; unset $ac_var;} ;;
15488 esac ;;
15489 esac
15490 done
15491
15492 (set) 2>&1 |
15493 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15494 *${as_nl}ac_space=\ *)
15495 # `set' does not quote correctly, so add quotes: double-quote
15496 # substitution turns \\\\ into \\, and sed turns \\ into \.
15497 sed -n \
15498 "s/'/'\\\\''/g;
15499 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15500 ;; #(
15501 *)
15502 # `set' quotes correctly as required by POSIX, so do not add quotes.
15503 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15504 ;;
15505 esac |
15506 sort
15507) |
15508 sed '
15509 /^ac_cv_env_/b end
15510 t clear
15511 :clear
15512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15513 t end
15514 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15515 :end' >>confcache
15516if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15517 if test -w "$cache_file"; then
15518 test "x$cache_file" != "x/dev/null" &&
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15520$as_echo "$as_me: updating cache $cache_file" >&6;}
15521 cat confcache >$cache_file
15522 else
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15524$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15525 fi
15526fi
15527rm -f confcache
15528
15529if test ${multilib} = yes; then
15530 multilib_arg="--enable-multilib"
15531else
15532 multilib_arg=
15533fi
15534
15535ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15536
15537
15538ac_config_commands="$ac_config_commands default"
15539
15540
15541cat >confcache <<\_ACEOF
15542# This file is a shell script that caches the results of configure
15543# tests run on this system so they can be shared between configure
15544# scripts and configure runs, see configure's option --config-cache.
15545# It is not useful on other systems. If it contains results you don't
15546# want to keep, you may remove or edit it.
15547#
15548# config.status only pays attention to the cache file if you give it
15549# the --recheck option to rerun configure.
15550#
15551# `ac_cv_env_foo' variables (set or unset) will be overridden when
15552# loading this file, other *unset* `ac_cv_foo' will be assigned the
15553# following values.
15554
15555_ACEOF
15556
15557# The following way of writing the cache mishandles newlines in values,
15558# but we know of no workaround that is simple, portable, and efficient.
15559# So, we kill variables containing newlines.
15560# Ultrix sh set writes to stderr and can't be redirected directly,
15561# and sets the high bit in the cache file unless we assign to the vars.
15562(
15563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15564 eval ac_val=\$$ac_var
15565 case $ac_val in #(
15566 *${as_nl}*)
15567 case $ac_var in #(
15568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15569$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15570 esac
15571 case $ac_var in #(
15572 _ | IFS | as_nl) ;; #(
15573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15574 *) { eval $ac_var=; unset $ac_var;} ;;
15575 esac ;;
15576 esac
15577 done
15578
15579 (set) 2>&1 |
15580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15581 *${as_nl}ac_space=\ *)
15582 # `set' does not quote correctly, so add quotes: double-quote
15583 # substitution turns \\\\ into \\, and sed turns \\ into \.
15584 sed -n \
15585 "s/'/'\\\\''/g;
15586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15587 ;; #(
15588 *)
15589 # `set' quotes correctly as required by POSIX, so do not add quotes.
15590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15591 ;;
15592 esac |
15593 sort
15594) |
15595 sed '
15596 /^ac_cv_env_/b end
15597 t clear
15598 :clear
15599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15600 t end
15601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15602 :end' >>confcache
15603if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15604 if test -w "$cache_file"; then
15605 test "x$cache_file" != "x/dev/null" &&
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15607$as_echo "$as_me: updating cache $cache_file" >&6;}
15608 cat confcache >$cache_file
15609 else
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15611$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15612 fi
15613fi
15614rm -f confcache
15615
15616test "x$prefix" = xNONE && prefix=$ac_default_prefix
15617# Let make expand exec_prefix.
15618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15619
15620DEFS=-DHAVE_CONFIG_H
15621
15622ac_libobjs=
15623ac_ltlibobjs=
15624for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15625 # 1. Remove the extension, and $U if already installed.
15626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15627 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15629 # will be set to the directory where LIBOBJS objects are built.
15630 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15631 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15632done
15633LIBOBJS=$ac_libobjs
15634
15635LTLIBOBJS=$ac_ltlibobjs
15636
15637
15638 if test -n "$EXEEXT"; then
15639 am__EXEEXT_TRUE=
15640 am__EXEEXT_FALSE='#'
15641else
15642 am__EXEEXT_TRUE='#'
15643 am__EXEEXT_FALSE=
15644fi
15645
15646if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15647 as_fn_error "conditional \"AMDEP\" was never defined.
15648Usually this means the macro was only invoked conditionally." "$LINENO" 5
15649fi
15650if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15651 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15652Usually this means the macro was only invoked conditionally." "$LINENO" 5
15653fi
15654if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15655 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15656Usually this means the macro was only invoked conditionally." "$LINENO" 5
15657fi
5302cd02
ILT
15658if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
15659 as_fn_error "conditional \"USE_LIBFFI\" was never defined.
15660Usually this means the macro was only invoked conditionally." "$LINENO" 5
15661fi
7a938933
ILT
15662if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15663 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15664Usually this means the macro was only invoked conditionally." "$LINENO" 5
15665fi
15666if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15667 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15668Usually this means the macro was only invoked conditionally." "$LINENO" 5
654d2ec0
ILT
15669fi
15670if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15671 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15672Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
15673fi
15674if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15675 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15676Usually this means the macro was only invoked conditionally." "$LINENO" 5
15677fi
df4aa89a
ILT
15678if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15679 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15680Usually this means the macro was only invoked conditionally." "$LINENO" 5
15681fi
4ccad563
ILT
15682if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15683 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15684Usually this means the macro was only invoked conditionally." "$LINENO" 5
15685fi
f038dae6
ILT
15686if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15687 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15688Usually this means the macro was only invoked conditionally." "$LINENO" 5
15689fi
7a938933
ILT
15690if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15691 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15692Usually this means the macro was only invoked conditionally." "$LINENO" 5
15693fi
f2ee78b8
ILT
15694if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15695 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
7a938933
ILT
15696Usually this means the macro was only invoked conditionally." "$LINENO" 5
15697fi
f163907e
ILT
15698if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
15699 as_fn_error "conditional \"LIBGO_IS_AIX\" was never defined.
15700Usually this means the macro was only invoked conditionally." "$LINENO" 5
15701fi
22b955cc
ILT
15702if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
15703 as_fn_error "conditional \"LIBGO_IS_BSD\" was never defined.
15704Usually this means the macro was only invoked conditionally." "$LINENO" 5
15705fi
7a938933
ILT
15706if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15707 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15708Usually this means the macro was only invoked conditionally." "$LINENO" 5
4c46b5f0
ILT
15709fi
15710if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
15711 as_fn_error "conditional \"GOC_IS_LLGO\" was never defined.
15712Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
15713fi
15714
15715if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15716 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15717Usually this means the macro was only invoked conditionally." "$LINENO" 5
15718fi
8955c80a
ILT
15719if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15720 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15721Usually this means the macro was only invoked conditionally." "$LINENO" 5
15722fi
0b3189e7
ILT
15723if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15724 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15725Usually this means the macro was only invoked conditionally." "$LINENO" 5
15726fi
476013d6
ILT
15727if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
15728 as_fn_error "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
15729Usually this means the macro was only invoked conditionally." "$LINENO" 5
15730fi
7a938933
ILT
15731
15732: ${CONFIG_STATUS=./config.status}
15733ac_write_fail=0
15734ac_clean_files_save=$ac_clean_files
15735ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15736{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15737$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15738as_write_fail=0
15739cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15740#! $SHELL
15741# Generated by $as_me.
15742# Run this file to recreate the current configuration.
15743# Compiler output produced by configure, useful for debugging
15744# configure, is in config.log if it exists.
15745
15746debug=false
15747ac_cs_recheck=false
15748ac_cs_silent=false
15749
15750SHELL=\${CONFIG_SHELL-$SHELL}
15751export SHELL
15752_ASEOF
15753cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15754## -------------------- ##
15755## M4sh Initialization. ##
15756## -------------------- ##
15757
15758# Be more Bourne compatible
15759DUALCASE=1; export DUALCASE # for MKS sh
15760if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15761 emulate sh
15762 NULLCMD=:
15763 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15764 # is contrary to our usage. Disable this feature.
15765 alias -g '${1+"$@"}'='"$@"'
15766 setopt NO_GLOB_SUBST
15767else
15768 case `(set -o) 2>/dev/null` in #(
15769 *posix*) :
15770 set -o posix ;; #(
15771 *) :
15772 ;;
15773esac
15774fi
15775
15776
15777as_nl='
15778'
15779export as_nl
15780# Printing a long string crashes Solaris 7 /usr/bin/printf.
15781as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15782as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15783as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15784# Prefer a ksh shell builtin over an external printf program on Solaris,
15785# but without wasting forks for bash or zsh.
15786if test -z "$BASH_VERSION$ZSH_VERSION" \
15787 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15788 as_echo='print -r --'
15789 as_echo_n='print -rn --'
15790elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15791 as_echo='printf %s\n'
15792 as_echo_n='printf %s'
15793else
15794 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15795 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15796 as_echo_n='/usr/ucb/echo -n'
15797 else
15798 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15799 as_echo_n_body='eval
15800 arg=$1;
15801 case $arg in #(
15802 *"$as_nl"*)
15803 expr "X$arg" : "X\\(.*\\)$as_nl";
15804 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15805 esac;
15806 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15807 '
15808 export as_echo_n_body
15809 as_echo_n='sh -c $as_echo_n_body as_echo'
15810 fi
15811 export as_echo_body
15812 as_echo='sh -c $as_echo_body as_echo'
15813fi
15814
15815# The user is always right.
15816if test "${PATH_SEPARATOR+set}" != set; then
15817 PATH_SEPARATOR=:
15818 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15819 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15820 PATH_SEPARATOR=';'
15821 }
15822fi
15823
15824
15825# IFS
15826# We need space, tab and new line, in precisely that order. Quoting is
15827# there to prevent editors from complaining about space-tab.
15828# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15829# splitting by setting IFS to empty value.)
15830IFS=" "" $as_nl"
15831
15832# Find who we are. Look in the path if we contain no directory separator.
15833case $0 in #((
15834 *[\\/]* ) as_myself=$0 ;;
15835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836for as_dir in $PATH
15837do
15838 IFS=$as_save_IFS
15839 test -z "$as_dir" && as_dir=.
15840 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15841 done
15842IFS=$as_save_IFS
15843
15844 ;;
15845esac
15846# We did not find ourselves, most probably we were run as `sh COMMAND'
15847# in which case we are not to be found in the path.
15848if test "x$as_myself" = x; then
15849 as_myself=$0
15850fi
15851if test ! -f "$as_myself"; then
15852 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15853 exit 1
15854fi
15855
15856# Unset variables that we do not need and which cause bugs (e.g. in
15857# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15858# suppresses any "Segmentation fault" message there. '((' could
15859# trigger a bug in pdksh 5.2.14.
15860for as_var in BASH_ENV ENV MAIL MAILPATH
15861do eval test x\${$as_var+set} = xset \
15862 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15863done
15864PS1='$ '
15865PS2='> '
15866PS4='+ '
15867
15868# NLS nuisances.
15869LC_ALL=C
15870export LC_ALL
15871LANGUAGE=C
15872export LANGUAGE
15873
15874# CDPATH.
15875(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15876
15877
15878# as_fn_error ERROR [LINENO LOG_FD]
15879# ---------------------------------
15880# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15881# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15882# script with status $?, using 1 if that was 0.
15883as_fn_error ()
15884{
15885 as_status=$?; test $as_status -eq 0 && as_status=1
15886 if test "$3"; then
15887 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15888 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15889 fi
15890 $as_echo "$as_me: error: $1" >&2
15891 as_fn_exit $as_status
15892} # as_fn_error
15893
15894
15895# as_fn_set_status STATUS
15896# -----------------------
15897# Set $? to STATUS, without forking.
15898as_fn_set_status ()
15899{
15900 return $1
15901} # as_fn_set_status
15902
15903# as_fn_exit STATUS
15904# -----------------
15905# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15906as_fn_exit ()
15907{
15908 set +e
15909 as_fn_set_status $1
15910 exit $1
15911} # as_fn_exit
15912
15913# as_fn_unset VAR
15914# ---------------
15915# Portably unset VAR.
15916as_fn_unset ()
15917{
15918 { eval $1=; unset $1;}
15919}
15920as_unset=as_fn_unset
15921# as_fn_append VAR VALUE
15922# ----------------------
15923# Append the text in VALUE to the end of the definition contained in VAR. Take
15924# advantage of any shell optimizations that allow amortized linear growth over
15925# repeated appends, instead of the typical quadratic growth present in naive
15926# implementations.
15927if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15928 eval 'as_fn_append ()
15929 {
15930 eval $1+=\$2
15931 }'
15932else
15933 as_fn_append ()
15934 {
15935 eval $1=\$$1\$2
15936 }
15937fi # as_fn_append
15938
15939# as_fn_arith ARG...
15940# ------------------
15941# Perform arithmetic evaluation on the ARGs, and store the result in the
15942# global $as_val. Take advantage of shells that can avoid forks. The arguments
15943# must be portable across $(()) and expr.
15944if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15945 eval 'as_fn_arith ()
15946 {
15947 as_val=$(( $* ))
15948 }'
15949else
15950 as_fn_arith ()
15951 {
15952 as_val=`expr "$@" || test $? -eq 1`
15953 }
15954fi # as_fn_arith
15955
15956
15957if expr a : '\(a\)' >/dev/null 2>&1 &&
15958 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15959 as_expr=expr
15960else
15961 as_expr=false
15962fi
15963
15964if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15965 as_basename=basename
15966else
15967 as_basename=false
15968fi
15969
15970if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15971 as_dirname=dirname
15972else
15973 as_dirname=false
15974fi
15975
15976as_me=`$as_basename -- "$0" ||
15977$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15978 X"$0" : 'X\(//\)$' \| \
15979 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15980$as_echo X/"$0" |
15981 sed '/^.*\/\([^/][^/]*\)\/*$/{
15982 s//\1/
15983 q
15984 }
15985 /^X\/\(\/\/\)$/{
15986 s//\1/
15987 q
15988 }
15989 /^X\/\(\/\).*/{
15990 s//\1/
15991 q
15992 }
15993 s/.*/./; q'`
15994
15995# Avoid depending upon Character Ranges.
15996as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15997as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15998as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15999as_cr_digits='0123456789'
16000as_cr_alnum=$as_cr_Letters$as_cr_digits
16001
16002ECHO_C= ECHO_N= ECHO_T=
16003case `echo -n x` in #(((((
16004-n*)
16005 case `echo 'xy\c'` in
16006 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16007 xy) ECHO_C='\c';;
16008 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16009 ECHO_T=' ';;
16010 esac;;
16011*)
16012 ECHO_N='-n';;
16013esac
16014
16015rm -f conf$$ conf$$.exe conf$$.file
16016if test -d conf$$.dir; then
16017 rm -f conf$$.dir/conf$$.file
16018else
16019 rm -f conf$$.dir
16020 mkdir conf$$.dir 2>/dev/null
16021fi
16022if (echo >conf$$.file) 2>/dev/null; then
16023 if ln -s conf$$.file conf$$ 2>/dev/null; then
16024 as_ln_s='ln -s'
16025 # ... but there are two gotchas:
16026 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16027 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16028 # In both cases, we have to default to `cp -p'.
16029 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16030 as_ln_s='cp -p'
16031 elif ln conf$$.file conf$$ 2>/dev/null; then
16032 as_ln_s=ln
16033 else
16034 as_ln_s='cp -p'
16035 fi
16036else
16037 as_ln_s='cp -p'
16038fi
16039rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16040rmdir conf$$.dir 2>/dev/null
16041
16042
16043# as_fn_mkdir_p
16044# -------------
16045# Create "$as_dir" as a directory, including parents if necessary.
16046as_fn_mkdir_p ()
16047{
16048
16049 case $as_dir in #(
16050 -*) as_dir=./$as_dir;;
16051 esac
16052 test -d "$as_dir" || eval $as_mkdir_p || {
16053 as_dirs=
16054 while :; do
16055 case $as_dir in #(
16056 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16057 *) as_qdir=$as_dir;;
16058 esac
16059 as_dirs="'$as_qdir' $as_dirs"
16060 as_dir=`$as_dirname -- "$as_dir" ||
16061$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16062 X"$as_dir" : 'X\(//\)[^/]' \| \
16063 X"$as_dir" : 'X\(//\)$' \| \
16064 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16065$as_echo X"$as_dir" |
16066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16067 s//\1/
16068 q
16069 }
16070 /^X\(\/\/\)[^/].*/{
16071 s//\1/
16072 q
16073 }
16074 /^X\(\/\/\)$/{
16075 s//\1/
16076 q
16077 }
16078 /^X\(\/\).*/{
16079 s//\1/
16080 q
16081 }
16082 s/.*/./; q'`
16083 test -d "$as_dir" && break
16084 done
16085 test -z "$as_dirs" || eval "mkdir $as_dirs"
16086 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16087
16088
16089} # as_fn_mkdir_p
16090if mkdir -p . 2>/dev/null; then
16091 as_mkdir_p='mkdir -p "$as_dir"'
16092else
16093 test -d ./-p && rmdir ./-p
16094 as_mkdir_p=false
16095fi
16096
16097if test -x / >/dev/null 2>&1; then
16098 as_test_x='test -x'
16099else
16100 if ls -dL / >/dev/null 2>&1; then
16101 as_ls_L_option=L
16102 else
16103 as_ls_L_option=
16104 fi
16105 as_test_x='
16106 eval sh -c '\''
16107 if test -d "$1"; then
16108 test -d "$1/.";
16109 else
16110 case $1 in #(
16111 -*)set "./$1";;
16112 esac;
16113 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16114 ???[sx]*):;;*)false;;esac;fi
16115 '\'' sh
16116 '
16117fi
16118as_executable_p=$as_test_x
16119
16120# Sed expression to map a string onto a valid CPP name.
16121as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16122
16123# Sed expression to map a string onto a valid variable name.
16124as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16125
16126
16127exec 6>&1
16128## ----------------------------------- ##
16129## Main body of $CONFIG_STATUS script. ##
16130## ----------------------------------- ##
16131_ASEOF
16132test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16133
16134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16135# Save the log message, to keep $0 and so on meaningful, and to
16136# report actual input values of CONFIG_FILES etc. instead of their
16137# values after options handling.
16138ac_log="
16139This file was extended by package-unused $as_me version-unused, which was
16140generated by GNU Autoconf 2.64. Invocation command line was
16141
16142 CONFIG_FILES = $CONFIG_FILES
16143 CONFIG_HEADERS = $CONFIG_HEADERS
16144 CONFIG_LINKS = $CONFIG_LINKS
16145 CONFIG_COMMANDS = $CONFIG_COMMANDS
16146 $ $0 $@
16147
16148on `(hostname || uname -n) 2>/dev/null | sed 1q`
16149"
16150
16151_ACEOF
16152
16153case $ac_config_files in *"
16154"*) set x $ac_config_files; shift; ac_config_files=$*;;
16155esac
16156
16157case $ac_config_headers in *"
16158"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16159esac
16160
16161
16162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16163# Files that config.status was made for.
16164config_files="$ac_config_files"
16165config_headers="$ac_config_headers"
16166config_commands="$ac_config_commands"
16167
16168_ACEOF
16169
16170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16171ac_cs_usage="\
16172\`$as_me' instantiates files and other configuration actions
16173from templates according to the current configuration. Unless the files
16174and actions are specified as TAGs, all are instantiated by default.
16175
16176Usage: $0 [OPTION]... [TAG]...
16177
16178 -h, --help print this help, then exit
16179 -V, --version print version number and configuration settings, then exit
16180 -q, --quiet, --silent
16181 do not print progress messages
16182 -d, --debug don't remove temporary files
16183 --recheck update $as_me by reconfiguring in the same conditions
16184 --file=FILE[:TEMPLATE]
16185 instantiate the configuration file FILE
16186 --header=FILE[:TEMPLATE]
16187 instantiate the configuration header FILE
16188
16189Configuration files:
16190$config_files
16191
16192Configuration headers:
16193$config_headers
16194
16195Configuration commands:
16196$config_commands
16197
16198Report bugs to the package provider."
16199
16200_ACEOF
16201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16202ac_cs_version="\\
16203package-unused config.status version-unused
16204configured by $0, generated by GNU Autoconf 2.64,
16205 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16206
16207Copyright (C) 2009 Free Software Foundation, Inc.
16208This config.status script is free software; the Free Software Foundation
16209gives unlimited permission to copy, distribute and modify it."
16210
16211ac_pwd='$ac_pwd'
16212srcdir='$srcdir'
16213INSTALL='$INSTALL'
16214MKDIR_P='$MKDIR_P'
16215AWK='$AWK'
16216test -n "\$AWK" || AWK=awk
16217_ACEOF
16218
16219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16220# The default lists apply if the user does not specify any file.
16221ac_need_defaults=:
16222while test $# != 0
16223do
16224 case $1 in
16225 --*=*)
16226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16228 ac_shift=:
16229 ;;
16230 *)
16231 ac_option=$1
16232 ac_optarg=$2
16233 ac_shift=shift
16234 ;;
16235 esac
16236
16237 case $ac_option in
16238 # Handling of the options.
16239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16240 ac_cs_recheck=: ;;
16241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16242 $as_echo "$ac_cs_version"; exit ;;
16243 --debug | --debu | --deb | --de | --d | -d )
16244 debug=: ;;
16245 --file | --fil | --fi | --f )
16246 $ac_shift
16247 case $ac_optarg in
16248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16249 esac
16250 as_fn_append CONFIG_FILES " '$ac_optarg'"
16251 ac_need_defaults=false;;
16252 --header | --heade | --head | --hea )
16253 $ac_shift
16254 case $ac_optarg in
16255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16256 esac
16257 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16258 ac_need_defaults=false;;
16259 --he | --h)
16260 # Conflict between --help and --header
16261 as_fn_error "ambiguous option: \`$1'
16262Try \`$0 --help' for more information.";;
16263 --help | --hel | -h )
16264 $as_echo "$ac_cs_usage"; exit ;;
16265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16266 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16267 ac_cs_silent=: ;;
16268
16269 # This is an error.
16270 -*) as_fn_error "unrecognized option: \`$1'
16271Try \`$0 --help' for more information." ;;
16272
16273 *) as_fn_append ac_config_targets " $1"
16274 ac_need_defaults=false ;;
16275
16276 esac
16277 shift
16278done
16279
16280ac_configure_extra_args=
16281
16282if $ac_cs_silent; then
16283 exec 6>/dev/null
16284 ac_configure_extra_args="$ac_configure_extra_args --silent"
16285fi
16286
16287_ACEOF
16288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16289if \$ac_cs_recheck; then
16290 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16291 shift
16292 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16293 CONFIG_SHELL='$SHELL'
16294 export CONFIG_SHELL
16295 exec "\$@"
16296fi
16297
16298_ACEOF
16299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16300exec 5>>config.log
16301{
16302 echo
16303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16304## Running $as_me. ##
16305_ASBOX
16306 $as_echo "$ac_log"
16307} >&5
16308
16309_ACEOF
16310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16311#
16312# INIT-COMMANDS
16313#
16314
16315srcdir="$srcdir"
16316host="$host"
16317target="$target"
16318with_multisubdir="$with_multisubdir"
16319with_multisrctop="$with_multisrctop"
16320with_target_subdir="$with_target_subdir"
16321ac_configure_args="${multilib_arg} ${ac_configure_args}"
16322multi_basedir="$multi_basedir"
16323CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16324CC="$CC"
54f0deb0
ILT
16325CXX="$CXX"
16326GFORTRAN="$GFORTRAN"
7a938933
ILT
16327AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16328
16329
16330# The HP-UX ksh and POSIX shell print the target directory to stdout
16331# if CDPATH is set.
16332(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16333
16334sed_quote_subst='$sed_quote_subst'
16335double_quote_subst='$double_quote_subst'
16336delay_variable_subst='$delay_variable_subst'
16337SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16338Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16339GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16340EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16341FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16342SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16343ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16344LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16345macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16346macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16347enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16348enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16349pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16350enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16351host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16352host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16353host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16354build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16355build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16356build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16357NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16358LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16359max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16360ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16361exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16362lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16363lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16364lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16365reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16366reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16367OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16368deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16369file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16370AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16371AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16372STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16373RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16374old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16375old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16376old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16377lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16378CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16379CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16380compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16381GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16382lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16383lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16384lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16385lt_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"`'
16386objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16387MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16388lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16389lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16390lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16391lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16392lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16393need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16394DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16395NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16396LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16397OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16398OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16399libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16400shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16401extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16402archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16403enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16404export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16405whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16406compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16407old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16408old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16409archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16410archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16411module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16412module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16413with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16414allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16415no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16416hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16417hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16418hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16419hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16420hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16421hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16422hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16423hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16424inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16425link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16426fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16427always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16428export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16429exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16430include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16431prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16432file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16433variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16434need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16435need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16436version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16437runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16438shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16439shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16440libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16441library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16442soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16443install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16444postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16445postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16446finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16447finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16448hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16449sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16450sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16451hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16452enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16453enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16454enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16455old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16456striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16457LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16458reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16459reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16460old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16461compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16462GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16463lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16464lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16465lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16466lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16467lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16468archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16469enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16470export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16471whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16472compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16473old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16474old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16475archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16476archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16477module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16478module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16479with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16480allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16481no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16482hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16483hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16484hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16485hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16486hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16487hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16488hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16489hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16490inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16491link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16492fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16493always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16494export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16495exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16496include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16497prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16498file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16499hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16500
16501LTCC='$LTCC'
16502LTCFLAGS='$LTCFLAGS'
16503compiler='$compiler_DEFAULT'
16504
16505# A function that is used when there is no print builtin or printf.
16506func_fallback_echo ()
16507{
16508 eval 'cat <<_LTECHO_EOF
16509\$1
16510_LTECHO_EOF'
16511}
16512
16513# Quote evaled strings.
16514for var in SED \
16515GREP \
16516EGREP \
16517FGREP \
16518SHELL \
16519ECHO \
16520LD \
16521NM \
16522LN_S \
16523lt_SP2NL \
16524lt_NL2SP \
16525reload_flag \
16526OBJDUMP \
16527deplibs_check_method \
16528file_magic_cmd \
16529AR \
16530AR_FLAGS \
16531STRIP \
16532RANLIB \
16533CC \
16534CFLAGS \
16535compiler \
16536lt_cv_sys_global_symbol_pipe \
16537lt_cv_sys_global_symbol_to_cdecl \
16538lt_cv_sys_global_symbol_to_c_name_address \
16539lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16540lt_prog_compiler_no_builtin_flag \
16541lt_prog_compiler_wl \
16542lt_prog_compiler_pic \
16543lt_prog_compiler_static \
16544lt_cv_prog_compiler_c_o \
16545need_locks \
16546DSYMUTIL \
16547NMEDIT \
16548LIPO \
16549OTOOL \
16550OTOOL64 \
16551shrext_cmds \
16552export_dynamic_flag_spec \
16553whole_archive_flag_spec \
16554compiler_needs_object \
16555with_gnu_ld \
16556allow_undefined_flag \
16557no_undefined_flag \
16558hardcode_libdir_flag_spec \
16559hardcode_libdir_flag_spec_ld \
16560hardcode_libdir_separator \
16561fix_srcfile_path \
16562exclude_expsyms \
16563include_expsyms \
16564file_list_spec \
16565variables_saved_for_relink \
16566libname_spec \
16567library_names_spec \
16568soname_spec \
16569install_override_mode \
16570finish_eval \
16571old_striplib \
16572striplib \
16573LD_GO \
16574reload_flag_GO \
16575compiler_GO \
16576lt_prog_compiler_no_builtin_flag_GO \
16577lt_prog_compiler_wl_GO \
16578lt_prog_compiler_pic_GO \
16579lt_prog_compiler_static_GO \
16580lt_cv_prog_compiler_c_o_GO \
16581export_dynamic_flag_spec_GO \
16582whole_archive_flag_spec_GO \
16583compiler_needs_object_GO \
16584with_gnu_ld_GO \
16585allow_undefined_flag_GO \
16586no_undefined_flag_GO \
16587hardcode_libdir_flag_spec_GO \
16588hardcode_libdir_flag_spec_ld_GO \
16589hardcode_libdir_separator_GO \
16590fix_srcfile_path_GO \
16591exclude_expsyms_GO \
16592include_expsyms_GO \
16593file_list_spec_GO; do
16594 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16595 *[\\\\\\\`\\"\\\$]*)
16596 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16597 ;;
16598 *)
16599 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16600 ;;
16601 esac
16602done
16603
16604# Double-quote double-evaled strings.
16605for var in reload_cmds \
16606old_postinstall_cmds \
16607old_postuninstall_cmds \
16608old_archive_cmds \
16609extract_expsyms_cmds \
16610old_archive_from_new_cmds \
16611old_archive_from_expsyms_cmds \
16612archive_cmds \
16613archive_expsym_cmds \
16614module_cmds \
16615module_expsym_cmds \
16616export_symbols_cmds \
16617prelink_cmds \
16618postinstall_cmds \
16619postuninstall_cmds \
16620finish_cmds \
16621sys_lib_search_path_spec \
16622sys_lib_dlsearch_path_spec \
16623reload_cmds_GO \
16624old_archive_cmds_GO \
16625old_archive_from_new_cmds_GO \
16626old_archive_from_expsyms_cmds_GO \
16627archive_cmds_GO \
16628archive_expsym_cmds_GO \
16629module_cmds_GO \
16630module_expsym_cmds_GO \
16631export_symbols_cmds_GO \
16632prelink_cmds_GO; do
16633 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16634 *[\\\\\\\`\\"\\\$]*)
16635 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16636 ;;
16637 *)
16638 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16639 ;;
16640 esac
16641done
16642
16643ac_aux_dir='$ac_aux_dir'
16644xsi_shell='$xsi_shell'
16645lt_shell_append='$lt_shell_append'
16646
16647# See if we are running on zsh, and set the options which allow our
16648# commands through without removal of \ escapes INIT.
16649if test -n "\${ZSH_VERSION+set}" ; then
16650 setopt NO_GLOB_SUBST
16651fi
16652
16653
16654 PACKAGE='$PACKAGE'
16655 VERSION='$VERSION'
16656 TIMESTAMP='$TIMESTAMP'
16657 RM='$RM'
16658 ofile='$ofile'
16659
16660
16661
16662
16663
16664
16665# Variables needed in config.status (file generation) which aren't already
16666# passed by autoconf.
16667SUBDIRS="$SUBDIRS"
16668
16669
16670_ACEOF
16671
16672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16673
16674# Handling of arguments.
16675for ac_config_target in $ac_config_targets
16676do
16677 case $ac_config_target in
16678 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16679 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16680 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16681 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16682 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16683 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16684 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16685
16686 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16687 esac
16688done
16689
16690
16691# If the user did not use the arguments to specify the items to instantiate,
16692# then the envvar interface is used. Set only those that are not.
16693# We use the long form for the default assignment because of an extremely
16694# bizarre bug on SunOS 4.1.3.
16695if $ac_need_defaults; then
16696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16697 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16699fi
16700
16701# Have a temporary directory for convenience. Make it in the build tree
16702# simply because there is no reason against having it here, and in addition,
16703# creating and moving files from /tmp can sometimes cause problems.
16704# Hook for its removal unless debugging.
16705# Note that there is a small window in which the directory will not be cleaned:
16706# after its creation but before its name has been assigned to `$tmp'.
16707$debug ||
16708{
16709 tmp=
16710 trap 'exit_status=$?
16711 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16712' 0
16713 trap 'as_fn_exit 1' 1 2 13 15
16714}
16715# Create a (secure) tmp directory for tmp files.
16716
16717{
16718 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16719 test -n "$tmp" && test -d "$tmp"
16720} ||
16721{
16722 tmp=./conf$$-$RANDOM
16723 (umask 077 && mkdir "$tmp")
16724} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16725
16726# Set up the scripts for CONFIG_FILES section.
16727# No need to generate them if there are no CONFIG_FILES.
16728# This happens for instance with `./config.status config.h'.
16729if test -n "$CONFIG_FILES"; then
16730
16731
16732ac_cr=`echo X | tr X '\015'`
16733# On cygwin, bash can eat \r inside `` if the user requested igncr.
16734# But we know of no other shell where ac_cr would be empty at this
16735# point, so we can use a bashism as a fallback.
16736if test "x$ac_cr" = x; then
16737 eval ac_cr=\$\'\\r\'
16738fi
16739ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16740if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16741 ac_cs_awk_cr='\r'
16742else
16743 ac_cs_awk_cr=$ac_cr
16744fi
16745
16746echo 'BEGIN {' >"$tmp/subs1.awk" &&
16747_ACEOF
16748
16749
16750{
16751 echo "cat >conf$$subs.awk <<_ACEOF" &&
16752 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16753 echo "_ACEOF"
16754} >conf$$subs.sh ||
16755 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16756ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16757ac_delim='%!_!# '
16758for ac_last_try in false false false false false :; do
16759 . ./conf$$subs.sh ||
16760 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16761
16762 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16763 if test $ac_delim_n = $ac_delim_num; then
16764 break
16765 elif $ac_last_try; then
16766 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16767 else
16768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16769 fi
16770done
16771rm -f conf$$subs.sh
16772
16773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16774cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16775_ACEOF
16776sed -n '
16777h
16778s/^/S["/; s/!.*/"]=/
16779p
16780g
16781s/^[^!]*!//
16782:repl
16783t repl
16784s/'"$ac_delim"'$//
16785t delim
16786:nl
16787h
16788s/\(.\{148\}\).*/\1/
16789t more1
16790s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16791p
16792n
16793b repl
16794:more1
16795s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16796p
16797g
16798s/.\{148\}//
16799t nl
16800:delim
16801h
16802s/\(.\{148\}\).*/\1/
16803t more2
16804s/["\\]/\\&/g; s/^/"/; s/$/"/
16805p
16806b
16807:more2
16808s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16809p
16810g
16811s/.\{148\}//
16812t delim
16813' <conf$$subs.awk | sed '
16814/^[^""]/{
16815 N
16816 s/\n//
16817}
16818' >>$CONFIG_STATUS || ac_write_fail=1
16819rm -f conf$$subs.awk
16820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16821_ACAWK
16822cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16823 for (key in S) S_is_set[key] = 1
16824 FS = "\a"
16825
16826}
16827{
16828 line = $ 0
16829 nfields = split(line, field, "@")
16830 substed = 0
16831 len = length(field[1])
16832 for (i = 2; i < nfields; i++) {
16833 key = field[i]
16834 keylen = length(key)
16835 if (S_is_set[key]) {
16836 value = S[key]
16837 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16838 len += length(value) + length(field[++i])
16839 substed = 1
16840 } else
16841 len += 1 + keylen
16842 }
16843
16844 print line
16845}
16846
16847_ACAWK
16848_ACEOF
16849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16850if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16851 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16852else
16853 cat
16854fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16855 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16856_ACEOF
16857
16858# VPATH may cause trouble with some makes, so we remove $(srcdir),
16859# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16860# trailing colons and then remove the whole line if VPATH becomes empty
16861# (actually we leave an empty line to preserve line numbers).
16862if test "x$srcdir" = x.; then
16863 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16864s/:*\$(srcdir):*/:/
16865s/:*\${srcdir}:*/:/
16866s/:*@srcdir@:*/:/
16867s/^\([^=]*=[ ]*\):*/\1/
16868s/:*$//
16869s/^[^=]*=[ ]*$//
16870}'
16871fi
16872
16873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16874fi # test -n "$CONFIG_FILES"
16875
16876# Set up the scripts for CONFIG_HEADERS section.
16877# No need to generate them if there are no CONFIG_HEADERS.
16878# This happens for instance with `./config.status Makefile'.
16879if test -n "$CONFIG_HEADERS"; then
16880cat >"$tmp/defines.awk" <<\_ACAWK ||
16881BEGIN {
16882_ACEOF
16883
16884# Transform confdefs.h into an awk script `defines.awk', embedded as
16885# here-document in config.status, that substitutes the proper values into
16886# config.h.in to produce config.h.
16887
16888# Create a delimiter string that does not exist in confdefs.h, to ease
16889# handling of long lines.
16890ac_delim='%!_!# '
16891for ac_last_try in false false :; do
16892 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16893 if test -z "$ac_t"; then
16894 break
16895 elif $ac_last_try; then
16896 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16897 else
16898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16899 fi
16900done
16901
16902# For the awk script, D is an array of macro values keyed by name,
16903# likewise P contains macro parameters if any. Preserve backslash
16904# newline sequences.
16905
16906ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16907sed -n '
16908s/.\{148\}/&'"$ac_delim"'/g
16909t rset
16910:rset
16911s/^[ ]*#[ ]*define[ ][ ]*/ /
16912t def
16913d
16914:def
16915s/\\$//
16916t bsnl
16917s/["\\]/\\&/g
16918s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16919D["\1"]=" \3"/p
16920s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16921d
16922:bsnl
16923s/["\\]/\\&/g
16924s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16925D["\1"]=" \3\\\\\\n"\\/p
16926t cont
16927s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16928t cont
16929d
16930:cont
16931n
16932s/.\{148\}/&'"$ac_delim"'/g
16933t clear
16934:clear
16935s/\\$//
16936t bsnlc
16937s/["\\]/\\&/g; s/^/"/; s/$/"/p
16938d
16939:bsnlc
16940s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16941b cont
16942' <confdefs.h | sed '
16943s/'"$ac_delim"'/"\\\
16944"/g' >>$CONFIG_STATUS || ac_write_fail=1
16945
16946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16947 for (key in D) D_is_set[key] = 1
16948 FS = "\a"
16949}
16950/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16951 line = \$ 0
16952 split(line, arg, " ")
16953 if (arg[1] == "#") {
16954 defundef = arg[2]
16955 mac1 = arg[3]
16956 } else {
16957 defundef = substr(arg[1], 2)
16958 mac1 = arg[2]
16959 }
16960 split(mac1, mac2, "(") #)
16961 macro = mac2[1]
16962 prefix = substr(line, 1, index(line, defundef) - 1)
16963 if (D_is_set[macro]) {
16964 # Preserve the white space surrounding the "#".
16965 print prefix "define", macro P[macro] D[macro]
16966 next
16967 } else {
16968 # Replace #undef with comments. This is necessary, for example,
16969 # in the case of _POSIX_SOURCE, which is predefined and required
16970 # on some systems where configure will not decide to define it.
16971 if (defundef == "undef") {
16972 print "/*", prefix defundef, macro, "*/"
16973 next
16974 }
16975 }
16976}
16977{ print }
16978_ACAWK
16979_ACEOF
16980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16981 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16982fi # test -n "$CONFIG_HEADERS"
16983
16984
16985eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16986shift
16987for ac_tag
16988do
16989 case $ac_tag in
16990 :[FHLC]) ac_mode=$ac_tag; continue;;
16991 esac
16992 case $ac_mode$ac_tag in
16993 :[FHL]*:*);;
16994 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16995 :[FH]-) ac_tag=-:-;;
16996 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16997 esac
16998 ac_save_IFS=$IFS
16999 IFS=:
17000 set x $ac_tag
17001 IFS=$ac_save_IFS
17002 shift
17003 ac_file=$1
17004 shift
17005
17006 case $ac_mode in
17007 :L) ac_source=$1;;
17008 :[FH])
17009 ac_file_inputs=
17010 for ac_f
17011 do
17012 case $ac_f in
17013 -) ac_f="$tmp/stdin";;
17014 *) # Look for the file first in the build tree, then in the source tree
17015 # (if the path is not absolute). The absolute path cannot be DOS-style,
17016 # because $ac_f cannot contain `:'.
17017 test -f "$ac_f" ||
17018 case $ac_f in
17019 [\\/$]*) false;;
17020 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17021 esac ||
17022 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17023 esac
17024 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17025 as_fn_append ac_file_inputs " '$ac_f'"
17026 done
17027
17028 # Let's still pretend it is `configure' which instantiates (i.e., don't
17029 # use $as_me), people would be surprised to read:
17030 # /* config.h. Generated by config.status. */
17031 configure_input='Generated from '`
17032 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17033 `' by configure.'
17034 if test x"$ac_file" != x-; then
17035 configure_input="$ac_file. $configure_input"
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17037$as_echo "$as_me: creating $ac_file" >&6;}
17038 fi
17039 # Neutralize special characters interpreted by sed in replacement strings.
17040 case $configure_input in #(
17041 *\&* | *\|* | *\\* )
17042 ac_sed_conf_input=`$as_echo "$configure_input" |
17043 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17044 *) ac_sed_conf_input=$configure_input;;
17045 esac
17046
17047 case $ac_tag in
17048 *:-:* | *:-) cat >"$tmp/stdin" \
17049 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17050 esac
17051 ;;
17052 esac
17053
17054 ac_dir=`$as_dirname -- "$ac_file" ||
17055$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17056 X"$ac_file" : 'X\(//\)[^/]' \| \
17057 X"$ac_file" : 'X\(//\)$' \| \
17058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17059$as_echo X"$ac_file" |
17060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17061 s//\1/
17062 q
17063 }
17064 /^X\(\/\/\)[^/].*/{
17065 s//\1/
17066 q
17067 }
17068 /^X\(\/\/\)$/{
17069 s//\1/
17070 q
17071 }
17072 /^X\(\/\).*/{
17073 s//\1/
17074 q
17075 }
17076 s/.*/./; q'`
17077 as_dir="$ac_dir"; as_fn_mkdir_p
17078 ac_builddir=.
17079
17080case "$ac_dir" in
17081.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17082*)
17083 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17084 # A ".." for each directory in $ac_dir_suffix.
17085 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17086 case $ac_top_builddir_sub in
17087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17089 esac ;;
17090esac
17091ac_abs_top_builddir=$ac_pwd
17092ac_abs_builddir=$ac_pwd$ac_dir_suffix
17093# for backward compatibility:
17094ac_top_builddir=$ac_top_build_prefix
17095
17096case $srcdir in
17097 .) # We are building in place.
17098 ac_srcdir=.
17099 ac_top_srcdir=$ac_top_builddir_sub
17100 ac_abs_top_srcdir=$ac_pwd ;;
17101 [\\/]* | ?:[\\/]* ) # Absolute name.
17102 ac_srcdir=$srcdir$ac_dir_suffix;
17103 ac_top_srcdir=$srcdir
17104 ac_abs_top_srcdir=$srcdir ;;
17105 *) # Relative name.
17106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17107 ac_top_srcdir=$ac_top_build_prefix$srcdir
17108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17109esac
17110ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17111
17112
17113 case $ac_mode in
17114 :F)
17115 #
17116 # CONFIG_FILE
17117 #
17118
17119 case $INSTALL in
17120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17122 esac
17123 ac_MKDIR_P=$MKDIR_P
17124 case $MKDIR_P in
17125 [\\/$]* | ?:[\\/]* ) ;;
17126 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17127 esac
17128_ACEOF
17129
17130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17131# If the template does not know about datarootdir, expand it.
17132# FIXME: This hack should be removed a few years after 2.60.
17133ac_datarootdir_hack=; ac_datarootdir_seen=
17134ac_sed_dataroot='
17135/datarootdir/ {
17136 p
17137 q
17138}
17139/@datadir@/p
17140/@docdir@/p
17141/@infodir@/p
17142/@localedir@/p
17143/@mandir@/p'
17144case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17145*datarootdir*) ac_datarootdir_seen=yes;;
17146*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17148$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17149_ACEOF
17150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17151 ac_datarootdir_hack='
17152 s&@datadir@&$datadir&g
17153 s&@docdir@&$docdir&g
17154 s&@infodir@&$infodir&g
17155 s&@localedir@&$localedir&g
17156 s&@mandir@&$mandir&g
17157 s&\\\${datarootdir}&$datarootdir&g' ;;
17158esac
17159_ACEOF
17160
17161# Neutralize VPATH when `$srcdir' = `.'.
17162# Shell code in configure.ac might set extrasub.
17163# FIXME: do we really want to maintain this feature?
17164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17165ac_sed_extra="$ac_vpsub
17166$extrasub
17167_ACEOF
17168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17169:t
17170/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17171s|@configure_input@|$ac_sed_conf_input|;t t
17172s&@top_builddir@&$ac_top_builddir_sub&;t t
17173s&@top_build_prefix@&$ac_top_build_prefix&;t t
17174s&@srcdir@&$ac_srcdir&;t t
17175s&@abs_srcdir@&$ac_abs_srcdir&;t t
17176s&@top_srcdir@&$ac_top_srcdir&;t t
17177s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17178s&@builddir@&$ac_builddir&;t t
17179s&@abs_builddir@&$ac_abs_builddir&;t t
17180s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17181s&@INSTALL@&$ac_INSTALL&;t t
17182s&@MKDIR_P@&$ac_MKDIR_P&;t t
17183$ac_datarootdir_hack
17184"
17185eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17186 || as_fn_error "could not create $ac_file" "$LINENO" 5
17187
17188test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17189 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17192which seems to be undefined. Please make sure it is defined." >&5
17193$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17194which seems to be undefined. Please make sure it is defined." >&2;}
17195
17196 rm -f "$tmp/stdin"
17197 case $ac_file in
17198 -) cat "$tmp/out" && rm -f "$tmp/out";;
17199 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17200 esac \
17201 || as_fn_error "could not create $ac_file" "$LINENO" 5
17202 ;;
17203 :H)
17204 #
17205 # CONFIG_HEADER
17206 #
17207 if test x"$ac_file" != x-; then
17208 {
17209 $as_echo "/* $configure_input */" \
17210 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17211 } >"$tmp/config.h" \
17212 || as_fn_error "could not create $ac_file" "$LINENO" 5
17213 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17215$as_echo "$as_me: $ac_file is unchanged" >&6;}
17216 else
17217 rm -f "$ac_file"
17218 mv "$tmp/config.h" "$ac_file" \
17219 || as_fn_error "could not create $ac_file" "$LINENO" 5
17220 fi
17221 else
17222 $as_echo "/* $configure_input */" \
17223 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17224 || as_fn_error "could not create -" "$LINENO" 5
17225 fi
17226# Compute "$ac_file"'s index in $config_headers.
17227_am_arg="$ac_file"
17228_am_stamp_count=1
17229for _am_header in $config_headers :; do
17230 case $_am_header in
17231 $_am_arg | $_am_arg:* )
17232 break ;;
17233 * )
17234 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17235 esac
17236done
17237echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17238$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239 X"$_am_arg" : 'X\(//\)[^/]' \| \
17240 X"$_am_arg" : 'X\(//\)$' \| \
17241 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17242$as_echo X"$_am_arg" |
17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17244 s//\1/
17245 q
17246 }
17247 /^X\(\/\/\)[^/].*/{
17248 s//\1/
17249 q
17250 }
17251 /^X\(\/\/\)$/{
17252 s//\1/
17253 q
17254 }
17255 /^X\(\/\).*/{
17256 s//\1/
17257 q
17258 }
17259 s/.*/./; q'`/stamp-h$_am_stamp_count
17260 ;;
17261
17262 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17263$as_echo "$as_me: executing $ac_file commands" >&6;}
17264 ;;
17265 esac
17266
17267
17268 case $ac_file$ac_mode in
17269 "default-1":C)
17270# Only add multilib support code if we just rebuilt the top-level
17271# Makefile.
17272case " $CONFIG_FILES " in
17273 *" Makefile "*)
17274 ac_file=Makefile . ${multi_basedir}/config-ml.in
17275 ;;
17276esac ;;
17277 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17278 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17279 # are listed without --file. Let's play safe and only enable the eval
17280 # if we detect the quoting.
17281 case $CONFIG_FILES in
17282 *\'*) eval set x "$CONFIG_FILES" ;;
17283 *) set x $CONFIG_FILES ;;
17284 esac
17285 shift
17286 for mf
17287 do
17288 # Strip MF so we end up with the name of the file.
17289 mf=`echo "$mf" | sed -e 's/:.*$//'`
17290 # Check whether this is an Automake generated Makefile or not.
17291 # We used to match only the files named `Makefile.in', but
17292 # some people rename them; so instead we look at the file content.
17293 # Grep'ing the first line is not enough: some people post-process
17294 # each Makefile.in and add a new line on top of each file to say so.
17295 # Grep'ing the whole file is not good either: AIX grep has a line
17296 # limit of 2048, but all sed's we know have understand at least 4000.
17297 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17298 dirpart=`$as_dirname -- "$mf" ||
17299$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17300 X"$mf" : 'X\(//\)[^/]' \| \
17301 X"$mf" : 'X\(//\)$' \| \
17302 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17303$as_echo X"$mf" |
17304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17305 s//\1/
17306 q
17307 }
17308 /^X\(\/\/\)[^/].*/{
17309 s//\1/
17310 q
17311 }
17312 /^X\(\/\/\)$/{
17313 s//\1/
17314 q
17315 }
17316 /^X\(\/\).*/{
17317 s//\1/
17318 q
17319 }
17320 s/.*/./; q'`
17321 else
17322 continue
17323 fi
17324 # Extract the definition of DEPDIR, am__include, and am__quote
17325 # from the Makefile without running `make'.
17326 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17327 test -z "$DEPDIR" && continue
17328 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17329 test -z "am__include" && continue
17330 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17331 # When using ansi2knr, U may be empty or an underscore; expand it
17332 U=`sed -n 's/^U = //p' < "$mf"`
17333 # Find all dependency output files, they are included files with
17334 # $(DEPDIR) in their names. We invoke sed twice because it is the
17335 # simplest approach to changing $(DEPDIR) to its actual value in the
17336 # expansion.
17337 for file in `sed -n "
17338 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17339 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17340 # Make sure the directory exists.
17341 test -f "$dirpart/$file" && continue
17342 fdir=`$as_dirname -- "$file" ||
17343$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17344 X"$file" : 'X\(//\)[^/]' \| \
17345 X"$file" : 'X\(//\)$' \| \
17346 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17347$as_echo X"$file" |
17348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17349 s//\1/
17350 q
17351 }
17352 /^X\(\/\/\)[^/].*/{
17353 s//\1/
17354 q
17355 }
17356 /^X\(\/\/\)$/{
17357 s//\1/
17358 q
17359 }
17360 /^X\(\/\).*/{
17361 s//\1/
17362 q
17363 }
17364 s/.*/./; q'`
17365 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17366 # echo "creating $dirpart/$file"
17367 echo '# dummy' > "$dirpart/$file"
17368 done
17369 done
17370}
17371 ;;
17372 "libtool":C)
17373
17374 # See if we are running on zsh, and set the options which allow our
17375 # commands through without removal of \ escapes.
17376 if test -n "${ZSH_VERSION+set}" ; then
17377 setopt NO_GLOB_SUBST
17378 fi
17379
17380 cfgfile="${ofile}T"
17381 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17382 $RM "$cfgfile"
17383
17384 cat <<_LT_EOF >> "$cfgfile"
17385#! $SHELL
17386
17387# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17388# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17389# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17390# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17391#
17392# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17393# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17394# Written by Gordon Matzigkeit, 1996
17395#
17396# This file is part of GNU Libtool.
17397#
17398# GNU Libtool is free software; you can redistribute it and/or
17399# modify it under the terms of the GNU General Public License as
17400# published by the Free Software Foundation; either version 2 of
17401# the License, or (at your option) any later version.
17402#
17403# As a special exception to the GNU General Public License,
17404# if you distribute this file as part of a program or library that
17405# is built using GNU Libtool, you may include this file under the
17406# same distribution terms that you use for the rest of that program.
17407#
17408# GNU Libtool is distributed in the hope that it will be useful,
17409# but WITHOUT ANY WARRANTY; without even the implied warranty of
17410# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17411# GNU General Public License for more details.
17412#
17413# You should have received a copy of the GNU General Public License
17414# along with GNU Libtool; see the file COPYING. If not, a copy
17415# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17416# obtained by writing to the Free Software Foundation, Inc.,
17417# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17418
17419
17420# The names of the tagged configurations supported by this script.
17421available_tags="GO "
17422
17423# ### BEGIN LIBTOOL CONFIG
17424
17425# A sed program that does not truncate output.
17426SED=$lt_SED
17427
17428# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17429Xsed="\$SED -e 1s/^X//"
17430
17431# A grep program that handles long lines.
17432GREP=$lt_GREP
17433
17434# An ERE matcher.
17435EGREP=$lt_EGREP
17436
17437# A literal string matcher.
17438FGREP=$lt_FGREP
17439
17440# Shell to use when invoking shell scripts.
17441SHELL=$lt_SHELL
17442
17443# An echo program that protects backslashes.
17444ECHO=$lt_ECHO
17445
17446# Which release of libtool.m4 was used?
17447macro_version=$macro_version
17448macro_revision=$macro_revision
17449
17450# Whether or not to build shared libraries.
17451build_libtool_libs=$enable_shared
17452
17453# Whether or not to build static libraries.
17454build_old_libs=$enable_static
17455
17456# What type of objects to build.
17457pic_mode=$pic_mode
17458
17459# Whether or not to optimize for fast installation.
17460fast_install=$enable_fast_install
17461
17462# The host system.
17463host_alias=$host_alias
17464host=$host
17465host_os=$host_os
17466
17467# The build system.
17468build_alias=$build_alias
17469build=$build
17470build_os=$build_os
17471
17472# A BSD- or MS-compatible name lister.
17473NM=$lt_NM
17474
17475# Whether we need soft or hard links.
17476LN_S=$lt_LN_S
17477
17478# What is the maximum length of a command?
17479max_cmd_len=$max_cmd_len
17480
17481# Object file suffix (normally "o").
17482objext=$ac_objext
17483
17484# Executable file suffix (normally "").
17485exeext=$exeext
17486
17487# whether the shell understands "unset".
17488lt_unset=$lt_unset
17489
17490# turn spaces into newlines.
17491SP2NL=$lt_lt_SP2NL
17492
17493# turn newlines into spaces.
17494NL2SP=$lt_lt_NL2SP
17495
17496# An object symbol dumper.
17497OBJDUMP=$lt_OBJDUMP
17498
17499# Method to check whether dependent libraries are shared objects.
17500deplibs_check_method=$lt_deplibs_check_method
17501
17502# Command to use when deplibs_check_method == "file_magic".
17503file_magic_cmd=$lt_file_magic_cmd
17504
17505# The archiver.
17506AR=$lt_AR
17507AR_FLAGS=$lt_AR_FLAGS
17508
17509# A symbol stripping program.
17510STRIP=$lt_STRIP
17511
17512# Commands used to install an old-style archive.
17513RANLIB=$lt_RANLIB
17514old_postinstall_cmds=$lt_old_postinstall_cmds
17515old_postuninstall_cmds=$lt_old_postuninstall_cmds
17516
17517# Whether to use a lock for old archive extraction.
17518lock_old_archive_extraction=$lock_old_archive_extraction
17519
17520# A C compiler.
17521LTCC=$lt_CC
17522
17523# LTCC compiler flags.
17524LTCFLAGS=$lt_CFLAGS
17525
17526# Take the output of nm and produce a listing of raw symbols and C names.
17527global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17528
17529# Transform the output of nm in a proper C declaration.
17530global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17531
17532# Transform the output of nm in a C name address pair.
17533global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17534
17535# Transform the output of nm in a C name address pair when lib prefix is needed.
17536global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17537
17538# The name of the directory that contains temporary libtool files.
17539objdir=$objdir
17540
17541# Used to examine libraries when file_magic_cmd begins with "file".
17542MAGIC_CMD=$MAGIC_CMD
17543
17544# Must we lock files when doing compilation?
17545need_locks=$lt_need_locks
17546
17547# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17548DSYMUTIL=$lt_DSYMUTIL
17549
17550# Tool to change global to local symbols on Mac OS X.
17551NMEDIT=$lt_NMEDIT
17552
17553# Tool to manipulate fat objects and archives on Mac OS X.
17554LIPO=$lt_LIPO
17555
17556# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17557OTOOL=$lt_OTOOL
17558
17559# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17560OTOOL64=$lt_OTOOL64
17561
17562# Old archive suffix (normally "a").
17563libext=$libext
17564
17565# Shared library suffix (normally ".so").
17566shrext_cmds=$lt_shrext_cmds
17567
17568# The commands to extract the exported symbol list from a shared archive.
17569extract_expsyms_cmds=$lt_extract_expsyms_cmds
17570
17571# Variables whose values should be saved in libtool wrapper scripts and
17572# restored at link time.
17573variables_saved_for_relink=$lt_variables_saved_for_relink
17574
17575# Do we need the "lib" prefix for modules?
17576need_lib_prefix=$need_lib_prefix
17577
17578# Do we need a version for libraries?
17579need_version=$need_version
17580
17581# Library versioning type.
17582version_type=$version_type
17583
17584# Shared library runtime path variable.
17585runpath_var=$runpath_var
17586
17587# Shared library path variable.
17588shlibpath_var=$shlibpath_var
17589
17590# Is shlibpath searched before the hard-coded library search path?
17591shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17592
17593# Format of library name prefix.
17594libname_spec=$lt_libname_spec
17595
17596# List of archive names. First name is the real one, the rest are links.
17597# The last name is the one that the linker finds with -lNAME
17598library_names_spec=$lt_library_names_spec
17599
17600# The coded name of the library, if different from the real name.
17601soname_spec=$lt_soname_spec
17602
17603# Permission mode override for installation of shared libraries.
17604install_override_mode=$lt_install_override_mode
17605
17606# Command to use after installation of a shared archive.
17607postinstall_cmds=$lt_postinstall_cmds
17608
17609# Command to use after uninstallation of a shared archive.
17610postuninstall_cmds=$lt_postuninstall_cmds
17611
17612# Commands used to finish a libtool library installation in a directory.
17613finish_cmds=$lt_finish_cmds
17614
17615# As "finish_cmds", except a single script fragment to be evaled but
17616# not shown.
17617finish_eval=$lt_finish_eval
17618
17619# Whether we should hardcode library paths into libraries.
17620hardcode_into_libs=$hardcode_into_libs
17621
17622# Compile-time system search path for libraries.
17623sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17624
17625# Run-time system search path for libraries.
17626sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17627
17628# Whether dlopen is supported.
17629dlopen_support=$enable_dlopen
17630
17631# Whether dlopen of programs is supported.
17632dlopen_self=$enable_dlopen_self
17633
17634# Whether dlopen of statically linked programs is supported.
17635dlopen_self_static=$enable_dlopen_self_static
17636
17637# Commands to strip libraries.
17638old_striplib=$lt_old_striplib
17639striplib=$lt_striplib
17640
17641
17642# The linker used to build libraries.
17643LD=$lt_LD
17644
17645# How to create reloadable object files.
17646reload_flag=$lt_reload_flag
17647reload_cmds=$lt_reload_cmds
17648
17649# Commands used to build an old-style archive.
17650old_archive_cmds=$lt_old_archive_cmds
17651
17652# A language specific compiler.
17653CC=$lt_compiler
17654
17655# Is the compiler the GNU compiler?
17656with_gcc=$GCC
17657
17658# Compiler flag to turn off builtin functions.
17659no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17660
17661# How to pass a linker flag through the compiler.
17662wl=$lt_lt_prog_compiler_wl
17663
17664# Additional compiler flags for building library objects.
17665pic_flag=$lt_lt_prog_compiler_pic
17666
17667# Compiler flag to prevent dynamic linking.
17668link_static_flag=$lt_lt_prog_compiler_static
17669
17670# Does compiler simultaneously support -c and -o options?
17671compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17672
17673# Whether or not to add -lc for building shared libraries.
17674build_libtool_need_lc=$archive_cmds_need_lc
17675
17676# Whether or not to disallow shared libs when runtime libs are static.
17677allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17678
17679# Compiler flag to allow reflexive dlopens.
17680export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17681
17682# Compiler flag to generate shared objects directly from archives.
17683whole_archive_flag_spec=$lt_whole_archive_flag_spec
17684
17685# Whether the compiler copes with passing no objects directly.
17686compiler_needs_object=$lt_compiler_needs_object
17687
17688# Create an old-style archive from a shared archive.
17689old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17690
17691# Create a temporary old-style archive to link instead of a shared archive.
17692old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17693
17694# Commands used to build a shared archive.
17695archive_cmds=$lt_archive_cmds
17696archive_expsym_cmds=$lt_archive_expsym_cmds
17697
17698# Commands used to build a loadable module if different from building
17699# a shared archive.
17700module_cmds=$lt_module_cmds
17701module_expsym_cmds=$lt_module_expsym_cmds
17702
17703# Whether we are building with GNU ld or not.
17704with_gnu_ld=$lt_with_gnu_ld
17705
17706# Flag that allows shared libraries with undefined symbols to be built.
17707allow_undefined_flag=$lt_allow_undefined_flag
17708
17709# Flag that enforces no undefined symbols.
17710no_undefined_flag=$lt_no_undefined_flag
17711
17712# Flag to hardcode \$libdir into a binary during linking.
17713# This must work even if \$libdir does not exist
17714hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17715
17716# If ld is used when linking, flag to hardcode \$libdir into a binary
17717# during linking. This must work even if \$libdir does not exist.
17718hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17719
17720# Whether we need a single "-rpath" flag with a separated argument.
17721hardcode_libdir_separator=$lt_hardcode_libdir_separator
17722
17723# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17724# DIR into the resulting binary.
17725hardcode_direct=$hardcode_direct
17726
17727# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17728# DIR into the resulting binary and the resulting library dependency is
17729# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17730# library is relocated.
17731hardcode_direct_absolute=$hardcode_direct_absolute
17732
17733# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17734# into the resulting binary.
17735hardcode_minus_L=$hardcode_minus_L
17736
17737# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17738# into the resulting binary.
17739hardcode_shlibpath_var=$hardcode_shlibpath_var
17740
17741# Set to "yes" if building a shared library automatically hardcodes DIR
17742# into the library and all subsequent libraries and executables linked
17743# against it.
17744hardcode_automatic=$hardcode_automatic
17745
17746# Set to yes if linker adds runtime paths of dependent libraries
17747# to runtime path list.
17748inherit_rpath=$inherit_rpath
17749
17750# Whether libtool must link a program against all its dependency libraries.
17751link_all_deplibs=$link_all_deplibs
17752
17753# Fix the shell variable \$srcfile for the compiler.
17754fix_srcfile_path=$lt_fix_srcfile_path
17755
17756# Set to "yes" if exported symbols are required.
17757always_export_symbols=$always_export_symbols
17758
17759# The commands to list exported symbols.
17760export_symbols_cmds=$lt_export_symbols_cmds
17761
17762# Symbols that should not be listed in the preloaded symbols.
17763exclude_expsyms=$lt_exclude_expsyms
17764
17765# Symbols that must always be exported.
17766include_expsyms=$lt_include_expsyms
17767
17768# Commands necessary for linking programs (against libraries) with templates.
17769prelink_cmds=$lt_prelink_cmds
17770
17771# Specify filename containing input files.
17772file_list_spec=$lt_file_list_spec
17773
17774# How to hardcode a shared library path into an executable.
17775hardcode_action=$hardcode_action
17776
17777# ### END LIBTOOL CONFIG
17778
17779_LT_EOF
17780
17781 case $host_os in
17782 aix3*)
17783 cat <<\_LT_EOF >> "$cfgfile"
17784# AIX sometimes has problems with the GCC collect2 program. For some
17785# reason, if we set the COLLECT_NAMES environment variable, the problems
17786# vanish in a puff of smoke.
17787if test "X${COLLECT_NAMES+set}" != Xset; then
17788 COLLECT_NAMES=
17789 export COLLECT_NAMES
17790fi
17791_LT_EOF
17792 ;;
17793 esac
17794
17795
17796ltmain="$ac_aux_dir/ltmain.sh"
17797
17798
17799 # We use sed instead of cat because bash on DJGPP gets confused if
17800 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17801 # text mode, it properly converts lines to CR/LF. This bash problem
17802 # is reportedly fixed, but why not run on old versions too?
17803 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17804 || (rm -f "$cfgfile"; exit 1)
17805
17806 case $xsi_shell in
17807 yes)
17808 cat << \_LT_EOF >> "$cfgfile"
17809
17810# func_dirname file append nondir_replacement
17811# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17812# otherwise set result to NONDIR_REPLACEMENT.
17813func_dirname ()
17814{
17815 case ${1} in
17816 */*) func_dirname_result="${1%/*}${2}" ;;
17817 * ) func_dirname_result="${3}" ;;
17818 esac
17819}
17820
17821# func_basename file
17822func_basename ()
17823{
17824 func_basename_result="${1##*/}"
17825}
17826
17827# func_dirname_and_basename file append nondir_replacement
17828# perform func_basename and func_dirname in a single function
17829# call:
17830# dirname: Compute the dirname of FILE. If nonempty,
17831# add APPEND to the result, otherwise set result
17832# to NONDIR_REPLACEMENT.
17833# value returned in "$func_dirname_result"
17834# basename: Compute filename of FILE.
17835# value retuned in "$func_basename_result"
17836# Implementation must be kept synchronized with func_dirname
17837# and func_basename. For efficiency, we do not delegate to
17838# those functions but instead duplicate the functionality here.
17839func_dirname_and_basename ()
17840{
17841 case ${1} in
17842 */*) func_dirname_result="${1%/*}${2}" ;;
17843 * ) func_dirname_result="${3}" ;;
17844 esac
17845 func_basename_result="${1##*/}"
17846}
17847
17848# func_stripname prefix suffix name
17849# strip PREFIX and SUFFIX off of NAME.
17850# PREFIX and SUFFIX must not contain globbing or regex special
17851# characters, hashes, percent signs, but SUFFIX may contain a leading
17852# dot (in which case that matches only a dot).
17853func_stripname ()
17854{
17855 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17856 # positional parameters, so assign one to ordinary parameter first.
17857 func_stripname_result=${3}
17858 func_stripname_result=${func_stripname_result#"${1}"}
17859 func_stripname_result=${func_stripname_result%"${2}"}
17860}
17861
17862# func_opt_split
17863func_opt_split ()
17864{
17865 func_opt_split_opt=${1%%=*}
17866 func_opt_split_arg=${1#*=}
17867}
17868
17869# func_lo2o object
17870func_lo2o ()
17871{
17872 case ${1} in
17873 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17874 *) func_lo2o_result=${1} ;;
17875 esac
17876}
17877
17878# func_xform libobj-or-source
17879func_xform ()
17880{
17881 func_xform_result=${1%.*}.lo
17882}
17883
17884# func_arith arithmetic-term...
17885func_arith ()
17886{
17887 func_arith_result=$(( $* ))
17888}
17889
17890# func_len string
17891# STRING may not start with a hyphen.
17892func_len ()
17893{
17894 func_len_result=${#1}
17895}
17896
17897_LT_EOF
17898 ;;
17899 *) # Bourne compatible functions.
17900 cat << \_LT_EOF >> "$cfgfile"
17901
17902# func_dirname file append nondir_replacement
17903# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17904# otherwise set result to NONDIR_REPLACEMENT.
17905func_dirname ()
17906{
17907 # Extract subdirectory from the argument.
17908 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17909 if test "X$func_dirname_result" = "X${1}"; then
17910 func_dirname_result="${3}"
17911 else
17912 func_dirname_result="$func_dirname_result${2}"
17913 fi
17914}
17915
17916# func_basename file
17917func_basename ()
17918{
17919 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17920}
17921
17922
17923# func_stripname prefix suffix name
17924# strip PREFIX and SUFFIX off of NAME.
17925# PREFIX and SUFFIX must not contain globbing or regex special
17926# characters, hashes, percent signs, but SUFFIX may contain a leading
17927# dot (in which case that matches only a dot).
17928# func_strip_suffix prefix name
17929func_stripname ()
17930{
17931 case ${2} in
17932 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17933 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17934 esac
17935}
17936
17937# sed scripts:
17938my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17939my_sed_long_arg='1s/^-[^=]*=//'
17940
17941# func_opt_split
17942func_opt_split ()
17943{
17944 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17945 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17946}
17947
17948# func_lo2o object
17949func_lo2o ()
17950{
17951 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17952}
17953
17954# func_xform libobj-or-source
17955func_xform ()
17956{
17957 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17958}
17959
17960# func_arith arithmetic-term...
17961func_arith ()
17962{
17963 func_arith_result=`expr "$@"`
17964}
17965
17966# func_len string
17967# STRING may not start with a hyphen.
17968func_len ()
17969{
17970 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17971}
17972
17973_LT_EOF
17974esac
17975
17976case $lt_shell_append in
17977 yes)
17978 cat << \_LT_EOF >> "$cfgfile"
17979
17980# func_append var value
17981# Append VALUE to the end of shell variable VAR.
17982func_append ()
17983{
17984 eval "$1+=\$2"
17985}
17986_LT_EOF
17987 ;;
17988 *)
17989 cat << \_LT_EOF >> "$cfgfile"
17990
17991# func_append var value
17992# Append VALUE to the end of shell variable VAR.
17993func_append ()
17994{
17995 eval "$1=\$$1\$2"
17996}
17997
17998_LT_EOF
17999 ;;
18000 esac
18001
18002
18003 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18004 || (rm -f "$cfgfile"; exit 1)
18005
18006 mv -f "$cfgfile" "$ofile" ||
18007 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18008 chmod +x "$ofile"
18009
18010
18011 cat <<_LT_EOF >> "$ofile"
18012
18013# ### BEGIN LIBTOOL TAG CONFIG: GO
18014
18015# The linker used to build libraries.
18016LD=$lt_LD_GO
18017
18018# How to create reloadable object files.
18019reload_flag=$lt_reload_flag_GO
18020reload_cmds=$lt_reload_cmds_GO
18021
18022# Commands used to build an old-style archive.
18023old_archive_cmds=$lt_old_archive_cmds_GO
18024
18025# A language specific compiler.
18026CC=$lt_compiler_GO
18027
18028# Is the compiler the GNU compiler?
18029with_gcc=$GCC_GO
18030
18031# Compiler flag to turn off builtin functions.
18032no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18033
18034# How to pass a linker flag through the compiler.
18035wl=$lt_lt_prog_compiler_wl_GO
18036
18037# Additional compiler flags for building library objects.
18038pic_flag=$lt_lt_prog_compiler_pic_GO
18039
18040# Compiler flag to prevent dynamic linking.
18041link_static_flag=$lt_lt_prog_compiler_static_GO
18042
18043# Does compiler simultaneously support -c and -o options?
18044compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18045
18046# Whether or not to add -lc for building shared libraries.
18047build_libtool_need_lc=$archive_cmds_need_lc_GO
18048
18049# Whether or not to disallow shared libs when runtime libs are static.
18050allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18051
18052# Compiler flag to allow reflexive dlopens.
18053export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18054
18055# Compiler flag to generate shared objects directly from archives.
18056whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18057
18058# Whether the compiler copes with passing no objects directly.
18059compiler_needs_object=$lt_compiler_needs_object_GO
18060
18061# Create an old-style archive from a shared archive.
18062old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18063
18064# Create a temporary old-style archive to link instead of a shared archive.
18065old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18066
18067# Commands used to build a shared archive.
18068archive_cmds=$lt_archive_cmds_GO
18069archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18070
18071# Commands used to build a loadable module if different from building
18072# a shared archive.
18073module_cmds=$lt_module_cmds_GO
18074module_expsym_cmds=$lt_module_expsym_cmds_GO
18075
18076# Whether we are building with GNU ld or not.
18077with_gnu_ld=$lt_with_gnu_ld_GO
18078
18079# Flag that allows shared libraries with undefined symbols to be built.
18080allow_undefined_flag=$lt_allow_undefined_flag_GO
18081
18082# Flag that enforces no undefined symbols.
18083no_undefined_flag=$lt_no_undefined_flag_GO
18084
18085# Flag to hardcode \$libdir into a binary during linking.
18086# This must work even if \$libdir does not exist
18087hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18088
18089# If ld is used when linking, flag to hardcode \$libdir into a binary
18090# during linking. This must work even if \$libdir does not exist.
18091hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18092
18093# Whether we need a single "-rpath" flag with a separated argument.
18094hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18095
18096# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18097# DIR into the resulting binary.
18098hardcode_direct=$hardcode_direct_GO
18099
18100# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18101# DIR into the resulting binary and the resulting library dependency is
18102# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18103# library is relocated.
18104hardcode_direct_absolute=$hardcode_direct_absolute_GO
18105
18106# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18107# into the resulting binary.
18108hardcode_minus_L=$hardcode_minus_L_GO
18109
18110# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18111# into the resulting binary.
18112hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18113
18114# Set to "yes" if building a shared library automatically hardcodes DIR
18115# into the library and all subsequent libraries and executables linked
18116# against it.
18117hardcode_automatic=$hardcode_automatic_GO
18118
18119# Set to yes if linker adds runtime paths of dependent libraries
18120# to runtime path list.
18121inherit_rpath=$inherit_rpath_GO
18122
18123# Whether libtool must link a program against all its dependency libraries.
18124link_all_deplibs=$link_all_deplibs_GO
18125
18126# Fix the shell variable \$srcfile for the compiler.
18127fix_srcfile_path=$lt_fix_srcfile_path_GO
18128
18129# Set to "yes" if exported symbols are required.
18130always_export_symbols=$always_export_symbols_GO
18131
18132# The commands to list exported symbols.
18133export_symbols_cmds=$lt_export_symbols_cmds_GO
18134
18135# Symbols that should not be listed in the preloaded symbols.
18136exclude_expsyms=$lt_exclude_expsyms_GO
18137
18138# Symbols that must always be exported.
18139include_expsyms=$lt_include_expsyms_GO
18140
18141# Commands necessary for linking programs (against libraries) with templates.
18142prelink_cmds=$lt_prelink_cmds_GO
18143
18144# Specify filename containing input files.
18145file_list_spec=$lt_file_list_spec_GO
18146
18147# How to hardcode a shared library path into an executable.
18148hardcode_action=$hardcode_action_GO
18149
18150# ### END LIBTOOL TAG CONFIG: GO
18151_LT_EOF
18152
18153 ;;
18154 "default":C) if test -n "$CONFIG_FILES"; then
18155 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18156 # that multilib installs will end up installed in the correct place.
18157 # The testsuite needs it for multilib-aware ABI baseline files.
18158 # To work around this not being passed down from config-ml.in ->
18159 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18160 # append it here. Only modify Makefiles that have just been created.
18161 #
18162 # Also, get rid of this simulated-VPATH thing that automake does.
18163 cat > vpsed << \_EOF
18164s!`test -f '$<' || echo '$(srcdir)/'`!!
18165_EOF
18166 for i in $SUBDIRS; do
18167 case $CONFIG_FILES in
18168 *${i}/Makefile*)
18169 #echo "Adding MULTISUBDIR to $i/Makefile"
18170 sed -f vpsed $i/Makefile > tmp
18171 grep '^MULTISUBDIR =' Makefile >> tmp
18172 mv tmp $i/Makefile
18173 ;;
18174 esac
18175 done
18176 rm vpsed
18177 fi
18178 ;;
18179
18180 esac
18181done # for ac_tag
18182
18183
18184as_fn_exit 0
18185_ACEOF
18186ac_clean_files=$ac_clean_files_save
18187
18188test $ac_write_fail = 0 ||
18189 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18190
18191
18192# configure is writing to config.log, and then calls config.status.
18193# config.status does its own redirection, appending to config.log.
18194# Unfortunately, on DOS this fails, as config.log is still kept open
18195# by configure, so config.status won't be able to write to it; its
18196# output is simply discarded. So we exec the FD to /dev/null,
18197# effectively closing config.log, so it can be properly (re)opened and
18198# appended to by config.status. When coming back to configure, we
18199# need to make the FD available again.
18200if test "$no_create" != yes; then
18201 ac_cs_success=:
18202 ac_config_status_args=
18203 test "$silent" = yes &&
18204 ac_config_status_args="$ac_config_status_args --quiet"
18205 exec 5>/dev/null
18206 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18207 exec 5>>config.log
18208 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18209 # would make configure fail if this is the last instruction.
18210 $ac_cs_success || as_fn_exit $?
18211fi
18212if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18214$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18215fi
18216