]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
runtime: handle DW_EH_PE_absptr in type table encoding
[thirdparty/gcc.git] / libgo / configure
CommitLineData
e440a328 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
ea2e69a4 3# Generated by GNU Autoconf 2.69 for package-unused version-unused.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
e440a328 7#
e440a328 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.
ea2e69a4 90as_myself=
e440a328 91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
ea2e69a4 135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
e440a328 160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
ea2e69a4 193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
e440a328 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
ea2e69a4 247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
e440a328 266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
ea2e69a4 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
e440a328 364
365
366} # as_fn_mkdir_p
ea2e69a4 367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
e440a328 375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
ea2e69a4 411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
e440a328 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
ea2e69a4 415# script with STATUS, using 1 if that was 0.
e440a328 416as_fn_error ()
417{
ea2e69a4 418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
e440a328 422 fi
ea2e69a4 423 $as_echo "$as_me: error: $2" >&2
e440a328 424 as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
ea2e69a4 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
e440a328 500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
ea2e69a4 534 # In both cases, we have to default to `cp -pR'.
e440a328 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ea2e69a4 536 as_ln_s='cp -pR'
e440a328 537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
ea2e69a4 540 as_ln_s='cp -pR'
e440a328 541 fi
542else
ea2e69a4 543 as_ln_s='cp -pR'
e440a328 544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
ea2e69a4 555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
e440a328 557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
ea2e69a4 567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
e440a328 569
570# Name of the host.
ea2e69a4 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
e440a328 572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='package-unused'
589PACKAGE_TARNAME='libgo'
590PACKAGE_VERSION='version-unused'
591PACKAGE_STRING='package-unused version-unused'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="Makefile.am"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
8dcdfb38 636HAVE_STAT_TIMESPEC_FALSE
637HAVE_STAT_TIMESPEC_TRUE
d772e63b 638STRUCT_EPOLL_EVENT_FD_OFFSET
639SIZEOF_STRUCT_EPOLL_EVENT
68e1881d 640MATH_FLAG
e440a328 641STRINGOPS_FLAG
37d6b690 642HAVE_WAIT4_FALSE
643HAVE_WAIT4_TRUE
ccd3f476 644HAVE_STRERROR_R_FALSE
645HAVE_STRERROR_R_TRUE
e440a328 646HAVE_SYS_MMAN_H_FALSE
647HAVE_SYS_MMAN_H_TRUE
f555a9df 648PTHREAD_LIBS
649PTHREAD_CFLAGS
cea7ac49 650NET_LIBS
7d17fab3 651MATH_LIBS
b5f8bff0 652GOC_IS_LLGO_FALSE
653GOC_IS_LLGO_TRUE
242418a3 654GO_SPLIT_STACK
e440a328 655USING_SPLIT_STACK_FALSE
656USING_SPLIT_STACK_TRUE
657SPLIT_STACK
f7b28005 658HWCAP_CFLAGS
69db433d 659OSCFLAGS
d477de41 660GO_SYSCALL_OS_ARCH_FILE
661GO_SYSCALL_OS_FILE
662GO_LIBCALL_OS_ARCH_FILE
663GO_LIBCALL_OS_FILE
91d733e1 664ALLGOARCHFAMILY
665ALLGOARCH
7731bf71 666GOARCH
6222f4a8 667USE_DEJAGNU
91d733e1 668ALLGOOS
7731bf71 669GOOS
be239ed2 670LIBGO_IS_BSD_FALSE
671LIBGO_IS_BSD_TRUE
03118c21 672LIBGO_IS_AIX_FALSE
673LIBGO_IS_AIX_TRUE
cea7ac49 674LIBGO_IS_SOLARIS_FALSE
675LIBGO_IS_SOLARIS_TRUE
e440a328 676LIBGO_IS_RTEMS_FALSE
677LIBGO_IS_RTEMS_TRUE
0ce10ea1 678LIBGO_IS_DRAGONFLY_FALSE
679LIBGO_IS_DRAGONFLY_TRUE
fb08d005 680LIBGO_IS_OPENBSD_FALSE
681LIBGO_IS_OPENBSD_TRUE
86240434 682LIBGO_IS_NETBSD_FALSE
683LIBGO_IS_NETBSD_TRUE
e440a328 684LIBGO_IS_LINUX_FALSE
685LIBGO_IS_LINUX_TRUE
524b52f8 686LIBGO_IS_IRIX_FALSE
687LIBGO_IS_IRIX_TRUE
e440a328 688LIBGO_IS_FREEBSD_FALSE
689LIBGO_IS_FREEBSD_TRUE
690LIBGO_IS_DARWIN_FALSE
691LIBGO_IS_DARWIN_TRUE
4180345a 692go_include
7920387d 693LIBATOMIC
63e457ad 694USE_LIBFFI_FALSE
695USE_LIBFFI_TRUE
e440a328 696LIBFFIINCS
697LIBFFI
61efdf66 698nover_glibgo_toolexeclibdir
e440a328 699glibgo_toolexeclibdir
700glibgo_toolexecdir
e440a328 701WERROR
702WARN_FLAGS
a27e1015 703CC_FOR_BUILD
e440a328 704enable_static
705enable_shared
c9c0c1d2 706CPP
e440a328 707OTOOL64
708OTOOL
709LIPO
710NMEDIT
711DSYMUTIL
712AR
713OBJDUMP
714LN_S
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LIBTOOL
719OBJCOPY
720RANLIB
721LD
722FGREP
723EGREP
724GREP
c9c0c1d2 725SED
e440a328 726MAINT
727MAINTAINER_MODE_FALSE
728MAINTAINER_MODE_TRUE
ea2e69a4 729GOFLAGS
e440a328 730GOC
731am__fastdepCC_FALSE
732am__fastdepCC_TRUE
733CCDEPMODE
e92f1942 734am__nodep
e440a328 735AMDEPBACKSLASH
736AMDEP_FALSE
737AMDEP_TRUE
738am__quote
739am__include
740DEPDIR
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
ea2e69a4 748AM_BACKSLASH
749AM_DEFAULT_VERBOSITY
750AM_DEFAULT_V
751AM_V
e440a328 752am__untar
753am__tar
754AMTAR
755am__leading_dot
756SET_MAKE
757AWK
758mkdir_p
759MKDIR_P
760INSTALL_STRIP_PROGRAM
761STRIP
762install_sh
763MAKEINFO
764AUTOHEADER
765AUTOMAKE
766AUTOCONF
767ACLOCAL
768VERSION
769PACKAGE
770CYGPATH_W
771am__isrc
772INSTALL_DATA
773INSTALL_SCRIPT
774INSTALL_PROGRAM
775target_os
776target_vendor
777target_cpu
778target
779host_os
780host_vendor
781host_cpu
782host
783build_os
784build_vendor
785build_cpu
786build
787multi_basedir
788libtool_VERSION
789target_alias
790host_alias
791build_alias
792LIBS
793ECHO_T
794ECHO_N
795ECHO_C
796DEFS
797mandir
798localedir
799libdir
800psdir
801pdfdir
802dvidir
803htmldir
804infodir
805docdir
806oldincludedir
807includedir
808localstatedir
809sharedstatedir
810sysconfdir
811datadir
812datarootdir
813libexecdir
814sbindir
815bindir
816program_transform_name
817prefix
818exec_prefix
819PACKAGE_URL
820PACKAGE_BUGREPORT
821PACKAGE_STRING
822PACKAGE_VERSION
823PACKAGE_TARNAME
824PACKAGE_NAME
825PATH_SEPARATOR
826SHELL'
827ac_subst_files=''
828ac_user_opts='
829enable_option_checking
830enable_multilib
ea2e69a4 831enable_silent_rules
e440a328 832enable_dependency_tracking
833enable_maintainer_mode
834with_gnu_ld
835enable_shared
836enable_static
837with_pic
838enable_fast_install
839enable_libtool_lock
75935341 840enable_werror
e440a328 841enable_version_specific_runtime_libs
842with_libffi
7920387d 843with_libatomic
4a273582 844with_system_libunwind
e440a328 845'
846 ac_precious_vars='build_alias
847host_alias
848target_alias
849CPP
850CPPFLAGS'
851
852
853# Initialize some variables set by options.
854ac_init_help=
855ac_init_version=false
856ac_unrecognized_opts=
857ac_unrecognized_sep=
858# The variables have the same names as the options, with
859# dashes changed to underlines.
860cache_file=/dev/null
861exec_prefix=NONE
862no_create=
863no_recursion=
864prefix=NONE
865program_prefix=NONE
866program_suffix=NONE
867program_transform_name=s,x,x,
868silent=
869site=
870srcdir=
871verbose=
872x_includes=NONE
873x_libraries=NONE
874
875# Installation directory options.
876# These are left unexpanded so users can "make install exec_prefix=/foo"
877# and all the variables that are supposed to be based on exec_prefix
878# by default will actually change.
879# Use braces instead of parens because sh, perl, etc. also accept them.
880# (The list follows the same order as the GNU Coding Standards.)
881bindir='${exec_prefix}/bin'
882sbindir='${exec_prefix}/sbin'
883libexecdir='${exec_prefix}/libexec'
884datarootdir='${prefix}/share'
885datadir='${datarootdir}'
886sysconfdir='${prefix}/etc'
887sharedstatedir='${prefix}/com'
888localstatedir='${prefix}/var'
889includedir='${prefix}/include'
890oldincludedir='/usr/include'
891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892infodir='${datarootdir}/info'
893htmldir='${docdir}'
894dvidir='${docdir}'
895pdfdir='${docdir}'
896psdir='${docdir}'
897libdir='${exec_prefix}/lib'
898localedir='${datarootdir}/locale'
899mandir='${datarootdir}/man'
900
901ac_prev=
902ac_dashdash=
903for ac_option
904do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
ea2e69a4 913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
e440a328 916 esac
917
918 # Accept the important Cygnus configure options, so we can diagnose typos.
919
920 case $ac_dashdash$ac_option in
921 --)
922 ac_dashdash=yes ;;
923
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
925 ac_prev=bindir ;;
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 bindir=$ac_optarg ;;
928
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
933
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
940
941 --config-cache | -C)
942 cache_file=config.cache ;;
943
944 -datadir | --datadir | --datadi | --datad)
945 ac_prev=datadir ;;
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
948
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
955
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ea2e69a4 960 as_fn_error $? "invalid feature name: $ac_useropt"
e440a328 961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965"enable_$ac_useropt"
966"*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=no ;;
971
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
976
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
981
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ea2e69a4 986 as_fn_error $? "invalid feature name: $ac_useropt"
e440a328 987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
990 *"
991"enable_$ac_useropt"
992"*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=\$ac_optarg ;;
997
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1006
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1009 with_gas=yes ;;
1010
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1017
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1022
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1024 ac_prev=htmldir ;;
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1026 | --ht=*)
1027 htmldir=$ac_optarg ;;
1028
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1035
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1037 ac_prev=infodir ;;
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1040
1041 -libdir | --libdir | --libdi | --libd)
1042 ac_prev=libdir ;;
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1045
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1052
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1057
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1064
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1066 ac_prev=mandir ;;
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1069
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1072 with_fp=no ;;
1073
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1076 no_create=yes ;;
1077
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 no_recursion=yes ;;
1081
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1090
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1092 ac_prev=prefix ;;
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1095
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1102
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1109
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1126
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1128 ac_prev=pdfdir ;;
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1131
1132 -psdir | --psdir | --psdi | --psd | --ps)
1133 ac_prev=psdir ;;
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 psdir=$ac_optarg ;;
1136
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1139 silent=yes ;;
1140
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142 ac_prev=sbindir ;;
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144 | --sbi=* | --sb=*)
1145 sbindir=$ac_optarg ;;
1146
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1150 | --sha | --sh)
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155 | --sha=* | --sh=*)
1156 sharedstatedir=$ac_optarg ;;
1157
1158 -site | --site | --sit)
1159 ac_prev=site ;;
1160 -site=* | --site=* | --sit=*)
1161 site=$ac_optarg ;;
1162
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164 ac_prev=srcdir ;;
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1167
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1174
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1179
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181 verbose=yes ;;
1182
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1185
1186 -with-* | --with-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ea2e69a4 1190 as_fn_error $? "invalid package name: $ac_useropt"
e440a328 1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=\$ac_optarg ;;
1201
1202 -without-* | --without-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ea2e69a4 1206 as_fn_error $? "invalid package name: $ac_useropt"
e440a328 1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211"with_$ac_useropt"
1212"*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=no ;;
1217
1218 --x)
1219 # Obsolete; use --with-x.
1220 with_x=yes ;;
1221
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1228
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1235
ea2e69a4 1236 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237Try \`$0 --help' for more information"
e440a328 1238 ;;
1239
1240 *=*)
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' | [0-9]* | *[!_$as_cr_alnum]* )
ea2e69a4 1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
e440a328 1246 esac
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1249
1250 *)
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ea2e69a4 1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
e440a328 1256 ;;
1257
1258 esac
1259done
1260
1261if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ea2e69a4 1263 as_fn_error $? "missing argument to $ac_option"
e440a328 1264fi
1265
1266if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1268 no) ;;
ea2e69a4 1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
e440a328 1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac
1272fi
1273
1274# Check all directory arguments for consistency.
1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1279do
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1282 case $ac_val in
1283 */ )
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1286 esac
1287 # Be sure to have absolute directory names.
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
ea2e69a4 1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
e440a328 1293done
1294
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
e440a328 1306 elif test "x$build_alias" != "x$host_alias"; then
1307 cross_compiling=yes
1308 fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ea2e69a4 1320 as_fn_error $? "working directory cannot be determined"
e440a328 1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ea2e69a4 1322 as_fn_error $? "pwd does not report name of working directory"
e440a328 1323
1324
1325# Find the source files, if location was not specified.
1326if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334$as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\/\)[^/].*/{
1340 s//\1/
1341 q
1342 }
1343 /^X\(\/\/\)$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\).*/{
1348 s//\1/
1349 q
1350 }
1351 s/.*/./; q'`
1352 srcdir=$ac_confdir
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 srcdir=..
1355 fi
1356else
1357 ac_srcdir_defaulted=no
1358fi
1359if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ea2e69a4 1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
e440a328 1362fi
1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1364ac_abs_confdir=`(
ea2e69a4 1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e440a328 1366 pwd)`
1367# When building in place, set srcdir=.
1368if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 srcdir=.
1370fi
1371# Remove unnecessary trailing slashes from srcdir.
1372# Double slashes in file names in object file debugging info
1373# mess up M-x gdb in Emacs.
1374case $srcdir in
1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376esac
1377for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382done
1383
1384#
1385# Report the --help message.
1386#
1387if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1390 cat <<_ACEOF
1391\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1392
1393Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396VAR=VALUE. See below for descriptions of some of the useful variables.
1397
1398Defaults for the options are specified in brackets.
1399
1400Configuration:
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
ea2e69a4 1405 -q, --quiet, --silent do not print \`checking ...' messages
e440a328 1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410
1411Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 [PREFIX]
1416
1417By default, \`make install' will install all the files in
1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420for instance \`--prefix=\$HOME'.
1421
1422For better control, use the options below.
1423
1424Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444_ACEOF
1445
1446 cat <<\_ACEOF
1447
1448Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
1453System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 --target=TARGET configure for building compilers for TARGET [HOST]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of package-unused version-unused:";;
1463 esac
1464 cat <<\_ACEOF
1465
1466Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-multilib build many library versions (default)
ea2e69a4 1471 --enable-silent-rules less verbose build output (undo: "make V=1")
1472 --disable-silent-rules verbose build output (undo: "make V=0")
1473 --enable-dependency-tracking
1474 do not reject slow dependency extractors
1475 --disable-dependency-tracking
1476 speeds up one-time build
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful (and
1479 sometimes confusing) to the casual installer
e440a328 1480 --enable-shared[=PKGS] build shared libraries [default=yes]
1481 --enable-static[=PKGS] build static libraries [default=yes]
1482 --enable-fast-install[=PKGS]
1483 optimize for fast installation [default=yes]
1484 --disable-libtool-lock avoid locking (might break parallel builds)
75935341 1485 --enable-werror turns on -Werror [default=yes]
e440a328 1486 --enable-version-specific-runtime-libs
1487 Specify that runtime libraries should be installed
1488 in a compiler-specific directory
1489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1494 --with-pic try to use only PIC/non-PIC objects [default=use
1495 both]
1496 --without-libffi don't use libffi
7920387d 1497 --without-libatomic don't use libatomic
4a273582 1498 --with-system-libunwind use installed libunwind
e440a328 1499
1500Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
ea2e69a4 1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e440a328 1507 you have headers in a nonstandard directory <include dir>
1508 GOC Go compiler command
ea2e69a4 1509 GOFLAGS Go compiler flags
e440a328 1510 CPP C preprocessor
1511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
1515Report bugs to the package provider.
1516_ACEOF
1517ac_status=$?
1518fi
1519
1520if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1525 continue
1526 ac_builddir=.
1527
1528case "$ac_dir" in
1529.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530*)
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1537 esac ;;
1538esac
1539ac_abs_top_builddir=$ac_pwd
1540ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541# for backward compatibility:
1542ac_top_builddir=$ac_top_build_prefix
1543
1544case $srcdir in
1545 .) # We are building in place.
1546 ac_srcdir=.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1553 *) # Relative name.
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1557esac
1558ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1559
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1568 else
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1572 done
1573fi
1574
1575test -n "$ac_init_help" && exit $ac_status
1576if $ac_init_version; then
1577 cat <<\_ACEOF
1578package-unused configure version-unused
ea2e69a4 1579generated by GNU Autoconf 2.69
e440a328 1580
ea2e69a4 1581Copyright (C) 2012 Free Software Foundation, Inc.
e440a328 1582This configure script is free software; the Free Software Foundation
1583gives unlimited permission to copy, distribute and modify it.
1584_ACEOF
1585 exit
1586fi
1587
1588## ------------------------ ##
1589## Autoconf initialization. ##
1590## ------------------------ ##
1591
1592# ac_fn_c_try_compile LINENO
1593# --------------------------
1594# Try to compile conftest.$ac_ext, and return whether this succeeded.
1595ac_fn_c_try_compile ()
1596{
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603esac
1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605$as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619else
1620 $as_echo "$as_me: failed program was:" >&5
1621sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624fi
ea2e69a4 1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
e440a328 1627
1628} # ac_fn_c_try_compile
1629
c9c0c1d2 1630# ac_fn_c_try_link LINENO
1631# -----------------------
1632# Try to link conftest.$ac_ext, and return whether this succeeded.
1633ac_fn_c_try_link ()
e440a328 1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c9c0c1d2 1636 rm -f conftest.$ac_objext conftest$ac_exeext
1637 if { { ac_try="$ac_link"
e440a328 1638case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641esac
1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643$as_echo "$ac_try_echo"; } >&5
c9c0c1d2 1644 (eval "$ac_link") 2>conftest.err
e440a328 1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1650 fi
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c9c0c1d2 1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
e440a328 1654 test ! -s conftest.err
c9c0c1d2 1655 } && test -s conftest$ac_exeext && {
1656 test "$cross_compiling" = yes ||
ea2e69a4 1657 test -x conftest$ac_exeext
e440a328 1658 }; then :
1659 ac_retval=0
1660else
1661 $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
c9c0c1d2 1664 ac_retval=1
e440a328 1665fi
c9c0c1d2 1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
e440a328 1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ea2e69a4 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
e440a328 1673
c9c0c1d2 1674} # ac_fn_c_try_link
e440a328 1675
1676# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677# -------------------------------------------------------
1678# Tests whether HEADER exists and can be compiled using the include files in
1679# INCLUDES, setting the cache variable VAR accordingly.
1680ac_fn_c_check_header_compile ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1685if eval \${$3+:} false; then :
e440a328 1686 $as_echo_n "(cached) " >&6
1687else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689/* end confdefs.h. */
1690$4
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_compile "$LINENO"; then :
1694 eval "$3=yes"
1695else
1696 eval "$3=no"
1697fi
1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699fi
1700eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702$as_echo "$ac_res" >&6; }
ea2e69a4 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e440a328 1704
1705} # ac_fn_c_check_header_compile
1706
c9c0c1d2 1707# ac_fn_c_try_cpp LINENO
1708# ----------------------
1709# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_cpp ()
e440a328 1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c9c0c1d2 1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
e440a328 1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
c9c0c1d2 1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
e440a328 1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
ea2e69a4 1728 test $ac_status = 0; } > conftest.i && {
c9c0c1d2 1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
e440a328 1730 test ! -s conftest.err
1731 }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
c9c0c1d2 1737 ac_retval=1
1738fi
ea2e69a4 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
c9c0c1d2 1741
1742} # ac_fn_c_try_cpp
1743
1744# ac_fn_c_try_run LINENO
1745# ----------------------
1746# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747# that executables *can* be run.
1748ac_fn_c_try_run ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1752case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=$ac_status
e440a328 1779fi
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ea2e69a4 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
e440a328 1783
c9c0c1d2 1784} # ac_fn_c_try_run
e440a328 1785
1786# ac_fn_c_check_func LINENO FUNC VAR
1787# ----------------------------------
1788# Tests whether FUNC exists, setting the cache variable VAR accordingly
1789ac_fn_c_check_func ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1794if eval \${$3+:} false; then :
e440a328 1795 $as_echo_n "(cached) " >&6
1796else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1801#define $2 innocuous_$2
1802
1803/* System header to define __stub macros and hopefully few prototypes,
1804 which can conflict with char $2 (); below.
1805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1806 <limits.h> exists even on freestanding compilers. */
1807
1808#ifdef __STDC__
1809# include <limits.h>
1810#else
1811# include <assert.h>
1812#endif
1813
1814#undef $2
1815
1816/* Override any GCC internal prototype to avoid an error.
1817 Use char because int might match the return type of a GCC
1818 builtin and then its argument prototype would still apply. */
1819#ifdef __cplusplus
1820extern "C"
1821#endif
1822char $2 ();
1823/* The GNU C library defines this for functions which it implements
1824 to always fail with ENOSYS. Some functions are actually named
1825 something starting with __ and the normal name is an alias. */
1826#if defined __stub_$2 || defined __stub___$2
1827choke me
1828#endif
1829
1830int
1831main ()
1832{
1833return $2 ();
1834 ;
1835 return 0;
1836}
1837_ACEOF
1838if ac_fn_c_try_link "$LINENO"; then :
1839 eval "$3=yes"
1840else
1841 eval "$3=no"
1842fi
1843rm -f core conftest.err conftest.$ac_objext \
1844 conftest$ac_exeext conftest.$ac_ext
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
ea2e69a4 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e440a328 1850
1851} # ac_fn_c_check_func
1852
1853# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1854# -------------------------------------------------------
1855# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1856# the include files in INCLUDES and setting the cache variable VAR
1857# accordingly.
1858ac_fn_c_check_header_mongrel ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ea2e69a4 1861 if eval \${$3+:} false; then :
e440a328 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1864if eval \${$3+:} false; then :
e440a328 1865 $as_echo_n "(cached) " >&6
1866fi
1867eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870else
1871 # Is the header compilable?
1872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1873$as_echo_n "checking $2 usability... " >&6; }
1874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h. */
1876$4
1877#include <$2>
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880 ac_header_compiler=yes
1881else
1882 ac_header_compiler=no
1883fi
1884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1886$as_echo "$ac_header_compiler" >&6; }
1887
1888# Is the header present?
1889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1890$as_echo_n "checking $2 presence... " >&6; }
1891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h. */
1893#include <$2>
1894_ACEOF
1895if ac_fn_c_try_cpp "$LINENO"; then :
1896 ac_header_preproc=yes
1897else
1898 ac_header_preproc=no
1899fi
ea2e69a4 1900rm -f conftest.err conftest.i conftest.$ac_ext
e440a328 1901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1902$as_echo "$ac_header_preproc" >&6; }
1903
1904# So? What about this header?
1905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1906 yes:no: )
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1908$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1911 ;;
1912 no:yes:* )
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1914$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1916$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1918$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1920$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923 ;;
1924esac
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1927if eval \${$3+:} false; then :
e440a328 1928 $as_echo_n "(cached) " >&6
1929else
1930 eval "$3=\$ac_header_compiler"
1931fi
1932eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934$as_echo "$ac_res" >&6; }
1935fi
ea2e69a4 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e440a328 1937
1938} # ac_fn_c_check_header_mongrel
1939
1940# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1941# -------------------------------------------
1942# Tests whether TYPE exists after having included INCLUDES, setting cache
1943# variable VAR accordingly.
1944ac_fn_c_check_type ()
1945{
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948$as_echo_n "checking for $2... " >&6; }
ea2e69a4 1949if eval \${$3+:} false; then :
e440a328 1950 $as_echo_n "(cached) " >&6
1951else
1952 eval "$3=no"
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954/* end confdefs.h. */
1955$4
1956int
1957main ()
1958{
1959if (sizeof ($2))
1960 return 0;
1961 ;
1962 return 0;
1963}
1964_ACEOF
1965if ac_fn_c_try_compile "$LINENO"; then :
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h. */
1968$4
1969int
1970main ()
1971{
1972if (sizeof (($2)))
1973 return 0;
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978if ac_fn_c_try_compile "$LINENO"; then :
1979
1980else
1981 eval "$3=yes"
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989$as_echo "$ac_res" >&6; }
ea2e69a4 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e440a328 1991
1992} # ac_fn_c_check_type
d772e63b 1993
1994# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1995# --------------------------------------------
1996# Tries to find the compile-time value of EXPR in a program that includes
1997# INCLUDES, setting VAR accordingly. Returns whether the value could be
1998# computed
1999ac_fn_c_compute_int ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if test "$cross_compiling" = yes; then
2003 # Depending upon the size, compute the lo and hi bounds.
2004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$4
2007int
2008main ()
2009{
2010static int test_array [1 - 2 * !(($2) >= 0)];
ea2e69a4 2011test_array [0] = 0;
2012return test_array [0];
d772e63b 2013
2014 ;
2015 return 0;
2016}
2017_ACEOF
2018if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_lo=0 ac_mid=0
2020 while :; do
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023$4
2024int
2025main ()
2026{
2027static int test_array [1 - 2 * !(($2) <= $ac_mid)];
ea2e69a4 2028test_array [0] = 0;
2029return test_array [0];
d772e63b 2030
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_hi=$ac_mid; break
2037else
2038 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2039 if test $ac_lo -le $ac_mid; then
2040 ac_lo= ac_hi=
2041 break
2042 fi
2043 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 done
2047else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h. */
2050$4
2051int
2052main ()
2053{
2054static int test_array [1 - 2 * !(($2) < 0)];
ea2e69a4 2055test_array [0] = 0;
2056return test_array [0];
d772e63b 2057
2058 ;
2059 return 0;
2060}
2061_ACEOF
2062if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_hi=-1 ac_mid=-1
2064 while :; do
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h. */
2067$4
2068int
2069main ()
2070{
2071static int test_array [1 - 2 * !(($2) >= $ac_mid)];
ea2e69a4 2072test_array [0] = 0;
2073return test_array [0];
d772e63b 2074
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_lo=$ac_mid; break
2081else
2082 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2083 if test $ac_mid -le $ac_hi; then
2084 ac_lo= ac_hi=
2085 break
2086 fi
2087 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 done
2091else
2092 ac_lo= ac_hi=
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097# Binary search between lo and hi bounds.
2098while test "x$ac_lo" != "x$ac_hi"; do
2099 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h. */
2102$4
2103int
2104main ()
2105{
2106static int test_array [1 - 2 * !(($2) <= $ac_mid)];
ea2e69a4 2107test_array [0] = 0;
2108return test_array [0];
d772e63b 2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=$ac_mid
2116else
2117 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120done
2121case $ac_lo in #((
2122?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2123'') ac_retval=1 ;;
2124esac
2125 else
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127/* end confdefs.h. */
2128$4
2129static long int longval () { return $2; }
2130static unsigned long int ulongval () { return $2; }
2131#include <stdio.h>
2132#include <stdlib.h>
2133int
2134main ()
2135{
2136
2137 FILE *f = fopen ("conftest.val", "w");
2138 if (! f)
2139 return 1;
2140 if (($2) < 0)
2141 {
2142 long int i = longval ();
2143 if (i != ($2))
2144 return 1;
2145 fprintf (f, "%ld", i);
2146 }
2147 else
2148 {
2149 unsigned long int i = ulongval ();
2150 if (i != ($2))
2151 return 1;
2152 fprintf (f, "%lu", i);
2153 }
2154 /* Do not output a trailing newline, as this causes \r\n confusion
2155 on some platforms. */
2156 return ferror (f) || fclose (f) != 0;
2157
2158 ;
2159 return 0;
2160}
2161_ACEOF
2162if ac_fn_c_try_run "$LINENO"; then :
2163 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2164else
2165 ac_retval=1
2166fi
2167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2168 conftest.$ac_objext conftest.beam conftest.$ac_ext
2169rm -f conftest.val
2170
2171 fi
ea2e69a4 2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 as_fn_set_status $ac_retval
d772e63b 2174
2175} # ac_fn_c_compute_int
e440a328 2176cat >config.log <<_ACEOF
2177This file contains any messages produced by compilers while
2178running configure, to aid debugging if configure makes a mistake.
2179
2180It was created by package-unused $as_me version-unused, which was
ea2e69a4 2181generated by GNU Autoconf 2.69. Invocation command line was
e440a328 2182
2183 $ $0 $@
2184
2185_ACEOF
2186exec 5>>config.log
2187{
2188cat <<_ASUNAME
2189## --------- ##
2190## Platform. ##
2191## --------- ##
2192
2193hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2194uname -m = `(uname -m) 2>/dev/null || echo unknown`
2195uname -r = `(uname -r) 2>/dev/null || echo unknown`
2196uname -s = `(uname -s) 2>/dev/null || echo unknown`
2197uname -v = `(uname -v) 2>/dev/null || echo unknown`
2198
2199/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2200/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2201
2202/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2203/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2204/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2205/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2206/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2207/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2208/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2209
2210_ASUNAME
2211
2212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213for as_dir in $PATH
2214do
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 $as_echo "PATH: $as_dir"
2218 done
2219IFS=$as_save_IFS
2220
2221} >&5
2222
2223cat >&5 <<_ACEOF
2224
2225
2226## ----------- ##
2227## Core tests. ##
2228## ----------- ##
2229
2230_ACEOF
2231
2232
2233# Keep a trace of the command line.
2234# Strip out --no-create and --no-recursion so they do not pile up.
2235# Strip out --silent because we don't want to record it for future runs.
2236# Also quote any args containing shell meta-characters.
2237# Make two passes to allow for proper duplicate-argument suppression.
2238ac_configure_args=
2239ac_configure_args0=
2240ac_configure_args1=
2241ac_must_keep_next=false
2242for ac_pass in 1 2
2243do
2244 for ac_arg
2245 do
2246 case $ac_arg in
2247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2249 | -silent | --silent | --silen | --sile | --sil)
2250 continue ;;
2251 *\'*)
2252 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2253 esac
2254 case $ac_pass in
2255 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2256 2)
2257 as_fn_append ac_configure_args1 " '$ac_arg'"
2258 if test $ac_must_keep_next = true; then
2259 ac_must_keep_next=false # Got value, back to normal.
2260 else
2261 case $ac_arg in
2262 *=* | --config-cache | -C | -disable-* | --disable-* \
2263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2265 | -with-* | --with-* | -without-* | --without-* | --x)
2266 case "$ac_configure_args0 " in
2267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2268 esac
2269 ;;
2270 -* ) ac_must_keep_next=true ;;
2271 esac
2272 fi
2273 as_fn_append ac_configure_args " '$ac_arg'"
2274 ;;
2275 esac
2276 done
2277done
2278{ ac_configure_args0=; unset ac_configure_args0;}
2279{ ac_configure_args1=; unset ac_configure_args1;}
2280
2281# When interrupted or exit'd, cleanup temporary files, and complete
2282# config.log. We remove comments because anyway the quotes in there
2283# would cause problems or look ugly.
2284# WARNING: Use '\'' to represent an apostrophe within the trap.
2285# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2286trap 'exit_status=$?
2287 # Save into config.log some information that might help in debugging.
2288 {
2289 echo
2290
ea2e69a4 2291 $as_echo "## ---------------- ##
e440a328 2292## Cache variables. ##
ea2e69a4 2293## ---------------- ##"
e440a328 2294 echo
2295 # The following way of writing the cache mishandles newlines in values,
2296(
2297 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2298 eval ac_val=\$$ac_var
2299 case $ac_val in #(
2300 *${as_nl}*)
2301 case $ac_var in #(
2302 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2303$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2304 esac
2305 case $ac_var in #(
2306 _ | IFS | as_nl) ;; #(
2307 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2308 *) { eval $ac_var=; unset $ac_var;} ;;
2309 esac ;;
2310 esac
2311 done
2312 (set) 2>&1 |
2313 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2314 *${as_nl}ac_space=\ *)
2315 sed -n \
2316 "s/'\''/'\''\\\\'\'''\''/g;
2317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2318 ;; #(
2319 *)
2320 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2321 ;;
2322 esac |
2323 sort
2324)
2325 echo
2326
ea2e69a4 2327 $as_echo "## ----------------- ##
e440a328 2328## Output variables. ##
ea2e69a4 2329## ----------------- ##"
e440a328 2330 echo
2331 for ac_var in $ac_subst_vars
2332 do
2333 eval ac_val=\$$ac_var
2334 case $ac_val in
2335 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336 esac
2337 $as_echo "$ac_var='\''$ac_val'\''"
2338 done | sort
2339 echo
2340
2341 if test -n "$ac_subst_files"; then
ea2e69a4 2342 $as_echo "## ------------------- ##
e440a328 2343## File substitutions. ##
ea2e69a4 2344## ------------------- ##"
e440a328 2345 echo
2346 for ac_var in $ac_subst_files
2347 do
2348 eval ac_val=\$$ac_var
2349 case $ac_val in
2350 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351 esac
2352 $as_echo "$ac_var='\''$ac_val'\''"
2353 done | sort
2354 echo
2355 fi
2356
2357 if test -s confdefs.h; then
ea2e69a4 2358 $as_echo "## ----------- ##
e440a328 2359## confdefs.h. ##
ea2e69a4 2360## ----------- ##"
e440a328 2361 echo
2362 cat confdefs.h
2363 echo
2364 fi
2365 test "$ac_signal" != 0 &&
2366 $as_echo "$as_me: caught signal $ac_signal"
2367 $as_echo "$as_me: exit $exit_status"
2368 } >&5
2369 rm -f core *.core core.conftest.* &&
2370 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2371 exit $exit_status
2372' 0
2373for ac_signal in 1 2 13 15; do
2374 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2375done
2376ac_signal=0
2377
2378# confdefs.h avoids OS command line length limits that DEFS can exceed.
2379rm -f -r conftest* confdefs.h
2380
2381$as_echo "/* confdefs.h */" > confdefs.h
2382
2383# Predefined preprocessor variables.
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_NAME "$PACKAGE_NAME"
2387_ACEOF
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2391_ACEOF
2392
2393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_VERSION "$PACKAGE_VERSION"
2395_ACEOF
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_STRING "$PACKAGE_STRING"
2399_ACEOF
2400
2401cat >>confdefs.h <<_ACEOF
2402#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2403_ACEOF
2404
2405cat >>confdefs.h <<_ACEOF
2406#define PACKAGE_URL "$PACKAGE_URL"
2407_ACEOF
2408
2409
2410# Let the site file select an alternate cache file if it wants to.
2411# Prefer an explicitly selected file to automatically selected ones.
2412ac_site_file1=NONE
2413ac_site_file2=NONE
2414if test -n "$CONFIG_SITE"; then
ea2e69a4 2415 # We do not want a PATH search for config.site.
2416 case $CONFIG_SITE in #((
2417 -*) ac_site_file1=./$CONFIG_SITE;;
2418 */*) ac_site_file1=$CONFIG_SITE;;
2419 *) ac_site_file1=./$CONFIG_SITE;;
2420 esac
e440a328 2421elif test "x$prefix" != xNONE; then
2422 ac_site_file1=$prefix/share/config.site
2423 ac_site_file2=$prefix/etc/config.site
2424else
2425 ac_site_file1=$ac_default_prefix/share/config.site
2426 ac_site_file2=$ac_default_prefix/etc/config.site
2427fi
2428for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2429do
2430 test "x$ac_site_file" = xNONE && continue
ea2e69a4 2431 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
e440a328 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2433$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2434 sed 's/^/| /' "$ac_site_file" >&5
ea2e69a4 2435 . "$ac_site_file" \
2436 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438as_fn_error $? "failed to load site script $ac_site_file
2439See \`config.log' for more details" "$LINENO" 5; }
e440a328 2440 fi
2441done
2442
2443if test -r "$cache_file"; then
ea2e69a4 2444 # Some versions of bash will fail to source /dev/null (special files
2445 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2446 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
e440a328 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2448$as_echo "$as_me: loading cache $cache_file" >&6;}
2449 case $cache_file in
2450 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2451 *) . "./$cache_file";;
2452 esac
2453 fi
2454else
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2456$as_echo "$as_me: creating cache $cache_file" >&6;}
2457 >$cache_file
2458fi
2459
2460# Check that the precious variables saved in the cache have kept the same
2461# value.
2462ac_cache_corrupted=false
2463for ac_var in $ac_precious_vars; do
2464 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2465 eval ac_new_set=\$ac_env_${ac_var}_set
2466 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2467 eval ac_new_val=\$ac_env_${ac_var}_value
2468 case $ac_old_set,$ac_new_set in
2469 set,)
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2471$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2472 ac_cache_corrupted=: ;;
2473 ,set)
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2475$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2476 ac_cache_corrupted=: ;;
2477 ,);;
2478 *)
2479 if test "x$ac_old_val" != "x$ac_new_val"; then
2480 # differences in whitespace do not lead to failure.
2481 ac_old_val_w=`echo x $ac_old_val`
2482 ac_new_val_w=`echo x $ac_new_val`
2483 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2485$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2486 ac_cache_corrupted=:
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2489$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2490 eval $ac_var=\$ac_old_val
2491 fi
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2493$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2495$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2496 fi;;
2497 esac
2498 # Pass precious variables to config.status.
2499 if test "$ac_new_set" = set; then
2500 case $ac_new_val in
2501 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2502 *) ac_arg=$ac_var=$ac_new_val ;;
2503 esac
2504 case " $ac_configure_args " in
2505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2506 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2507 esac
2508 fi
2509done
2510if $ac_cache_corrupted; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2514$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
ea2e69a4 2515 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
e440a328 2516fi
2517## -------------------- ##
2518## Main body of script. ##
2519## -------------------- ##
2520
2521ac_ext=c
2522ac_cpp='$CPP $CPPFLAGS'
2523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526
2527
2528
4a273582 2529
2530
2531
e440a328 2532ac_config_headers="$ac_config_headers config.h"
2533
2534
33d1d391 2535libtool_VERSION=13:0:0
e440a328 2536
2537
2538# Default to --enable-multilib
2539# Check whether --enable-multilib was given.
2540if test "${enable_multilib+set}" = set; then :
2541 enableval=$enable_multilib; case "$enableval" in
2542 yes) multilib=yes ;;
2543 no) multilib=no ;;
ea2e69a4 2544 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
e440a328 2545 esac
2546else
2547 multilib=yes
2548fi
2549
2550
2551# We may get other options which we leave undocumented:
2552# --with-target-subdir, --with-multisrctop, --with-multisubdir
2553# See config-ml.in if you want the gory details.
2554
2555if test "$srcdir" = "."; then
2556 if test "$with_target_subdir" != "."; then
2557 multi_basedir="$srcdir/$with_multisrctop../.."
2558 else
2559 multi_basedir="$srcdir/$with_multisrctop.."
2560 fi
2561else
2562 multi_basedir="$srcdir/.."
2563fi
2564
2565
2566# Even if the default multilib is not a cross compilation,
2567# it may be that some of the other multilibs are.
2568if test $cross_compiling = no && test $multilib = yes \
2569 && test "x${with_multisubdir}" != x ; then
2570 cross_compiling=maybe
2571fi
2572
2573ac_config_commands="$ac_config_commands default-1"
2574
2575
2576ac_aux_dir=
2577for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
ea2e69a4 2578 if test -f "$ac_dir/install-sh"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/install-sh -c"
2581 break
2582 elif test -f "$ac_dir/install.sh"; then
2583 ac_aux_dir=$ac_dir
2584 ac_install_sh="$ac_aux_dir/install.sh -c"
2585 break
2586 elif test -f "$ac_dir/shtool"; then
2587 ac_aux_dir=$ac_dir
2588 ac_install_sh="$ac_aux_dir/shtool install -c"
2589 break
2590 fi
e440a328 2591done
2592if test -z "$ac_aux_dir"; then
ea2e69a4 2593 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
e440a328 2594fi
2595
2596# These three variables are undocumented and unsupported,
2597# and are intended to be withdrawn in a future Autoconf release.
2598# They can cause serious problems if a builder's source tree is in a directory
2599# whose full name contains unusual characters.
2600ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2601ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2602ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2603
2604
2605# Make sure we can run config.sub.
2606$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ea2e69a4 2607 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
e440a328 2608
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2610$as_echo_n "checking build system type... " >&6; }
ea2e69a4 2611if ${ac_cv_build+:} false; then :
e440a328 2612 $as_echo_n "(cached) " >&6
2613else
2614 ac_build_alias=$build_alias
2615test "x$ac_build_alias" = x &&
2616 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2617test "x$ac_build_alias" = x &&
ea2e69a4 2618 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
e440a328 2619ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ea2e69a4 2620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
e440a328 2621
2622fi
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2624$as_echo "$ac_cv_build" >&6; }
2625case $ac_cv_build in
2626*-*-*) ;;
ea2e69a4 2627*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
e440a328 2628esac
2629build=$ac_cv_build
2630ac_save_IFS=$IFS; IFS='-'
2631set x $ac_cv_build
2632shift
2633build_cpu=$1
2634build_vendor=$2
2635shift; shift
2636# Remember, the first character of IFS is used to create $*,
2637# except with old shells:
2638build_os=$*
2639IFS=$ac_save_IFS
2640case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2641
2642
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2644$as_echo_n "checking host system type... " >&6; }
ea2e69a4 2645if ${ac_cv_host+:} false; then :
e440a328 2646 $as_echo_n "(cached) " >&6
2647else
2648 if test "x$host_alias" = x; then
2649 ac_cv_host=$ac_cv_build
2650else
2651 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ea2e69a4 2652 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
e440a328 2653fi
2654
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2657$as_echo "$ac_cv_host" >&6; }
2658case $ac_cv_host in
2659*-*-*) ;;
ea2e69a4 2660*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
e440a328 2661esac
2662host=$ac_cv_host
2663ac_save_IFS=$IFS; IFS='-'
2664set x $ac_cv_host
2665shift
2666host_cpu=$1
2667host_vendor=$2
2668shift; shift
2669# Remember, the first character of IFS is used to create $*,
2670# except with old shells:
2671host_os=$*
2672IFS=$ac_save_IFS
2673case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2674
2675
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2677$as_echo_n "checking target system type... " >&6; }
ea2e69a4 2678if ${ac_cv_target+:} false; then :
e440a328 2679 $as_echo_n "(cached) " >&6
2680else
2681 if test "x$target_alias" = x; then
2682 ac_cv_target=$ac_cv_host
2683else
2684 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ea2e69a4 2685 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
e440a328 2686fi
2687
2688fi
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2690$as_echo "$ac_cv_target" >&6; }
2691case $ac_cv_target in
2692*-*-*) ;;
ea2e69a4 2693*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
e440a328 2694esac
2695target=$ac_cv_target
2696ac_save_IFS=$IFS; IFS='-'
2697set x $ac_cv_target
2698shift
2699target_cpu=$1
2700target_vendor=$2
2701shift; shift
2702# Remember, the first character of IFS is used to create $*,
2703# except with old shells:
2704target_os=$*
2705IFS=$ac_save_IFS
2706case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2707
2708
2709# The aliases save the names the user supplied, while $host etc.
2710# will get canonicalized.
2711test -n "$target_alias" &&
2712 test "$program_prefix$program_suffix$program_transform_name" = \
2713 NONENONEs,x,x, &&
2714 program_prefix=${target_alias}-
2715
2716target_alias=${target_alias-$host_alias}
2717
ea2e69a4 2718am__api_version='1.15'
e440a328 2719
2720# Find a good install program. We prefer a C program (faster),
2721# so one script is as good as another. But avoid the broken or
2722# incompatible versions:
2723# SysV /etc/install, /usr/sbin/install
2724# SunOS /usr/etc/install
2725# IRIX /sbin/install
2726# AIX /bin/install
2727# AmigaOS /C/install, which installs bootblocks on floppy discs
2728# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2729# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2730# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2731# OS/2's system install, which has a completely different semantic
2732# ./install, which can be erroneously created by make from ./install.sh.
2733# Reject install programs that cannot install multiple files.
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2735$as_echo_n "checking for a BSD-compatible install... " >&6; }
2736if test -z "$INSTALL"; then
ea2e69a4 2737if ${ac_cv_path_install+:} false; then :
e440a328 2738 $as_echo_n "(cached) " >&6
2739else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 # Account for people who put trailing slashes in PATH elements.
2746case $as_dir/ in #((
2747 ./ | .// | /[cC]/* | \
2748 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2749 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2750 /usr/ucb/* ) ;;
2751 *)
2752 # OSF1 and SCO ODT 3.0 have their own names for install.
2753 # Don't use installbsd from OSF since it installs stuff as root
2754 # by default.
2755 for ac_prog in ginstall scoinst install; do
2756 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 2757 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e440a328 2758 if test $ac_prog = install &&
2759 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2760 # AIX install. It has an incompatible calling convention.
2761 :
2762 elif test $ac_prog = install &&
2763 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2764 # program-specific install script used by HP pwplus--don't use.
2765 :
2766 else
2767 rm -rf conftest.one conftest.two conftest.dir
2768 echo one > conftest.one
2769 echo two > conftest.two
2770 mkdir conftest.dir
2771 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2772 test -s conftest.one && test -s conftest.two &&
2773 test -s conftest.dir/conftest.one &&
2774 test -s conftest.dir/conftest.two
2775 then
2776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2777 break 3
2778 fi
2779 fi
2780 fi
2781 done
2782 done
2783 ;;
2784esac
2785
2786 done
2787IFS=$as_save_IFS
2788
2789rm -rf conftest.one conftest.two conftest.dir
2790
2791fi
2792 if test "${ac_cv_path_install+set}" = set; then
2793 INSTALL=$ac_cv_path_install
2794 else
2795 # As a last resort, use the slow shell script. Don't cache a
2796 # value for INSTALL within a source directory, because that will
2797 # break other packages using the cache if that directory is
2798 # removed, or if the value is a relative name.
2799 INSTALL=$ac_install_sh
2800 fi
2801fi
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2803$as_echo "$INSTALL" >&6; }
2804
2805# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2806# It thinks the first close brace ends the variable substitution.
2807test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2808
2809test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2810
2811test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2812
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2814$as_echo_n "checking whether build environment is sane... " >&6; }
e440a328 2815# Reject unsafe characters in $srcdir or the absolute working directory
2816# name. Accept space and tab only in the latter.
2817am_lf='
2818'
2819case `pwd` in
2820 *[\\\"\#\$\&\'\`$am_lf]*)
ea2e69a4 2821 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
e440a328 2822esac
2823case $srcdir in
2824 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
ea2e69a4 2825 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
e440a328 2826esac
2827
ea2e69a4 2828# Do 'set' in a subshell so we don't clobber the current shell's
e440a328 2829# arguments. Must try -L first in case configure is actually a
2830# symlink; some systems play weird games with the mod time of symlinks
2831# (eg FreeBSD returns the mod time of the symlink's containing
2832# directory).
2833if (
ea2e69a4 2834 am_has_slept=no
2835 for am_try in 1 2; do
2836 echo "timestamp, slept: $am_has_slept" > conftest.file
2837 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2838 if test "$*" = "X"; then
2839 # -L didn't work.
2840 set X `ls -t "$srcdir/configure" conftest.file`
2841 fi
2842 if test "$*" != "X $srcdir/configure conftest.file" \
2843 && test "$*" != "X conftest.file $srcdir/configure"; then
2844
2845 # If neither matched, then we have a broken ls. This can happen
2846 # if, for instance, CONFIG_SHELL is bash and it inherits a
2847 # broken ls alias from the environment. This has actually
2848 # happened. Such a system could not be considered "sane".
2849 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2850 alias in your environment" "$LINENO" 5
2851 fi
2852 if test "$2" = conftest.file || test $am_try -eq 2; then
2853 break
2854 fi
2855 # Just in case.
2856 sleep 1
2857 am_has_slept=yes
2858 done
e440a328 2859 test "$2" = conftest.file
2860 )
2861then
2862 # Ok.
2863 :
2864else
ea2e69a4 2865 as_fn_error $? "newly created file is older than distributed files!
e440a328 2866Check your system clock" "$LINENO" 5
2867fi
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869$as_echo "yes" >&6; }
ea2e69a4 2870# If we didn't sleep, we still need to ensure time stamps of config.status and
2871# generated files are strictly newer.
2872am_sleep_pid=
2873if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2874 ( sleep 1 ) &
2875 am_sleep_pid=$!
2876fi
2877
2878rm -f conftest.file
2879
e440a328 2880test "$program_prefix" != NONE &&
2881 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2882# Use a double $ so make ignores it.
2883test "$program_suffix" != NONE &&
2884 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2885# Double any \ or $.
2886# By default was `s,x,x', remove it if useless.
2887ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2888program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2889
ea2e69a4 2890# Expand $ac_aux_dir to an absolute path.
2891am_aux_dir=`cd "$ac_aux_dir" && pwd`
e440a328 2892
2893if test x"${MISSING+set}" != xset; then
2894 case $am_aux_dir in
2895 *\ * | *\ *)
2896 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2897 *)
2898 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2899 esac
2900fi
2901# Use eval to expand $SHELL
ea2e69a4 2902if eval "$MISSING --is-lightweight"; then
2903 am_missing_run="$MISSING "
e440a328 2904else
2905 am_missing_run=
ea2e69a4 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2907$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
e440a328 2908fi
2909
ea2e69a4 2910if test x"${install_sh+set}" != xset; then
e440a328 2911 case $am_aux_dir in
2912 *\ * | *\ *)
2913 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2914 *)
2915 install_sh="\${SHELL} $am_aux_dir/install-sh"
2916 esac
2917fi
2918
ea2e69a4 2919# Installed binaries are usually stripped using 'strip' when the user
2920# run "make install-strip". However 'strip' might not be the right
e440a328 2921# tool to use in cross-compilation environments, therefore Automake
ea2e69a4 2922# will honor the 'STRIP' environment variable to overrule this program.
e440a328 2923if test "$cross_compiling" != no; then
2924 if test -n "$ac_tool_prefix"; then
2925 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2926set dummy ${ac_tool_prefix}strip; ac_word=$2
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 2929if ${ac_cv_prog_STRIP+:} false; then :
e440a328 2930 $as_echo_n "(cached) " >&6
2931else
2932 if test -n "$STRIP"; then
2933 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 2941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 2942 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946done
2947 done
2948IFS=$as_save_IFS
2949
2950fi
2951fi
2952STRIP=$ac_cv_prog_STRIP
2953if test -n "$STRIP"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2955$as_echo "$STRIP" >&6; }
2956else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958$as_echo "no" >&6; }
2959fi
2960
2961
2962fi
2963if test -z "$ac_cv_prog_STRIP"; then
2964 ac_ct_STRIP=$STRIP
2965 # Extract the first word of "strip", so it can be a program name with args.
2966set dummy strip; ac_word=$2
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 2969if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
e440a328 2970 $as_echo_n "(cached) " >&6
2971else
2972 if test -n "$ac_ct_STRIP"; then
2973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 2982 ac_cv_prog_ac_ct_STRIP="strip"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986done
2987 done
2988IFS=$as_save_IFS
2989
2990fi
2991fi
2992ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2993if test -n "$ac_ct_STRIP"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2995$as_echo "$ac_ct_STRIP" >&6; }
2996else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998$as_echo "no" >&6; }
2999fi
3000
3001 if test "x$ac_ct_STRIP" = x; then
3002 STRIP=":"
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005yes:)
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008ac_tool_warned=yes ;;
3009esac
3010 STRIP=$ac_ct_STRIP
3011 fi
3012else
3013 STRIP="$ac_cv_prog_STRIP"
3014fi
3015
3016fi
3017INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3018
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3020$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3021if test -z "$MKDIR_P"; then
ea2e69a4 3022 if ${ac_cv_path_mkdir+:} false; then :
e440a328 3023 $as_echo_n "(cached) " >&6
3024else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3027do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_prog in mkdir gmkdir; do
3031 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3032 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
e440a328 3033 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3034 'mkdir (GNU coreutils) '* | \
3035 'mkdir (coreutils) '* | \
3036 'mkdir (fileutils) '4.1*)
3037 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3038 break 3;;
3039 esac
3040 done
3041 done
3042 done
3043IFS=$as_save_IFS
3044
3045fi
3046
ea2e69a4 3047 test -d ./--version && rmdir ./--version
e440a328 3048 if test "${ac_cv_path_mkdir+set}" = set; then
3049 MKDIR_P="$ac_cv_path_mkdir -p"
3050 else
3051 # As a last resort, use the slow shell script. Don't cache a
3052 # value for MKDIR_P within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the value is a relative name.
e440a328 3055 MKDIR_P="$ac_install_sh -d"
3056 fi
3057fi
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3059$as_echo "$MKDIR_P" >&6; }
3060
e440a328 3061for ac_prog in gawk mawk nawk awk
3062do
3063 # Extract the first word of "$ac_prog", so it can be a program name with args.
3064set dummy $ac_prog; ac_word=$2
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3067if ${ac_cv_prog_AWK+:} false; then :
e440a328 3068 $as_echo_n "(cached) " >&6
3069else
3070 if test -n "$AWK"; then
3071 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3080 ac_cv_prog_AWK="$ac_prog"
3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3083 fi
3084done
3085 done
3086IFS=$as_save_IFS
3087
3088fi
3089fi
3090AWK=$ac_cv_prog_AWK
3091if test -n "$AWK"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3093$as_echo "$AWK" >&6; }
3094else
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097fi
3098
3099
3100 test -n "$AWK" && break
3101done
3102
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3104$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3105set x ${MAKE-make}
3106ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
ea2e69a4 3107if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
e440a328 3108 $as_echo_n "(cached) " >&6
3109else
3110 cat >conftest.make <<\_ACEOF
3111SHELL = /bin/sh
3112all:
3113 @echo '@@@%%%=$(MAKE)=@@@%%%'
3114_ACEOF
ea2e69a4 3115# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
e440a328 3116case `${MAKE-make} -f conftest.make 2>/dev/null` in
3117 *@@@%%%=?*=@@@%%%*)
3118 eval ac_cv_prog_make_${ac_make}_set=yes;;
3119 *)
3120 eval ac_cv_prog_make_${ac_make}_set=no;;
3121esac
3122rm -f conftest.make
3123fi
3124if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126$as_echo "yes" >&6; }
3127 SET_MAKE=
3128else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131 SET_MAKE="MAKE=${MAKE-make}"
3132fi
3133
3134rm -rf .tst 2>/dev/null
3135mkdir .tst 2>/dev/null
3136if test -d .tst; then
3137 am__leading_dot=.
3138else
3139 am__leading_dot=_
3140fi
3141rmdir .tst 2>/dev/null
3142
ea2e69a4 3143# Check whether --enable-silent-rules was given.
3144if test "${enable_silent_rules+set}" = set; then :
3145 enableval=$enable_silent_rules;
3146fi
3147
3148case $enable_silent_rules in # (((
3149 yes) AM_DEFAULT_VERBOSITY=0;;
3150 no) AM_DEFAULT_VERBOSITY=1;;
3151 *) AM_DEFAULT_VERBOSITY=1;;
3152esac
3153am_make=${MAKE-make}
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3155$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3156if ${am_cv_make_support_nested_variables+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158else
3159 if $as_echo 'TRUE=$(BAR$(V))
3160BAR0=false
3161BAR1=true
3162V=1
3163am__doit:
3164 @$(TRUE)
3165.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3166 am_cv_make_support_nested_variables=yes
3167else
3168 am_cv_make_support_nested_variables=no
3169fi
3170fi
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3172$as_echo "$am_cv_make_support_nested_variables" >&6; }
3173if test $am_cv_make_support_nested_variables = yes; then
3174 AM_V='$(V)'
3175 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3176else
3177 AM_V=$AM_DEFAULT_VERBOSITY
3178 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3179fi
3180AM_BACKSLASH='\'
3181
e440a328 3182if test "`cd $srcdir && pwd`" != "`pwd`"; then
3183 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3184 # is not polluted with repeated "-I."
3185 am__isrc=' -I$(srcdir)'
3186 # test to see if srcdir already configured
3187 if test -f $srcdir/config.status; then
ea2e69a4 3188 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
e440a328 3189 fi
3190fi
3191
3192# test whether we have cygpath
3193if test -z "$CYGPATH_W"; then
3194 if (cygpath --version) >/dev/null 2>/dev/null; then
3195 CYGPATH_W='cygpath -w'
3196 else
3197 CYGPATH_W=echo
3198 fi
3199fi
3200
3201
3202# Define the identity of the package.
3203 PACKAGE='libgo'
3204 VERSION='version-unused'
3205
3206
3207# Some tools Automake needs.
3208
3209ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3210
3211
3212AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3213
3214
3215AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3216
3217
3218AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3219
3220
3221MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3222
ea2e69a4 3223# For better backward compatibility. To be removed once Automake 1.9.x
3224# dies out for good. For more background, see:
3225# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3226# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3227mkdir_p='$(MKDIR_P)'
3228
3229# We need awk for the "check" target (and possibly the TAP driver). The
3230# system "awk" is bad on some platforms.
e92f1942 3231# Always define AMTAR for backward compatibility. Yes, it's still used
3232# in the wild :-( We should find a proper way to deprecate it ...
3233AMTAR='$${TAR-tar}'
e440a328 3234
ea2e69a4 3235
3236# We'll loop over all known methods to create a tar archive until one works.
3237_am_tools='gnutar pax cpio none'
3238
e92f1942 3239am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
e440a328 3240
3241
3242
3243
3244
3245
ea2e69a4 3246# POSIX will say in a future version that running "rm -f" with no argument
3247# is OK; and we want to be able to make that assumption in our Makefile
3248# recipes. So use an aggressive probe to check that the usage we want is
3249# actually supported "in the wild" to an acceptable degree.
3250# See automake bug#10828.
3251# To make any issue more visible, cause the running configure to be aborted
3252# by default if the 'rm' program in use doesn't match our expectations; the
3253# user can still override this though.
3254if rm -f && rm -fr && rm -rf; then : OK; else
3255 cat >&2 <<'END'
3256Oops!
3257
3258Your 'rm' program seems unable to run without file operands specified
3259on the command line, even when the '-f' option is present. This is contrary
3260to the behaviour of most rm programs out there, and not conforming with
3261the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3262
3263Please tell bug-automake@gnu.org about your system, including the value
3264of your $PATH and any error possibly output before this message. This
3265can help us improve future automake versions.
3266
3267END
3268 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3269 echo 'Configuration will proceed anyway, since you have set the' >&2
3270 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3271 echo >&2
3272 else
3273 cat >&2 <<'END'
3274Aborting the configuration process, to ensure you take notice of the issue.
3275
3276You can download and install GNU coreutils to get an 'rm' implementation
3277that behaves properly: <http://www.gnu.org/software/coreutils/>.
3278
3279If you want to complete the configuration process using your problematic
3280'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3281to "yes", and re-run configure.
3282
3283END
3284 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3285 fi
3286fi
3287
3288
e440a328 3289
3290
3291
3292
3293ac_ext=c
3294ac_cpp='$CPP $CPPFLAGS'
3295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298if test -n "$ac_tool_prefix"; then
3299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3300set dummy ${ac_tool_prefix}gcc; ac_word=$2
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3303if ${ac_cv_prog_CC+:} false; then :
e440a328 3304 $as_echo_n "(cached) " >&6
3305else
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3316 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320done
3321 done
3322IFS=$as_save_IFS
3323
3324fi
3325fi
3326CC=$ac_cv_prog_CC
3327if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329$as_echo "$CC" >&6; }
3330else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335
3336fi
3337if test -z "$ac_cv_prog_CC"; then
3338 ac_ct_CC=$CC
3339 # Extract the first word of "gcc", so it can be a program name with args.
3340set dummy gcc; ac_word=$2
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3343if ${ac_cv_prog_ac_ct_CC+:} false; then :
e440a328 3344 $as_echo_n "(cached) " >&6
3345else
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3356 ac_cv_prog_ac_ct_CC="gcc"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360done
3361 done
3362IFS=$as_save_IFS
3363
3364fi
3365fi
3366ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369$as_echo "$ac_ct_CC" >&6; }
3370else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372$as_echo "no" >&6; }
3373fi
3374
3375 if test "x$ac_ct_CC" = x; then
3376 CC=""
3377 else
3378 case $cross_compiling:$ac_tool_warned in
3379yes:)
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382ac_tool_warned=yes ;;
3383esac
3384 CC=$ac_ct_CC
3385 fi
3386else
3387 CC="$ac_cv_prog_CC"
3388fi
3389
3390if test -z "$CC"; then
3391 if test -n "$ac_tool_prefix"; then
3392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3393set dummy ${ac_tool_prefix}cc; ac_word=$2
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3396if ${ac_cv_prog_CC+:} false; then :
e440a328 3397 $as_echo_n "(cached) " >&6
3398else
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3401else
3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403for as_dir in $PATH
3404do
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3409 ac_cv_prog_CC="${ac_tool_prefix}cc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413done
3414 done
3415IFS=$as_save_IFS
3416
3417fi
3418fi
3419CC=$ac_cv_prog_CC
3420if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422$as_echo "$CC" >&6; }
3423else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425$as_echo "no" >&6; }
3426fi
3427
3428
3429 fi
3430fi
3431if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433set dummy cc; ac_word=$2
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3436if ${ac_cv_prog_CC+:} false; then :
e440a328 3437 $as_echo_n "(cached) " >&6
3438else
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC="$CC" # Let the user override the test.
3441else
3442 ac_prog_rejected=no
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected=yes
3452 continue
3453 fi
3454 ac_cv_prog_CC="cc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459 done
3460IFS=$as_save_IFS
3461
3462if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy $ac_cv_prog_CC
3465 shift
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3470 shift
3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3472 fi
3473fi
3474fi
3475fi
3476CC=$ac_cv_prog_CC
3477if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479$as_echo "$CC" >&6; }
3480else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482$as_echo "no" >&6; }
3483fi
3484
3485
3486fi
3487if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog in cl.exe
3490 do
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3495if ${ac_cv_prog_CC+:} false; then :
e440a328 3496 $as_echo_n "(cached) " >&6
3497else
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512done
3513 done
3514IFS=$as_save_IFS
3515
3516fi
3517fi
3518CC=$ac_cv_prog_CC
3519if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521$as_echo "$CC" >&6; }
3522else
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524$as_echo "no" >&6; }
3525fi
3526
3527
3528 test -n "$CC" && break
3529 done
3530fi
3531if test -z "$CC"; then
3532 ac_ct_CC=$CC
3533 for ac_prog in cl.exe
3534do
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536set dummy $ac_prog; ac_word=$2
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 3539if ${ac_cv_prog_ac_ct_CC+:} false; then :
e440a328 3540 $as_echo_n "(cached) " >&6
3541else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544else
3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3547do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 3552 ac_cv_prog_ac_ct_CC="$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556done
3557 done
3558IFS=$as_save_IFS
3559
3560fi
3561fi
3562ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565$as_echo "$ac_ct_CC" >&6; }
3566else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568$as_echo "no" >&6; }
3569fi
3570
3571
3572 test -n "$ac_ct_CC" && break
3573done
3574
3575 if test "x$ac_ct_CC" = x; then
3576 CC=""
3577 else
3578 case $cross_compiling:$ac_tool_warned in
3579yes:)
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582ac_tool_warned=yes ;;
3583esac
3584 CC=$ac_ct_CC
3585 fi
3586fi
3587
3588fi
3589
3590
3591test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 3593as_fn_error $? "no acceptable C compiler found in \$PATH
3594See \`config.log' for more details" "$LINENO" 5; }
e440a328 3595
3596# Provide some information about the compiler.
3597$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3598set X $ac_compile
3599ac_compiler=$2
3600for ac_option in --version -v -V -qversion; do
3601 { { ac_try="$ac_compiler $ac_option >&5"
3602case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607$as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3609 ac_status=$?
3610 if test -s conftest.err; then
3611 sed '10a\
3612... rest of stderr output deleted ...
3613 10q' conftest.err >conftest.er1
3614 cat conftest.er1 >&5
e440a328 3615 fi
ea2e69a4 3616 rm -f conftest.er1 conftest.err
e440a328 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }
3619done
3620
3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h. */
4a273582 3623
e440a328 3624int
3625main ()
3626{
3627
3628 ;
3629 return 0;
3630}
3631_ACEOF
3632ac_clean_files_save=$ac_clean_files
ea2e69a4 3633ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
e440a328 3634# Try to create an executable without -o first, disregard a.out.
3635# It will help us diagnose broken compilers, and finding out an intuition
3636# of exeext.
ea2e69a4 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638$as_echo_n "checking whether the C compiler works... " >&6; }
e440a328 3639ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3640
3641# The possible output files:
3642ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3643
3644ac_rmfiles=
3645for ac_file in $ac_files
3646do
3647 case $ac_file in
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3650 esac
3651done
3652rm -f $ac_rmfiles
3653
3654if { { ac_try="$ac_link_default"
3655case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658esac
3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660$as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link_default") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667# in a Makefile. We should not override ac_cv_exeext if it was cached,
3668# so that the user can short-circuit this test for compilers unknown to
3669# Autoconf.
3670for ac_file in $ac_files ''
3671do
3672 test -f "$ac_file" || continue
3673 case $ac_file in
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3675 ;;
3676 [ab].out )
3677 # We found the default executable, but exeext='' is most
3678 # certainly right.
3679 break;;
3680 *.* )
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682 then :; else
3683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 fi
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3689 # actually working.
3690 break;;
3691 * )
3692 break;;
3693 esac
3694done
3695test "$ac_cv_exeext" = no && ac_cv_exeext=
3696
3697else
3698 ac_file=''
3699fi
e440a328 3700if test -z "$ac_file"; then :
ea2e69a4 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702$as_echo "no" >&6; }
3703$as_echo "$as_me: failed program was:" >&5
e440a328 3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 3708as_fn_error 77 "C compiler cannot create executables
3709See \`config.log' for more details" "$LINENO" 5; }
3710else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712$as_echo "yes" >&6; }
e440a328 3713fi
ea2e69a4 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715$as_echo_n "checking for C compiler default output file name... " >&6; }
3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717$as_echo "$ac_file" >&6; }
e440a328 3718ac_exeext=$ac_cv_exeext
3719
ea2e69a4 3720rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
e440a328 3721ac_clean_files=$ac_clean_files_save
e440a328 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723$as_echo_n "checking for suffix of executables... " >&6; }
3724if { { ac_try="$ac_link"
3725case "(($ac_try" in
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3728esac
3729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730$as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3737# work properly (i.e., refer to `conftest.exe'), while it won't with
3738# `rm'.
3739for ac_file in conftest.exe conftest conftest.*; do
3740 test -f "$ac_file" || continue
3741 case $ac_file in
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744 break;;
3745 * ) break;;
3746 esac
3747done
3748else
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 3751as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3752See \`config.log' for more details" "$LINENO" 5; }
e440a328 3753fi
ea2e69a4 3754rm -f conftest conftest$ac_cv_exeext
e440a328 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756$as_echo "$ac_cv_exeext" >&6; }
3757
3758rm -f conftest.$ac_ext
3759EXEEXT=$ac_cv_exeext
3760ac_exeext=$EXEEXT
ea2e69a4 3761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762/* end confdefs.h. */
3763#include <stdio.h>
3764int
3765main ()
3766{
3767FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3769
3770 ;
3771 return 0;
3772}
3773_ACEOF
3774ac_clean_files="$ac_clean_files conftest.out"
3775# Check that the compiler produces executables we can run. If not, either
3776# the compiler is broken, or we cross compile.
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778$as_echo_n "checking whether we are cross compiling... " >&6; }
3779if test "$cross_compiling" != yes; then
3780 { { ac_try="$ac_link"
3781case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784esac
3785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786$as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }
3791 if { ac_try='./conftest$ac_cv_exeext'
3792 { { case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795esac
3796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797$as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_try") 2>&5
3799 ac_status=$?
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; }; then
3802 cross_compiling=no
3803 else
3804 if test "$cross_compiling" = maybe; then
3805 cross_compiling=yes
3806 else
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809as_fn_error $? "cannot run C compiled programs.
3810If you meant to cross compile, use \`--host'.
3811See \`config.log' for more details" "$LINENO" 5; }
3812 fi
3813 fi
3814fi
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816$as_echo "$cross_compiling" >&6; }
3817
3818rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819ac_clean_files=$ac_clean_files_save
e440a328 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821$as_echo_n "checking for suffix of object files... " >&6; }
ea2e69a4 3822if ${ac_cv_objext+:} false; then :
e440a328 3823 $as_echo_n "(cached) " >&6
3824else
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h. */
3827
3828int
3829main ()
3830{
3831
3832 ;
3833 return 0;
3834}
3835_ACEOF
3836rm -f conftest.o conftest.obj
3837if { { ac_try="$ac_compile"
3838case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841esac
3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843$as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compile") 2>&5
3845 ac_status=$?
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 for ac_file in conftest.o conftest.obj conftest.*; do
3849 test -f "$ac_file" || continue;
3850 case $ac_file in
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3853 break;;
3854 esac
3855done
3856else
3857 $as_echo "$as_me: failed program was:" >&5
3858sed 's/^/| /' conftest.$ac_ext >&5
3859
3860{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 3862as_fn_error $? "cannot compute suffix of object files: cannot compile
3863See \`config.log' for more details" "$LINENO" 5; }
e440a328 3864fi
3865rm -f conftest.$ac_cv_objext conftest.$ac_ext
3866fi
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868$as_echo "$ac_cv_objext" >&6; }
3869OBJEXT=$ac_cv_objext
3870ac_objext=$OBJEXT
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ea2e69a4 3873if ${ac_cv_c_compiler_gnu+:} false; then :
e440a328 3874 $as_echo_n "(cached) " >&6
3875else
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882#ifndef __GNUC__
3883 choke me
3884#endif
3885
3886 ;
3887 return 0;
3888}
3889_ACEOF
3890if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_compiler_gnu=yes
3892else
3893 ac_compiler_gnu=no
3894fi
3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896ac_cv_c_compiler_gnu=$ac_compiler_gnu
3897
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901if test $ac_compiler_gnu = yes; then
3902 GCC=yes
3903else
3904 GCC=
3905fi
3906ac_test_CFLAGS=${CFLAGS+set}
3907ac_save_CFLAGS=$CFLAGS
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909$as_echo_n "checking whether $CC accepts -g... " >&6; }
ea2e69a4 3910if ${ac_cv_prog_cc_g+:} false; then :
e440a328 3911 $as_echo_n "(cached) " >&6
3912else
3913 ac_save_c_werror_flag=$ac_c_werror_flag
3914 ac_c_werror_flag=yes
3915 ac_cv_prog_cc_g=no
3916 CFLAGS="-g"
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918/* end confdefs.h. */
3919
3920int
3921main ()
3922{
3923
3924 ;
3925 return 0;
3926}
3927_ACEOF
3928if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_cv_prog_cc_g=yes
3930else
3931 CFLAGS=""
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h. */
3934
3935int
3936main ()
3937{
3938
3939 ;
3940 return 0;
3941}
3942_ACEOF
3943if ac_fn_c_try_compile "$LINENO"; then :
3944
3945else
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3947 CFLAGS="-g"
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h. */
3950
3951int
3952main ()
3953{
3954
3955 ;
3956 return 0;
3957}
3958_ACEOF
3959if ac_fn_c_try_compile "$LINENO"; then :
3960 ac_cv_prog_cc_g=yes
3961fi
3962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963fi
3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965fi
3966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970$as_echo "$ac_cv_prog_cc_g" >&6; }
3971if test "$ac_test_CFLAGS" = set; then
3972 CFLAGS=$ac_save_CFLAGS
3973elif test $ac_cv_prog_cc_g = yes; then
3974 if test "$GCC" = yes; then
3975 CFLAGS="-g -O2"
3976 else
3977 CFLAGS="-g"
3978 fi
3979else
3980 if test "$GCC" = yes; then
3981 CFLAGS="-O2"
3982 else
3983 CFLAGS=
3984 fi
3985fi
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
ea2e69a4 3988if ${ac_cv_prog_cc_c89+:} false; then :
e440a328 3989 $as_echo_n "(cached) " >&6
3990else
3991 ac_cv_prog_cc_c89=no
3992ac_save_CC=$CC
3993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994/* end confdefs.h. */
3995#include <stdarg.h>
3996#include <stdio.h>
ea2e69a4 3997struct stat;
e440a328 3998/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3999struct buf { int x; };
4000FILE * (*rcsopen) (struct buf *, struct stat *, int);
4001static char *e (p, i)
4002 char **p;
4003 int i;
4004{
4005 return p[i];
4006}
4007static char *f (char * (*g) (char **, int), char **p, ...)
4008{
4009 char *s;
4010 va_list v;
4011 va_start (v,p);
4012 s = g (p, va_arg (v,int));
4013 va_end (v);
4014 return s;
4015}
4016
4017/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4018 function prototypes and stuff, but not '\xHH' hex character constants.
4019 These don't provoke an error unfortunately, instead are silently treated
4020 as 'x'. The following induces an error, until -std is added to get
4021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4022 array size at least. It's necessary to write '\x00'==0 to get something
4023 that's true only with -std. */
4024int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4025
4026/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4027 inside strings and character constants. */
4028#define FOO(x) 'x'
4029int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4030
4031int test (int i, double x);
4032struct s1 {int (*f) (int a);};
4033struct s2 {int (*f) (double a);};
4034int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4035int argc;
4036char **argv;
4037int
4038main ()
4039{
4040return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4041 ;
4042 return 0;
4043}
4044_ACEOF
4045for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4047do
4048 CC="$ac_save_CC $ac_arg"
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_prog_cc_c89=$ac_arg
4051fi
4052rm -f core conftest.err conftest.$ac_objext
4053 test "x$ac_cv_prog_cc_c89" != "xno" && break
4054done
4055rm -f conftest.$ac_ext
4056CC=$ac_save_CC
4057
4058fi
4059# AC_CACHE_VAL
4060case "x$ac_cv_prog_cc_c89" in
4061 x)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4063$as_echo "none needed" >&6; } ;;
4064 xno)
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4066$as_echo "unsupported" >&6; } ;;
4067 *)
4068 CC="$CC $ac_cv_prog_cc_c89"
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4070$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4071esac
4072if test "x$ac_cv_prog_cc_c89" != xno; then :
4073
4074fi
4075
4076ac_ext=c
4077ac_cpp='$CPP $CPPFLAGS'
4078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080ac_compiler_gnu=$ac_cv_c_compiler_gnu
ea2e69a4 4081
4082ac_ext=c
4083ac_cpp='$CPP $CPPFLAGS'
4084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4088$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4089if ${am_cv_prog_cc_c_o+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091else
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093/* end confdefs.h. */
4094
4095int
4096main ()
4097{
4098
4099 ;
4100 return 0;
4101}
4102_ACEOF
4103 # Make sure it works both with $CC and with simple cc.
4104 # Following AC_PROG_CC_C_O, we do the test twice because some
4105 # compilers refuse to overwrite an existing .o file with -o,
4106 # though they will create one.
4107 am_cv_prog_cc_c_o=yes
4108 for am_i in 1 2; do
4109 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4110 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } \
4114 && test -f conftest2.$ac_objext; then
4115 : OK
4116 else
4117 am_cv_prog_cc_c_o=no
4118 break
4119 fi
4120 done
4121 rm -f core conftest*
4122 unset am_i
4123fi
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4125$as_echo "$am_cv_prog_cc_c_o" >&6; }
4126if test "$am_cv_prog_cc_c_o" != yes; then
4127 # Losing compiler, so override with the script.
4128 # FIXME: It is wrong to rewrite CC.
4129 # But if we don't then we get into trouble of one sort or another.
4130 # A longer-term fix would be to have automake use am__CC in this case,
4131 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4132 CC="$am_aux_dir/compile $CC"
4133fi
4134ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
e440a328 4140DEPDIR="${am__leading_dot}deps"
4141
4142ac_config_commands="$ac_config_commands depfiles"
4143
4144
4145am_make=${MAKE-make}
4146cat > confinc << 'END'
4147am__doit:
4148 @echo this is the am__doit target
4149.PHONY: am__doit
4150END
4151# If we don't find an include directive, just comment out the code.
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4153$as_echo_n "checking for style of include used by $am_make... " >&6; }
4154am__include="#"
4155am__quote=
4156_am_result=none
4157# First try GNU make style include.
4158echo "include confinc" > confmf
ea2e69a4 4159# Ignore all kinds of additional output from 'make'.
e440a328 4160case `$am_make -s -f confmf 2> /dev/null` in #(
4161*the\ am__doit\ target*)
4162 am__include=include
4163 am__quote=
4164 _am_result=GNU
4165 ;;
4166esac
4167# Now try BSD make style include.
4168if test "$am__include" = "#"; then
4169 echo '.include "confinc"' > confmf
4170 case `$am_make -s -f confmf 2> /dev/null` in #(
4171 *the\ am__doit\ target*)
4172 am__include=.include
4173 am__quote="\""
4174 _am_result=BSD
4175 ;;
4176 esac
4177fi
4178
4179
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4181$as_echo "$_am_result" >&6; }
4182rm -f confinc confmf
4183
4184# Check whether --enable-dependency-tracking was given.
4185if test "${enable_dependency_tracking+set}" = set; then :
4186 enableval=$enable_dependency_tracking;
4187fi
4188
4189if test "x$enable_dependency_tracking" != xno; then
4190 am_depcomp="$ac_aux_dir/depcomp"
4191 AMDEPBACKSLASH='\'
e92f1942 4192 am__nodep='_no'
e440a328 4193fi
4194 if test "x$enable_dependency_tracking" != xno; then
4195 AMDEP_TRUE=
4196 AMDEP_FALSE='#'
4197else
4198 AMDEP_TRUE='#'
4199 AMDEP_FALSE=
4200fi
4201
4202
4203
4204depcc="$CC" am_compiler_list=
4205
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4207$as_echo_n "checking dependency style of $depcc... " >&6; }
ea2e69a4 4208if ${am_cv_CC_dependencies_compiler_type+:} false; then :
e440a328 4209 $as_echo_n "(cached) " >&6
4210else
4211 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4212 # We make a subdir and do the tests there. Otherwise we can end up
4213 # making bogus files that we don't know about and never remove. For
4214 # instance it was reported that on HP-UX the gcc test will end up
ea2e69a4 4215 # making a dummy file named 'D' -- because '-MD' means "put the output
4216 # in D".
e92f1942 4217 rm -rf conftest.dir
e440a328 4218 mkdir conftest.dir
4219 # Copy depcomp to subdir because otherwise we won't find it if we're
4220 # using a relative directory.
4221 cp "$am_depcomp" conftest.dir
4222 cd conftest.dir
4223 # We will build objects and dependencies in a subdirectory because
4224 # it helps to detect inapplicable dependency modes. For instance
4225 # both Tru64's cc and ICC support -MD to output dependencies as a
4226 # side effect of compilation, but ICC will put the dependencies in
4227 # the current directory while Tru64 will put them in the object
4228 # directory.
4229 mkdir sub
4230
4231 am_cv_CC_dependencies_compiler_type=none
4232 if test "$am_compiler_list" = ""; then
4233 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4234 fi
4235 am__universal=false
4236 case " $depcc " in #(
4237 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4238 esac
4239
4240 for depmode in $am_compiler_list; do
4241 # Setup a source with many dependencies, because some compilers
4242 # like to wrap large dependency lists on column 80 (with \), and
4243 # we should not choose a depcomp mode which is confused by this.
4244 #
4245 # We need to recreate these files for each test, as the compiler may
4246 # overwrite some of them when testing with obscure command lines.
4247 # This happens at least with the AIX C compiler.
4248 : > sub/conftest.c
4249 for i in 1 2 3 4 5 6; do
4250 echo '#include "conftst'$i'.h"' >> sub/conftest.c
ea2e69a4 4251 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4252 # Solaris 10 /bin/sh.
4253 echo '/* dummy */' > sub/conftst$i.h
e440a328 4254 done
4255 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4256
ea2e69a4 4257 # We check with '-c' and '-o' for the sake of the "dashmstdout"
e440a328 4258 # mode. It turns out that the SunPro C++ compiler does not properly
ea2e69a4 4259 # handle '-M -o', and we need to detect this. Also, some Intel
4260 # versions had trouble with output in subdirs.
e440a328 4261 am__obj=sub/conftest.${OBJEXT-o}
4262 am__minus_obj="-o $am__obj"
4263 case $depmode in
4264 gcc)
4265 # This depmode causes a compiler race in universal mode.
4266 test "$am__universal" = false || continue
4267 ;;
4268 nosideeffect)
ea2e69a4 4269 # After this tag, mechanisms are not by side-effect, so they'll
4270 # only be used when explicitly requested.
e440a328 4271 if test "x$enable_dependency_tracking" = xyes; then
4272 continue
4273 else
4274 break
4275 fi
4276 ;;
e92f1942 4277 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
ea2e69a4 4278 # This compiler won't grok '-c -o', but also, the minuso test has
e440a328 4279 # not run yet. These depmodes are late enough in the game, and
4280 # so weak that their functioning should not be impacted.
4281 am__obj=conftest.${OBJEXT-o}
4282 am__minus_obj=
4283 ;;
4284 none) break ;;
4285 esac
4286 if depmode=$depmode \
4287 source=sub/conftest.c object=$am__obj \
4288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4289 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4290 >/dev/null 2>conftest.err &&
4291 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4292 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4293 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4294 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4295 # icc doesn't choke on unknown options, it will just issue warnings
4296 # or remarks (even with -Werror). So we grep stderr for any message
4297 # that says an option was ignored or not supported.
4298 # When given -MP, icc 7.0 and 7.1 complain thusly:
4299 # icc: Command line warning: ignoring option '-M'; no argument required
4300 # The diagnosis changed in icc 8.0:
4301 # icc: Command line remark: option '-MP' not supported
4302 if (grep 'ignoring option' conftest.err ||
4303 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4304 am_cv_CC_dependencies_compiler_type=$depmode
4305 break
4306 fi
4307 fi
4308 done
4309
4310 cd ..
4311 rm -rf conftest.dir
4312else
4313 am_cv_CC_dependencies_compiler_type=none
4314fi
4315
4316fi
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4318$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4319CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4320
4321 if
4322 test "x$enable_dependency_tracking" != xno \
4323 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4324 am__fastdepCC_TRUE=
4325 am__fastdepCC_FALSE='#'
4326else
4327 am__fastdepCC_TRUE='#'
4328 am__fastdepCC_FALSE=
4329fi
4330
4331
4332ac_ext=go
ea2e69a4 4333ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4334ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=yes
e440a328 4336if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4338set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 4341if ${ac_cv_prog_GOC+:} false; then :
e440a328 4342 $as_echo_n "(cached) " >&6
4343else
4344 if test -n "$GOC"; then
4345 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4346else
4347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348for as_dir in $PATH
4349do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 4354 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4357 fi
4358done
4359 done
4360IFS=$as_save_IFS
4361
4362fi
4363fi
4364GOC=$ac_cv_prog_GOC
4365if test -n "$GOC"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4367$as_echo "$GOC" >&6; }
4368else
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370$as_echo "no" >&6; }
4371fi
4372
4373
4374fi
4375if test -z "$ac_cv_prog_GOC"; then
4376 ac_ct_GOC=$GOC
4377 # Extract the first word of "gccgo", so it can be a program name with args.
4378set dummy gccgo; ac_word=$2
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 4381if ${ac_cv_prog_ac_ct_GOC+:} false; then :
e440a328 4382 $as_echo_n "(cached) " >&6
4383else
4384 if test -n "$ac_ct_GOC"; then
4385 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4386else
4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 4393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 4394 ac_cv_prog_ac_ct_GOC="gccgo"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4397 fi
4398done
4399 done
4400IFS=$as_save_IFS
4401
4402fi
4403fi
4404ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4405if test -n "$ac_ct_GOC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4407$as_echo "$ac_ct_GOC" >&6; }
4408else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410$as_echo "no" >&6; }
4411fi
4412
4413 if test "x$ac_ct_GOC" = x; then
4414 GOC=""
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417yes:)
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420ac_tool_warned=yes ;;
4421esac
4422 GOC=$ac_ct_GOC
4423 fi
4424else
4425 GOC="$ac_cv_prog_GOC"
4426fi
4427
4428if test -z "$GOC"; then
4429 if test -n "$ac_tool_prefix"; then
4430 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4431set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 4434if ${ac_cv_prog_GOC+:} false; then :
e440a328 4435 $as_echo_n "(cached) " >&6
4436else
4437 if test -n "$GOC"; then
4438 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4439else
4440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH
4442do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 4446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 4447 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 break 2
4450 fi
4451done
4452 done
4453IFS=$as_save_IFS
4454
4455fi
4456fi
4457GOC=$ac_cv_prog_GOC
4458if test -n "$GOC"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4460$as_echo "$GOC" >&6; }
4461else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463$as_echo "no" >&6; }
4464fi
4465
4466
4467 fi
4468fi
4469if test -z "$GOC"; then
4470 # Extract the first word of "gccgo", so it can be a program name with args.
4471set dummy gccgo; ac_word=$2
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 4474if ${ac_cv_prog_GOC+:} false; then :
e440a328 4475 $as_echo_n "(cached) " >&6
4476else
4477 if test -n "$GOC"; then
4478 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4479else
4480 ac_prog_rejected=no
4481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482for as_dir in $PATH
4483do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 4487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
e440a328 4489 ac_prog_rejected=yes
4490 continue
4491 fi
4492 ac_cv_prog_GOC="gccgo"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4495 fi
4496done
4497 done
4498IFS=$as_save_IFS
4499
4500if test $ac_prog_rejected = yes; then
4501 # We found a bogon in the path, so make sure we never use it.
4502 set dummy $ac_cv_prog_GOC
4503 shift
4504 if test $# != 0; then
4505 # We chose a different compiler from the bogus one.
4506 # However, it has the same basename, so the bogon will be chosen
4507 # first if we set GOC to just the basename; use the full file name.
4508 shift
4509 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4510 fi
4511fi
4512fi
4513fi
4514GOC=$ac_cv_prog_GOC
4515if test -n "$GOC"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4517$as_echo "$GOC" >&6; }
4518else
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520$as_echo "no" >&6; }
4521fi
4522
4523
4524fi
4525
4526
4527# Provide some information about the compiler.
4528$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4529set X $ac_compile
4530ac_compiler=$2
4531{ { ac_try="$ac_compiler --version >&5"
4532case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535esac
4536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537$as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compiler --version >&5") 2>conftest.err
4539 ac_status=$?
4540 if test -s conftest.err; then
4541 sed '10a\
4542... rest of stderr output deleted ...
4543 10q' conftest.err >conftest.er1
4544 cat conftest.er1 >&5
e440a328 4545 fi
ea2e69a4 4546 rm -f conftest.er1 conftest.err
e440a328 4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }
ea2e69a4 4549GOFLAGS="-g -O2"
e440a328 4550ac_ext=c
4551ac_cpp='$CPP $CPPFLAGS'
4552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554ac_compiler_gnu=$ac_cv_c_compiler_gnu
4555
4556
4557
4558
4559
03118c21 4560case ${host} in
4561 *-*-aix*)
4562 # static hash tables crashes on AIX when libgo is built with O2
4563 CFLAGS="$CFLAGS -fno-section-anchors"
4564 GOCFLAGS="$GOCFLAGS -fno-section-anchors"
4565 ;;
4566esac
4567
e440a328 4568
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4570$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4571 # Check whether --enable-maintainer-mode was given.
4572if test "${enable_maintainer_mode+set}" = set; then :
4573 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4574else
4575 USE_MAINTAINER_MODE=no
4576fi
4577
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4579$as_echo "$USE_MAINTAINER_MODE" >&6; }
4580 if test $USE_MAINTAINER_MODE = yes; then
4581 MAINTAINER_MODE_TRUE=
4582 MAINTAINER_MODE_FALSE='#'
4583else
4584 MAINTAINER_MODE_TRUE='#'
4585 MAINTAINER_MODE_FALSE=
4586fi
4587
4588 MAINT=$MAINTAINER_MODE_TRUE
4589
4590
4591
c9c0c1d2 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4593$as_echo_n "checking for a sed that does not truncate output... " >&6; }
ea2e69a4 4594if ${ac_cv_path_SED+:} false; then :
e440a328 4595 $as_echo_n "(cached) " >&6
4596else
c9c0c1d2 4597 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4598 for ac_i in 1 2 3 4 5 6 7; do
4599 ac_script="$ac_script$as_nl$ac_script"
4600 done
4601 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4602 { ac_script=; unset ac_script;}
4603 if test -z "$SED"; then
4604 ac_path_SED_found=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
e440a328 4608do
c9c0c1d2 4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_prog in sed gsed; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
ea2e69a4 4614 as_fn_executable_p "$ac_path_SED" || continue
c9c0c1d2 4615# Check for GNU ac_path_SED and select it if it is found.
4616 # Check for GNU $ac_path_SED
4617case `"$ac_path_SED" --version 2>&1` in
4618*GNU*)
4619 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4620*)
4621 ac_count=0
4622 $as_echo_n 0123456789 >"conftest.in"
4623 while :
4624 do
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 $as_echo '' >> "conftest.nl"
4629 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631 as_fn_arith $ac_count + 1 && ac_count=$as_val
4632 if test $ac_count -gt ${ac_path_SED_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_SED="$ac_path_SED"
4635 ac_path_SED_max=$ac_count
4636 fi
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4639 done
4640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641esac
e440a328 4642
c9c0c1d2 4643 $ac_path_SED_found && break 3
4644 done
4645 done
4646 done
4647IFS=$as_save_IFS
4648 if test -z "$ac_cv_path_SED"; then
ea2e69a4 4649 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
c9c0c1d2 4650 fi
e440a328 4651else
c9c0c1d2 4652 ac_cv_path_SED=$SED
e440a328 4653fi
4654
4655fi
c9c0c1d2 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4657$as_echo "$ac_cv_path_SED" >&6; }
4658 SED="$ac_cv_path_SED"
4659 rm -f conftest.sed
4660
4661test -z "$SED" && SED=sed
4662Xsed="$SED -e 1s/^X//"
4663
e440a328 4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4675$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
ea2e69a4 4676if ${ac_cv_path_GREP+:} false; then :
e440a328 4677 $as_echo_n "(cached) " >&6
4678else
4679 if test -z "$GREP"; then
4680 ac_path_GREP_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_prog in grep ggrep; do
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
ea2e69a4 4690 as_fn_executable_p "$ac_path_GREP" || continue
e440a328 4691# Check for GNU ac_path_GREP and select it if it is found.
4692 # Check for GNU $ac_path_GREP
4693case `"$ac_path_GREP" --version 2>&1` in
4694*GNU*)
4695 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4696*)
4697 ac_count=0
4698 $as_echo_n 0123456789 >"conftest.in"
4699 while :
4700 do
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'GREP' >> "conftest.nl"
4705 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
4708 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_GREP="$ac_path_GREP"
4711 ac_path_GREP_max=$ac_count
4712 fi
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4715 done
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717esac
4718
4719 $ac_path_GREP_found && break 3
4720 done
4721 done
4722 done
4723IFS=$as_save_IFS
4724 if test -z "$ac_cv_path_GREP"; then
ea2e69a4 4725 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
e440a328 4726 fi
4727else
4728 ac_cv_path_GREP=$GREP
4729fi
4730
4731fi
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4733$as_echo "$ac_cv_path_GREP" >&6; }
4734 GREP="$ac_cv_path_GREP"
4735
4736
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4738$as_echo_n "checking for egrep... " >&6; }
ea2e69a4 4739if ${ac_cv_path_EGREP+:} false; then :
e440a328 4740 $as_echo_n "(cached) " >&6
4741else
4742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4743 then ac_cv_path_EGREP="$GREP -E"
4744 else
4745 if test -z "$EGREP"; then
4746 ac_path_EGREP_found=false
4747 # Loop through the user's path and test for each of PROGNAME-LIST
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_prog in egrep; do
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
ea2e69a4 4756 as_fn_executable_p "$ac_path_EGREP" || continue
e440a328 4757# Check for GNU ac_path_EGREP and select it if it is found.
4758 # Check for GNU $ac_path_EGREP
4759case `"$ac_path_EGREP" --version 2>&1` in
4760*GNU*)
4761 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4762*)
4763 ac_count=0
4764 $as_echo_n 0123456789 >"conftest.in"
4765 while :
4766 do
4767 cat "conftest.in" "conftest.in" >"conftest.tmp"
4768 mv "conftest.tmp" "conftest.in"
4769 cp "conftest.in" "conftest.nl"
4770 $as_echo 'EGREP' >> "conftest.nl"
4771 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4773 as_fn_arith $ac_count + 1 && ac_count=$as_val
4774 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4775 # Best one so far, save it but keep looking for a better one
4776 ac_cv_path_EGREP="$ac_path_EGREP"
4777 ac_path_EGREP_max=$ac_count
4778 fi
4779 # 10*(2^10) chars as input seems more than enough
4780 test $ac_count -gt 10 && break
4781 done
4782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4783esac
4784
4785 $ac_path_EGREP_found && break 3
4786 done
4787 done
4788 done
4789IFS=$as_save_IFS
4790 if test -z "$ac_cv_path_EGREP"; then
ea2e69a4 4791 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
e440a328 4792 fi
4793else
4794 ac_cv_path_EGREP=$EGREP
4795fi
4796
4797 fi
4798fi
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4800$as_echo "$ac_cv_path_EGREP" >&6; }
4801 EGREP="$ac_cv_path_EGREP"
4802
4803
c9c0c1d2 4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4805$as_echo_n "checking for fgrep... " >&6; }
ea2e69a4 4806if ${ac_cv_path_FGREP+:} false; then :
8202cb3c 4807 $as_echo_n "(cached) " >&6
4808else
c9c0c1d2 4809 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4810 then ac_cv_path_FGREP="$GREP -F"
4811 else
4812 if test -z "$FGREP"; then
4813 ac_path_FGREP_found=false
e440a328 4814 # Loop through the user's path and test for each of PROGNAME-LIST
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
c9c0c1d2 4816for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
e440a328 4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
c9c0c1d2 4820 for ac_prog in fgrep; do
e440a328 4821 for ac_exec_ext in '' $ac_executable_extensions; do
c9c0c1d2 4822 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
ea2e69a4 4823 as_fn_executable_p "$ac_path_FGREP" || continue
c9c0c1d2 4824# Check for GNU ac_path_FGREP and select it if it is found.
4825 # Check for GNU $ac_path_FGREP
4826case `"$ac_path_FGREP" --version 2>&1` in
e440a328 4827*GNU*)
c9c0c1d2 4828 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
e440a328 4829*)
4830 ac_count=0
4831 $as_echo_n 0123456789 >"conftest.in"
4832 while :
4833 do
4834 cat "conftest.in" "conftest.in" >"conftest.tmp"
4835 mv "conftest.tmp" "conftest.in"
4836 cp "conftest.in" "conftest.nl"
c9c0c1d2 4837 $as_echo 'FGREP' >> "conftest.nl"
4838 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
e440a328 4839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840 as_fn_arith $ac_count + 1 && ac_count=$as_val
c9c0c1d2 4841 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
e440a328 4842 # Best one so far, save it but keep looking for a better one
c9c0c1d2 4843 ac_cv_path_FGREP="$ac_path_FGREP"
4844 ac_path_FGREP_max=$ac_count
e440a328 4845 fi
4846 # 10*(2^10) chars as input seems more than enough
4847 test $ac_count -gt 10 && break
4848 done
4849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850esac
4851
c9c0c1d2 4852 $ac_path_FGREP_found && break 3
e440a328 4853 done
4854 done
4855 done
4856IFS=$as_save_IFS
c9c0c1d2 4857 if test -z "$ac_cv_path_FGREP"; then
ea2e69a4 4858 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
e440a328 4859 fi
4860else
c9c0c1d2 4861 ac_cv_path_FGREP=$FGREP
8202cb3c 4862fi
4863
c9c0c1d2 4864 fi
e440a328 4865fi
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4867$as_echo "$ac_cv_path_FGREP" >&6; }
4868 FGREP="$ac_cv_path_FGREP"
4869
4870
4871test -z "$GREP" && GREP=grep
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4890ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4891ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4894$as_echo_n "checking how to print strings... " >&6; }
4895# Test print first, because it will be a builtin if present.
4896if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4897 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4898 ECHO='print -r --'
4899elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4900 ECHO='printf %s\n'
4901else
4902 # Use this function as a fallback that always works.
4903 func_fallback_echo ()
4904 {
4905 eval 'cat <<_LTECHO_EOF
4906$1
4907_LTECHO_EOF'
4908 }
4909 ECHO='func_fallback_echo'
4910fi
4911
4912# func_echo_all arg...
4913# Invoke $ECHO with all args, space-separated.
4914func_echo_all ()
4915{
4916 $ECHO ""
4917}
4918
4919case "$ECHO" in
4920 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4921$as_echo "printf" >&6; } ;;
4922 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4923$as_echo "print -r" >&6; } ;;
4924 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4925$as_echo "cat" >&6; } ;;
4926esac
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943# Check whether --with-gnu-ld was given.
4944if test "${with_gnu_ld+set}" = set; then :
4945 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4946else
4947 with_gnu_ld=no
4948fi
4949
4950ac_prog=ld
4951if test "$GCC" = yes; then
4952 # Check if gcc -print-prog-name=ld gives a path.
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4954$as_echo_n "checking for ld used by $CC... " >&6; }
4955 case $host in
4956 *-*-mingw*)
4957 # gcc leaves a trailing carriage return which upsets mingw
4958 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4959 *)
4960 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4961 esac
4962 case $ac_prog in
4963 # Accept absolute paths.
4964 [\\/]* | ?:[\\/]*)
4965 re_direlt='/[^/][^/]*/\.\./'
4966 # Canonicalize the pathname of ld
4967 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4968 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4969 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4970 done
4971 test -z "$LD" && LD="$ac_prog"
4972 ;;
4973 "")
4974 # If it fails, then pretend we aren't using GCC.
4975 ac_prog=ld
4976 ;;
4977 *)
4978 # If it is relative, then search for the first ld in PATH.
4979 with_gnu_ld=unknown
4980 ;;
4981 esac
4982elif test "$with_gnu_ld" = yes; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4984$as_echo_n "checking for GNU ld... " >&6; }
4985else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4987$as_echo_n "checking for non-GNU ld... " >&6; }
4988fi
ea2e69a4 4989if ${lt_cv_path_LD+:} false; then :
e440a328 4990 $as_echo_n "(cached) " >&6
4991else
4992 if test -z "$LD"; then
4993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4994 for ac_dir in $PATH; do
4995 IFS="$lt_save_ifs"
4996 test -z "$ac_dir" && ac_dir=.
4997 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4998 lt_cv_path_LD="$ac_dir/$ac_prog"
4999 # Check to see if the program is GNU ld. I'd rather use --version,
5000 # but apparently some variants of GNU ld only accept -v.
5001 # Break only if it was the GNU/non-GNU ld that we prefer.
5002 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5003 *GNU* | *'with BFD'*)
5004 test "$with_gnu_ld" != no && break
5005 ;;
5006 *)
5007 test "$with_gnu_ld" != yes && break
5008 ;;
5009 esac
5010 fi
5011 done
5012 IFS="$lt_save_ifs"
5013else
5014 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5015fi
5016fi
5017
5018LD="$lt_cv_path_LD"
5019if test -n "$LD"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5021$as_echo "$LD" >&6; }
5022else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024$as_echo "no" >&6; }
5025fi
ea2e69a4 5026test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
e440a328 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5028$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ea2e69a4 5029if ${lt_cv_prog_gnu_ld+:} false; then :
e440a328 5030 $as_echo_n "(cached) " >&6
5031else
5032 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5033case `$LD -v 2>&1 </dev/null` in
5034*GNU* | *'with BFD'*)
5035 lt_cv_prog_gnu_ld=yes
5036 ;;
5037*)
5038 lt_cv_prog_gnu_ld=no
5039 ;;
5040esac
5041fi
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5043$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5044with_gnu_ld=$lt_cv_prog_gnu_ld
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054if test -n "$ac_tool_prefix"; then
5055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5056set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5059if ${ac_cv_prog_RANLIB+:} false; then :
e440a328 5060 $as_echo_n "(cached) " >&6
5061else
5062 if test -n "$RANLIB"; then
5063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5064else
5065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066for as_dir in $PATH
5067do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5072 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076done
5077 done
5078IFS=$as_save_IFS
5079
5080fi
5081fi
5082RANLIB=$ac_cv_prog_RANLIB
5083if test -n "$RANLIB"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5085$as_echo "$RANLIB" >&6; }
5086else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088$as_echo "no" >&6; }
5089fi
5090
5091
5092fi
5093if test -z "$ac_cv_prog_RANLIB"; then
5094 ac_ct_RANLIB=$RANLIB
5095 # Extract the first word of "ranlib", so it can be a program name with args.
5096set dummy ranlib; ac_word=$2
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5099if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
e440a328 5100 $as_echo_n "(cached) " >&6
5101else
5102 if test -n "$ac_ct_RANLIB"; then
5103 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5104else
5105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106for as_dir in $PATH
5107do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5112 ac_cv_prog_ac_ct_RANLIB="ranlib"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116done
5117 done
5118IFS=$as_save_IFS
5119
5120fi
5121fi
5122ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5123if test -n "$ac_ct_RANLIB"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5125$as_echo "$ac_ct_RANLIB" >&6; }
5126else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128$as_echo "no" >&6; }
5129fi
5130
5131 if test "x$ac_ct_RANLIB" = x; then
5132 RANLIB=":"
5133 else
5134 case $cross_compiling:$ac_tool_warned in
5135yes:)
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138ac_tool_warned=yes ;;
5139esac
5140 RANLIB=$ac_ct_RANLIB
5141 fi
5142else
5143 RANLIB="$ac_cv_prog_RANLIB"
5144fi
5145
5146if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5151if ${ac_cv_prog_OBJCOPY+:} false; then :
e440a328 5152 $as_echo_n "(cached) " >&6
5153else
5154 if test -n "$OBJCOPY"; then
5155 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5164 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168done
5169 done
5170IFS=$as_save_IFS
5171
5172fi
5173fi
5174OBJCOPY=$ac_cv_prog_OBJCOPY
5175if test -n "$OBJCOPY"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5177$as_echo "$OBJCOPY" >&6; }
5178else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180$as_echo "no" >&6; }
5181fi
5182
5183
5184fi
5185if test -z "$ac_cv_prog_OBJCOPY"; then
5186 ac_ct_OBJCOPY=$OBJCOPY
5187 # Extract the first word of "objcopy", so it can be a program name with args.
5188set dummy objcopy; ac_word=$2
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5191if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
e440a328 5192 $as_echo_n "(cached) " >&6
5193else
5194 if test -n "$ac_ct_OBJCOPY"; then
5195 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5204 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209 done
5210IFS=$as_save_IFS
5211
5212fi
5213fi
5214ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5215if test -n "$ac_ct_OBJCOPY"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5217$as_echo "$ac_ct_OBJCOPY" >&6; }
5218else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222
5223 if test "x$ac_ct_OBJCOPY" = x; then
5224 OBJCOPY="missing-objcopy"
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227yes:)
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230ac_tool_warned=yes ;;
5231esac
5232 OBJCOPY=$ac_ct_OBJCOPY
5233 fi
5234else
5235 OBJCOPY="$ac_cv_prog_OBJCOPY"
5236fi
5237
5238
5239enable_dlopen=yes
5240
5241
5242
5243case `pwd` in
5244 *\ * | *\ *)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5246$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5247esac
5248
5249
5250
5251macro_version='2.2.7a'
5252macro_revision='1.3134'
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266ltmain="$ac_aux_dir/ltmain.sh"
5267
5268# Backslashify metacharacters that are still active within
5269# double-quoted strings.
5270sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5271
5272# Same as above, but do not quote variable references.
5273double_quote_subst='s/\(["`\\]\)/\\\1/g'
5274
5275# Sed substitution to delay expansion of an escaped shell variable in a
5276# double_quote_subst'ed string.
5277delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5278
5279# Sed substitution to delay expansion of an escaped single quote.
5280delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5281
5282# Sed substitution to avoid accidental globbing in evaled expressions
5283no_glob_subst='s/\*/\\\*/g'
5284
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5286$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
ea2e69a4 5287if ${lt_cv_path_NM+:} false; then :
e440a328 5288 $as_echo_n "(cached) " >&6
5289else
5290 if test -n "$NM"; then
5291 # Let the user override the test.
5292 lt_cv_path_NM="$NM"
5293else
5294 lt_nm_to_check="${ac_tool_prefix}nm"
5295 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5296 lt_nm_to_check="$lt_nm_to_check nm"
5297 fi
5298 for lt_tmp_nm in $lt_nm_to_check; do
5299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5300 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5301 IFS="$lt_save_ifs"
5302 test -z "$ac_dir" && ac_dir=.
5303 tmp_nm="$ac_dir/$lt_tmp_nm"
5304 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5305 # Check to see if the nm accepts a BSD-compat flag.
5306 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5307 # nm: unknown option "B" ignored
5308 # Tru64's nm complains that /dev/null is an invalid object file
5309 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5310 */dev/null* | *'Invalid file or object type'*)
5311 lt_cv_path_NM="$tmp_nm -B"
5312 break
5313 ;;
5314 *)
5315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5316 */dev/null*)
5317 lt_cv_path_NM="$tmp_nm -p"
5318 break
5319 ;;
5320 *)
5321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5322 continue # so that we can try to find one that supports BSD flags
5323 ;;
5324 esac
5325 ;;
5326 esac
5327 fi
5328 done
5329 IFS="$lt_save_ifs"
5330 done
5331 : ${lt_cv_path_NM=no}
5332fi
5333fi
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5335$as_echo "$lt_cv_path_NM" >&6; }
5336if test "$lt_cv_path_NM" != "no"; then
5337 NM="$lt_cv_path_NM"
5338else
5339 # Didn't find any BSD compatible name lister, look for dumpbin.
5340 if test -n "$DUMPBIN"; then :
5341 # Let the user override the test.
5342 else
5343 if test -n "$ac_tool_prefix"; then
5344 for ac_prog in dumpbin "link -dump"
5345 do
5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5350if ${ac_cv_prog_DUMPBIN+:} false; then :
e440a328 5351 $as_echo_n "(cached) " >&6
5352else
5353 if test -n "$DUMPBIN"; then
5354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367done
5368 done
5369IFS=$as_save_IFS
5370
5371fi
5372fi
5373DUMPBIN=$ac_cv_prog_DUMPBIN
5374if test -n "$DUMPBIN"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5376$as_echo "$DUMPBIN" >&6; }
5377else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
5380fi
5381
5382
5383 test -n "$DUMPBIN" && break
5384 done
5385fi
5386if test -z "$DUMPBIN"; then
5387 ac_ct_DUMPBIN=$DUMPBIN
5388 for ac_prog in dumpbin "link -dump"
5389do
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391set dummy $ac_prog; ac_word=$2
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5394if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
e440a328 5395 $as_echo_n "(cached) " >&6
5396else
5397 if test -n "$ac_ct_DUMPBIN"; then
5398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411done
5412 done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5418if test -n "$ac_ct_DUMPBIN"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5420$as_echo "$ac_ct_DUMPBIN" >&6; }
5421else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426
5427 test -n "$ac_ct_DUMPBIN" && break
5428done
5429
5430 if test "x$ac_ct_DUMPBIN" = x; then
5431 DUMPBIN=":"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434yes:)
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 DUMPBIN=$ac_ct_DUMPBIN
5440 fi
5441fi
5442
5443 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5444 *COFF*)
5445 DUMPBIN="$DUMPBIN -symbols"
5446 ;;
5447 *)
5448 DUMPBIN=:
5449 ;;
5450 esac
5451 fi
5452
5453 if test "$DUMPBIN" != ":"; then
5454 NM="$DUMPBIN"
5455 fi
5456fi
5457test -z "$NM" && NM=nm
5458
5459
5460
5461
5462
5463
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5465$as_echo_n "checking the name lister ($NM) interface... " >&6; }
ea2e69a4 5466if ${lt_cv_nm_interface+:} false; then :
e440a328 5467 $as_echo_n "(cached) " >&6
5468else
5469 lt_cv_nm_interface="BSD nm"
5470 echo "int some_variable = 0;" > conftest.$ac_ext
5471 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5472 (eval "$ac_compile" 2>conftest.err)
5473 cat conftest.err >&5
5474 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5475 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5476 cat conftest.err >&5
5477 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5478 cat conftest.out >&5
5479 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5480 lt_cv_nm_interface="MS dumpbin"
5481 fi
5482 rm -f conftest*
5483fi
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5485$as_echo "$lt_cv_nm_interface" >&6; }
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5488$as_echo_n "checking whether ln -s works... " >&6; }
5489LN_S=$as_ln_s
5490if test "$LN_S" = "ln -s"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5492$as_echo "yes" >&6; }
5493else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5495$as_echo "no, using $LN_S" >&6; }
5496fi
5497
5498# find the maximum length of command line arguments
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5500$as_echo_n "checking the maximum length of command line arguments... " >&6; }
ea2e69a4 5501if ${lt_cv_sys_max_cmd_len+:} false; then :
e440a328 5502 $as_echo_n "(cached) " >&6
5503else
5504 i=0
5505 teststring="ABCD"
5506
5507 case $build_os in
5508 msdosdjgpp*)
5509 # On DJGPP, this test can blow up pretty badly due to problems in libc
5510 # (any single argument exceeding 2000 bytes causes a buffer overrun
5511 # during glob expansion). Even if it were fixed, the result of this
5512 # check would be larger than it should be.
5513 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5514 ;;
5515
5516 gnu*)
5517 # Under GNU Hurd, this test is not required because there is
5518 # no limit to the length of command line arguments.
5519 # Libtool will interpret -1 as no limit whatsoever
5520 lt_cv_sys_max_cmd_len=-1;
5521 ;;
5522
5523 cygwin* | mingw* | cegcc*)
5524 # On Win9x/ME, this test blows up -- it succeeds, but takes
5525 # about 5 minutes as the teststring grows exponentially.
5526 # Worse, since 9x/ME are not pre-emptively multitasking,
5527 # you end up with a "frozen" computer, even though with patience
5528 # the test eventually succeeds (with a max line length of 256k).
5529 # Instead, let's just punt: use the minimum linelength reported by
5530 # all of the supported platforms: 8192 (on NT/2K/XP).
5531 lt_cv_sys_max_cmd_len=8192;
5532 ;;
5533
5534 mint*)
5535 # On MiNT this can take a long time and run out of memory.
5536 lt_cv_sys_max_cmd_len=8192;
5537 ;;
5538
5539 amigaos*)
5540 # On AmigaOS with pdksh, this test takes hours, literally.
5541 # So we just punt and use a minimum line length of 8192.
5542 lt_cv_sys_max_cmd_len=8192;
5543 ;;
5544
5545 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5546 # This has been around since 386BSD, at least. Likely further.
5547 if test -x /sbin/sysctl; then
5548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5549 elif test -x /usr/sbin/sysctl; then
5550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5551 else
5552 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5553 fi
5554 # And add a safety zone
5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5557 ;;
5558
5559 interix*)
5560 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5561 lt_cv_sys_max_cmd_len=196608
5562 ;;
5563
5564 osf*)
5565 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5566 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5567 # nice to cause kernel panics so lets avoid the loop below.
5568 # First set a reasonable default.
5569 lt_cv_sys_max_cmd_len=16384
5570 #
5571 if test -x /sbin/sysconfig; then
5572 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5573 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5574 esac
5575 fi
5576 ;;
5577 sco3.2v5*)
5578 lt_cv_sys_max_cmd_len=102400
5579 ;;
5580 sysv5* | sco5v6* | sysv4.2uw2*)
5581 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5582 if test -n "$kargmax"; then
5583 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5584 else
5585 lt_cv_sys_max_cmd_len=32768
5586 fi
5587 ;;
5588 *)
5589 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5590 if test -n "$lt_cv_sys_max_cmd_len"; then
5591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5593 else
5594 # Make teststring a little bigger before we do anything with it.
5595 # a 1K string should be a reasonable start.
5596 for i in 1 2 3 4 5 6 7 8 ; do
5597 teststring=$teststring$teststring
5598 done
5599 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5600 # If test is not a shell built-in, we'll probably end up computing a
5601 # maximum length that is only half of the actual maximum length, but
5602 # we can't tell.
5603 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5604 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5605 test $i != 17 # 1/2 MB should be enough
5606 do
5607 i=`expr $i + 1`
5608 teststring=$teststring$teststring
5609 done
5610 # Only check the string length outside the loop.
5611 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5612 teststring=
5613 # Add a significant safety factor because C++ compilers can tack on
5614 # massive amounts of additional arguments before passing them to the
5615 # linker. It appears as though 1/2 is a usable value.
5616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5617 fi
5618 ;;
5619 esac
5620
5621fi
5622
5623if test -n $lt_cv_sys_max_cmd_len ; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5625$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5626else
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5628$as_echo "none" >&6; }
5629fi
5630max_cmd_len=$lt_cv_sys_max_cmd_len
5631
5632
5633
5634
5635
5636
5637: ${CP="cp -f"}
5638: ${MV="mv -f"}
5639: ${RM="rm -f"}
5640
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5642$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5643# Try some XSI features
5644xsi_shell=no
5645( _lt_dummy="a/b/c"
5646 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5647 = c,a/b,, \
5648 && eval 'test $(( 1 + 1 )) -eq 2 \
5649 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5650 && xsi_shell=yes
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5652$as_echo "$xsi_shell" >&6; }
5653
5654
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5656$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5657lt_shell_append=no
5658( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5659 >/dev/null 2>&1 \
5660 && lt_shell_append=yes
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5662$as_echo "$lt_shell_append" >&6; }
5663
5664
5665if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5666 lt_unset=unset
5667else
5668 lt_unset=false
5669fi
5670
5671
5672
5673
5674
5675# test EBCDIC or ASCII
5676case `echo X|tr X '\101'` in
5677 A) # ASCII based system
5678 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5679 lt_SP2NL='tr \040 \012'
5680 lt_NL2SP='tr \015\012 \040\040'
5681 ;;
5682 *) # EBCDIC based system
5683 lt_SP2NL='tr \100 \n'
5684 lt_NL2SP='tr \r\n \100\100'
5685 ;;
5686esac
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5697$as_echo_n "checking for $LD option to reload object files... " >&6; }
ea2e69a4 5698if ${lt_cv_ld_reload_flag+:} false; then :
e440a328 5699 $as_echo_n "(cached) " >&6
5700else
5701 lt_cv_ld_reload_flag='-r'
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5704$as_echo "$lt_cv_ld_reload_flag" >&6; }
5705reload_flag=$lt_cv_ld_reload_flag
5706case $reload_flag in
5707"" | " "*) ;;
5708*) reload_flag=" $reload_flag" ;;
5709esac
5710reload_cmds='$LD$reload_flag -o $output$reload_objs'
5711case $host_os in
5712 darwin*)
5713 if test "$GCC" = yes; then
5714 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5715 else
5716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5717 fi
5718 ;;
5719esac
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5731set dummy ${ac_tool_prefix}objdump; ac_word=$2
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5734if ${ac_cv_prog_OBJDUMP+:} false; then :
e440a328 5735 $as_echo_n "(cached) " >&6
5736else
5737 if test -n "$OBJDUMP"; then
5738 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5747 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751done
5752 done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757OBJDUMP=$ac_cv_prog_OBJDUMP
5758if test -n "$OBJDUMP"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5760$as_echo "$OBJDUMP" >&6; }
5761else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
5764fi
5765
5766
5767fi
5768if test -z "$ac_cv_prog_OBJDUMP"; then
5769 ac_ct_OBJDUMP=$OBJDUMP
5770 # Extract the first word of "objdump", so it can be a program name with args.
5771set dummy objdump; ac_word=$2
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 5774if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
e440a328 5775 $as_echo_n "(cached) " >&6
5776else
5777 if test -n "$ac_ct_OBJDUMP"; then
5778 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 5786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 5787 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5790 fi
5791done
5792 done
5793IFS=$as_save_IFS
5794
5795fi
5796fi
5797ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5798if test -n "$ac_ct_OBJDUMP"; then
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5800$as_echo "$ac_ct_OBJDUMP" >&6; }
5801else
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
5804fi
5805
5806 if test "x$ac_ct_OBJDUMP" = x; then
5807 OBJDUMP="false"
5808 else
5809 case $cross_compiling:$ac_tool_warned in
5810yes:)
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813ac_tool_warned=yes ;;
5814esac
5815 OBJDUMP=$ac_ct_OBJDUMP
5816 fi
5817else
5818 OBJDUMP="$ac_cv_prog_OBJDUMP"
5819fi
5820
5821test -z "$OBJDUMP" && OBJDUMP=objdump
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5832$as_echo_n "checking how to recognize dependent libraries... " >&6; }
ea2e69a4 5833if ${lt_cv_deplibs_check_method+:} false; then :
e440a328 5834 $as_echo_n "(cached) " >&6
5835else
5836 lt_cv_file_magic_cmd='$MAGIC_CMD'
5837lt_cv_file_magic_test_file=
5838lt_cv_deplibs_check_method='unknown'
5839# Need to set the preceding variable on all platforms that support
5840# interlibrary dependencies.
5841# 'none' -- dependencies not supported.
5842# `unknown' -- same as none, but documents that we really don't know.
5843# 'pass_all' -- all dependencies passed with no checks.
5844# 'test_compile' -- check by making test program.
5845# 'file_magic [[regex]]' -- check by looking for files in library path
5846# which responds to the $file_magic_cmd with a given extended regex.
5847# If you have `file' or equivalent on your system and you're not sure
5848# whether `pass_all' will *always* work, you probably want this one.
5849
5850case $host_os in
5851aix[4-9]*)
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
5854
5855beos*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859bsdi[45]*)
5860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5861 lt_cv_file_magic_cmd='/usr/bin/file -L'
5862 lt_cv_file_magic_test_file=/shlib/libc.so
5863 ;;
5864
5865cygwin*)
5866 # func_win32_libid is a shell function defined in ltmain.sh
5867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5868 lt_cv_file_magic_cmd='func_win32_libid'
5869 ;;
5870
5871mingw* | pw32*)
5872 # Base MSYS/MinGW do not provide the 'file' command needed by
5873 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5874 # unless we find 'file', for example because we are cross-compiling.
5875 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5876 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5878 lt_cv_file_magic_cmd='func_win32_libid'
5879 else
5880 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5881 lt_cv_file_magic_cmd='$OBJDUMP -f'
5882 fi
5883 ;;
5884
5885cegcc*)
5886 # use the weaker test based on 'objdump'. See mingw*.
5887 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5888 lt_cv_file_magic_cmd='$OBJDUMP -f'
5889 ;;
5890
5891darwin* | rhapsody*)
5892 lt_cv_deplibs_check_method=pass_all
5893 ;;
5894
5895freebsd* | dragonfly*)
5896 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5897 case $host_cpu in
5898 i*86 )
5899 # Not sure whether the presence of OpenBSD here was a mistake.
5900 # Let's accept both of them until this is cleared up.
5901 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5902 lt_cv_file_magic_cmd=/usr/bin/file
5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5904 ;;
5905 esac
5906 else
5907 lt_cv_deplibs_check_method=pass_all
5908 fi
5909 ;;
5910
5911gnu*)
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
5915haiku*)
5916 lt_cv_deplibs_check_method=pass_all
5917 ;;
5918
5919hpux10.20* | hpux11*)
5920 lt_cv_file_magic_cmd=/usr/bin/file
5921 case $host_cpu in
5922 ia64*)
5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5924 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5925 ;;
5926 hppa*64*)
5927 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]'
5928 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5929 ;;
5930 *)
5931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5932 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5933 ;;
5934 esac
5935 ;;
5936
5937interix[3-9]*)
5938 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5940 ;;
5941
5942irix5* | irix6* | nonstopux*)
5943 case $LD in
5944 *-32|*"-32 ") libmagic=32-bit;;
5945 *-n32|*"-n32 ") libmagic=N32;;
5946 *-64|*"-64 ") libmagic=64-bit;;
5947 *) libmagic=never-match;;
5948 esac
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951
5952# This must be Linux ELF.
5953linux* | k*bsd*-gnu | kopensolaris*-gnu)
5954 lt_cv_deplibs_check_method=pass_all
5955 ;;
5956
5957netbsd*)
5958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5960 else
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5962 fi
5963 ;;
5964
5965newos6*)
5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5967 lt_cv_file_magic_cmd=/usr/bin/file
5968 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5969 ;;
5970
5971*nto* | *qnx*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
5974
5975openbsd*)
5976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5978 else
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5980 fi
5981 ;;
5982
5983osf3* | osf4* | osf5*)
5984 lt_cv_deplibs_check_method=pass_all
5985 ;;
5986
5987rdos*)
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
5990
5991solaris*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994
5995sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5996 lt_cv_deplibs_check_method=pass_all
5997 ;;
5998
5999sysv4 | sysv4.3*)
6000 case $host_vendor in
6001 motorola)
6002 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]'
6003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6004 ;;
6005 ncr)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008 sequent)
6009 lt_cv_file_magic_cmd='/bin/file'
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6011 ;;
6012 sni)
6013 lt_cv_file_magic_cmd='/bin/file'
6014 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6015 lt_cv_file_magic_test_file=/lib/libc.so
6016 ;;
6017 siemens)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020 pc)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023 esac
6024 ;;
6025
6026tpf*)
6027 lt_cv_deplibs_check_method=pass_all
6028 ;;
6029esac
6030
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6033$as_echo "$lt_cv_deplibs_check_method" >&6; }
6034file_magic_cmd=$lt_cv_file_magic_cmd
6035deplibs_check_method=$lt_cv_deplibs_check_method
6036test -z "$deplibs_check_method" && deplibs_check_method=unknown
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6051set dummy ${ac_tool_prefix}ar; ac_word=$2
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6054if ${ac_cv_prog_AR+:} false; then :
e440a328 6055 $as_echo_n "(cached) " >&6
6056else
6057 if test -n "$AR"; then
6058 ac_cv_prog_AR="$AR" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6067 ac_cv_prog_AR="${ac_tool_prefix}ar"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072 done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077AR=$ac_cv_prog_AR
6078if test -n "$AR"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6080$as_echo "$AR" >&6; }
6081else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
6084fi
6085
6086
6087fi
6088if test -z "$ac_cv_prog_AR"; then
6089 ac_ct_AR=$AR
6090 # Extract the first word of "ar", so it can be a program name with args.
6091set dummy ar; ac_word=$2
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6094if ${ac_cv_prog_ac_ct_AR+:} false; then :
e440a328 6095 $as_echo_n "(cached) " >&6
6096else
6097 if test -n "$ac_ct_AR"; then
6098 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6107 ac_cv_prog_ac_ct_AR="ar"
6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111done
6112 done
6113IFS=$as_save_IFS
6114
6115fi
6116fi
6117ac_ct_AR=$ac_cv_prog_ac_ct_AR
6118if test -n "$ac_ct_AR"; then
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6120$as_echo "$ac_ct_AR" >&6; }
6121else
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
6124fi
6125
6126 if test "x$ac_ct_AR" = x; then
6127 AR="false"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130yes:)
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133ac_tool_warned=yes ;;
6134esac
6135 AR=$ac_ct_AR
6136 fi
6137else
6138 AR="$ac_cv_prog_AR"
6139fi
6140
6141test -z "$AR" && AR=ar
6142test -z "$AR_FLAGS" && AR_FLAGS=cru
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6156set dummy ${ac_tool_prefix}strip; ac_word=$2
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6159if ${ac_cv_prog_STRIP+:} false; then :
e440a328 6160 $as_echo_n "(cached) " >&6
6161else
6162 if test -n "$STRIP"; then
6163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176done
6177 done
6178IFS=$as_save_IFS
6179
6180fi
6181fi
6182STRIP=$ac_cv_prog_STRIP
6183if test -n "$STRIP"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6185$as_echo "$STRIP" >&6; }
6186else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190
6191
6192fi
6193if test -z "$ac_cv_prog_STRIP"; then
6194 ac_ct_STRIP=$STRIP
6195 # Extract the first word of "strip", so it can be a program name with args.
6196set dummy strip; ac_word=$2
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6199if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
e440a328 6200 $as_echo_n "(cached) " >&6
6201else
6202 if test -n "$ac_ct_STRIP"; then
6203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6212 ac_cv_prog_ac_ct_STRIP="strip"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216done
6217 done
6218IFS=$as_save_IFS
6219
6220fi
6221fi
6222ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6223if test -n "$ac_ct_STRIP"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6225$as_echo "$ac_ct_STRIP" >&6; }
6226else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228$as_echo "no" >&6; }
6229fi
6230
6231 if test "x$ac_ct_STRIP" = x; then
6232 STRIP=":"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235yes:)
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238ac_tool_warned=yes ;;
6239esac
6240 STRIP=$ac_ct_STRIP
6241 fi
6242else
6243 STRIP="$ac_cv_prog_STRIP"
6244fi
6245
6246test -z "$STRIP" && STRIP=:
6247
6248
6249
6250
6251
6252
6253if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6255set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6258if ${ac_cv_prog_RANLIB+:} false; then :
e440a328 6259 $as_echo_n "(cached) " >&6
6260else
6261 if test -n "$RANLIB"; then
6262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6271 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275done
6276 done
6277IFS=$as_save_IFS
6278
6279fi
6280fi
6281RANLIB=$ac_cv_prog_RANLIB
6282if test -n "$RANLIB"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6284$as_echo "$RANLIB" >&6; }
6285else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }
6288fi
6289
6290
6291fi
6292if test -z "$ac_cv_prog_RANLIB"; then
6293 ac_ct_RANLIB=$RANLIB
6294 # Extract the first word of "ranlib", so it can be a program name with args.
6295set dummy ranlib; ac_word=$2
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6298if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
e440a328 6299 $as_echo_n "(cached) " >&6
6300else
6301 if test -n "$ac_ct_RANLIB"; then
6302 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
6306do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6311 ac_cv_prog_ac_ct_RANLIB="ranlib"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315done
6316 done
6317IFS=$as_save_IFS
6318
6319fi
6320fi
6321ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6322if test -n "$ac_ct_RANLIB"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6324$as_echo "$ac_ct_RANLIB" >&6; }
6325else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327$as_echo "no" >&6; }
6328fi
6329
6330 if test "x$ac_ct_RANLIB" = x; then
6331 RANLIB=":"
6332 else
6333 case $cross_compiling:$ac_tool_warned in
6334yes:)
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337ac_tool_warned=yes ;;
6338esac
6339 RANLIB=$ac_ct_RANLIB
6340 fi
6341else
6342 RANLIB="$ac_cv_prog_RANLIB"
6343fi
6344
6345test -z "$RANLIB" && RANLIB=:
6346
6347
6348
6349
6350
6351
6352# Determine commands to create old-style static archives.
6353old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6354old_postinstall_cmds='chmod 644 $oldlib'
6355old_postuninstall_cmds=
6356
6357if test -n "$RANLIB"; then
6358 case $host_os in
6359 openbsd*)
6360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6361 ;;
6362 *)
6363 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6364 ;;
6365 esac
6366 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6367fi
6368
6369case $host_os in
6370 darwin*)
6371 lock_old_archive_extraction=yes ;;
6372 *)
6373 lock_old_archive_extraction=no ;;
6374esac
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414# If no C compiler was specified, use CC.
6415LTCC=${LTCC-"$CC"}
6416
6417# If no C compiler flags were specified, use CFLAGS.
6418LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6419
6420# Allow CC to be a program name with arguments.
6421compiler=$CC
6422
6423
6424# Check for command to grab the raw symbol name followed by C symbol from nm.
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6426$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
ea2e69a4 6427if ${lt_cv_sys_global_symbol_pipe+:} false; then :
e440a328 6428 $as_echo_n "(cached) " >&6
6429else
6430
6431# These are sane defaults that work on at least a few old systems.
6432# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6433
6434# Character class describing NM global symbol codes.
6435symcode='[BCDEGRST]'
6436
6437# Regexp to match symbols that can be accessed directly from C.
6438sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6439
6440# Define system-specific variables.
6441case $host_os in
6442aix*)
6443 symcode='[BCDT]'
6444 ;;
6445cygwin* | mingw* | pw32* | cegcc*)
6446 symcode='[ABCDGISTW]'
6447 ;;
6448hpux*)
6449 if test "$host_cpu" = ia64; then
6450 symcode='[ABCDEGRST]'
6451 fi
6452 ;;
6453irix* | nonstopux*)
6454 symcode='[BCDEGRST]'
6455 ;;
6456osf*)
6457 symcode='[BCDEGQRST]'
6458 ;;
6459solaris*)
6460 symcode='[BDRT]'
6461 ;;
6462sco3.2v5*)
6463 symcode='[DT]'
6464 ;;
6465sysv4.2uw2*)
6466 symcode='[DT]'
6467 ;;
6468sysv5* | sco5v6* | unixware* | OpenUNIX*)
6469 symcode='[ABDT]'
6470 ;;
6471sysv4)
6472 symcode='[DFNSTU]'
6473 ;;
6474esac
6475
6476# If we're using GNU nm, then use its standard symbol codes.
6477case `$NM -V 2>&1` in
6478*GNU* | *'with BFD'*)
6479 symcode='[ABCDGIRSTW]' ;;
6480esac
6481
6482# Transform an extracted symbol line into a proper C declaration.
6483# Some systems (esp. on ia64) link data and code symbols differently,
6484# so use this general approach.
6485lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6486
6487# Transform an extracted symbol line into symbol name and symbol address
6488lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6489lt_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'"
6490
6491# Handle CRLF in mingw tool chain
6492opt_cr=
6493case $build_os in
6494mingw*)
6495 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6496 ;;
6497esac
6498
6499# Try without a prefix underscore, then with it.
6500for ac_symprfx in "" "_"; do
6501
6502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6503 symxfrm="\\1 $ac_symprfx\\2 \\2"
6504
6505 # Write the raw and C identifiers.
6506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6507 # Fake it for dumpbin and say T for any non-static function
6508 # and D for any global variable.
6509 # Also find C++ and __fastcall symbols from MSVC++,
6510 # which start with @ or ?.
6511 lt_cv_sys_global_symbol_pipe="$AWK '"\
6512" {last_section=section; section=\$ 3};"\
6513" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6514" \$ 0!~/External *\|/{next};"\
6515" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6516" {if(hide[section]) next};"\
6517" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6518" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6519" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6520" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6521" ' prfx=^$ac_symprfx"
6522 else
6523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6524 fi
6525
6526 # Check to see that the pipe works correctly.
6527 pipe_works=no
6528
6529 rm -f conftest*
6530 cat > conftest.$ac_ext <<_LT_EOF
6531#ifdef __cplusplus
6532extern "C" {
6533#endif
6534char nm_test_var;
6535void nm_test_func(void);
6536void nm_test_func(void){}
6537#ifdef __cplusplus
6538}
6539#endif
6540int main(){nm_test_var='a';nm_test_func();return(0);}
6541_LT_EOF
6542
6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544 (eval $ac_compile) 2>&5
6545 ac_status=$?
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
6548 # Now try to grab the symbols.
6549 nlist=conftest.nm
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6552 ac_status=$?
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; } && test -s "$nlist"; then
6555 # Try sorting and uniquifying the output.
6556 if sort "$nlist" | uniq > "$nlist"T; then
6557 mv -f "$nlist"T "$nlist"
6558 else
6559 rm -f "$nlist"T
6560 fi
6561
6562 # Make sure that we snagged all the symbols we need.
6563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6565 cat <<_LT_EOF > conftest.$ac_ext
6566#ifdef __cplusplus
6567extern "C" {
6568#endif
6569
6570_LT_EOF
6571 # Now generate the symbol file.
6572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6573
6574 cat <<_LT_EOF >> conftest.$ac_ext
6575
6576/* The mapping between symbol names and symbols. */
6577const struct {
6578 const char *name;
6579 void *address;
6580}
6581lt__PROGRAM__LTX_preloaded_symbols[] =
6582{
6583 { "@PROGRAM@", (void *) 0 },
6584_LT_EOF
6585 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6586 cat <<\_LT_EOF >> conftest.$ac_ext
6587 {0, (void *) 0}
6588};
6589
6590/* This works around a problem in FreeBSD linker */
6591#ifdef FREEBSD_WORKAROUND
6592static const void *lt_preloaded_setup() {
6593 return lt__PROGRAM__LTX_preloaded_symbols;
6594}
6595#endif
6596
6597#ifdef __cplusplus
6598}
6599#endif
6600_LT_EOF
6601 # Now try linking the two files.
6602 mv conftest.$ac_objext conftstm.$ac_objext
6603 lt_save_LIBS="$LIBS"
6604 lt_save_CFLAGS="$CFLAGS"
6605 LIBS="conftstm.$ac_objext"
6606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6608 (eval $ac_link) 2>&5
6609 ac_status=$?
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6612 pipe_works=yes
6613 fi
6614 LIBS="$lt_save_LIBS"
6615 CFLAGS="$lt_save_CFLAGS"
6616 else
6617 echo "cannot find nm_test_func in $nlist" >&5
6618 fi
6619 else
6620 echo "cannot find nm_test_var in $nlist" >&5
6621 fi
6622 else
6623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6624 fi
6625 else
6626 echo "$progname: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6628 fi
6629 rm -rf conftest* conftst*
6630
6631 # Do not use the global_symbol_pipe unless it works.
6632 if test "$pipe_works" = yes; then
6633 break
6634 else
6635 lt_cv_sys_global_symbol_pipe=
6636 fi
6637done
6638
6639fi
6640
6641if test -z "$lt_cv_sys_global_symbol_pipe"; then
6642 lt_cv_sys_global_symbol_to_cdecl=
6643fi
6644if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6646$as_echo "failed" >&6; }
6647else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6649$as_echo "ok" >&6; }
6650fi
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
c9c0c1d2 6671
e440a328 6672
6673
6674# Check whether --enable-libtool-lock was given.
6675if test "${enable_libtool_lock+set}" = set; then :
6676 enableval=$enable_libtool_lock;
6677fi
6678
6679test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6680
6681# Some flags need to be propagated to the compiler or linker for good
6682# libtool support.
6683case $host in
6684ia64-*-hpux*)
6685 # Find out which ABI we are using.
6686 echo 'int i;' > conftest.$ac_ext
6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6688 (eval $ac_compile) 2>&5
6689 ac_status=$?
6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691 test $ac_status = 0; }; then
6692 case `/usr/bin/file conftest.$ac_objext` in
6693 *ELF-32*)
6694 HPUX_IA64_MODE="32"
6695 ;;
6696 *ELF-64*)
6697 HPUX_IA64_MODE="64"
6698 ;;
6699 esac
6700 fi
6701 rm -rf conftest*
6702 ;;
6703*-*-irix6*)
6704 # Find out which ABI we are using.
6705 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6707 (eval $ac_compile) 2>&5
6708 ac_status=$?
6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710 test $ac_status = 0; }; then
6711 if test "$lt_cv_prog_gnu_ld" = yes; then
6712 case `/usr/bin/file conftest.$ac_objext` in
6713 *32-bit*)
6714 LD="${LD-ld} -melf32bsmip"
6715 ;;
6716 *N32*)
6717 LD="${LD-ld} -melf32bmipn32"
6718 ;;
6719 *64-bit*)
6720 LD="${LD-ld} -melf64bmip"
6721 ;;
6722 esac
6723 else
6724 case `/usr/bin/file conftest.$ac_objext` in
6725 *32-bit*)
6726 LD="${LD-ld} -32"
6727 ;;
6728 *N32*)
6729 LD="${LD-ld} -n32"
6730 ;;
6731 *64-bit*)
6732 LD="${LD-ld} -64"
6733 ;;
6734 esac
6735 fi
6736 fi
6737 rm -rf conftest*
6738 ;;
6739
f248394b 6740x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
e440a328 6741s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6742 # Find out which ABI we are using.
6743 echo 'int i;' > conftest.$ac_ext
6744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6745 (eval $ac_compile) 2>&5
6746 ac_status=$?
6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748 test $ac_status = 0; }; then
6749 case `/usr/bin/file conftest.o` in
6750 *32-bit*)
6751 case $host in
6752 x86_64-*kfreebsd*-gnu)
6753 LD="${LD-ld} -m elf_i386_fbsd"
6754 ;;
6755 x86_64-*linux*)
31d696fa 6756 case `/usr/bin/file conftest.o` in
6757 *x86-64*)
6758 LD="${LD-ld} -m elf32_x86_64"
6759 ;;
6760 *)
6761 LD="${LD-ld} -m elf_i386"
6762 ;;
6763 esac
e440a328 6764 ;;
45c387c7 6765 powerpc64le-*linux*)
f248394b 6766 LD="${LD-ld} -m elf32lppclinux"
6767 ;;
45c387c7 6768 powerpc64-*linux*)
e440a328 6769 LD="${LD-ld} -m elf32ppclinux"
6770 ;;
6771 s390x-*linux*)
6772 LD="${LD-ld} -m elf_s390"
6773 ;;
6774 sparc64-*linux*)
6775 LD="${LD-ld} -m elf32_sparc"
6776 ;;
6777 esac
6778 ;;
6779 *64-bit*)
6780 case $host in
6781 x86_64-*kfreebsd*-gnu)
6782 LD="${LD-ld} -m elf_x86_64_fbsd"
6783 ;;
6784 x86_64-*linux*)
6785 LD="${LD-ld} -m elf_x86_64"
6786 ;;
45c387c7 6787 powerpcle-*linux*)
f248394b 6788 LD="${LD-ld} -m elf64lppc"
6789 ;;
45c387c7 6790 powerpc-*linux*)
e440a328 6791 LD="${LD-ld} -m elf64ppc"
6792 ;;
6793 s390*-*linux*|s390*-*tpf*)
6794 LD="${LD-ld} -m elf64_s390"
6795 ;;
6796 sparc*-*linux*)
6797 LD="${LD-ld} -m elf64_sparc"
6798 ;;
6799 esac
6800 ;;
6801 esac
6802 fi
6803 rm -rf conftest*
6804 ;;
6805
6806*-*-sco3.2v5*)
6807 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6808 SAVE_CFLAGS="$CFLAGS"
6809 CFLAGS="$CFLAGS -belf"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6811$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
ea2e69a4 6812if ${lt_cv_cc_needs_belf+:} false; then :
e440a328 6813 $as_echo_n "(cached) " >&6
6814else
6815 ac_ext=c
6816ac_cpp='$CPP $CPPFLAGS'
6817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819ac_compiler_gnu=$ac_cv_c_compiler_gnu
6820
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h. */
6823
6824int
6825main ()
6826{
6827
6828 ;
6829 return 0;
6830}
6831_ACEOF
6832if ac_fn_c_try_link "$LINENO"; then :
6833 lt_cv_cc_needs_belf=yes
6834else
6835 lt_cv_cc_needs_belf=no
6836fi
6837rm -f core conftest.err conftest.$ac_objext \
6838 conftest$ac_exeext conftest.$ac_ext
6839 ac_ext=c
6840ac_cpp='$CPP $CPPFLAGS'
6841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843ac_compiler_gnu=$ac_cv_c_compiler_gnu
6844
6845fi
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6847$as_echo "$lt_cv_cc_needs_belf" >&6; }
6848 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6849 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6850 CFLAGS="$SAVE_CFLAGS"
6851 fi
6852 ;;
31d696fa 6853sparc*-*solaris*)
e440a328 6854 # Find out which ABI we are using.
6855 echo 'int i;' > conftest.$ac_ext
6856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857 (eval $ac_compile) 2>&5
6858 ac_status=$?
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }; then
6861 case `/usr/bin/file conftest.o` in
6862 *64-bit*)
6863 case $lt_cv_prog_gnu_ld in
31d696fa 6864 yes*) LD="${LD-ld} -m elf64_sparc" ;;
e440a328 6865 *)
6866 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6867 LD="${LD-ld} -64"
6868 fi
6869 ;;
6870 esac
6871 ;;
6872 esac
6873 fi
6874 rm -rf conftest*
6875 ;;
6876esac
6877
6878need_locks="$enable_libtool_lock"
6879
6880
6881 case $host_os in
6882 rhapsody* | darwin*)
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6885set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6888if ${ac_cv_prog_DSYMUTIL+:} false; then :
e440a328 6889 $as_echo_n "(cached) " >&6
6890else
6891 if test -n "$DSYMUTIL"; then
6892 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6893else
6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6901 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906 done
6907IFS=$as_save_IFS
6908
6909fi
6910fi
6911DSYMUTIL=$ac_cv_prog_DSYMUTIL
6912if test -n "$DSYMUTIL"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6914$as_echo "$DSYMUTIL" >&6; }
6915else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917$as_echo "no" >&6; }
6918fi
6919
6920
6921fi
6922if test -z "$ac_cv_prog_DSYMUTIL"; then
6923 ac_ct_DSYMUTIL=$DSYMUTIL
6924 # Extract the first word of "dsymutil", so it can be a program name with args.
6925set dummy dsymutil; 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; }
ea2e69a4 6928if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
e440a328 6929 $as_echo_n "(cached) " >&6
6930else
6931 if test -n "$ac_ct_DSYMUTIL"; then
6932 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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
ea2e69a4 6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6941 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
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
6951ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6952if test -n "$ac_ct_DSYMUTIL"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6954$as_echo "$ac_ct_DSYMUTIL" >&6; }
6955else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957$as_echo "no" >&6; }
6958fi
6959
6960 if test "x$ac_ct_DSYMUTIL" = x; then
6961 DSYMUTIL=":"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964yes:)
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967ac_tool_warned=yes ;;
6968esac
6969 DSYMUTIL=$ac_ct_DSYMUTIL
6970 fi
6971else
6972 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6973fi
6974
6975 if test -n "$ac_tool_prefix"; then
6976 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6977set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 6980if ${ac_cv_prog_NMEDIT+:} false; then :
e440a328 6981 $as_echo_n "(cached) " >&6
6982else
6983 if test -n "$NMEDIT"; then
6984 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6985else
6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 6993 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997done
6998 done
6999IFS=$as_save_IFS
7000
7001fi
7002fi
7003NMEDIT=$ac_cv_prog_NMEDIT
7004if test -n "$NMEDIT"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7006$as_echo "$NMEDIT" >&6; }
7007else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009$as_echo "no" >&6; }
7010fi
7011
7012
7013fi
7014if test -z "$ac_cv_prog_NMEDIT"; then
7015 ac_ct_NMEDIT=$NMEDIT
7016 # Extract the first word of "nmedit", so it can be a program name with args.
7017set dummy nmedit; 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; }
ea2e69a4 7020if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
e440a328 7021 $as_echo_n "(cached) " >&6
7022else
7023 if test -n "$ac_ct_NMEDIT"; then
7024 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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
ea2e69a4 7032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7033 ac_cv_prog_ac_ct_NMEDIT="nmedit"
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
7043ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7044if test -n "$ac_ct_NMEDIT"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7046$as_echo "$ac_ct_NMEDIT" >&6; }
7047else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049$as_echo "no" >&6; }
7050fi
7051
7052 if test "x$ac_ct_NMEDIT" = x; then
7053 NMEDIT=":"
7054 else
7055 case $cross_compiling:$ac_tool_warned in
7056yes:)
7057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7059ac_tool_warned=yes ;;
7060esac
7061 NMEDIT=$ac_ct_NMEDIT
7062 fi
7063else
7064 NMEDIT="$ac_cv_prog_NMEDIT"
7065fi
7066
7067 if test -n "$ac_tool_prefix"; then
7068 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7069set dummy ${ac_tool_prefix}lipo; ac_word=$2
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7072if ${ac_cv_prog_LIPO+:} false; then :
e440a328 7073 $as_echo_n "(cached) " >&6
7074else
7075 if test -n "$LIPO"; then
7076 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7085 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089done
7090 done
7091IFS=$as_save_IFS
7092
7093fi
7094fi
7095LIPO=$ac_cv_prog_LIPO
7096if test -n "$LIPO"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7098$as_echo "$LIPO" >&6; }
7099else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102fi
7103
7104
7105fi
7106if test -z "$ac_cv_prog_LIPO"; then
7107 ac_ct_LIPO=$LIPO
7108 # Extract the first word of "lipo", so it can be a program name with args.
7109set dummy lipo; ac_word=$2
7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7112if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
e440a328 7113 $as_echo_n "(cached) " >&6
7114else
7115 if test -n "$ac_ct_LIPO"; then
7116 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7125 ac_cv_prog_ac_ct_LIPO="lipo"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129done
7130 done
7131IFS=$as_save_IFS
7132
7133fi
7134fi
7135ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7136if test -n "$ac_ct_LIPO"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7138$as_echo "$ac_ct_LIPO" >&6; }
7139else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
7142fi
7143
7144 if test "x$ac_ct_LIPO" = x; then
7145 LIPO=":"
7146 else
7147 case $cross_compiling:$ac_tool_warned in
7148yes:)
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151ac_tool_warned=yes ;;
7152esac
7153 LIPO=$ac_ct_LIPO
7154 fi
7155else
7156 LIPO="$ac_cv_prog_LIPO"
7157fi
7158
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7161set dummy ${ac_tool_prefix}otool; ac_word=$2
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7164if ${ac_cv_prog_OTOOL+:} false; then :
e440a328 7165 $as_echo_n "(cached) " >&6
7166else
7167 if test -n "$OTOOL"; then
7168 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7169else
7170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171for as_dir in $PATH
7172do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7177 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181done
7182 done
7183IFS=$as_save_IFS
7184
7185fi
7186fi
7187OTOOL=$ac_cv_prog_OTOOL
7188if test -n "$OTOOL"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7190$as_echo "$OTOOL" >&6; }
7191else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193$as_echo "no" >&6; }
7194fi
7195
7196
7197fi
7198if test -z "$ac_cv_prog_OTOOL"; then
7199 ac_ct_OTOOL=$OTOOL
7200 # Extract the first word of "otool", so it can be a program name with args.
7201set dummy otool; ac_word=$2
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7204if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
e440a328 7205 $as_echo_n "(cached) " >&6
7206else
7207 if test -n "$ac_ct_OTOOL"; then
7208 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7209else
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7217 ac_cv_prog_ac_ct_OTOOL="otool"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7220 fi
7221done
7222 done
7223IFS=$as_save_IFS
7224
7225fi
7226fi
7227ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7228if test -n "$ac_ct_OTOOL"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7230$as_echo "$ac_ct_OTOOL" >&6; }
7231else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233$as_echo "no" >&6; }
7234fi
7235
7236 if test "x$ac_ct_OTOOL" = x; then
7237 OTOOL=":"
7238 else
7239 case $cross_compiling:$ac_tool_warned in
7240yes:)
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243ac_tool_warned=yes ;;
7244esac
7245 OTOOL=$ac_ct_OTOOL
7246 fi
7247else
7248 OTOOL="$ac_cv_prog_OTOOL"
7249fi
7250
7251 if test -n "$ac_tool_prefix"; then
7252 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7253set dummy ${ac_tool_prefix}otool64; ac_word=$2
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7256if ${ac_cv_prog_OTOOL64+:} false; then :
e440a328 7257 $as_echo_n "(cached) " >&6
7258else
7259 if test -n "$OTOOL64"; then
7260 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7269 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273done
7274 done
7275IFS=$as_save_IFS
7276
7277fi
7278fi
7279OTOOL64=$ac_cv_prog_OTOOL64
7280if test -n "$OTOOL64"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7282$as_echo "$OTOOL64" >&6; }
7283else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285$as_echo "no" >&6; }
7286fi
7287
7288
7289fi
7290if test -z "$ac_cv_prog_OTOOL64"; then
7291 ac_ct_OTOOL64=$OTOOL64
7292 # Extract the first word of "otool64", so it can be a program name with args.
7293set dummy otool64; ac_word=$2
7294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7296if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
e440a328 7297 $as_echo_n "(cached) " >&6
7298else
7299 if test -n "$ac_ct_OTOOL64"; then
7300 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7301else
7302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303for as_dir in $PATH
7304do
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7309 ac_cv_prog_ac_ct_OTOOL64="otool64"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7312 fi
7313done
7314 done
7315IFS=$as_save_IFS
7316
7317fi
7318fi
7319ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7320if test -n "$ac_ct_OTOOL64"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7322$as_echo "$ac_ct_OTOOL64" >&6; }
7323else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325$as_echo "no" >&6; }
7326fi
7327
7328 if test "x$ac_ct_OTOOL64" = x; then
7329 OTOOL64=":"
7330 else
7331 case $cross_compiling:$ac_tool_warned in
7332yes:)
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7335ac_tool_warned=yes ;;
7336esac
7337 OTOOL64=$ac_ct_OTOOL64
7338 fi
7339else
8202cb3c 7340 OTOOL64="$ac_cv_prog_OTOOL64"
e440a328 7341fi
7342
e440a328 7343
7344
e440a328 7345
e440a328 7346
e440a328 7347
e440a328 7348
e440a328 7349
e440a328 7350
e440a328 7351
e440a328 7352
e440a328 7353
e440a328 7354
e440a328 7355
8202cb3c 7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7370$as_echo_n "checking for -single_module linker flag... " >&6; }
ea2e69a4 7371if ${lt_cv_apple_cc_single_mod+:} false; then :
8202cb3c 7372 $as_echo_n "(cached) " >&6
e440a328 7373else
8202cb3c 7374 lt_cv_apple_cc_single_mod=no
7375 if test -z "${LT_MULTI_MODULE}"; then
7376 # By default we will add the -single_module flag. You can override
7377 # by either setting the environment variable LT_MULTI_MODULE
7378 # non-empty at configure time, or by adding -multi_module to the
7379 # link flags.
7380 rm -rf libconftest.dylib*
7381 echo "int foo(void){return 1;}" > conftest.c
7382 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7383-dynamiclib -Wl,-single_module conftest.c" >&5
7384 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7385 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7386 _lt_result=$?
7387 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7388 lt_cv_apple_cc_single_mod=yes
7389 else
7390 cat conftest.err >&5
7391 fi
7392 rm -rf libconftest.dylib*
7393 rm -f conftest.*
7394 fi
7395fi
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7397$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7399$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
ea2e69a4 7400if ${lt_cv_ld_exported_symbols_list+:} false; then :
8202cb3c 7401 $as_echo_n "(cached) " >&6
7402else
7403 lt_cv_ld_exported_symbols_list=no
7404 save_LDFLAGS=$LDFLAGS
7405 echo "_main" > conftest.sym
7406 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e440a328 7408/* end confdefs.h. */
e440a328 7409
e440a328 7410int
7411main ()
7412{
8202cb3c 7413
7414 ;
e440a328 7415 return 0;
7416}
7417_ACEOF
8202cb3c 7418if ac_fn_c_try_link "$LINENO"; then :
7419 lt_cv_ld_exported_symbols_list=yes
e440a328 7420else
8202cb3c 7421 lt_cv_ld_exported_symbols_list=no
e440a328 7422fi
8202cb3c 7423rm -f core conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7425 LDFLAGS="$save_LDFLAGS"
e440a328 7426
7427fi
8202cb3c 7428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7429$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7431$as_echo_n "checking for -force_load linker flag... " >&6; }
ea2e69a4 7432if ${lt_cv_ld_force_load+:} false; then :
8202cb3c 7433 $as_echo_n "(cached) " >&6
7434else
7435 lt_cv_ld_force_load=no
7436 cat > conftest.c << _LT_EOF
7437int forced_loaded() { return 2;}
7438_LT_EOF
7439 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7440 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7441 echo "$AR cru libconftest.a conftest.o" >&5
7442 $AR cru libconftest.a conftest.o 2>&5
7443 cat > conftest.c << _LT_EOF
7444int main() { return 0;}
7445_LT_EOF
7446 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7447 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7448 _lt_result=$?
7449 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7450 lt_cv_ld_force_load=yes
7451 else
7452 cat conftest.err >&5
7453 fi
7454 rm -f conftest.err libconftest.a conftest conftest.c
7455 rm -rf conftest.dSYM
e440a328 7456
7457fi
8202cb3c 7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7459$as_echo "$lt_cv_ld_force_load" >&6; }
7460 case $host_os in
7461 rhapsody* | darwin1.[012])
7462 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7463 darwin1.*)
7464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7465 darwin*) # darwin 5.x on
7466 # if running on 10.5 or later, the deployment target defaults
7467 # to the OS version, if on x86, and 10.4, the deployment
7468 # target defaults to 10.4. Don't you love it?
7469 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7470 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7471 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
31d696fa 7472 10.[012][,.]*)
8202cb3c 7473 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7474 10.*)
7475 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7476 esac
7477 ;;
7478 esac
7479 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7480 _lt_dar_single_mod='$single_module'
7481 fi
7482 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7483 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7484 else
7485 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7486 fi
7487 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7488 _lt_dsymutil='~$DSYMUTIL $lib || :'
7489 else
7490 _lt_dsymutil=
7491 fi
7492 ;;
7493 esac
e440a328 7494
c9c0c1d2 7495ac_ext=c
7496ac_cpp='$CPP $CPPFLAGS'
7497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7501$as_echo_n "checking how to run the C preprocessor... " >&6; }
7502# On Suns, sometimes $CPP names a directory.
7503if test -n "$CPP" && test -d "$CPP"; then
7504 CPP=
7505fi
7506if test -z "$CPP"; then
ea2e69a4 7507 if ${ac_cv_prog_CPP+:} false; then :
c9c0c1d2 7508 $as_echo_n "(cached) " >&6
7509else
7510 # Double quotes because CPP needs to be expanded
7511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7512 do
7513 ac_preproc_ok=false
7514for ac_c_preproc_warn_flag in '' yes
7515do
7516 # Use a header file that comes with gcc, so configuring glibc
7517 # with a fresh cross-compiler works.
7518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7519 # <limits.h> exists even on freestanding compilers.
7520 # On the NeXT, cc -E runs the code through the compiler's parser,
7521 # not just through cpp. "Syntax error" is here to catch this case.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h. */
7524#ifdef __STDC__
7525# include <limits.h>
7526#else
7527# include <assert.h>
7528#endif
7529 Syntax error
7530_ACEOF
7531if ac_fn_c_try_cpp "$LINENO"; then :
7532
7533else
7534 # Broken: fails on valid input.
7535continue
7536fi
ea2e69a4 7537rm -f conftest.err conftest.i conftest.$ac_ext
c9c0c1d2 7538
7539 # OK, works on sane cases. Now check whether nonexistent headers
7540 # can be detected and how.
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542/* end confdefs.h. */
7543#include <ac_nonexistent.h>
7544_ACEOF
7545if ac_fn_c_try_cpp "$LINENO"; then :
7546 # Broken: success on invalid input.
7547continue
7548else
7549 # Passes both tests.
7550ac_preproc_ok=:
7551break
7552fi
ea2e69a4 7553rm -f conftest.err conftest.i conftest.$ac_ext
c9c0c1d2 7554
7555done
7556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ea2e69a4 7557rm -f conftest.i conftest.err conftest.$ac_ext
c9c0c1d2 7558if $ac_preproc_ok; then :
7559 break
7560fi
7561
7562 done
7563 ac_cv_prog_CPP=$CPP
7564
7565fi
7566 CPP=$ac_cv_prog_CPP
7567else
7568 ac_cv_prog_CPP=$CPP
7569fi
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7571$as_echo "$CPP" >&6; }
7572ac_preproc_ok=false
7573for ac_c_preproc_warn_flag in '' yes
7574do
7575 # Use a header file that comes with gcc, so configuring glibc
7576 # with a fresh cross-compiler works.
7577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7578 # <limits.h> exists even on freestanding compilers.
7579 # On the NeXT, cc -E runs the code through the compiler's parser,
7580 # not just through cpp. "Syntax error" is here to catch this case.
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582/* end confdefs.h. */
7583#ifdef __STDC__
7584# include <limits.h>
7585#else
7586# include <assert.h>
7587#endif
7588 Syntax error
7589_ACEOF
7590if ac_fn_c_try_cpp "$LINENO"; then :
7591
7592else
7593 # Broken: fails on valid input.
7594continue
7595fi
ea2e69a4 7596rm -f conftest.err conftest.i conftest.$ac_ext
c9c0c1d2 7597
7598 # OK, works on sane cases. Now check whether nonexistent headers
7599 # can be detected and how.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h. */
7602#include <ac_nonexistent.h>
7603_ACEOF
7604if ac_fn_c_try_cpp "$LINENO"; then :
7605 # Broken: success on invalid input.
7606continue
7607else
7608 # Passes both tests.
7609ac_preproc_ok=:
7610break
7611fi
ea2e69a4 7612rm -f conftest.err conftest.i conftest.$ac_ext
c9c0c1d2 7613
7614done
7615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ea2e69a4 7616rm -f conftest.i conftest.err conftest.$ac_ext
c9c0c1d2 7617if $ac_preproc_ok; then :
7618
7619else
7620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 7622as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7623See \`config.log' for more details" "$LINENO" 5; }
c9c0c1d2 7624fi
7625
7626ac_ext=c
7627ac_cpp='$CPP $CPPFLAGS'
7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631
7632
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7634$as_echo_n "checking for ANSI C header files... " >&6; }
ea2e69a4 7635if ${ac_cv_header_stdc+:} false; then :
c9c0c1d2 7636 $as_echo_n "(cached) " >&6
7637else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h. */
7640#include <stdlib.h>
7641#include <stdarg.h>
7642#include <string.h>
7643#include <float.h>
7644
7645int
7646main ()
7647{
7648
7649 ;
7650 return 0;
7651}
7652_ACEOF
7653if ac_fn_c_try_compile "$LINENO"; then :
7654 ac_cv_header_stdc=yes
7655else
7656 ac_cv_header_stdc=no
7657fi
7658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659
7660if test $ac_cv_header_stdc = yes; then
7661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663/* end confdefs.h. */
7664#include <string.h>
7665
7666_ACEOF
7667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7668 $EGREP "memchr" >/dev/null 2>&1; then :
7669
7670else
7671 ac_cv_header_stdc=no
7672fi
7673rm -f conftest*
7674
7675fi
7676
7677if test $ac_cv_header_stdc = yes; then
7678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h. */
7681#include <stdlib.h>
7682
7683_ACEOF
7684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7685 $EGREP "free" >/dev/null 2>&1; then :
7686
7687else
7688 ac_cv_header_stdc=no
7689fi
7690rm -f conftest*
7691
7692fi
7693
7694if test $ac_cv_header_stdc = yes; then
7695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7696 if test "$cross_compiling" = yes; then :
7697 :
7698else
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h. */
7701#include <ctype.h>
7702#include <stdlib.h>
7703#if ((' ' & 0x0FF) == 0x020)
7704# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7705# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7706#else
7707# define ISLOWER(c) \
7708 (('a' <= (c) && (c) <= 'i') \
7709 || ('j' <= (c) && (c) <= 'r') \
7710 || ('s' <= (c) && (c) <= 'z'))
7711# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7712#endif
7713
7714#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7715int
7716main ()
7717{
7718 int i;
7719 for (i = 0; i < 256; i++)
7720 if (XOR (islower (i), ISLOWER (i))
7721 || toupper (i) != TOUPPER (i))
7722 return 2;
7723 return 0;
7724}
7725_ACEOF
7726if ac_fn_c_try_run "$LINENO"; then :
7727
7728else
7729 ac_cv_header_stdc=no
7730fi
7731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7732 conftest.$ac_objext conftest.beam conftest.$ac_ext
7733fi
7734
7735fi
7736fi
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7738$as_echo "$ac_cv_header_stdc" >&6; }
7739if test $ac_cv_header_stdc = yes; then
7740
7741$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7742
7743fi
7744
7745# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7746for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7747 inttypes.h stdint.h unistd.h
7748do :
7749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7750ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7751"
ea2e69a4 7752if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
c9c0c1d2 7753 cat >>confdefs.h <<_ACEOF
7754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7755_ACEOF
7756
7757fi
7758
7759done
7760
7761
e440a328 7762for ac_header in dlfcn.h
7763do :
7764 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7765"
ea2e69a4 7766if test "x$ac_cv_header_dlfcn_h" = xyes; then :
e440a328 7767 cat >>confdefs.h <<_ACEOF
7768#define HAVE_DLFCN_H 1
7769_ACEOF
7770
7771fi
7772
7773done
7774
7775if test -n "$ac_tool_prefix"; then
7776 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7777set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7780if ${ac_cv_prog_GOC+:} false; then :
e440a328 7781 $as_echo_n "(cached) " >&6
7782else
7783 if test -n "$GOC"; then
7784 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7785else
7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
7791 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7793 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 break 2
7796 fi
7797done
7798 done
7799IFS=$as_save_IFS
7800
7801fi
7802fi
7803GOC=$ac_cv_prog_GOC
7804if test -n "$GOC"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7806$as_echo "$GOC" >&6; }
7807else
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
7810fi
7811
7812
7813fi
7814if test -z "$ac_cv_prog_GOC"; then
7815 ac_ct_GOC=$GOC
7816 # Extract the first word of "gccgo", so it can be a program name with args.
7817set dummy gccgo; ac_word=$2
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 7820if ${ac_cv_prog_ac_ct_GOC+:} false; then :
e440a328 7821 $as_echo_n "(cached) " >&6
7822else
7823 if test -n "$ac_ct_GOC"; then
7824 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7825else
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 7832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e440a328 7833 ac_cv_prog_ac_ct_GOC="gccgo"
7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837done
7838 done
7839IFS=$as_save_IFS
7840
7841fi
7842fi
7843ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7844if test -n "$ac_ct_GOC"; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7846$as_echo "$ac_ct_GOC" >&6; }
7847else
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
7850fi
7851
7852 if test "x$ac_ct_GOC" = x; then
7853 GOC=""
7854 else
7855 case $cross_compiling:$ac_tool_warned in
7856yes:)
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7859ac_tool_warned=yes ;;
7860esac
7861 GOC=$ac_ct_GOC
7862 fi
7863else
7864 GOC="$ac_cv_prog_GOC"
7865fi
7866
7867
7868
7869
7870
7871
7872# Set options
7873
7874
7875
7876
7877 enable_win32_dll=no
7878
7879
7880 # Check whether --enable-shared was given.
7881if test "${enable_shared+set}" = set; then :
7882 enableval=$enable_shared; p=${PACKAGE-default}
7883 case $enableval in
7884 yes) enable_shared=yes ;;
7885 no) enable_shared=no ;;
7886 *)
7887 enable_shared=no
7888 # Look at the argument we got. We use all the common list separators.
7889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7890 for pkg in $enableval; do
7891 IFS="$lt_save_ifs"
7892 if test "X$pkg" = "X$p"; then
7893 enable_shared=yes
7894 fi
7895 done
7896 IFS="$lt_save_ifs"
7897 ;;
7898 esac
7899else
7900 enable_shared=yes
7901fi
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911 # Check whether --enable-static was given.
7912if test "${enable_static+set}" = set; then :
7913 enableval=$enable_static; p=${PACKAGE-default}
7914 case $enableval in
7915 yes) enable_static=yes ;;
7916 no) enable_static=no ;;
7917 *)
7918 enable_static=no
7919 # Look at the argument we got. We use all the common list separators.
7920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7921 for pkg in $enableval; do
7922 IFS="$lt_save_ifs"
7923 if test "X$pkg" = "X$p"; then
7924 enable_static=yes
7925 fi
7926 done
7927 IFS="$lt_save_ifs"
7928 ;;
7929 esac
7930else
7931 enable_static=yes
7932fi
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943# Check whether --with-pic was given.
7944if test "${with_pic+set}" = set; then :
7945 withval=$with_pic; pic_mode="$withval"
7946else
7947 pic_mode=default
7948fi
7949
7950
7951test -z "$pic_mode" && pic_mode=default
7952
7953
7954
7955
7956
7957
7958
7959 # Check whether --enable-fast-install was given.
7960if test "${enable_fast_install+set}" = set; then :
7961 enableval=$enable_fast_install; p=${PACKAGE-default}
7962 case $enableval in
7963 yes) enable_fast_install=yes ;;
7964 no) enable_fast_install=no ;;
7965 *)
7966 enable_fast_install=no
7967 # Look at the argument we got. We use all the common list separators.
7968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7969 for pkg in $enableval; do
7970 IFS="$lt_save_ifs"
7971 if test "X$pkg" = "X$p"; then
7972 enable_fast_install=yes
7973 fi
7974 done
7975 IFS="$lt_save_ifs"
7976 ;;
7977 esac
7978else
7979 enable_fast_install=yes
7980fi
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992# This can be used to rebuild libtool when needed
7993LIBTOOL_DEPS="$ltmain"
7994
7995# Always use our own libtool.
7996LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023test -z "$LN_S" && LN_S="ln -s"
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038if test -n "${ZSH_VERSION+set}" ; then
8039 setopt NO_GLOB_SUBST
8040fi
8041
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8043$as_echo_n "checking for objdir... " >&6; }
ea2e69a4 8044if ${lt_cv_objdir+:} false; then :
e440a328 8045 $as_echo_n "(cached) " >&6
8046else
8047 rm -f .libs 2>/dev/null
8048mkdir .libs 2>/dev/null
8049if test -d .libs; then
8050 lt_cv_objdir=.libs
8051else
8052 # MS-DOS does not allow filenames that begin with a dot.
8053 lt_cv_objdir=_libs
8054fi
8055rmdir .libs 2>/dev/null
8056fi
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8058$as_echo "$lt_cv_objdir" >&6; }
8059objdir=$lt_cv_objdir
8060
8061
8062
8063
8064
8065cat >>confdefs.h <<_ACEOF
8066#define LT_OBJDIR "$lt_cv_objdir/"
8067_ACEOF
8068
8069
8070
8071
8072case $host_os in
8073aix3*)
8074 # AIX sometimes has problems with the GCC collect2 program. For some
8075 # reason, if we set the COLLECT_NAMES environment variable, the problems
8076 # vanish in a puff of smoke.
8077 if test "X${COLLECT_NAMES+set}" != Xset; then
8078 COLLECT_NAMES=
8079 export COLLECT_NAMES
8080 fi
8081 ;;
8082esac
8083
8084# Global variables:
8085ofile=libtool
8086can_build_shared=yes
8087
8088# All known linkers require a `.a' archive for static linking (except MSVC,
8089# which needs '.lib').
8090libext=a
8091
8092with_gnu_ld="$lt_cv_prog_gnu_ld"
8093
8094old_CC="$CC"
8095old_CFLAGS="$CFLAGS"
8096
8097# Set sane defaults for various variables
8098test -z "$CC" && CC=cc
8099test -z "$LTCC" && LTCC=$CC
8100test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8101test -z "$LD" && LD=ld
8102test -z "$ac_objext" && ac_objext=o
8103
8104for cc_temp in $compiler""; do
8105 case $cc_temp in
8106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8108 \-*) ;;
8109 *) break;;
8110 esac
8111done
8112cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8113
8114
8115# Only perform the check for file, if the check method requires it
8116test -z "$MAGIC_CMD" && MAGIC_CMD=file
8117case $deplibs_check_method in
8118file_magic*)
8119 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8121$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
ea2e69a4 8122if ${lt_cv_path_MAGIC_CMD+:} false; then :
e440a328 8123 $as_echo_n "(cached) " >&6
8124else
8125 case $MAGIC_CMD in
8126[\\/*] | ?:[\\/]*)
8127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8128 ;;
8129*)
8130 lt_save_MAGIC_CMD="$MAGIC_CMD"
8131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8133 for ac_dir in $ac_dummy; do
8134 IFS="$lt_save_ifs"
8135 test -z "$ac_dir" && ac_dir=.
8136 if test -f $ac_dir/${ac_tool_prefix}file; then
8137 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8138 if test -n "$file_magic_test_file"; then
8139 case $deplibs_check_method in
8140 "file_magic "*)
8141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8144 $EGREP "$file_magic_regex" > /dev/null; then
8145 :
8146 else
8147 cat <<_LT_EOF 1>&2
8148
8149*** Warning: the command libtool uses to detect shared libraries,
8150*** $file_magic_cmd, produces output that libtool cannot recognize.
8151*** The result is that libtool may fail to recognize shared libraries
8152*** as such. This will affect the creation of libtool libraries that
8153*** depend on shared libraries, but programs linked with such libtool
8154*** libraries will work regardless of this problem. Nevertheless, you
8155*** may want to report the problem to your system manager and/or to
8156*** bug-libtool@gnu.org
8157
8158_LT_EOF
8159 fi ;;
8160 esac
8161 fi
8162 break
8163 fi
8164 done
8165 IFS="$lt_save_ifs"
8166 MAGIC_CMD="$lt_save_MAGIC_CMD"
8167 ;;
8168esac
8169fi
8170
8171MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8172if test -n "$MAGIC_CMD"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8174$as_echo "$MAGIC_CMD" >&6; }
8175else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177$as_echo "no" >&6; }
8178fi
8179
8180
8181
8182
8183
8184if test -z "$lt_cv_path_MAGIC_CMD"; then
8185 if test -n "$ac_tool_prefix"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8187$as_echo_n "checking for file... " >&6; }
ea2e69a4 8188if ${lt_cv_path_MAGIC_CMD+:} false; then :
e440a328 8189 $as_echo_n "(cached) " >&6
8190else
8191 case $MAGIC_CMD in
8192[\\/*] | ?:[\\/]*)
8193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8194 ;;
8195*)
8196 lt_save_MAGIC_CMD="$MAGIC_CMD"
8197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8198 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8199 for ac_dir in $ac_dummy; do
8200 IFS="$lt_save_ifs"
8201 test -z "$ac_dir" && ac_dir=.
8202 if test -f $ac_dir/file; then
8203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8204 if test -n "$file_magic_test_file"; then
8205 case $deplibs_check_method in
8206 "file_magic "*)
8207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8210 $EGREP "$file_magic_regex" > /dev/null; then
8211 :
8212 else
8213 cat <<_LT_EOF 1>&2
8214
8215*** Warning: the command libtool uses to detect shared libraries,
8216*** $file_magic_cmd, produces output that libtool cannot recognize.
8217*** The result is that libtool may fail to recognize shared libraries
8218*** as such. This will affect the creation of libtool libraries that
8219*** depend on shared libraries, but programs linked with such libtool
8220*** libraries will work regardless of this problem. Nevertheless, you
8221*** may want to report the problem to your system manager and/or to
8222*** bug-libtool@gnu.org
8223
8224_LT_EOF
8225 fi ;;
8226 esac
8227 fi
8228 break
8229 fi
8230 done
8231 IFS="$lt_save_ifs"
8232 MAGIC_CMD="$lt_save_MAGIC_CMD"
8233 ;;
8234esac
8235fi
8236
8237MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238if test -n "$MAGIC_CMD"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8240$as_echo "$MAGIC_CMD" >&6; }
8241else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243$as_echo "no" >&6; }
8244fi
8245
8246
8247 else
8248 MAGIC_CMD=:
8249 fi
8250fi
8251
8252 fi
8253 ;;
8254esac
8255
8256# Use C for the default configuration in the libtool script
8257
8258lt_save_CC="$CC"
8259ac_ext=c
8260ac_cpp='$CPP $CPPFLAGS'
8261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263ac_compiler_gnu=$ac_cv_c_compiler_gnu
8264
8265
8266# Source file extension for C test sources.
8267ac_ext=c
8268
8269# Object file extension for compiled C test sources.
8270objext=o
8271objext=$objext
8272
8273# Code to be used in simple compile tests
8274lt_simple_compile_test_code="int some_variable = 0;"
8275
8276# Code to be used in simple link tests
8277lt_simple_link_test_code='int main(){return(0);}'
8278
8279
8280
8281
8282
8283
8284
8285# If no C compiler was specified, use CC.
8286LTCC=${LTCC-"$CC"}
8287
8288# If no C compiler flags were specified, use CFLAGS.
8289LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8290
8291# Allow CC to be a program name with arguments.
8292compiler=$CC
8293
8294# Save the default compiler, since it gets overwritten when the other
8295# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8296compiler_DEFAULT=$CC
8297
8298# save warnings/boilerplate of simple test code
8299ac_outfile=conftest.$ac_objext
8300echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8301eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8302_lt_compiler_boilerplate=`cat conftest.err`
8303$RM conftest*
8304
8305ac_outfile=conftest.$ac_objext
8306echo "$lt_simple_link_test_code" >conftest.$ac_ext
8307eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8308_lt_linker_boilerplate=`cat conftest.err`
8309$RM -r conftest*
8310
8311
8312## CAVEAT EMPTOR:
8313## There is no encapsulation within the following macros, do not change
8314## the running order or otherwise move them around unless you know exactly
8315## what you are doing...
8316if test -n "$compiler"; then
8317
8318lt_prog_compiler_no_builtin_flag=
8319
8320if test "$GCC" = yes; then
8321 case $cc_basename in
8322 nvcc*)
8323 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8324 *)
8325 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8326 esac
8327
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8329$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
ea2e69a4 8330if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
e440a328 8331 $as_echo_n "(cached) " >&6
8332else
8333 lt_cv_prog_compiler_rtti_exceptions=no
8334 ac_outfile=conftest.$ac_objext
8335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336 lt_compiler_flag="-fno-rtti -fno-exceptions"
8337 # Insert the option either (1) after the last *FLAGS variable, or
8338 # (2) before a word containing "conftest.", or (3) at the end.
8339 # Note that $ac_compile itself does not contain backslashes and begins
8340 # with a dollar sign (not a hyphen), so the echo should work correctly.
8341 # The option is referenced via a variable to avoid confusing sed.
8342 lt_compile=`echo "$ac_compile" | $SED \
8343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345 -e 's:$: $lt_compiler_flag:'`
8346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8347 (eval "$lt_compile" 2>conftest.err)
8348 ac_status=$?
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 if (exit $ac_status) && test -s "$ac_outfile"; then
8352 # The compiler can only warn and ignore the option if not recognized
8353 # So say no if there are warnings other than the usual output.
8354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8357 lt_cv_prog_compiler_rtti_exceptions=yes
8358 fi
8359 fi
8360 $RM conftest*
8361
8362fi
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8364$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8365
8366if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8368else
8369 :
8370fi
8371
8372fi
8373
8374
8375
8376
8377
8378
8379 lt_prog_compiler_wl=
8380lt_prog_compiler_pic=
8381lt_prog_compiler_static=
8382
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8384$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8385
8386 if test "$GCC" = yes; then
8387 lt_prog_compiler_wl='-Wl,'
8388 lt_prog_compiler_static='-static'
8389
8390 case $host_os in
8391 aix*)
8392 # All AIX code is PIC.
8393 if test "$host_cpu" = ia64; then
8394 # AIX 5 now supports IA64 processor
8395 lt_prog_compiler_static='-Bstatic'
8396 fi
31d696fa 8397 lt_prog_compiler_pic='-fPIC'
e440a328 8398 ;;
8399
8400 amigaos*)
8401 case $host_cpu in
8402 powerpc)
8403 # see comment about AmigaOS4 .so support
8404 lt_prog_compiler_pic='-fPIC'
8405 ;;
8406 m68k)
8407 # FIXME: we need at least 68020 code to build shared libraries, but
8408 # adding the `-m68020' flag to GCC prevents building anything better,
8409 # like `-m68040'.
8410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8411 ;;
8412 esac
8413 ;;
8414
8415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8416 # PIC is the default for these OSes.
8417 ;;
8418
8419 mingw* | cygwin* | pw32* | os2* | cegcc*)
8420 # This hack is so that the source file can tell whether it is being
8421 # built for inclusion in a dll (and should export symbols for example).
8422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8423 # (--disable-auto-import) libraries
8424 lt_prog_compiler_pic='-DDLL_EXPORT'
8425 ;;
8426
8427 darwin* | rhapsody*)
8428 # PIC is the default on this platform
8429 # Common symbols not allowed in MH_DYLIB files
8430 lt_prog_compiler_pic='-fno-common'
8431 ;;
8432
8433 haiku*)
8434 # PIC is the default for Haiku.
8435 # The "-static" flag exists, but is broken.
8436 lt_prog_compiler_static=
8437 ;;
8438
8439 hpux*)
8440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8442 # sets the default TLS model and affects inlining.
8443 case $host_cpu in
8444 hppa*64*)
8445 # +Z the default
8446 ;;
8447 *)
8448 lt_prog_compiler_pic='-fPIC'
8449 ;;
8450 esac
8451 ;;
8452
8453 interix[3-9]*)
8454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8455 # Instead, we relocate shared libraries at runtime.
8456 ;;
8457
8458 msdosdjgpp*)
8459 # Just because we use GCC doesn't mean we suddenly get shared libraries
8460 # on systems that don't support them.
8461 lt_prog_compiler_can_build_shared=no
8462 enable_shared=no
8463 ;;
8464
8465 *nto* | *qnx*)
8466 # QNX uses GNU C++, but need to define -shared option too, otherwise
8467 # it will coredump.
8468 lt_prog_compiler_pic='-fPIC -shared'
8469 ;;
8470
8471 sysv4*MP*)
8472 if test -d /usr/nec; then
8473 lt_prog_compiler_pic=-Kconform_pic
8474 fi
8475 ;;
8476
8477 *)
8478 lt_prog_compiler_pic='-fPIC'
8479 ;;
8480 esac
8481
8482 case $cc_basename in
8483 nvcc*) # Cuda Compiler Driver 2.2
8484 lt_prog_compiler_wl='-Xlinker '
8485 lt_prog_compiler_pic='-Xcompiler -fPIC'
8486 ;;
8487 esac
8488 else
8489 # PORTME Check for flag to pass linker flags through the system compiler.
8490 case $host_os in
8491 aix*)
8492 lt_prog_compiler_wl='-Wl,'
8493 if test "$host_cpu" = ia64; then
8494 # AIX 5 now supports IA64 processor
8495 lt_prog_compiler_static='-Bstatic'
8496 else
8497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8498 fi
8499 ;;
8500
8501 mingw* | cygwin* | pw32* | os2* | cegcc*)
8502 # This hack is so that the source file can tell whether it is being
8503 # built for inclusion in a dll (and should export symbols for example).
8504 lt_prog_compiler_pic='-DDLL_EXPORT'
8505 ;;
8506
8507 hpux9* | hpux10* | hpux11*)
8508 lt_prog_compiler_wl='-Wl,'
8509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8510 # not for PA HP-UX.
8511 case $host_cpu in
8512 hppa*64*|ia64*)
8513 # +Z the default
8514 ;;
8515 *)
8516 lt_prog_compiler_pic='+Z'
8517 ;;
8518 esac
8519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8520 lt_prog_compiler_static='${wl}-a ${wl}archive'
8521 ;;
8522
8523 irix5* | irix6* | nonstopux*)
8524 lt_prog_compiler_wl='-Wl,'
8525 # PIC (with -KPIC) is the default.
8526 lt_prog_compiler_static='-non_shared'
8527 ;;
8528
8529 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8530 case $cc_basename in
8531 # old Intel for x86_64 which still supported -KPIC.
8532 ecc*)
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-KPIC'
8535 lt_prog_compiler_static='-static'
8536 ;;
8537 # icc used to be incompatible with GCC.
8538 # ICC 10 doesn't accept -KPIC any more.
8539 icc* | ifort*)
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_pic='-fPIC'
8542 lt_prog_compiler_static='-static'
8543 ;;
8544 # Lahey Fortran 8.1.
8545 lf95*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='--shared'
8548 lt_prog_compiler_static='--static'
8549 ;;
8550 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8551 # Portland Group compilers (*not* the Pentium gcc compiler,
8552 # which looks to be a dead project)
8553 lt_prog_compiler_wl='-Wl,'
8554 lt_prog_compiler_pic='-fpic'
8555 lt_prog_compiler_static='-Bstatic'
8556 ;;
8557 ccc*)
8558 lt_prog_compiler_wl='-Wl,'
8559 # All Alpha code is PIC.
8560 lt_prog_compiler_static='-non_shared'
8561 ;;
8562 xl* | bgxl* | bgf* | mpixl*)
8563 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_pic='-qpic'
8566 lt_prog_compiler_static='-qstaticlink'
8567 ;;
8568 *)
8569 case `$CC -V 2>&1 | sed 5q` in
8570 *Sun\ F* | *Sun*Fortran*)
8571 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8572 lt_prog_compiler_pic='-KPIC'
8573 lt_prog_compiler_static='-Bstatic'
8574 lt_prog_compiler_wl=''
8575 ;;
8576 *Sun\ C*)
8577 # Sun C 5.9
8578 lt_prog_compiler_pic='-KPIC'
8579 lt_prog_compiler_static='-Bstatic'
8580 lt_prog_compiler_wl='-Wl,'
8581 ;;
8582 esac
8583 ;;
8584 esac
8585 ;;
8586
8587 newsos6)
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-Bstatic'
8590 ;;
8591
8592 *nto* | *qnx*)
8593 # QNX uses GNU C++, but need to define -shared option too, otherwise
8594 # it will coredump.
8595 lt_prog_compiler_pic='-fPIC -shared'
8596 ;;
8597
8598 osf3* | osf4* | osf5*)
8599 lt_prog_compiler_wl='-Wl,'
8600 # All OSF/1 code is PIC.
8601 lt_prog_compiler_static='-non_shared'
8602 ;;
8603
8604 rdos*)
8605 lt_prog_compiler_static='-non_shared'
8606 ;;
8607
8608 solaris*)
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 case $cc_basename in
8612 f77* | f90* | f95*)
8613 lt_prog_compiler_wl='-Qoption ld ';;
8614 *)
8615 lt_prog_compiler_wl='-Wl,';;
8616 esac
8617 ;;
8618
8619 sunos4*)
8620 lt_prog_compiler_wl='-Qoption ld '
8621 lt_prog_compiler_pic='-PIC'
8622 lt_prog_compiler_static='-Bstatic'
8623 ;;
8624
8625 sysv4 | sysv4.2uw2* | sysv4.3*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8629 ;;
8630
8631 sysv4*MP*)
8632 if test -d /usr/nec ;then
8633 lt_prog_compiler_pic='-Kconform_pic'
8634 lt_prog_compiler_static='-Bstatic'
8635 fi
8636 ;;
8637
8638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-KPIC'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
8643
8644 unicos*)
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_can_build_shared=no
8647 ;;
8648
8649 uts4*)
8650 lt_prog_compiler_pic='-pic'
8651 lt_prog_compiler_static='-Bstatic'
8652 ;;
8653
8654 *)
8655 lt_prog_compiler_can_build_shared=no
8656 ;;
8657 esac
8658 fi
8659
8660case $host_os in
8661 # For platforms which do not support PIC, -DPIC is meaningless:
8662 *djgpp*)
8663 lt_prog_compiler_pic=
8664 ;;
8665 *)
8666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8667 ;;
8668esac
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8670$as_echo "$lt_prog_compiler_pic" >&6; }
8671
8672
8673
8674
8675
8676
8677#
8678# Check to make sure the PIC flag actually works.
8679#
8680if test -n "$lt_prog_compiler_pic"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8682$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
ea2e69a4 8683if ${lt_cv_prog_compiler_pic_works+:} false; then :
e440a328 8684 $as_echo_n "(cached) " >&6
8685else
8686 lt_cv_prog_compiler_pic_works=no
8687 ac_outfile=conftest.$ac_objext
8688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8689 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8690 # Insert the option either (1) after the last *FLAGS variable, or
8691 # (2) before a word containing "conftest.", or (3) at the end.
8692 # Note that $ac_compile itself does not contain backslashes and begins
8693 # with a dollar sign (not a hyphen), so the echo should work correctly.
8694 # The option is referenced via a variable to avoid confusing sed.
8695 lt_compile=`echo "$ac_compile" | $SED \
8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698 -e 's:$: $lt_compiler_flag:'`
8699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8700 (eval "$lt_compile" 2>conftest.err)
8701 ac_status=$?
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 if (exit $ac_status) && test -s "$ac_outfile"; then
8705 # The compiler can only warn and ignore the option if not recognized
8706 # So say no if there are warnings other than the usual output.
8707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8710 lt_cv_prog_compiler_pic_works=yes
8711 fi
8712 fi
8713 $RM conftest*
8714
8715fi
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8717$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8718
8719if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8720 case $lt_prog_compiler_pic in
8721 "" | " "*) ;;
8722 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8723 esac
8724else
8725 lt_prog_compiler_pic=
8726 lt_prog_compiler_can_build_shared=no
8727fi
8728
8729fi
8730
8731
8732
8733
8734
8735
8736#
8737# Check to make sure the static flag actually works.
8738#
8739wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8741$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ea2e69a4 8742if ${lt_cv_prog_compiler_static_works+:} false; then :
e440a328 8743 $as_echo_n "(cached) " >&6
8744else
8745 lt_cv_prog_compiler_static_works=no
8746 save_LDFLAGS="$LDFLAGS"
8747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8750 # The linker can only warn and ignore the option if not recognized
8751 # So say no if there are warnings
8752 if test -s conftest.err; then
8753 # Append any errors to the config.log.
8754 cat conftest.err 1>&5
8755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8757 if diff conftest.exp conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_static_works=yes
8759 fi
8760 else
8761 lt_cv_prog_compiler_static_works=yes
8762 fi
8763 fi
8764 $RM -r conftest*
8765 LDFLAGS="$save_LDFLAGS"
8766
8767fi
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8769$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8770
8771if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8772 :
8773else
8774 lt_prog_compiler_static=
8775fi
8776
8777
8778
8779
8780
8781
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8784$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ea2e69a4 8785if ${lt_cv_prog_compiler_c_o+:} false; then :
e440a328 8786 $as_echo_n "(cached) " >&6
8787else
8788 lt_cv_prog_compiler_c_o=no
8789 $RM -r conftest 2>/dev/null
8790 mkdir conftest
8791 cd conftest
8792 mkdir out
8793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8794
8795 lt_compiler_flag="-o out/conftest2.$ac_objext"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 lt_compile=`echo "$ac_compile" | $SED \
8801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8803 -e 's:$: $lt_compiler_flag:'`
8804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8805 (eval "$lt_compile" 2>out/conftest.err)
8806 ac_status=$?
8807 cat out/conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8810 then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings
8813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_c_o=yes
8817 fi
8818 fi
8819 chmod u+w . 2>&5
8820 $RM conftest*
8821 # SGI C++ compiler will create directory out/ii_files/ for
8822 # template instantiation
8823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8824 $RM out/* && rmdir out
8825 cd ..
8826 $RM -r conftest
8827 $RM conftest*
8828
8829fi
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8831$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8832
8833
8834
8835
8836
8837
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ea2e69a4 8840if ${lt_cv_prog_compiler_c_o+:} false; then :
e440a328 8841 $as_echo_n "(cached) " >&6
8842else
8843 lt_cv_prog_compiler_c_o=no
8844 $RM -r conftest 2>/dev/null
8845 mkdir conftest
8846 cd conftest
8847 mkdir out
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
8850 lt_compiler_flag="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>out/conftest.err)
8861 ac_status=$?
8862 cat out/conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_c_o=yes
8872 fi
8873 fi
8874 chmod u+w . 2>&5
8875 $RM conftest*
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8879 $RM out/* && rmdir out
8880 cd ..
8881 $RM -r conftest
8882 $RM conftest*
8883
8884fi
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887
8888
8889
8890
8891hard_links="nottested"
8892if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8893 # do not overwrite the value of need_locks provided by the user
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8895$as_echo_n "checking if we can lock with hard links... " >&6; }
8896 hard_links=yes
8897 $RM conftest*
8898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 touch conftest.a
8900 ln conftest.a conftest.b 2>&5 || hard_links=no
8901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8903$as_echo "$hard_links" >&6; }
8904 if test "$hard_links" = no; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8906$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8907 need_locks=warn
8908 fi
8909else
8910 need_locks=no
8911fi
8912
8913
8914
8915
8916
8917
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8919$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8920
8921 runpath_var=
8922 allow_undefined_flag=
8923 always_export_symbols=no
8924 archive_cmds=
8925 archive_expsym_cmds=
8926 compiler_needs_object=no
8927 enable_shared_with_static_runtimes=no
8928 export_dynamic_flag_spec=
8929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8930 hardcode_automatic=no
8931 hardcode_direct=no
8932 hardcode_direct_absolute=no
8933 hardcode_libdir_flag_spec=
8934 hardcode_libdir_flag_spec_ld=
8935 hardcode_libdir_separator=
8936 hardcode_minus_L=no
8937 hardcode_shlibpath_var=unsupported
8938 inherit_rpath=no
8939 link_all_deplibs=unknown
8940 module_cmds=
8941 module_expsym_cmds=
8942 old_archive_from_new_cmds=
8943 old_archive_from_expsyms_cmds=
8944 thread_safe_flag_spec=
8945 whole_archive_flag_spec=
8946 # include_expsyms should be a list of space-separated symbols to be *always*
8947 # included in the symbol list
8948 include_expsyms=
8949 # exclude_expsyms can be an extended regexp of symbols to exclude
8950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8952 # as well as any symbol that contains `d'.
8953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8955 # platforms (ab)use it in PIC code, but their linkers get confused if
8956 # the symbol is explicitly referenced. Since portable code cannot
8957 # rely on this symbol name, it's probably fine to never include it in
8958 # preloaded symbol tables.
8959 # Exclude shared library initialization/finalization symbols.
8960 extract_expsyms_cmds=
8961
8962 case $host_os in
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test "$GCC" != yes; then
8968 with_gnu_ld=no
8969 fi
8970 ;;
8971 interix*)
8972 # we just hope/assume this is gcc and not c89 (= MSVC++)
8973 with_gnu_ld=yes
8974 ;;
8975 openbsd*)
8976 with_gnu_ld=no
8977 ;;
8978 esac
8979
8980 ld_shlibs=yes
8981
8982 # On some targets, GNU ld is compatible enough with the native linker
8983 # that we're better off using the native interface for both.
8984 lt_use_gnu_ld_interface=no
8985 if test "$with_gnu_ld" = yes; then
8986 case $host_os in
8987 aix*)
8988 # The AIX port of GNU ld has always aspired to compatibility
8989 # with the native linker. However, as the warning in the GNU ld
8990 # block says, versions before 2.19.5* couldn't really create working
8991 # shared libraries, regardless of the interface used.
8992 case `$LD -v 2>&1` in
8993 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8994 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8995 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8996 *)
8997 lt_use_gnu_ld_interface=yes
8998 ;;
8999 esac
9000 ;;
9001 *)
9002 lt_use_gnu_ld_interface=yes
9003 ;;
9004 esac
9005 fi
9006
9007 if test "$lt_use_gnu_ld_interface" = yes; then
9008 # If archive_cmds runs LD, not CC, wlarc should be empty
9009 wlarc='${wl}'
9010
9011 # Set some defaults for GNU ld with shared library support. These
9012 # are reset later if shared libraries are not supported. Putting them
9013 # here allows them to be overridden if necessary.
9014 runpath_var=LD_RUN_PATH
9015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 export_dynamic_flag_spec='${wl}--export-dynamic'
9017 # ancient GNU ld didn't support --whole-archive et. al.
9018 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9019 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9020 else
9021 whole_archive_flag_spec=
9022 fi
9023 supports_anon_versioning=no
9024 case `$LD -v 2>&1` in
9025 *GNU\ gold*) supports_anon_versioning=yes ;;
9026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9029 *\ 2.11.*) ;; # other 2.11 versions
9030 *) supports_anon_versioning=yes ;;
9031 esac
9032
9033 # See if GNU ld supports shared libraries.
9034 case $host_os in
9035 aix[3-9]*)
9036 # On AIX/PPC, the GNU linker is very broken
9037 if test "$host_cpu" != ia64; then
9038 ld_shlibs=no
9039 cat <<_LT_EOF 1>&2
9040
9041*** Warning: the GNU linker, at least up to release 2.19, is reported
9042*** to be unable to reliably create shared libraries on AIX.
9043*** Therefore, libtool is disabling shared libraries support. If you
9044*** really care for shared libraries, you may want to install binutils
9045*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9046*** You will then need to restart the configuration process.
9047
9048_LT_EOF
9049 fi
9050 ;;
9051
9052 amigaos*)
9053 case $host_cpu in
9054 powerpc)
9055 # see comment about AmigaOS4 .so support
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057 archive_expsym_cmds=''
9058 ;;
9059 m68k)
9060 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)'
9061 hardcode_libdir_flag_spec='-L$libdir'
9062 hardcode_minus_L=yes
9063 ;;
9064 esac
9065 ;;
9066
9067 beos*)
9068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9069 allow_undefined_flag=unsupported
9070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9071 # support --undefined. This deserves some investigation. FIXME
9072 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9073 else
9074 ld_shlibs=no
9075 fi
9076 ;;
9077
9078 cygwin* | mingw* | pw32* | cegcc*)
9079 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9080 # as there is no search path for DLLs.
9081 hardcode_libdir_flag_spec='-L$libdir'
9082 export_dynamic_flag_spec='${wl}--export-all-symbols'
9083 allow_undefined_flag=unsupported
9084 always_export_symbols=no
9085 enable_shared_with_static_runtimes=yes
9086 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9087
9088 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9090 # If the export-symbols file already is a .def file (1st line
9091 # is EXPORTS), use it as is; otherwise, prepend...
9092 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9093 cp $export_symbols $output_objdir/$soname.def;
9094 else
9095 echo EXPORTS > $output_objdir/$soname.def;
9096 cat $export_symbols >> $output_objdir/$soname.def;
9097 fi~
9098 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9099 else
9100 ld_shlibs=no
9101 fi
9102 ;;
9103
9104 haiku*)
9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106 link_all_deplibs=yes
9107 ;;
9108
9109 interix[3-9]*)
9110 hardcode_direct=no
9111 hardcode_shlibpath_var=no
9112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9113 export_dynamic_flag_spec='${wl}-E'
9114 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9115 # Instead, shared libraries are loaded at an image base (0x10000000 by
9116 # default) and relocated if they conflict, which is a slow very memory
9117 # consuming and fragmenting process. To avoid this, we pick a random,
9118 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9119 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9121 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'
9122 ;;
9123
9124 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9125 tmp_diet=no
9126 if test "$host_os" = linux-dietlibc; then
9127 case $cc_basename in
9128 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9129 esac
9130 fi
9131 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9132 && test "$tmp_diet" = no
9133 then
9134 tmp_addflag=
9135 tmp_sharedflag='-shared'
9136 case $cc_basename,$host_cpu in
9137 pgcc*) # Portland Group C compiler
9138 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'
9139 tmp_addflag=' $pic_flag'
9140 ;;
9141 pgf77* | pgf90* | pgf95* | pgfortran*)
9142 # Portland Group f77 and f90 compilers
9143 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'
9144 tmp_addflag=' $pic_flag -Mnomain' ;;
9145 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9146 tmp_addflag=' -i_dynamic' ;;
9147 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9148 tmp_addflag=' -i_dynamic -nofor_main' ;;
9149 ifc* | ifort*) # Intel Fortran compiler
9150 tmp_addflag=' -nofor_main' ;;
9151 lf95*) # Lahey Fortran 8.1
9152 whole_archive_flag_spec=
9153 tmp_sharedflag='--shared' ;;
9154 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9155 tmp_sharedflag='-qmkshrobj'
9156 tmp_addflag= ;;
9157 nvcc*) # Cuda Compiler Driver 2.2
9158 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'
9159 compiler_needs_object=yes
9160 ;;
9161 esac
9162 case `$CC -V 2>&1 | sed 5q` in
9163 *Sun\ C*) # Sun C 5.9
9164 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'
9165 compiler_needs_object=yes
9166 tmp_sharedflag='-G' ;;
9167 *Sun\ F*) # Sun Fortran 8.3
9168 tmp_sharedflag='-G' ;;
9169 esac
9170 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171
9172 if test "x$supports_anon_versioning" = xyes; then
9173 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9175 echo "local: *; };" >> $output_objdir/$libname.ver~
9176 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9177 fi
9178
9179 case $cc_basename in
9180 xlf* | bgf* | bgxlf* | mpixlf*)
9181 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9182 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9183 hardcode_libdir_flag_spec=
9184 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9185 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9186 if test "x$supports_anon_versioning" = xyes; then
9187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9189 echo "local: *; };" >> $output_objdir/$libname.ver~
9190 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9191 fi
9192 ;;
9193 esac
9194 else
9195 ld_shlibs=no
9196 fi
9197 ;;
9198
9199 netbsd*)
9200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9201 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9202 wlarc=
9203 else
9204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9206 fi
9207 ;;
9208
9209 solaris*)
9210 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9211 ld_shlibs=no
9212 cat <<_LT_EOF 1>&2
9213
9214*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9215*** create shared libraries on Solaris systems. Therefore, libtool
9216*** is disabling shared libraries support. We urge you to upgrade GNU
9217*** binutils to release 2.9.1 or newer. Another option is to modify
9218*** your PATH or compiler configuration so that the native linker is
9219*** used, and then restart.
9220
9221_LT_EOF
9222 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9224 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9225 else
9226 ld_shlibs=no
9227 fi
9228 ;;
9229
9230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9231 case `$LD -v 2>&1` in
9232 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9233 ld_shlibs=no
9234 cat <<_LT_EOF 1>&2
9235
9236*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9237*** reliably create shared libraries on SCO systems. Therefore, libtool
9238*** is disabling shared libraries support. We urge you to upgrade GNU
9239*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9240*** your PATH or compiler configuration so that the native linker is
9241*** used, and then restart.
9242
9243_LT_EOF
9244 ;;
9245 *)
9246 # For security reasons, it is highly recommended that you always
9247 # use absolute paths for naming shared libraries, and exclude the
9248 # DT_RUNPATH tag from executables and libraries. But doing so
9249 # requires that you compile everything twice, which is a pain.
9250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9254 else
9255 ld_shlibs=no
9256 fi
9257 ;;
9258 esac
9259 ;;
9260
9261 sunos4*)
9262 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9263 wlarc=
9264 hardcode_direct=yes
9265 hardcode_shlibpath_var=no
9266 ;;
9267
9268 *)
9269 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9272 else
9273 ld_shlibs=no
9274 fi
9275 ;;
9276 esac
9277
9278 if test "$ld_shlibs" = no; then
9279 runpath_var=
9280 hardcode_libdir_flag_spec=
9281 export_dynamic_flag_spec=
9282 whole_archive_flag_spec=
9283 fi
9284 else
9285 # PORTME fill in a description of your system's linker (not GNU ld)
9286 case $host_os in
9287 aix3*)
9288 allow_undefined_flag=unsupported
9289 always_export_symbols=yes
9290 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'
9291 # Note: this linker hardcodes the directories in LIBPATH if there
9292 # are no directories specified by -L.
9293 hardcode_minus_L=yes
9294 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9295 # Neither direct hardcoding nor static linking is supported with a
9296 # broken collect2.
9297 hardcode_direct=unsupported
9298 fi
9299 ;;
9300
9301 aix[4-9]*)
9302 if test "$host_cpu" = ia64; then
9303 # On IA64, the linker does run time linking by default, so we don't
9304 # have to do anything special.
9305 aix_use_runtimelinking=no
9306 exp_sym_flag='-Bexport'
9307 no_entry_flag=""
9308 else
9309 # If we're using GNU nm, then we don't want the "-C" option.
9310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9311 # Also, AIX nm treats weak defined symbols like other global
9312 # defined symbols, whereas GNU nm marks them as "W".
9313 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9314 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'
9315 else
9316 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'
9317 fi
9318 aix_use_runtimelinking=no
9319
9320 # Test if we are trying to use run time linking or normal
9321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9322 # need to do runtime linking.
9323 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9324 for ld_flag in $LDFLAGS; do
9325 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9326 aix_use_runtimelinking=yes
9327 break
9328 fi
9329 done
9330 ;;
9331 esac
9332
9333 exp_sym_flag='-bexport'
9334 no_entry_flag='-bnoentry'
9335 fi
9336
9337 # When large executables or shared objects are built, AIX ld can
9338 # have problems creating the table of contents. If linking a library
9339 # or program results in "error TOC overflow" add -mminimal-toc to
9340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9342
9343 archive_cmds=''
9344 hardcode_direct=yes
9345 hardcode_direct_absolute=yes
9346 hardcode_libdir_separator=':'
9347 link_all_deplibs=yes
9348 file_list_spec='${wl}-f,'
9349
9350 if test "$GCC" = yes; then
9351 case $host_os in aix4.[012]|aix4.[012].*)
9352 # We only want to do this on AIX 4.2 and lower, the check
9353 # below for broken collect2 doesn't work under 4.3+
9354 collect2name=`${CC} -print-prog-name=collect2`
9355 if test -f "$collect2name" &&
9356 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9357 then
9358 # We have reworked collect2
9359 :
9360 else
9361 # We have old collect2
9362 hardcode_direct=unsupported
9363 # It fails to find uninstalled libraries when the uninstalled
9364 # path is not listed in the libpath. Setting hardcode_minus_L
9365 # to unsupported forces relinking
9366 hardcode_minus_L=yes
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_libdir_separator=
9369 fi
9370 ;;
9371 esac
9372 shared_flag='-shared'
9373 if test "$aix_use_runtimelinking" = yes; then
9374 shared_flag="$shared_flag "'${wl}-G'
9375 fi
9376 else
9377 # not using gcc
9378 if test "$host_cpu" = ia64; then
9379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9380 # chokes on -Wl,-G. The following line is correct:
9381 shared_flag='-G'
9382 else
9383 if test "$aix_use_runtimelinking" = yes; then
9384 shared_flag='${wl}-G'
9385 else
9386 shared_flag='${wl}-bM:SRE'
9387 fi
9388 fi
9389 fi
9390
9391 export_dynamic_flag_spec='${wl}-bexpall'
9392 # It seems that -bexpall does not export symbols beginning with
9393 # underscore (_), so it is better to generate a list of symbols to export.
9394 always_export_symbols=yes
9395 if test "$aix_use_runtimelinking" = yes; then
9396 # Warning - without using the other runtime loading flags (-brtl),
9397 # -berok will link without error, but may produce a broken library.
9398 allow_undefined_flag='-berok'
9399 # Determine the default libpath from the value encoded in an
9400 # empty executable.
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402/* end confdefs.h. */
9403
9404int
9405main ()
9406{
9407
9408 ;
9409 return 0;
9410}
9411_ACEOF
9412if ac_fn_c_try_link "$LINENO"; then :
9413
9414lt_aix_libpath_sed='
9415 /Import File Strings/,/^$/ {
9416 /^0/ {
9417 s/^0 *\(.*\)$/\1/
9418 p
9419 }
9420 }'
9421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9422# Check for a 64-bit object if we didn't find anything.
9423if test -z "$aix_libpath"; then
9424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9425fi
9426fi
9427rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9430
9431 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9432 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"
9433 else
9434 if test "$host_cpu" = ia64; then
9435 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9436 allow_undefined_flag="-z nodefs"
9437 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"
9438 else
9439 # Determine the default libpath from the value encoded in an
9440 # empty executable.
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442/* end confdefs.h. */
9443
9444int
9445main ()
9446{
9447
9448 ;
9449 return 0;
9450}
9451_ACEOF
9452if ac_fn_c_try_link "$LINENO"; then :
9453
9454lt_aix_libpath_sed='
9455 /Import File Strings/,/^$/ {
9456 /^0/ {
9457 s/^0 *\(.*\)$/\1/
9458 p
9459 }
9460 }'
9461aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9462# Check for a 64-bit object if we didn't find anything.
9463if test -z "$aix_libpath"; then
9464 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9465fi
9466fi
9467rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9470
9471 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9472 # Warning - without using the other run time loading flags,
9473 # -berok will link without error, but may produce a broken library.
9474 no_undefined_flag=' ${wl}-bernotok'
9475 allow_undefined_flag=' ${wl}-berok'
9476 if test "$with_gnu_ld" = yes; then
9477 # We only use this code for GNU lds that support --whole-archive.
9478 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9479 else
9480 # Exported symbols can be pulled into shared objects from archives
9481 whole_archive_flag_spec='$convenience'
9482 fi
9483 archive_cmds_need_lc=yes
9484 # This is similar to how AIX traditionally builds its shared libraries.
9485 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'
9486 fi
9487 fi
9488 ;;
9489
9490 amigaos*)
9491 case $host_cpu in
9492 powerpc)
9493 # see comment about AmigaOS4 .so support
9494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495 archive_expsym_cmds=''
9496 ;;
9497 m68k)
9498 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)'
9499 hardcode_libdir_flag_spec='-L$libdir'
9500 hardcode_minus_L=yes
9501 ;;
9502 esac
9503 ;;
9504
9505 bsdi[45]*)
9506 export_dynamic_flag_spec=-rdynamic
9507 ;;
9508
9509 cygwin* | mingw* | pw32* | cegcc*)
9510 # When not using gcc, we currently assume that we are using
9511 # Microsoft Visual C++.
9512 # hardcode_libdir_flag_spec is actually meaningless, as there is
9513 # no search path for DLLs.
9514 hardcode_libdir_flag_spec=' '
9515 allow_undefined_flag=unsupported
9516 # Tell ltmain to make .lib files, not .a files.
9517 libext=lib
9518 # Tell ltmain to make .dll files, not .so files.
9519 shrext_cmds=".dll"
9520 # FIXME: Setting linknames here is a bad hack.
9521 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9522 # The linker will automatically build a .lib file if we build a DLL.
9523 old_archive_from_new_cmds='true'
9524 # FIXME: Should let the user specify the lib program.
9525 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9526 fix_srcfile_path='`cygpath -w "$srcfile"`'
9527 enable_shared_with_static_runtimes=yes
9528 ;;
9529
9530 darwin* | rhapsody*)
9531
9532
9533 archive_cmds_need_lc=no
9534 hardcode_direct=no
9535 hardcode_automatic=yes
9536 hardcode_shlibpath_var=unsupported
9537 if test "$lt_cv_ld_force_load" = "yes"; then
9538 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\"`'
9539 else
9540 whole_archive_flag_spec=''
9541 fi
9542 link_all_deplibs=yes
9543 allow_undefined_flag="$_lt_dar_allow_undefined"
9544 case $cc_basename in
9545 ifort*) _lt_dar_can_shared=yes ;;
9546 *) _lt_dar_can_shared=$GCC ;;
9547 esac
9548 if test "$_lt_dar_can_shared" = "yes"; then
9549 output_verbose_link_cmd=func_echo_all
9550 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9551 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9552 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}"
9553 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}"
9554
9555 else
9556 ld_shlibs=no
9557 fi
9558
9559 ;;
9560
9561 dgux*)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_libdir_flag_spec='-L$libdir'
9564 hardcode_shlibpath_var=no
9565 ;;
9566
e440a328 9567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9568 # support. Future versions do this automatically, but an explicit c++rt0.o
9569 # does not break anything, and helps significantly (at the cost of a little
9570 # extra space).
9571 freebsd2.2*)
9572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9573 hardcode_libdir_flag_spec='-R$libdir'
9574 hardcode_direct=yes
9575 hardcode_shlibpath_var=no
9576 ;;
9577
9578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31d696fa 9579 freebsd2.*)
e440a328 9580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9581 hardcode_direct=yes
9582 hardcode_minus_L=yes
9583 hardcode_shlibpath_var=no
9584 ;;
9585
9586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9587 freebsd* | dragonfly*)
9588 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9589 hardcode_libdir_flag_spec='-R$libdir'
9590 hardcode_direct=yes
9591 hardcode_shlibpath_var=no
9592 ;;
9593
9594 hpux9*)
9595 if test "$GCC" = yes; then
9596 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'
9597 else
9598 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'
9599 fi
9600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9601 hardcode_libdir_separator=:
9602 hardcode_direct=yes
9603
9604 # hardcode_minus_L: Not really in the search PATH,
9605 # but as the default location of the library.
9606 hardcode_minus_L=yes
9607 export_dynamic_flag_spec='${wl}-E'
9608 ;;
9609
9610 hpux10*)
9611 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9612 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9613 else
9614 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9615 fi
9616 if test "$with_gnu_ld" = no; then
9617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9618 hardcode_libdir_flag_spec_ld='+b $libdir'
9619 hardcode_libdir_separator=:
9620 hardcode_direct=yes
9621 hardcode_direct_absolute=yes
9622 export_dynamic_flag_spec='${wl}-E'
9623 # hardcode_minus_L: Not really in the search PATH,
9624 # but as the default location of the library.
9625 hardcode_minus_L=yes
9626 fi
9627 ;;
9628
9629 hpux11*)
9630 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9631 case $host_cpu in
9632 hppa*64*)
9633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 ;;
9635 ia64*)
9636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9637 ;;
9638 *)
9639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9640 ;;
9641 esac
9642 else
9643 case $host_cpu in
9644 hppa*64*)
9645 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9646 ;;
9647 ia64*)
9648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9649 ;;
9650 *)
9651
9652 # Older versions of the 11.00 compiler do not understand -b yet
9653 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9655$as_echo_n "checking if $CC understands -b... " >&6; }
ea2e69a4 9656if ${lt_cv_prog_compiler__b+:} false; then :
e440a328 9657 $as_echo_n "(cached) " >&6
9658else
9659 lt_cv_prog_compiler__b=no
9660 save_LDFLAGS="$LDFLAGS"
9661 LDFLAGS="$LDFLAGS -b"
9662 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9663 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9664 # The linker can only warn and ignore the option if not recognized
9665 # So say no if there are warnings
9666 if test -s conftest.err; then
9667 # Append any errors to the config.log.
9668 cat conftest.err 1>&5
9669 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9671 if diff conftest.exp conftest.er2 >/dev/null; then
9672 lt_cv_prog_compiler__b=yes
9673 fi
9674 else
9675 lt_cv_prog_compiler__b=yes
9676 fi
9677 fi
9678 $RM -r conftest*
9679 LDFLAGS="$save_LDFLAGS"
9680
9681fi
9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9683$as_echo "$lt_cv_prog_compiler__b" >&6; }
9684
9685if test x"$lt_cv_prog_compiler__b" = xyes; then
9686 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9687else
9688 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9689fi
9690
9691 ;;
9692 esac
9693 fi
9694 if test "$with_gnu_ld" = no; then
9695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9696 hardcode_libdir_separator=:
9697
9698 case $host_cpu in
9699 hppa*64*|ia64*)
9700 hardcode_direct=no
9701 hardcode_shlibpath_var=no
9702 ;;
9703 *)
9704 hardcode_direct=yes
9705 hardcode_direct_absolute=yes
9706 export_dynamic_flag_spec='${wl}-E'
9707
9708 # hardcode_minus_L: Not really in the search PATH,
9709 # but as the default location of the library.
9710 hardcode_minus_L=yes
9711 ;;
9712 esac
9713 fi
9714 ;;
9715
9716 irix5* | irix6* | nonstopux*)
9717 if test "$GCC" = yes; then
9718 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'
9719 # Try to use the -exported_symbol ld option, if it does not
9720 # work, assume that -exports_file does not work either and
9721 # implicitly export all symbols.
9722 save_LDFLAGS="$LDFLAGS"
9723 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h. */
9726int foo(void) {}
9727_ACEOF
9728if ac_fn_c_try_link "$LINENO"; then :
9729 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'
9730
9731fi
9732rm -f core conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext conftest.$ac_ext
9734 LDFLAGS="$save_LDFLAGS"
9735 else
9736 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'
9737 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'
9738 fi
9739 archive_cmds_need_lc='no'
9740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9741 hardcode_libdir_separator=:
9742 inherit_rpath=yes
9743 link_all_deplibs=yes
9744 ;;
9745
9746 netbsd*)
9747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9749 else
9750 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9751 fi
9752 hardcode_libdir_flag_spec='-R$libdir'
9753 hardcode_direct=yes
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 newsos6)
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_direct=yes
9760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9761 hardcode_libdir_separator=:
9762 hardcode_shlibpath_var=no
9763 ;;
9764
9765 *nto* | *qnx*)
9766 ;;
9767
9768 openbsd*)
9769 if test -f /usr/libexec/ld.so; then
9770 hardcode_direct=yes
9771 hardcode_shlibpath_var=no
9772 hardcode_direct_absolute=yes
9773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9774 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9775 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9777 export_dynamic_flag_spec='${wl}-E'
9778 else
9779 case $host_os in
9780 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9781 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9782 hardcode_libdir_flag_spec='-R$libdir'
9783 ;;
9784 *)
9785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9787 ;;
9788 esac
9789 fi
9790 else
9791 ld_shlibs=no
9792 fi
9793 ;;
9794
9795 os2*)
9796 hardcode_libdir_flag_spec='-L$libdir'
9797 hardcode_minus_L=yes
9798 allow_undefined_flag=unsupported
9799 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'
9800 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9801 ;;
9802
9803 osf3*)
9804 if test "$GCC" = yes; then
9805 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9806 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'
9807 else
9808 allow_undefined_flag=' -expect_unresolved \*'
9809 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'
9810 fi
9811 archive_cmds_need_lc='no'
9812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9813 hardcode_libdir_separator=:
9814 ;;
9815
9816 osf4* | osf5*) # as osf3* with the addition of -msym flag
9817 if test "$GCC" = yes; then
9818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9819 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'
9820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821 else
9822 allow_undefined_flag=' -expect_unresolved \*'
9823 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'
9824 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~
9825 $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'
9826
9827 # Both c and cxx compiler support -rpath directly
9828 hardcode_libdir_flag_spec='-rpath $libdir'
9829 fi
9830 archive_cmds_need_lc='no'
9831 hardcode_libdir_separator=:
9832 ;;
9833
9834 solaris*)
9835 no_undefined_flag=' -z defs'
9836 if test "$GCC" = yes; then
9837 wlarc='${wl}'
9838 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9840 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9841 else
9842 case `$CC -V 2>&1` in
9843 *"Compilers 5.0"*)
9844 wlarc=''
9845 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9847 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9848 ;;
9849 *)
9850 wlarc='${wl}'
9851 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9853 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9854 ;;
9855 esac
9856 fi
9857 hardcode_libdir_flag_spec='-R$libdir'
9858 hardcode_shlibpath_var=no
9859 case $host_os in
9860 solaris2.[0-5] | solaris2.[0-5].*) ;;
9861 *)
9862 # The compiler driver will combine and reorder linker options,
9863 # but understands `-z linker_flag'. GCC discards it without `$wl',
9864 # but is careful enough not to reorder.
9865 # Supported since Solaris 2.6 (maybe 2.5.1?)
9866 if test "$GCC" = yes; then
9867 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9868 else
9869 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9870 fi
9871 ;;
9872 esac
9873 link_all_deplibs=yes
9874 ;;
9875
9876 sunos4*)
9877 if test "x$host_vendor" = xsequent; then
9878 # Use $CC to link under sequent, because it throws in some extra .o
9879 # files that make .init and .fini sections work.
9880 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9881 else
9882 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9883 fi
9884 hardcode_libdir_flag_spec='-L$libdir'
9885 hardcode_direct=yes
9886 hardcode_minus_L=yes
9887 hardcode_shlibpath_var=no
9888 ;;
9889
9890 sysv4)
9891 case $host_vendor in
9892 sni)
9893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_direct=yes # is this really true???
9895 ;;
9896 siemens)
9897 ## LD is ld it makes a PLAMLIB
9898 ## CC just makes a GrossModule.
9899 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9900 reload_cmds='$CC -r -o $output$reload_objs'
9901 hardcode_direct=no
9902 ;;
9903 motorola)
9904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9906 ;;
9907 esac
9908 runpath_var='LD_RUN_PATH'
9909 hardcode_shlibpath_var=no
9910 ;;
9911
9912 sysv4.3*)
9913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_shlibpath_var=no
9915 export_dynamic_flag_spec='-Bexport'
9916 ;;
9917
9918 sysv4*MP*)
9919 if test -d /usr/nec; then
9920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9921 hardcode_shlibpath_var=no
9922 runpath_var=LD_RUN_PATH
9923 hardcode_runpath_var=yes
9924 ld_shlibs=yes
9925 fi
9926 ;;
9927
9928 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9929 no_undefined_flag='${wl}-z,text'
9930 archive_cmds_need_lc=no
9931 hardcode_shlibpath_var=no
9932 runpath_var='LD_RUN_PATH'
9933
9934 if test "$GCC" = yes; then
9935 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9937 else
9938 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9940 fi
9941 ;;
9942
9943 sysv5* | sco3.2v5* | sco5v6*)
9944 # Note: We can NOT use -z defs as we might desire, because we do not
9945 # link with -lc, and that would cause any symbols used from libc to
9946 # always be unresolved, which means just about no library would
9947 # ever link correctly. If we're not using GNU ld we use -z text
9948 # though, which does catch some bad symbols but isn't as heavy-handed
9949 # as -z defs.
9950 no_undefined_flag='${wl}-z,text'
9951 allow_undefined_flag='${wl}-z,nodefs'
9952 archive_cmds_need_lc=no
9953 hardcode_shlibpath_var=no
9954 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9955 hardcode_libdir_separator=':'
9956 link_all_deplibs=yes
9957 export_dynamic_flag_spec='${wl}-Bexport'
9958 runpath_var='LD_RUN_PATH'
9959
9960 if test "$GCC" = yes; then
9961 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9963 else
9964 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9965 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9966 fi
9967 ;;
9968
9969 uts4*)
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_libdir_flag_spec='-L$libdir'
9972 hardcode_shlibpath_var=no
9973 ;;
9974
9975 *)
9976 ld_shlibs=no
9977 ;;
9978 esac
9979
9980 if test x$host_vendor = xsni; then
9981 case $host in
9982 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9983 export_dynamic_flag_spec='${wl}-Blargedynsym'
9984 ;;
9985 esac
9986 fi
9987 fi
9988
9989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9990$as_echo "$ld_shlibs" >&6; }
9991test "$ld_shlibs" = no && can_build_shared=no
9992
9993with_gnu_ld=$with_gnu_ld
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009#
10010# Do we need to explicitly link libc?
10011#
10012case "x$archive_cmds_need_lc" in
10013x|xyes)
10014 # Assume -lc should be added
10015 archive_cmds_need_lc=yes
10016
10017 if test "$enable_shared" = yes && test "$GCC" = yes; then
10018 case $archive_cmds in
10019 *'~'*)
10020 # FIXME: we may have to deal with multi-command sequences.
10021 ;;
10022 '$CC '*)
10023 # Test whether the compiler implicitly links with -lc since on some
10024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10025 # to ld, don't add -lc before -lgcc.
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10027$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ea2e69a4 10028if ${lt_cv_archive_cmds_need_lc+:} false; then :
e440a328 10029 $as_echo_n "(cached) " >&6
10030else
10031 $RM conftest*
10032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10033
10034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10035 (eval $ac_compile) 2>&5
10036 ac_status=$?
10037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038 test $ac_status = 0; } 2>conftest.err; then
10039 soname=conftest
10040 lib=conftest
10041 libobjs=conftest.$ac_objext
10042 deplibs=
10043 wl=$lt_prog_compiler_wl
10044 pic_flag=$lt_prog_compiler_pic
10045 compiler_flags=-v
10046 linker_flags=-v
10047 verstring=
10048 output_objdir=.
10049 libname=conftest
10050 lt_save_allow_undefined_flag=$allow_undefined_flag
10051 allow_undefined_flag=
10052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10053 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10054 ac_status=$?
10055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10056 test $ac_status = 0; }
10057 then
10058 lt_cv_archive_cmds_need_lc=no
10059 else
10060 lt_cv_archive_cmds_need_lc=yes
10061 fi
10062 allow_undefined_flag=$lt_save_allow_undefined_flag
10063 else
10064 cat conftest.err 1>&5
10065 fi
10066 $RM conftest*
10067
10068fi
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10070$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10071 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10072 ;;
10073 esac
10074 fi
10075 ;;
10076esac
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10235$as_echo_n "checking dynamic linker characteristics... " >&6; }
10236
10237if test "$GCC" = yes; then
10238 case $host_os in
10239 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10240 *) lt_awk_arg="/^libraries:/" ;;
10241 esac
10242 case $host_os in
10243 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10244 *) lt_sed_strip_eq="s,=/,/,g" ;;
10245 esac
10246 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10247 case $lt_search_path_spec in
10248 *\;*)
10249 # if the path contains ";" then we assume it to be the separator
10250 # otherwise default to the standard path separator (i.e. ":") - it is
10251 # assumed that no part of a normal pathname contains ";" but that should
10252 # okay in the real world where ";" in dirpaths is itself problematic.
10253 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10254 ;;
10255 *)
10256 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10257 ;;
10258 esac
10259 # Ok, now we have the path, separated by spaces, we can step through it
10260 # and add multilib dir if necessary.
10261 lt_tmp_lt_search_path_spec=
10262 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10263 for lt_sys_path in $lt_search_path_spec; do
10264 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10266 else
10267 test -d "$lt_sys_path" && \
10268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10269 fi
10270 done
10271 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10272BEGIN {RS=" "; FS="/|\n";} {
10273 lt_foo="";
10274 lt_count=0;
10275 for (lt_i = NF; lt_i > 0; lt_i--) {
10276 if ($lt_i != "" && $lt_i != ".") {
10277 if ($lt_i == "..") {
10278 lt_count++;
10279 } else {
10280 if (lt_count == 0) {
10281 lt_foo="/" $lt_i lt_foo;
10282 } else {
10283 lt_count--;
10284 }
10285 }
10286 }
10287 }
10288 if (lt_foo != "") { lt_freq[lt_foo]++; }
10289 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10290}'`
10291 # AWK program above erroneously prepends '/' to C:/dos/paths
10292 # for these hosts.
10293 case $host_os in
10294 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10295 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10296 esac
10297 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10298else
10299 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10300fi
10301library_names_spec=
10302libname_spec='lib$name'
10303soname_spec=
10304shrext_cmds=".so"
10305postinstall_cmds=
10306postuninstall_cmds=
10307finish_cmds=
10308finish_eval=
10309shlibpath_var=
10310shlibpath_overrides_runpath=unknown
10311version_type=none
10312dynamic_linker="$host_os ld.so"
10313sys_lib_dlsearch_path_spec="/lib /usr/lib"
10314need_lib_prefix=unknown
10315hardcode_into_libs=no
10316
10317# when you set need_version to no, make sure it does not cause -set_version
10318# flags to be left without arguments
10319need_version=unknown
10320
10321case $host_os in
10322aix3*)
10323 version_type=linux
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10325 shlibpath_var=LIBPATH
10326
10327 # AIX 3 has no versioning support, so we append a major version to the name.
10328 soname_spec='${libname}${release}${shared_ext}$major'
10329 ;;
10330
10331aix[4-9]*)
10332 version_type=linux
10333 need_lib_prefix=no
10334 need_version=no
10335 hardcode_into_libs=yes
10336 if test "$host_cpu" = ia64; then
10337 # AIX 5 supports IA64
10338 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 else
10341 # With GCC up to 2.95.x, collect2 would create an import file
10342 # for dependence libraries. The import file would start with
10343 # the line `#! .'. This would cause the generated library to
10344 # depend on `.', always an invalid library. This was fixed in
10345 # development snapshots of GCC prior to 3.0.
10346 case $host_os in
10347 aix4 | aix4.[01] | aix4.[01].*)
10348 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10349 echo ' yes '
10350 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10351 :
10352 else
10353 can_build_shared=no
10354 fi
10355 ;;
10356 esac
10357 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10358 # soname into executable. Probably we can add versioning support to
10359 # collect2, so additional links can be useful in future.
10360 if test "$aix_use_runtimelinking" = yes; then
10361 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10362 # instead of lib<name>.a to let people know that these are not
10363 # typical AIX shared libraries.
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 else
10366 # We preserve .a as extension for shared libraries through AIX4.2
10367 # and later when we are not doing run time linking.
10368 library_names_spec='${libname}${release}.a $libname.a'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 fi
10371 shlibpath_var=LIBPATH
10372 fi
10373 ;;
10374
10375amigaos*)
10376 case $host_cpu in
10377 powerpc)
10378 # Since July 2007 AmigaOS4 officially supports .so libraries.
10379 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 ;;
10382 m68k)
10383 library_names_spec='$libname.ixlibrary $libname.a'
10384 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10385 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'
10386 ;;
10387 esac
10388 ;;
10389
10390beos*)
10391 library_names_spec='${libname}${shared_ext}'
10392 dynamic_linker="$host_os ld.so"
10393 shlibpath_var=LIBRARY_PATH
10394 ;;
10395
10396bsdi[45]*)
10397 version_type=linux
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10404 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10405 # the default ld.so.conf also contains /usr/contrib/lib and
10406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10407 # libtool to hard-code these into programs
10408 ;;
10409
10410cygwin* | mingw* | pw32* | cegcc*)
10411 version_type=windows
10412 shrext_cmds=".dll"
10413 need_version=no
10414 need_lib_prefix=no
10415
10416 case $GCC,$host_os in
10417 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10418 library_names_spec='$libname.dll.a'
10419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10420 postinstall_cmds='base_file=`basename \${file}`~
10421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10422 dldir=$destdir/`dirname \$dlpath`~
10423 test -d \$dldir || mkdir -p \$dldir~
10424 $install_prog $dir/$dlname \$dldir/$dlname~
10425 chmod a+x \$dldir/$dlname~
10426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10428 fi'
10429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10430 dlpath=$dir/\$dldll~
10431 $RM \$dlpath'
10432 shlibpath_overrides_runpath=yes
10433
10434 case $host_os in
10435 cygwin*)
10436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10437 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10438
10439 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10440 ;;
10441 mingw* | cegcc*)
10442 # MinGW DLLs use traditional 'lib' prefix
10443 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10444 ;;
10445 pw32*)
10446 # pw32 DLLs use 'pw' prefix rather than 'lib'
10447 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10448 ;;
10449 esac
10450 ;;
10451
10452 *)
10453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10454 ;;
10455 esac
10456 dynamic_linker='Win32 ld.exe'
10457 # FIXME: first we should search . and the directory the executable is in
10458 shlibpath_var=PATH
10459 ;;
10460
10461darwin* | rhapsody*)
10462 dynamic_linker="$host_os dyld"
10463 version_type=darwin
10464 need_lib_prefix=no
10465 need_version=no
10466 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10467 soname_spec='${libname}${release}${major}$shared_ext'
10468 shlibpath_overrides_runpath=yes
10469 shlibpath_var=DYLD_LIBRARY_PATH
10470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10471
10472 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10474 ;;
10475
10476dgux*)
10477 version_type=linux
10478 need_lib_prefix=no
10479 need_version=no
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 shlibpath_var=LD_LIBRARY_PATH
10483 ;;
10484
e440a328 10485freebsd* | dragonfly*)
10486 # DragonFly does not have aout. When/if they implement a new
10487 # versioning mechanism, adjust this.
10488 if test -x /usr/bin/objformat; then
10489 objformat=`/usr/bin/objformat`
10490 else
10491 case $host_os in
31d696fa 10492 freebsd[23].*) objformat=aout ;;
e440a328 10493 *) objformat=elf ;;
10494 esac
10495 fi
10496 version_type=freebsd-$objformat
10497 case $version_type in
10498 freebsd-elf*)
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10500 need_version=no
10501 need_lib_prefix=no
10502 ;;
10503 freebsd-*)
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10505 need_version=yes
10506 ;;
10507 esac
10508 shlibpath_var=LD_LIBRARY_PATH
10509 case $host_os in
31d696fa 10510 freebsd2.*)
e440a328 10511 shlibpath_overrides_runpath=yes
10512 ;;
10513 freebsd3.[01]* | freebsdelf3.[01]*)
10514 shlibpath_overrides_runpath=yes
10515 hardcode_into_libs=yes
10516 ;;
10517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10519 shlibpath_overrides_runpath=no
10520 hardcode_into_libs=yes
10521 ;;
10522 *) # from 4.6 on, and DragonFly
10523 shlibpath_overrides_runpath=yes
10524 hardcode_into_libs=yes
10525 ;;
10526 esac
10527 ;;
10528
10529gnu*)
10530 version_type=linux
10531 need_lib_prefix=no
10532 need_version=no
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 hardcode_into_libs=yes
10537 ;;
10538
10539haiku*)
10540 version_type=linux
10541 need_lib_prefix=no
10542 need_version=no
10543 dynamic_linker="$host_os runtime_loader"
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 shlibpath_var=LIBRARY_PATH
10547 shlibpath_overrides_runpath=yes
10548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10549 hardcode_into_libs=yes
10550 ;;
10551
10552hpux9* | hpux10* | hpux11*)
10553 # Give a soname corresponding to the major version so that dld.sl refuses to
10554 # link against other versions.
10555 version_type=sunos
10556 need_lib_prefix=no
10557 need_version=no
10558 case $host_cpu in
10559 ia64*)
10560 shrext_cmds='.so'
10561 hardcode_into_libs=yes
10562 dynamic_linker="$host_os dld.so"
10563 shlibpath_var=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 soname_spec='${libname}${release}${shared_ext}$major'
10567 if test "X$HPUX_IA64_MODE" = X32; then
10568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10569 else
10570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10571 fi
10572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10573 ;;
10574 hppa*64*)
10575 shrext_cmds='.sl'
10576 hardcode_into_libs=yes
10577 dynamic_linker="$host_os dld.sl"
10578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10584 ;;
10585 *)
10586 shrext_cmds='.sl'
10587 dynamic_linker="$host_os dld.sl"
10588 shlibpath_var=SHLIB_PATH
10589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10592 ;;
10593 esac
10594 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10595 postinstall_cmds='chmod 555 $lib'
10596 # or fails outright, so override atomically:
10597 install_override_mode=555
10598 ;;
10599
10600interix[3-9]*)
10601 version_type=linux
10602 need_lib_prefix=no
10603 need_version=no
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=no
10609 hardcode_into_libs=yes
10610 ;;
10611
10612irix5* | irix6* | nonstopux*)
10613 case $host_os in
10614 nonstopux*) version_type=nonstopux ;;
10615 *)
10616 if test "$lt_cv_prog_gnu_ld" = yes; then
10617 version_type=linux
10618 else
10619 version_type=irix
10620 fi ;;
10621 esac
10622 need_lib_prefix=no
10623 need_version=no
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10626 case $host_os in
10627 irix5* | nonstopux*)
10628 libsuff= shlibsuff=
10629 ;;
10630 *)
10631 case $LD in # libtool.m4 will add one of these switches to LD
10632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10633 libsuff= shlibsuff= libmagic=32-bit;;
10634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10635 libsuff=32 shlibsuff=N32 libmagic=N32;;
10636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10637 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10638 *) libsuff= shlibsuff= libmagic=never-match;;
10639 esac
10640 ;;
10641 esac
10642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10643 shlibpath_overrides_runpath=no
10644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10646 hardcode_into_libs=yes
10647 ;;
10648
10649# No shared lib support for Linux oldld, aout, or coff.
10650linux*oldld* | linux*aout* | linux*coff*)
10651 dynamic_linker=no
10652 ;;
10653
10654# This must be Linux ELF.
10655linux* | k*bsd*-gnu | kopensolaris*-gnu)
10656 version_type=linux
10657 need_lib_prefix=no
10658 need_version=no
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=no
10664
10665 # Some binutils ld are patched to set DT_RUNPATH
ea2e69a4 10666 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
e440a328 10667 $as_echo_n "(cached) " >&6
10668else
10669 lt_cv_shlibpath_overrides_runpath=no
10670 save_LDFLAGS=$LDFLAGS
10671 save_libdir=$libdir
10672 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10673 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675/* end confdefs.h. */
10676
10677int
10678main ()
10679{
10680
10681 ;
10682 return 0;
10683}
10684_ACEOF
10685if ac_fn_c_try_link "$LINENO"; then :
10686 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10687 lt_cv_shlibpath_overrides_runpath=yes
10688fi
10689fi
10690rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LDFLAGS=$save_LDFLAGS
10693 libdir=$save_libdir
10694
10695fi
10696
10697 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10698
10699 # This implies no fast_install, which is unacceptable.
10700 # Some rework will be needed to allow for fast_install
10701 # before this can be enabled.
10702 hardcode_into_libs=yes
10703
10704 # Append ld.so.conf contents to the search path
10705 if test -f /etc/ld.so.conf; then
10706 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' ' '`
10707 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10708 fi
10709
10710 # We used to test for /lib/ld.so.1 and disable shared libraries on
10711 # powerpc, because MkLinux only supported shared libraries with the
10712 # GNU dynamic linker. Since this was broken with cross compilers,
10713 # most powerpc-linux boxes support dynamic linking these days and
10714 # people can always --disable-shared, the test was removed, and we
10715 # assume the GNU/Linux dynamic linker is in use.
10716 dynamic_linker='GNU/Linux ld.so'
10717 ;;
10718
10719netbsd*)
10720 version_type=sunos
10721 need_lib_prefix=no
10722 need_version=no
10723 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10726 dynamic_linker='NetBSD (a.out) ld.so'
10727 else
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10729 soname_spec='${libname}${release}${shared_ext}$major'
10730 dynamic_linker='NetBSD ld.elf_so'
10731 fi
10732 shlibpath_var=LD_LIBRARY_PATH
10733 shlibpath_overrides_runpath=yes
10734 hardcode_into_libs=yes
10735 ;;
10736
10737newsos6)
10738 version_type=linux
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 shlibpath_var=LD_LIBRARY_PATH
10741 shlibpath_overrides_runpath=yes
10742 ;;
10743
10744*nto* | *qnx*)
10745 version_type=qnx
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=no
10752 hardcode_into_libs=yes
10753 dynamic_linker='ldqnx.so'
10754 ;;
10755
10756openbsd*)
10757 version_type=sunos
10758 sys_lib_dlsearch_path_spec="/usr/lib"
10759 need_lib_prefix=no
10760 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10761 case $host_os in
10762 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10763 *) need_version=no ;;
10764 esac
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10767 shlibpath_var=LD_LIBRARY_PATH
10768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10769 case $host_os in
10770 openbsd2.[89] | openbsd2.[89].*)
10771 shlibpath_overrides_runpath=no
10772 ;;
10773 *)
10774 shlibpath_overrides_runpath=yes
10775 ;;
10776 esac
10777 else
10778 shlibpath_overrides_runpath=yes
10779 fi
10780 ;;
10781
10782os2*)
10783 libname_spec='$name'
10784 shrext_cmds=".dll"
10785 need_lib_prefix=no
10786 library_names_spec='$libname${shared_ext} $libname.a'
10787 dynamic_linker='OS/2 ld.exe'
10788 shlibpath_var=LIBPATH
10789 ;;
10790
10791osf3* | osf4* | osf5*)
10792 version_type=osf
10793 need_lib_prefix=no
10794 need_version=no
10795 soname_spec='${libname}${release}${shared_ext}$major'
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10799 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10800 ;;
10801
10802rdos*)
10803 dynamic_linker=no
10804 ;;
10805
10806solaris*)
10807 version_type=linux
10808 need_lib_prefix=no
10809 need_version=no
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=yes
10814 hardcode_into_libs=yes
10815 # ldd complains unless libraries are executable
10816 postinstall_cmds='chmod +x $lib'
10817 ;;
10818
10819sunos4*)
10820 version_type=sunos
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10822 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=yes
10825 if test "$with_gnu_ld" = yes; then
10826 need_lib_prefix=no
10827 fi
10828 need_version=yes
10829 ;;
10830
10831sysv4 | sysv4.3*)
10832 version_type=linux
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834 soname_spec='${libname}${release}${shared_ext}$major'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 case $host_vendor in
10837 sni)
10838 shlibpath_overrides_runpath=no
10839 need_lib_prefix=no
10840 runpath_var=LD_RUN_PATH
10841 ;;
10842 siemens)
10843 need_lib_prefix=no
10844 ;;
10845 motorola)
10846 need_lib_prefix=no
10847 need_version=no
10848 shlibpath_overrides_runpath=no
10849 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10850 ;;
10851 esac
10852 ;;
10853
10854sysv4*MP*)
10855 if test -d /usr/nec ;then
10856 version_type=linux
10857 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10858 soname_spec='$libname${shared_ext}.$major'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 fi
10861 ;;
10862
10863sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10864 version_type=freebsd-elf
10865 need_lib_prefix=no
10866 need_version=no
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 shlibpath_overrides_runpath=yes
10871 hardcode_into_libs=yes
10872 if test "$with_gnu_ld" = yes; then
10873 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10874 else
10875 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10876 case $host_os in
10877 sco3.2v5*)
10878 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10879 ;;
10880 esac
10881 fi
10882 sys_lib_dlsearch_path_spec='/usr/lib'
10883 ;;
10884
10885tpf*)
10886 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10887 version_type=linux
10888 need_lib_prefix=no
10889 need_version=no
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 shlibpath_var=LD_LIBRARY_PATH
10892 shlibpath_overrides_runpath=no
10893 hardcode_into_libs=yes
10894 ;;
10895
10896uts4*)
10897 version_type=linux
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 ;;
10902
10903*)
10904 dynamic_linker=no
10905 ;;
10906esac
10907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10908$as_echo "$dynamic_linker" >&6; }
10909test "$dynamic_linker" = no && can_build_shared=no
10910
10911variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10912if test "$GCC" = yes; then
10913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10914fi
10915
10916if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10917 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10918fi
10919if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10920 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10921fi
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11015$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11016hardcode_action=
11017if test -n "$hardcode_libdir_flag_spec" ||
11018 test -n "$runpath_var" ||
11019 test "X$hardcode_automatic" = "Xyes" ; then
11020
11021 # We can hardcode non-existent directories.
11022 if test "$hardcode_direct" != no &&
11023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11024 # have to relink, otherwise we might link with an installed library
11025 # when we should be linking with a yet-to-be-installed one
11026 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11027 test "$hardcode_minus_L" != no; then
11028 # Linking always hardcodes the temporary library directory.
11029 hardcode_action=relink
11030 else
11031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11032 hardcode_action=immediate
11033 fi
11034else
11035 # We cannot hardcode anything, or else we can only hardcode existing
11036 # directories.
11037 hardcode_action=unsupported
11038fi
11039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11040$as_echo "$hardcode_action" >&6; }
11041
11042if test "$hardcode_action" = relink ||
11043 test "$inherit_rpath" = yes; then
11044 # Fast installation is not supported
11045 enable_fast_install=no
11046elif test "$shlibpath_overrides_runpath" = yes ||
11047 test "$enable_shared" = no; then
11048 # Fast installation is not necessary
11049 enable_fast_install=needless
11050fi
11051
11052
11053
11054
11055
11056
11057 if test "x$enable_dlopen" != xyes; then
11058 enable_dlopen=unknown
11059 enable_dlopen_self=unknown
11060 enable_dlopen_self_static=unknown
11061else
11062 lt_cv_dlopen=no
11063 lt_cv_dlopen_libs=
11064
11065 case $host_os in
11066 beos*)
11067 lt_cv_dlopen="load_add_on"
11068 lt_cv_dlopen_libs=
11069 lt_cv_dlopen_self=yes
11070 ;;
11071
11072 mingw* | pw32* | cegcc*)
11073 lt_cv_dlopen="LoadLibrary"
11074 lt_cv_dlopen_libs=
11075 ;;
11076
11077 cygwin*)
11078 lt_cv_dlopen="dlopen"
11079 lt_cv_dlopen_libs=
11080 ;;
11081
11082 darwin*)
11083 # if libdl is installed we need to link against it
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11085$as_echo_n "checking for dlopen in -ldl... " >&6; }
ea2e69a4 11086if ${ac_cv_lib_dl_dlopen+:} false; then :
e440a328 11087 $as_echo_n "(cached) " >&6
11088else
11089 ac_check_lib_save_LIBS=$LIBS
11090LIBS="-ldl $LIBS"
11091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092/* end confdefs.h. */
11093
11094/* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11097#ifdef __cplusplus
11098extern "C"
11099#endif
11100char dlopen ();
11101int
11102main ()
11103{
11104return dlopen ();
11105 ;
11106 return 0;
11107}
11108_ACEOF
11109if ac_fn_c_try_link "$LINENO"; then :
11110 ac_cv_lib_dl_dlopen=yes
11111else
11112 ac_cv_lib_dl_dlopen=no
11113fi
11114rm -f core conftest.err conftest.$ac_objext \
11115 conftest$ac_exeext conftest.$ac_ext
11116LIBS=$ac_check_lib_save_LIBS
11117fi
11118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11119$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ea2e69a4 11120if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
e440a328 11121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11122else
11123
11124 lt_cv_dlopen="dyld"
11125 lt_cv_dlopen_libs=
11126 lt_cv_dlopen_self=yes
11127
11128fi
11129
11130 ;;
11131
11132 *)
11133 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
ea2e69a4 11134if test "x$ac_cv_func_shl_load" = xyes; then :
e440a328 11135 lt_cv_dlopen="shl_load"
11136else
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11138$as_echo_n "checking for shl_load in -ldld... " >&6; }
ea2e69a4 11139if ${ac_cv_lib_dld_shl_load+:} false; then :
e440a328 11140 $as_echo_n "(cached) " >&6
11141else
11142 ac_check_lib_save_LIBS=$LIBS
11143LIBS="-ldld $LIBS"
11144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145/* end confdefs.h. */
11146
11147/* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150#ifdef __cplusplus
11151extern "C"
11152#endif
11153char shl_load ();
11154int
11155main ()
11156{
11157return shl_load ();
11158 ;
11159 return 0;
11160}
11161_ACEOF
11162if ac_fn_c_try_link "$LINENO"; then :
11163 ac_cv_lib_dld_shl_load=yes
11164else
11165 ac_cv_lib_dld_shl_load=no
11166fi
11167rm -f core conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11169LIBS=$ac_check_lib_save_LIBS
11170fi
11171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11172$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
ea2e69a4 11173if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
e440a328 11174 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11175else
11176 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
ea2e69a4 11177if test "x$ac_cv_func_dlopen" = xyes; then :
e440a328 11178 lt_cv_dlopen="dlopen"
11179else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11181$as_echo_n "checking for dlopen in -ldl... " >&6; }
ea2e69a4 11182if ${ac_cv_lib_dl_dlopen+:} false; then :
e440a328 11183 $as_echo_n "(cached) " >&6
11184else
11185 ac_check_lib_save_LIBS=$LIBS
11186LIBS="-ldl $LIBS"
11187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188/* end confdefs.h. */
11189
11190/* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
11193#ifdef __cplusplus
11194extern "C"
11195#endif
11196char dlopen ();
11197int
11198main ()
11199{
11200return dlopen ();
11201 ;
11202 return 0;
11203}
11204_ACEOF
11205if ac_fn_c_try_link "$LINENO"; then :
11206 ac_cv_lib_dl_dlopen=yes
11207else
11208 ac_cv_lib_dl_dlopen=no
11209fi
11210rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11212LIBS=$ac_check_lib_save_LIBS
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11215$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ea2e69a4 11216if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
e440a328 11217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11218else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11220$as_echo_n "checking for dlopen in -lsvld... " >&6; }
ea2e69a4 11221if ${ac_cv_lib_svld_dlopen+:} false; then :
e440a328 11222 $as_echo_n "(cached) " >&6
11223else
11224 ac_check_lib_save_LIBS=$LIBS
11225LIBS="-lsvld $LIBS"
11226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227/* end confdefs.h. */
11228
11229/* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11232#ifdef __cplusplus
11233extern "C"
11234#endif
11235char dlopen ();
11236int
11237main ()
11238{
11239return dlopen ();
11240 ;
11241 return 0;
11242}
11243_ACEOF
11244if ac_fn_c_try_link "$LINENO"; then :
11245 ac_cv_lib_svld_dlopen=yes
11246else
11247 ac_cv_lib_svld_dlopen=no
11248fi
11249rm -f core conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251LIBS=$ac_check_lib_save_LIBS
11252fi
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11254$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
ea2e69a4 11255if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
e440a328 11256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11257else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11259$as_echo_n "checking for dld_link in -ldld... " >&6; }
ea2e69a4 11260if ${ac_cv_lib_dld_dld_link+:} false; then :
e440a328 11261 $as_echo_n "(cached) " >&6
11262else
11263 ac_check_lib_save_LIBS=$LIBS
11264LIBS="-ldld $LIBS"
11265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266/* end confdefs.h. */
11267
11268/* Override any GCC internal prototype to avoid an error.
11269 Use char because int might match the return type of a GCC
11270 builtin and then its argument prototype would still apply. */
11271#ifdef __cplusplus
11272extern "C"
11273#endif
11274char dld_link ();
11275int
11276main ()
11277{
11278return dld_link ();
11279 ;
11280 return 0;
11281}
11282_ACEOF
11283if ac_fn_c_try_link "$LINENO"; then :
11284 ac_cv_lib_dld_dld_link=yes
11285else
11286 ac_cv_lib_dld_dld_link=no
11287fi
11288rm -f core conftest.err conftest.$ac_objext \
11289 conftest$ac_exeext conftest.$ac_ext
11290LIBS=$ac_check_lib_save_LIBS
11291fi
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11293$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
ea2e69a4 11294if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
e440a328 11295 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11296fi
11297
11298
11299fi
11300
11301
11302fi
11303
11304
11305fi
11306
11307
11308fi
11309
11310
11311fi
11312
11313 ;;
11314 esac
11315
11316 if test "x$lt_cv_dlopen" != xno; then
11317 enable_dlopen=yes
11318 else
11319 enable_dlopen=no
11320 fi
11321
11322 case $lt_cv_dlopen in
11323 dlopen)
11324 save_CPPFLAGS="$CPPFLAGS"
11325 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11326
11327 save_LDFLAGS="$LDFLAGS"
11328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11329
11330 save_LIBS="$LIBS"
11331 LIBS="$lt_cv_dlopen_libs $LIBS"
11332
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11334$as_echo_n "checking whether a program can dlopen itself... " >&6; }
ea2e69a4 11335if ${lt_cv_dlopen_self+:} false; then :
e440a328 11336 $as_echo_n "(cached) " >&6
11337else
11338 if test "$cross_compiling" = yes; then :
11339 lt_cv_dlopen_self=cross
11340else
11341 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11342 lt_status=$lt_dlunknown
11343 cat > conftest.$ac_ext <<_LT_EOF
ea2e69a4 11344#line 11344 "configure"
e440a328 11345#include "confdefs.h"
11346
11347#if HAVE_DLFCN_H
11348#include <dlfcn.h>
11349#endif
11350
11351#include <stdio.h>
11352
11353#ifdef RTLD_GLOBAL
11354# define LT_DLGLOBAL RTLD_GLOBAL
11355#else
11356# ifdef DL_GLOBAL
11357# define LT_DLGLOBAL DL_GLOBAL
11358# else
11359# define LT_DLGLOBAL 0
11360# endif
11361#endif
11362
11363/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11364 find out it does not work in some platform. */
11365#ifndef LT_DLLAZY_OR_NOW
11366# ifdef RTLD_LAZY
11367# define LT_DLLAZY_OR_NOW RTLD_LAZY
11368# else
11369# ifdef DL_LAZY
11370# define LT_DLLAZY_OR_NOW DL_LAZY
11371# else
11372# ifdef RTLD_NOW
11373# define LT_DLLAZY_OR_NOW RTLD_NOW
11374# else
11375# ifdef DL_NOW
11376# define LT_DLLAZY_OR_NOW DL_NOW
11377# else
11378# define LT_DLLAZY_OR_NOW 0
11379# endif
11380# endif
11381# endif
11382# endif
11383#endif
11384
11385/* When -fvisbility=hidden is used, assume the code has been annotated
11386 correspondingly for the symbols needed. */
11387#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11388void fnord () __attribute__((visibility("default")));
11389#endif
11390
11391void fnord () { int i=42; }
11392int main ()
11393{
11394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11395 int status = $lt_dlunknown;
11396
11397 if (self)
11398 {
11399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11400 else
11401 {
11402 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11403 else puts (dlerror ());
11404 }
11405 /* dlclose (self); */
11406 }
11407 else
11408 puts (dlerror ());
11409
11410 return status;
11411}
11412_LT_EOF
11413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11414 (eval $ac_link) 2>&5
11415 ac_status=$?
11416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11417 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11418 (./conftest; exit; ) >&5 2>/dev/null
11419 lt_status=$?
11420 case x$lt_status in
11421 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11422 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11423 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11424 esac
11425 else :
11426 # compilation failed
11427 lt_cv_dlopen_self=no
11428 fi
11429fi
11430rm -fr conftest*
11431
11432
11433fi
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11435$as_echo "$lt_cv_dlopen_self" >&6; }
11436
11437 if test "x$lt_cv_dlopen_self" = xyes; then
11438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11440$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
ea2e69a4 11441if ${lt_cv_dlopen_self_static+:} false; then :
e440a328 11442 $as_echo_n "(cached) " >&6
11443else
11444 if test "$cross_compiling" = yes; then :
11445 lt_cv_dlopen_self_static=cross
11446else
11447 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11448 lt_status=$lt_dlunknown
11449 cat > conftest.$ac_ext <<_LT_EOF
ea2e69a4 11450#line 11450 "configure"
e440a328 11451#include "confdefs.h"
11452
11453#if HAVE_DLFCN_H
11454#include <dlfcn.h>
11455#endif
11456
11457#include <stdio.h>
11458
11459#ifdef RTLD_GLOBAL
11460# define LT_DLGLOBAL RTLD_GLOBAL
11461#else
11462# ifdef DL_GLOBAL
11463# define LT_DLGLOBAL DL_GLOBAL
11464# else
11465# define LT_DLGLOBAL 0
11466# endif
11467#endif
11468
11469/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11470 find out it does not work in some platform. */
11471#ifndef LT_DLLAZY_OR_NOW
11472# ifdef RTLD_LAZY
11473# define LT_DLLAZY_OR_NOW RTLD_LAZY
11474# else
11475# ifdef DL_LAZY
11476# define LT_DLLAZY_OR_NOW DL_LAZY
11477# else
11478# ifdef RTLD_NOW
11479# define LT_DLLAZY_OR_NOW RTLD_NOW
11480# else
11481# ifdef DL_NOW
11482# define LT_DLLAZY_OR_NOW DL_NOW
11483# else
11484# define LT_DLLAZY_OR_NOW 0
11485# endif
11486# endif
11487# endif
11488# endif
11489#endif
11490
11491/* When -fvisbility=hidden is used, assume the code has been annotated
11492 correspondingly for the symbols needed. */
11493#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11494void fnord () __attribute__((visibility("default")));
11495#endif
11496
11497void fnord () { int i=42; }
11498int main ()
11499{
11500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11501 int status = $lt_dlunknown;
11502
11503 if (self)
11504 {
11505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11506 else
11507 {
11508 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11509 else puts (dlerror ());
11510 }
11511 /* dlclose (self); */
11512 }
11513 else
11514 puts (dlerror ());
11515
11516 return status;
11517}
11518_LT_EOF
11519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11520 (eval $ac_link) 2>&5
11521 ac_status=$?
11522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11523 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11524 (./conftest; exit; ) >&5 2>/dev/null
11525 lt_status=$?
11526 case x$lt_status in
11527 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11528 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11529 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11530 esac
11531 else :
11532 # compilation failed
11533 lt_cv_dlopen_self_static=no
11534 fi
11535fi
11536rm -fr conftest*
11537
11538
11539fi
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11541$as_echo "$lt_cv_dlopen_self_static" >&6; }
11542 fi
11543
11544 CPPFLAGS="$save_CPPFLAGS"
11545 LDFLAGS="$save_LDFLAGS"
11546 LIBS="$save_LIBS"
11547 ;;
11548 esac
11549
11550 case $lt_cv_dlopen_self in
11551 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11552 *) enable_dlopen_self=unknown ;;
11553 esac
11554
11555 case $lt_cv_dlopen_self_static in
11556 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11557 *) enable_dlopen_self_static=unknown ;;
11558 esac
11559fi
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577striplib=
11578old_striplib=
11579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11580$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11581if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11582 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11583 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11585$as_echo "yes" >&6; }
11586else
11587# FIXME - insert some real tests, host_os isn't really good enough
11588 case $host_os in
11589 darwin*)
11590 if test -n "$STRIP" ; then
11591 striplib="$STRIP -x"
11592 old_striplib="$STRIP -S"
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11594$as_echo "yes" >&6; }
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11597$as_echo "no" >&6; }
11598 fi
11599 ;;
11600 *)
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602$as_echo "no" >&6; }
11603 ;;
11604 esac
11605fi
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618 # Report which library types will actually be built
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11620$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11622$as_echo "$can_build_shared" >&6; }
11623
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11625$as_echo_n "checking whether to build shared libraries... " >&6; }
11626 test "$can_build_shared" = "no" && enable_shared=no
11627
11628 # On AIX, shared libraries and static libraries use the same namespace, and
11629 # are all built from PIC.
11630 case $host_os in
11631 aix3*)
11632 test "$enable_shared" = yes && enable_static=no
11633 if test -n "$RANLIB"; then
11634 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11635 postinstall_cmds='$RANLIB $lib'
11636 fi
11637 ;;
11638
11639 aix[4-9]*)
11640 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11641 test "$enable_shared" = yes && enable_static=no
11642 fi
11643 ;;
11644 esac
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11646$as_echo "$enable_shared" >&6; }
11647
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11649$as_echo_n "checking whether to build static libraries... " >&6; }
11650 # Make sure either enable_shared or enable_static is yes.
11651 test "$enable_shared" = yes || enable_static=yes
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11653$as_echo "$enable_static" >&6; }
11654
11655
11656
11657
11658fi
11659ac_ext=c
11660ac_cpp='$CPP $CPPFLAGS'
11661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11663ac_compiler_gnu=$ac_cv_c_compiler_gnu
11664
11665CC="$lt_save_CC"
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679# Source file extension for Go test sources.
11680ac_ext=go
11681
11682# Object file extension for compiled Go test sources.
11683objext=o
11684objext_GO=$objext
11685
11686# Code to be used in simple compile tests
11687lt_simple_compile_test_code="package main; func main() { }"
11688
11689# Code to be used in simple link tests
11690lt_simple_link_test_code='package main; func main() { }'
11691
11692# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11693
11694
11695
11696
11697
11698
11699# If no C compiler was specified, use CC.
11700LTCC=${LTCC-"$CC"}
11701
11702# If no C compiler flags were specified, use CFLAGS.
11703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11704
11705# Allow CC to be a program name with arguments.
11706compiler=$CC
11707
11708
11709# save warnings/boilerplate of simple test code
11710ac_outfile=conftest.$ac_objext
11711echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11712eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11713_lt_compiler_boilerplate=`cat conftest.err`
11714$RM conftest*
11715
11716ac_outfile=conftest.$ac_objext
11717echo "$lt_simple_link_test_code" >conftest.$ac_ext
11718eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11719_lt_linker_boilerplate=`cat conftest.err`
11720$RM -r conftest*
11721
11722
11723# Allow CC to be a program name with arguments.
11724lt_save_CC="$CC"
11725lt_save_GCC="$GCC"
11726GCC=yes
11727CC=${GOC-"gccgo"}
11728compiler=$CC
11729compiler_GO=$CC
11730LD_GO="$LD"
11731for cc_temp in $compiler""; do
11732 case $cc_temp in
11733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11735 \-*) ;;
11736 *) break;;
11737 esac
11738done
11739cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11740
11741
11742# Go did not exist at the time GCC didn't implicitly link libc in.
11743archive_cmds_need_lc_GO=no
11744
11745old_archive_cmds_GO=$old_archive_cmds
11746
11747## CAVEAT EMPTOR:
11748## There is no encapsulation within the following macros, do not change
11749## the running order or otherwise move them around unless you know exactly
11750## what you are doing...
11751if test -n "$compiler"; then
11752
11753lt_prog_compiler_no_builtin_flag_GO=
11754
11755if test "$GCC" = yes; then
11756 case $cc_basename in
11757 nvcc*)
11758 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11759 *)
11760 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11761 esac
11762
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11764$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
ea2e69a4 11765if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
e440a328 11766 $as_echo_n "(cached) " >&6
11767else
11768 lt_cv_prog_compiler_rtti_exceptions=no
11769 ac_outfile=conftest.$ac_objext
11770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11771 lt_compiler_flag="-fno-rtti -fno-exceptions"
11772 # Insert the option either (1) after the last *FLAGS variable, or
11773 # (2) before a word containing "conftest.", or (3) at the end.
11774 # Note that $ac_compile itself does not contain backslashes and begins
11775 # with a dollar sign (not a hyphen), so the echo should work correctly.
11776 # The option is referenced via a variable to avoid confusing sed.
11777 lt_compile=`echo "$ac_compile" | $SED \
11778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11780 -e 's:$: $lt_compiler_flag:'`
11781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11782 (eval "$lt_compile" 2>conftest.err)
11783 ac_status=$?
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 if (exit $ac_status) && test -s "$ac_outfile"; then
11787 # The compiler can only warn and ignore the option if not recognized
11788 # So say no if there are warnings other than the usual output.
11789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11792 lt_cv_prog_compiler_rtti_exceptions=yes
11793 fi
11794 fi
11795 $RM conftest*
11796
11797fi
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11799$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11800
11801if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11802 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11803else
11804 :
11805fi
11806
11807fi
11808
11809
11810
11811 lt_prog_compiler_wl_GO=
11812lt_prog_compiler_pic_GO=
11813lt_prog_compiler_static_GO=
11814
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11816$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11817
11818 if test "$GCC" = yes; then
11819 lt_prog_compiler_wl_GO='-Wl,'
11820 lt_prog_compiler_static_GO='-static'
11821
11822 case $host_os in
11823 aix*)
11824 # All AIX code is PIC.
11825 if test "$host_cpu" = ia64; then
11826 # AIX 5 now supports IA64 processor
11827 lt_prog_compiler_static_GO='-Bstatic'
11828 fi
31d696fa 11829 lt_prog_compiler_pic_GO='-fPIC'
e440a328 11830 ;;
11831
11832 amigaos*)
11833 case $host_cpu in
11834 powerpc)
11835 # see comment about AmigaOS4 .so support
11836 lt_prog_compiler_pic_GO='-fPIC'
11837 ;;
11838 m68k)
11839 # FIXME: we need at least 68020 code to build shared libraries, but
11840 # adding the `-m68020' flag to GCC prevents building anything better,
11841 # like `-m68040'.
11842 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11843 ;;
11844 esac
11845 ;;
11846
11847 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11848 # PIC is the default for these OSes.
11849 ;;
11850
11851 mingw* | cygwin* | pw32* | os2* | cegcc*)
11852 # This hack is so that the source file can tell whether it is being
11853 # built for inclusion in a dll (and should export symbols for example).
11854 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11855 # (--disable-auto-import) libraries
11856 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11857 ;;
11858
11859 darwin* | rhapsody*)
11860 # PIC is the default on this platform
11861 # Common symbols not allowed in MH_DYLIB files
11862 lt_prog_compiler_pic_GO='-fno-common'
11863 ;;
11864
11865 haiku*)
11866 # PIC is the default for Haiku.
11867 # The "-static" flag exists, but is broken.
11868 lt_prog_compiler_static_GO=
11869 ;;
11870
11871 hpux*)
11872 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11873 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11874 # sets the default TLS model and affects inlining.
11875 case $host_cpu in
11876 hppa*64*)
11877 # +Z the default
11878 ;;
11879 *)
11880 lt_prog_compiler_pic_GO='-fPIC'
11881 ;;
11882 esac
11883 ;;
11884
11885 interix[3-9]*)
11886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11887 # Instead, we relocate shared libraries at runtime.
11888 ;;
11889
11890 msdosdjgpp*)
11891 # Just because we use GCC doesn't mean we suddenly get shared libraries
11892 # on systems that don't support them.
11893 lt_prog_compiler_can_build_shared_GO=no
11894 enable_shared=no
11895 ;;
11896
11897 *nto* | *qnx*)
11898 # QNX uses GNU C++, but need to define -shared option too, otherwise
11899 # it will coredump.
11900 lt_prog_compiler_pic_GO='-fPIC -shared'
11901 ;;
11902
11903 sysv4*MP*)
11904 if test -d /usr/nec; then
11905 lt_prog_compiler_pic_GO=-Kconform_pic
11906 fi
11907 ;;
11908
11909 *)
11910 lt_prog_compiler_pic_GO='-fPIC'
11911 ;;
11912 esac
11913
11914 case $cc_basename in
11915 nvcc*) # Cuda Compiler Driver 2.2
11916 lt_prog_compiler_wl_GO='-Xlinker '
11917 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11918 ;;
11919 esac
11920 else
11921 # PORTME Check for flag to pass linker flags through the system compiler.
11922 case $host_os in
11923 aix*)
11924 lt_prog_compiler_wl_GO='-Wl,'
11925 if test "$host_cpu" = ia64; then
11926 # AIX 5 now supports IA64 processor
11927 lt_prog_compiler_static_GO='-Bstatic'
11928 else
11929 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11930 fi
11931 ;;
11932
11933 mingw* | cygwin* | pw32* | os2* | cegcc*)
11934 # This hack is so that the source file can tell whether it is being
11935 # built for inclusion in a dll (and should export symbols for example).
11936 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11937 ;;
11938
11939 hpux9* | hpux10* | hpux11*)
11940 lt_prog_compiler_wl_GO='-Wl,'
11941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11942 # not for PA HP-UX.
11943 case $host_cpu in
11944 hppa*64*|ia64*)
11945 # +Z the default
11946 ;;
11947 *)
11948 lt_prog_compiler_pic_GO='+Z'
11949 ;;
11950 esac
11951 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11952 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11953 ;;
11954
11955 irix5* | irix6* | nonstopux*)
11956 lt_prog_compiler_wl_GO='-Wl,'
11957 # PIC (with -KPIC) is the default.
11958 lt_prog_compiler_static_GO='-non_shared'
11959 ;;
11960
11961 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11962 case $cc_basename in
11963 # old Intel for x86_64 which still supported -KPIC.
11964 ecc*)
11965 lt_prog_compiler_wl_GO='-Wl,'
11966 lt_prog_compiler_pic_GO='-KPIC'
11967 lt_prog_compiler_static_GO='-static'
11968 ;;
11969 # icc used to be incompatible with GCC.
11970 # ICC 10 doesn't accept -KPIC any more.
11971 icc* | ifort*)
11972 lt_prog_compiler_wl_GO='-Wl,'
11973 lt_prog_compiler_pic_GO='-fPIC'
11974 lt_prog_compiler_static_GO='-static'
11975 ;;
11976 # Lahey Fortran 8.1.
11977 lf95*)
11978 lt_prog_compiler_wl_GO='-Wl,'
11979 lt_prog_compiler_pic_GO='--shared'
11980 lt_prog_compiler_static_GO='--static'
11981 ;;
11982 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11983 # Portland Group compilers (*not* the Pentium gcc compiler,
11984 # which looks to be a dead project)
11985 lt_prog_compiler_wl_GO='-Wl,'
11986 lt_prog_compiler_pic_GO='-fpic'
11987 lt_prog_compiler_static_GO='-Bstatic'
11988 ;;
11989 ccc*)
11990 lt_prog_compiler_wl_GO='-Wl,'
11991 # All Alpha code is PIC.
11992 lt_prog_compiler_static_GO='-non_shared'
11993 ;;
11994 xl* | bgxl* | bgf* | mpixl*)
11995 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11996 lt_prog_compiler_wl_GO='-Wl,'
11997 lt_prog_compiler_pic_GO='-qpic'
11998 lt_prog_compiler_static_GO='-qstaticlink'
11999 ;;
12000 *)
12001 case `$CC -V 2>&1 | sed 5q` in
12002 *Sun\ F* | *Sun*Fortran*)
12003 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12004 lt_prog_compiler_pic_GO='-KPIC'
12005 lt_prog_compiler_static_GO='-Bstatic'
12006 lt_prog_compiler_wl_GO=''
12007 ;;
12008 *Sun\ C*)
12009 # Sun C 5.9
12010 lt_prog_compiler_pic_GO='-KPIC'
12011 lt_prog_compiler_static_GO='-Bstatic'
12012 lt_prog_compiler_wl_GO='-Wl,'
12013 ;;
12014 esac
12015 ;;
12016 esac
12017 ;;
12018
12019 newsos6)
12020 lt_prog_compiler_pic_GO='-KPIC'
12021 lt_prog_compiler_static_GO='-Bstatic'
12022 ;;
12023
12024 *nto* | *qnx*)
12025 # QNX uses GNU C++, but need to define -shared option too, otherwise
12026 # it will coredump.
12027 lt_prog_compiler_pic_GO='-fPIC -shared'
12028 ;;
12029
12030 osf3* | osf4* | osf5*)
12031 lt_prog_compiler_wl_GO='-Wl,'
12032 # All OSF/1 code is PIC.
12033 lt_prog_compiler_static_GO='-non_shared'
12034 ;;
12035
12036 rdos*)
12037 lt_prog_compiler_static_GO='-non_shared'
12038 ;;
12039
12040 solaris*)
12041 lt_prog_compiler_pic_GO='-KPIC'
12042 lt_prog_compiler_static_GO='-Bstatic'
12043 case $cc_basename in
12044 f77* | f90* | f95*)
12045 lt_prog_compiler_wl_GO='-Qoption ld ';;
12046 *)
12047 lt_prog_compiler_wl_GO='-Wl,';;
12048 esac
12049 ;;
12050
12051 sunos4*)
12052 lt_prog_compiler_wl_GO='-Qoption ld '
12053 lt_prog_compiler_pic_GO='-PIC'
12054 lt_prog_compiler_static_GO='-Bstatic'
12055 ;;
12056
12057 sysv4 | sysv4.2uw2* | sysv4.3*)
12058 lt_prog_compiler_wl_GO='-Wl,'
12059 lt_prog_compiler_pic_GO='-KPIC'
12060 lt_prog_compiler_static_GO='-Bstatic'
12061 ;;
12062
12063 sysv4*MP*)
12064 if test -d /usr/nec ;then
12065 lt_prog_compiler_pic_GO='-Kconform_pic'
12066 lt_prog_compiler_static_GO='-Bstatic'
12067 fi
12068 ;;
12069
12070 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12071 lt_prog_compiler_wl_GO='-Wl,'
12072 lt_prog_compiler_pic_GO='-KPIC'
12073 lt_prog_compiler_static_GO='-Bstatic'
12074 ;;
12075
12076 unicos*)
12077 lt_prog_compiler_wl_GO='-Wl,'
12078 lt_prog_compiler_can_build_shared_GO=no
12079 ;;
12080
12081 uts4*)
12082 lt_prog_compiler_pic_GO='-pic'
12083 lt_prog_compiler_static_GO='-Bstatic'
12084 ;;
12085
12086 *)
12087 lt_prog_compiler_can_build_shared_GO=no
12088 ;;
12089 esac
12090 fi
12091
12092case $host_os in
12093 # For platforms which do not support PIC, -DPIC is meaningless:
12094 *djgpp*)
12095 lt_prog_compiler_pic_GO=
12096 ;;
12097 *)
12098 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12099 ;;
12100esac
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12102$as_echo "$lt_prog_compiler_pic_GO" >&6; }
12103
12104
12105
12106#
12107# Check to make sure the PIC flag actually works.
12108#
12109if test -n "$lt_prog_compiler_pic_GO"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12111$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
ea2e69a4 12112if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
e440a328 12113 $as_echo_n "(cached) " >&6
12114else
12115 lt_cv_prog_compiler_pic_works_GO=no
12116 ac_outfile=conftest.$ac_objext
12117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12118 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12119 # Insert the option either (1) after the last *FLAGS variable, or
12120 # (2) before a word containing "conftest.", or (3) at the end.
12121 # Note that $ac_compile itself does not contain backslashes and begins
12122 # with a dollar sign (not a hyphen), so the echo should work correctly.
12123 # The option is referenced via a variable to avoid confusing sed.
12124 lt_compile=`echo "$ac_compile" | $SED \
12125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12127 -e 's:$: $lt_compiler_flag:'`
12128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12129 (eval "$lt_compile" 2>conftest.err)
12130 ac_status=$?
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 if (exit $ac_status) && test -s "$ac_outfile"; then
12134 # The compiler can only warn and ignore the option if not recognized
12135 # So say no if there are warnings other than the usual output.
12136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12139 lt_cv_prog_compiler_pic_works_GO=yes
12140 fi
12141 fi
12142 $RM conftest*
12143
12144fi
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12146$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12147
12148if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12149 case $lt_prog_compiler_pic_GO in
12150 "" | " "*) ;;
12151 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12152 esac
12153else
12154 lt_prog_compiler_pic_GO=
12155 lt_prog_compiler_can_build_shared_GO=no
12156fi
12157
12158fi
12159
12160
12161
12162#
12163# Check to make sure the static flag actually works.
12164#
12165wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12167$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ea2e69a4 12168if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
e440a328 12169 $as_echo_n "(cached) " >&6
12170else
12171 lt_cv_prog_compiler_static_works_GO=no
12172 save_LDFLAGS="$LDFLAGS"
12173 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12176 # The linker can only warn and ignore the option if not recognized
12177 # So say no if there are warnings
12178 if test -s conftest.err; then
12179 # Append any errors to the config.log.
12180 cat conftest.err 1>&5
12181 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12183 if diff conftest.exp conftest.er2 >/dev/null; then
12184 lt_cv_prog_compiler_static_works_GO=yes
12185 fi
12186 else
12187 lt_cv_prog_compiler_static_works_GO=yes
12188 fi
12189 fi
12190 $RM -r conftest*
12191 LDFLAGS="$save_LDFLAGS"
12192
12193fi
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12195$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12196
12197if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12198 :
12199else
12200 lt_prog_compiler_static_GO=
12201fi
12202
12203
12204
12205
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12207$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ea2e69a4 12208if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
e440a328 12209 $as_echo_n "(cached) " >&6
12210else
12211 lt_cv_prog_compiler_c_o_GO=no
12212 $RM -r conftest 2>/dev/null
12213 mkdir conftest
12214 cd conftest
12215 mkdir out
12216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12217
12218 lt_compiler_flag="-o out/conftest2.$ac_objext"
12219 # Insert the option either (1) after the last *FLAGS variable, or
12220 # (2) before a word containing "conftest.", or (3) at the end.
12221 # Note that $ac_compile itself does not contain backslashes and begins
12222 # with a dollar sign (not a hyphen), so the echo should work correctly.
12223 lt_compile=`echo "$ac_compile" | $SED \
12224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12226 -e 's:$: $lt_compiler_flag:'`
12227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12228 (eval "$lt_compile" 2>out/conftest.err)
12229 ac_status=$?
12230 cat out/conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12233 then
12234 # The compiler can only warn and ignore the option if not recognized
12235 # So say no if there are warnings
12236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12239 lt_cv_prog_compiler_c_o_GO=yes
12240 fi
12241 fi
12242 chmod u+w . 2>&5
12243 $RM conftest*
12244 # SGI C++ compiler will create directory out/ii_files/ for
12245 # template instantiation
12246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12247 $RM out/* && rmdir out
12248 cd ..
12249 $RM -r conftest
12250 $RM conftest*
12251
12252fi
12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12254$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12255
12256
12257
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12259$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ea2e69a4 12260if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
e440a328 12261 $as_echo_n "(cached) " >&6
12262else
12263 lt_cv_prog_compiler_c_o_GO=no
12264 $RM -r conftest 2>/dev/null
12265 mkdir conftest
12266 cd conftest
12267 mkdir out
12268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12269
12270 lt_compiler_flag="-o out/conftest2.$ac_objext"
12271 # Insert the option either (1) after the last *FLAGS variable, or
12272 # (2) before a word containing "conftest.", or (3) at the end.
12273 # Note that $ac_compile itself does not contain backslashes and begins
12274 # with a dollar sign (not a hyphen), so the echo should work correctly.
12275 lt_compile=`echo "$ac_compile" | $SED \
12276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12278 -e 's:$: $lt_compiler_flag:'`
12279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12280 (eval "$lt_compile" 2>out/conftest.err)
12281 ac_status=$?
12282 cat out/conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12285 then
12286 # The compiler can only warn and ignore the option if not recognized
12287 # So say no if there are warnings
12288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12291 lt_cv_prog_compiler_c_o_GO=yes
12292 fi
12293 fi
12294 chmod u+w . 2>&5
12295 $RM conftest*
12296 # SGI C++ compiler will create directory out/ii_files/ for
12297 # template instantiation
12298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12299 $RM out/* && rmdir out
12300 cd ..
12301 $RM -r conftest
12302 $RM conftest*
12303
12304fi
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12306$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12307
12308
12309
12310
12311hard_links="nottested"
12312if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12313 # do not overwrite the value of need_locks provided by the user
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12315$as_echo_n "checking if we can lock with hard links... " >&6; }
12316 hard_links=yes
12317 $RM conftest*
12318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12319 touch conftest.a
12320 ln conftest.a conftest.b 2>&5 || hard_links=no
12321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12323$as_echo "$hard_links" >&6; }
12324 if test "$hard_links" = no; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12326$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12327 need_locks=warn
12328 fi
12329else
12330 need_locks=no
12331fi
12332
12333
12334
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12336$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12337
12338 runpath_var=
12339 allow_undefined_flag_GO=
12340 always_export_symbols_GO=no
12341 archive_cmds_GO=
12342 archive_expsym_cmds_GO=
12343 compiler_needs_object_GO=no
12344 enable_shared_with_static_runtimes_GO=no
12345 export_dynamic_flag_spec_GO=
12346 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12347 hardcode_automatic_GO=no
12348 hardcode_direct_GO=no
12349 hardcode_direct_absolute_GO=no
12350 hardcode_libdir_flag_spec_GO=
12351 hardcode_libdir_flag_spec_ld_GO=
12352 hardcode_libdir_separator_GO=
12353 hardcode_minus_L_GO=no
12354 hardcode_shlibpath_var_GO=unsupported
12355 inherit_rpath_GO=no
12356 link_all_deplibs_GO=unknown
12357 module_cmds_GO=
12358 module_expsym_cmds_GO=
12359 old_archive_from_new_cmds_GO=
12360 old_archive_from_expsyms_cmds_GO=
12361 thread_safe_flag_spec_GO=
12362 whole_archive_flag_spec_GO=
12363 # include_expsyms should be a list of space-separated symbols to be *always*
12364 # included in the symbol list
12365 include_expsyms_GO=
12366 # exclude_expsyms can be an extended regexp of symbols to exclude
12367 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12368 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12369 # as well as any symbol that contains `d'.
12370 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12372 # platforms (ab)use it in PIC code, but their linkers get confused if
12373 # the symbol is explicitly referenced. Since portable code cannot
12374 # rely on this symbol name, it's probably fine to never include it in
12375 # preloaded symbol tables.
12376 # Exclude shared library initialization/finalization symbols.
12377 extract_expsyms_cmds=
12378
12379 case $host_os in
12380 cygwin* | mingw* | pw32* | cegcc*)
12381 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12382 # When not using gcc, we currently assume that we are using
12383 # Microsoft Visual C++.
12384 if test "$GCC" != yes; then
12385 with_gnu_ld=no
12386 fi
12387 ;;
12388 interix*)
12389 # we just hope/assume this is gcc and not c89 (= MSVC++)
12390 with_gnu_ld=yes
12391 ;;
12392 openbsd*)
12393 with_gnu_ld=no
12394 ;;
12395 esac
12396
12397 ld_shlibs_GO=yes
12398
12399 # On some targets, GNU ld is compatible enough with the native linker
12400 # that we're better off using the native interface for both.
12401 lt_use_gnu_ld_interface=no
12402 if test "$with_gnu_ld" = yes; then
12403 case $host_os in
12404 aix*)
12405 # The AIX port of GNU ld has always aspired to compatibility
12406 # with the native linker. However, as the warning in the GNU ld
12407 # block says, versions before 2.19.5* couldn't really create working
12408 # shared libraries, regardless of the interface used.
12409 case `$LD -v 2>&1` in
12410 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12411 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12412 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12413 *)
12414 lt_use_gnu_ld_interface=yes
12415 ;;
12416 esac
12417 ;;
12418 *)
12419 lt_use_gnu_ld_interface=yes
12420 ;;
12421 esac
12422 fi
12423
12424 if test "$lt_use_gnu_ld_interface" = yes; then
12425 # If archive_cmds runs LD, not CC, wlarc should be empty
12426 wlarc='${wl}'
12427
12428 # Set some defaults for GNU ld with shared library support. These
12429 # are reset later if shared libraries are not supported. Putting them
12430 # here allows them to be overridden if necessary.
12431 runpath_var=LD_RUN_PATH
12432 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12433 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12434 # ancient GNU ld didn't support --whole-archive et. al.
12435 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12436 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12437 else
12438 whole_archive_flag_spec_GO=
12439 fi
12440 supports_anon_versioning=no
12441 case `$LD -v 2>&1` in
12442 *GNU\ gold*) supports_anon_versioning=yes ;;
12443 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12444 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12445 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12446 *\ 2.11.*) ;; # other 2.11 versions
12447 *) supports_anon_versioning=yes ;;
12448 esac
12449
12450 # See if GNU ld supports shared libraries.
12451 case $host_os in
12452 aix[3-9]*)
12453 # On AIX/PPC, the GNU linker is very broken
12454 if test "$host_cpu" != ia64; then
12455 ld_shlibs_GO=no
12456 cat <<_LT_EOF 1>&2
12457
12458*** Warning: the GNU linker, at least up to release 2.19, is reported
12459*** to be unable to reliably create shared libraries on AIX.
12460*** Therefore, libtool is disabling shared libraries support. If you
12461*** really care for shared libraries, you may want to install binutils
12462*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12463*** You will then need to restart the configuration process.
12464
12465_LT_EOF
12466 fi
12467 ;;
12468
12469 amigaos*)
12470 case $host_cpu in
12471 powerpc)
12472 # see comment about AmigaOS4 .so support
12473 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12474 archive_expsym_cmds_GO=''
12475 ;;
12476 m68k)
12477 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)'
12478 hardcode_libdir_flag_spec_GO='-L$libdir'
12479 hardcode_minus_L_GO=yes
12480 ;;
12481 esac
12482 ;;
12483
12484 beos*)
12485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12486 allow_undefined_flag_GO=unsupported
12487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12488 # support --undefined. This deserves some investigation. FIXME
12489 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12490 else
12491 ld_shlibs_GO=no
12492 fi
12493 ;;
12494
12495 cygwin* | mingw* | pw32* | cegcc*)
12496 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12497 # as there is no search path for DLLs.
12498 hardcode_libdir_flag_spec_GO='-L$libdir'
12499 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12500 allow_undefined_flag_GO=unsupported
12501 always_export_symbols_GO=no
12502 enable_shared_with_static_runtimes_GO=yes
12503 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12504
12505 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12506 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12507 # If the export-symbols file already is a .def file (1st line
12508 # is EXPORTS), use it as is; otherwise, prepend...
12509 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12510 cp $export_symbols $output_objdir/$soname.def;
12511 else
12512 echo EXPORTS > $output_objdir/$soname.def;
12513 cat $export_symbols >> $output_objdir/$soname.def;
12514 fi~
12515 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12516 else
12517 ld_shlibs_GO=no
12518 fi
12519 ;;
12520
12521 haiku*)
12522 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12523 link_all_deplibs_GO=yes
12524 ;;
12525
12526 interix[3-9]*)
12527 hardcode_direct_GO=no
12528 hardcode_shlibpath_var_GO=no
12529 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12530 export_dynamic_flag_spec_GO='${wl}-E'
12531 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12532 # Instead, shared libraries are loaded at an image base (0x10000000 by
12533 # default) and relocated if they conflict, which is a slow very memory
12534 # consuming and fragmenting process. To avoid this, we pick a random,
12535 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12536 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12537 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'
12538 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'
12539 ;;
12540
12541 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12542 tmp_diet=no
12543 if test "$host_os" = linux-dietlibc; then
12544 case $cc_basename in
12545 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12546 esac
12547 fi
12548 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12549 && test "$tmp_diet" = no
12550 then
12551 tmp_addflag=
12552 tmp_sharedflag='-shared'
12553 case $cc_basename,$host_cpu in
12554 pgcc*) # Portland Group C compiler
12555 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'
12556 tmp_addflag=' $pic_flag'
12557 ;;
12558 pgf77* | pgf90* | pgf95* | pgfortran*)
12559 # Portland Group f77 and f90 compilers
12560 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'
12561 tmp_addflag=' $pic_flag -Mnomain' ;;
12562 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12563 tmp_addflag=' -i_dynamic' ;;
12564 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12565 tmp_addflag=' -i_dynamic -nofor_main' ;;
12566 ifc* | ifort*) # Intel Fortran compiler
12567 tmp_addflag=' -nofor_main' ;;
12568 lf95*) # Lahey Fortran 8.1
12569 whole_archive_flag_spec_GO=
12570 tmp_sharedflag='--shared' ;;
12571 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12572 tmp_sharedflag='-qmkshrobj'
12573 tmp_addflag= ;;
12574 nvcc*) # Cuda Compiler Driver 2.2
12575 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'
12576 compiler_needs_object_GO=yes
12577 ;;
12578 esac
12579 case `$CC -V 2>&1 | sed 5q` in
12580 *Sun\ C*) # Sun C 5.9
12581 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'
12582 compiler_needs_object_GO=yes
12583 tmp_sharedflag='-G' ;;
12584 *Sun\ F*) # Sun Fortran 8.3
12585 tmp_sharedflag='-G' ;;
12586 esac
12587 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12588
12589 if test "x$supports_anon_versioning" = xyes; then
12590 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12592 echo "local: *; };" >> $output_objdir/$libname.ver~
12593 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12594 fi
12595
12596 case $cc_basename in
12597 xlf* | bgf* | bgxlf* | mpixlf*)
12598 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12599 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12600 hardcode_libdir_flag_spec_GO=
12601 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12602 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12603 if test "x$supports_anon_versioning" = xyes; then
12604 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12605 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12606 echo "local: *; };" >> $output_objdir/$libname.ver~
12607 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12608 fi
12609 ;;
12610 esac
12611 else
12612 ld_shlibs_GO=no
12613 fi
12614 ;;
12615
12616 netbsd*)
12617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12618 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12619 wlarc=
12620 else
12621 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12622 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12623 fi
12624 ;;
12625
12626 solaris*)
12627 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12628 ld_shlibs_GO=no
12629 cat <<_LT_EOF 1>&2
12630
12631*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12632*** create shared libraries on Solaris systems. Therefore, libtool
12633*** is disabling shared libraries support. We urge you to upgrade GNU
12634*** binutils to release 2.9.1 or newer. Another option is to modify
12635*** your PATH or compiler configuration so that the native linker is
12636*** used, and then restart.
12637
12638_LT_EOF
12639 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12640 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12641 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12642 else
12643 ld_shlibs_GO=no
12644 fi
12645 ;;
12646
12647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12648 case `$LD -v 2>&1` in
12649 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12650 ld_shlibs_GO=no
12651 cat <<_LT_EOF 1>&2
12652
12653*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12654*** reliably create shared libraries on SCO systems. Therefore, libtool
12655*** is disabling shared libraries support. We urge you to upgrade GNU
12656*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12657*** your PATH or compiler configuration so that the native linker is
12658*** used, and then restart.
12659
12660_LT_EOF
12661 ;;
12662 *)
12663 # For security reasons, it is highly recommended that you always
12664 # use absolute paths for naming shared libraries, and exclude the
12665 # DT_RUNPATH tag from executables and libraries. But doing so
12666 # requires that you compile everything twice, which is a pain.
12667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12668 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12669 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12670 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12671 else
12672 ld_shlibs_GO=no
12673 fi
12674 ;;
12675 esac
12676 ;;
12677
12678 sunos4*)
12679 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12680 wlarc=
12681 hardcode_direct_GO=yes
12682 hardcode_shlibpath_var_GO=no
12683 ;;
12684
12685 *)
12686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12687 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12689 else
12690 ld_shlibs_GO=no
12691 fi
12692 ;;
12693 esac
12694
12695 if test "$ld_shlibs_GO" = no; then
12696 runpath_var=
12697 hardcode_libdir_flag_spec_GO=
12698 export_dynamic_flag_spec_GO=
12699 whole_archive_flag_spec_GO=
12700 fi
12701 else
12702 # PORTME fill in a description of your system's linker (not GNU ld)
12703 case $host_os in
12704 aix3*)
12705 allow_undefined_flag_GO=unsupported
12706 always_export_symbols_GO=yes
12707 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'
12708 # Note: this linker hardcodes the directories in LIBPATH if there
12709 # are no directories specified by -L.
12710 hardcode_minus_L_GO=yes
12711 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12712 # Neither direct hardcoding nor static linking is supported with a
12713 # broken collect2.
12714 hardcode_direct_GO=unsupported
12715 fi
12716 ;;
12717
12718 aix[4-9]*)
12719 if test "$host_cpu" = ia64; then
12720 # On IA64, the linker does run time linking by default, so we don't
12721 # have to do anything special.
12722 aix_use_runtimelinking=no
12723 exp_sym_flag='-Bexport'
12724 no_entry_flag=""
12725 else
12726 # If we're using GNU nm, then we don't want the "-C" option.
12727 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12728 # Also, AIX nm treats weak defined symbols like other global
12729 # defined symbols, whereas GNU nm marks them as "W".
12730 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12731 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'
12732 else
12733 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'
12734 fi
12735 aix_use_runtimelinking=no
12736
12737 # Test if we are trying to use run time linking or normal
12738 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12739 # need to do runtime linking.
12740 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12741 for ld_flag in $LDFLAGS; do
12742 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12743 aix_use_runtimelinking=yes
12744 break
12745 fi
12746 done
12747 ;;
12748 esac
12749
12750 exp_sym_flag='-bexport'
12751 no_entry_flag='-bnoentry'
12752 fi
12753
12754 # When large executables or shared objects are built, AIX ld can
12755 # have problems creating the table of contents. If linking a library
12756 # or program results in "error TOC overflow" add -mminimal-toc to
12757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12759
12760 archive_cmds_GO=''
12761 hardcode_direct_GO=yes
12762 hardcode_direct_absolute_GO=yes
12763 hardcode_libdir_separator_GO=':'
12764 link_all_deplibs_GO=yes
12765 file_list_spec_GO='${wl}-f,'
12766
12767 if test "$GCC" = yes; then
12768 case $host_os in aix4.[012]|aix4.[012].*)
12769 # We only want to do this on AIX 4.2 and lower, the check
12770 # below for broken collect2 doesn't work under 4.3+
12771 collect2name=`${CC} -print-prog-name=collect2`
12772 if test -f "$collect2name" &&
12773 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12774 then
12775 # We have reworked collect2
12776 :
12777 else
12778 # We have old collect2
12779 hardcode_direct_GO=unsupported
12780 # It fails to find uninstalled libraries when the uninstalled
12781 # path is not listed in the libpath. Setting hardcode_minus_L
12782 # to unsupported forces relinking
12783 hardcode_minus_L_GO=yes
12784 hardcode_libdir_flag_spec_GO='-L$libdir'
12785 hardcode_libdir_separator_GO=
12786 fi
12787 ;;
12788 esac
12789 shared_flag='-shared'
12790 if test "$aix_use_runtimelinking" = yes; then
12791 shared_flag="$shared_flag "'${wl}-G'
12792 fi
12793 else
12794 # not using gcc
12795 if test "$host_cpu" = ia64; then
12796 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12797 # chokes on -Wl,-G. The following line is correct:
12798 shared_flag='-G'
12799 else
12800 if test "$aix_use_runtimelinking" = yes; then
12801 shared_flag='${wl}-G'
12802 else
12803 shared_flag='${wl}-bM:SRE'
12804 fi
12805 fi
12806 fi
12807
12808 export_dynamic_flag_spec_GO='${wl}-bexpall'
12809 # It seems that -bexpall does not export symbols beginning with
12810 # underscore (_), so it is better to generate a list of symbols to export.
12811 always_export_symbols_GO=yes
12812 if test "$aix_use_runtimelinking" = yes; then
12813 # Warning - without using the other runtime loading flags (-brtl),
12814 # -berok will link without error, but may produce a broken library.
12815 allow_undefined_flag_GO='-berok'
12816 # Determine the default libpath from the value encoded in an
12817 # empty executable.
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819/* end confdefs.h. */
12820
12821int
12822main ()
12823{
12824
12825 ;
12826 return 0;
12827}
12828_ACEOF
12829if ac_fn_c_try_link "$LINENO"; then :
12830
12831lt_aix_libpath_sed='
12832 /Import File Strings/,/^$/ {
12833 /^0/ {
12834 s/^0 *\(.*\)$/\1/
12835 p
12836 }
12837 }'
12838aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12839# Check for a 64-bit object if we didn't find anything.
12840if test -z "$aix_libpath"; then
12841 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12842fi
12843fi
12844rm -f core conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12846if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12847
12848 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12849 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"
12850 else
12851 if test "$host_cpu" = ia64; then
12852 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12853 allow_undefined_flag_GO="-z nodefs"
12854 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"
12855 else
12856 # Determine the default libpath from the value encoded in an
12857 # empty executable.
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h. */
12860
12861int
12862main ()
12863{
12864
12865 ;
12866 return 0;
12867}
12868_ACEOF
12869if ac_fn_c_try_link "$LINENO"; then :
12870
12871lt_aix_libpath_sed='
12872 /Import File Strings/,/^$/ {
12873 /^0/ {
12874 s/^0 *\(.*\)$/\1/
12875 p
12876 }
12877 }'
12878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12879# Check for a 64-bit object if we didn't find anything.
12880if test -z "$aix_libpath"; then
12881 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12882fi
12883fi
12884rm -f core conftest.err conftest.$ac_objext \
12885 conftest$ac_exeext conftest.$ac_ext
12886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12887
12888 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12889 # Warning - without using the other run time loading flags,
12890 # -berok will link without error, but may produce a broken library.
12891 no_undefined_flag_GO=' ${wl}-bernotok'
12892 allow_undefined_flag_GO=' ${wl}-berok'
12893 if test "$with_gnu_ld" = yes; then
12894 # We only use this code for GNU lds that support --whole-archive.
12895 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12896 else
12897 # Exported symbols can be pulled into shared objects from archives
12898 whole_archive_flag_spec_GO='$convenience'
12899 fi
12900 archive_cmds_need_lc_GO=yes
12901 # This is similar to how AIX traditionally builds its shared libraries.
12902 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'
12903 fi
12904 fi
12905 ;;
12906
12907 amigaos*)
12908 case $host_cpu in
12909 powerpc)
12910 # see comment about AmigaOS4 .so support
12911 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912 archive_expsym_cmds_GO=''
12913 ;;
12914 m68k)
12915 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)'
12916 hardcode_libdir_flag_spec_GO='-L$libdir'
12917 hardcode_minus_L_GO=yes
12918 ;;
12919 esac
12920 ;;
12921
12922 bsdi[45]*)
12923 export_dynamic_flag_spec_GO=-rdynamic
12924 ;;
12925
12926 cygwin* | mingw* | pw32* | cegcc*)
12927 # When not using gcc, we currently assume that we are using
12928 # Microsoft Visual C++.
12929 # hardcode_libdir_flag_spec is actually meaningless, as there is
12930 # no search path for DLLs.
12931 hardcode_libdir_flag_spec_GO=' '
12932 allow_undefined_flag_GO=unsupported
12933 # Tell ltmain to make .lib files, not .a files.
12934 libext=lib
12935 # Tell ltmain to make .dll files, not .so files.
12936 shrext_cmds=".dll"
12937 # FIXME: Setting linknames here is a bad hack.
12938 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12939 # The linker will automatically build a .lib file if we build a DLL.
12940 old_archive_from_new_cmds_GO='true'
12941 # FIXME: Should let the user specify the lib program.
12942 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12943 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12944 enable_shared_with_static_runtimes_GO=yes
12945 ;;
12946
12947 darwin* | rhapsody*)
12948
12949
12950 archive_cmds_need_lc_GO=no
12951 hardcode_direct_GO=no
12952 hardcode_automatic_GO=yes
12953 hardcode_shlibpath_var_GO=unsupported
12954 if test "$lt_cv_ld_force_load" = "yes"; then
12955 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\"`'
12956 else
12957 whole_archive_flag_spec_GO=''
12958 fi
12959 link_all_deplibs_GO=yes
12960 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12961 case $cc_basename in
12962 ifort*) _lt_dar_can_shared=yes ;;
12963 *) _lt_dar_can_shared=$GCC ;;
12964 esac
12965 if test "$_lt_dar_can_shared" = "yes"; then
12966 output_verbose_link_cmd=func_echo_all
12967 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}"
12968 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12969 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}"
12970 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}"
12971
12972 else
12973 ld_shlibs_GO=no
12974 fi
12975
12976 ;;
12977
12978 dgux*)
12979 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12980 hardcode_libdir_flag_spec_GO='-L$libdir'
12981 hardcode_shlibpath_var_GO=no
12982 ;;
12983
e440a328 12984 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12985 # support. Future versions do this automatically, but an explicit c++rt0.o
12986 # does not break anything, and helps significantly (at the cost of a little
12987 # extra space).
12988 freebsd2.2*)
12989 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12990 hardcode_libdir_flag_spec_GO='-R$libdir'
12991 hardcode_direct_GO=yes
12992 hardcode_shlibpath_var_GO=no
12993 ;;
12994
12995 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31d696fa 12996 freebsd2.*)
e440a328 12997 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12998 hardcode_direct_GO=yes
12999 hardcode_minus_L_GO=yes
13000 hardcode_shlibpath_var_GO=no
13001 ;;
13002
13003 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13004 freebsd* | dragonfly*)
13005 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13006 hardcode_libdir_flag_spec_GO='-R$libdir'
13007 hardcode_direct_GO=yes
13008 hardcode_shlibpath_var_GO=no
13009 ;;
13010
13011 hpux9*)
13012 if test "$GCC" = yes; then
13013 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'
13014 else
13015 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'
13016 fi
13017 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13018 hardcode_libdir_separator_GO=:
13019 hardcode_direct_GO=yes
13020
13021 # hardcode_minus_L: Not really in the search PATH,
13022 # but as the default location of the library.
13023 hardcode_minus_L_GO=yes
13024 export_dynamic_flag_spec_GO='${wl}-E'
13025 ;;
13026
13027 hpux10*)
13028 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13029 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13030 else
13031 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13032 fi
13033 if test "$with_gnu_ld" = no; then
13034 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13035 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13036 hardcode_libdir_separator_GO=:
13037 hardcode_direct_GO=yes
13038 hardcode_direct_absolute_GO=yes
13039 export_dynamic_flag_spec_GO='${wl}-E'
13040 # hardcode_minus_L: Not really in the search PATH,
13041 # but as the default location of the library.
13042 hardcode_minus_L_GO=yes
13043 fi
13044 ;;
13045
13046 hpux11*)
13047 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13048 case $host_cpu in
13049 hppa*64*)
13050 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13051 ;;
13052 ia64*)
13053 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13054 ;;
13055 *)
13056 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13057 ;;
13058 esac
13059 else
13060 case $host_cpu in
13061 hppa*64*)
13062 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13063 ;;
13064 ia64*)
13065 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13066 ;;
13067 *)
13068 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13069 ;;
13070 esac
13071 fi
13072 if test "$with_gnu_ld" = no; then
13073 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13074 hardcode_libdir_separator_GO=:
13075
13076 case $host_cpu in
13077 hppa*64*|ia64*)
13078 hardcode_direct_GO=no
13079 hardcode_shlibpath_var_GO=no
13080 ;;
13081 *)
13082 hardcode_direct_GO=yes
13083 hardcode_direct_absolute_GO=yes
13084 export_dynamic_flag_spec_GO='${wl}-E'
13085
13086 # hardcode_minus_L: Not really in the search PATH,
13087 # but as the default location of the library.
13088 hardcode_minus_L_GO=yes
13089 ;;
13090 esac
13091 fi
13092 ;;
13093
13094 irix5* | irix6* | nonstopux*)
13095 if test "$GCC" = yes; then
13096 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'
13097 # Try to use the -exported_symbol ld option, if it does not
13098 # work, assume that -exports_file does not work either and
13099 # implicitly export all symbols.
13100 save_LDFLAGS="$LDFLAGS"
13101 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103/* end confdefs.h. */
13104int foo(void) {}
13105_ACEOF
13106if ac_fn_c_try_link "$LINENO"; then :
13107 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'
13108
13109fi
13110rm -f core conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13112 LDFLAGS="$save_LDFLAGS"
13113 else
13114 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'
13115 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'
13116 fi
13117 archive_cmds_need_lc_GO='no'
13118 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13119 hardcode_libdir_separator_GO=:
13120 inherit_rpath_GO=yes
13121 link_all_deplibs_GO=yes
13122 ;;
13123
13124 netbsd*)
13125 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13126 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13127 else
13128 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13129 fi
13130 hardcode_libdir_flag_spec_GO='-R$libdir'
13131 hardcode_direct_GO=yes
13132 hardcode_shlibpath_var_GO=no
13133 ;;
13134
13135 newsos6)
13136 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13137 hardcode_direct_GO=yes
13138 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13139 hardcode_libdir_separator_GO=:
13140 hardcode_shlibpath_var_GO=no
13141 ;;
13142
13143 *nto* | *qnx*)
13144 ;;
13145
13146 openbsd*)
13147 if test -f /usr/libexec/ld.so; then
13148 hardcode_direct_GO=yes
13149 hardcode_shlibpath_var_GO=no
13150 hardcode_direct_absolute_GO=yes
13151 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13152 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13153 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13154 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13155 export_dynamic_flag_spec_GO='${wl}-E'
13156 else
13157 case $host_os in
13158 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13159 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13160 hardcode_libdir_flag_spec_GO='-R$libdir'
13161 ;;
13162 *)
13163 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13164 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13165 ;;
13166 esac
13167 fi
13168 else
13169 ld_shlibs_GO=no
13170 fi
13171 ;;
13172
13173 os2*)
13174 hardcode_libdir_flag_spec_GO='-L$libdir'
13175 hardcode_minus_L_GO=yes
13176 allow_undefined_flag_GO=unsupported
13177 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'
13178 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13179 ;;
13180
13181 osf3*)
13182 if test "$GCC" = yes; then
13183 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13184 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'
13185 else
13186 allow_undefined_flag_GO=' -expect_unresolved \*'
13187 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'
13188 fi
13189 archive_cmds_need_lc_GO='no'
13190 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13191 hardcode_libdir_separator_GO=:
13192 ;;
13193
13194 osf4* | osf5*) # as osf3* with the addition of -msym flag
13195 if test "$GCC" = yes; then
13196 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13197 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'
13198 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13199 else
13200 allow_undefined_flag_GO=' -expect_unresolved \*'
13201 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'
13202 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~
13203 $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'
13204
13205 # Both c and cxx compiler support -rpath directly
13206 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13207 fi
13208 archive_cmds_need_lc_GO='no'
13209 hardcode_libdir_separator_GO=:
13210 ;;
13211
13212 solaris*)
13213 no_undefined_flag_GO=' -z defs'
13214 if test "$GCC" = yes; then
13215 wlarc='${wl}'
13216 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13217 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13218 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13219 else
13220 case `$CC -V 2>&1` in
13221 *"Compilers 5.0"*)
13222 wlarc=''
13223 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13224 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13225 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13226 ;;
13227 *)
13228 wlarc='${wl}'
13229 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13230 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13231 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13232 ;;
13233 esac
13234 fi
13235 hardcode_libdir_flag_spec_GO='-R$libdir'
13236 hardcode_shlibpath_var_GO=no
13237 case $host_os in
13238 solaris2.[0-5] | solaris2.[0-5].*) ;;
13239 *)
13240 # The compiler driver will combine and reorder linker options,
13241 # but understands `-z linker_flag'. GCC discards it without `$wl',
13242 # but is careful enough not to reorder.
13243 # Supported since Solaris 2.6 (maybe 2.5.1?)
13244 if test "$GCC" = yes; then
13245 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13246 else
13247 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13248 fi
13249 ;;
13250 esac
13251 link_all_deplibs_GO=yes
13252 ;;
13253
13254 sunos4*)
13255 if test "x$host_vendor" = xsequent; then
13256 # Use $CC to link under sequent, because it throws in some extra .o
13257 # files that make .init and .fini sections work.
13258 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13259 else
13260 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13261 fi
13262 hardcode_libdir_flag_spec_GO='-L$libdir'
13263 hardcode_direct_GO=yes
13264 hardcode_minus_L_GO=yes
13265 hardcode_shlibpath_var_GO=no
13266 ;;
13267
13268 sysv4)
13269 case $host_vendor in
13270 sni)
13271 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13272 hardcode_direct_GO=yes # is this really true???
13273 ;;
13274 siemens)
13275 ## LD is ld it makes a PLAMLIB
13276 ## CC just makes a GrossModule.
13277 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13278 reload_cmds_GO='$CC -r -o $output$reload_objs'
13279 hardcode_direct_GO=no
13280 ;;
13281 motorola)
13282 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13283 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13284 ;;
13285 esac
13286 runpath_var='LD_RUN_PATH'
13287 hardcode_shlibpath_var_GO=no
13288 ;;
13289
13290 sysv4.3*)
13291 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13292 hardcode_shlibpath_var_GO=no
13293 export_dynamic_flag_spec_GO='-Bexport'
13294 ;;
13295
13296 sysv4*MP*)
13297 if test -d /usr/nec; then
13298 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13299 hardcode_shlibpath_var_GO=no
13300 runpath_var=LD_RUN_PATH
13301 hardcode_runpath_var=yes
13302 ld_shlibs_GO=yes
13303 fi
13304 ;;
13305
13306 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13307 no_undefined_flag_GO='${wl}-z,text'
13308 archive_cmds_need_lc_GO=no
13309 hardcode_shlibpath_var_GO=no
13310 runpath_var='LD_RUN_PATH'
13311
13312 if test "$GCC" = yes; then
13313 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13314 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13315 else
13316 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13317 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13318 fi
13319 ;;
13320
13321 sysv5* | sco3.2v5* | sco5v6*)
13322 # Note: We can NOT use -z defs as we might desire, because we do not
13323 # link with -lc, and that would cause any symbols used from libc to
13324 # always be unresolved, which means just about no library would
13325 # ever link correctly. If we're not using GNU ld we use -z text
13326 # though, which does catch some bad symbols but isn't as heavy-handed
13327 # as -z defs.
13328 no_undefined_flag_GO='${wl}-z,text'
13329 allow_undefined_flag_GO='${wl}-z,nodefs'
13330 archive_cmds_need_lc_GO=no
13331 hardcode_shlibpath_var_GO=no
13332 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13333 hardcode_libdir_separator_GO=':'
13334 link_all_deplibs_GO=yes
13335 export_dynamic_flag_spec_GO='${wl}-Bexport'
13336 runpath_var='LD_RUN_PATH'
13337
13338 if test "$GCC" = yes; then
13339 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13340 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13341 else
13342 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13343 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13344 fi
13345 ;;
13346
13347 uts4*)
13348 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13349 hardcode_libdir_flag_spec_GO='-L$libdir'
13350 hardcode_shlibpath_var_GO=no
13351 ;;
13352
13353 *)
13354 ld_shlibs_GO=no
13355 ;;
13356 esac
13357
13358 if test x$host_vendor = xsni; then
13359 case $host in
13360 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13361 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13362 ;;
13363 esac
13364 fi
13365 fi
13366
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13368$as_echo "$ld_shlibs_GO" >&6; }
13369test "$ld_shlibs_GO" = no && can_build_shared=no
13370
13371with_gnu_ld_GO=$with_gnu_ld
13372
13373
13374
13375
13376
13377
13378#
13379# Do we need to explicitly link libc?
13380#
13381case "x$archive_cmds_need_lc_GO" in
13382x|xyes)
13383 # Assume -lc should be added
13384 archive_cmds_need_lc_GO=yes
13385
13386 if test "$enable_shared" = yes && test "$GCC" = yes; then
13387 case $archive_cmds_GO in
13388 *'~'*)
13389 # FIXME: we may have to deal with multi-command sequences.
13390 ;;
13391 '$CC '*)
13392 # Test whether the compiler implicitly links with -lc since on some
13393 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13394 # to ld, don't add -lc before -lgcc.
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13396$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ea2e69a4 13397if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
e440a328 13398 $as_echo_n "(cached) " >&6
13399else
13400 $RM conftest*
13401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13402
13403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13404 (eval $ac_compile) 2>&5
13405 ac_status=$?
13406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13407 test $ac_status = 0; } 2>conftest.err; then
13408 soname=conftest
13409 lib=conftest
13410 libobjs=conftest.$ac_objext
13411 deplibs=
13412 wl=$lt_prog_compiler_wl_GO
13413 pic_flag=$lt_prog_compiler_pic_GO
13414 compiler_flags=-v
13415 linker_flags=-v
13416 verstring=
13417 output_objdir=.
13418 libname=conftest
13419 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13420 allow_undefined_flag_GO=
13421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13422 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13423 ac_status=$?
13424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13425 test $ac_status = 0; }
13426 then
13427 lt_cv_archive_cmds_need_lc_GO=no
13428 else
13429 lt_cv_archive_cmds_need_lc_GO=yes
13430 fi
13431 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13432 else
13433 cat conftest.err 1>&5
13434 fi
13435 $RM conftest*
13436
13437fi
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13439$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13440 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13441 ;;
13442 esac
13443 fi
13444 ;;
13445esac
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13511$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13512hardcode_action_GO=
13513if test -n "$hardcode_libdir_flag_spec_GO" ||
13514 test -n "$runpath_var_GO" ||
13515 test "X$hardcode_automatic_GO" = "Xyes" ; then
13516
13517 # We can hardcode non-existent directories.
13518 if test "$hardcode_direct_GO" != no &&
13519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13520 # have to relink, otherwise we might link with an installed library
13521 # when we should be linking with a yet-to-be-installed one
13522 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13523 test "$hardcode_minus_L_GO" != no; then
13524 # Linking always hardcodes the temporary library directory.
13525 hardcode_action_GO=relink
13526 else
13527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13528 hardcode_action_GO=immediate
13529 fi
13530else
13531 # We cannot hardcode anything, or else we can only hardcode existing
13532 # directories.
13533 hardcode_action_GO=unsupported
13534fi
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13536$as_echo "$hardcode_action_GO" >&6; }
13537
13538if test "$hardcode_action_GO" = relink ||
13539 test "$inherit_rpath_GO" = yes; then
13540 # Fast installation is not supported
13541 enable_fast_install=no
13542elif test "$shlibpath_overrides_runpath" = yes ||
13543 test "$enable_shared" = no; then
13544 # Fast installation is not necessary
13545 enable_fast_install=needless
13546fi
13547
13548
13549
13550
13551
13552
13553
13554fi
13555
13556ac_ext=c
13557ac_cpp='$CPP $CPPFLAGS'
13558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560ac_compiler_gnu=$ac_cv_c_compiler_gnu
13561
13562
13563GCC=$lt_save_GCC
13564CC="$lt_save_CC"
13565
13566
13567
13568
13569 ac_config_commands="$ac_config_commands libtool"
13570
13571
13572
13573
13574# Only expand once:
13575
13576
13577
13578
13579
a27e1015 13580CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13581
13582
d477de41 13583for ac_prog in gawk mawk nawk awk
13584do
13585 # Extract the first word of "$ac_prog", so it can be a program name with args.
13586set dummy $ac_prog; ac_word=$2
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588$as_echo_n "checking for $ac_word... " >&6; }
ea2e69a4 13589if ${ac_cv_prog_AWK+:} false; then :
d477de41 13590 $as_echo_n "(cached) " >&6
13591else
13592 if test -n "$AWK"; then
13593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13594else
13595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596for as_dir in $PATH
13597do
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
ea2e69a4 13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d477de41 13602 ac_cv_prog_AWK="$ac_prog"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13605 fi
13606done
13607 done
13608IFS=$as_save_IFS
13609
13610fi
13611fi
13612AWK=$ac_cv_prog_AWK
13613if test -n "$AWK"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13615$as_echo "$AWK" >&6; }
13616else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618$as_echo "no" >&6; }
13619fi
13620
13621
13622 test -n "$AWK" && break
13623done
13624
13625
e440a328 13626WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13627
13628
75935341 13629# Check whether --enable-werror was given.
13630if test "${enable_werror+set}" = set; then :
13631 enableval=$enable_werror;
13632fi
13633
13634if test "x$enable_werror" != "xno"; then
13635 WERROR="-Werror"
13636fi
e440a328 13637
13638
13639glibgo_toolexecdir=no
13640glibgo_toolexeclibdir=no
e440a328 13641
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13643$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13644# Check whether --enable-version-specific-runtime-libs was given.
13645if test "${enable_version_specific_runtime_libs+set}" = set; then :
13646 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13647 yes) version_specific_libs=yes ;;
13648 no) version_specific_libs=no ;;
ea2e69a4 13649 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
e440a328 13650 esac
13651else
13652 version_specific_libs=no
13653fi
13654
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13656$as_echo "$version_specific_libs" >&6; }
13657
13658# Version-specific runtime libs processing.
13659if test $version_specific_libs = yes; then
13660 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13661 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13662fi
13663
13664# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13665# Install a library built with a cross compiler in tooldir, not libdir.
61efdf66 13666if test -n "$with_cross_host" &&
13667 test x"$with_cross_host" != x"no"; then
13668 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13669 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13670else
13671 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13672 nover_glibgo_toolexeclibdir='${libdir}'
13673fi
67d3a836 13674multi_os_directory=`$GOC -print-multi-os-directory`
61efdf66 13675case $multi_os_directory in
13676 .) ;; # Avoid trailing /.
13677 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13678esac
13679
e440a328 13680if test x"$glibgo_toolexecdir" = x"no"; then
61efdf66 13681 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13682 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
e440a328 13683fi
13684
13685
13686
13687
13688
13689# See if the user wants to configure without libffi. Some
13690# architectures don't support it. FIXME: We should set a default
13691# based on the host.
13692
13693# Check whether --with-libffi was given.
13694if test "${with_libffi+set}" = set; then :
13695 withval=$with_libffi; :
13696else
13697 with_libffi=${with_libffi_default-yes}
13698fi
13699
13700
13701LIBFFI=
13702LIBFFIINCS=
13703if test "$with_libffi" != no; then
13704
13705$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13706
13707 LIBFFI=../libffi/libffi_convenience.la
13708 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13709fi
13710
13711
63e457ad 13712 if test "$with_liffi" != "no"; then
13713 USE_LIBFFI_TRUE=
13714 USE_LIBFFI_FALSE='#'
13715else
13716 USE_LIBFFI_TRUE='#'
13717 USE_LIBFFI_FALSE=
13718fi
13719
e440a328 13720
7920387d 13721# See if the user wants to configure without libatomic. This is useful if we are
13722# on an architecture for which libgo does not need an atomic support library and
13723# libatomic does not support our C compiler.
13724
13725# Check whether --with-libatomic was given.
13726if test "${with_libatomic+set}" = set; then :
13727 withval=$with_libatomic; :
13728else
13729 with_libatomic=${with_libatomic_default-yes}
13730fi
13731
13732
13733LIBATOMIC=
13734if test "$with_libatomic" != no; then
13735 LIBATOMIC=../libatomic/libatomic_convenience.la
13736fi
13737
13738
4180345a 13739# Used to tell GNU make to include a file without telling automake to
13740# include it.
13741go_include="-include"
13742
13743
91d733e1 13744# All known GOOS values. This is the union of all operating systems
13745# supported by the gofrontend and all operating systems supported by
13746# the gc toolchain.
03118c21 13747ALLGOOS="aix android darwin dragonfly freebsd irix linux netbsd openbsd plan9 rtems solaris windows"
91d733e1 13748
e440a328 13749is_darwin=no
13750is_freebsd=no
524b52f8 13751is_irix=no
e440a328 13752is_linux=no
12adcb64 13753is_netbsd=no
fb08d005 13754is_openbsd=no
0ce10ea1 13755is_dragonfly=no
e440a328 13756is_rtems=no
cea7ac49 13757is_solaris=no
03118c21 13758is_aix=no
7731bf71 13759GOOS=unknown
e440a328 13760case ${host} in
cea7ac49 13761 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13762 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
524b52f8 13763 *-*-irix6*) is_irix=yes; GOOS=irix ;;
cea7ac49 13764 *-*-linux*) is_linux=yes; GOOS=linux ;;
86240434 13765 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
fb08d005 13766 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
0ce10ea1 13767 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
cea7ac49 13768 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13769 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
03118c21 13770 *-*-aix*) is_aix=yes; GOOS=aix ;;
e440a328 13771esac
13772 if test $is_darwin = yes; then
13773 LIBGO_IS_DARWIN_TRUE=
13774 LIBGO_IS_DARWIN_FALSE='#'
13775else
13776 LIBGO_IS_DARWIN_TRUE='#'
13777 LIBGO_IS_DARWIN_FALSE=
13778fi
13779
13780 if test $is_freebsd = yes; then
13781 LIBGO_IS_FREEBSD_TRUE=
13782 LIBGO_IS_FREEBSD_FALSE='#'
13783else
13784 LIBGO_IS_FREEBSD_TRUE='#'
13785 LIBGO_IS_FREEBSD_FALSE=
13786fi
13787
524b52f8 13788 if test $is_irix = yes; then
13789 LIBGO_IS_IRIX_TRUE=
13790 LIBGO_IS_IRIX_FALSE='#'
13791else
13792 LIBGO_IS_IRIX_TRUE='#'
13793 LIBGO_IS_IRIX_FALSE=
13794fi
13795
e440a328 13796 if test $is_linux = yes; then
13797 LIBGO_IS_LINUX_TRUE=
13798 LIBGO_IS_LINUX_FALSE='#'
13799else
13800 LIBGO_IS_LINUX_TRUE='#'
13801 LIBGO_IS_LINUX_FALSE=
13802fi
13803
86240434 13804 if test $is_netbsd = yes; then
13805 LIBGO_IS_NETBSD_TRUE=
13806 LIBGO_IS_NETBSD_FALSE='#'
13807else
13808 LIBGO_IS_NETBSD_TRUE='#'
13809 LIBGO_IS_NETBSD_FALSE=
13810fi
13811
fb08d005 13812 if test $is_openbsd = yes; then
13813 LIBGO_IS_OPENBSD_TRUE=
13814 LIBGO_IS_OPENBSD_FALSE='#'
13815else
13816 LIBGO_IS_OPENBSD_TRUE='#'
13817 LIBGO_IS_OPENBSD_FALSE=
13818fi
13819
e6af9bdb 13820 if test $is_dragonfly = yes; then
0ce10ea1 13821 LIBGO_IS_DRAGONFLY_TRUE=
13822 LIBGO_IS_DRAGONFLY_FALSE='#'
13823else
13824 LIBGO_IS_DRAGONFLY_TRUE='#'
13825 LIBGO_IS_DRAGONFLY_FALSE=
13826fi
13827
e440a328 13828 if test $is_rtems = yes; then
13829 LIBGO_IS_RTEMS_TRUE=
13830 LIBGO_IS_RTEMS_FALSE='#'
13831else
13832 LIBGO_IS_RTEMS_TRUE='#'
13833 LIBGO_IS_RTEMS_FALSE=
13834fi
13835
cea7ac49 13836 if test $is_solaris = yes; then
13837 LIBGO_IS_SOLARIS_TRUE=
13838 LIBGO_IS_SOLARIS_FALSE='#'
13839else
13840 LIBGO_IS_SOLARIS_TRUE='#'
13841 LIBGO_IS_SOLARIS_FALSE=
13842fi
13843
03118c21 13844 if test $is_aix = yes; then
13845 LIBGO_IS_AIX_TRUE=
13846 LIBGO_IS_AIX_FALSE='#'
13847else
13848 LIBGO_IS_AIX_TRUE='#'
13849 LIBGO_IS_AIX_FALSE=
13850fi
13851
be239ed2 13852 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
13853 LIBGO_IS_BSD_TRUE=
13854 LIBGO_IS_BSD_FALSE='#'
13855else
13856 LIBGO_IS_BSD_TRUE='#'
13857 LIBGO_IS_BSD_FALSE=
13858fi
13859
e440a328 13860
7731bf71 13861
91d733e1 13862
6222f4a8 13863USE_DEJAGNU=no
13864case ${host} in
13865 *-*-rtems*) USE_DEJAGNU=yes ;;
9d5dfb12 13866 ${build}) ;;
6222f4a8 13867 *) USE_DEJAGNU=yes ;;
13868esac
13869
13870
91d733e1 13871# All known GOARCH values. This is the union of all architectures
13872# supported by the gofrontend and all architectures supported by the
13873# gc toolchain.
a3cba53d 13874# To add a new architecture:
13875# - add it to this list
13876# - if appropriate, add an entry to ALLGOARCHFAMILY below
13877# - add an entry to the case on ${host} below to set GOARCH
13878# - update goarchList in libgo/go/go/build/syslist.go
13879# - update goarch.sh to report the values for this architecture
13880# - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
13881# - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
13882# - update arch lists in libgo/match.sh
13883# - update arch lists in libgo/testsuite/gotest
13884# - update +build lines in several places
13885# - libgo/go/runtime/lfstack_NNbit.go
13886# - libgo/go/runtime/hashNN.go
13887# - libgo/go/runtime/unalignedN.go
13888# - libgo/go/syscall/endian_XX.go
13889# - possibly others
13890# - possibly update files in libgo/go/internal/syscall/unix
9be94393 13891ALLGOARCH="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"
91d733e1 13892
a3cba53d 13893# All known GOARCH family values.
9be94393 13894ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
91d733e1 13895
7731bf71 13896GOARCH=unknown
e440a328 13897case ${host} in
16dc3e4d 13898 alpha*-*-*)
16dc3e4d 13899 GOARCH=alpha
13900 ;;
275f094b 13901 aarch64-*-*)
275f094b 13902 GOARCH=arm64
13903 ;;
8fb241fa 13904 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
8fb241fa 13905 GOARCH=arm
33d1d391 13906 case ${host} in
13907 arm*b*-*-*)
13908 GOARCH=armbe
33d1d391 13909 ;;
13910 esac
8fb241fa 13911 ;;
7731bf71 13912 i[34567]86-*-* | x86_64-*-*)
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914/* end confdefs.h. */
13915
13916#ifdef __x86_64__
13917#error 64-bit
13918#endif
ea2e69a4 13919
7731bf71 13920_ACEOF
3ae9cf6a 13921if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 13922 GOARCH=386
7731bf71 13923else
0caa25c9 13924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925/* end confdefs.h. */
13926
13927#ifdef __ILP32__
13928#error x32
13929#endif
ea2e69a4 13930
0caa25c9 13931_ACEOF
13932if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 13933 GOARCH=amd64
0caa25c9 13934else
13935 GOARCH=amd64p32
13936fi
13937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731bf71 13938fi
3ae9cf6a 13939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e440a328 13940 ;;
4d29d40e 13941 ia64-*-*)
4d29d40e 13942 GOARCH=ia64
13943 ;;
8fb241fa 13944 m68k*-*-*)
8fb241fa 13945 GOARCH=m68k
13946 ;;
13947 mips*-*-*)
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949/* end confdefs.h. */
13950
fa5e552e 13951#if _MIPS_SIM != _ABIO32
13952#error not o32
13953#endif
ea2e69a4 13954
fa5e552e 13955_ACEOF
13956if ac_fn_c_try_compile "$LINENO"; then :
13957 mips_abi="o32"
13958else
13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13960/* end confdefs.h. */
13961
13962#if _MIPS_SIM != _ABIN32
13963#error not n32
8fb241fa 13964#endif
ea2e69a4 13965
8fb241fa 13966_ACEOF
3ae9cf6a 13967if ac_fn_c_try_compile "$LINENO"; then :
fa5e552e 13968 mips_abi="n32"
8fb241fa 13969else
fa5e552e 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971/* end confdefs.h. */
13972
13973#if _MIPS_SIM != _ABI64
13974#error not n64
13975#endif
ea2e69a4 13976
fa5e552e 13977_ACEOF
13978if ac_fn_c_try_compile "$LINENO"; then :
13979 mips_abi="n64"
fa5e552e 13980else
ea2e69a4 13981 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
fa5e552e 13982mips_abi="n32"
8fb241fa 13983fi
3ae9cf6a 13984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa5e552e 13985fi
13986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987fi
fa5e552e 13988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 case "$mips_abi" in
074bbd7b 13990 "o32") GOARCH=mips ;;
13991 "n32") GOARCH=mips64p32 ;;
13992 "n64") GOARCH=mips64 ;;
fa5e552e 13993 esac
91d733e1 13994 case "${host}" in
074bbd7b 13995 mips*el-*-*)
f3fc9ea4 13996 GOARCH="${GOARCH}le"
91d733e1 13997 ;;
91d733e1 13998 esac
8fb241fa 13999 ;;
9eb30feb 14000 nios2-*-*)
14001 GOARCH=nios2
14002 ;;
8fb241fa 14003 rs6000*-*-* | powerpc*-*-*)
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005/* end confdefs.h. */
14006
14007#ifdef _ARCH_PPC64
14008#error 64-bit
14009#endif
ea2e69a4 14010
8fb241fa 14011_ACEOF
3ae9cf6a 14012if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 14013 GOARCH=ppc
59eb586e 14014else
91d733e1 14015
91d733e1 14016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59eb586e 14017/* end confdefs.h. */
14018
14019#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14020#error 64be
14021#endif
ea2e69a4 14022
59eb586e 14023_ACEOF
14024if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 14025 GOARCH=ppc64le
8fb241fa 14026else
91d733e1 14027 GOARCH=ppc64
8fb241fa 14028fi
59eb586e 14029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030fi
3ae9cf6a 14031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e440a328 14032 ;;
364c6e61 14033 riscv64-*-*)
14034 GOARCH=riscv64
14035 ;;
141eb62b 14036 s390*-*-*)
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038/* end confdefs.h. */
14039
14040#if defined(__s390x__)
14041#error 64-bit
14042#endif
ea2e69a4 14043
141eb62b 14044_ACEOF
14045if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 14046 GOARCH=s390
141eb62b 14047else
91d733e1 14048 GOARCH=s390x
141eb62b 14049fi
14050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
141eb62b 14051 ;;
a3cba53d 14052 sh3eb*-*-* | sh4eb*-*-*)
3a4ffbd2 14053 GOARCH=shbe
3a4ffbd2 14054 ;;
a3cba53d 14055 sh3*-*-* | sh4*-*-*)
3a4ffbd2 14056 GOARCH=sh
3a4ffbd2 14057 ;;
cea7ac49 14058 sparc*-*-*)
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060/* end confdefs.h. */
14061
14062#if defined(__sparcv9) || defined(__arch64__)
14063#error 64-bit
14064#endif
ea2e69a4 14065
cea7ac49 14066_ACEOF
3ae9cf6a 14067if ac_fn_c_try_compile "$LINENO"; then :
91d733e1 14068 GOARCH=sparc
cea7ac49 14069else
91d733e1 14070 GOARCH=sparc64
cea7ac49 14071fi
3ae9cf6a 14072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cea7ac49 14073 ;;
e440a328 14074esac
fa5e552e 14075
8fb241fa 14076
0694cef2 14077
8fb241fa 14078
d477de41 14079GO_LIBCALL_OS_FILE=
14080GO_LIBCALL_OS_ARCH_FILE=
14081GO_SYSCALL_OS_FILE=
14082GO_SYSCALL_OS_ARCH_FILE=
4a7cfa71 14083if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14084 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
8fb241fa 14085fi
4a7cfa71 14086if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14087 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
d477de41 14088fi
4a7cfa71 14089if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14090 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
d477de41 14091fi
4a7cfa71 14092if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14093 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
d477de41 14094fi
14095
14096
14097
8fb241fa 14098
14099
6785caa3 14100OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
69db433d 14101case "$target" in
e0519e05 14102 mips-sgi-irix6.5*)
14103 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14104 # msghdr in <sys/socket.h>.
6785caa3 14105 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
e0519e05 14106 ;;
69db433d 14107 *-*-solaris2.1[01])
14108 # Solaris 10+ needs this so struct msghdr gets the msg_control
ed845d9d 14109 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
69db433d 14110 # above doesn't work with C99.
ed845d9d 14111 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
69db433d 14112 ;;
14113esac
14114
14115
91eedfd7 14116
f7b28005 14117 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
91eedfd7 14118
f7b28005 14119 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14120 # with a different meaning.
14121 case ${target_os} in
14122 solaris2*)
14123 ac_save_CFLAGS="$CFLAGS"
14124 CFLAGS="$CFLAGS -Wa,-nH"
91eedfd7 14125
f7b28005 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14127$as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
91eedfd7 14129/* end confdefs.h. */
14130
14131int
14132main ()
14133{
14134return 0;
14135 ;
14136 return 0;
14137}
14138_ACEOF
f7b28005 14139if ac_fn_c_try_compile "$LINENO"; then :
14140 ac_hwcap_flags=yes
91eedfd7 14141else
f7b28005 14142 ac_hwcap_flags=no
91eedfd7 14143fi
f7b28005 14144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14145 if test "$ac_hwcap_flags" = "yes"; then
14146 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14147 fi
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14149$as_echo "$ac_hwcap_flags" >&6; }
91eedfd7 14150
f7b28005 14151 CFLAGS="$ac_save_CFLAGS"
14152 ;;
14153 esac
91eedfd7 14154
14155
91eedfd7 14156
14157
e440a328 14158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14159$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
ea2e69a4 14160if ${libgo_cv_c_split_stack_supported+:} false; then :
e440a328 14161 $as_echo_n "(cached) " >&6
14162else
14163 CFLAGS_hold=$CFLAGS
14164CFLAGS="$CFLAGS -fsplit-stack"
14165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166/* end confdefs.h. */
14167int i;
14168_ACEOF
14169if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 14170 libgo_cv_c_split_stack_supported=yes
e440a328 14171else
cea7ac49 14172 libgo_cv_c_split_stack_supported=no
e440a328 14173fi
14174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175CFLAGS=$CFLAGS_hold
14176fi
cea7ac49 14177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14178$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
f137de11 14179
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14181$as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
ea2e69a4 14182if ${libgo_cv_c_linker_split_non_split+:} false; then :
f137de11 14183 $as_echo_n "(cached) " >&6
14184else
14185 cat > conftest1.c << EOF
14186extern void f();
14187int main() { f(); return 0; }
14188EOF
14189cat > conftest2.c << EOF
14190void f() {}
14191EOF
bea517c4 14192$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14193$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14194if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
f137de11 14195 libgo_cv_c_linker_split_non_split=yes
14196else
14197 libgo_cv_c_linker_split_non_split=no
14198fi
14199rm -f conftest1.* conftest2.* conftest
14200fi
14201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14202$as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14203
14204if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
e440a328 14205 SPLIT_STACK=-fsplit-stack
14206
14207$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14208
14209else
14210 SPLIT_STACK=
14211fi
14212
f137de11 14213 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
e440a328 14214 USING_SPLIT_STACK_TRUE=
14215 USING_SPLIT_STACK_FALSE='#'
14216else
14217 USING_SPLIT_STACK_TRUE='#'
14218 USING_SPLIT_STACK_FALSE=
14219fi
14220
14221
242418a3 14222if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14223 GO_SPLIT_STACK=-fno-split-stack
14224else
14225 GO_SPLIT_STACK=
14226fi
14227
14228
e440a328 14229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14230$as_echo_n "checking whether linker supports split stack... " >&6; }
ea2e69a4 14231if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
e440a328 14232 $as_echo_n "(cached) " >&6
14233else
cea7ac49 14234 libgo_cv_c_linker_supports_split_stack=no
7dc947bd 14235if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
cea7ac49 14236 libgo_cv_c_linker_supports_split_stack=yes
e440a328 14237fi
14238fi
cea7ac49 14239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14240$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14241if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
e440a328 14242
14243$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14244
14245fi
14246
b5f8bff0 14247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14248$as_echo_n "checking whether compiler is llgo... " >&6; }
ea2e69a4 14249if ${libgo_cv_c_goc_is_llgo+:} false; then :
b5f8bff0 14250 $as_echo_n "(cached) " >&6
14251else
14252 libgo_cv_c_goc_is_llgo=no
14253if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14254 libgo_cv_c_goc_is_llgo=yes
14255fi
14256fi
14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14258$as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14259 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14260 GOC_IS_LLGO_TRUE=
14261 GOC_IS_LLGO_FALSE='#'
14262else
14263 GOC_IS_LLGO_TRUE='#'
14264 GOC_IS_LLGO_FALSE=
14265fi
14266
14267
7d17fab3 14268MATH_LIBS=
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14270$as_echo_n "checking for sqrt in -lm... " >&6; }
ea2e69a4 14271if ${ac_cv_lib_m_sqrt+:} false; then :
7d17fab3 14272 $as_echo_n "(cached) " >&6
14273else
14274 ac_check_lib_save_LIBS=$LIBS
14275LIBS="-lm $LIBS"
14276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277/* end confdefs.h. */
14278
14279/* Override any GCC internal prototype to avoid an error.
14280 Use char because int might match the return type of a GCC
14281 builtin and then its argument prototype would still apply. */
14282#ifdef __cplusplus
14283extern "C"
14284#endif
14285char sqrt ();
14286int
14287main ()
14288{
14289return sqrt ();
14290 ;
14291 return 0;
14292}
14293_ACEOF
14294if ac_fn_c_try_link "$LINENO"; then :
14295 ac_cv_lib_m_sqrt=yes
14296else
14297 ac_cv_lib_m_sqrt=no
14298fi
14299rm -f core conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
14301LIBS=$ac_check_lib_save_LIBS
14302fi
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14304$as_echo "$ac_cv_lib_m_sqrt" >&6; }
ea2e69a4 14305if test "x$ac_cv_lib_m_sqrt" = xyes; then :
7d17fab3 14306 MATH_LIBS=-lm
14307fi
14308
14309
14310
cea7ac49 14311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14312$as_echo_n "checking for socket libraries... " >&6; }
ea2e69a4 14313if ${libgo_cv_lib_sockets+:} false; then :
cea7ac49 14314 $as_echo_n "(cached) " >&6
14315else
14316 libgo_cv_lib_sockets=
14317 libgo_check_both=no
14318 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
ea2e69a4 14319if test "x$ac_cv_func_connect" = xyes; then :
cea7ac49 14320 libgo_check_socket=no
14321else
14322 libgo_check_socket=yes
14323fi
14324
14325 if test "$libgo_check_socket" = "yes"; then
14326 unset ac_cv_func_connect
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14328$as_echo_n "checking for main in -lsocket... " >&6; }
ea2e69a4 14329if ${ac_cv_lib_socket_main+:} false; then :
cea7ac49 14330 $as_echo_n "(cached) " >&6
14331else
14332 ac_check_lib_save_LIBS=$LIBS
14333LIBS="-lsocket $LIBS"
14334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335/* end confdefs.h. */
14336
14337
14338int
14339main ()
14340{
14341return main ();
14342 ;
14343 return 0;
14344}
14345_ACEOF
14346if ac_fn_c_try_link "$LINENO"; then :
14347 ac_cv_lib_socket_main=yes
14348else
14349 ac_cv_lib_socket_main=no
14350fi
14351rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14353LIBS=$ac_check_lib_save_LIBS
14354fi
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14356$as_echo "$ac_cv_lib_socket_main" >&6; }
ea2e69a4 14357if test "x$ac_cv_lib_socket_main" = xyes; then :
cea7ac49 14358 libgo_cv_lib_sockets="-lsocket"
14359else
14360 libgo_check_both=yes
14361fi
14362
14363 fi
14364 if test "$libgo_check_both" = "yes"; then
14365 libgo_old_libs=$LIBS
14366 LIBS="$LIBS -lsocket -lnsl"
14367 unset ac_cv_func_accept
14368 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
ea2e69a4 14369if test "x$ac_cv_func_accept" = xyes; then :
cea7ac49 14370 libgo_check_nsl=no
14371 libgo_cv_lib_sockets="-lsocket -lnsl"
14372fi
14373
14374 unset ac_cv_func_accept
14375 LIBS=$libgo_old_libs
14376 fi
14377 unset ac_cv_func_gethostbyname
14378 libgo_old_libs="$LIBS"
14379 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
ea2e69a4 14380if test "x$ac_cv_func_gethostbyname" = xyes; then :
cea7ac49 14381
14382else
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14384$as_echo_n "checking for main in -lnsl... " >&6; }
ea2e69a4 14385if ${ac_cv_lib_nsl_main+:} false; then :
cea7ac49 14386 $as_echo_n "(cached) " >&6
14387else
14388 ac_check_lib_save_LIBS=$LIBS
14389LIBS="-lnsl $LIBS"
14390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391/* end confdefs.h. */
14392
14393
14394int
14395main ()
14396{
14397return main ();
14398 ;
14399 return 0;
14400}
14401_ACEOF
14402if ac_fn_c_try_link "$LINENO"; then :
14403 ac_cv_lib_nsl_main=yes
14404else
14405 ac_cv_lib_nsl_main=no
14406fi
14407rm -f core conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14409LIBS=$ac_check_lib_save_LIBS
14410fi
14411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14412$as_echo "$ac_cv_lib_nsl_main" >&6; }
ea2e69a4 14413if test "x$ac_cv_lib_nsl_main" = xyes; then :
cea7ac49 14414 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14415fi
14416
14417fi
14418
14419 unset ac_cv_func_gethostbyname
5c55b1cf 14420 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
ea2e69a4 14421if test "x$ac_cv_func_sendfile" = xyes; then :
5c55b1cf 14422
14423else
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14425$as_echo_n "checking for main in -lsendfile... " >&6; }
ea2e69a4 14426if ${ac_cv_lib_sendfile_main+:} false; then :
5c55b1cf 14427 $as_echo_n "(cached) " >&6
14428else
14429 ac_check_lib_save_LIBS=$LIBS
14430LIBS="-lsendfile $LIBS"
14431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432/* end confdefs.h. */
14433
14434
14435int
14436main ()
14437{
14438return main ();
14439 ;
14440 return 0;
14441}
14442_ACEOF
14443if ac_fn_c_try_link "$LINENO"; then :
14444 ac_cv_lib_sendfile_main=yes
14445else
14446 ac_cv_lib_sendfile_main=no
14447fi
14448rm -f core conftest.err conftest.$ac_objext \
14449 conftest$ac_exeext conftest.$ac_ext
14450LIBS=$ac_check_lib_save_LIBS
14451fi
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14453$as_echo "$ac_cv_lib_sendfile_main" >&6; }
ea2e69a4 14454if test "x$ac_cv_lib_sendfile_main" = xyes; then :
5c55b1cf 14455 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14456fi
14457
14458fi
14459
cea7ac49 14460 LIBS=$libgo_old_libs
14461
14462fi
14463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14464$as_echo "$libgo_cv_lib_sockets" >&6; }
14465NET_LIBS="$libgo_cv_lib_sockets"
14466
14467
f555a9df 14468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14469$as_echo_n "checking whether -pthread is supported... " >&6; }
ea2e69a4 14470if ${libgo_cv_lib_pthread+:} false; then :
f555a9df 14471 $as_echo_n "(cached) " >&6
14472else
14473 CFLAGS_hold=$CFLAGS
ac58a228 14474CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
f555a9df 14475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476/* end confdefs.h. */
14477int i;
14478_ACEOF
14479if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 14480 libgo_cv_lib_pthread=yes
f555a9df 14481else
cea7ac49 14482 libgo_cv_lib_pthread=no
f555a9df 14483fi
14484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485CFLAGS=$CFLAGS_hold
14486fi
cea7ac49 14487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14488$as_echo "$libgo_cv_lib_pthread" >&6; }
f555a9df 14489PTHREAD_CFLAGS=
cea7ac49 14490if test "$libgo_cv_lib_pthread" = yes; then
ac58a228 14491 # RISC-V apparently adds -latomic when using -pthread.
14492 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
f555a9df 14493fi
14494
14495
14496PTHREAD_LIBS=
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14498$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
ea2e69a4 14499if ${ac_cv_lib_pthread_pthread_create+:} false; then :
f555a9df 14500 $as_echo_n "(cached) " >&6
14501else
14502 ac_check_lib_save_LIBS=$LIBS
14503LIBS="-lpthread $LIBS"
14504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505/* end confdefs.h. */
14506
14507/* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14510#ifdef __cplusplus
14511extern "C"
14512#endif
14513char pthread_create ();
14514int
14515main ()
14516{
14517return pthread_create ();
14518 ;
14519 return 0;
14520}
14521_ACEOF
14522if ac_fn_c_try_link "$LINENO"; then :
14523 ac_cv_lib_pthread_pthread_create=yes
14524else
14525 ac_cv_lib_pthread_pthread_create=no
14526fi
14527rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14529LIBS=$ac_check_lib_save_LIBS
14530fi
14531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14532$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
ea2e69a4 14533if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
f555a9df 14534 PTHREAD_LIBS=-lpthread
14535fi
14536
14537
14538
554126c9 14539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14540$as_echo_n "checking for library containing sched_yield... " >&6; }
ea2e69a4 14541if ${ac_cv_search_sched_yield+:} false; then :
554126c9 14542 $as_echo_n "(cached) " >&6
14543else
14544 ac_func_search_save_LIBS=$LIBS
14545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546/* end confdefs.h. */
14547
14548/* Override any GCC internal prototype to avoid an error.
14549 Use char because int might match the return type of a GCC
14550 builtin and then its argument prototype would still apply. */
14551#ifdef __cplusplus
14552extern "C"
14553#endif
14554char sched_yield ();
14555int
14556main ()
14557{
14558return sched_yield ();
14559 ;
14560 return 0;
14561}
14562_ACEOF
14563for ac_lib in '' rt; do
14564 if test -z "$ac_lib"; then
14565 ac_res="none required"
14566 else
14567 ac_res=-l$ac_lib
14568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14569 fi
14570 if ac_fn_c_try_link "$LINENO"; then :
14571 ac_cv_search_sched_yield=$ac_res
14572fi
14573rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext
ea2e69a4 14575 if ${ac_cv_search_sched_yield+:} false; then :
554126c9 14576 break
14577fi
14578done
ea2e69a4 14579if ${ac_cv_search_sched_yield+:} false; then :
554126c9 14580
14581else
14582 ac_cv_search_sched_yield=no
14583fi
14584rm conftest.$ac_ext
14585LIBS=$ac_func_search_save_LIBS
14586fi
14587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14588$as_echo "$ac_cv_search_sched_yield" >&6; }
14589ac_res=$ac_cv_search_sched_yield
14590if test "$ac_res" != no; then :
14591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14592
697aef8c 14593fi
14594
14595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14596$as_echo_n "checking for library containing nanosleep... " >&6; }
ea2e69a4 14597if ${ac_cv_search_nanosleep+:} false; then :
697aef8c 14598 $as_echo_n "(cached) " >&6
14599else
14600 ac_func_search_save_LIBS=$LIBS
14601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602/* end confdefs.h. */
14603
14604/* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14607#ifdef __cplusplus
14608extern "C"
14609#endif
14610char nanosleep ();
14611int
14612main ()
14613{
14614return nanosleep ();
14615 ;
14616 return 0;
14617}
14618_ACEOF
14619for ac_lib in '' rt; do
14620 if test -z "$ac_lib"; then
14621 ac_res="none required"
14622 else
14623 ac_res=-l$ac_lib
14624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14625 fi
14626 if ac_fn_c_try_link "$LINENO"; then :
14627 ac_cv_search_nanosleep=$ac_res
14628fi
14629rm -f core conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext
ea2e69a4 14631 if ${ac_cv_search_nanosleep+:} false; then :
697aef8c 14632 break
14633fi
14634done
ea2e69a4 14635if ${ac_cv_search_nanosleep+:} false; then :
697aef8c 14636
14637else
14638 ac_cv_search_nanosleep=no
14639fi
14640rm conftest.$ac_ext
14641LIBS=$ac_func_search_save_LIBS
14642fi
14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14644$as_echo "$ac_cv_search_nanosleep" >&6; }
14645ac_res=$ac_cv_search_nanosleep
14646if test "$ac_res" != no; then :
14647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14648
2b19d687 14649fi
14650
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14652$as_echo_n "checking for library containing clock_gettime... " >&6; }
ea2e69a4 14653if ${ac_cv_search_clock_gettime+:} false; then :
2b19d687 14654 $as_echo_n "(cached) " >&6
14655else
14656 ac_func_search_save_LIBS=$LIBS
14657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658/* end confdefs.h. */
14659
14660/* Override any GCC internal prototype to avoid an error.
14661 Use char because int might match the return type of a GCC
14662 builtin and then its argument prototype would still apply. */
14663#ifdef __cplusplus
14664extern "C"
14665#endif
14666char clock_gettime ();
14667int
14668main ()
14669{
14670return clock_gettime ();
14671 ;
14672 return 0;
14673}
14674_ACEOF
14675for ac_lib in '' rt; do
14676 if test -z "$ac_lib"; then
14677 ac_res="none required"
14678 else
14679 ac_res=-l$ac_lib
14680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14681 fi
14682 if ac_fn_c_try_link "$LINENO"; then :
14683 ac_cv_search_clock_gettime=$ac_res
14684fi
14685rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext
ea2e69a4 14687 if ${ac_cv_search_clock_gettime+:} false; then :
2b19d687 14688 break
14689fi
14690done
ea2e69a4 14691if ${ac_cv_search_clock_gettime+:} false; then :
2b19d687 14692
14693else
14694 ac_cv_search_clock_gettime=no
14695fi
14696rm conftest.$ac_ext
14697LIBS=$ac_func_search_save_LIBS
14698fi
14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14700$as_echo "$ac_cv_search_clock_gettime" >&6; }
14701ac_res=$ac_cv_search_clock_gettime
14702if test "$ac_res" != no; then :
14703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14704
554126c9 14705fi
14706
14707
e440a328 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14709$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
ea2e69a4 14710if ${ac_cv_c_bigendian+:} false; then :
e440a328 14711 $as_echo_n "(cached) " >&6
14712else
14713 ac_cv_c_bigendian=unknown
14714 # See if we're dealing with a universal compiler.
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716/* end confdefs.h. */
14717#ifndef __APPLE_CC__
14718 not a universal capable compiler
14719 #endif
14720 typedef int dummy;
14721
14722_ACEOF
14723if ac_fn_c_try_compile "$LINENO"; then :
14724
14725 # Check for potential -arch flags. It is not universal unless
14726 # there are at least two -arch flags with different values.
14727 ac_arch=
14728 ac_prev=
14729 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14730 if test -n "$ac_prev"; then
14731 case $ac_word in
14732 i?86 | x86_64 | ppc | ppc64)
14733 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14734 ac_arch=$ac_word
14735 else
14736 ac_cv_c_bigendian=universal
14737 break
14738 fi
14739 ;;
14740 esac
14741 ac_prev=
14742 elif test "x$ac_word" = "x-arch"; then
14743 ac_prev=arch
14744 fi
14745 done
14746fi
14747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14748 if test $ac_cv_c_bigendian = unknown; then
14749 # See if sys/param.h defines the BYTE_ORDER macro.
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751/* end confdefs.h. */
14752#include <sys/types.h>
14753 #include <sys/param.h>
14754
14755int
14756main ()
14757{
14758#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14759 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14760 && LITTLE_ENDIAN)
14761 bogus endian macros
14762 #endif
14763
14764 ;
14765 return 0;
14766}
14767_ACEOF
14768if ac_fn_c_try_compile "$LINENO"; then :
14769 # It does; now see whether it defined to BIG_ENDIAN or not.
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771/* end confdefs.h. */
14772#include <sys/types.h>
14773 #include <sys/param.h>
14774
14775int
14776main ()
14777{
14778#if BYTE_ORDER != BIG_ENDIAN
14779 not big endian
14780 #endif
14781
14782 ;
14783 return 0;
14784}
14785_ACEOF
14786if ac_fn_c_try_compile "$LINENO"; then :
14787 ac_cv_c_bigendian=yes
14788else
14789 ac_cv_c_bigendian=no
14790fi
14791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792fi
14793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14794 fi
14795 if test $ac_cv_c_bigendian = unknown; then
14796 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798/* end confdefs.h. */
14799#include <limits.h>
14800
14801int
14802main ()
14803{
14804#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14805 bogus endian macros
14806 #endif
14807
14808 ;
14809 return 0;
14810}
14811_ACEOF
14812if ac_fn_c_try_compile "$LINENO"; then :
14813 # It does; now see whether it defined to _BIG_ENDIAN or not.
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815/* end confdefs.h. */
14816#include <limits.h>
14817
14818int
14819main ()
14820{
14821#ifndef _BIG_ENDIAN
14822 not big endian
14823 #endif
14824
14825 ;
14826 return 0;
14827}
14828_ACEOF
14829if ac_fn_c_try_compile "$LINENO"; then :
14830 ac_cv_c_bigendian=yes
14831else
14832 ac_cv_c_bigendian=no
14833fi
14834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14835fi
14836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837 fi
14838 if test $ac_cv_c_bigendian = unknown; then
14839 # Compile a test program.
14840 if test "$cross_compiling" = yes; then :
14841 # Try to guess by grepping values from an object file.
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843/* end confdefs.h. */
14844short int ascii_mm[] =
14845 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14846 short int ascii_ii[] =
14847 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14848 int use_ascii (int i) {
14849 return ascii_mm[i] + ascii_ii[i];
14850 }
14851 short int ebcdic_ii[] =
14852 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14853 short int ebcdic_mm[] =
14854 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14855 int use_ebcdic (int i) {
14856 return ebcdic_mm[i] + ebcdic_ii[i];
14857 }
14858 extern int foo;
14859
14860int
14861main ()
14862{
14863return use_ascii (foo) == use_ebcdic (foo);
14864 ;
14865 return 0;
14866}
14867_ACEOF
14868if ac_fn_c_try_compile "$LINENO"; then :
14869 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14870 ac_cv_c_bigendian=yes
14871 fi
14872 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14873 if test "$ac_cv_c_bigendian" = unknown; then
14874 ac_cv_c_bigendian=no
14875 else
14876 # finding both strings is unlikely to happen, but who knows?
14877 ac_cv_c_bigendian=unknown
14878 fi
14879 fi
14880fi
14881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14882else
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h. */
14885$ac_includes_default
14886int
14887main ()
14888{
14889
14890 /* Are we little or big endian? From Harbison&Steele. */
14891 union
14892 {
14893 long int l;
14894 char c[sizeof (long int)];
14895 } u;
14896 u.l = 1;
14897 return u.c[sizeof (long int) - 1] == 1;
14898
14899 ;
14900 return 0;
14901}
14902_ACEOF
14903if ac_fn_c_try_run "$LINENO"; then :
14904 ac_cv_c_bigendian=no
14905else
14906 ac_cv_c_bigendian=yes
14907fi
14908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14909 conftest.$ac_objext conftest.beam conftest.$ac_ext
14910fi
14911
14912 fi
14913fi
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14915$as_echo "$ac_cv_c_bigendian" >&6; }
14916 case $ac_cv_c_bigendian in #(
14917 yes)
14918 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14919;; #(
14920 no)
14921 ;; #(
14922 universal)
14923
14924$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14925
14926 ;; #(
14927 *)
ea2e69a4 14928 as_fn_error $? "unknown endianness
e440a328 14929 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14930 esac
14931
14932
4a273582 14933
14934
14935# Check whether --with-system-libunwind was given.
14936if test "${with_system_libunwind+set}" = set; then :
14937 withval=$with_system_libunwind;
14938fi
14939
14940 # If system-libunwind was not specifically set, pick a default setting.
14941 if test x$with_system_libunwind = x; then
14942 case ${target} in
14943 ia64-*-hpux*) with_system_libunwind=yes ;;
14944 *) with_system_libunwind=no ;;
14945 esac
14946 fi
14947 # Based on system-libunwind and target, do we have ipinfo?
14948 if test x$with_system_libunwind = xyes; then
14949 case ${target} in
14950 ia64-*-*) have_unwind_getipinfo=no ;;
14951 *) have_unwind_getipinfo=yes ;;
14952 esac
14953 else
14954 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14955
14956 case ${target} in
14957 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14958 *) have_unwind_getipinfo=yes ;;
14959 esac
14960
14961 fi
14962
14963 if test x$have_unwind_getipinfo = xyes; then
14964
14965$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14966
14967 fi
14968
e440a328 14969
04206864 14970for 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
e440a328 14971do :
14972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14973ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
ea2e69a4 14974if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
e440a328 14975 cat >>confdefs.h <<_ACEOF
14976#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14977_ACEOF
14978
14979fi
14980
14981done
14982
49b4e44b 14983
04206864 14984for ac_header in netinet/icmp6.h
14985do :
14986 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
14987
14988"
ea2e69a4 14989if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
04206864 14990 cat >>confdefs.h <<_ACEOF
14991#define HAVE_NETINET_ICMP6_H 1
14992_ACEOF
14993
14994fi
14995
14996done
14997
14998
87e44028 14999for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
49b4e44b 15000do :
15001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15002ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15003#include <sys/socket.h>
15004#endif
15005
15006"
ea2e69a4 15007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
49b4e44b 15008 cat >>confdefs.h <<_ACEOF
15009#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15010_ACEOF
15011
15012fi
15013
15014done
15015
15016
e440a328 15017 if test "$ac_cv_header_sys_mman_h" = yes; then
15018 HAVE_SYS_MMAN_H_TRUE=
15019 HAVE_SYS_MMAN_H_FALSE='#'
15020else
15021 HAVE_SYS_MMAN_H_TRUE='#'
15022 HAVE_SYS_MMAN_H_FALSE=
15023fi
15024
ccd3f476 15025
00554582 15026for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
e440a328 15027do :
15028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15029ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
ea2e69a4 15030if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e440a328 15031 cat >>confdefs.h <<_ACEOF
15032#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15033_ACEOF
15034
15035fi
15036done
15037
ccd3f476 15038 if test "$ac_cv_func_strerror_r" = yes; then
15039 HAVE_STRERROR_R_TRUE=
15040 HAVE_STRERROR_R_FALSE='#'
15041else
15042 HAVE_STRERROR_R_TRUE='#'
15043 HAVE_STRERROR_R_FALSE=
15044fi
15045
37d6b690 15046 if test "$ac_cv_func_wait4" = yes; then
15047 HAVE_WAIT4_TRUE=
15048 HAVE_WAIT4_FALSE='#'
15049else
15050 HAVE_WAIT4_TRUE='#'
15051 HAVE_WAIT4_FALSE=
15052fi
15053
e440a328 15054
03118c21 15055for 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
8202cb3c 15056do :
15057 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15058ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
ea2e69a4 15059if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8202cb3c 15060 cat >>confdefs.h <<_ACEOF
15061#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15062_ACEOF
15063
15064fi
15065done
15066
0ec80c0c 15067ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
ea2e69a4 15068if test "x$ac_cv_type_off_t" = xyes; then :
0ec80c0c 15069
15070else
15071
15072cat >>confdefs.h <<_ACEOF
15073#define off_t long int
15074_ACEOF
15075
15076fi
15077
8202cb3c 15078ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
ea2e69a4 15079if test "x$ac_cv_type_loff_t" = xyes; then :
8202cb3c 15080
15081cat >>confdefs.h <<_ACEOF
15082#define HAVE_LOFF_T 1
15083_ACEOF
15084
15085
15086fi
15087
15088
6217b5f4 15089LIBS_hold="$LIBS"
15090LIBS="$LIBS -lm"
15091for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15092do :
15093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15094ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
ea2e69a4 15095if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6217b5f4 15096 cat >>confdefs.h <<_ACEOF
15097#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15098_ACEOF
15099
15100fi
15101done
15102
15103LIBS="$LIBS_hold"
15104
a101a385 15105CFLAGS_hold="$CFLAGS"
15106CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15107LIBS_hold="$LIBS"
15108LIBS="$LIBS $PTHREAD_LIBS"
15109for ac_func in sem_timedwait
15110do :
15111 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
ea2e69a4 15112if test "x$ac_cv_func_sem_timedwait" = xyes; then :
a101a385 15113 cat >>confdefs.h <<_ACEOF
15114#define HAVE_SEM_TIMEDWAIT 1
15115_ACEOF
15116
15117fi
15118done
15119
15120CFLAGS="$CFLAGS_hold"
15121LIBS="$LIBS_hold"
15122
5b49fca6 15123LIBS_hold="$LIBS"
15124LIBS="$LIBS $MATH_LIBS"
15125for ac_func in matherr
15126do :
15127 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
ea2e69a4 15128if test "x$ac_cv_func_matherr" = xyes; then :
5b49fca6 15129 cat >>confdefs.h <<_ACEOF
15130#define HAVE_MATHERR 1
15131_ACEOF
15132
15133fi
15134done
15135
15136LIBS="$LIBS_hold"
15137
12140f2f 15138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
15139$as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
ea2e69a4 15140if ${libgo_cv_func___sync_bool_compare_and_swap_4+:} false; then :
12140f2f 15141 $as_echo_n "(cached) " >&6
15142else
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144/* end confdefs.h. */
15145
15146typedef unsigned int uint32 __attribute__ ((mode (SI)));
15147uint32 i;
15148int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15149
15150_ACEOF
15151if ac_fn_c_try_link "$LINENO"; then :
15152 libgo_cv_func___sync_bool_compare_and_swap_4=yes
15153else
15154 libgo_cv_func___sync_bool_compare_and_swap_4=no
15155fi
15156rm -f core conftest.err conftest.$ac_objext \
15157 conftest$ac_exeext conftest.$ac_ext
15158fi
15159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
15160$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
15161if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
63bcac1c 15162
15163$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
12140f2f 15164
15165fi
15166
97a9e84d 15167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
15168$as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
ea2e69a4 15169if ${libgo_cv_func___sync_bool_compare_and_swap_8+:} false; then :
97a9e84d 15170 $as_echo_n "(cached) " >&6
15171else
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173/* end confdefs.h. */
15174
15175typedef unsigned int uint64 __attribute__ ((mode (DI)));
15176uint64 i;
15177int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
15178
15179_ACEOF
15180if ac_fn_c_try_link "$LINENO"; then :
15181 libgo_cv_func___sync_bool_compare_and_swap_8=yes
15182else
15183 libgo_cv_func___sync_bool_compare_and_swap_8=no
15184fi
15185rm -f core conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
15187fi
15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
15189$as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
15190if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
15191
15192$as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
15193
15194fi
15195
cb6f50ce 15196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
15197$as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
ea2e69a4 15198if ${libgo_cv_func___sync_fetch_and_add_4+:} false; then :
cb6f50ce 15199 $as_echo_n "(cached) " >&6
15200else
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202/* end confdefs.h. */
15203
15204typedef unsigned int uint32 __attribute__ ((mode (SI)));
15205uint32 i;
15206int main() { return __sync_fetch_and_add (&i, 1); }
15207
15208_ACEOF
15209if ac_fn_c_try_link "$LINENO"; then :
15210 libgo_cv_func___sync_fetch_and_add_4=yes
15211else
15212 libgo_cv_func___sync_fetch_and_add_4=no
15213fi
15214rm -f core conftest.err conftest.$ac_objext \
15215 conftest$ac_exeext conftest.$ac_ext
15216fi
15217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
15218$as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
15219if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
15220
15221$as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
15222
15223fi
15224
97a9e84d 15225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
15226$as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
ea2e69a4 15227if ${libgo_cv_func___sync_add_and_fetch_8+:} false; then :
97a9e84d 15228 $as_echo_n "(cached) " >&6
15229else
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231/* end confdefs.h. */
15232
15233typedef unsigned int uint64 __attribute__ ((mode (DI)));
15234uint64 i;
15235int main() { return __sync_add_and_fetch (&i, 1); }
15236
15237_ACEOF
15238if ac_fn_c_try_link "$LINENO"; then :
15239 libgo_cv_func___sync_add_and_fetch_8=yes
15240else
15241 libgo_cv_func___sync_add_and_fetch_8=no
15242fi
15243rm -f core conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15245fi
15246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
15247$as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
15248if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
15249
15250$as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
15251
15252fi
15253
e440a328 15254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15255$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
ea2e69a4 15256if ${libgo_cv_c_stringops+:} false; then :
e440a328 15257 $as_echo_n "(cached) " >&6
15258else
15259 CFLAGS_hold=$CFLAGS
15260CFLAGS="$CFLAGS -minline-all-stringops"
15261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h. */
15263int i;
15264_ACEOF
15265if ac_fn_c_try_compile "$LINENO"; then :
cea7ac49 15266 libgo_cv_c_stringops=yes
e440a328 15267else
cea7ac49 15268 libgo_cv_c_stringops=no
e440a328 15269fi
15270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271CFLAGS=$CFLAGS_hold
15272fi
cea7ac49 15273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15274$as_echo "$libgo_cv_c_stringops" >&6; }
e440a328 15275STRINGOPS_FLAG=
cea7ac49 15276if test "$libgo_cv_c_stringops" = yes; then
e440a328 15277 STRINGOPS_FLAG=-minline-all-stringops
15278fi
15279
15280
68e1881d 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15282$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
ea2e69a4 15283if ${libgo_cv_c_fancymath+:} false; then :
68e1881d 15284 $as_echo_n "(cached) " >&6
15285else
15286 CFLAGS_hold=$CFLAGS
15287CFLAGS="$CFLAGS -mfancy-math-387"
15288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289/* end confdefs.h. */
15290int i;
15291_ACEOF
15292if ac_fn_c_try_compile "$LINENO"; then :
15293 libgo_cv_c_fancymath=yes
15294else
15295 libgo_cv_c_fancymath=no
15296fi
15297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15298CFLAGS=$CFLAGS_hold
15299fi
15300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15301$as_echo "$libgo_cv_c_fancymath" >&6; }
15302MATH_FLAG=
15303if test "$libgo_cv_c_fancymath" = yes; then
ff60d2b1 15304 MATH_FLAG="-mfancy-math-387"
68e1881d 15305fi
ff60d2b1 15306MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
68e1881d 15307
15308
e440a328 15309CFLAGS_hold=$CFLAGS
15310CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15311ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
ea2e69a4 15312if test "x$ac_cv_type_off64_t" = xyes; then :
e440a328 15313
15314cat >>confdefs.h <<_ACEOF
15315#define HAVE_OFF64_T 1
15316_ACEOF
15317
15318
15319fi
15320
15321CFLAGS=$CFLAGS_hold
15322
d772e63b 15323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15324$as_echo_n "checking epoll_event size... " >&6; }
ea2e69a4 15325if ${libgo_cv_c_epoll_event_size+:} false; then :
d772e63b 15326 $as_echo_n "(cached) " >&6
15327else
15328 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15329
15330else
15331 libgo_cv_c_epoll_event_size=0
15332fi
15333
15334fi
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15336$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15337SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15338
15339
15340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15341$as_echo_n "checking epoll_event data.fd offset... " >&6; }
ea2e69a4 15342if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
d772e63b 15343 $as_echo_n "(cached) " >&6
15344else
15345 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15346#include <sys/epoll.h>"; then :
15347
15348else
15349 libgo_cv_c_epoll_event_fd_offset=0
15350fi
15351
15352fi
15353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15354$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15355STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15356
15357
8dcdfb38 15358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359/* end confdefs.h. */
15360#include <sys/stat.h>
15361
15362_ACEOF
15363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15364 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15365 have_stat_timespec=yes
15366else
15367 have_stat_timespec=no
15368fi
15369rm -f conftest*
15370
15371 if test $have_stat_timespec = yes; then
15372 HAVE_STAT_TIMESPEC_TRUE=
15373 HAVE_STAT_TIMESPEC_FALSE='#'
15374else
15375 HAVE_STAT_TIMESPEC_TRUE='#'
15376 HAVE_STAT_TIMESPEC_FALSE=
15377fi
15378
15379
5b49fca6 15380ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15381"
ea2e69a4 15382if test "x$ac_cv_type_struct_exception" = xyes; then :
5b49fca6 15383 libgo_has_struct_exception=yes
15384else
15385 libgo_has_struct_exception=no
15386fi
15387
15388if test "$libgo_has_struct_exception" = "yes"; then
15389
15390$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15391
15392fi
15393
96912098 15394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15395$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
ea2e69a4 15396if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
96912098 15397 $as_echo_n "(cached) " >&6
15398else
84a24710 15399 CFLAGS_hold="$CFLAGS"
15400CFLAGS="$PTHREAD_CFLAGS"
15401LIBS_hold="$LIBS"
96912098 15402LIBS="$LIBS $PTHREAD_LIBS"
84a24710 15403# The cast to long int works around a bug in the HP C Compiler
15404# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15405# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15406# This bug is HP SR number 8606223364.
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15408$as_echo_n "checking size of void *... " >&6; }
ea2e69a4 15409if ${ac_cv_sizeof_void_p+:} false; then :
84a24710 15410 $as_echo_n "(cached) " >&6
15411else
15412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15413
15414else
15415 if test "$ac_cv_type_void_p" = yes; then
15416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ea2e69a4 15418as_fn_error 77 "cannot compute sizeof (void *)
15419See \`config.log' for more details" "$LINENO" 5; }
84a24710 15420 else
15421 ac_cv_sizeof_void_p=0
15422 fi
15423fi
15424
15425fi
15426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15427$as_echo "$ac_cv_sizeof_void_p" >&6; }
15428
15429
15430
15431cat >>confdefs.h <<_ACEOF
15432#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15433_ACEOF
15434
15435
15436as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
96912098 15437if test "$cross_compiling" = yes; then :
84a24710 15438 case "$target:$ptr_type_size" in
15439 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15440 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15441 *)
15442 libgo_cv_lib_setcontext_clobbers_tls=no ;;
96912098 15443 esac
15444
15445else
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447/* end confdefs.h. */
15448
15449#include <pthread.h>
15450#include <stdlib.h>
15451#include <ucontext.h>
15452#include <unistd.h>
15453
15454__thread int tls;
15455
15456static char stack[10 * 1024 * 1024];
15457static ucontext_t c;
15458
15459/* Called via makecontext/setcontext. */
15460
15461static void
15462cfn (void)
15463{
15464 exit (tls);
15465}
15466
15467/* Called via pthread_create. */
15468
15469static void *
15470tfn (void *dummy)
15471{
15472 /* The thread should still see this value after calling
15473 setcontext. */
15474 tls = 0;
15475
15476 setcontext (&c);
15477
15478 /* The call to setcontext should not return. */
15479 abort ();
15480}
15481
15482int
15483main ()
15484{
15485 pthread_t tid;
15486
15487 /* The thread should not see this value. */
15488 tls = 1;
15489
15490 if (getcontext (&c) < 0)
15491 abort ();
15492
15493 c.uc_stack.ss_sp = stack;
9f89fc14 15494#ifdef MAKECONTEXT_STACK_TOP
15495 c.uc_stack.ss_sp += sizeof stack;
15496#endif
96912098 15497 c.uc_stack.ss_flags = 0;
15498 c.uc_stack.ss_size = sizeof stack;
15499 c.uc_link = NULL;
15500 makecontext (&c, cfn, 0);
15501
15502 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15503 abort ();
15504
15505 if (pthread_join (tid, NULL) != 0)
15506 abort ();
15507
15508 /* The thread should have called exit. */
15509 abort ();
15510}
15511
15512_ACEOF
15513if ac_fn_c_try_run "$LINENO"; then :
15514 libgo_cv_lib_setcontext_clobbers_tls=no
15515else
15516 libgo_cv_lib_setcontext_clobbers_tls=yes
15517fi
15518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15519 conftest.$ac_objext conftest.beam conftest.$ac_ext
15520fi
15521
84a24710 15522CFLAGS="$CFLAGS_hold"
96912098 15523LIBS="$LIBS_hold"
15524
15525fi
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15527$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15528if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15529
15530$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15531
15532fi
15533
11f8ac85 15534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15535$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
ea2e69a4 15536if ${libgo_cv_ro_eh_frame+:} false; then :
11f8ac85 15537 $as_echo_n "(cached) " >&6
15538else
15539
15540libgo_cv_ro_eh_frame=no
15541echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15542if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15543 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15544 libgo_cv_ro_eh_frame=yes
15545 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15546 | grep -v '#write' > /dev/null; then
15547 libgo_cv_ro_eh_frame=yes
15548 fi
15549fi
15550rm -f conftest.*
15551
15552fi
15553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15554$as_echo "$libgo_cv_ro_eh_frame" >&6; }
15555if test "x$libgo_cv_ro_eh_frame" = xyes; then
15556
15557$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15558
15559else
15560
15561$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15562
15563fi
15564
5f69fdaa 15565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15566$as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
ea2e69a4 15567if ${libgo_cv_c_unused_arguments+:} false; then :
5f69fdaa 15568 $as_echo_n "(cached) " >&6
15569else
15570 CFLAGS_hold=$CFLAGS
15571CFLAGS="$CFLAGS -Qunused-arguments"
15572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573/* end confdefs.h. */
15574int i;
15575_ACEOF
15576if ac_fn_c_try_compile "$LINENO"; then :
15577 libgo_cv_c_unused_arguments=yes
15578else
15579 libgo_cv_c_unused_arguments=no
15580fi
15581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582CFLAGS=$CFLAGS_hold
15583fi
15584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15585$as_echo "$libgo_cv_c_unused_arguments" >&6; }
15586
11f8ac85 15587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15588$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
ea2e69a4 15589if ${libgo_cv_as_comdat_gnu+:} false; then :
11f8ac85 15590 $as_echo_n "(cached) " >&6
15591else
15592
15593echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
5f69fdaa 15594CFLAGS_hold=$CFLAGS
15595if test "$libgo_cv_c_unused_arguments" = yes; then
15596 CFLAGS="$CFLAGS -Qunused-arguments"
15597fi
11f8ac85 15598if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15599 libgo_cv_as_comdat_gnu=yes
15600else
15601 libgo_cv_as_comdat_gnu=no
15602fi
5f69fdaa 15603CFLAGS=$CFLAGS_hold
11f8ac85 15604
15605fi
15606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15607$as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15608if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15609
15610$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15611
15612fi
15613
15614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15615$as_echo_n "checking assembler supports pc related relocs... " >&6; }
ea2e69a4 15616if ${libgo_cv_as_x86_pcrel+:} false; then :
11f8ac85 15617 $as_echo_n "(cached) " >&6
15618else
15619
15620libgo_cv_as_x86_pcrel=yes
15621echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
5f69fdaa 15622CFLAGS_hold=$CFLAGS
15623if test "$libgo_cv_c_unused_arguments" = yes; then
15624 CFLAGS="$CFLAGS -Qunused-arguments"
15625fi
11f8ac85 15626if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15627 libgo_cv_as_x86_pcrel=no
15628fi
5f69fdaa 15629CFLAGS=$CFLAGS_hold
11f8ac85 15630
15631fi
15632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15633$as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15634if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15635
15636$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15637
15638fi
15639
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15641$as_echo_n "checking assembler supports unwind section type... " >&6; }
ea2e69a4 15642if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
11f8ac85 15643 $as_echo_n "(cached) " >&6
15644else
15645
15646libgo_cv_as_x86_64_unwind_section_type=yes
15647echo '.section .eh_frame,"a",@unwind' > conftest.s
5f69fdaa 15648CFLAGS_hold=$CFLAGS
15649if test "$libgo_cv_c_unused_arguments" = yes; then
15650 CFLAGS="$CFLAGS -Qunused-arguments"
15651fi
11f8ac85 15652if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15653 libgo_cv_as_x86_64_unwind_section_type=no
15654fi
5f69fdaa 15655CFLAGS=$CFLAGS_hold
11f8ac85 15656
15657fi
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15659$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15660if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15661
15662$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15663
15664fi
15665
41981ad6 15666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15667$as_echo_n "checking assembler supports AES instructions... " >&6; }
ea2e69a4 15668if ${libgo_cv_as_x86_aes+:} false; then :
41981ad6 15669 $as_echo_n "(cached) " >&6
15670else
15671
15672libgo_cv_as_x86_aes=yes
15673echo 'aesenc %xmm0, %xmm1' > conftest.s
15674CFLAGS_hold=$CFLAGS
15675if test "$libgo_cv_c_unused_arguments" = yes; then
15676 CFLAGS="$CFLAGS -Qunused-arguments"
15677fi
15678if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15679 libgo_cv_as_x86_aes=no
15680fi
15681CFLAGS=$CFLAGS_hold
15682
15683fi
15684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15685$as_echo "$libgo_cv_as_x86_aes" >&6; }
15686if test "x$libgo_cv_as_x86_aes" = xyes; then
15687
15688$as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15689
15690fi
15691
e440a328 15692cat >confcache <<\_ACEOF
15693# This file is a shell script that caches the results of configure
15694# tests run on this system so they can be shared between configure
15695# scripts and configure runs, see configure's option --config-cache.
15696# It is not useful on other systems. If it contains results you don't
15697# want to keep, you may remove or edit it.
15698#
15699# config.status only pays attention to the cache file if you give it
15700# the --recheck option to rerun configure.
15701#
15702# `ac_cv_env_foo' variables (set or unset) will be overridden when
15703# loading this file, other *unset* `ac_cv_foo' will be assigned the
15704# following values.
15705
15706_ACEOF
15707
15708# The following way of writing the cache mishandles newlines in values,
15709# but we know of no workaround that is simple, portable, and efficient.
15710# So, we kill variables containing newlines.
15711# Ultrix sh set writes to stderr and can't be redirected directly,
15712# and sets the high bit in the cache file unless we assign to the vars.
15713(
15714 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15715 eval ac_val=\$$ac_var
15716 case $ac_val in #(
15717 *${as_nl}*)
15718 case $ac_var in #(
15719 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15720$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15721 esac
15722 case $ac_var in #(
15723 _ | IFS | as_nl) ;; #(
15724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15725 *) { eval $ac_var=; unset $ac_var;} ;;
15726 esac ;;
15727 esac
15728 done
15729
15730 (set) 2>&1 |
15731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15732 *${as_nl}ac_space=\ *)
15733 # `set' does not quote correctly, so add quotes: double-quote
15734 # substitution turns \\\\ into \\, and sed turns \\ into \.
15735 sed -n \
15736 "s/'/'\\\\''/g;
15737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15738 ;; #(
15739 *)
15740 # `set' quotes correctly as required by POSIX, so do not add quotes.
15741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15742 ;;
15743 esac |
15744 sort
15745) |
15746 sed '
15747 /^ac_cv_env_/b end
15748 t clear
15749 :clear
15750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15751 t end
15752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15753 :end' >>confcache
15754if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15755 if test -w "$cache_file"; then
ea2e69a4 15756 if test "x$cache_file" != "x/dev/null"; then
e440a328 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15758$as_echo "$as_me: updating cache $cache_file" >&6;}
ea2e69a4 15759 if test ! -f "$cache_file" || test -h "$cache_file"; then
15760 cat confcache >"$cache_file"
15761 else
15762 case $cache_file in #(
15763 */* | ?:*)
15764 mv -f confcache "$cache_file"$$ &&
15765 mv -f "$cache_file"$$ "$cache_file" ;; #(
15766 *)
15767 mv -f confcache "$cache_file" ;;
15768 esac
15769 fi
15770 fi
e440a328 15771 else
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15773$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15774 fi
15775fi
15776rm -f confcache
15777
15778if test ${multilib} = yes; then
15779 multilib_arg="--enable-multilib"
15780else
15781 multilib_arg=
15782fi
15783
15784ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15785
15786
15787ac_config_commands="$ac_config_commands default"
15788
15789
15790cat >confcache <<\_ACEOF
15791# This file is a shell script that caches the results of configure
15792# tests run on this system so they can be shared between configure
15793# scripts and configure runs, see configure's option --config-cache.
15794# It is not useful on other systems. If it contains results you don't
15795# want to keep, you may remove or edit it.
15796#
15797# config.status only pays attention to the cache file if you give it
15798# the --recheck option to rerun configure.
15799#
15800# `ac_cv_env_foo' variables (set or unset) will be overridden when
15801# loading this file, other *unset* `ac_cv_foo' will be assigned the
15802# following values.
15803
15804_ACEOF
15805
15806# The following way of writing the cache mishandles newlines in values,
15807# but we know of no workaround that is simple, portable, and efficient.
15808# So, we kill variables containing newlines.
15809# Ultrix sh set writes to stderr and can't be redirected directly,
15810# and sets the high bit in the cache file unless we assign to the vars.
15811(
15812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15813 eval ac_val=\$$ac_var
15814 case $ac_val in #(
15815 *${as_nl}*)
15816 case $ac_var in #(
15817 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15818$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15819 esac
15820 case $ac_var in #(
15821 _ | IFS | as_nl) ;; #(
15822 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15823 *) { eval $ac_var=; unset $ac_var;} ;;
15824 esac ;;
15825 esac
15826 done
15827
15828 (set) 2>&1 |
15829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15830 *${as_nl}ac_space=\ *)
15831 # `set' does not quote correctly, so add quotes: double-quote
15832 # substitution turns \\\\ into \\, and sed turns \\ into \.
15833 sed -n \
15834 "s/'/'\\\\''/g;
15835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15836 ;; #(
15837 *)
15838 # `set' quotes correctly as required by POSIX, so do not add quotes.
15839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15840 ;;
15841 esac |
15842 sort
15843) |
15844 sed '
15845 /^ac_cv_env_/b end
15846 t clear
15847 :clear
15848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15849 t end
15850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15851 :end' >>confcache
15852if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15853 if test -w "$cache_file"; then
ea2e69a4 15854 if test "x$cache_file" != "x/dev/null"; then
e440a328 15855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15856$as_echo "$as_me: updating cache $cache_file" >&6;}
ea2e69a4 15857 if test ! -f "$cache_file" || test -h "$cache_file"; then
15858 cat confcache >"$cache_file"
15859 else
15860 case $cache_file in #(
15861 */* | ?:*)
15862 mv -f confcache "$cache_file"$$ &&
15863 mv -f "$cache_file"$$ "$cache_file" ;; #(
15864 *)
15865 mv -f confcache "$cache_file" ;;
15866 esac
15867 fi
15868 fi
e440a328 15869 else
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15871$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15872 fi
15873fi
15874rm -f confcache
15875
15876test "x$prefix" = xNONE && prefix=$ac_default_prefix
15877# Let make expand exec_prefix.
15878test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15879
15880DEFS=-DHAVE_CONFIG_H
15881
15882ac_libobjs=
15883ac_ltlibobjs=
ea2e69a4 15884U=
e440a328 15885for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15886 # 1. Remove the extension, and $U if already installed.
15887 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15888 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15889 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15890 # will be set to the directory where LIBOBJS objects are built.
15891 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15892 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15893done
15894LIBOBJS=$ac_libobjs
15895
15896LTLIBOBJS=$ac_ltlibobjs
15897
15898
ea2e69a4 15899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15900$as_echo_n "checking that generated files are newer than configure... " >&6; }
15901 if test -n "$am_sleep_pid"; then
15902 # Hide warnings about reused PIDs.
15903 wait $am_sleep_pid 2>/dev/null
15904 fi
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15906$as_echo "done" >&6; }
e440a328 15907 if test -n "$EXEEXT"; then
15908 am__EXEEXT_TRUE=
15909 am__EXEEXT_FALSE='#'
15910else
15911 am__EXEEXT_TRUE='#'
15912 am__EXEEXT_FALSE=
15913fi
15914
15915if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
ea2e69a4 15916 as_fn_error $? "conditional \"AMDEP\" was never defined.
e440a328 15917Usually this means the macro was only invoked conditionally." "$LINENO" 5
15918fi
15919if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
ea2e69a4 15920 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
e440a328 15921Usually this means the macro was only invoked conditionally." "$LINENO" 5
15922fi
15923if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
ea2e69a4 15924 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
e440a328 15925Usually this means the macro was only invoked conditionally." "$LINENO" 5
15926fi
63e457ad 15927if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
ea2e69a4 15928 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
63e457ad 15929Usually this means the macro was only invoked conditionally." "$LINENO" 5
15930fi
e440a328 15931if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
ea2e69a4 15932 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
e440a328 15933Usually this means the macro was only invoked conditionally." "$LINENO" 5
15934fi
15935if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
ea2e69a4 15936 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
e440a328 15937Usually this means the macro was only invoked conditionally." "$LINENO" 5
524b52f8 15938fi
15939if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
ea2e69a4 15940 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
524b52f8 15941Usually this means the macro was only invoked conditionally." "$LINENO" 5
e440a328 15942fi
15943if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
ea2e69a4 15944 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
e440a328 15945Usually this means the macro was only invoked conditionally." "$LINENO" 5
15946fi
86240434 15947if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
ea2e69a4 15948 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
86240434 15949Usually this means the macro was only invoked conditionally." "$LINENO" 5
15950fi
fb08d005 15951if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
ea2e69a4 15952 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
fb08d005 15953Usually this means the macro was only invoked conditionally." "$LINENO" 5
15954fi
0ce10ea1 15955if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
ea2e69a4 15956 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
0ce10ea1 15957Usually this means the macro was only invoked conditionally." "$LINENO" 5
15958fi
e440a328 15959if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
ea2e69a4 15960 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
e440a328 15961Usually this means the macro was only invoked conditionally." "$LINENO" 5
15962fi
cea7ac49 15963if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
ea2e69a4 15964 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
e440a328 15965Usually this means the macro was only invoked conditionally." "$LINENO" 5
15966fi
03118c21 15967if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
ea2e69a4 15968 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
03118c21 15969Usually this means the macro was only invoked conditionally." "$LINENO" 5
15970fi
be239ed2 15971if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
ea2e69a4 15972 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
be239ed2 15973Usually this means the macro was only invoked conditionally." "$LINENO" 5
15974fi
e440a328 15975if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
ea2e69a4 15976 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
e440a328 15977Usually this means the macro was only invoked conditionally." "$LINENO" 5
b5f8bff0 15978fi
15979if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
ea2e69a4 15980 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
b5f8bff0 15981Usually this means the macro was only invoked conditionally." "$LINENO" 5
e440a328 15982fi
15983
15984if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
ea2e69a4 15985 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
e440a328 15986Usually this means the macro was only invoked conditionally." "$LINENO" 5
15987fi
ccd3f476 15988if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
ea2e69a4 15989 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
ccd3f476 15990Usually this means the macro was only invoked conditionally." "$LINENO" 5
15991fi
37d6b690 15992if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
ea2e69a4 15993 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
37d6b690 15994Usually this means the macro was only invoked conditionally." "$LINENO" 5
15995fi
8dcdfb38 15996if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
ea2e69a4 15997 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
8dcdfb38 15998Usually this means the macro was only invoked conditionally." "$LINENO" 5
15999fi
e440a328 16000
ea2e69a4 16001: "${CONFIG_STATUS=./config.status}"
e440a328 16002ac_write_fail=0
16003ac_clean_files_save=$ac_clean_files
16004ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16005{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16006$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16007as_write_fail=0
16008cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16009#! $SHELL
16010# Generated by $as_me.
16011# Run this file to recreate the current configuration.
16012# Compiler output produced by configure, useful for debugging
16013# configure, is in config.log if it exists.
16014
16015debug=false
16016ac_cs_recheck=false
16017ac_cs_silent=false
16018
16019SHELL=\${CONFIG_SHELL-$SHELL}
16020export SHELL
16021_ASEOF
16022cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16023## -------------------- ##
16024## M4sh Initialization. ##
16025## -------------------- ##
16026
16027# Be more Bourne compatible
16028DUALCASE=1; export DUALCASE # for MKS sh
16029if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16030 emulate sh
16031 NULLCMD=:
16032 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16033 # is contrary to our usage. Disable this feature.
16034 alias -g '${1+"$@"}'='"$@"'
16035 setopt NO_GLOB_SUBST
16036else
16037 case `(set -o) 2>/dev/null` in #(
16038 *posix*) :
16039 set -o posix ;; #(
16040 *) :
16041 ;;
16042esac
16043fi
16044
16045
16046as_nl='
16047'
16048export as_nl
16049# Printing a long string crashes Solaris 7 /usr/bin/printf.
16050as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16051as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16052as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16053# Prefer a ksh shell builtin over an external printf program on Solaris,
16054# but without wasting forks for bash or zsh.
16055if test -z "$BASH_VERSION$ZSH_VERSION" \
16056 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16057 as_echo='print -r --'
16058 as_echo_n='print -rn --'
16059elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16060 as_echo='printf %s\n'
16061 as_echo_n='printf %s'
16062else
16063 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16064 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16065 as_echo_n='/usr/ucb/echo -n'
16066 else
16067 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16068 as_echo_n_body='eval
16069 arg=$1;
16070 case $arg in #(
16071 *"$as_nl"*)
16072 expr "X$arg" : "X\\(.*\\)$as_nl";
16073 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16074 esac;
16075 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16076 '
16077 export as_echo_n_body
16078 as_echo_n='sh -c $as_echo_n_body as_echo'
16079 fi
16080 export as_echo_body
16081 as_echo='sh -c $as_echo_body as_echo'
16082fi
16083
16084# The user is always right.
16085if test "${PATH_SEPARATOR+set}" != set; then
16086 PATH_SEPARATOR=:
16087 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16088 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16089 PATH_SEPARATOR=';'
16090 }
16091fi
16092
16093
16094# IFS
16095# We need space, tab and new line, in precisely that order. Quoting is
16096# there to prevent editors from complaining about space-tab.
16097# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16098# splitting by setting IFS to empty value.)
16099IFS=" "" $as_nl"
16100
16101# Find who we are. Look in the path if we contain no directory separator.
ea2e69a4 16102as_myself=
e440a328 16103case $0 in #((
16104 *[\\/]* ) as_myself=$0 ;;
16105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16106for as_dir in $PATH
16107do
16108 IFS=$as_save_IFS
16109 test -z "$as_dir" && as_dir=.
16110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16111 done
16112IFS=$as_save_IFS
16113
16114 ;;
16115esac
16116# We did not find ourselves, most probably we were run as `sh COMMAND'
16117# in which case we are not to be found in the path.
16118if test "x$as_myself" = x; then
16119 as_myself=$0
16120fi
16121if test ! -f "$as_myself"; then
16122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16123 exit 1
16124fi
16125
16126# Unset variables that we do not need and which cause bugs (e.g. in
16127# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16128# suppresses any "Segmentation fault" message there. '((' could
16129# trigger a bug in pdksh 5.2.14.
16130for as_var in BASH_ENV ENV MAIL MAILPATH
16131do eval test x\${$as_var+set} = xset \
16132 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16133done
16134PS1='$ '
16135PS2='> '
16136PS4='+ '
16137
16138# NLS nuisances.
16139LC_ALL=C
16140export LC_ALL
16141LANGUAGE=C
16142export LANGUAGE
16143
16144# CDPATH.
16145(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16146
16147
ea2e69a4 16148# as_fn_error STATUS ERROR [LINENO LOG_FD]
16149# ----------------------------------------
e440a328 16150# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16151# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
ea2e69a4 16152# script with STATUS, using 1 if that was 0.
e440a328 16153as_fn_error ()
16154{
ea2e69a4 16155 as_status=$1; test $as_status -eq 0 && as_status=1
16156 if test "$4"; then
16157 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16158 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
e440a328 16159 fi
ea2e69a4 16160 $as_echo "$as_me: error: $2" >&2
e440a328 16161 as_fn_exit $as_status
16162} # as_fn_error
16163
16164
16165# as_fn_set_status STATUS
16166# -----------------------
16167# Set $? to STATUS, without forking.
16168as_fn_set_status ()
16169{
16170 return $1
16171} # as_fn_set_status
16172
16173# as_fn_exit STATUS
16174# -----------------
16175# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16176as_fn_exit ()
16177{
16178 set +e
16179 as_fn_set_status $1
16180 exit $1
16181} # as_fn_exit
16182
16183# as_fn_unset VAR
16184# ---------------
16185# Portably unset VAR.
16186as_fn_unset ()
16187{
16188 { eval $1=; unset $1;}
16189}
16190as_unset=as_fn_unset
16191# as_fn_append VAR VALUE
16192# ----------------------
16193# Append the text in VALUE to the end of the definition contained in VAR. Take
16194# advantage of any shell optimizations that allow amortized linear growth over
16195# repeated appends, instead of the typical quadratic growth present in naive
16196# implementations.
16197if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16198 eval 'as_fn_append ()
16199 {
16200 eval $1+=\$2
16201 }'
16202else
16203 as_fn_append ()
16204 {
16205 eval $1=\$$1\$2
16206 }
16207fi # as_fn_append
16208
16209# as_fn_arith ARG...
16210# ------------------
16211# Perform arithmetic evaluation on the ARGs, and store the result in the
16212# global $as_val. Take advantage of shells that can avoid forks. The arguments
16213# must be portable across $(()) and expr.
16214if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16215 eval 'as_fn_arith ()
16216 {
16217 as_val=$(( $* ))
16218 }'
16219else
16220 as_fn_arith ()
16221 {
16222 as_val=`expr "$@" || test $? -eq 1`
16223 }
16224fi # as_fn_arith
16225
16226
16227if expr a : '\(a\)' >/dev/null 2>&1 &&
16228 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16229 as_expr=expr
16230else
16231 as_expr=false
16232fi
16233
16234if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16235 as_basename=basename
16236else
16237 as_basename=false
16238fi
16239
16240if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16241 as_dirname=dirname
16242else
16243 as_dirname=false
16244fi
16245
16246as_me=`$as_basename -- "$0" ||
16247$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16248 X"$0" : 'X\(//\)$' \| \
16249 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16250$as_echo X/"$0" |
16251 sed '/^.*\/\([^/][^/]*\)\/*$/{
16252 s//\1/
16253 q
16254 }
16255 /^X\/\(\/\/\)$/{
16256 s//\1/
16257 q
16258 }
16259 /^X\/\(\/\).*/{
16260 s//\1/
16261 q
16262 }
16263 s/.*/./; q'`
16264
16265# Avoid depending upon Character Ranges.
16266as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16267as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16268as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16269as_cr_digits='0123456789'
16270as_cr_alnum=$as_cr_Letters$as_cr_digits
16271
16272ECHO_C= ECHO_N= ECHO_T=
16273case `echo -n x` in #(((((
16274-n*)
16275 case `echo 'xy\c'` in
16276 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16277 xy) ECHO_C='\c';;
16278 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16279 ECHO_T=' ';;
16280 esac;;
16281*)
16282 ECHO_N='-n';;
16283esac
16284
16285rm -f conf$$ conf$$.exe conf$$.file
16286if test -d conf$$.dir; then
16287 rm -f conf$$.dir/conf$$.file
16288else
16289 rm -f conf$$.dir
16290 mkdir conf$$.dir 2>/dev/null
16291fi
16292if (echo >conf$$.file) 2>/dev/null; then
16293 if ln -s conf$$.file conf$$ 2>/dev/null; then
16294 as_ln_s='ln -s'
16295 # ... but there are two gotchas:
16296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
ea2e69a4 16298 # In both cases, we have to default to `cp -pR'.
e440a328 16299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ea2e69a4 16300 as_ln_s='cp -pR'
e440a328 16301 elif ln conf$$.file conf$$ 2>/dev/null; then
16302 as_ln_s=ln
16303 else
ea2e69a4 16304 as_ln_s='cp -pR'
e440a328 16305 fi
16306else
ea2e69a4 16307 as_ln_s='cp -pR'
e440a328 16308fi
16309rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16310rmdir conf$$.dir 2>/dev/null
16311
16312
16313# as_fn_mkdir_p
16314# -------------
16315# Create "$as_dir" as a directory, including parents if necessary.
16316as_fn_mkdir_p ()
16317{
16318
16319 case $as_dir in #(
16320 -*) as_dir=./$as_dir;;
16321 esac
16322 test -d "$as_dir" || eval $as_mkdir_p || {
16323 as_dirs=
16324 while :; do
16325 case $as_dir in #(
16326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16327 *) as_qdir=$as_dir;;
16328 esac
16329 as_dirs="'$as_qdir' $as_dirs"
16330 as_dir=`$as_dirname -- "$as_dir" ||
16331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16332 X"$as_dir" : 'X\(//\)[^/]' \| \
16333 X"$as_dir" : 'X\(//\)$' \| \
16334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16335$as_echo X"$as_dir" |
16336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16337 s//\1/
16338 q
16339 }
16340 /^X\(\/\/\)[^/].*/{
16341 s//\1/
16342 q
16343 }
16344 /^X\(\/\/\)$/{
16345 s//\1/
16346 q
16347 }
16348 /^X\(\/\).*/{
16349 s//\1/
16350 q
16351 }
16352 s/.*/./; q'`
16353 test -d "$as_dir" && break
16354 done
16355 test -z "$as_dirs" || eval "mkdir $as_dirs"
ea2e69a4 16356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
e440a328 16357
16358
16359} # as_fn_mkdir_p
16360if mkdir -p . 2>/dev/null; then
16361 as_mkdir_p='mkdir -p "$as_dir"'
16362else
16363 test -d ./-p && rmdir ./-p
16364 as_mkdir_p=false
16365fi
16366
ea2e69a4 16367
16368# as_fn_executable_p FILE
16369# -----------------------
16370# Test if FILE is an executable regular file.
16371as_fn_executable_p ()
16372{
16373 test -f "$1" && test -x "$1"
16374} # as_fn_executable_p
16375as_test_x='test -x'
16376as_executable_p=as_fn_executable_p
e440a328 16377
16378# Sed expression to map a string onto a valid CPP name.
16379as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16380
16381# Sed expression to map a string onto a valid variable name.
16382as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16383
16384
16385exec 6>&1
16386## ----------------------------------- ##
16387## Main body of $CONFIG_STATUS script. ##
16388## ----------------------------------- ##
16389_ASEOF
16390test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16391
16392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16393# Save the log message, to keep $0 and so on meaningful, and to
16394# report actual input values of CONFIG_FILES etc. instead of their
16395# values after options handling.
16396ac_log="
16397This file was extended by package-unused $as_me version-unused, which was
ea2e69a4 16398generated by GNU Autoconf 2.69. Invocation command line was
e440a328 16399
16400 CONFIG_FILES = $CONFIG_FILES
16401 CONFIG_HEADERS = $CONFIG_HEADERS
16402 CONFIG_LINKS = $CONFIG_LINKS
16403 CONFIG_COMMANDS = $CONFIG_COMMANDS
16404 $ $0 $@
16405
16406on `(hostname || uname -n) 2>/dev/null | sed 1q`
16407"
16408
16409_ACEOF
16410
16411case $ac_config_files in *"
16412"*) set x $ac_config_files; shift; ac_config_files=$*;;
16413esac
16414
16415case $ac_config_headers in *"
16416"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16417esac
16418
16419
16420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16421# Files that config.status was made for.
16422config_files="$ac_config_files"
16423config_headers="$ac_config_headers"
16424config_commands="$ac_config_commands"
16425
16426_ACEOF
16427
16428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429ac_cs_usage="\
16430\`$as_me' instantiates files and other configuration actions
16431from templates according to the current configuration. Unless the files
16432and actions are specified as TAGs, all are instantiated by default.
16433
16434Usage: $0 [OPTION]... [TAG]...
16435
16436 -h, --help print this help, then exit
16437 -V, --version print version number and configuration settings, then exit
ea2e69a4 16438 --config print configuration, then exit
e440a328 16439 -q, --quiet, --silent
16440 do not print progress messages
16441 -d, --debug don't remove temporary files
16442 --recheck update $as_me by reconfiguring in the same conditions
16443 --file=FILE[:TEMPLATE]
16444 instantiate the configuration file FILE
16445 --header=FILE[:TEMPLATE]
16446 instantiate the configuration header FILE
16447
16448Configuration files:
16449$config_files
16450
16451Configuration headers:
16452$config_headers
16453
16454Configuration commands:
16455$config_commands
16456
16457Report bugs to the package provider."
16458
16459_ACEOF
16460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea2e69a4 16461ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
e440a328 16462ac_cs_version="\\
16463package-unused config.status version-unused
ea2e69a4 16464configured by $0, generated by GNU Autoconf 2.69,
16465 with options \\"\$ac_cs_config\\"
e440a328 16466
ea2e69a4 16467Copyright (C) 2012 Free Software Foundation, Inc.
e440a328 16468This config.status script is free software; the Free Software Foundation
16469gives unlimited permission to copy, distribute and modify it."
16470
16471ac_pwd='$ac_pwd'
16472srcdir='$srcdir'
16473INSTALL='$INSTALL'
16474MKDIR_P='$MKDIR_P'
16475AWK='$AWK'
16476test -n "\$AWK" || AWK=awk
16477_ACEOF
16478
16479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480# The default lists apply if the user does not specify any file.
16481ac_need_defaults=:
16482while test $# != 0
16483do
16484 case $1 in
ea2e69a4 16485 --*=?*)
e440a328 16486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16487 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16488 ac_shift=:
16489 ;;
ea2e69a4 16490 --*=)
16491 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16492 ac_optarg=
16493 ac_shift=:
16494 ;;
e440a328 16495 *)
16496 ac_option=$1
16497 ac_optarg=$2
16498 ac_shift=shift
16499 ;;
16500 esac
16501
16502 case $ac_option in
16503 # Handling of the options.
16504 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16505 ac_cs_recheck=: ;;
16506 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16507 $as_echo "$ac_cs_version"; exit ;;
ea2e69a4 16508 --config | --confi | --conf | --con | --co | --c )
16509 $as_echo "$ac_cs_config"; exit ;;
e440a328 16510 --debug | --debu | --deb | --de | --d | -d )
16511 debug=: ;;
16512 --file | --fil | --fi | --f )
16513 $ac_shift
16514 case $ac_optarg in
16515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
ea2e69a4 16516 '') as_fn_error $? "missing file argument" ;;
e440a328 16517 esac
16518 as_fn_append CONFIG_FILES " '$ac_optarg'"
16519 ac_need_defaults=false;;
16520 --header | --heade | --head | --hea )
16521 $ac_shift
16522 case $ac_optarg in
16523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16524 esac
16525 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16526 ac_need_defaults=false;;
16527 --he | --h)
16528 # Conflict between --help and --header
ea2e69a4 16529 as_fn_error $? "ambiguous option: \`$1'
e440a328 16530Try \`$0 --help' for more information.";;
16531 --help | --hel | -h )
16532 $as_echo "$ac_cs_usage"; exit ;;
16533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16534 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16535 ac_cs_silent=: ;;
16536
16537 # This is an error.
ea2e69a4 16538 -*) as_fn_error $? "unrecognized option: \`$1'
e440a328 16539Try \`$0 --help' for more information." ;;
16540
16541 *) as_fn_append ac_config_targets " $1"
16542 ac_need_defaults=false ;;
16543
16544 esac
16545 shift
16546done
16547
16548ac_configure_extra_args=
16549
16550if $ac_cs_silent; then
16551 exec 6>/dev/null
16552 ac_configure_extra_args="$ac_configure_extra_args --silent"
16553fi
16554
16555_ACEOF
16556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16557if \$ac_cs_recheck; then
ea2e69a4 16558 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
e440a328 16559 shift
16560 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16561 CONFIG_SHELL='$SHELL'
16562 export CONFIG_SHELL
16563 exec "\$@"
16564fi
16565
16566_ACEOF
16567cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16568exec 5>>config.log
16569{
16570 echo
16571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16572## Running $as_me. ##
16573_ASBOX
16574 $as_echo "$ac_log"
16575} >&5
16576
16577_ACEOF
16578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16579#
16580# INIT-COMMANDS
16581#
16582
16583srcdir="$srcdir"
16584host="$host"
16585target="$target"
16586with_multisubdir="$with_multisubdir"
16587with_multisrctop="$with_multisrctop"
16588with_target_subdir="$with_target_subdir"
16589ac_configure_args="${multilib_arg} ${ac_configure_args}"
16590multi_basedir="$multi_basedir"
16591CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16592CC="$CC"
4a273582 16593CXX="$CXX"
16594GFORTRAN="$GFORTRAN"
ea2e69a4 16595GDC="$GDC"
e440a328 16596AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16597
16598
16599# The HP-UX ksh and POSIX shell print the target directory to stdout
16600# if CDPATH is set.
16601(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16602
16603sed_quote_subst='$sed_quote_subst'
16604double_quote_subst='$double_quote_subst'
16605delay_variable_subst='$delay_variable_subst'
16606SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16607Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16608GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16609EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16610FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16611SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16612ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16613LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16614macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16615macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16616enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16617enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16618pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16619enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16620host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16621host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16622host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16623build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16624build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16625build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16626NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16627LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16628max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16629ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16630exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16631lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16632lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16633lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16634reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16635reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16636OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16637deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16638file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16639AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16640AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16641STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16642RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16643old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16644old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16645old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16646lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16647CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16648CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16649compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16650GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16651lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16652lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16653lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16654lt_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"`'
16655objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16656MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16657lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16658lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16659lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16660lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16661lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16662need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16663DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16664NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16665LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16666OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16667OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16668libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16669shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16670extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16671archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16672enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16673export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16674whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16675compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16676old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16677old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16678archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16679archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16680module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16681module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16682with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16683allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16684no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16685hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16686hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16687hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16688hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16689hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16690hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16691hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16692hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16693inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16694link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16695fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16696always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16697export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16698exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16699include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16700prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16701file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16702variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16703need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16704need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16705version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16706runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16707shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16708shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16709libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16710library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16711soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16712install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16713postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16714postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16715finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16716finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16717hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16718sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16719sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16720hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16721enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16722enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16723enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16724old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16725striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16726LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16727reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16728reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16729old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16730compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16731GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16732lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16733lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16734lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16735lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16736lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16737archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16738enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16739export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16740whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16741compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16742old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16743old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16744archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16745archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16746module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16747module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16748with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16749allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16750no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16751hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16752hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16753hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16754hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16755hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16756hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16757hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16758hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16759inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16760link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16761fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16762always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16763export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16764exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16765include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16766prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16767file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16768hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16769
16770LTCC='$LTCC'
16771LTCFLAGS='$LTCFLAGS'
16772compiler='$compiler_DEFAULT'
16773
16774# A function that is used when there is no print builtin or printf.
16775func_fallback_echo ()
16776{
16777 eval 'cat <<_LTECHO_EOF
16778\$1
16779_LTECHO_EOF'
16780}
16781
16782# Quote evaled strings.
16783for var in SED \
16784GREP \
16785EGREP \
16786FGREP \
16787SHELL \
16788ECHO \
16789LD \
16790NM \
16791LN_S \
16792lt_SP2NL \
16793lt_NL2SP \
16794reload_flag \
16795OBJDUMP \
16796deplibs_check_method \
16797file_magic_cmd \
16798AR \
16799AR_FLAGS \
16800STRIP \
16801RANLIB \
16802CC \
16803CFLAGS \
16804compiler \
16805lt_cv_sys_global_symbol_pipe \
16806lt_cv_sys_global_symbol_to_cdecl \
16807lt_cv_sys_global_symbol_to_c_name_address \
16808lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16809lt_prog_compiler_no_builtin_flag \
16810lt_prog_compiler_wl \
16811lt_prog_compiler_pic \
16812lt_prog_compiler_static \
16813lt_cv_prog_compiler_c_o \
16814need_locks \
16815DSYMUTIL \
16816NMEDIT \
16817LIPO \
16818OTOOL \
16819OTOOL64 \
16820shrext_cmds \
16821export_dynamic_flag_spec \
16822whole_archive_flag_spec \
16823compiler_needs_object \
16824with_gnu_ld \
16825allow_undefined_flag \
16826no_undefined_flag \
16827hardcode_libdir_flag_spec \
16828hardcode_libdir_flag_spec_ld \
16829hardcode_libdir_separator \
16830fix_srcfile_path \
16831exclude_expsyms \
16832include_expsyms \
16833file_list_spec \
16834variables_saved_for_relink \
16835libname_spec \
16836library_names_spec \
16837soname_spec \
16838install_override_mode \
16839finish_eval \
16840old_striplib \
16841striplib \
16842LD_GO \
16843reload_flag_GO \
16844compiler_GO \
16845lt_prog_compiler_no_builtin_flag_GO \
16846lt_prog_compiler_wl_GO \
16847lt_prog_compiler_pic_GO \
16848lt_prog_compiler_static_GO \
16849lt_cv_prog_compiler_c_o_GO \
16850export_dynamic_flag_spec_GO \
16851whole_archive_flag_spec_GO \
16852compiler_needs_object_GO \
16853with_gnu_ld_GO \
16854allow_undefined_flag_GO \
16855no_undefined_flag_GO \
16856hardcode_libdir_flag_spec_GO \
16857hardcode_libdir_flag_spec_ld_GO \
16858hardcode_libdir_separator_GO \
16859fix_srcfile_path_GO \
16860exclude_expsyms_GO \
16861include_expsyms_GO \
16862file_list_spec_GO; do
16863 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16864 *[\\\\\\\`\\"\\\$]*)
16865 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16866 ;;
16867 *)
16868 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16869 ;;
16870 esac
16871done
16872
16873# Double-quote double-evaled strings.
16874for var in reload_cmds \
16875old_postinstall_cmds \
16876old_postuninstall_cmds \
16877old_archive_cmds \
16878extract_expsyms_cmds \
16879old_archive_from_new_cmds \
16880old_archive_from_expsyms_cmds \
16881archive_cmds \
16882archive_expsym_cmds \
16883module_cmds \
16884module_expsym_cmds \
16885export_symbols_cmds \
16886prelink_cmds \
16887postinstall_cmds \
16888postuninstall_cmds \
16889finish_cmds \
16890sys_lib_search_path_spec \
16891sys_lib_dlsearch_path_spec \
16892reload_cmds_GO \
16893old_archive_cmds_GO \
16894old_archive_from_new_cmds_GO \
16895old_archive_from_expsyms_cmds_GO \
16896archive_cmds_GO \
16897archive_expsym_cmds_GO \
16898module_cmds_GO \
16899module_expsym_cmds_GO \
16900export_symbols_cmds_GO \
16901prelink_cmds_GO; do
16902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16903 *[\\\\\\\`\\"\\\$]*)
16904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16905 ;;
16906 *)
16907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16908 ;;
16909 esac
16910done
16911
16912ac_aux_dir='$ac_aux_dir'
16913xsi_shell='$xsi_shell'
16914lt_shell_append='$lt_shell_append'
16915
16916# See if we are running on zsh, and set the options which allow our
16917# commands through without removal of \ escapes INIT.
16918if test -n "\${ZSH_VERSION+set}" ; then
16919 setopt NO_GLOB_SUBST
16920fi
16921
16922
16923 PACKAGE='$PACKAGE'
16924 VERSION='$VERSION'
16925 TIMESTAMP='$TIMESTAMP'
16926 RM='$RM'
16927 ofile='$ofile'
16928
16929
16930
16931
16932
16933
16934# Variables needed in config.status (file generation) which aren't already
16935# passed by autoconf.
16936SUBDIRS="$SUBDIRS"
16937
16938
16939_ACEOF
16940
16941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16942
16943# Handling of arguments.
16944for ac_config_target in $ac_config_targets
16945do
16946 case $ac_config_target in
16947 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16948 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16949 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16950 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16951 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16952 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16953 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16954
ea2e69a4 16955 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
e440a328 16956 esac
16957done
16958
16959
16960# If the user did not use the arguments to specify the items to instantiate,
16961# then the envvar interface is used. Set only those that are not.
16962# We use the long form for the default assignment because of an extremely
16963# bizarre bug on SunOS 4.1.3.
16964if $ac_need_defaults; then
16965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16968fi
16969
16970# Have a temporary directory for convenience. Make it in the build tree
16971# simply because there is no reason against having it here, and in addition,
16972# creating and moving files from /tmp can sometimes cause problems.
16973# Hook for its removal unless debugging.
16974# Note that there is a small window in which the directory will not be cleaned:
16975# after its creation but before its name has been assigned to `$tmp'.
16976$debug ||
16977{
ea2e69a4 16978 tmp= ac_tmp=
e440a328 16979 trap 'exit_status=$?
ea2e69a4 16980 : "${ac_tmp:=$tmp}"
16981 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e440a328 16982' 0
16983 trap 'as_fn_exit 1' 1 2 13 15
16984}
16985# Create a (secure) tmp directory for tmp files.
16986
16987{
16988 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ea2e69a4 16989 test -d "$tmp"
e440a328 16990} ||
16991{
16992 tmp=./conf$$-$RANDOM
16993 (umask 077 && mkdir "$tmp")
ea2e69a4 16994} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16995ac_tmp=$tmp
e440a328 16996
16997# Set up the scripts for CONFIG_FILES section.
16998# No need to generate them if there are no CONFIG_FILES.
16999# This happens for instance with `./config.status config.h'.
17000if test -n "$CONFIG_FILES"; then
17001
17002
17003ac_cr=`echo X | tr X '\015'`
17004# On cygwin, bash can eat \r inside `` if the user requested igncr.
17005# But we know of no other shell where ac_cr would be empty at this
17006# point, so we can use a bashism as a fallback.
17007if test "x$ac_cr" = x; then
17008 eval ac_cr=\$\'\\r\'
17009fi
17010ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17011if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
ea2e69a4 17012 ac_cs_awk_cr='\\r'
e440a328 17013else
17014 ac_cs_awk_cr=$ac_cr
17015fi
17016
ea2e69a4 17017echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
e440a328 17018_ACEOF
17019
17020
17021{
17022 echo "cat >conf$$subs.awk <<_ACEOF" &&
17023 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17024 echo "_ACEOF"
17025} >conf$$subs.sh ||
ea2e69a4 17026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17027ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e440a328 17028ac_delim='%!_!# '
17029for ac_last_try in false false false false false :; do
17030 . ./conf$$subs.sh ||
ea2e69a4 17031 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e440a328 17032
17033 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17034 if test $ac_delim_n = $ac_delim_num; then
17035 break
17036 elif $ac_last_try; then
ea2e69a4 17037 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e440a328 17038 else
17039 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17040 fi
17041done
17042rm -f conf$$subs.sh
17043
17044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea2e69a4 17045cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
e440a328 17046_ACEOF
17047sed -n '
17048h
17049s/^/S["/; s/!.*/"]=/
17050p
17051g
17052s/^[^!]*!//
17053:repl
17054t repl
17055s/'"$ac_delim"'$//
17056t delim
17057:nl
17058h
ea2e69a4 17059s/\(.\{148\}\)..*/\1/
e440a328 17060t more1
17061s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17062p
17063n
17064b repl
17065:more1
17066s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17067p
17068g
17069s/.\{148\}//
17070t nl
17071:delim
17072h
ea2e69a4 17073s/\(.\{148\}\)..*/\1/
e440a328 17074t more2
17075s/["\\]/\\&/g; s/^/"/; s/$/"/
17076p
17077b
17078:more2
17079s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17080p
17081g
17082s/.\{148\}//
17083t delim
17084' <conf$$subs.awk | sed '
17085/^[^""]/{
17086 N
17087 s/\n//
17088}
17089' >>$CONFIG_STATUS || ac_write_fail=1
17090rm -f conf$$subs.awk
17091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17092_ACAWK
ea2e69a4 17093cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
e440a328 17094 for (key in S) S_is_set[key] = 1
17095 FS = "\a"
17096
17097}
17098{
17099 line = $ 0
17100 nfields = split(line, field, "@")
17101 substed = 0
17102 len = length(field[1])
17103 for (i = 2; i < nfields; i++) {
17104 key = field[i]
17105 keylen = length(key)
17106 if (S_is_set[key]) {
17107 value = S[key]
17108 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17109 len += length(value) + length(field[++i])
17110 substed = 1
17111 } else
17112 len += 1 + keylen
17113 }
17114
17115 print line
17116}
17117
17118_ACAWK
17119_ACEOF
17120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17121if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17122 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17123else
17124 cat
ea2e69a4 17125fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17126 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
e440a328 17127_ACEOF
17128
ea2e69a4 17129# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17130# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e440a328 17131# trailing colons and then remove the whole line if VPATH becomes empty
17132# (actually we leave an empty line to preserve line numbers).
17133if test "x$srcdir" = x.; then
ea2e69a4 17134 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17135h
17136s///
17137s/^/:/
17138s/[ ]*$/:/
17139s/:\$(srcdir):/:/g
17140s/:\${srcdir}:/:/g
17141s/:@srcdir@:/:/g
17142s/^:*//
e440a328 17143s/:*$//
ea2e69a4 17144x
17145s/\(=[ ]*\).*/\1/
17146G
17147s/\n//
e440a328 17148s/^[^=]*=[ ]*$//
17149}'
17150fi
17151
17152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17153fi # test -n "$CONFIG_FILES"
17154
17155# Set up the scripts for CONFIG_HEADERS section.
17156# No need to generate them if there are no CONFIG_HEADERS.
17157# This happens for instance with `./config.status Makefile'.
17158if test -n "$CONFIG_HEADERS"; then
ea2e69a4 17159cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
e440a328 17160BEGIN {
17161_ACEOF
17162
17163# Transform confdefs.h into an awk script `defines.awk', embedded as
17164# here-document in config.status, that substitutes the proper values into
17165# config.h.in to produce config.h.
17166
17167# Create a delimiter string that does not exist in confdefs.h, to ease
17168# handling of long lines.
17169ac_delim='%!_!# '
17170for ac_last_try in false false :; do
ea2e69a4 17171 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17172 if test -z "$ac_tt"; then
e440a328 17173 break
17174 elif $ac_last_try; then
ea2e69a4 17175 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
e440a328 17176 else
17177 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17178 fi
17179done
17180
17181# For the awk script, D is an array of macro values keyed by name,
17182# likewise P contains macro parameters if any. Preserve backslash
17183# newline sequences.
17184
17185ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17186sed -n '
17187s/.\{148\}/&'"$ac_delim"'/g
17188t rset
17189:rset
17190s/^[ ]*#[ ]*define[ ][ ]*/ /
17191t def
17192d
17193:def
17194s/\\$//
17195t bsnl
17196s/["\\]/\\&/g
17197s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17198D["\1"]=" \3"/p
17199s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17200d
17201:bsnl
17202s/["\\]/\\&/g
17203s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17204D["\1"]=" \3\\\\\\n"\\/p
17205t cont
17206s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17207t cont
17208d
17209:cont
17210n
17211s/.\{148\}/&'"$ac_delim"'/g
17212t clear
17213:clear
17214s/\\$//
17215t bsnlc
17216s/["\\]/\\&/g; s/^/"/; s/$/"/p
17217d
17218:bsnlc
17219s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17220b cont
17221' <confdefs.h | sed '
17222s/'"$ac_delim"'/"\\\
17223"/g' >>$CONFIG_STATUS || ac_write_fail=1
17224
17225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17226 for (key in D) D_is_set[key] = 1
17227 FS = "\a"
17228}
17229/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17230 line = \$ 0
17231 split(line, arg, " ")
17232 if (arg[1] == "#") {
17233 defundef = arg[2]
17234 mac1 = arg[3]
17235 } else {
17236 defundef = substr(arg[1], 2)
17237 mac1 = arg[2]
17238 }
17239 split(mac1, mac2, "(") #)
17240 macro = mac2[1]
17241 prefix = substr(line, 1, index(line, defundef) - 1)
17242 if (D_is_set[macro]) {
17243 # Preserve the white space surrounding the "#".
17244 print prefix "define", macro P[macro] D[macro]
17245 next
17246 } else {
17247 # Replace #undef with comments. This is necessary, for example,
17248 # in the case of _POSIX_SOURCE, which is predefined and required
17249 # on some systems where configure will not decide to define it.
17250 if (defundef == "undef") {
17251 print "/*", prefix defundef, macro, "*/"
17252 next
17253 }
17254 }
17255}
17256{ print }
17257_ACAWK
17258_ACEOF
17259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ea2e69a4 17260 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
e440a328 17261fi # test -n "$CONFIG_HEADERS"
17262
17263
17264eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17265shift
17266for ac_tag
17267do
17268 case $ac_tag in
17269 :[FHLC]) ac_mode=$ac_tag; continue;;
17270 esac
17271 case $ac_mode$ac_tag in
17272 :[FHL]*:*);;
ea2e69a4 17273 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e440a328 17274 :[FH]-) ac_tag=-:-;;
17275 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17276 esac
17277 ac_save_IFS=$IFS
17278 IFS=:
17279 set x $ac_tag
17280 IFS=$ac_save_IFS
17281 shift
17282 ac_file=$1
17283 shift
17284
17285 case $ac_mode in
17286 :L) ac_source=$1;;
17287 :[FH])
17288 ac_file_inputs=
17289 for ac_f
17290 do
17291 case $ac_f in
ea2e69a4 17292 -) ac_f="$ac_tmp/stdin";;
e440a328 17293 *) # Look for the file first in the build tree, then in the source tree
17294 # (if the path is not absolute). The absolute path cannot be DOS-style,
17295 # because $ac_f cannot contain `:'.
17296 test -f "$ac_f" ||
17297 case $ac_f in
17298 [\\/$]*) false;;
17299 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17300 esac ||
ea2e69a4 17301 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e440a328 17302 esac
17303 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17304 as_fn_append ac_file_inputs " '$ac_f'"
17305 done
17306
17307 # Let's still pretend it is `configure' which instantiates (i.e., don't
17308 # use $as_me), people would be surprised to read:
17309 # /* config.h. Generated by config.status. */
17310 configure_input='Generated from '`
17311 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17312 `' by configure.'
17313 if test x"$ac_file" != x-; then
17314 configure_input="$ac_file. $configure_input"
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17316$as_echo "$as_me: creating $ac_file" >&6;}
17317 fi
17318 # Neutralize special characters interpreted by sed in replacement strings.
17319 case $configure_input in #(
17320 *\&* | *\|* | *\\* )
17321 ac_sed_conf_input=`$as_echo "$configure_input" |
17322 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17323 *) ac_sed_conf_input=$configure_input;;
17324 esac
17325
17326 case $ac_tag in
ea2e69a4 17327 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e440a328 17329 esac
17330 ;;
17331 esac
17332
17333 ac_dir=`$as_dirname -- "$ac_file" ||
17334$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17335 X"$ac_file" : 'X\(//\)[^/]' \| \
17336 X"$ac_file" : 'X\(//\)$' \| \
17337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17338$as_echo X"$ac_file" |
17339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17340 s//\1/
17341 q
17342 }
17343 /^X\(\/\/\)[^/].*/{
17344 s//\1/
17345 q
17346 }
17347 /^X\(\/\/\)$/{
17348 s//\1/
17349 q
17350 }
17351 /^X\(\/\).*/{
17352 s//\1/
17353 q
17354 }
17355 s/.*/./; q'`
17356 as_dir="$ac_dir"; as_fn_mkdir_p
17357 ac_builddir=.
17358
17359case "$ac_dir" in
17360.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17361*)
17362 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17363 # A ".." for each directory in $ac_dir_suffix.
17364 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17365 case $ac_top_builddir_sub in
17366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17368 esac ;;
17369esac
17370ac_abs_top_builddir=$ac_pwd
17371ac_abs_builddir=$ac_pwd$ac_dir_suffix
17372# for backward compatibility:
17373ac_top_builddir=$ac_top_build_prefix
17374
17375case $srcdir in
17376 .) # We are building in place.
17377 ac_srcdir=.
17378 ac_top_srcdir=$ac_top_builddir_sub
17379 ac_abs_top_srcdir=$ac_pwd ;;
17380 [\\/]* | ?:[\\/]* ) # Absolute name.
17381 ac_srcdir=$srcdir$ac_dir_suffix;
17382 ac_top_srcdir=$srcdir
17383 ac_abs_top_srcdir=$srcdir ;;
17384 *) # Relative name.
17385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17386 ac_top_srcdir=$ac_top_build_prefix$srcdir
17387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17388esac
17389ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17390
17391
17392 case $ac_mode in
17393 :F)
17394 #
17395 # CONFIG_FILE
17396 #
17397
17398 case $INSTALL in
17399 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17400 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17401 esac
17402 ac_MKDIR_P=$MKDIR_P
17403 case $MKDIR_P in
17404 [\\/$]* | ?:[\\/]* ) ;;
17405 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17406 esac
17407_ACEOF
17408
17409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17410# If the template does not know about datarootdir, expand it.
17411# FIXME: This hack should be removed a few years after 2.60.
17412ac_datarootdir_hack=; ac_datarootdir_seen=
17413ac_sed_dataroot='
17414/datarootdir/ {
17415 p
17416 q
17417}
17418/@datadir@/p
17419/@docdir@/p
17420/@infodir@/p
17421/@localedir@/p
17422/@mandir@/p'
17423case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17424*datarootdir*) ac_datarootdir_seen=yes;;
17425*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17427$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17428_ACEOF
17429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430 ac_datarootdir_hack='
17431 s&@datadir@&$datadir&g
17432 s&@docdir@&$docdir&g
17433 s&@infodir@&$infodir&g
17434 s&@localedir@&$localedir&g
17435 s&@mandir@&$mandir&g
17436 s&\\\${datarootdir}&$datarootdir&g' ;;
17437esac
17438_ACEOF
17439
17440# Neutralize VPATH when `$srcdir' = `.'.
17441# Shell code in configure.ac might set extrasub.
17442# FIXME: do we really want to maintain this feature?
17443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17444ac_sed_extra="$ac_vpsub
17445$extrasub
17446_ACEOF
17447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17448:t
17449/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17450s|@configure_input@|$ac_sed_conf_input|;t t
17451s&@top_builddir@&$ac_top_builddir_sub&;t t
17452s&@top_build_prefix@&$ac_top_build_prefix&;t t
17453s&@srcdir@&$ac_srcdir&;t t
17454s&@abs_srcdir@&$ac_abs_srcdir&;t t
17455s&@top_srcdir@&$ac_top_srcdir&;t t
17456s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17457s&@builddir@&$ac_builddir&;t t
17458s&@abs_builddir@&$ac_abs_builddir&;t t
17459s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17460s&@INSTALL@&$ac_INSTALL&;t t
17461s&@MKDIR_P@&$ac_MKDIR_P&;t t
17462$ac_datarootdir_hack
17463"
ea2e69a4 17464eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17465 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e440a328 17466
17467test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ea2e69a4 17468 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17469 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17470 "$ac_tmp/out"`; test -z "$ac_out"; } &&
e440a328 17471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ea2e69a4 17472which seems to be undefined. Please make sure it is defined" >&5
e440a328 17473$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ea2e69a4 17474which seems to be undefined. Please make sure it is defined" >&2;}
e440a328 17475
ea2e69a4 17476 rm -f "$ac_tmp/stdin"
e440a328 17477 case $ac_file in
ea2e69a4 17478 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17479 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
e440a328 17480 esac \
ea2e69a4 17481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e440a328 17482 ;;
17483 :H)
17484 #
17485 # CONFIG_HEADER
17486 #
17487 if test x"$ac_file" != x-; then
17488 {
17489 $as_echo "/* $configure_input */" \
ea2e69a4 17490 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17491 } >"$ac_tmp/config.h" \
17492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17493 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
e440a328 17494 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17495$as_echo "$as_me: $ac_file is unchanged" >&6;}
17496 else
17497 rm -f "$ac_file"
ea2e69a4 17498 mv "$ac_tmp/config.h" "$ac_file" \
17499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e440a328 17500 fi
17501 else
17502 $as_echo "/* $configure_input */" \
ea2e69a4 17503 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17504 || as_fn_error $? "could not create -" "$LINENO" 5
e440a328 17505 fi
17506# Compute "$ac_file"'s index in $config_headers.
17507_am_arg="$ac_file"
17508_am_stamp_count=1
17509for _am_header in $config_headers :; do
17510 case $_am_header in
17511 $_am_arg | $_am_arg:* )
17512 break ;;
17513 * )
17514 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17515 esac
17516done
17517echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17518$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17519 X"$_am_arg" : 'X\(//\)[^/]' \| \
17520 X"$_am_arg" : 'X\(//\)$' \| \
17521 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17522$as_echo X"$_am_arg" |
17523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17524 s//\1/
17525 q
17526 }
17527 /^X\(\/\/\)[^/].*/{
17528 s//\1/
17529 q
17530 }
17531 /^X\(\/\/\)$/{
17532 s//\1/
17533 q
17534 }
17535 /^X\(\/\).*/{
17536 s//\1/
17537 q
17538 }
17539 s/.*/./; q'`/stamp-h$_am_stamp_count
17540 ;;
17541
17542 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17543$as_echo "$as_me: executing $ac_file commands" >&6;}
17544 ;;
17545 esac
17546
17547
17548 case $ac_file$ac_mode in
17549 "default-1":C)
17550# Only add multilib support code if we just rebuilt the top-level
17551# Makefile.
17552case " $CONFIG_FILES " in
17553 *" Makefile "*)
17554 ac_file=Makefile . ${multi_basedir}/config-ml.in
17555 ;;
17556esac ;;
17557 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
ea2e69a4 17558 # Older Autoconf quotes --file arguments for eval, but not when files
e440a328 17559 # are listed without --file. Let's play safe and only enable the eval
17560 # if we detect the quoting.
17561 case $CONFIG_FILES in
17562 *\'*) eval set x "$CONFIG_FILES" ;;
17563 *) set x $CONFIG_FILES ;;
17564 esac
17565 shift
17566 for mf
17567 do
17568 # Strip MF so we end up with the name of the file.
17569 mf=`echo "$mf" | sed -e 's/:.*$//'`
17570 # Check whether this is an Automake generated Makefile or not.
ea2e69a4 17571 # We used to match only the files named 'Makefile.in', but
e440a328 17572 # some people rename them; so instead we look at the file content.
17573 # Grep'ing the first line is not enough: some people post-process
17574 # each Makefile.in and add a new line on top of each file to say so.
17575 # Grep'ing the whole file is not good either: AIX grep has a line
17576 # limit of 2048, but all sed's we know have understand at least 4000.
17577 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17578 dirpart=`$as_dirname -- "$mf" ||
17579$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17580 X"$mf" : 'X\(//\)[^/]' \| \
17581 X"$mf" : 'X\(//\)$' \| \
17582 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17583$as_echo X"$mf" |
17584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17585 s//\1/
17586 q
17587 }
17588 /^X\(\/\/\)[^/].*/{
17589 s//\1/
17590 q
17591 }
17592 /^X\(\/\/\)$/{
17593 s//\1/
17594 q
17595 }
17596 /^X\(\/\).*/{
17597 s//\1/
17598 q
17599 }
17600 s/.*/./; q'`
17601 else
17602 continue
17603 fi
17604 # Extract the definition of DEPDIR, am__include, and am__quote
ea2e69a4 17605 # from the Makefile without running 'make'.
e440a328 17606 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17607 test -z "$DEPDIR" && continue
17608 am__include=`sed -n 's/^am__include = //p' < "$mf"`
ea2e69a4 17609 test -z "$am__include" && continue
e440a328 17610 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
e440a328 17611 # Find all dependency output files, they are included files with
17612 # $(DEPDIR) in their names. We invoke sed twice because it is the
17613 # simplest approach to changing $(DEPDIR) to its actual value in the
17614 # expansion.
17615 for file in `sed -n "
17616 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
ea2e69a4 17617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
e440a328 17618 # Make sure the directory exists.
17619 test -f "$dirpart/$file" && continue
17620 fdir=`$as_dirname -- "$file" ||
17621$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17622 X"$file" : 'X\(//\)[^/]' \| \
17623 X"$file" : 'X\(//\)$' \| \
17624 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17625$as_echo X"$file" |
17626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17627 s//\1/
17628 q
17629 }
17630 /^X\(\/\/\)[^/].*/{
17631 s//\1/
17632 q
17633 }
17634 /^X\(\/\/\)$/{
17635 s//\1/
17636 q
17637 }
17638 /^X\(\/\).*/{
17639 s//\1/
17640 q
17641 }
17642 s/.*/./; q'`
17643 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17644 # echo "creating $dirpart/$file"
17645 echo '# dummy' > "$dirpart/$file"
17646 done
17647 done
17648}
17649 ;;
17650 "libtool":C)
17651
17652 # See if we are running on zsh, and set the options which allow our
17653 # commands through without removal of \ escapes.
17654 if test -n "${ZSH_VERSION+set}" ; then
17655 setopt NO_GLOB_SUBST
17656 fi
17657
17658 cfgfile="${ofile}T"
17659 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17660 $RM "$cfgfile"
17661
17662 cat <<_LT_EOF >> "$cfgfile"
17663#! $SHELL
17664
17665# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17666# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17667# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17668# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17669#
17670# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17671# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17672# Written by Gordon Matzigkeit, 1996
17673#
17674# This file is part of GNU Libtool.
17675#
17676# GNU Libtool is free software; you can redistribute it and/or
17677# modify it under the terms of the GNU General Public License as
17678# published by the Free Software Foundation; either version 2 of
17679# the License, or (at your option) any later version.
17680#
17681# As a special exception to the GNU General Public License,
17682# if you distribute this file as part of a program or library that
17683# is built using GNU Libtool, you may include this file under the
17684# same distribution terms that you use for the rest of that program.
17685#
17686# GNU Libtool is distributed in the hope that it will be useful,
17687# but WITHOUT ANY WARRANTY; without even the implied warranty of
17688# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17689# GNU General Public License for more details.
17690#
17691# You should have received a copy of the GNU General Public License
17692# along with GNU Libtool; see the file COPYING. If not, a copy
17693# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17694# obtained by writing to the Free Software Foundation, Inc.,
17695# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17696
17697
17698# The names of the tagged configurations supported by this script.
17699available_tags="GO "
17700
17701# ### BEGIN LIBTOOL CONFIG
17702
17703# A sed program that does not truncate output.
17704SED=$lt_SED
17705
17706# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17707Xsed="\$SED -e 1s/^X//"
17708
17709# A grep program that handles long lines.
17710GREP=$lt_GREP
17711
17712# An ERE matcher.
17713EGREP=$lt_EGREP
17714
17715# A literal string matcher.
17716FGREP=$lt_FGREP
17717
17718# Shell to use when invoking shell scripts.
17719SHELL=$lt_SHELL
17720
17721# An echo program that protects backslashes.
17722ECHO=$lt_ECHO
17723
17724# Which release of libtool.m4 was used?
17725macro_version=$macro_version
17726macro_revision=$macro_revision
17727
17728# Whether or not to build shared libraries.
17729build_libtool_libs=$enable_shared
17730
17731# Whether or not to build static libraries.
17732build_old_libs=$enable_static
17733
17734# What type of objects to build.
17735pic_mode=$pic_mode
17736
17737# Whether or not to optimize for fast installation.
17738fast_install=$enable_fast_install
17739
17740# The host system.
17741host_alias=$host_alias
17742host=$host
17743host_os=$host_os
17744
17745# The build system.
17746build_alias=$build_alias
17747build=$build
17748build_os=$build_os
17749
17750# A BSD- or MS-compatible name lister.
17751NM=$lt_NM
17752
17753# Whether we need soft or hard links.
17754LN_S=$lt_LN_S
17755
17756# What is the maximum length of a command?
17757max_cmd_len=$max_cmd_len
17758
17759# Object file suffix (normally "o").
17760objext=$ac_objext
17761
17762# Executable file suffix (normally "").
17763exeext=$exeext
17764
17765# whether the shell understands "unset".
17766lt_unset=$lt_unset
17767
17768# turn spaces into newlines.
17769SP2NL=$lt_lt_SP2NL
17770
17771# turn newlines into spaces.
17772NL2SP=$lt_lt_NL2SP
17773
17774# An object symbol dumper.
17775OBJDUMP=$lt_OBJDUMP
17776
17777# Method to check whether dependent libraries are shared objects.
17778deplibs_check_method=$lt_deplibs_check_method
17779
17780# Command to use when deplibs_check_method == "file_magic".
17781file_magic_cmd=$lt_file_magic_cmd
17782
17783# The archiver.
17784AR=$lt_AR
17785AR_FLAGS=$lt_AR_FLAGS
17786
17787# A symbol stripping program.
17788STRIP=$lt_STRIP
17789
17790# Commands used to install an old-style archive.
17791RANLIB=$lt_RANLIB
17792old_postinstall_cmds=$lt_old_postinstall_cmds
17793old_postuninstall_cmds=$lt_old_postuninstall_cmds
17794
17795# Whether to use a lock for old archive extraction.
17796lock_old_archive_extraction=$lock_old_archive_extraction
17797
17798# A C compiler.
17799LTCC=$lt_CC
17800
17801# LTCC compiler flags.
17802LTCFLAGS=$lt_CFLAGS
17803
17804# Take the output of nm and produce a listing of raw symbols and C names.
17805global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17806
17807# Transform the output of nm in a proper C declaration.
17808global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17809
17810# Transform the output of nm in a C name address pair.
17811global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17812
17813# Transform the output of nm in a C name address pair when lib prefix is needed.
17814global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17815
17816# The name of the directory that contains temporary libtool files.
17817objdir=$objdir
17818
17819# Used to examine libraries when file_magic_cmd begins with "file".
17820MAGIC_CMD=$MAGIC_CMD
17821
17822# Must we lock files when doing compilation?
17823need_locks=$lt_need_locks
17824
17825# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17826DSYMUTIL=$lt_DSYMUTIL
17827
17828# Tool to change global to local symbols on Mac OS X.
17829NMEDIT=$lt_NMEDIT
17830
17831# Tool to manipulate fat objects and archives on Mac OS X.
17832LIPO=$lt_LIPO
17833
17834# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17835OTOOL=$lt_OTOOL
17836
17837# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17838OTOOL64=$lt_OTOOL64
17839
17840# Old archive suffix (normally "a").
17841libext=$libext
17842
17843# Shared library suffix (normally ".so").
17844shrext_cmds=$lt_shrext_cmds
17845
17846# The commands to extract the exported symbol list from a shared archive.
17847extract_expsyms_cmds=$lt_extract_expsyms_cmds
17848
17849# Variables whose values should be saved in libtool wrapper scripts and
17850# restored at link time.
17851variables_saved_for_relink=$lt_variables_saved_for_relink
17852
17853# Do we need the "lib" prefix for modules?
17854need_lib_prefix=$need_lib_prefix
17855
17856# Do we need a version for libraries?
17857need_version=$need_version
17858
17859# Library versioning type.
17860version_type=$version_type
17861
17862# Shared library runtime path variable.
17863runpath_var=$runpath_var
17864
17865# Shared library path variable.
17866shlibpath_var=$shlibpath_var
17867
17868# Is shlibpath searched before the hard-coded library search path?
17869shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17870
17871# Format of library name prefix.
17872libname_spec=$lt_libname_spec
17873
17874# List of archive names. First name is the real one, the rest are links.
17875# The last name is the one that the linker finds with -lNAME
17876library_names_spec=$lt_library_names_spec
17877
17878# The coded name of the library, if different from the real name.
17879soname_spec=$lt_soname_spec
17880
17881# Permission mode override for installation of shared libraries.
17882install_override_mode=$lt_install_override_mode
17883
17884# Command to use after installation of a shared archive.
17885postinstall_cmds=$lt_postinstall_cmds
17886
17887# Command to use after uninstallation of a shared archive.
17888postuninstall_cmds=$lt_postuninstall_cmds
17889
17890# Commands used to finish a libtool library installation in a directory.
17891finish_cmds=$lt_finish_cmds
17892
17893# As "finish_cmds", except a single script fragment to be evaled but
17894# not shown.
17895finish_eval=$lt_finish_eval
17896
17897# Whether we should hardcode library paths into libraries.
17898hardcode_into_libs=$hardcode_into_libs
17899
17900# Compile-time system search path for libraries.
17901sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17902
17903# Run-time system search path for libraries.
17904sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17905
17906# Whether dlopen is supported.
17907dlopen_support=$enable_dlopen
17908
17909# Whether dlopen of programs is supported.
17910dlopen_self=$enable_dlopen_self
17911
17912# Whether dlopen of statically linked programs is supported.
17913dlopen_self_static=$enable_dlopen_self_static
17914
17915# Commands to strip libraries.
17916old_striplib=$lt_old_striplib
17917striplib=$lt_striplib
17918
17919
17920# The linker used to build libraries.
17921LD=$lt_LD
17922
17923# How to create reloadable object files.
17924reload_flag=$lt_reload_flag
17925reload_cmds=$lt_reload_cmds
17926
17927# Commands used to build an old-style archive.
17928old_archive_cmds=$lt_old_archive_cmds
17929
17930# A language specific compiler.
17931CC=$lt_compiler
17932
17933# Is the compiler the GNU compiler?
17934with_gcc=$GCC
17935
17936# Compiler flag to turn off builtin functions.
17937no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17938
17939# How to pass a linker flag through the compiler.
17940wl=$lt_lt_prog_compiler_wl
17941
17942# Additional compiler flags for building library objects.
17943pic_flag=$lt_lt_prog_compiler_pic
17944
17945# Compiler flag to prevent dynamic linking.
17946link_static_flag=$lt_lt_prog_compiler_static
17947
17948# Does compiler simultaneously support -c and -o options?
17949compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17950
17951# Whether or not to add -lc for building shared libraries.
17952build_libtool_need_lc=$archive_cmds_need_lc
17953
17954# Whether or not to disallow shared libs when runtime libs are static.
17955allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17956
17957# Compiler flag to allow reflexive dlopens.
17958export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17959
17960# Compiler flag to generate shared objects directly from archives.
17961whole_archive_flag_spec=$lt_whole_archive_flag_spec
17962
17963# Whether the compiler copes with passing no objects directly.
17964compiler_needs_object=$lt_compiler_needs_object
17965
17966# Create an old-style archive from a shared archive.
17967old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17968
17969# Create a temporary old-style archive to link instead of a shared archive.
17970old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17971
17972# Commands used to build a shared archive.
17973archive_cmds=$lt_archive_cmds
17974archive_expsym_cmds=$lt_archive_expsym_cmds
17975
17976# Commands used to build a loadable module if different from building
17977# a shared archive.
17978module_cmds=$lt_module_cmds
17979module_expsym_cmds=$lt_module_expsym_cmds
17980
17981# Whether we are building with GNU ld or not.
17982with_gnu_ld=$lt_with_gnu_ld
17983
17984# Flag that allows shared libraries with undefined symbols to be built.
17985allow_undefined_flag=$lt_allow_undefined_flag
17986
17987# Flag that enforces no undefined symbols.
17988no_undefined_flag=$lt_no_undefined_flag
17989
17990# Flag to hardcode \$libdir into a binary during linking.
17991# This must work even if \$libdir does not exist
17992hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17993
17994# If ld is used when linking, flag to hardcode \$libdir into a binary
17995# during linking. This must work even if \$libdir does not exist.
17996hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17997
17998# Whether we need a single "-rpath" flag with a separated argument.
17999hardcode_libdir_separator=$lt_hardcode_libdir_separator
18000
18001# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18002# DIR into the resulting binary.
18003hardcode_direct=$hardcode_direct
18004
18005# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18006# DIR into the resulting binary and the resulting library dependency is
18007# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18008# library is relocated.
18009hardcode_direct_absolute=$hardcode_direct_absolute
18010
18011# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18012# into the resulting binary.
18013hardcode_minus_L=$hardcode_minus_L
18014
18015# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18016# into the resulting binary.
18017hardcode_shlibpath_var=$hardcode_shlibpath_var
18018
18019# Set to "yes" if building a shared library automatically hardcodes DIR
18020# into the library and all subsequent libraries and executables linked
18021# against it.
18022hardcode_automatic=$hardcode_automatic
18023
18024# Set to yes if linker adds runtime paths of dependent libraries
18025# to runtime path list.
18026inherit_rpath=$inherit_rpath
18027
18028# Whether libtool must link a program against all its dependency libraries.
18029link_all_deplibs=$link_all_deplibs
18030
18031# Fix the shell variable \$srcfile for the compiler.
18032fix_srcfile_path=$lt_fix_srcfile_path
18033
18034# Set to "yes" if exported symbols are required.
18035always_export_symbols=$always_export_symbols
18036
18037# The commands to list exported symbols.
18038export_symbols_cmds=$lt_export_symbols_cmds
18039
18040# Symbols that should not be listed in the preloaded symbols.
18041exclude_expsyms=$lt_exclude_expsyms
18042
18043# Symbols that must always be exported.
18044include_expsyms=$lt_include_expsyms
18045
18046# Commands necessary for linking programs (against libraries) with templates.
18047prelink_cmds=$lt_prelink_cmds
18048
18049# Specify filename containing input files.
18050file_list_spec=$lt_file_list_spec
18051
18052# How to hardcode a shared library path into an executable.
18053hardcode_action=$hardcode_action
18054
18055# ### END LIBTOOL CONFIG
18056
18057_LT_EOF
18058
18059 case $host_os in
18060 aix3*)
18061 cat <<\_LT_EOF >> "$cfgfile"
18062# AIX sometimes has problems with the GCC collect2 program. For some
18063# reason, if we set the COLLECT_NAMES environment variable, the problems
18064# vanish in a puff of smoke.
18065if test "X${COLLECT_NAMES+set}" != Xset; then
18066 COLLECT_NAMES=
18067 export COLLECT_NAMES
18068fi
18069_LT_EOF
18070 ;;
18071 esac
18072
18073
18074ltmain="$ac_aux_dir/ltmain.sh"
18075
18076
18077 # We use sed instead of cat because bash on DJGPP gets confused if
18078 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18079 # text mode, it properly converts lines to CR/LF. This bash problem
18080 # is reportedly fixed, but why not run on old versions too?
18081 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18082 || (rm -f "$cfgfile"; exit 1)
18083
18084 case $xsi_shell in
18085 yes)
18086 cat << \_LT_EOF >> "$cfgfile"
18087
18088# func_dirname file append nondir_replacement
18089# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18090# otherwise set result to NONDIR_REPLACEMENT.
18091func_dirname ()
18092{
18093 case ${1} in
18094 */*) func_dirname_result="${1%/*}${2}" ;;
18095 * ) func_dirname_result="${3}" ;;
18096 esac
18097}
18098
18099# func_basename file
18100func_basename ()
18101{
18102 func_basename_result="${1##*/}"
18103}
18104
18105# func_dirname_and_basename file append nondir_replacement
18106# perform func_basename and func_dirname in a single function
18107# call:
18108# dirname: Compute the dirname of FILE. If nonempty,
18109# add APPEND to the result, otherwise set result
18110# to NONDIR_REPLACEMENT.
18111# value returned in "$func_dirname_result"
18112# basename: Compute filename of FILE.
18113# value retuned in "$func_basename_result"
18114# Implementation must be kept synchronized with func_dirname
18115# and func_basename. For efficiency, we do not delegate to
18116# those functions but instead duplicate the functionality here.
18117func_dirname_and_basename ()
18118{
18119 case ${1} in
18120 */*) func_dirname_result="${1%/*}${2}" ;;
18121 * ) func_dirname_result="${3}" ;;
18122 esac
18123 func_basename_result="${1##*/}"
18124}
18125
18126# func_stripname prefix suffix name
18127# strip PREFIX and SUFFIX off of NAME.
18128# PREFIX and SUFFIX must not contain globbing or regex special
18129# characters, hashes, percent signs, but SUFFIX may contain a leading
18130# dot (in which case that matches only a dot).
18131func_stripname ()
18132{
18133 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18134 # positional parameters, so assign one to ordinary parameter first.
18135 func_stripname_result=${3}
18136 func_stripname_result=${func_stripname_result#"${1}"}
18137 func_stripname_result=${func_stripname_result%"${2}"}
18138}
18139
18140# func_opt_split
18141func_opt_split ()
18142{
18143 func_opt_split_opt=${1%%=*}
18144 func_opt_split_arg=${1#*=}
18145}
18146
18147# func_lo2o object
18148func_lo2o ()
18149{
18150 case ${1} in
18151 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18152 *) func_lo2o_result=${1} ;;
18153 esac
18154}
18155
18156# func_xform libobj-or-source
18157func_xform ()
18158{
18159 func_xform_result=${1%.*}.lo
18160}
18161
18162# func_arith arithmetic-term...
18163func_arith ()
18164{
18165 func_arith_result=$(( $* ))
18166}
18167
18168# func_len string
18169# STRING may not start with a hyphen.
18170func_len ()
18171{
18172 func_len_result=${#1}
18173}
18174
18175_LT_EOF
18176 ;;
18177 *) # Bourne compatible functions.
18178 cat << \_LT_EOF >> "$cfgfile"
18179
18180# func_dirname file append nondir_replacement
18181# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18182# otherwise set result to NONDIR_REPLACEMENT.
18183func_dirname ()
18184{
18185 # Extract subdirectory from the argument.
18186 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18187 if test "X$func_dirname_result" = "X${1}"; then
18188 func_dirname_result="${3}"
18189 else
18190 func_dirname_result="$func_dirname_result${2}"
18191 fi
18192}
18193
18194# func_basename file
18195func_basename ()
18196{
18197 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18198}
18199
18200
18201# func_stripname prefix suffix name
18202# strip PREFIX and SUFFIX off of NAME.
18203# PREFIX and SUFFIX must not contain globbing or regex special
18204# characters, hashes, percent signs, but SUFFIX may contain a leading
18205# dot (in which case that matches only a dot).
18206# func_strip_suffix prefix name
18207func_stripname ()
18208{
18209 case ${2} in
18210 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18211 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18212 esac
18213}
18214
18215# sed scripts:
18216my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18217my_sed_long_arg='1s/^-[^=]*=//'
18218
18219# func_opt_split
18220func_opt_split ()
18221{
18222 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18223 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18224}
18225
18226# func_lo2o object
18227func_lo2o ()
18228{
18229 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18230}
18231
18232# func_xform libobj-or-source
18233func_xform ()
18234{
18235 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18236}
18237
18238# func_arith arithmetic-term...
18239func_arith ()
18240{
18241 func_arith_result=`expr "$@"`
18242}
18243
18244# func_len string
18245# STRING may not start with a hyphen.
18246func_len ()
18247{
18248 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18249}
18250
18251_LT_EOF
18252esac
18253
18254case $lt_shell_append in
18255 yes)
18256 cat << \_LT_EOF >> "$cfgfile"
18257
18258# func_append var value
18259# Append VALUE to the end of shell variable VAR.
18260func_append ()
18261{
18262 eval "$1+=\$2"
18263}
18264_LT_EOF
18265 ;;
18266 *)
18267 cat << \_LT_EOF >> "$cfgfile"
18268
18269# func_append var value
18270# Append VALUE to the end of shell variable VAR.
18271func_append ()
18272{
18273 eval "$1=\$$1\$2"
18274}
18275
18276_LT_EOF
18277 ;;
18278 esac
18279
18280
18281 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18282 || (rm -f "$cfgfile"; exit 1)
18283
18284 mv -f "$cfgfile" "$ofile" ||
18285 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18286 chmod +x "$ofile"
18287
18288
18289 cat <<_LT_EOF >> "$ofile"
18290
18291# ### BEGIN LIBTOOL TAG CONFIG: GO
18292
18293# The linker used to build libraries.
18294LD=$lt_LD_GO
18295
18296# How to create reloadable object files.
18297reload_flag=$lt_reload_flag_GO
18298reload_cmds=$lt_reload_cmds_GO
18299
18300# Commands used to build an old-style archive.
18301old_archive_cmds=$lt_old_archive_cmds_GO
18302
18303# A language specific compiler.
18304CC=$lt_compiler_GO
18305
18306# Is the compiler the GNU compiler?
18307with_gcc=$GCC_GO
18308
18309# Compiler flag to turn off builtin functions.
18310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18311
18312# How to pass a linker flag through the compiler.
18313wl=$lt_lt_prog_compiler_wl_GO
18314
18315# Additional compiler flags for building library objects.
18316pic_flag=$lt_lt_prog_compiler_pic_GO
18317
18318# Compiler flag to prevent dynamic linking.
18319link_static_flag=$lt_lt_prog_compiler_static_GO
18320
18321# Does compiler simultaneously support -c and -o options?
18322compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18323
18324# Whether or not to add -lc for building shared libraries.
18325build_libtool_need_lc=$archive_cmds_need_lc_GO
18326
18327# Whether or not to disallow shared libs when runtime libs are static.
18328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18329
18330# Compiler flag to allow reflexive dlopens.
18331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18332
18333# Compiler flag to generate shared objects directly from archives.
18334whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18335
18336# Whether the compiler copes with passing no objects directly.
18337compiler_needs_object=$lt_compiler_needs_object_GO
18338
18339# Create an old-style archive from a shared archive.
18340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18341
18342# Create a temporary old-style archive to link instead of a shared archive.
18343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18344
18345# Commands used to build a shared archive.
18346archive_cmds=$lt_archive_cmds_GO
18347archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18348
18349# Commands used to build a loadable module if different from building
18350# a shared archive.
18351module_cmds=$lt_module_cmds_GO
18352module_expsym_cmds=$lt_module_expsym_cmds_GO
18353
18354# Whether we are building with GNU ld or not.
18355with_gnu_ld=$lt_with_gnu_ld_GO
18356
18357# Flag that allows shared libraries with undefined symbols to be built.
18358allow_undefined_flag=$lt_allow_undefined_flag_GO
18359
18360# Flag that enforces no undefined symbols.
18361no_undefined_flag=$lt_no_undefined_flag_GO
18362
18363# Flag to hardcode \$libdir into a binary during linking.
18364# This must work even if \$libdir does not exist
18365hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18366
18367# If ld is used when linking, flag to hardcode \$libdir into a binary
18368# during linking. This must work even if \$libdir does not exist.
18369hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18370
18371# Whether we need a single "-rpath" flag with a separated argument.
18372hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18373
18374# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18375# DIR into the resulting binary.
18376hardcode_direct=$hardcode_direct_GO
18377
18378# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18379# DIR into the resulting binary and the resulting library dependency is
18380# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18381# library is relocated.
18382hardcode_direct_absolute=$hardcode_direct_absolute_GO
18383
18384# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18385# into the resulting binary.
18386hardcode_minus_L=$hardcode_minus_L_GO
18387
18388# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18389# into the resulting binary.
18390hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18391
18392# Set to "yes" if building a shared library automatically hardcodes DIR
18393# into the library and all subsequent libraries and executables linked
18394# against it.
18395hardcode_automatic=$hardcode_automatic_GO
18396
18397# Set to yes if linker adds runtime paths of dependent libraries
18398# to runtime path list.
18399inherit_rpath=$inherit_rpath_GO
18400
18401# Whether libtool must link a program against all its dependency libraries.
18402link_all_deplibs=$link_all_deplibs_GO
18403
18404# Fix the shell variable \$srcfile for the compiler.
18405fix_srcfile_path=$lt_fix_srcfile_path_GO
18406
18407# Set to "yes" if exported symbols are required.
18408always_export_symbols=$always_export_symbols_GO
18409
18410# The commands to list exported symbols.
18411export_symbols_cmds=$lt_export_symbols_cmds_GO
18412
18413# Symbols that should not be listed in the preloaded symbols.
18414exclude_expsyms=$lt_exclude_expsyms_GO
18415
18416# Symbols that must always be exported.
18417include_expsyms=$lt_include_expsyms_GO
18418
18419# Commands necessary for linking programs (against libraries) with templates.
18420prelink_cmds=$lt_prelink_cmds_GO
18421
18422# Specify filename containing input files.
18423file_list_spec=$lt_file_list_spec_GO
18424
18425# How to hardcode a shared library path into an executable.
18426hardcode_action=$hardcode_action_GO
18427
18428# ### END LIBTOOL TAG CONFIG: GO
18429_LT_EOF
18430
18431 ;;
18432 "default":C) if test -n "$CONFIG_FILES"; then
18433 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18434 # that multilib installs will end up installed in the correct place.
18435 # The testsuite needs it for multilib-aware ABI baseline files.
18436 # To work around this not being passed down from config-ml.in ->
18437 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18438 # append it here. Only modify Makefiles that have just been created.
18439 #
18440 # Also, get rid of this simulated-VPATH thing that automake does.
18441 cat > vpsed << \_EOF
18442s!`test -f '$<' || echo '$(srcdir)/'`!!
18443_EOF
18444 for i in $SUBDIRS; do
18445 case $CONFIG_FILES in
18446 *${i}/Makefile*)
18447 #echo "Adding MULTISUBDIR to $i/Makefile"
18448 sed -f vpsed $i/Makefile > tmp
18449 grep '^MULTISUBDIR =' Makefile >> tmp
18450 mv tmp $i/Makefile
18451 ;;
18452 esac
18453 done
18454 rm vpsed
18455 fi
18456 ;;
18457
18458 esac
18459done # for ac_tag
18460
18461
18462as_fn_exit 0
18463_ACEOF
18464ac_clean_files=$ac_clean_files_save
18465
18466test $ac_write_fail = 0 ||
ea2e69a4 18467 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
e440a328 18468
18469
18470# configure is writing to config.log, and then calls config.status.
18471# config.status does its own redirection, appending to config.log.
18472# Unfortunately, on DOS this fails, as config.log is still kept open
18473# by configure, so config.status won't be able to write to it; its
18474# output is simply discarded. So we exec the FD to /dev/null,
18475# effectively closing config.log, so it can be properly (re)opened and
18476# appended to by config.status. When coming back to configure, we
18477# need to make the FD available again.
18478if test "$no_create" != yes; then
18479 ac_cs_success=:
18480 ac_config_status_args=
18481 test "$silent" = yes &&
18482 ac_config_status_args="$ac_config_status_args --quiet"
18483 exec 5>/dev/null
18484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18485 exec 5>>config.log
18486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18487 # would make configure fail if this is the last instruction.
ea2e69a4 18488 $ac_cs_success || as_fn_exit 1
e440a328 18489fi
18490if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18492$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18493fi
18494