]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
Update ChangeLog and version files for release
[thirdparty/gcc.git] / libgo / configure
CommitLineData
7a938933
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
73b6d7a9
ILT
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.
7a938933 7#
7a938933
ILT
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.
73b6d7a9 90as_myself=
7a938933
ILT
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
73b6d7a9
ILT
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;}
7a938933
ILT
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
73b6d7a9
ILT
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
7a938933
ILT
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 :
73b6d7a9
ILT
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
7a938933
ILT
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"
73b6d7a9 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7a938933
ILT
364
365
366} # as_fn_mkdir_p
73b6d7a9
ILT
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
7a938933
ILT
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
73b6d7a9
ILT
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
7a938933
ILT
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
73b6d7a9 415# script with STATUS, using 1 if that was 0.
7a938933
ILT
416as_fn_error ()
417{
73b6d7a9
ILT
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
7a938933 422 fi
73b6d7a9 423 $as_echo "$as_me: error: $2" >&2
7a938933
ILT
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
73b6d7a9
ILT
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
7a938933
ILT
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.
73b6d7a9 534 # In both cases, we have to default to `cp -pR'.
7a938933 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
73b6d7a9 536 as_ln_s='cp -pR'
7a938933
ILT
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
73b6d7a9 540 as_ln_s='cp -pR'
7a938933
ILT
541 fi
542else
73b6d7a9 543 as_ln_s='cp -pR'
7a938933
ILT
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
73b6d7a9
ILT
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
7a938933
ILT
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
73b6d7a9
ILT
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
7a938933
ILT
569
570# Name of the host.
73b6d7a9 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
7a938933
ILT
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
476013d6
ILT
636HAVE_STAT_TIMESPEC_FALSE
637HAVE_STAT_TIMESPEC_TRUE
207c35fa
ILT
638STRUCT_EPOLL_EVENT_FD_OFFSET
639SIZEOF_STRUCT_EPOLL_EVENT
9d465faf 640MATH_FLAG
7a938933 641STRINGOPS_FLAG
0b3189e7
ILT
642HAVE_WAIT4_FALSE
643HAVE_WAIT4_TRUE
8955c80a
ILT
644HAVE_STRERROR_R_FALSE
645HAVE_STRERROR_R_TRUE
7a938933
ILT
646HAVE_SYS_MMAN_H_FALSE
647HAVE_SYS_MMAN_H_TRUE
6c94a9fa
ILT
648PTHREAD_LIBS
649PTHREAD_CFLAGS
f2ee78b8 650NET_LIBS
505b439a 651MATH_LIBS
4c46b5f0
ILT
652GOC_IS_LLGO_FALSE
653GOC_IS_LLGO_TRUE
a2bf11d1 654GO_SPLIT_STACK
7a938933
ILT
655USING_SPLIT_STACK_FALSE
656USING_SPLIT_STACK_TRUE
657SPLIT_STACK
08934aed 658HWCAP_CFLAGS
90630d19 659OSCFLAGS
de27caac
ILT
660GO_SYSCALL_OS_ARCH_FILE
661GO_SYSCALL_OS_FILE
662GO_LIBCALL_OS_ARCH_FILE
663GO_LIBCALL_OS_FILE
cba8a572 664FUNCTION_DESCRIPTORS
de0f55db
ILT
665LIBGO_IS_X86_FALSE
666LIBGO_IS_X86_TRUE
a8464243
ILT
667ALLGOARCHFAMILY
668ALLGOARCH
c3b5b97b 669GOARCH
7134cf28 670USE_DEJAGNU
a8464243 671ALLGOOS
c3b5b97b 672GOOS
22b955cc
ILT
673LIBGO_IS_BSD_FALSE
674LIBGO_IS_BSD_TRUE
d9f0237f
ILT
675LIBGO_IS_HURD_FALSE
676LIBGO_IS_HURD_TRUE
f163907e
ILT
677LIBGO_IS_AIX_FALSE
678LIBGO_IS_AIX_TRUE
f2ee78b8
ILT
679LIBGO_IS_SOLARIS_FALSE
680LIBGO_IS_SOLARIS_TRUE
7a938933
ILT
681LIBGO_IS_RTEMS_FALSE
682LIBGO_IS_RTEMS_TRUE
f038dae6
ILT
683LIBGO_IS_DRAGONFLY_FALSE
684LIBGO_IS_DRAGONFLY_TRUE
4ccad563
ILT
685LIBGO_IS_OPENBSD_FALSE
686LIBGO_IS_OPENBSD_TRUE
df4aa89a
ILT
687LIBGO_IS_NETBSD_FALSE
688LIBGO_IS_NETBSD_TRUE
7a938933
ILT
689LIBGO_IS_LINUX_FALSE
690LIBGO_IS_LINUX_TRUE
654d2ec0
ILT
691LIBGO_IS_IRIX_FALSE
692LIBGO_IS_IRIX_TRUE
7a938933
ILT
693LIBGO_IS_FREEBSD_FALSE
694LIBGO_IS_FREEBSD_TRUE
695LIBGO_IS_DARWIN_FALSE
696LIBGO_IS_DARWIN_TRUE
18c70075 697go_include
9a85ed03 698LIBATOMIC
5302cd02
ILT
699USE_LIBFFI_FALSE
700USE_LIBFFI_TRUE
7a938933
ILT
701LIBFFIINCS
702LIBFFI
317ea7c0 703nover_glibgo_toolexeclibdir
7a938933
ILT
704glibgo_toolexeclibdir
705glibgo_toolexecdir
7a938933
ILT
706WERROR
707WARN_FLAGS
d983a802 708CC_FOR_BUILD
7a938933
ILT
709enable_static
710enable_shared
061793a4 711CPP
7a938933
ILT
712OTOOL64
713OTOOL
714LIPO
715NMEDIT
716DSYMUTIL
717AR
718OBJDUMP
719LN_S
720NM
721ac_ct_DUMPBIN
722DUMPBIN
723LIBTOOL
724OBJCOPY
725RANLIB
726LD
727FGREP
728EGREP
729GREP
061793a4 730SED
7a938933
ILT
731MAINT
732MAINTAINER_MODE_FALSE
733MAINTAINER_MODE_TRUE
4d12cf3c
ILT
734am__fastdepCCAS_FALSE
735am__fastdepCCAS_TRUE
736CCASDEPMODE
737CCASFLAGS
738CCAS
73b6d7a9 739GOFLAGS
7a938933
ILT
740GOC
741am__fastdepCC_FALSE
742am__fastdepCC_TRUE
743CCDEPMODE
44c925bd 744am__nodep
7a938933
ILT
745AMDEPBACKSLASH
746AMDEP_FALSE
747AMDEP_TRUE
748am__quote
749am__include
750DEPDIR
751OBJEXT
752EXEEXT
753ac_ct_CC
754CPPFLAGS
755LDFLAGS
756CFLAGS
757CC
73b6d7a9
ILT
758AM_BACKSLASH
759AM_DEFAULT_VERBOSITY
760AM_DEFAULT_V
761AM_V
7a938933
ILT
762am__untar
763am__tar
764AMTAR
765am__leading_dot
766SET_MAKE
767AWK
768mkdir_p
769MKDIR_P
770INSTALL_STRIP_PROGRAM
771STRIP
772install_sh
773MAKEINFO
774AUTOHEADER
775AUTOMAKE
776AUTOCONF
777ACLOCAL
778VERSION
779PACKAGE
780CYGPATH_W
781am__isrc
782INSTALL_DATA
783INSTALL_SCRIPT
784INSTALL_PROGRAM
785target_os
786target_vendor
787target_cpu
788target
789host_os
790host_vendor
791host_cpu
792host
793build_os
794build_vendor
795build_cpu
796build
797multi_basedir
798libtool_VERSION
799target_alias
800host_alias
801build_alias
802LIBS
803ECHO_T
804ECHO_N
805ECHO_C
806DEFS
807mandir
808localedir
809libdir
810psdir
811pdfdir
812dvidir
813htmldir
814infodir
815docdir
816oldincludedir
817includedir
818localstatedir
819sharedstatedir
820sysconfdir
821datadir
822datarootdir
823libexecdir
824sbindir
825bindir
826program_transform_name
827prefix
828exec_prefix
829PACKAGE_URL
830PACKAGE_BUGREPORT
831PACKAGE_STRING
832PACKAGE_VERSION
833PACKAGE_TARNAME
834PACKAGE_NAME
835PATH_SEPARATOR
836SHELL'
837ac_subst_files=''
838ac_user_opts='
839enable_option_checking
840enable_multilib
73b6d7a9 841enable_silent_rules
7a938933
ILT
842enable_dependency_tracking
843enable_maintainer_mode
844with_gnu_ld
845enable_shared
846enable_static
847with_pic
848enable_fast_install
849enable_libtool_lock
0d4668c1 850enable_werror
7a938933 851enable_version_specific_runtime_libs
ba386bea 852with_toolexeclibdir
7a938933 853with_libffi
9a85ed03 854with_libatomic
54f0deb0 855with_system_libunwind
7a938933
ILT
856'
857 ac_precious_vars='build_alias
858host_alias
859target_alias
860CPP
861CPPFLAGS'
862
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
867ac_unrecognized_opts=
868ac_unrecognized_sep=
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
891# (The list follows the same order as the GNU Coding Standards.)
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
911
912ac_prev=
913ac_dashdash=
914for ac_option
915do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
73b6d7a9
ILT
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
7a938933
ILT
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
73b6d7a9 971 as_fn_error $? "invalid feature name: $ac_useropt"
7a938933
ILT
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
73b6d7a9 997 as_fn_error $? "invalid feature name: $ac_useropt"
7a938933
ILT
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
73b6d7a9 1201 as_fn_error $? "invalid package name: $ac_useropt"
7a938933
ILT
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
73b6d7a9 1217 as_fn_error $? "invalid package name: $ac_useropt"
7a938933
ILT
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
73b6d7a9
ILT
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
7a938933
ILT
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
73b6d7a9 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7a938933
ILT
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
73b6d7a9 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
7a938933
ILT
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
73b6d7a9 1274 as_fn_error $? "missing argument to $ac_option"
7a938933
ILT
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
73b6d7a9 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7a938933
ILT
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2099d446 1289 libdir localedir mandir
7a938933
ILT
1290do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
73b6d7a9 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
7a938933
ILT
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
7a938933
ILT
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
73b6d7a9 1331 as_fn_error $? "working directory cannot be determined"
7a938933 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
73b6d7a9 1333 as_fn_error $? "pwd does not report name of working directory"
7a938933
ILT
1334
1335
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367else
1368 ac_srcdir_defaulted=no
1369fi
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
73b6d7a9 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
7a938933
ILT
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
73b6d7a9 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a938933
ILT
1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
73b6d7a9 1416 -q, --quiet, --silent do not print \`checking ...' messages
7a938933
ILT
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455_ACEOF
1456
1457 cat <<\_ACEOF
1458
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 --target=TARGET configure for building compilers for TARGET [HOST]
1468_ACEOF
1469fi
1470
1471if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of package-unused version-unused:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-multilib build many library versions (default)
73b6d7a9
ILT
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-dependency-tracking
1485 do not reject slow dependency extractors
1486 --disable-dependency-tracking
1487 speeds up one-time build
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
7a938933
ILT
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
0d4668c1 1496 --enable-werror turns on -Werror [default=yes]
7a938933
ILT
1497 --enable-version-specific-runtime-libs
1498 Specify that runtime libraries should be installed
1499 in a compiler-specific directory
1500
1501Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-pic try to use only PIC/non-PIC objects [default=use
1506 both]
ba386bea
ILT
1507 --with-toolexeclibdir=DIR
1508 install libraries built with a cross compiler within
1509 DIR
7a938933 1510 --without-libffi don't use libffi
9a85ed03 1511 --without-libatomic don't use libatomic
54f0deb0 1512 --with-system-libunwind use installed libunwind
7a938933
ILT
1513
1514Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
73b6d7a9 1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a938933
ILT
1521 you have headers in a nonstandard directory <include dir>
1522 GOC Go compiler command
73b6d7a9 1523 GOFLAGS Go compiler flags
4d12cf3c
ILT
1524 CCAS assembler compiler command (defaults to CC)
1525 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
7a938933
ILT
1526 CPP C preprocessor
1527
1528Use these variables to override the choices made by `configure' or to help
1529it to find libraries and programs with nonstandard names/locations.
1530
1531Report bugs to the package provider.
1532_ACEOF
1533ac_status=$?
1534fi
1535
1536if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 continue
1542 ac_builddir=.
1543
1544case "$ac_dir" in
1545.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546*)
1547 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554esac
1555ac_abs_top_builddir=$ac_pwd
1556ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557# for backward compatibility:
1558ac_top_builddir=$ac_top_build_prefix
1559
1560case $srcdir in
1561 .) # We are building in place.
1562 ac_srcdir=.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573esac
1574ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1584 else
1585 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586 fi || ac_status=$?
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1588 done
1589fi
1590
1591test -n "$ac_init_help" && exit $ac_status
1592if $ac_init_version; then
1593 cat <<\_ACEOF
1594package-unused configure version-unused
73b6d7a9 1595generated by GNU Autoconf 2.69
7a938933 1596
73b6d7a9 1597Copyright (C) 2012 Free Software Foundation, Inc.
7a938933
ILT
1598This configure script is free software; the Free Software Foundation
1599gives unlimited permission to copy, distribute and modify it.
1600_ACEOF
1601 exit
1602fi
1603
1604## ------------------------ ##
1605## Autoconf initialization. ##
1606## ------------------------ ##
1607
1608# ac_fn_c_try_compile LINENO
1609# --------------------------
1610# Try to compile conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_compile ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1616case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619esac
1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621$as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1634 ac_retval=0
1635else
1636 $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640fi
73b6d7a9
ILT
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
7a938933
ILT
1643
1644} # ac_fn_c_try_compile
1645
061793a4
ILT
1646# ac_fn_c_try_link LINENO
1647# -----------------------
1648# Try to link conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_link ()
7a938933
ILT
1650{
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4
ILT
1652 rm -f conftest.$ac_objext conftest$ac_exeext
1653 if { { ac_try="$ac_link"
7a938933
ILT
1654case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
061793a4 1660 (eval "$ac_link") 2>conftest.err
7a938933
ILT
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
7a938933 1670 test ! -s conftest.err
061793a4
ILT
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
73b6d7a9 1673 test -x conftest$ac_exeext
7a938933
ILT
1674 }; then :
1675 ac_retval=0
1676else
1677 $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
061793a4 1680 ac_retval=1
7a938933 1681fi
061793a4
ILT
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
7a938933 1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
73b6d7a9
ILT
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
7a938933 1689
061793a4 1690} # ac_fn_c_try_link
7a938933
ILT
1691
1692# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1693# -------------------------------------------------------
1694# Tests whether HEADER exists and can be compiled using the include files in
1695# INCLUDES, setting the cache variable VAR accordingly.
1696ac_fn_c_check_header_compile ()
1697{
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1701if eval \${$3+:} false; then :
7a938933
ILT
1702 $as_echo_n "(cached) " >&6
1703else
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705/* end confdefs.h. */
1706$4
1707#include <$2>
1708_ACEOF
1709if ac_fn_c_try_compile "$LINENO"; then :
1710 eval "$3=yes"
1711else
1712 eval "$3=no"
1713fi
1714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715fi
1716eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718$as_echo "$ac_res" >&6; }
73b6d7a9 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7a938933
ILT
1720
1721} # ac_fn_c_check_header_compile
1722
061793a4
ILT
1723# ac_fn_c_try_cpp LINENO
1724# ----------------------
1725# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726ac_fn_c_try_cpp ()
7a938933
ILT
1727{
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4 1729 if { { ac_try="$ac_cpp conftest.$ac_ext"
7a938933
ILT
1730case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
061793a4 1736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
7a938933
ILT
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73b6d7a9 1744 test $ac_status = 0; } > conftest.i && {
061793a4 1745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7a938933
ILT
1746 test ! -s conftest.err
1747 }; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
061793a4
ILT
1753 ac_retval=1
1754fi
73b6d7a9
ILT
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
061793a4
ILT
1757
1758} # ac_fn_c_try_cpp
1759
1760# ac_fn_c_try_run LINENO
1761# ----------------------
1762# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1763# that executables *can* be run.
1764ac_fn_c_try_run ()
1765{
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 if { { ac_try="$ac_link"
1768case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_link") 2>&5
1775 ac_status=$?
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1778 { { case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_try") 2>&5
1785 ac_status=$?
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; }; }; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: program exited with status $ac_status" >&5
1791 $as_echo "$as_me: failed program was:" >&5
1792sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=$ac_status
7a938933
ILT
1795fi
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
73b6d7a9
ILT
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
7a938933 1799
061793a4 1800} # ac_fn_c_try_run
7a938933
ILT
1801
1802# ac_fn_c_check_func LINENO FUNC VAR
1803# ----------------------------------
1804# Tests whether FUNC exists, setting the cache variable VAR accordingly
1805ac_fn_c_check_func ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1810if eval \${$3+:} false; then :
7a938933
ILT
1811 $as_echo_n "(cached) " >&6
1812else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h. */
1815/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1817#define $2 innocuous_$2
1818
1819/* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $2 (); below.
1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1822 <limits.h> exists even on freestanding compilers. */
1823
1824#ifdef __STDC__
1825# include <limits.h>
1826#else
1827# include <assert.h>
1828#endif
1829
1830#undef $2
1831
1832/* Override any GCC internal prototype to avoid an error.
1833 Use char because int might match the return type of a GCC
1834 builtin and then its argument prototype would still apply. */
1835#ifdef __cplusplus
1836extern "C"
1837#endif
1838char $2 ();
1839/* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842#if defined __stub_$2 || defined __stub___$2
1843choke me
1844#endif
1845
1846int
1847main ()
1848{
1849return $2 ();
1850 ;
1851 return 0;
1852}
1853_ACEOF
1854if ac_fn_c_try_link "$LINENO"; then :
1855 eval "$3=yes"
1856else
1857 eval "$3=no"
1858fi
1859rm -f core conftest.err conftest.$ac_objext \
1860 conftest$ac_exeext conftest.$ac_ext
1861fi
1862eval ac_res=\$$3
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864$as_echo "$ac_res" >&6; }
73b6d7a9 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7a938933
ILT
1866
1867} # ac_fn_c_check_func
1868
1869# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1870# -------------------------------------------------------
1871# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1872# the include files in INCLUDES and setting the cache variable VAR
1873# accordingly.
1874ac_fn_c_check_header_mongrel ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
73b6d7a9 1877 if eval \${$3+:} false; then :
7a938933
ILT
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1880if eval \${$3+:} false; then :
7a938933
ILT
1881 $as_echo_n "(cached) " >&6
1882fi
1883eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886else
1887 # Is the header compilable?
1888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1889$as_echo_n "checking $2 usability... " >&6; }
1890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h. */
1892$4
1893#include <$2>
1894_ACEOF
1895if ac_fn_c_try_compile "$LINENO"; then :
1896 ac_header_compiler=yes
1897else
1898 ac_header_compiler=no
1899fi
1900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1902$as_echo "$ac_header_compiler" >&6; }
1903
1904# Is the header present?
1905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1906$as_echo_n "checking $2 presence... " >&6; }
1907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h. */
1909#include <$2>
1910_ACEOF
1911if ac_fn_c_try_cpp "$LINENO"; then :
1912 ac_header_preproc=yes
1913else
1914 ac_header_preproc=no
1915fi
73b6d7a9 1916rm -f conftest.err conftest.i conftest.$ac_ext
7a938933
ILT
1917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1918$as_echo "$ac_header_preproc" >&6; }
1919
1920# So? What about this header?
1921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1922 yes:no: )
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1924$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1926$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927 ;;
1928 no:yes:* )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1930$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1932$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1934$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1936$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1938$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 ;;
1940esac
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1943if eval \${$3+:} false; then :
7a938933
ILT
1944 $as_echo_n "(cached) " >&6
1945else
1946 eval "$3=\$ac_header_compiler"
1947fi
1948eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950$as_echo "$ac_res" >&6; }
1951fi
73b6d7a9 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7a938933
ILT
1953
1954} # ac_fn_c_check_header_mongrel
1955
1956# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1957# -------------------------------------------
1958# Tests whether TYPE exists after having included INCLUDES, setting cache
1959# variable VAR accordingly.
1960ac_fn_c_check_type ()
1961{
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1965if eval \${$3+:} false; then :
7a938933
ILT
1966 $as_echo_n "(cached) " >&6
1967else
1968 eval "$3=no"
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970/* end confdefs.h. */
1971$4
1972int
1973main ()
1974{
1975if (sizeof ($2))
1976 return 0;
1977 ;
1978 return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983/* end confdefs.h. */
1984$4
1985int
1986main ()
1987{
1988if (sizeof (($2)))
1989 return 0;
1990 ;
1991 return 0;
1992}
1993_ACEOF
1994if ac_fn_c_try_compile "$LINENO"; then :
1995
1996else
1997 eval "$3=yes"
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
73b6d7a9 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7a938933
ILT
2007
2008} # ac_fn_c_check_type
207c35fa
ILT
2009
2010# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2011# --------------------------------------------
2012# Tries to find the compile-time value of EXPR in a program that includes
2013# INCLUDES, setting VAR accordingly. Returns whether the value could be
2014# computed
2015ac_fn_c_compute_int ()
2016{
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if test "$cross_compiling" = yes; then
2019 # Depending upon the size, compute the lo and hi bounds.
2020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h. */
2022$4
2023int
2024main ()
2025{
2026static int test_array [1 - 2 * !(($2) >= 0)];
73b6d7a9
ILT
2027test_array [0] = 0;
2028return test_array [0];
207c35fa
ILT
2029
2030 ;
2031 return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"; then :
2035 ac_lo=0 ac_mid=0
2036 while :; do
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h. */
2039$4
2040int
2041main ()
2042{
2043static int test_array [1 - 2 * !(($2) <= $ac_mid)];
73b6d7a9
ILT
2044test_array [0] = 0;
2045return test_array [0];
207c35fa
ILT
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_hi=$ac_mid; break
2053else
2054 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2055 if test $ac_lo -le $ac_mid; then
2056 ac_lo= ac_hi=
2057 break
2058 fi
2059 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 done
2063else
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067int
2068main ()
2069{
2070static int test_array [1 - 2 * !(($2) < 0)];
73b6d7a9
ILT
2071test_array [0] = 0;
2072return test_array [0];
207c35fa
ILT
2073
2074 ;
2075 return 0;
2076}
2077_ACEOF
2078if ac_fn_c_try_compile "$LINENO"; then :
2079 ac_hi=-1 ac_mid=-1
2080 while :; do
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084int
2085main ()
2086{
2087static int test_array [1 - 2 * !(($2) >= $ac_mid)];
73b6d7a9
ILT
2088test_array [0] = 0;
2089return test_array [0];
207c35fa
ILT
2090
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_lo=$ac_mid; break
2097else
2098 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2099 if test $ac_mid -le $ac_hi; then
2100 ac_lo= ac_hi=
2101 break
2102 fi
2103 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 done
2107else
2108 ac_lo= ac_hi=
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113# Binary search between lo and hi bounds.
2114while test "x$ac_lo" != "x$ac_hi"; do
2115 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117/* end confdefs.h. */
2118$4
2119int
2120main ()
2121{
2122static int test_array [1 - 2 * !(($2) <= $ac_mid)];
73b6d7a9
ILT
2123test_array [0] = 0;
2124return test_array [0];
207c35fa
ILT
2125
2126 ;
2127 return 0;
2128}
2129_ACEOF
2130if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_hi=$ac_mid
2132else
2133 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2134fi
2135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136done
2137case $ac_lo in #((
2138?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2139'') ac_retval=1 ;;
2140esac
2141 else
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h. */
2144$4
2145static long int longval () { return $2; }
2146static unsigned long int ulongval () { return $2; }
2147#include <stdio.h>
2148#include <stdlib.h>
2149int
2150main ()
2151{
2152
2153 FILE *f = fopen ("conftest.val", "w");
2154 if (! f)
2155 return 1;
2156 if (($2) < 0)
2157 {
2158 long int i = longval ();
2159 if (i != ($2))
2160 return 1;
2161 fprintf (f, "%ld", i);
2162 }
2163 else
2164 {
2165 unsigned long int i = ulongval ();
2166 if (i != ($2))
2167 return 1;
2168 fprintf (f, "%lu", i);
2169 }
2170 /* Do not output a trailing newline, as this causes \r\n confusion
2171 on some platforms. */
2172 return ferror (f) || fclose (f) != 0;
2173
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_run "$LINENO"; then :
2179 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2180else
2181 ac_retval=1
2182fi
2183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2184 conftest.$ac_objext conftest.beam conftest.$ac_ext
2185rm -f conftest.val
2186
2187 fi
73b6d7a9
ILT
2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 as_fn_set_status $ac_retval
207c35fa
ILT
2190
2191} # ac_fn_c_compute_int
7a938933
ILT
2192cat >config.log <<_ACEOF
2193This file contains any messages produced by compilers while
2194running configure, to aid debugging if configure makes a mistake.
2195
2196It was created by package-unused $as_me version-unused, which was
73b6d7a9 2197generated by GNU Autoconf 2.69. Invocation command line was
7a938933
ILT
2198
2199 $ $0 $@
2200
2201_ACEOF
2202exec 5>>config.log
2203{
2204cat <<_ASUNAME
2205## --------- ##
2206## Platform. ##
2207## --------- ##
2208
2209hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2210uname -m = `(uname -m) 2>/dev/null || echo unknown`
2211uname -r = `(uname -r) 2>/dev/null || echo unknown`
2212uname -s = `(uname -s) 2>/dev/null || echo unknown`
2213uname -v = `(uname -v) 2>/dev/null || echo unknown`
2214
2215/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2216/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2217
2218/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2219/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2220/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2221/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2222/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2223/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2224/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2225
2226_ASUNAME
2227
2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229for as_dir in $PATH
2230do
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 $as_echo "PATH: $as_dir"
2234 done
2235IFS=$as_save_IFS
2236
2237} >&5
2238
2239cat >&5 <<_ACEOF
2240
2241
2242## ----------- ##
2243## Core tests. ##
2244## ----------- ##
2245
2246_ACEOF
2247
2248
2249# Keep a trace of the command line.
2250# Strip out --no-create and --no-recursion so they do not pile up.
2251# Strip out --silent because we don't want to record it for future runs.
2252# Also quote any args containing shell meta-characters.
2253# Make two passes to allow for proper duplicate-argument suppression.
2254ac_configure_args=
2255ac_configure_args0=
2256ac_configure_args1=
2257ac_must_keep_next=false
2258for ac_pass in 1 2
2259do
2260 for ac_arg
2261 do
2262 case $ac_arg in
2263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2265 | -silent | --silent | --silen | --sile | --sil)
2266 continue ;;
2267 *\'*)
2268 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 esac
2270 case $ac_pass in
2271 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2272 2)
2273 as_fn_append ac_configure_args1 " '$ac_arg'"
2274 if test $ac_must_keep_next = true; then
2275 ac_must_keep_next=false # Got value, back to normal.
2276 else
2277 case $ac_arg in
2278 *=* | --config-cache | -C | -disable-* | --disable-* \
2279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2281 | -with-* | --with-* | -without-* | --without-* | --x)
2282 case "$ac_configure_args0 " in
2283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2284 esac
2285 ;;
2286 -* ) ac_must_keep_next=true ;;
2287 esac
2288 fi
2289 as_fn_append ac_configure_args " '$ac_arg'"
2290 ;;
2291 esac
2292 done
2293done
2294{ ac_configure_args0=; unset ac_configure_args0;}
2295{ ac_configure_args1=; unset ac_configure_args1;}
2296
2297# When interrupted or exit'd, cleanup temporary files, and complete
2298# config.log. We remove comments because anyway the quotes in there
2299# would cause problems or look ugly.
2300# WARNING: Use '\'' to represent an apostrophe within the trap.
2301# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2302trap 'exit_status=$?
2303 # Save into config.log some information that might help in debugging.
2304 {
2305 echo
2306
73b6d7a9 2307 $as_echo "## ---------------- ##
7a938933 2308## Cache variables. ##
73b6d7a9 2309## ---------------- ##"
7a938933
ILT
2310 echo
2311 # The following way of writing the cache mishandles newlines in values,
2312(
2313 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2314 eval ac_val=\$$ac_var
2315 case $ac_val in #(
2316 *${as_nl}*)
2317 case $ac_var in #(
2318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2319$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 esac
2321 case $ac_var in #(
2322 _ | IFS | as_nl) ;; #(
2323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2324 *) { eval $ac_var=; unset $ac_var;} ;;
2325 esac ;;
2326 esac
2327 done
2328 (set) 2>&1 |
2329 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2330 *${as_nl}ac_space=\ *)
2331 sed -n \
2332 "s/'\''/'\''\\\\'\'''\''/g;
2333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 ;; #(
2335 *)
2336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2337 ;;
2338 esac |
2339 sort
2340)
2341 echo
2342
73b6d7a9 2343 $as_echo "## ----------------- ##
7a938933 2344## Output variables. ##
73b6d7a9 2345## ----------------- ##"
7a938933
ILT
2346 echo
2347 for ac_var in $ac_subst_vars
2348 do
2349 eval ac_val=\$$ac_var
2350 case $ac_val in
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 esac
2353 $as_echo "$ac_var='\''$ac_val'\''"
2354 done | sort
2355 echo
2356
2357 if test -n "$ac_subst_files"; then
73b6d7a9 2358 $as_echo "## ------------------- ##
7a938933 2359## File substitutions. ##
73b6d7a9 2360## ------------------- ##"
7a938933
ILT
2361 echo
2362 for ac_var in $ac_subst_files
2363 do
2364 eval ac_val=\$$ac_var
2365 case $ac_val in
2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 esac
2368 $as_echo "$ac_var='\''$ac_val'\''"
2369 done | sort
2370 echo
2371 fi
2372
2373 if test -s confdefs.h; then
73b6d7a9 2374 $as_echo "## ----------- ##
7a938933 2375## confdefs.h. ##
73b6d7a9 2376## ----------- ##"
7a938933
ILT
2377 echo
2378 cat confdefs.h
2379 echo
2380 fi
2381 test "$ac_signal" != 0 &&
2382 $as_echo "$as_me: caught signal $ac_signal"
2383 $as_echo "$as_me: exit $exit_status"
2384 } >&5
2385 rm -f core *.core core.conftest.* &&
2386 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2387 exit $exit_status
2388' 0
2389for ac_signal in 1 2 13 15; do
2390 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391done
2392ac_signal=0
2393
2394# confdefs.h avoids OS command line length limits that DEFS can exceed.
2395rm -f -r conftest* confdefs.h
2396
2397$as_echo "/* confdefs.h */" > confdefs.h
2398
2399# Predefined preprocessor variables.
2400
2401cat >>confdefs.h <<_ACEOF
2402#define PACKAGE_NAME "$PACKAGE_NAME"
2403_ACEOF
2404
2405cat >>confdefs.h <<_ACEOF
2406#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2407_ACEOF
2408
2409cat >>confdefs.h <<_ACEOF
2410#define PACKAGE_VERSION "$PACKAGE_VERSION"
2411_ACEOF
2412
2413cat >>confdefs.h <<_ACEOF
2414#define PACKAGE_STRING "$PACKAGE_STRING"
2415_ACEOF
2416
2417cat >>confdefs.h <<_ACEOF
2418#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2419_ACEOF
2420
2421cat >>confdefs.h <<_ACEOF
2422#define PACKAGE_URL "$PACKAGE_URL"
2423_ACEOF
2424
2425
2426# Let the site file select an alternate cache file if it wants to.
2427# Prefer an explicitly selected file to automatically selected ones.
2428ac_site_file1=NONE
2429ac_site_file2=NONE
2430if test -n "$CONFIG_SITE"; then
73b6d7a9
ILT
2431 # We do not want a PATH search for config.site.
2432 case $CONFIG_SITE in #((
2433 -*) ac_site_file1=./$CONFIG_SITE;;
2434 */*) ac_site_file1=$CONFIG_SITE;;
2435 *) ac_site_file1=./$CONFIG_SITE;;
2436 esac
7a938933
ILT
2437elif test "x$prefix" != xNONE; then
2438 ac_site_file1=$prefix/share/config.site
2439 ac_site_file2=$prefix/etc/config.site
2440else
2441 ac_site_file1=$ac_default_prefix/share/config.site
2442 ac_site_file2=$ac_default_prefix/etc/config.site
2443fi
2444for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445do
2446 test "x$ac_site_file" = xNONE && continue
73b6d7a9 2447 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7a938933
ILT
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 sed 's/^/| /' "$ac_site_file" >&5
73b6d7a9
ILT
2451 . "$ac_site_file" \
2452 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454as_fn_error $? "failed to load site script $ac_site_file
2455See \`config.log' for more details" "$LINENO" 5; }
7a938933
ILT
2456 fi
2457done
2458
2459if test -r "$cache_file"; then
73b6d7a9
ILT
2460 # Some versions of bash will fail to source /dev/null (special files
2461 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2462 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7a938933
ILT
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2464$as_echo "$as_me: loading cache $cache_file" >&6;}
2465 case $cache_file in
2466 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2467 *) . "./$cache_file";;
2468 esac
2469 fi
2470else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2472$as_echo "$as_me: creating cache $cache_file" >&6;}
2473 >$cache_file
2474fi
2475
2476# Check that the precious variables saved in the cache have kept the same
2477# value.
2478ac_cache_corrupted=false
2479for ac_var in $ac_precious_vars; do
2480 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2481 eval ac_new_set=\$ac_env_${ac_var}_set
2482 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2483 eval ac_new_val=\$ac_env_${ac_var}_value
2484 case $ac_old_set,$ac_new_set in
2485 set,)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,set)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,);;
2494 *)
2495 if test "x$ac_old_val" != "x$ac_new_val"; then
2496 # differences in whitespace do not lead to failure.
2497 ac_old_val_w=`echo x $ac_old_val`
2498 ac_new_val_w=`echo x $ac_new_val`
2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502 ac_cache_corrupted=:
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506 eval $ac_var=\$ac_old_val
2507 fi
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2509$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2511$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 fi;;
2513 esac
2514 # Pass precious variables to config.status.
2515 if test "$ac_new_set" = set; then
2516 case $ac_new_val in
2517 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518 *) ac_arg=$ac_var=$ac_new_val ;;
2519 esac
2520 case " $ac_configure_args " in
2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2522 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 esac
2524 fi
2525done
2526if $ac_cache_corrupted; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
73b6d7a9 2531 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
7a938933
ILT
2532fi
2533## -------------------- ##
2534## Main body of script. ##
2535## -------------------- ##
2536
2537ac_ext=c
2538ac_cpp='$CPP $CPPFLAGS'
2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543
2544
54f0deb0
ILT
2545
2546
2547
7a938933
ILT
2548ac_config_headers="$ac_config_headers config.h"
2549
2550
5a8ea165 2551libtool_VERSION=16:0:0
7a938933
ILT
2552
2553
2554# Default to --enable-multilib
2555# Check whether --enable-multilib was given.
2556if test "${enable_multilib+set}" = set; then :
2557 enableval=$enable_multilib; case "$enableval" in
2558 yes) multilib=yes ;;
2559 no) multilib=no ;;
73b6d7a9 2560 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
7a938933
ILT
2561 esac
2562else
2563 multilib=yes
2564fi
2565
2566
2567# We may get other options which we leave undocumented:
2568# --with-target-subdir, --with-multisrctop, --with-multisubdir
2569# See config-ml.in if you want the gory details.
2570
2571if test "$srcdir" = "."; then
2572 if test "$with_target_subdir" != "."; then
2573 multi_basedir="$srcdir/$with_multisrctop../.."
2574 else
2575 multi_basedir="$srcdir/$with_multisrctop.."
2576 fi
2577else
2578 multi_basedir="$srcdir/.."
2579fi
2580
2581
2582# Even if the default multilib is not a cross compilation,
2583# it may be that some of the other multilibs are.
2584if test $cross_compiling = no && test $multilib = yes \
2585 && test "x${with_multisubdir}" != x ; then
2586 cross_compiling=maybe
2587fi
2588
2589ac_config_commands="$ac_config_commands default-1"
2590
2591
2592ac_aux_dir=
2593for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
73b6d7a9
ILT
2594 if test -f "$ac_dir/install-sh"; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/install-sh -c"
2597 break
2598 elif test -f "$ac_dir/install.sh"; then
2599 ac_aux_dir=$ac_dir
2600 ac_install_sh="$ac_aux_dir/install.sh -c"
2601 break
2602 elif test -f "$ac_dir/shtool"; then
2603 ac_aux_dir=$ac_dir
2604 ac_install_sh="$ac_aux_dir/shtool install -c"
2605 break
2606 fi
7a938933
ILT
2607done
2608if test -z "$ac_aux_dir"; then
73b6d7a9 2609 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7a938933
ILT
2610fi
2611
2612# These three variables are undocumented and unsupported,
2613# and are intended to be withdrawn in a future Autoconf release.
2614# They can cause serious problems if a builder's source tree is in a directory
2615# whose full name contains unusual characters.
2616ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2617ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2618ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2619
2620
2621# Make sure we can run config.sub.
2622$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
73b6d7a9 2623 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7a938933
ILT
2624
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2626$as_echo_n "checking build system type... " >&6; }
73b6d7a9 2627if ${ac_cv_build+:} false; then :
7a938933
ILT
2628 $as_echo_n "(cached) " >&6
2629else
2630 ac_build_alias=$build_alias
2631test "x$ac_build_alias" = x &&
2632 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2633test "x$ac_build_alias" = x &&
73b6d7a9 2634 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7a938933 2635ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
73b6d7a9 2636 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7a938933
ILT
2637
2638fi
2639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2640$as_echo "$ac_cv_build" >&6; }
2641case $ac_cv_build in
2642*-*-*) ;;
73b6d7a9 2643*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7a938933
ILT
2644esac
2645build=$ac_cv_build
2646ac_save_IFS=$IFS; IFS='-'
2647set x $ac_cv_build
2648shift
2649build_cpu=$1
2650build_vendor=$2
2651shift; shift
2652# Remember, the first character of IFS is used to create $*,
2653# except with old shells:
2654build_os=$*
2655IFS=$ac_save_IFS
2656case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2657
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2660$as_echo_n "checking host system type... " >&6; }
73b6d7a9 2661if ${ac_cv_host+:} false; then :
7a938933
ILT
2662 $as_echo_n "(cached) " >&6
2663else
2664 if test "x$host_alias" = x; then
2665 ac_cv_host=$ac_cv_build
2666else
2667 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
73b6d7a9 2668 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7a938933
ILT
2669fi
2670
2671fi
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2673$as_echo "$ac_cv_host" >&6; }
2674case $ac_cv_host in
2675*-*-*) ;;
73b6d7a9 2676*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7a938933
ILT
2677esac
2678host=$ac_cv_host
2679ac_save_IFS=$IFS; IFS='-'
2680set x $ac_cv_host
2681shift
2682host_cpu=$1
2683host_vendor=$2
2684shift; shift
2685# Remember, the first character of IFS is used to create $*,
2686# except with old shells:
2687host_os=$*
2688IFS=$ac_save_IFS
2689case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2690
2691
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2693$as_echo_n "checking target system type... " >&6; }
73b6d7a9 2694if ${ac_cv_target+:} false; then :
7a938933
ILT
2695 $as_echo_n "(cached) " >&6
2696else
2697 if test "x$target_alias" = x; then
2698 ac_cv_target=$ac_cv_host
2699else
2700 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
73b6d7a9 2701 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
7a938933
ILT
2702fi
2703
2704fi
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2706$as_echo "$ac_cv_target" >&6; }
2707case $ac_cv_target in
2708*-*-*) ;;
73b6d7a9 2709*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
7a938933
ILT
2710esac
2711target=$ac_cv_target
2712ac_save_IFS=$IFS; IFS='-'
2713set x $ac_cv_target
2714shift
2715target_cpu=$1
2716target_vendor=$2
2717shift; shift
2718# Remember, the first character of IFS is used to create $*,
2719# except with old shells:
2720target_os=$*
2721IFS=$ac_save_IFS
2722case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2723
2724
2725# The aliases save the names the user supplied, while $host etc.
2726# will get canonicalized.
2727test -n "$target_alias" &&
2728 test "$program_prefix$program_suffix$program_transform_name" = \
2729 NONENONEs,x,x, &&
2730 program_prefix=${target_alias}-
2731
2732target_alias=${target_alias-$host_alias}
2733
73b6d7a9 2734am__api_version='1.15'
7a938933
ILT
2735
2736# Find a good install program. We prefer a C program (faster),
2737# so one script is as good as another. But avoid the broken or
2738# incompatible versions:
2739# SysV /etc/install, /usr/sbin/install
2740# SunOS /usr/etc/install
2741# IRIX /sbin/install
2742# AIX /bin/install
2743# AmigaOS /C/install, which installs bootblocks on floppy discs
2744# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2745# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2746# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2747# OS/2's system install, which has a completely different semantic
2748# ./install, which can be erroneously created by make from ./install.sh.
2749# Reject install programs that cannot install multiple files.
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2751$as_echo_n "checking for a BSD-compatible install... " >&6; }
2752if test -z "$INSTALL"; then
73b6d7a9 2753if ${ac_cv_path_install+:} false; then :
7a938933
ILT
2754 $as_echo_n "(cached) " >&6
2755else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 # Account for people who put trailing slashes in PATH elements.
2762case $as_dir/ in #((
2763 ./ | .// | /[cC]/* | \
2764 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2765 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2766 /usr/ucb/* ) ;;
2767 *)
2768 # OSF1 and SCO ODT 3.0 have their own names for install.
2769 # Don't use installbsd from OSF since it installs stuff as root
2770 # by default.
2771 for ac_prog in ginstall scoinst install; do
2772 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 2773 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7a938933
ILT
2774 if test $ac_prog = install &&
2775 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # AIX install. It has an incompatible calling convention.
2777 :
2778 elif test $ac_prog = install &&
2779 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2780 # program-specific install script used by HP pwplus--don't use.
2781 :
2782 else
2783 rm -rf conftest.one conftest.two conftest.dir
2784 echo one > conftest.one
2785 echo two > conftest.two
2786 mkdir conftest.dir
2787 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2788 test -s conftest.one && test -s conftest.two &&
2789 test -s conftest.dir/conftest.one &&
2790 test -s conftest.dir/conftest.two
2791 then
2792 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2793 break 3
2794 fi
2795 fi
2796 fi
2797 done
2798 done
2799 ;;
2800esac
2801
2802 done
2803IFS=$as_save_IFS
2804
2805rm -rf conftest.one conftest.two conftest.dir
2806
2807fi
2808 if test "${ac_cv_path_install+set}" = set; then
2809 INSTALL=$ac_cv_path_install
2810 else
2811 # As a last resort, use the slow shell script. Don't cache a
2812 # value for INSTALL within a source directory, because that will
2813 # break other packages using the cache if that directory is
2814 # removed, or if the value is a relative name.
2815 INSTALL=$ac_install_sh
2816 fi
2817fi
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2819$as_echo "$INSTALL" >&6; }
2820
2821# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2822# It thinks the first close brace ends the variable substitution.
2823test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2824
2825test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2826
2827test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2828
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2830$as_echo_n "checking whether build environment is sane... " >&6; }
7a938933
ILT
2831# Reject unsafe characters in $srcdir or the absolute working directory
2832# name. Accept space and tab only in the latter.
2833am_lf='
2834'
2835case `pwd` in
2836 *[\\\"\#\$\&\'\`$am_lf]*)
73b6d7a9 2837 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
7a938933
ILT
2838esac
2839case $srcdir in
2840 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
73b6d7a9 2841 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
7a938933
ILT
2842esac
2843
73b6d7a9 2844# Do 'set' in a subshell so we don't clobber the current shell's
7a938933
ILT
2845# arguments. Must try -L first in case configure is actually a
2846# symlink; some systems play weird games with the mod time of symlinks
2847# (eg FreeBSD returns the mod time of the symlink's containing
2848# directory).
2849if (
73b6d7a9
ILT
2850 am_has_slept=no
2851 for am_try in 1 2; do
2852 echo "timestamp, slept: $am_has_slept" > conftest.file
2853 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2854 if test "$*" = "X"; then
2855 # -L didn't work.
2856 set X `ls -t "$srcdir/configure" conftest.file`
2857 fi
2858 if test "$*" != "X $srcdir/configure conftest.file" \
2859 && test "$*" != "X conftest.file $srcdir/configure"; then
2860
2861 # If neither matched, then we have a broken ls. This can happen
2862 # if, for instance, CONFIG_SHELL is bash and it inherits a
2863 # broken ls alias from the environment. This has actually
2864 # happened. Such a system could not be considered "sane".
2865 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2866 alias in your environment" "$LINENO" 5
2867 fi
2868 if test "$2" = conftest.file || test $am_try -eq 2; then
2869 break
2870 fi
2871 # Just in case.
2872 sleep 1
2873 am_has_slept=yes
2874 done
7a938933
ILT
2875 test "$2" = conftest.file
2876 )
2877then
2878 # Ok.
2879 :
2880else
73b6d7a9 2881 as_fn_error $? "newly created file is older than distributed files!
7a938933
ILT
2882Check your system clock" "$LINENO" 5
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885$as_echo "yes" >&6; }
73b6d7a9
ILT
2886# If we didn't sleep, we still need to ensure time stamps of config.status and
2887# generated files are strictly newer.
2888am_sleep_pid=
2889if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2890 ( sleep 1 ) &
2891 am_sleep_pid=$!
2892fi
2893
2894rm -f conftest.file
2895
7a938933
ILT
2896test "$program_prefix" != NONE &&
2897 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2898# Use a double $ so make ignores it.
2899test "$program_suffix" != NONE &&
2900 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2901# Double any \ or $.
2902# By default was `s,x,x', remove it if useless.
2903ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2904program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2905
73b6d7a9
ILT
2906# Expand $ac_aux_dir to an absolute path.
2907am_aux_dir=`cd "$ac_aux_dir" && pwd`
7a938933
ILT
2908
2909if test x"${MISSING+set}" != xset; then
2910 case $am_aux_dir in
2911 *\ * | *\ *)
2912 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2913 *)
2914 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2915 esac
2916fi
2917# Use eval to expand $SHELL
73b6d7a9
ILT
2918if eval "$MISSING --is-lightweight"; then
2919 am_missing_run="$MISSING "
7a938933
ILT
2920else
2921 am_missing_run=
73b6d7a9
ILT
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2923$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
7a938933
ILT
2924fi
2925
73b6d7a9 2926if test x"${install_sh+set}" != xset; then
7a938933
ILT
2927 case $am_aux_dir in
2928 *\ * | *\ *)
2929 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2930 *)
2931 install_sh="\${SHELL} $am_aux_dir/install-sh"
2932 esac
2933fi
2934
73b6d7a9
ILT
2935# Installed binaries are usually stripped using 'strip' when the user
2936# run "make install-strip". However 'strip' might not be the right
7a938933 2937# tool to use in cross-compilation environments, therefore Automake
73b6d7a9 2938# will honor the 'STRIP' environment variable to overrule this program.
7a938933
ILT
2939if test "$cross_compiling" != no; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2942set dummy ${ac_tool_prefix}strip; ac_word=$2
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 2945if ${ac_cv_prog_STRIP+:} false; then :
7a938933
ILT
2946 $as_echo_n "(cached) " >&6
2947else
2948 if test -n "$STRIP"; then
2949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2950else
2951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952for as_dir in $PATH
2953do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
2958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962done
2963 done
2964IFS=$as_save_IFS
2965
2966fi
2967fi
2968STRIP=$ac_cv_prog_STRIP
2969if test -n "$STRIP"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2971$as_echo "$STRIP" >&6; }
2972else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975fi
2976
2977
2978fi
2979if test -z "$ac_cv_prog_STRIP"; then
2980 ac_ct_STRIP=$STRIP
2981 # Extract the first word of "strip", so it can be a program name with args.
2982set dummy strip; ac_word=$2
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 2985if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7a938933
ILT
2986 $as_echo_n "(cached) " >&6
2987else
2988 if test -n "$ac_ct_STRIP"; then
2989 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
2998 ac_cv_prog_ac_ct_STRIP="strip"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002done
3003 done
3004IFS=$as_save_IFS
3005
3006fi
3007fi
3008ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3009if test -n "$ac_ct_STRIP"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3011$as_echo "$ac_ct_STRIP" >&6; }
3012else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
3015fi
3016
3017 if test "x$ac_ct_STRIP" = x; then
3018 STRIP=":"
3019 else
3020 case $cross_compiling:$ac_tool_warned in
3021yes:)
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3024ac_tool_warned=yes ;;
3025esac
3026 STRIP=$ac_ct_STRIP
3027 fi
3028else
3029 STRIP="$ac_cv_prog_STRIP"
3030fi
3031
3032fi
3033INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3034
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3036$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3037if test -z "$MKDIR_P"; then
73b6d7a9 3038 if ${ac_cv_path_mkdir+:} false; then :
7a938933
ILT
3039 $as_echo_n "(cached) " >&6
3040else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3043do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_prog in mkdir gmkdir; do
3047 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3048 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7a938933
ILT
3049 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3050 'mkdir (GNU coreutils) '* | \
3051 'mkdir (coreutils) '* | \
3052 'mkdir (fileutils) '4.1*)
3053 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3054 break 3;;
3055 esac
3056 done
3057 done
3058 done
3059IFS=$as_save_IFS
3060
3061fi
3062
73b6d7a9 3063 test -d ./--version && rmdir ./--version
7a938933
ILT
3064 if test "${ac_cv_path_mkdir+set}" = set; then
3065 MKDIR_P="$ac_cv_path_mkdir -p"
3066 else
3067 # As a last resort, use the slow shell script. Don't cache a
3068 # value for MKDIR_P within a source directory, because that will
3069 # break other packages using the cache if that directory is
3070 # removed, or if the value is a relative name.
7a938933
ILT
3071 MKDIR_P="$ac_install_sh -d"
3072 fi
3073fi
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3075$as_echo "$MKDIR_P" >&6; }
3076
7a938933
ILT
3077for ac_prog in gawk mawk nawk awk
3078do
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080set dummy $ac_prog; ac_word=$2
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3083if ${ac_cv_prog_AWK+:} false; then :
7a938933
ILT
3084 $as_echo_n "(cached) " >&6
3085else
3086 if test -n "$AWK"; then
3087 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3096 ac_cv_prog_AWK="$ac_prog"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101 done
3102IFS=$as_save_IFS
3103
3104fi
3105fi
3106AWK=$ac_cv_prog_AWK
3107if test -n "$AWK"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3109$as_echo "$AWK" >&6; }
3110else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112$as_echo "no" >&6; }
3113fi
3114
3115
3116 test -n "$AWK" && break
3117done
3118
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3120$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3121set x ${MAKE-make}
3122ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
73b6d7a9 3123if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7a938933
ILT
3124 $as_echo_n "(cached) " >&6
3125else
3126 cat >conftest.make <<\_ACEOF
3127SHELL = /bin/sh
3128all:
3129 @echo '@@@%%%=$(MAKE)=@@@%%%'
3130_ACEOF
73b6d7a9 3131# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7a938933
ILT
3132case `${MAKE-make} -f conftest.make 2>/dev/null` in
3133 *@@@%%%=?*=@@@%%%*)
3134 eval ac_cv_prog_make_${ac_make}_set=yes;;
3135 *)
3136 eval ac_cv_prog_make_${ac_make}_set=no;;
3137esac
3138rm -f conftest.make
3139fi
3140if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142$as_echo "yes" >&6; }
3143 SET_MAKE=
3144else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147 SET_MAKE="MAKE=${MAKE-make}"
3148fi
3149
3150rm -rf .tst 2>/dev/null
3151mkdir .tst 2>/dev/null
3152if test -d .tst; then
3153 am__leading_dot=.
3154else
3155 am__leading_dot=_
3156fi
3157rmdir .tst 2>/dev/null
3158
73b6d7a9
ILT
3159# Check whether --enable-silent-rules was given.
3160if test "${enable_silent_rules+set}" = set; then :
3161 enableval=$enable_silent_rules;
3162fi
3163
3164case $enable_silent_rules in # (((
3165 yes) AM_DEFAULT_VERBOSITY=0;;
3166 no) AM_DEFAULT_VERBOSITY=1;;
3167 *) AM_DEFAULT_VERBOSITY=1;;
3168esac
3169am_make=${MAKE-make}
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3171$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3172if ${am_cv_make_support_nested_variables+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174else
3175 if $as_echo 'TRUE=$(BAR$(V))
3176BAR0=false
3177BAR1=true
3178V=1
3179am__doit:
3180 @$(TRUE)
3181.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3182 am_cv_make_support_nested_variables=yes
3183else
3184 am_cv_make_support_nested_variables=no
3185fi
3186fi
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3188$as_echo "$am_cv_make_support_nested_variables" >&6; }
3189if test $am_cv_make_support_nested_variables = yes; then
3190 AM_V='$(V)'
3191 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3192else
3193 AM_V=$AM_DEFAULT_VERBOSITY
3194 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3195fi
3196AM_BACKSLASH='\'
3197
7a938933
ILT
3198if test "`cd $srcdir && pwd`" != "`pwd`"; then
3199 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3200 # is not polluted with repeated "-I."
3201 am__isrc=' -I$(srcdir)'
3202 # test to see if srcdir already configured
3203 if test -f $srcdir/config.status; then
73b6d7a9 3204 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7a938933
ILT
3205 fi
3206fi
3207
3208# test whether we have cygpath
3209if test -z "$CYGPATH_W"; then
3210 if (cygpath --version) >/dev/null 2>/dev/null; then
3211 CYGPATH_W='cygpath -w'
3212 else
3213 CYGPATH_W=echo
3214 fi
3215fi
3216
3217
3218# Define the identity of the package.
3219 PACKAGE='libgo'
3220 VERSION='version-unused'
3221
3222
3223# Some tools Automake needs.
3224
3225ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3226
3227
3228AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3229
3230
3231AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3232
3233
3234AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3235
3236
3237MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3238
73b6d7a9
ILT
3239# For better backward compatibility. To be removed once Automake 1.9.x
3240# dies out for good. For more background, see:
3241# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3242# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3243mkdir_p='$(MKDIR_P)'
3244
3245# We need awk for the "check" target (and possibly the TAP driver). The
3246# system "awk" is bad on some platforms.
44c925bd
ILT
3247# Always define AMTAR for backward compatibility. Yes, it's still used
3248# in the wild :-( We should find a proper way to deprecate it ...
3249AMTAR='$${TAR-tar}'
7a938933 3250
73b6d7a9
ILT
3251
3252# We'll loop over all known methods to create a tar archive until one works.
3253_am_tools='gnutar pax cpio none'
3254
44c925bd 3255am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
7a938933
ILT
3256
3257
3258
3259
3260
3261
73b6d7a9
ILT
3262# POSIX will say in a future version that running "rm -f" with no argument
3263# is OK; and we want to be able to make that assumption in our Makefile
3264# recipes. So use an aggressive probe to check that the usage we want is
3265# actually supported "in the wild" to an acceptable degree.
3266# See automake bug#10828.
3267# To make any issue more visible, cause the running configure to be aborted
3268# by default if the 'rm' program in use doesn't match our expectations; the
3269# user can still override this though.
3270if rm -f && rm -fr && rm -rf; then : OK; else
3271 cat >&2 <<'END'
3272Oops!
3273
3274Your 'rm' program seems unable to run without file operands specified
3275on the command line, even when the '-f' option is present. This is contrary
3276to the behaviour of most rm programs out there, and not conforming with
3277the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3278
3279Please tell bug-automake@gnu.org about your system, including the value
3280of your $PATH and any error possibly output before this message. This
3281can help us improve future automake versions.
3282
3283END
3284 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3285 echo 'Configuration will proceed anyway, since you have set the' >&2
3286 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3287 echo >&2
3288 else
3289 cat >&2 <<'END'
3290Aborting the configuration process, to ensure you take notice of the issue.
3291
3292You can download and install GNU coreutils to get an 'rm' implementation
3293that behaves properly: <http://www.gnu.org/software/coreutils/>.
3294
3295If you want to complete the configuration process using your problematic
3296'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3297to "yes", and re-run configure.
3298
3299END
3300 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3301 fi
3302fi
3303
3304
7a938933
ILT
3305
3306
3307
3308
3309ac_ext=c
3310ac_cpp='$CPP $CPPFLAGS'
3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3316set dummy ${ac_tool_prefix}gcc; ac_word=$2
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3319if ${ac_cv_prog_CC+:} false; then :
7a938933
ILT
3320 $as_echo_n "(cached) " >&6
3321else
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 break 2
3335 fi
3336done
3337 done
3338IFS=$as_save_IFS
3339
3340fi
3341fi
3342CC=$ac_cv_prog_CC
3343if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345$as_echo "$CC" >&6; }
3346else
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348$as_echo "no" >&6; }
3349fi
3350
3351
3352fi
3353if test -z "$ac_cv_prog_CC"; then
3354 ac_ct_CC=$CC
3355 # Extract the first word of "gcc", so it can be a program name with args.
3356set dummy gcc; ac_word=$2
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3359if ${ac_cv_prog_ac_ct_CC+:} false; then :
7a938933
ILT
3360 $as_echo_n "(cached) " >&6
3361else
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3372 ac_cv_prog_ac_ct_CC="gcc"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377 done
3378IFS=$as_save_IFS
3379
3380fi
3381fi
3382ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383if test -n "$ac_ct_CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385$as_echo "$ac_ct_CC" >&6; }
3386else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388$as_echo "no" >&6; }
3389fi
3390
3391 if test "x$ac_ct_CC" = x; then
3392 CC=""
3393 else
3394 case $cross_compiling:$ac_tool_warned in
3395yes:)
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398ac_tool_warned=yes ;;
3399esac
3400 CC=$ac_ct_CC
3401 fi
3402else
3403 CC="$ac_cv_prog_CC"
3404fi
3405
3406if test -z "$CC"; then
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3409set dummy ${ac_tool_prefix}cc; ac_word=$2
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3412if ${ac_cv_prog_CC+:} false; then :
7a938933
ILT
3413 $as_echo_n "(cached) " >&6
3414else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417else
3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH
3420do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3425 ac_cv_prog_CC="${ac_tool_prefix}cc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429done
3430 done
3431IFS=$as_save_IFS
3432
3433fi
3434fi
3435CC=$ac_cv_prog_CC
3436if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438$as_echo "$CC" >&6; }
3439else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441$as_echo "no" >&6; }
3442fi
3443
3444
3445 fi
3446fi
3447if test -z "$CC"; then
3448 # Extract the first word of "cc", so it can be a program name with args.
3449set dummy cc; ac_word=$2
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3452if ${ac_cv_prog_CC+:} false; then :
7a938933
ILT
3453 $as_echo_n "(cached) " >&6
3454else
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC="$CC" # Let the user override the test.
3457else
3458 ac_prog_rejected=no
3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460for as_dir in $PATH
3461do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3467 ac_prog_rejected=yes
3468 continue
3469 fi
3470 ac_cv_prog_CC="cc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474done
3475 done
3476IFS=$as_save_IFS
3477
3478if test $ac_prog_rejected = yes; then
3479 # We found a bogon in the path, so make sure we never use it.
3480 set dummy $ac_cv_prog_CC
3481 shift
3482 if test $# != 0; then
3483 # We chose a different compiler from the bogus one.
3484 # However, it has the same basename, so the bogon will be chosen
3485 # first if we set CC to just the basename; use the full file name.
3486 shift
3487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3488 fi
3489fi
3490fi
3491fi
3492CC=$ac_cv_prog_CC
3493if test -n "$CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495$as_echo "$CC" >&6; }
3496else
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498$as_echo "no" >&6; }
3499fi
3500
3501
3502fi
3503if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 for ac_prog in cl.exe
3506 do
3507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3511if ${ac_cv_prog_CC+:} false; then :
7a938933
ILT
3512 $as_echo_n "(cached) " >&6
3513else
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516else
3517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3527 fi
3528done
3529 done
3530IFS=$as_save_IFS
3531
3532fi
3533fi
3534CC=$ac_cv_prog_CC
3535if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537$as_echo "$CC" >&6; }
3538else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540$as_echo "no" >&6; }
3541fi
3542
3543
3544 test -n "$CC" && break
3545 done
3546fi
3547if test -z "$CC"; then
3548 ac_ct_CC=$CC
3549 for ac_prog in cl.exe
3550do
3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
3552set dummy $ac_prog; ac_word=$2
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3555if ${ac_cv_prog_ac_ct_CC+:} false; then :
7a938933
ILT
3556 $as_echo_n "(cached) " >&6
3557else
3558 if test -n "$ac_ct_CC"; then
3559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3560else
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3568 ac_cv_prog_ac_ct_CC="$ac_prog"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572done
3573 done
3574IFS=$as_save_IFS
3575
3576fi
3577fi
3578ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579if test -n "$ac_ct_CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581$as_echo "$ac_ct_CC" >&6; }
3582else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584$as_echo "no" >&6; }
3585fi
3586
3587
3588 test -n "$ac_ct_CC" && break
3589done
3590
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595yes:)
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598ac_tool_warned=yes ;;
3599esac
3600 CC=$ac_ct_CC
3601 fi
3602fi
3603
3604fi
3605
3606
3607test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
3609as_fn_error $? "no acceptable C compiler found in \$PATH
3610See \`config.log' for more details" "$LINENO" 5; }
7a938933
ILT
3611
3612# Provide some information about the compiler.
3613$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3614set X $ac_compile
3615ac_compiler=$2
3616for ac_option in --version -v -V -qversion; do
3617 { { ac_try="$ac_compiler $ac_option >&5"
3618case "(($ac_try" in
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3621esac
3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623$as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3625 ac_status=$?
3626 if test -s conftest.err; then
3627 sed '10a\
3628... rest of stderr output deleted ...
3629 10q' conftest.err >conftest.er1
3630 cat conftest.er1 >&5
7a938933 3631 fi
73b6d7a9 3632 rm -f conftest.er1 conftest.err
7a938933
ILT
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }
3635done
3636
3637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h. */
54f0deb0 3639
7a938933
ILT
3640int
3641main ()
3642{
3643
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648ac_clean_files_save=$ac_clean_files
73b6d7a9 3649ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7a938933
ILT
3650# Try to create an executable without -o first, disregard a.out.
3651# It will help us diagnose broken compilers, and finding out an intuition
3652# of exeext.
73b6d7a9
ILT
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3654$as_echo_n "checking whether the C compiler works... " >&6; }
7a938933
ILT
3655ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3656
3657# The possible output files:
3658ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3659
3660ac_rmfiles=
3661for ac_file in $ac_files
3662do
3663 case $ac_file in
3664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3665 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3666 esac
3667done
3668rm -f $ac_rmfiles
3669
3670if { { ac_try="$ac_link_default"
3671case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674esac
3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676$as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link_default") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3682# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3683# in a Makefile. We should not override ac_cv_exeext if it was cached,
3684# so that the user can short-circuit this test for compilers unknown to
3685# Autoconf.
3686for ac_file in $ac_files ''
3687do
3688 test -f "$ac_file" || continue
3689 case $ac_file in
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3691 ;;
3692 [ab].out )
3693 # We found the default executable, but exeext='' is most
3694 # certainly right.
3695 break;;
3696 *.* )
3697 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3698 then :; else
3699 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3700 fi
3701 # We set ac_cv_exeext here because the later test for it is not
3702 # safe: cross compilers may not add the suffix if given an `-o'
3703 # argument, so we may need to know it at that point already.
3704 # Even if this section looks crufty: it has the advantage of
3705 # actually working.
3706 break;;
3707 * )
3708 break;;
3709 esac
3710done
3711test "$ac_cv_exeext" = no && ac_cv_exeext=
3712
3713else
3714 ac_file=''
3715fi
7a938933 3716if test -z "$ac_file"; then :
73b6d7a9
ILT
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718$as_echo "no" >&6; }
3719$as_echo "$as_me: failed program was:" >&5
7a938933
ILT
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
3724as_fn_error 77 "C compiler cannot create executables
3725See \`config.log' for more details" "$LINENO" 5; }
3726else
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3728$as_echo "yes" >&6; }
7a938933 3729fi
73b6d7a9
ILT
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3731$as_echo_n "checking for C compiler default output file name... " >&6; }
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3733$as_echo "$ac_file" >&6; }
7a938933
ILT
3734ac_exeext=$ac_cv_exeext
3735
73b6d7a9 3736rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7a938933 3737ac_clean_files=$ac_clean_files_save
7a938933
ILT
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3739$as_echo_n "checking for suffix of executables... " >&6; }
3740if { { ac_try="$ac_link"
3741case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746$as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_link") 2>&5
3748 ac_status=$?
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }; then :
3751 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3752# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3753# work properly (i.e., refer to `conftest.exe'), while it won't with
3754# `rm'.
3755for ac_file in conftest.exe conftest conftest.*; do
3756 test -f "$ac_file" || continue
3757 case $ac_file in
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760 break;;
3761 * ) break;;
3762 esac
3763done
3764else
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
3767as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3768See \`config.log' for more details" "$LINENO" 5; }
7a938933 3769fi
73b6d7a9 3770rm -f conftest conftest$ac_cv_exeext
7a938933
ILT
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3772$as_echo "$ac_cv_exeext" >&6; }
3773
3774rm -f conftest.$ac_ext
3775EXEEXT=$ac_cv_exeext
3776ac_exeext=$EXEEXT
73b6d7a9
ILT
3777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778/* end confdefs.h. */
3779#include <stdio.h>
3780int
3781main ()
3782{
3783FILE *f = fopen ("conftest.out", "w");
3784 return ferror (f) || fclose (f) != 0;
3785
3786 ;
3787 return 0;
3788}
3789_ACEOF
3790ac_clean_files="$ac_clean_files conftest.out"
3791# Check that the compiler produces executables we can run. If not, either
3792# the compiler is broken, or we cross compile.
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3794$as_echo_n "checking whether we are cross compiling... " >&6; }
3795if test "$cross_compiling" != yes; then
3796 { { ac_try="$ac_link"
3797case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800esac
3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802$as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_link") 2>&5
3804 ac_status=$?
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }
3807 if { ac_try='./conftest$ac_cv_exeext'
3808 { { case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811esac
3812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813$as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_try") 2>&5
3815 ac_status=$?
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; }; then
3818 cross_compiling=no
3819 else
3820 if test "$cross_compiling" = maybe; then
3821 cross_compiling=yes
3822 else
3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825as_fn_error $? "cannot run C compiled programs.
3826If you meant to cross compile, use \`--host'.
3827See \`config.log' for more details" "$LINENO" 5; }
3828 fi
3829 fi
3830fi
3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3832$as_echo "$cross_compiling" >&6; }
3833
3834rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3835ac_clean_files=$ac_clean_files_save
7a938933
ILT
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3837$as_echo_n "checking for suffix of object files... " >&6; }
73b6d7a9 3838if ${ac_cv_objext+:} false; then :
7a938933
ILT
3839 $as_echo_n "(cached) " >&6
3840else
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h. */
3843
3844int
3845main ()
3846{
3847
3848 ;
3849 return 0;
3850}
3851_ACEOF
3852rm -f conftest.o conftest.obj
3853if { { ac_try="$ac_compile"
3854case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857esac
3858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859$as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_compile") 2>&5
3861 ac_status=$?
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 for ac_file in conftest.o conftest.obj conftest.*; do
3865 test -f "$ac_file" || continue;
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3869 break;;
3870 esac
3871done
3872else
3873 $as_echo "$as_me: failed program was:" >&5
3874sed 's/^/| /' conftest.$ac_ext >&5
3875
3876{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
3878as_fn_error $? "cannot compute suffix of object files: cannot compile
3879See \`config.log' for more details" "$LINENO" 5; }
7a938933
ILT
3880fi
3881rm -f conftest.$ac_cv_objext conftest.$ac_ext
3882fi
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3884$as_echo "$ac_cv_objext" >&6; }
3885OBJEXT=$ac_cv_objext
3886ac_objext=$OBJEXT
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3888$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
73b6d7a9 3889if ${ac_cv_c_compiler_gnu+:} false; then :
7a938933
ILT
3890 $as_echo_n "(cached) " >&6
3891else
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893/* end confdefs.h. */
3894
3895int
3896main ()
3897{
3898#ifndef __GNUC__
3899 choke me
3900#endif
3901
3902 ;
3903 return 0;
3904}
3905_ACEOF
3906if ac_fn_c_try_compile "$LINENO"; then :
3907 ac_compiler_gnu=yes
3908else
3909 ac_compiler_gnu=no
3910fi
3911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912ac_cv_c_compiler_gnu=$ac_compiler_gnu
3913
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3916$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3917if test $ac_compiler_gnu = yes; then
3918 GCC=yes
3919else
3920 GCC=
3921fi
3922ac_test_CFLAGS=${CFLAGS+set}
3923ac_save_CFLAGS=$CFLAGS
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3925$as_echo_n "checking whether $CC accepts -g... " >&6; }
73b6d7a9 3926if ${ac_cv_prog_cc_g+:} false; then :
7a938933
ILT
3927 $as_echo_n "(cached) " >&6
3928else
3929 ac_save_c_werror_flag=$ac_c_werror_flag
3930 ac_c_werror_flag=yes
3931 ac_cv_prog_cc_g=no
3932 CFLAGS="-g"
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934/* end confdefs.h. */
3935
3936int
3937main ()
3938{
3939
3940 ;
3941 return 0;
3942}
3943_ACEOF
3944if ac_fn_c_try_compile "$LINENO"; then :
3945 ac_cv_prog_cc_g=yes
3946else
3947 CFLAGS=""
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
3961else
3962 ac_c_werror_flag=$ac_save_c_werror_flag
3963 CFLAGS="-g"
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h. */
3966
3967int
3968main ()
3969{
3970
3971 ;
3972 return 0;
3973}
3974_ACEOF
3975if ac_fn_c_try_compile "$LINENO"; then :
3976 ac_cv_prog_cc_g=yes
3977fi
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979fi
3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981fi
3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 ac_c_werror_flag=$ac_save_c_werror_flag
3984fi
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3986$as_echo "$ac_cv_prog_cc_g" >&6; }
3987if test "$ac_test_CFLAGS" = set; then
3988 CFLAGS=$ac_save_CFLAGS
3989elif test $ac_cv_prog_cc_g = yes; then
3990 if test "$GCC" = yes; then
3991 CFLAGS="-g -O2"
3992 else
3993 CFLAGS="-g"
3994 fi
3995else
3996 if test "$GCC" = yes; then
3997 CFLAGS="-O2"
3998 else
3999 CFLAGS=
4000 fi
4001fi
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4003$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
73b6d7a9 4004if ${ac_cv_prog_cc_c89+:} false; then :
7a938933
ILT
4005 $as_echo_n "(cached) " >&6
4006else
4007 ac_cv_prog_cc_c89=no
4008ac_save_CC=$CC
4009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010/* end confdefs.h. */
4011#include <stdarg.h>
4012#include <stdio.h>
73b6d7a9 4013struct stat;
7a938933
ILT
4014/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4015struct buf { int x; };
4016FILE * (*rcsopen) (struct buf *, struct stat *, int);
4017static char *e (p, i)
4018 char **p;
4019 int i;
4020{
4021 return p[i];
4022}
4023static char *f (char * (*g) (char **, int), char **p, ...)
4024{
4025 char *s;
4026 va_list v;
4027 va_start (v,p);
4028 s = g (p, va_arg (v,int));
4029 va_end (v);
4030 return s;
4031}
4032
4033/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4034 function prototypes and stuff, but not '\xHH' hex character constants.
4035 These don't provoke an error unfortunately, instead are silently treated
4036 as 'x'. The following induces an error, until -std is added to get
4037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4038 array size at least. It's necessary to write '\x00'==0 to get something
4039 that's true only with -std. */
4040int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4041
4042/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4043 inside strings and character constants. */
4044#define FOO(x) 'x'
4045int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4046
4047int test (int i, double x);
4048struct s1 {int (*f) (int a);};
4049struct s2 {int (*f) (double a);};
4050int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4051int argc;
4052char **argv;
4053int
4054main ()
4055{
4056return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4057 ;
4058 return 0;
4059}
4060_ACEOF
4061for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4063do
4064 CC="$ac_save_CC $ac_arg"
4065 if ac_fn_c_try_compile "$LINENO"; then :
4066 ac_cv_prog_cc_c89=$ac_arg
4067fi
4068rm -f core conftest.err conftest.$ac_objext
4069 test "x$ac_cv_prog_cc_c89" != "xno" && break
4070done
4071rm -f conftest.$ac_ext
4072CC=$ac_save_CC
4073
4074fi
4075# AC_CACHE_VAL
4076case "x$ac_cv_prog_cc_c89" in
4077 x)
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4079$as_echo "none needed" >&6; } ;;
4080 xno)
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4082$as_echo "unsupported" >&6; } ;;
4083 *)
4084 CC="$CC $ac_cv_prog_cc_c89"
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4086$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4087esac
4088if test "x$ac_cv_prog_cc_c89" != xno; then :
4089
4090fi
4091
4092ac_ext=c
4093ac_cpp='$CPP $CPPFLAGS'
4094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096ac_compiler_gnu=$ac_cv_c_compiler_gnu
73b6d7a9
ILT
4097
4098ac_ext=c
4099ac_cpp='$CPP $CPPFLAGS'
4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4104$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4105if ${am_cv_prog_cc_c_o+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107else
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109/* end confdefs.h. */
4110
4111int
4112main ()
4113{
4114
4115 ;
4116 return 0;
4117}
4118_ACEOF
4119 # Make sure it works both with $CC and with simple cc.
4120 # Following AC_PROG_CC_C_O, we do the test twice because some
4121 # compilers refuse to overwrite an existing .o file with -o,
4122 # though they will create one.
4123 am_cv_prog_cc_c_o=yes
4124 for am_i in 1 2; do
4125 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4126 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } \
4130 && test -f conftest2.$ac_objext; then
4131 : OK
4132 else
4133 am_cv_prog_cc_c_o=no
4134 break
4135 fi
4136 done
4137 rm -f core conftest*
4138 unset am_i
4139fi
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4141$as_echo "$am_cv_prog_cc_c_o" >&6; }
4142if test "$am_cv_prog_cc_c_o" != yes; then
4143 # Losing compiler, so override with the script.
4144 # FIXME: It is wrong to rewrite CC.
4145 # But if we don't then we get into trouble of one sort or another.
4146 # A longer-term fix would be to have automake use am__CC in this case,
4147 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4148 CC="$am_aux_dir/compile $CC"
4149fi
4150ac_ext=c
4151ac_cpp='$CPP $CPPFLAGS'
4152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155
7a938933
ILT
4156DEPDIR="${am__leading_dot}deps"
4157
4158ac_config_commands="$ac_config_commands depfiles"
4159
4160
4161am_make=${MAKE-make}
4162cat > confinc << 'END'
4163am__doit:
4164 @echo this is the am__doit target
4165.PHONY: am__doit
4166END
4167# If we don't find an include directive, just comment out the code.
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4169$as_echo_n "checking for style of include used by $am_make... " >&6; }
4170am__include="#"
4171am__quote=
4172_am_result=none
4173# First try GNU make style include.
4174echo "include confinc" > confmf
73b6d7a9 4175# Ignore all kinds of additional output from 'make'.
7a938933
ILT
4176case `$am_make -s -f confmf 2> /dev/null` in #(
4177*the\ am__doit\ target*)
4178 am__include=include
4179 am__quote=
4180 _am_result=GNU
4181 ;;
4182esac
4183# Now try BSD make style include.
4184if test "$am__include" = "#"; then
4185 echo '.include "confinc"' > confmf
4186 case `$am_make -s -f confmf 2> /dev/null` in #(
4187 *the\ am__doit\ target*)
4188 am__include=.include
4189 am__quote="\""
4190 _am_result=BSD
4191 ;;
4192 esac
4193fi
4194
4195
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4197$as_echo "$_am_result" >&6; }
4198rm -f confinc confmf
4199
4200# Check whether --enable-dependency-tracking was given.
4201if test "${enable_dependency_tracking+set}" = set; then :
4202 enableval=$enable_dependency_tracking;
4203fi
4204
4205if test "x$enable_dependency_tracking" != xno; then
4206 am_depcomp="$ac_aux_dir/depcomp"
4207 AMDEPBACKSLASH='\'
44c925bd 4208 am__nodep='_no'
7a938933
ILT
4209fi
4210 if test "x$enable_dependency_tracking" != xno; then
4211 AMDEP_TRUE=
4212 AMDEP_FALSE='#'
4213else
4214 AMDEP_TRUE='#'
4215 AMDEP_FALSE=
4216fi
4217
4218
4219
4220depcc="$CC" am_compiler_list=
4221
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4223$as_echo_n "checking dependency style of $depcc... " >&6; }
73b6d7a9 4224if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7a938933
ILT
4225 $as_echo_n "(cached) " >&6
4226else
4227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4228 # We make a subdir and do the tests there. Otherwise we can end up
4229 # making bogus files that we don't know about and never remove. For
4230 # instance it was reported that on HP-UX the gcc test will end up
73b6d7a9
ILT
4231 # making a dummy file named 'D' -- because '-MD' means "put the output
4232 # in D".
44c925bd 4233 rm -rf conftest.dir
7a938933
ILT
4234 mkdir conftest.dir
4235 # Copy depcomp to subdir because otherwise we won't find it if we're
4236 # using a relative directory.
4237 cp "$am_depcomp" conftest.dir
4238 cd conftest.dir
4239 # We will build objects and dependencies in a subdirectory because
4240 # it helps to detect inapplicable dependency modes. For instance
4241 # both Tru64's cc and ICC support -MD to output dependencies as a
4242 # side effect of compilation, but ICC will put the dependencies in
4243 # the current directory while Tru64 will put them in the object
4244 # directory.
4245 mkdir sub
4246
4247 am_cv_CC_dependencies_compiler_type=none
4248 if test "$am_compiler_list" = ""; then
4249 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4250 fi
4251 am__universal=false
4252 case " $depcc " in #(
4253 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4254 esac
4255
4256 for depmode in $am_compiler_list; do
4257 # Setup a source with many dependencies, because some compilers
4258 # like to wrap large dependency lists on column 80 (with \), and
4259 # we should not choose a depcomp mode which is confused by this.
4260 #
4261 # We need to recreate these files for each test, as the compiler may
4262 # overwrite some of them when testing with obscure command lines.
4263 # This happens at least with the AIX C compiler.
4264 : > sub/conftest.c
4265 for i in 1 2 3 4 5 6; do
4266 echo '#include "conftst'$i'.h"' >> sub/conftest.c
73b6d7a9
ILT
4267 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4268 # Solaris 10 /bin/sh.
4269 echo '/* dummy */' > sub/conftst$i.h
7a938933
ILT
4270 done
4271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4272
73b6d7a9 4273 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7a938933 4274 # mode. It turns out that the SunPro C++ compiler does not properly
73b6d7a9
ILT
4275 # handle '-M -o', and we need to detect this. Also, some Intel
4276 # versions had trouble with output in subdirs.
7a938933
ILT
4277 am__obj=sub/conftest.${OBJEXT-o}
4278 am__minus_obj="-o $am__obj"
4279 case $depmode in
4280 gcc)
4281 # This depmode causes a compiler race in universal mode.
4282 test "$am__universal" = false || continue
4283 ;;
4284 nosideeffect)
73b6d7a9
ILT
4285 # After this tag, mechanisms are not by side-effect, so they'll
4286 # only be used when explicitly requested.
7a938933
ILT
4287 if test "x$enable_dependency_tracking" = xyes; then
4288 continue
4289 else
4290 break
4291 fi
4292 ;;
44c925bd 4293 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
73b6d7a9 4294 # This compiler won't grok '-c -o', but also, the minuso test has
7a938933
ILT
4295 # not run yet. These depmodes are late enough in the game, and
4296 # so weak that their functioning should not be impacted.
4297 am__obj=conftest.${OBJEXT-o}
4298 am__minus_obj=
4299 ;;
4300 none) break ;;
4301 esac
4302 if depmode=$depmode \
4303 source=sub/conftest.c object=$am__obj \
4304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4305 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4306 >/dev/null 2>conftest.err &&
4307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4309 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4311 # icc doesn't choke on unknown options, it will just issue warnings
4312 # or remarks (even with -Werror). So we grep stderr for any message
4313 # that says an option was ignored or not supported.
4314 # When given -MP, icc 7.0 and 7.1 complain thusly:
4315 # icc: Command line warning: ignoring option '-M'; no argument required
4316 # The diagnosis changed in icc 8.0:
4317 # icc: Command line remark: option '-MP' not supported
4318 if (grep 'ignoring option' conftest.err ||
4319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4320 am_cv_CC_dependencies_compiler_type=$depmode
4321 break
4322 fi
4323 fi
4324 done
4325
4326 cd ..
4327 rm -rf conftest.dir
4328else
4329 am_cv_CC_dependencies_compiler_type=none
4330fi
4331
4332fi
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4334$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4335CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4336
4337 if
4338 test "x$enable_dependency_tracking" != xno \
4339 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4340 am__fastdepCC_TRUE=
4341 am__fastdepCC_FALSE='#'
4342else
4343 am__fastdepCC_TRUE='#'
4344 am__fastdepCC_FALSE=
4345fi
4346
4347
4348ac_ext=go
73b6d7a9
ILT
4349ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4350ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351ac_compiler_gnu=yes
7a938933
ILT
4352if test -n "$ac_tool_prefix"; then
4353 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4354set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 4357if ${ac_cv_prog_GOC+:} false; then :
7a938933
ILT
4358 $as_echo_n "(cached) " >&6
4359else
4360 if test -n "$GOC"; then
4361 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4362else
4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364for as_dir in $PATH
4365do
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 4369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
4370 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4373 fi
4374done
4375 done
4376IFS=$as_save_IFS
4377
4378fi
4379fi
4380GOC=$ac_cv_prog_GOC
4381if test -n "$GOC"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4383$as_echo "$GOC" >&6; }
4384else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386$as_echo "no" >&6; }
4387fi
4388
4389
4390fi
4391if test -z "$ac_cv_prog_GOC"; then
4392 ac_ct_GOC=$GOC
4393 # Extract the first word of "gccgo", so it can be a program name with args.
4394set dummy gccgo; ac_word=$2
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 4397if ${ac_cv_prog_ac_ct_GOC+:} false; then :
7a938933
ILT
4398 $as_echo_n "(cached) " >&6
4399else
4400 if test -n "$ac_ct_GOC"; then
4401 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 4409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
4410 ac_cv_prog_ac_ct_GOC="gccgo"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414done
4415 done
4416IFS=$as_save_IFS
4417
4418fi
4419fi
4420ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4421if test -n "$ac_ct_GOC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4423$as_echo "$ac_ct_GOC" >&6; }
4424else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426$as_echo "no" >&6; }
4427fi
4428
4429 if test "x$ac_ct_GOC" = x; then
4430 GOC=""
4431 else
4432 case $cross_compiling:$ac_tool_warned in
4433yes:)
4434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4436ac_tool_warned=yes ;;
4437esac
4438 GOC=$ac_ct_GOC
4439 fi
4440else
4441 GOC="$ac_cv_prog_GOC"
4442fi
4443
4444if test -z "$GOC"; then
4445 if test -n "$ac_tool_prefix"; then
4446 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4447set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 4450if ${ac_cv_prog_GOC+:} false; then :
7a938933
ILT
4451 $as_echo_n "(cached) " >&6
4452else
4453 if test -n "$GOC"; then
4454 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4455else
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 4462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
4463 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467done
4468 done
4469IFS=$as_save_IFS
4470
4471fi
4472fi
4473GOC=$ac_cv_prog_GOC
4474if test -n "$GOC"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4476$as_echo "$GOC" >&6; }
4477else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479$as_echo "no" >&6; }
4480fi
4481
4482
4483 fi
4484fi
4485if test -z "$GOC"; then
4486 # Extract the first word of "gccgo", so it can be a program name with args.
4487set dummy gccgo; ac_word=$2
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 4490if ${ac_cv_prog_GOC+:} false; then :
7a938933
ILT
4491 $as_echo_n "(cached) " >&6
4492else
4493 if test -n "$GOC"; then
4494 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4495else
4496 ac_prog_rejected=no
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9
ILT
4503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
7a938933
ILT
4505 ac_prog_rejected=yes
4506 continue
4507 fi
4508 ac_cv_prog_GOC="gccgo"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512done
4513 done
4514IFS=$as_save_IFS
4515
4516if test $ac_prog_rejected = yes; then
4517 # We found a bogon in the path, so make sure we never use it.
4518 set dummy $ac_cv_prog_GOC
4519 shift
4520 if test $# != 0; then
4521 # We chose a different compiler from the bogus one.
4522 # However, it has the same basename, so the bogon will be chosen
4523 # first if we set GOC to just the basename; use the full file name.
4524 shift
4525 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4526 fi
4527fi
4528fi
4529fi
4530GOC=$ac_cv_prog_GOC
4531if test -n "$GOC"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4533$as_echo "$GOC" >&6; }
4534else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536$as_echo "no" >&6; }
4537fi
4538
4539
4540fi
4541
4542
4543# Provide some information about the compiler.
4544$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4545set X $ac_compile
4546ac_compiler=$2
4547{ { ac_try="$ac_compiler --version >&5"
4548case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551esac
4552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553$as_echo "$ac_try_echo"; } >&5
4554 (eval "$ac_compiler --version >&5") 2>conftest.err
4555 ac_status=$?
4556 if test -s conftest.err; then
4557 sed '10a\
4558... rest of stderr output deleted ...
4559 10q' conftest.err >conftest.er1
4560 cat conftest.er1 >&5
7a938933 4561 fi
73b6d7a9 4562 rm -f conftest.er1 conftest.err
7a938933
ILT
4563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4564 test $ac_status = 0; }
73b6d7a9 4565GOFLAGS="-g -O2"
7a938933
ILT
4566ac_ext=c
4567ac_cpp='$CPP $CPPFLAGS'
4568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571
4d12cf3c
ILT
4572# By default we simply use the C compiler to build assembly code.
4573
4574test "${CCAS+set}" = set || CCAS=$CC
4575test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4576
4577
4578
4579depcc="$CCAS" am_compiler_list=
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4582$as_echo_n "checking dependency style of $depcc... " >&6; }
4583if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585else
4586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4587 # We make a subdir and do the tests there. Otherwise we can end up
4588 # making bogus files that we don't know about and never remove. For
4589 # instance it was reported that on HP-UX the gcc test will end up
4590 # making a dummy file named 'D' -- because '-MD' means "put the output
4591 # in D".
4592 rm -rf conftest.dir
4593 mkdir conftest.dir
4594 # Copy depcomp to subdir because otherwise we won't find it if we're
4595 # using a relative directory.
4596 cp "$am_depcomp" conftest.dir
4597 cd conftest.dir
4598 # We will build objects and dependencies in a subdirectory because
4599 # it helps to detect inapplicable dependency modes. For instance
4600 # both Tru64's cc and ICC support -MD to output dependencies as a
4601 # side effect of compilation, but ICC will put the dependencies in
4602 # the current directory while Tru64 will put them in the object
4603 # directory.
4604 mkdir sub
4605
4606 am_cv_CCAS_dependencies_compiler_type=none
4607 if test "$am_compiler_list" = ""; then
4608 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4609 fi
4610 am__universal=false
4611
4612
4613 for depmode in $am_compiler_list; do
4614 # Setup a source with many dependencies, because some compilers
4615 # like to wrap large dependency lists on column 80 (with \), and
4616 # we should not choose a depcomp mode which is confused by this.
4617 #
4618 # We need to recreate these files for each test, as the compiler may
4619 # overwrite some of them when testing with obscure command lines.
4620 # This happens at least with the AIX C compiler.
4621 : > sub/conftest.c
4622 for i in 1 2 3 4 5 6; do
4623 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4624 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4625 # Solaris 10 /bin/sh.
4626 echo '/* dummy */' > sub/conftst$i.h
4627 done
4628 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4629
4630 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4631 # mode. It turns out that the SunPro C++ compiler does not properly
4632 # handle '-M -o', and we need to detect this. Also, some Intel
4633 # versions had trouble with output in subdirs.
4634 am__obj=sub/conftest.${OBJEXT-o}
4635 am__minus_obj="-o $am__obj"
4636 case $depmode in
4637 gcc)
4638 # This depmode causes a compiler race in universal mode.
4639 test "$am__universal" = false || continue
4640 ;;
4641 nosideeffect)
4642 # After this tag, mechanisms are not by side-effect, so they'll
4643 # only be used when explicitly requested.
4644 if test "x$enable_dependency_tracking" = xyes; then
4645 continue
4646 else
4647 break
4648 fi
4649 ;;
4650 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4651 # This compiler won't grok '-c -o', but also, the minuso test has
4652 # not run yet. These depmodes are late enough in the game, and
4653 # so weak that their functioning should not be impacted.
4654 am__obj=conftest.${OBJEXT-o}
4655 am__minus_obj=
4656 ;;
4657 none) break ;;
4658 esac
4659 if depmode=$depmode \
4660 source=sub/conftest.c object=$am__obj \
4661 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4662 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4663 >/dev/null 2>conftest.err &&
4664 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4665 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4666 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4667 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4668 # icc doesn't choke on unknown options, it will just issue warnings
4669 # or remarks (even with -Werror). So we grep stderr for any message
4670 # that says an option was ignored or not supported.
4671 # When given -MP, icc 7.0 and 7.1 complain thusly:
4672 # icc: Command line warning: ignoring option '-M'; no argument required
4673 # The diagnosis changed in icc 8.0:
4674 # icc: Command line remark: option '-MP' not supported
4675 if (grep 'ignoring option' conftest.err ||
4676 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4677 am_cv_CCAS_dependencies_compiler_type=$depmode
4678 break
4679 fi
4680 fi
4681 done
4682
4683 cd ..
4684 rm -rf conftest.dir
4685else
4686 am_cv_CCAS_dependencies_compiler_type=none
4687fi
4688
4689fi
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4691$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4692CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4693
4694 if
4695 test "x$enable_dependency_tracking" != xno \
4696 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4697 am__fastdepCCAS_TRUE=
4698 am__fastdepCCAS_FALSE='#'
4699else
4700 am__fastdepCCAS_TRUE='#'
4701 am__fastdepCCAS_FALSE=
4702fi
4703
4704
7a938933
ILT
4705
4706
4707
4708
f163907e
ILT
4709case ${host} in
4710 *-*-aix*)
4711 # static hash tables crashes on AIX when libgo is built with O2
4712 CFLAGS="$CFLAGS -fno-section-anchors"
4713 GOCFLAGS="$GOCFLAGS -fno-section-anchors"
4714 ;;
4715esac
4716
7a938933
ILT
4717
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4719$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4720 # Check whether --enable-maintainer-mode was given.
4721if test "${enable_maintainer_mode+set}" = set; then :
4722 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4723else
4724 USE_MAINTAINER_MODE=no
4725fi
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4728$as_echo "$USE_MAINTAINER_MODE" >&6; }
4729 if test $USE_MAINTAINER_MODE = yes; then
4730 MAINTAINER_MODE_TRUE=
4731 MAINTAINER_MODE_FALSE='#'
4732else
4733 MAINTAINER_MODE_TRUE='#'
4734 MAINTAINER_MODE_FALSE=
4735fi
4736
4737 MAINT=$MAINTAINER_MODE_TRUE
4738
4739
4740
061793a4
ILT
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4742$as_echo_n "checking for a sed that does not truncate output... " >&6; }
73b6d7a9 4743if ${ac_cv_path_SED+:} false; then :
7a938933
ILT
4744 $as_echo_n "(cached) " >&6
4745else
061793a4
ILT
4746 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4747 for ac_i in 1 2 3 4 5 6 7; do
4748 ac_script="$ac_script$as_nl$ac_script"
4749 done
4750 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4751 { ac_script=; unset ac_script;}
4752 if test -z "$SED"; then
4753 ac_path_SED_found=false
4754 # Loop through the user's path and test for each of PROGNAME-LIST
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
7a938933 4757do
061793a4
ILT
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_prog in sed gsed; do
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
73b6d7a9 4763 as_fn_executable_p "$ac_path_SED" || continue
061793a4
ILT
4764# Check for GNU ac_path_SED and select it if it is found.
4765 # Check for GNU $ac_path_SED
4766case `"$ac_path_SED" --version 2>&1` in
4767*GNU*)
4768 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4769*)
4770 ac_count=0
4771 $as_echo_n 0123456789 >"conftest.in"
4772 while :
4773 do
4774 cat "conftest.in" "conftest.in" >"conftest.tmp"
4775 mv "conftest.tmp" "conftest.in"
4776 cp "conftest.in" "conftest.nl"
4777 $as_echo '' >> "conftest.nl"
4778 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780 as_fn_arith $ac_count + 1 && ac_count=$as_val
4781 if test $ac_count -gt ${ac_path_SED_max-0}; then
4782 # Best one so far, save it but keep looking for a better one
4783 ac_cv_path_SED="$ac_path_SED"
4784 ac_path_SED_max=$ac_count
4785 fi
4786 # 10*(2^10) chars as input seems more than enough
4787 test $ac_count -gt 10 && break
4788 done
4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4790esac
7a938933 4791
061793a4
ILT
4792 $ac_path_SED_found && break 3
4793 done
4794 done
4795 done
4796IFS=$as_save_IFS
4797 if test -z "$ac_cv_path_SED"; then
73b6d7a9 4798 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
061793a4 4799 fi
7a938933 4800else
061793a4 4801 ac_cv_path_SED=$SED
7a938933
ILT
4802fi
4803
4804fi
061793a4
ILT
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4806$as_echo "$ac_cv_path_SED" >&6; }
4807 SED="$ac_cv_path_SED"
4808 rm -f conftest.sed
4809
4810test -z "$SED" && SED=sed
4811Xsed="$SED -e 1s/^X//"
4812
7a938933
ILT
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4824$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
73b6d7a9 4825if ${ac_cv_path_GREP+:} false; then :
7a938933
ILT
4826 $as_echo_n "(cached) " >&6
4827else
4828 if test -z "$GREP"; then
4829 ac_path_GREP_found=false
4830 # Loop through the user's path and test for each of PROGNAME-LIST
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833do
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_prog in grep ggrep; do
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
73b6d7a9 4839 as_fn_executable_p "$ac_path_GREP" || continue
7a938933
ILT
4840# Check for GNU ac_path_GREP and select it if it is found.
4841 # Check for GNU $ac_path_GREP
4842case `"$ac_path_GREP" --version 2>&1` in
4843*GNU*)
4844 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4845*)
4846 ac_count=0
4847 $as_echo_n 0123456789 >"conftest.in"
4848 while :
4849 do
4850 cat "conftest.in" "conftest.in" >"conftest.tmp"
4851 mv "conftest.tmp" "conftest.in"
4852 cp "conftest.in" "conftest.nl"
4853 $as_echo 'GREP' >> "conftest.nl"
4854 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4856 as_fn_arith $ac_count + 1 && ac_count=$as_val
4857 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4858 # Best one so far, save it but keep looking for a better one
4859 ac_cv_path_GREP="$ac_path_GREP"
4860 ac_path_GREP_max=$ac_count
4861 fi
4862 # 10*(2^10) chars as input seems more than enough
4863 test $ac_count -gt 10 && break
4864 done
4865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866esac
4867
4868 $ac_path_GREP_found && break 3
4869 done
4870 done
4871 done
4872IFS=$as_save_IFS
4873 if test -z "$ac_cv_path_GREP"; then
73b6d7a9 4874 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7a938933
ILT
4875 fi
4876else
4877 ac_cv_path_GREP=$GREP
4878fi
4879
4880fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4882$as_echo "$ac_cv_path_GREP" >&6; }
4883 GREP="$ac_cv_path_GREP"
4884
4885
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4887$as_echo_n "checking for egrep... " >&6; }
73b6d7a9 4888if ${ac_cv_path_EGREP+:} false; then :
7a938933
ILT
4889 $as_echo_n "(cached) " >&6
4890else
4891 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4892 then ac_cv_path_EGREP="$GREP -E"
4893 else
4894 if test -z "$EGREP"; then
4895 ac_path_EGREP_found=false
4896 # Loop through the user's path and test for each of PROGNAME-LIST
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_prog in egrep; do
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
73b6d7a9 4905 as_fn_executable_p "$ac_path_EGREP" || continue
7a938933
ILT
4906# Check for GNU ac_path_EGREP and select it if it is found.
4907 # Check for GNU $ac_path_EGREP
4908case `"$ac_path_EGREP" --version 2>&1` in
4909*GNU*)
4910 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4911*)
4912 ac_count=0
4913 $as_echo_n 0123456789 >"conftest.in"
4914 while :
4915 do
4916 cat "conftest.in" "conftest.in" >"conftest.tmp"
4917 mv "conftest.tmp" "conftest.in"
4918 cp "conftest.in" "conftest.nl"
4919 $as_echo 'EGREP' >> "conftest.nl"
4920 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4922 as_fn_arith $ac_count + 1 && ac_count=$as_val
4923 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4924 # Best one so far, save it but keep looking for a better one
4925 ac_cv_path_EGREP="$ac_path_EGREP"
4926 ac_path_EGREP_max=$ac_count
4927 fi
4928 # 10*(2^10) chars as input seems more than enough
4929 test $ac_count -gt 10 && break
4930 done
4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4932esac
4933
4934 $ac_path_EGREP_found && break 3
4935 done
4936 done
4937 done
4938IFS=$as_save_IFS
4939 if test -z "$ac_cv_path_EGREP"; then
73b6d7a9 4940 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7a938933
ILT
4941 fi
4942else
4943 ac_cv_path_EGREP=$EGREP
4944fi
4945
4946 fi
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4949$as_echo "$ac_cv_path_EGREP" >&6; }
4950 EGREP="$ac_cv_path_EGREP"
4951
4952
061793a4
ILT
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4954$as_echo_n "checking for fgrep... " >&6; }
73b6d7a9 4955if ${ac_cv_path_FGREP+:} false; then :
e02ed81e
ILT
4956 $as_echo_n "(cached) " >&6
4957else
061793a4
ILT
4958 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4959 then ac_cv_path_FGREP="$GREP -F"
4960 else
4961 if test -z "$FGREP"; then
4962 ac_path_FGREP_found=false
7a938933
ILT
4963 # Loop through the user's path and test for each of PROGNAME-LIST
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
061793a4 4965for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7a938933
ILT
4966do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
061793a4 4969 for ac_prog in fgrep; do
7a938933 4970 for ac_exec_ext in '' $ac_executable_extensions; do
061793a4 4971 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
73b6d7a9 4972 as_fn_executable_p "$ac_path_FGREP" || continue
061793a4
ILT
4973# Check for GNU ac_path_FGREP and select it if it is found.
4974 # Check for GNU $ac_path_FGREP
4975case `"$ac_path_FGREP" --version 2>&1` in
7a938933 4976*GNU*)
061793a4 4977 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7a938933
ILT
4978*)
4979 ac_count=0
4980 $as_echo_n 0123456789 >"conftest.in"
4981 while :
4982 do
4983 cat "conftest.in" "conftest.in" >"conftest.tmp"
4984 mv "conftest.tmp" "conftest.in"
4985 cp "conftest.in" "conftest.nl"
061793a4
ILT
4986 $as_echo 'FGREP' >> "conftest.nl"
4987 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7a938933
ILT
4988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4989 as_fn_arith $ac_count + 1 && ac_count=$as_val
061793a4 4990 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7a938933 4991 # Best one so far, save it but keep looking for a better one
061793a4
ILT
4992 ac_cv_path_FGREP="$ac_path_FGREP"
4993 ac_path_FGREP_max=$ac_count
7a938933
ILT
4994 fi
4995 # 10*(2^10) chars as input seems more than enough
4996 test $ac_count -gt 10 && break
4997 done
4998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4999esac
5000
061793a4 5001 $ac_path_FGREP_found && break 3
7a938933
ILT
5002 done
5003 done
5004 done
5005IFS=$as_save_IFS
061793a4 5006 if test -z "$ac_cv_path_FGREP"; then
73b6d7a9 5007 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7a938933
ILT
5008 fi
5009else
061793a4 5010 ac_cv_path_FGREP=$FGREP
e02ed81e
ILT
5011fi
5012
061793a4 5013 fi
7a938933
ILT
5014fi
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5016$as_echo "$ac_cv_path_FGREP" >&6; }
5017 FGREP="$ac_cv_path_FGREP"
5018
5019
5020test -z "$GREP" && GREP=grep
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5039ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5040ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5041
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5043$as_echo_n "checking how to print strings... " >&6; }
5044# Test print first, because it will be a builtin if present.
5045if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5046 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5047 ECHO='print -r --'
5048elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5049 ECHO='printf %s\n'
5050else
5051 # Use this function as a fallback that always works.
5052 func_fallback_echo ()
5053 {
5054 eval 'cat <<_LTECHO_EOF
5055$1
5056_LTECHO_EOF'
5057 }
5058 ECHO='func_fallback_echo'
5059fi
5060
5061# func_echo_all arg...
5062# Invoke $ECHO with all args, space-separated.
5063func_echo_all ()
5064{
5065 $ECHO ""
5066}
5067
5068case "$ECHO" in
5069 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5070$as_echo "printf" >&6; } ;;
5071 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5072$as_echo "print -r" >&6; } ;;
5073 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5074$as_echo "cat" >&6; } ;;
5075esac
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092# Check whether --with-gnu-ld was given.
5093if test "${with_gnu_ld+set}" = set; then :
5094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5095else
5096 with_gnu_ld=no
5097fi
5098
5099ac_prog=ld
5100if test "$GCC" = yes; then
5101 # Check if gcc -print-prog-name=ld gives a path.
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5103$as_echo_n "checking for ld used by $CC... " >&6; }
5104 case $host in
5105 *-*-mingw*)
5106 # gcc leaves a trailing carriage return which upsets mingw
5107 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5108 *)
5109 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5110 esac
5111 case $ac_prog in
5112 # Accept absolute paths.
5113 [\\/]* | ?:[\\/]*)
5114 re_direlt='/[^/][^/]*/\.\./'
5115 # Canonicalize the pathname of ld
5116 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5117 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5118 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5119 done
5120 test -z "$LD" && LD="$ac_prog"
5121 ;;
5122 "")
5123 # If it fails, then pretend we aren't using GCC.
5124 ac_prog=ld
5125 ;;
5126 *)
5127 # If it is relative, then search for the first ld in PATH.
5128 with_gnu_ld=unknown
5129 ;;
5130 esac
5131elif test "$with_gnu_ld" = yes; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5133$as_echo_n "checking for GNU ld... " >&6; }
5134else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5136$as_echo_n "checking for non-GNU ld... " >&6; }
5137fi
73b6d7a9 5138if ${lt_cv_path_LD+:} false; then :
7a938933
ILT
5139 $as_echo_n "(cached) " >&6
5140else
5141 if test -z "$LD"; then
5142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5143 for ac_dir in $PATH; do
5144 IFS="$lt_save_ifs"
5145 test -z "$ac_dir" && ac_dir=.
5146 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5147 lt_cv_path_LD="$ac_dir/$ac_prog"
5148 # Check to see if the program is GNU ld. I'd rather use --version,
5149 # but apparently some variants of GNU ld only accept -v.
5150 # Break only if it was the GNU/non-GNU ld that we prefer.
5151 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5152 *GNU* | *'with BFD'*)
5153 test "$with_gnu_ld" != no && break
5154 ;;
5155 *)
5156 test "$with_gnu_ld" != yes && break
5157 ;;
5158 esac
5159 fi
5160 done
5161 IFS="$lt_save_ifs"
5162else
5163 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5164fi
5165fi
5166
5167LD="$lt_cv_path_LD"
5168if test -n "$LD"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5170$as_echo "$LD" >&6; }
5171else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173$as_echo "no" >&6; }
5174fi
73b6d7a9 5175test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7a938933
ILT
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5177$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
73b6d7a9 5178if ${lt_cv_prog_gnu_ld+:} false; then :
7a938933
ILT
5179 $as_echo_n "(cached) " >&6
5180else
5181 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5182case `$LD -v 2>&1 </dev/null` in
5183*GNU* | *'with BFD'*)
5184 lt_cv_prog_gnu_ld=yes
5185 ;;
5186*)
5187 lt_cv_prog_gnu_ld=no
5188 ;;
5189esac
5190fi
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5192$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5193with_gnu_ld=$lt_cv_prog_gnu_ld
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203if test -n "$ac_tool_prefix"; then
5204 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5205set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5208if ${ac_cv_prog_RANLIB+:} false; then :
7a938933
ILT
5209 $as_echo_n "(cached) " >&6
5210else
5211 if test -n "$RANLIB"; then
5212 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5221 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225done
5226 done
5227IFS=$as_save_IFS
5228
5229fi
5230fi
5231RANLIB=$ac_cv_prog_RANLIB
5232if test -n "$RANLIB"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5234$as_echo "$RANLIB" >&6; }
5235else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }
5238fi
5239
5240
5241fi
5242if test -z "$ac_cv_prog_RANLIB"; then
5243 ac_ct_RANLIB=$RANLIB
5244 # Extract the first word of "ranlib", so it can be a program name with args.
5245set dummy ranlib; ac_word=$2
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5248if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7a938933
ILT
5249 $as_echo_n "(cached) " >&6
5250else
5251 if test -n "$ac_ct_RANLIB"; then
5252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5261 ac_cv_prog_ac_ct_RANLIB="ranlib"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265done
5266 done
5267IFS=$as_save_IFS
5268
5269fi
5270fi
5271ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5272if test -n "$ac_ct_RANLIB"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5274$as_echo "$ac_ct_RANLIB" >&6; }
5275else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277$as_echo "no" >&6; }
5278fi
5279
5280 if test "x$ac_ct_RANLIB" = x; then
5281 RANLIB=":"
5282 else
5283 case $cross_compiling:$ac_tool_warned in
5284yes:)
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5287ac_tool_warned=yes ;;
5288esac
5289 RANLIB=$ac_ct_RANLIB
5290 fi
5291else
5292 RANLIB="$ac_cv_prog_RANLIB"
5293fi
5294
5295if test -n "$ac_tool_prefix"; then
5296 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5297set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5300if ${ac_cv_prog_OBJCOPY+:} false; then :
7a938933
ILT
5301 $as_echo_n "(cached) " >&6
5302else
5303 if test -n "$OBJCOPY"; then
5304 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5313 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317done
5318 done
5319IFS=$as_save_IFS
5320
5321fi
5322fi
5323OBJCOPY=$ac_cv_prog_OBJCOPY
5324if test -n "$OBJCOPY"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5326$as_echo "$OBJCOPY" >&6; }
5327else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329$as_echo "no" >&6; }
5330fi
5331
5332
5333fi
5334if test -z "$ac_cv_prog_OBJCOPY"; then
5335 ac_ct_OBJCOPY=$OBJCOPY
5336 # Extract the first word of "objcopy", so it can be a program name with args.
5337set dummy objcopy; ac_word=$2
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5340if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
7a938933
ILT
5341 $as_echo_n "(cached) " >&6
5342else
5343 if test -n "$ac_ct_OBJCOPY"; then
5344 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5345else
5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5353 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5356 fi
5357done
5358 done
5359IFS=$as_save_IFS
5360
5361fi
5362fi
5363ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5364if test -n "$ac_ct_OBJCOPY"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5366$as_echo "$ac_ct_OBJCOPY" >&6; }
5367else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369$as_echo "no" >&6; }
5370fi
5371
5372 if test "x$ac_ct_OBJCOPY" = x; then
5373 OBJCOPY="missing-objcopy"
5374 else
5375 case $cross_compiling:$ac_tool_warned in
5376yes:)
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5379ac_tool_warned=yes ;;
5380esac
5381 OBJCOPY=$ac_ct_OBJCOPY
5382 fi
5383else
5384 OBJCOPY="$ac_cv_prog_OBJCOPY"
5385fi
5386
5387
5388enable_dlopen=yes
5389
5390
5391
5392case `pwd` in
5393 *\ * | *\ *)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5395$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5396esac
5397
5398
5399
5400macro_version='2.2.7a'
5401macro_revision='1.3134'
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415ltmain="$ac_aux_dir/ltmain.sh"
5416
5417# Backslashify metacharacters that are still active within
5418# double-quoted strings.
5419sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5420
5421# Same as above, but do not quote variable references.
5422double_quote_subst='s/\(["`\\]\)/\\\1/g'
5423
5424# Sed substitution to delay expansion of an escaped shell variable in a
5425# double_quote_subst'ed string.
5426delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5427
5428# Sed substitution to delay expansion of an escaped single quote.
5429delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5430
5431# Sed substitution to avoid accidental globbing in evaled expressions
5432no_glob_subst='s/\*/\\\*/g'
5433
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5435$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
73b6d7a9 5436if ${lt_cv_path_NM+:} false; then :
7a938933
ILT
5437 $as_echo_n "(cached) " >&6
5438else
5439 if test -n "$NM"; then
5440 # Let the user override the test.
5441 lt_cv_path_NM="$NM"
5442else
5443 lt_nm_to_check="${ac_tool_prefix}nm"
5444 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5445 lt_nm_to_check="$lt_nm_to_check nm"
5446 fi
5447 for lt_tmp_nm in $lt_nm_to_check; do
5448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5449 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5450 IFS="$lt_save_ifs"
5451 test -z "$ac_dir" && ac_dir=.
5452 tmp_nm="$ac_dir/$lt_tmp_nm"
5453 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5454 # Check to see if the nm accepts a BSD-compat flag.
5455 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5456 # nm: unknown option "B" ignored
5457 # Tru64's nm complains that /dev/null is an invalid object file
5458 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5459 */dev/null* | *'Invalid file or object type'*)
5460 lt_cv_path_NM="$tmp_nm -B"
5461 break
5462 ;;
5463 *)
5464 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5465 */dev/null*)
5466 lt_cv_path_NM="$tmp_nm -p"
5467 break
5468 ;;
5469 *)
5470 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5471 continue # so that we can try to find one that supports BSD flags
5472 ;;
5473 esac
5474 ;;
5475 esac
5476 fi
5477 done
5478 IFS="$lt_save_ifs"
5479 done
5480 : ${lt_cv_path_NM=no}
5481fi
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5484$as_echo "$lt_cv_path_NM" >&6; }
5485if test "$lt_cv_path_NM" != "no"; then
5486 NM="$lt_cv_path_NM"
5487else
5488 # Didn't find any BSD compatible name lister, look for dumpbin.
5489 if test -n "$DUMPBIN"; then :
5490 # Let the user override the test.
5491 else
5492 if test -n "$ac_tool_prefix"; then
5493 for ac_prog in dumpbin "link -dump"
5494 do
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5499if ${ac_cv_prog_DUMPBIN+:} false; then :
7a938933
ILT
5500 $as_echo_n "(cached) " >&6
5501else
5502 if test -n "$DUMPBIN"; then
5503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517 done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522DUMPBIN=$ac_cv_prog_DUMPBIN
5523if test -n "$DUMPBIN"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5525$as_echo "$DUMPBIN" >&6; }
5526else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528$as_echo "no" >&6; }
5529fi
5530
5531
5532 test -n "$DUMPBIN" && break
5533 done
5534fi
5535if test -z "$DUMPBIN"; then
5536 ac_ct_DUMPBIN=$DUMPBIN
5537 for ac_prog in dumpbin "link -dump"
5538do
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540set dummy $ac_prog; ac_word=$2
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5543if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7a938933
ILT
5544 $as_echo_n "(cached) " >&6
5545else
5546 if test -n "$ac_ct_DUMPBIN"; then
5547 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5556 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560done
5561 done
5562IFS=$as_save_IFS
5563
5564fi
5565fi
5566ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5567if test -n "$ac_ct_DUMPBIN"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5569$as_echo "$ac_ct_DUMPBIN" >&6; }
5570else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
5573fi
5574
5575
5576 test -n "$ac_ct_DUMPBIN" && break
5577done
5578
5579 if test "x$ac_ct_DUMPBIN" = x; then
5580 DUMPBIN=":"
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583yes:)
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5586ac_tool_warned=yes ;;
5587esac
5588 DUMPBIN=$ac_ct_DUMPBIN
5589 fi
5590fi
5591
5592 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5593 *COFF*)
5594 DUMPBIN="$DUMPBIN -symbols"
5595 ;;
5596 *)
5597 DUMPBIN=:
5598 ;;
5599 esac
5600 fi
5601
5602 if test "$DUMPBIN" != ":"; then
5603 NM="$DUMPBIN"
5604 fi
5605fi
5606test -z "$NM" && NM=nm
5607
5608
5609
5610
5611
5612
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5614$as_echo_n "checking the name lister ($NM) interface... " >&6; }
73b6d7a9 5615if ${lt_cv_nm_interface+:} false; then :
7a938933
ILT
5616 $as_echo_n "(cached) " >&6
5617else
5618 lt_cv_nm_interface="BSD nm"
5619 echo "int some_variable = 0;" > conftest.$ac_ext
5620 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5621 (eval "$ac_compile" 2>conftest.err)
5622 cat conftest.err >&5
5623 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5624 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5625 cat conftest.err >&5
5626 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5627 cat conftest.out >&5
5628 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5629 lt_cv_nm_interface="MS dumpbin"
5630 fi
5631 rm -f conftest*
5632fi
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5634$as_echo "$lt_cv_nm_interface" >&6; }
5635
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5637$as_echo_n "checking whether ln -s works... " >&6; }
5638LN_S=$as_ln_s
5639if test "$LN_S" = "ln -s"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5641$as_echo "yes" >&6; }
5642else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5644$as_echo "no, using $LN_S" >&6; }
5645fi
5646
5647# find the maximum length of command line arguments
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5649$as_echo_n "checking the maximum length of command line arguments... " >&6; }
73b6d7a9 5650if ${lt_cv_sys_max_cmd_len+:} false; then :
7a938933
ILT
5651 $as_echo_n "(cached) " >&6
5652else
5653 i=0
5654 teststring="ABCD"
5655
5656 case $build_os in
5657 msdosdjgpp*)
5658 # On DJGPP, this test can blow up pretty badly due to problems in libc
5659 # (any single argument exceeding 2000 bytes causes a buffer overrun
5660 # during glob expansion). Even if it were fixed, the result of this
5661 # check would be larger than it should be.
5662 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5663 ;;
5664
5665 gnu*)
5666 # Under GNU Hurd, this test is not required because there is
5667 # no limit to the length of command line arguments.
5668 # Libtool will interpret -1 as no limit whatsoever
5669 lt_cv_sys_max_cmd_len=-1;
5670 ;;
5671
5672 cygwin* | mingw* | cegcc*)
5673 # On Win9x/ME, this test blows up -- it succeeds, but takes
5674 # about 5 minutes as the teststring grows exponentially.
5675 # Worse, since 9x/ME are not pre-emptively multitasking,
5676 # you end up with a "frozen" computer, even though with patience
5677 # the test eventually succeeds (with a max line length of 256k).
5678 # Instead, let's just punt: use the minimum linelength reported by
5679 # all of the supported platforms: 8192 (on NT/2K/XP).
5680 lt_cv_sys_max_cmd_len=8192;
5681 ;;
5682
5683 mint*)
5684 # On MiNT this can take a long time and run out of memory.
5685 lt_cv_sys_max_cmd_len=8192;
5686 ;;
5687
5688 amigaos*)
5689 # On AmigaOS with pdksh, this test takes hours, literally.
5690 # So we just punt and use a minimum line length of 8192.
5691 lt_cv_sys_max_cmd_len=8192;
5692 ;;
5693
5694 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5695 # This has been around since 386BSD, at least. Likely further.
5696 if test -x /sbin/sysctl; then
5697 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5698 elif test -x /usr/sbin/sysctl; then
5699 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5700 else
5701 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5702 fi
5703 # And add a safety zone
5704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5706 ;;
5707
5708 interix*)
5709 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5710 lt_cv_sys_max_cmd_len=196608
5711 ;;
5712
5713 osf*)
5714 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5715 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5716 # nice to cause kernel panics so lets avoid the loop below.
5717 # First set a reasonable default.
5718 lt_cv_sys_max_cmd_len=16384
5719 #
5720 if test -x /sbin/sysconfig; then
5721 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5722 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5723 esac
5724 fi
5725 ;;
5726 sco3.2v5*)
5727 lt_cv_sys_max_cmd_len=102400
5728 ;;
5729 sysv5* | sco5v6* | sysv4.2uw2*)
5730 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5731 if test -n "$kargmax"; then
5732 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5733 else
5734 lt_cv_sys_max_cmd_len=32768
5735 fi
5736 ;;
5737 *)
5738 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5739 if test -n "$lt_cv_sys_max_cmd_len"; then
5740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5742 else
5743 # Make teststring a little bigger before we do anything with it.
5744 # a 1K string should be a reasonable start.
5745 for i in 1 2 3 4 5 6 7 8 ; do
5746 teststring=$teststring$teststring
5747 done
5748 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5749 # If test is not a shell built-in, we'll probably end up computing a
5750 # maximum length that is only half of the actual maximum length, but
5751 # we can't tell.
5752 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5753 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5754 test $i != 17 # 1/2 MB should be enough
5755 do
5756 i=`expr $i + 1`
5757 teststring=$teststring$teststring
5758 done
5759 # Only check the string length outside the loop.
5760 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5761 teststring=
5762 # Add a significant safety factor because C++ compilers can tack on
5763 # massive amounts of additional arguments before passing them to the
5764 # linker. It appears as though 1/2 is a usable value.
5765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5766 fi
5767 ;;
5768 esac
5769
5770fi
5771
5772if test -n $lt_cv_sys_max_cmd_len ; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5774$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5775else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5777$as_echo "none" >&6; }
5778fi
5779max_cmd_len=$lt_cv_sys_max_cmd_len
5780
5781
5782
5783
5784
5785
5786: ${CP="cp -f"}
5787: ${MV="mv -f"}
5788: ${RM="rm -f"}
5789
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5791$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5792# Try some XSI features
5793xsi_shell=no
5794( _lt_dummy="a/b/c"
5795 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5796 = c,a/b,, \
5797 && eval 'test $(( 1 + 1 )) -eq 2 \
5798 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5799 && xsi_shell=yes
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5801$as_echo "$xsi_shell" >&6; }
5802
5803
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5805$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5806lt_shell_append=no
5807( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5808 >/dev/null 2>&1 \
5809 && lt_shell_append=yes
5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5811$as_echo "$lt_shell_append" >&6; }
5812
5813
5814if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5815 lt_unset=unset
5816else
5817 lt_unset=false
5818fi
5819
5820
5821
5822
5823
5824# test EBCDIC or ASCII
5825case `echo X|tr X '\101'` in
5826 A) # ASCII based system
5827 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5828 lt_SP2NL='tr \040 \012'
5829 lt_NL2SP='tr \015\012 \040\040'
5830 ;;
5831 *) # EBCDIC based system
5832 lt_SP2NL='tr \100 \n'
5833 lt_NL2SP='tr \r\n \100\100'
5834 ;;
5835esac
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5846$as_echo_n "checking for $LD option to reload object files... " >&6; }
73b6d7a9 5847if ${lt_cv_ld_reload_flag+:} false; then :
7a938933
ILT
5848 $as_echo_n "(cached) " >&6
5849else
5850 lt_cv_ld_reload_flag='-r'
5851fi
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5853$as_echo "$lt_cv_ld_reload_flag" >&6; }
5854reload_flag=$lt_cv_ld_reload_flag
5855case $reload_flag in
5856"" | " "*) ;;
5857*) reload_flag=" $reload_flag" ;;
5858esac
5859reload_cmds='$LD$reload_flag -o $output$reload_objs'
5860case $host_os in
5861 darwin*)
5862 if test "$GCC" = yes; then
5863 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5864 else
5865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5866 fi
5867 ;;
5868esac
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878if test -n "$ac_tool_prefix"; then
5879 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5880set dummy ${ac_tool_prefix}objdump; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5883if ${ac_cv_prog_OBJDUMP+:} false; then :
7a938933
ILT
5884 $as_echo_n "(cached) " >&6
5885else
5886 if test -n "$OBJDUMP"; then
5887 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5896 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900done
5901 done
5902IFS=$as_save_IFS
5903
5904fi
5905fi
5906OBJDUMP=$ac_cv_prog_OBJDUMP
5907if test -n "$OBJDUMP"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5909$as_echo "$OBJDUMP" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915
5916fi
5917if test -z "$ac_cv_prog_OBJDUMP"; then
5918 ac_ct_OBJDUMP=$OBJDUMP
5919 # Extract the first word of "objdump", so it can be a program name with args.
5920set dummy objdump; ac_word=$2
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5923if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7a938933
ILT
5924 $as_echo_n "(cached) " >&6
5925else
5926 if test -n "$ac_ct_OBJDUMP"; then
5927 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5936 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941 done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5947if test -n "$ac_ct_OBJDUMP"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5949$as_echo "$ac_ct_OBJDUMP" >&6; }
5950else
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952$as_echo "no" >&6; }
5953fi
5954
5955 if test "x$ac_ct_OBJDUMP" = x; then
5956 OBJDUMP="false"
5957 else
5958 case $cross_compiling:$ac_tool_warned in
5959yes:)
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962ac_tool_warned=yes ;;
5963esac
5964 OBJDUMP=$ac_ct_OBJDUMP
5965 fi
5966else
5967 OBJDUMP="$ac_cv_prog_OBJDUMP"
5968fi
5969
5970test -z "$OBJDUMP" && OBJDUMP=objdump
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5981$as_echo_n "checking how to recognize dependent libraries... " >&6; }
73b6d7a9 5982if ${lt_cv_deplibs_check_method+:} false; then :
7a938933
ILT
5983 $as_echo_n "(cached) " >&6
5984else
5985 lt_cv_file_magic_cmd='$MAGIC_CMD'
5986lt_cv_file_magic_test_file=
5987lt_cv_deplibs_check_method='unknown'
5988# Need to set the preceding variable on all platforms that support
5989# interlibrary dependencies.
5990# 'none' -- dependencies not supported.
5991# `unknown' -- same as none, but documents that we really don't know.
5992# 'pass_all' -- all dependencies passed with no checks.
5993# 'test_compile' -- check by making test program.
5994# 'file_magic [[regex]]' -- check by looking for files in library path
5995# which responds to the $file_magic_cmd with a given extended regex.
5996# If you have `file' or equivalent on your system and you're not sure
5997# whether `pass_all' will *always* work, you probably want this one.
5998
5999case $host_os in
6000aix[4-9]*)
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003
6004beos*)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007
6008bsdi[45]*)
6009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6010 lt_cv_file_magic_cmd='/usr/bin/file -L'
6011 lt_cv_file_magic_test_file=/shlib/libc.so
6012 ;;
6013
6014cygwin*)
6015 # func_win32_libid is a shell function defined in ltmain.sh
6016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6017 lt_cv_file_magic_cmd='func_win32_libid'
6018 ;;
6019
6020mingw* | pw32*)
6021 # Base MSYS/MinGW do not provide the 'file' command needed by
6022 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6023 # unless we find 'file', for example because we are cross-compiling.
6024 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6025 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6027 lt_cv_file_magic_cmd='func_win32_libid'
6028 else
6029 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6030 lt_cv_file_magic_cmd='$OBJDUMP -f'
6031 fi
6032 ;;
6033
6034cegcc*)
6035 # use the weaker test based on 'objdump'. See mingw*.
6036 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6037 lt_cv_file_magic_cmd='$OBJDUMP -f'
6038 ;;
6039
6040darwin* | rhapsody*)
6041 lt_cv_deplibs_check_method=pass_all
6042 ;;
6043
6044freebsd* | dragonfly*)
6045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6046 case $host_cpu in
6047 i*86 )
6048 # Not sure whether the presence of OpenBSD here was a mistake.
6049 # Let's accept both of them until this is cleared up.
6050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6051 lt_cv_file_magic_cmd=/usr/bin/file
6052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6053 ;;
6054 esac
6055 else
6056 lt_cv_deplibs_check_method=pass_all
6057 fi
6058 ;;
6059
6060gnu*)
6061 lt_cv_deplibs_check_method=pass_all
6062 ;;
6063
6064haiku*)
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067
6068hpux10.20* | hpux11*)
6069 lt_cv_file_magic_cmd=/usr/bin/file
6070 case $host_cpu in
6071 ia64*)
6072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6073 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6074 ;;
6075 hppa*64*)
6076 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]'
6077 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6078 ;;
6079 *)
6080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6081 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6082 ;;
6083 esac
6084 ;;
6085
6086interix[3-9]*)
6087 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6089 ;;
6090
6091irix5* | irix6* | nonstopux*)
6092 case $LD in
6093 *-32|*"-32 ") libmagic=32-bit;;
6094 *-n32|*"-n32 ") libmagic=N32;;
6095 *-64|*"-64 ") libmagic=64-bit;;
6096 *) libmagic=never-match;;
6097 esac
6098 lt_cv_deplibs_check_method=pass_all
6099 ;;
6100
6101# This must be Linux ELF.
6102linux* | k*bsd*-gnu | kopensolaris*-gnu)
6103 lt_cv_deplibs_check_method=pass_all
6104 ;;
6105
6106netbsd*)
6107 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6109 else
6110 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6111 fi
6112 ;;
6113
6114newos6*)
6115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6116 lt_cv_file_magic_cmd=/usr/bin/file
6117 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6118 ;;
6119
6120*nto* | *qnx*)
6121 lt_cv_deplibs_check_method=pass_all
6122 ;;
6123
6124openbsd*)
6125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6127 else
6128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6129 fi
6130 ;;
6131
6132osf3* | osf4* | osf5*)
6133 lt_cv_deplibs_check_method=pass_all
6134 ;;
6135
6136rdos*)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139
6140solaris*)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143
6144sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6145 lt_cv_deplibs_check_method=pass_all
6146 ;;
6147
6148sysv4 | sysv4.3*)
6149 case $host_vendor in
6150 motorola)
6151 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]'
6152 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6153 ;;
6154 ncr)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
6157 sequent)
6158 lt_cv_file_magic_cmd='/bin/file'
6159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6160 ;;
6161 sni)
6162 lt_cv_file_magic_cmd='/bin/file'
6163 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6164 lt_cv_file_magic_test_file=/lib/libc.so
6165 ;;
6166 siemens)
6167 lt_cv_deplibs_check_method=pass_all
6168 ;;
6169 pc)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172 esac
6173 ;;
6174
6175tpf*)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178esac
6179
6180fi
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6182$as_echo "$lt_cv_deplibs_check_method" >&6; }
6183file_magic_cmd=$lt_cv_file_magic_cmd
6184deplibs_check_method=$lt_cv_deplibs_check_method
6185test -z "$deplibs_check_method" && deplibs_check_method=unknown
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6200set dummy ${ac_tool_prefix}ar; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6203if ${ac_cv_prog_AR+:} false; then :
7a938933
ILT
6204 $as_echo_n "(cached) " >&6
6205else
6206 if test -n "$AR"; then
6207 ac_cv_prog_AR="$AR" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6216 ac_cv_prog_AR="${ac_tool_prefix}ar"
6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 break 2
6219 fi
6220done
6221 done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226AR=$ac_cv_prog_AR
6227if test -n "$AR"; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6229$as_echo "$AR" >&6; }
6230else
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235
6236fi
6237if test -z "$ac_cv_prog_AR"; then
6238 ac_ct_AR=$AR
6239 # Extract the first word of "ar", so it can be a program name with args.
6240set dummy ar; ac_word=$2
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6243if ${ac_cv_prog_ac_ct_AR+:} false; then :
7a938933
ILT
6244 $as_echo_n "(cached) " >&6
6245else
6246 if test -n "$ac_ct_AR"; then
6247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6256 ac_cv_prog_ac_ct_AR="ar"
6257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260done
6261 done
6262IFS=$as_save_IFS
6263
6264fi
6265fi
6266ac_ct_AR=$ac_cv_prog_ac_ct_AR
6267if test -n "$ac_ct_AR"; then
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6269$as_echo "$ac_ct_AR" >&6; }
6270else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272$as_echo "no" >&6; }
6273fi
6274
6275 if test "x$ac_ct_AR" = x; then
6276 AR="false"
6277 else
6278 case $cross_compiling:$ac_tool_warned in
6279yes:)
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282ac_tool_warned=yes ;;
6283esac
6284 AR=$ac_ct_AR
6285 fi
6286else
6287 AR="$ac_cv_prog_AR"
6288fi
6289
6290test -z "$AR" && AR=ar
6291test -z "$AR_FLAGS" && AR_FLAGS=cru
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6305set dummy ${ac_tool_prefix}strip; ac_word=$2
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6308if ${ac_cv_prog_STRIP+:} false; then :
7a938933
ILT
6309 $as_echo_n "(cached) " >&6
6310else
6311 if test -n "$STRIP"; then
6312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6313else
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6321 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6324 fi
6325done
6326 done
6327IFS=$as_save_IFS
6328
6329fi
6330fi
6331STRIP=$ac_cv_prog_STRIP
6332if test -n "$STRIP"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6334$as_echo "$STRIP" >&6; }
6335else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337$as_echo "no" >&6; }
6338fi
6339
6340
6341fi
6342if test -z "$ac_cv_prog_STRIP"; then
6343 ac_ct_STRIP=$STRIP
6344 # Extract the first word of "strip", so it can be a program name with args.
6345set dummy strip; ac_word=$2
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6348if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7a938933
ILT
6349 $as_echo_n "(cached) " >&6
6350else
6351 if test -n "$ac_ct_STRIP"; then
6352 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6361 ac_cv_prog_ac_ct_STRIP="strip"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365done
6366 done
6367IFS=$as_save_IFS
6368
6369fi
6370fi
6371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6372if test -n "$ac_ct_STRIP"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6374$as_echo "$ac_ct_STRIP" >&6; }
6375else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6378fi
6379
6380 if test "x$ac_ct_STRIP" = x; then
6381 STRIP=":"
6382 else
6383 case $cross_compiling:$ac_tool_warned in
6384yes:)
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387ac_tool_warned=yes ;;
6388esac
6389 STRIP=$ac_ct_STRIP
6390 fi
6391else
6392 STRIP="$ac_cv_prog_STRIP"
6393fi
6394
6395test -z "$STRIP" && STRIP=:
6396
6397
6398
6399
6400
6401
6402if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6404set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6407if ${ac_cv_prog_RANLIB+:} false; then :
7a938933
ILT
6408 $as_echo_n "(cached) " >&6
6409else
6410 if test -n "$RANLIB"; then
6411 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6412else
6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6420 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6423 fi
6424done
6425 done
6426IFS=$as_save_IFS
6427
6428fi
6429fi
6430RANLIB=$ac_cv_prog_RANLIB
6431if test -n "$RANLIB"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6433$as_echo "$RANLIB" >&6; }
6434else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; }
6437fi
6438
6439
6440fi
6441if test -z "$ac_cv_prog_RANLIB"; then
6442 ac_ct_RANLIB=$RANLIB
6443 # Extract the first word of "ranlib", so it can be a program name with args.
6444set dummy ranlib; ac_word=$2
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6447if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7a938933
ILT
6448 $as_echo_n "(cached) " >&6
6449else
6450 if test -n "$ac_ct_RANLIB"; then
6451 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6452else
6453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454for as_dir in $PATH
6455do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6460 ac_cv_prog_ac_ct_RANLIB="ranlib"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464done
6465 done
6466IFS=$as_save_IFS
6467
6468fi
6469fi
6470ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6471if test -n "$ac_ct_RANLIB"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6473$as_echo "$ac_ct_RANLIB" >&6; }
6474else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476$as_echo "no" >&6; }
6477fi
6478
6479 if test "x$ac_ct_RANLIB" = x; then
6480 RANLIB=":"
6481 else
6482 case $cross_compiling:$ac_tool_warned in
6483yes:)
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486ac_tool_warned=yes ;;
6487esac
6488 RANLIB=$ac_ct_RANLIB
6489 fi
6490else
6491 RANLIB="$ac_cv_prog_RANLIB"
6492fi
6493
6494test -z "$RANLIB" && RANLIB=:
6495
6496
6497
6498
6499
6500
6501# Determine commands to create old-style static archives.
6502old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6503old_postinstall_cmds='chmod 644 $oldlib'
6504old_postuninstall_cmds=
6505
6506if test -n "$RANLIB"; then
6507 case $host_os in
6508 openbsd*)
6509 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6510 ;;
6511 *)
6512 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6513 ;;
6514 esac
6515 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6516fi
6517
6518case $host_os in
6519 darwin*)
6520 lock_old_archive_extraction=yes ;;
6521 *)
6522 lock_old_archive_extraction=no ;;
6523esac
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563# If no C compiler was specified, use CC.
6564LTCC=${LTCC-"$CC"}
6565
6566# If no C compiler flags were specified, use CFLAGS.
6567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6568
6569# Allow CC to be a program name with arguments.
6570compiler=$CC
6571
6572
6573# Check for command to grab the raw symbol name followed by C symbol from nm.
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6575$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
73b6d7a9 6576if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7a938933
ILT
6577 $as_echo_n "(cached) " >&6
6578else
6579
6580# These are sane defaults that work on at least a few old systems.
6581# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6582
6583# Character class describing NM global symbol codes.
6584symcode='[BCDEGRST]'
6585
6586# Regexp to match symbols that can be accessed directly from C.
6587sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6588
6589# Define system-specific variables.
6590case $host_os in
6591aix*)
6592 symcode='[BCDT]'
6593 ;;
6594cygwin* | mingw* | pw32* | cegcc*)
6595 symcode='[ABCDGISTW]'
6596 ;;
6597hpux*)
6598 if test "$host_cpu" = ia64; then
6599 symcode='[ABCDEGRST]'
6600 fi
6601 ;;
6602irix* | nonstopux*)
6603 symcode='[BCDEGRST]'
6604 ;;
6605osf*)
6606 symcode='[BCDEGQRST]'
6607 ;;
6608solaris*)
6609 symcode='[BDRT]'
6610 ;;
6611sco3.2v5*)
6612 symcode='[DT]'
6613 ;;
6614sysv4.2uw2*)
6615 symcode='[DT]'
6616 ;;
6617sysv5* | sco5v6* | unixware* | OpenUNIX*)
6618 symcode='[ABDT]'
6619 ;;
6620sysv4)
6621 symcode='[DFNSTU]'
6622 ;;
6623esac
6624
6625# If we're using GNU nm, then use its standard symbol codes.
6626case `$NM -V 2>&1` in
6627*GNU* | *'with BFD'*)
6628 symcode='[ABCDGIRSTW]' ;;
6629esac
6630
6631# Transform an extracted symbol line into a proper C declaration.
6632# Some systems (esp. on ia64) link data and code symbols differently,
6633# so use this general approach.
6634lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6635
6636# Transform an extracted symbol line into symbol name and symbol address
6637lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6638lt_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'"
6639
6640# Handle CRLF in mingw tool chain
6641opt_cr=
6642case $build_os in
6643mingw*)
6644 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6645 ;;
6646esac
6647
6648# Try without a prefix underscore, then with it.
6649for ac_symprfx in "" "_"; do
6650
6651 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6652 symxfrm="\\1 $ac_symprfx\\2 \\2"
6653
6654 # Write the raw and C identifiers.
6655 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6656 # Fake it for dumpbin and say T for any non-static function
6657 # and D for any global variable.
6658 # Also find C++ and __fastcall symbols from MSVC++,
6659 # which start with @ or ?.
6660 lt_cv_sys_global_symbol_pipe="$AWK '"\
6661" {last_section=section; section=\$ 3};"\
6662" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6663" \$ 0!~/External *\|/{next};"\
6664" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6665" {if(hide[section]) next};"\
6666" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6667" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6668" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6669" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6670" ' prfx=^$ac_symprfx"
6671 else
6672 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6673 fi
6674
6675 # Check to see that the pipe works correctly.
6676 pipe_works=no
6677
6678 rm -f conftest*
6679 cat > conftest.$ac_ext <<_LT_EOF
6680#ifdef __cplusplus
6681extern "C" {
6682#endif
6683char nm_test_var;
6684void nm_test_func(void);
6685void nm_test_func(void){}
6686#ifdef __cplusplus
6687}
6688#endif
6689int main(){nm_test_var='a';nm_test_func();return(0);}
6690_LT_EOF
6691
6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6693 (eval $ac_compile) 2>&5
6694 ac_status=$?
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; }; then
6697 # Now try to grab the symbols.
6698 nlist=conftest.nm
6699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6700 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6701 ac_status=$?
6702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703 test $ac_status = 0; } && test -s "$nlist"; then
6704 # Try sorting and uniquifying the output.
6705 if sort "$nlist" | uniq > "$nlist"T; then
6706 mv -f "$nlist"T "$nlist"
6707 else
6708 rm -f "$nlist"T
6709 fi
6710
6711 # Make sure that we snagged all the symbols we need.
6712 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6713 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6714 cat <<_LT_EOF > conftest.$ac_ext
6715#ifdef __cplusplus
6716extern "C" {
6717#endif
6718
6719_LT_EOF
6720 # Now generate the symbol file.
6721 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6722
6723 cat <<_LT_EOF >> conftest.$ac_ext
6724
6725/* The mapping between symbol names and symbols. */
6726const struct {
6727 const char *name;
6728 void *address;
6729}
6730lt__PROGRAM__LTX_preloaded_symbols[] =
6731{
6732 { "@PROGRAM@", (void *) 0 },
6733_LT_EOF
6734 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6735 cat <<\_LT_EOF >> conftest.$ac_ext
6736 {0, (void *) 0}
6737};
6738
6739/* This works around a problem in FreeBSD linker */
6740#ifdef FREEBSD_WORKAROUND
6741static const void *lt_preloaded_setup() {
6742 return lt__PROGRAM__LTX_preloaded_symbols;
6743}
6744#endif
6745
6746#ifdef __cplusplus
6747}
6748#endif
6749_LT_EOF
6750 # Now try linking the two files.
6751 mv conftest.$ac_objext conftstm.$ac_objext
6752 lt_save_LIBS="$LIBS"
6753 lt_save_CFLAGS="$CFLAGS"
6754 LIBS="conftstm.$ac_objext"
6755 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6757 (eval $ac_link) 2>&5
6758 ac_status=$?
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6761 pipe_works=yes
6762 fi
6763 LIBS="$lt_save_LIBS"
6764 CFLAGS="$lt_save_CFLAGS"
6765 else
6766 echo "cannot find nm_test_func in $nlist" >&5
6767 fi
6768 else
6769 echo "cannot find nm_test_var in $nlist" >&5
6770 fi
6771 else
6772 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6773 fi
6774 else
6775 echo "$progname: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6777 fi
6778 rm -rf conftest* conftst*
6779
6780 # Do not use the global_symbol_pipe unless it works.
6781 if test "$pipe_works" = yes; then
6782 break
6783 else
6784 lt_cv_sys_global_symbol_pipe=
6785 fi
6786done
6787
6788fi
6789
6790if test -z "$lt_cv_sys_global_symbol_pipe"; then
6791 lt_cv_sys_global_symbol_to_cdecl=
6792fi
6793if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6795$as_echo "failed" >&6; }
6796else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6798$as_echo "ok" >&6; }
6799fi
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
061793a4 6820
7a938933
ILT
6821
6822
6823# Check whether --enable-libtool-lock was given.
6824if test "${enable_libtool_lock+set}" = set; then :
6825 enableval=$enable_libtool_lock;
6826fi
6827
6828test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6829
6830# Some flags need to be propagated to the compiler or linker for good
6831# libtool support.
6832case $host in
6833ia64-*-hpux*)
6834 # Find out which ABI we are using.
6835 echo 'int i;' > conftest.$ac_ext
6836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6837 (eval $ac_compile) 2>&5
6838 ac_status=$?
6839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840 test $ac_status = 0; }; then
6841 case `/usr/bin/file conftest.$ac_objext` in
6842 *ELF-32*)
6843 HPUX_IA64_MODE="32"
6844 ;;
6845 *ELF-64*)
6846 HPUX_IA64_MODE="64"
6847 ;;
6848 esac
6849 fi
6850 rm -rf conftest*
6851 ;;
6852*-*-irix6*)
6853 # Find out which ABI we are using.
6854 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856 (eval $ac_compile) 2>&5
6857 ac_status=$?
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; }; then
6860 if test "$lt_cv_prog_gnu_ld" = yes; then
6861 case `/usr/bin/file conftest.$ac_objext` in
6862 *32-bit*)
6863 LD="${LD-ld} -melf32bsmip"
6864 ;;
6865 *N32*)
6866 LD="${LD-ld} -melf32bmipn32"
6867 ;;
6868 *64-bit*)
6869 LD="${LD-ld} -melf64bmip"
6870 ;;
6871 esac
6872 else
6873 case `/usr/bin/file conftest.$ac_objext` in
6874 *32-bit*)
6875 LD="${LD-ld} -32"
6876 ;;
6877 *N32*)
6878 LD="${LD-ld} -n32"
6879 ;;
6880 *64-bit*)
6881 LD="${LD-ld} -64"
6882 ;;
6883 esac
6884 fi
6885 fi
6886 rm -rf conftest*
6887 ;;
6888
6e6bbb60 6889x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7a938933
ILT
6890s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6891 # Find out which ABI we are using.
6892 echo 'int i;' > conftest.$ac_ext
6893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894 (eval $ac_compile) 2>&5
6895 ac_status=$?
6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897 test $ac_status = 0; }; then
6898 case `/usr/bin/file conftest.o` in
6899 *32-bit*)
6900 case $host in
6901 x86_64-*kfreebsd*-gnu)
6902 LD="${LD-ld} -m elf_i386_fbsd"
6903 ;;
6904 x86_64-*linux*)
327a26a3
ILT
6905 case `/usr/bin/file conftest.o` in
6906 *x86-64*)
6907 LD="${LD-ld} -m elf32_x86_64"
6908 ;;
6909 *)
6910 LD="${LD-ld} -m elf_i386"
6911 ;;
6912 esac
7a938933 6913 ;;
42c447c0 6914 powerpc64le-*linux*)
6e6bbb60
ILT
6915 LD="${LD-ld} -m elf32lppclinux"
6916 ;;
42c447c0 6917 powerpc64-*linux*)
7a938933
ILT
6918 LD="${LD-ld} -m elf32ppclinux"
6919 ;;
6920 s390x-*linux*)
6921 LD="${LD-ld} -m elf_s390"
6922 ;;
6923 sparc64-*linux*)
6924 LD="${LD-ld} -m elf32_sparc"
6925 ;;
6926 esac
6927 ;;
6928 *64-bit*)
6929 case $host in
6930 x86_64-*kfreebsd*-gnu)
6931 LD="${LD-ld} -m elf_x86_64_fbsd"
6932 ;;
6933 x86_64-*linux*)
6934 LD="${LD-ld} -m elf_x86_64"
6935 ;;
42c447c0 6936 powerpcle-*linux*)
6e6bbb60
ILT
6937 LD="${LD-ld} -m elf64lppc"
6938 ;;
42c447c0 6939 powerpc-*linux*)
7a938933
ILT
6940 LD="${LD-ld} -m elf64ppc"
6941 ;;
6942 s390*-*linux*|s390*-*tpf*)
6943 LD="${LD-ld} -m elf64_s390"
6944 ;;
6945 sparc*-*linux*)
6946 LD="${LD-ld} -m elf64_sparc"
6947 ;;
6948 esac
6949 ;;
6950 esac
6951 fi
6952 rm -rf conftest*
6953 ;;
6954
6955*-*-sco3.2v5*)
6956 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6957 SAVE_CFLAGS="$CFLAGS"
6958 CFLAGS="$CFLAGS -belf"
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6960$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
73b6d7a9 6961if ${lt_cv_cc_needs_belf+:} false; then :
7a938933
ILT
6962 $as_echo_n "(cached) " >&6
6963else
6964 ac_ext=c
6965ac_cpp='$CPP $CPPFLAGS'
6966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6968ac_compiler_gnu=$ac_cv_c_compiler_gnu
6969
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971/* end confdefs.h. */
6972
6973int
6974main ()
6975{
6976
6977 ;
6978 return 0;
6979}
6980_ACEOF
6981if ac_fn_c_try_link "$LINENO"; then :
6982 lt_cv_cc_needs_belf=yes
6983else
6984 lt_cv_cc_needs_belf=no
6985fi
6986rm -f core conftest.err conftest.$ac_objext \
6987 conftest$ac_exeext conftest.$ac_ext
6988 ac_ext=c
6989ac_cpp='$CPP $CPPFLAGS'
6990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992ac_compiler_gnu=$ac_cv_c_compiler_gnu
6993
6994fi
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6996$as_echo "$lt_cv_cc_needs_belf" >&6; }
6997 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6998 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6999 CFLAGS="$SAVE_CFLAGS"
7000 fi
7001 ;;
327a26a3 7002sparc*-*solaris*)
7a938933
ILT
7003 # Find out which ABI we are using.
7004 echo 'int i;' > conftest.$ac_ext
7005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7006 (eval $ac_compile) 2>&5
7007 ac_status=$?
7008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7009 test $ac_status = 0; }; then
7010 case `/usr/bin/file conftest.o` in
7011 *64-bit*)
7012 case $lt_cv_prog_gnu_ld in
327a26a3 7013 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7a938933
ILT
7014 *)
7015 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7016 LD="${LD-ld} -64"
7017 fi
7018 ;;
7019 esac
7020 ;;
7021 esac
7022 fi
7023 rm -rf conftest*
7024 ;;
7025esac
7026
7027need_locks="$enable_libtool_lock"
7028
7029
7030 case $host_os in
7031 rhapsody* | darwin*)
7032 if test -n "$ac_tool_prefix"; then
7033 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7034set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7037if ${ac_cv_prog_DSYMUTIL+:} false; then :
7a938933
ILT
7038 $as_echo_n "(cached) " >&6
7039else
7040 if test -n "$DSYMUTIL"; then
7041 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7042else
7043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044for as_dir in $PATH
7045do
7046 IFS=$as_save_IFS
7047 test -z "$as_dir" && as_dir=.
7048 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7050 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054done
7055 done
7056IFS=$as_save_IFS
7057
7058fi
7059fi
7060DSYMUTIL=$ac_cv_prog_DSYMUTIL
7061if test -n "$DSYMUTIL"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7063$as_echo "$DSYMUTIL" >&6; }
7064else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
7067fi
7068
7069
7070fi
7071if test -z "$ac_cv_prog_DSYMUTIL"; then
7072 ac_ct_DSYMUTIL=$DSYMUTIL
7073 # Extract the first word of "dsymutil", so it can be a program name with args.
7074set dummy dsymutil; ac_word=$2
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7077if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7a938933
ILT
7078 $as_echo_n "(cached) " >&6
7079else
7080 if test -n "$ac_ct_DSYMUTIL"; then
7081 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7082else
7083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084for as_dir in $PATH
7085do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7090 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094done
7095 done
7096IFS=$as_save_IFS
7097
7098fi
7099fi
7100ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7101if test -n "$ac_ct_DSYMUTIL"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7103$as_echo "$ac_ct_DSYMUTIL" >&6; }
7104else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106$as_echo "no" >&6; }
7107fi
7108
7109 if test "x$ac_ct_DSYMUTIL" = x; then
7110 DSYMUTIL=":"
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113yes:)
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116ac_tool_warned=yes ;;
7117esac
7118 DSYMUTIL=$ac_ct_DSYMUTIL
7119 fi
7120else
7121 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7122fi
7123
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7126set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7129if ${ac_cv_prog_NMEDIT+:} false; then :
7a938933
ILT
7130 $as_echo_n "(cached) " >&6
7131else
7132 if test -n "$NMEDIT"; then
7133 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7142 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7145 fi
7146done
7147 done
7148IFS=$as_save_IFS
7149
7150fi
7151fi
7152NMEDIT=$ac_cv_prog_NMEDIT
7153if test -n "$NMEDIT"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7155$as_echo "$NMEDIT" >&6; }
7156else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158$as_echo "no" >&6; }
7159fi
7160
7161
7162fi
7163if test -z "$ac_cv_prog_NMEDIT"; then
7164 ac_ct_NMEDIT=$NMEDIT
7165 # Extract the first word of "nmedit", so it can be a program name with args.
7166set dummy nmedit; ac_word=$2
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7169if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7a938933
ILT
7170 $as_echo_n "(cached) " >&6
7171else
7172 if test -n "$ac_ct_NMEDIT"; then
7173 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7174else
7175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176for as_dir in $PATH
7177do
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7182 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7185 fi
7186done
7187 done
7188IFS=$as_save_IFS
7189
7190fi
7191fi
7192ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7193if test -n "$ac_ct_NMEDIT"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7195$as_echo "$ac_ct_NMEDIT" >&6; }
7196else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198$as_echo "no" >&6; }
7199fi
7200
7201 if test "x$ac_ct_NMEDIT" = x; then
7202 NMEDIT=":"
7203 else
7204 case $cross_compiling:$ac_tool_warned in
7205yes:)
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208ac_tool_warned=yes ;;
7209esac
7210 NMEDIT=$ac_ct_NMEDIT
7211 fi
7212else
7213 NMEDIT="$ac_cv_prog_NMEDIT"
7214fi
7215
7216 if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7218set dummy ${ac_tool_prefix}lipo; ac_word=$2
7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7221if ${ac_cv_prog_LIPO+:} false; then :
7a938933
ILT
7222 $as_echo_n "(cached) " >&6
7223else
7224 if test -n "$LIPO"; then
7225 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7226else
7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230 IFS=$as_save_IFS
7231 test -z "$as_dir" && as_dir=.
7232 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7234 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236 break 2
7237 fi
7238done
7239 done
7240IFS=$as_save_IFS
7241
7242fi
7243fi
7244LIPO=$ac_cv_prog_LIPO
7245if test -n "$LIPO"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7247$as_echo "$LIPO" >&6; }
7248else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250$as_echo "no" >&6; }
7251fi
7252
7253
7254fi
7255if test -z "$ac_cv_prog_LIPO"; then
7256 ac_ct_LIPO=$LIPO
7257 # Extract the first word of "lipo", so it can be a program name with args.
7258set dummy lipo; ac_word=$2
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7261if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7a938933
ILT
7262 $as_echo_n "(cached) " >&6
7263else
7264 if test -n "$ac_ct_LIPO"; then
7265 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7274 ac_cv_prog_ac_ct_LIPO="lipo"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 break 2
7277 fi
7278done
7279 done
7280IFS=$as_save_IFS
7281
7282fi
7283fi
7284ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7285if test -n "$ac_ct_LIPO"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7287$as_echo "$ac_ct_LIPO" >&6; }
7288else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290$as_echo "no" >&6; }
7291fi
7292
7293 if test "x$ac_ct_LIPO" = x; then
7294 LIPO=":"
7295 else
7296 case $cross_compiling:$ac_tool_warned in
7297yes:)
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300ac_tool_warned=yes ;;
7301esac
7302 LIPO=$ac_ct_LIPO
7303 fi
7304else
7305 LIPO="$ac_cv_prog_LIPO"
7306fi
7307
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7310set dummy ${ac_tool_prefix}otool; ac_word=$2
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7313if ${ac_cv_prog_OTOOL+:} false; then :
7a938933
ILT
7314 $as_echo_n "(cached) " >&6
7315else
7316 if test -n "$OTOOL"; then
7317 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7326 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330done
7331 done
7332IFS=$as_save_IFS
7333
7334fi
7335fi
7336OTOOL=$ac_cv_prog_OTOOL
7337if test -n "$OTOOL"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7339$as_echo "$OTOOL" >&6; }
7340else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342$as_echo "no" >&6; }
7343fi
7344
7345
7346fi
7347if test -z "$ac_cv_prog_OTOOL"; then
7348 ac_ct_OTOOL=$OTOOL
7349 # Extract the first word of "otool", so it can be a program name with args.
7350set dummy otool; ac_word=$2
7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7353if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7a938933
ILT
7354 $as_echo_n "(cached) " >&6
7355else
7356 if test -n "$ac_ct_OTOOL"; then
7357 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7366 ac_cv_prog_ac_ct_OTOOL="otool"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370done
7371 done
7372IFS=$as_save_IFS
7373
7374fi
7375fi
7376ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7377if test -n "$ac_ct_OTOOL"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7379$as_echo "$ac_ct_OTOOL" >&6; }
7380else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382$as_echo "no" >&6; }
7383fi
7384
7385 if test "x$ac_ct_OTOOL" = x; then
7386 OTOOL=":"
7387 else
7388 case $cross_compiling:$ac_tool_warned in
7389yes:)
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392ac_tool_warned=yes ;;
7393esac
7394 OTOOL=$ac_ct_OTOOL
7395 fi
7396else
7397 OTOOL="$ac_cv_prog_OTOOL"
7398fi
7399
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7402set dummy ${ac_tool_prefix}otool64; ac_word=$2
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7405if ${ac_cv_prog_OTOOL64+:} false; then :
7a938933
ILT
7406 $as_echo_n "(cached) " >&6
7407else
7408 if test -n "$OTOOL64"; then
7409 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7410else
7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7418 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422done
7423 done
7424IFS=$as_save_IFS
7425
7426fi
7427fi
7428OTOOL64=$ac_cv_prog_OTOOL64
7429if test -n "$OTOOL64"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7431$as_echo "$OTOOL64" >&6; }
7432else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434$as_echo "no" >&6; }
7435fi
7436
7437
7438fi
7439if test -z "$ac_cv_prog_OTOOL64"; then
7440 ac_ct_OTOOL64=$OTOOL64
7441 # Extract the first word of "otool64", so it can be a program name with args.
7442set dummy otool64; ac_word=$2
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7445if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7a938933
ILT
7446 $as_echo_n "(cached) " >&6
7447else
7448 if test -n "$ac_ct_OTOOL64"; then
7449 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7458 ac_cv_prog_ac_ct_OTOOL64="otool64"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462done
7463 done
7464IFS=$as_save_IFS
7465
7466fi
7467fi
7468ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7469if test -n "$ac_ct_OTOOL64"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7471$as_echo "$ac_ct_OTOOL64" >&6; }
7472else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474$as_echo "no" >&6; }
7475fi
7476
7477 if test "x$ac_ct_OTOOL64" = x; then
7478 OTOOL64=":"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481yes:)
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484ac_tool_warned=yes ;;
7485esac
7486 OTOOL64=$ac_ct_OTOOL64
7487 fi
7488else
e02ed81e 7489 OTOOL64="$ac_cv_prog_OTOOL64"
7a938933
ILT
7490fi
7491
7a938933
ILT
7492
7493
7a938933 7494
7a938933 7495
7a938933 7496
7a938933 7497
7a938933 7498
7a938933 7499
7a938933 7500
7a938933 7501
7a938933 7502
7a938933 7503
7a938933 7504
e02ed81e
ILT
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7519$as_echo_n "checking for -single_module linker flag... " >&6; }
73b6d7a9 7520if ${lt_cv_apple_cc_single_mod+:} false; then :
e02ed81e 7521 $as_echo_n "(cached) " >&6
7a938933 7522else
e02ed81e
ILT
7523 lt_cv_apple_cc_single_mod=no
7524 if test -z "${LT_MULTI_MODULE}"; then
7525 # By default we will add the -single_module flag. You can override
7526 # by either setting the environment variable LT_MULTI_MODULE
7527 # non-empty at configure time, or by adding -multi_module to the
7528 # link flags.
7529 rm -rf libconftest.dylib*
7530 echo "int foo(void){return 1;}" > conftest.c
7531 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7532-dynamiclib -Wl,-single_module conftest.c" >&5
7533 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7534 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7535 _lt_result=$?
7536 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7537 lt_cv_apple_cc_single_mod=yes
7538 else
7539 cat conftest.err >&5
7540 fi
7541 rm -rf libconftest.dylib*
7542 rm -f conftest.*
7543 fi
7544fi
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7546$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7548$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
73b6d7a9 7549if ${lt_cv_ld_exported_symbols_list+:} false; then :
e02ed81e
ILT
7550 $as_echo_n "(cached) " >&6
7551else
7552 lt_cv_ld_exported_symbols_list=no
7553 save_LDFLAGS=$LDFLAGS
7554 echo "_main" > conftest.sym
7555 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a938933 7557/* end confdefs.h. */
7a938933 7558
7a938933
ILT
7559int
7560main ()
7561{
e02ed81e
ILT
7562
7563 ;
7a938933
ILT
7564 return 0;
7565}
7566_ACEOF
e02ed81e
ILT
7567if ac_fn_c_try_link "$LINENO"; then :
7568 lt_cv_ld_exported_symbols_list=yes
7a938933 7569else
e02ed81e 7570 lt_cv_ld_exported_symbols_list=no
7a938933 7571fi
e02ed81e
ILT
7572rm -f core conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7574 LDFLAGS="$save_LDFLAGS"
7a938933
ILT
7575
7576fi
e02ed81e
ILT
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7578$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7580$as_echo_n "checking for -force_load linker flag... " >&6; }
73b6d7a9 7581if ${lt_cv_ld_force_load+:} false; then :
e02ed81e
ILT
7582 $as_echo_n "(cached) " >&6
7583else
7584 lt_cv_ld_force_load=no
7585 cat > conftest.c << _LT_EOF
7586int forced_loaded() { return 2;}
7587_LT_EOF
7588 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7589 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7590 echo "$AR cru libconftest.a conftest.o" >&5
7591 $AR cru libconftest.a conftest.o 2>&5
7592 cat > conftest.c << _LT_EOF
7593int main() { return 0;}
7594_LT_EOF
7595 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7596 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7597 _lt_result=$?
7598 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7599 lt_cv_ld_force_load=yes
7600 else
7601 cat conftest.err >&5
7602 fi
7603 rm -f conftest.err libconftest.a conftest conftest.c
7604 rm -rf conftest.dSYM
7a938933
ILT
7605
7606fi
e02ed81e
ILT
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7608$as_echo "$lt_cv_ld_force_load" >&6; }
7609 case $host_os in
7610 rhapsody* | darwin1.[012])
7611 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7612 darwin1.*)
7613 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7614 darwin*) # darwin 5.x on
7615 # if running on 10.5 or later, the deployment target defaults
7616 # to the OS version, if on x86, and 10.4, the deployment
7617 # target defaults to 10.4. Don't you love it?
7618 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7619 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
327a26a3 7621 10.[012][,.]*)
e02ed81e
ILT
7622 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7623 10.*)
7624 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7625 esac
7626 ;;
7627 esac
7628 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7629 _lt_dar_single_mod='$single_module'
7630 fi
7631 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7632 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7633 else
7634 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7635 fi
7636 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7637 _lt_dsymutil='~$DSYMUTIL $lib || :'
7638 else
7639 _lt_dsymutil=
7640 fi
7641 ;;
7642 esac
7a938933 7643
061793a4
ILT
7644ac_ext=c
7645ac_cpp='$CPP $CPPFLAGS'
7646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7650$as_echo_n "checking how to run the C preprocessor... " >&6; }
7651# On Suns, sometimes $CPP names a directory.
7652if test -n "$CPP" && test -d "$CPP"; then
7653 CPP=
7654fi
7655if test -z "$CPP"; then
73b6d7a9 7656 if ${ac_cv_prog_CPP+:} false; then :
061793a4
ILT
7657 $as_echo_n "(cached) " >&6
7658else
7659 # Double quotes because CPP needs to be expanded
7660 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7661 do
7662 ac_preproc_ok=false
7663for ac_c_preproc_warn_flag in '' yes
7664do
7665 # Use a header file that comes with gcc, so configuring glibc
7666 # with a fresh cross-compiler works.
7667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7668 # <limits.h> exists even on freestanding compilers.
7669 # On the NeXT, cc -E runs the code through the compiler's parser,
7670 # not just through cpp. "Syntax error" is here to catch this case.
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672/* end confdefs.h. */
7673#ifdef __STDC__
7674# include <limits.h>
7675#else
7676# include <assert.h>
7677#endif
7678 Syntax error
7679_ACEOF
7680if ac_fn_c_try_cpp "$LINENO"; then :
7681
7682else
7683 # Broken: fails on valid input.
7684continue
7685fi
73b6d7a9 7686rm -f conftest.err conftest.i conftest.$ac_ext
061793a4
ILT
7687
7688 # OK, works on sane cases. Now check whether nonexistent headers
7689 # can be detected and how.
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691/* end confdefs.h. */
7692#include <ac_nonexistent.h>
7693_ACEOF
7694if ac_fn_c_try_cpp "$LINENO"; then :
7695 # Broken: success on invalid input.
7696continue
7697else
7698 # Passes both tests.
7699ac_preproc_ok=:
7700break
7701fi
73b6d7a9 7702rm -f conftest.err conftest.i conftest.$ac_ext
061793a4
ILT
7703
7704done
7705# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
73b6d7a9 7706rm -f conftest.i conftest.err conftest.$ac_ext
061793a4
ILT
7707if $ac_preproc_ok; then :
7708 break
7709fi
7710
7711 done
7712 ac_cv_prog_CPP=$CPP
7713
7714fi
7715 CPP=$ac_cv_prog_CPP
7716else
7717 ac_cv_prog_CPP=$CPP
7718fi
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7720$as_echo "$CPP" >&6; }
7721ac_preproc_ok=false
7722for ac_c_preproc_warn_flag in '' yes
7723do
7724 # Use a header file that comes with gcc, so configuring glibc
7725 # with a fresh cross-compiler works.
7726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7727 # <limits.h> exists even on freestanding compilers.
7728 # On the NeXT, cc -E runs the code through the compiler's parser,
7729 # not just through cpp. "Syntax error" is here to catch this case.
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731/* end confdefs.h. */
7732#ifdef __STDC__
7733# include <limits.h>
7734#else
7735# include <assert.h>
7736#endif
7737 Syntax error
7738_ACEOF
7739if ac_fn_c_try_cpp "$LINENO"; then :
7740
7741else
7742 # Broken: fails on valid input.
7743continue
7744fi
73b6d7a9 7745rm -f conftest.err conftest.i conftest.$ac_ext
061793a4
ILT
7746
7747 # OK, works on sane cases. Now check whether nonexistent headers
7748 # can be detected and how.
7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750/* end confdefs.h. */
7751#include <ac_nonexistent.h>
7752_ACEOF
7753if ac_fn_c_try_cpp "$LINENO"; then :
7754 # Broken: success on invalid input.
7755continue
7756else
7757 # Passes both tests.
7758ac_preproc_ok=:
7759break
7760fi
73b6d7a9 7761rm -f conftest.err conftest.i conftest.$ac_ext
061793a4
ILT
7762
7763done
7764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
73b6d7a9 7765rm -f conftest.i conftest.err conftest.$ac_ext
061793a4
ILT
7766if $ac_preproc_ok; then :
7767
7768else
7769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
7771as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7772See \`config.log' for more details" "$LINENO" 5; }
061793a4
ILT
7773fi
7774
7775ac_ext=c
7776ac_cpp='$CPP $CPPFLAGS'
7777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780
7781
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7783$as_echo_n "checking for ANSI C header files... " >&6; }
73b6d7a9 7784if ${ac_cv_header_stdc+:} false; then :
061793a4
ILT
7785 $as_echo_n "(cached) " >&6
7786else
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788/* end confdefs.h. */
7789#include <stdlib.h>
7790#include <stdarg.h>
7791#include <string.h>
7792#include <float.h>
7793
7794int
7795main ()
7796{
7797
7798 ;
7799 return 0;
7800}
7801_ACEOF
7802if ac_fn_c_try_compile "$LINENO"; then :
7803 ac_cv_header_stdc=yes
7804else
7805 ac_cv_header_stdc=no
7806fi
7807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808
7809if test $ac_cv_header_stdc = yes; then
7810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h. */
7813#include <string.h>
7814
7815_ACEOF
7816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7817 $EGREP "memchr" >/dev/null 2>&1; then :
7818
7819else
7820 ac_cv_header_stdc=no
7821fi
7822rm -f conftest*
7823
7824fi
7825
7826if test $ac_cv_header_stdc = yes; then
7827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829/* end confdefs.h. */
7830#include <stdlib.h>
7831
7832_ACEOF
7833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7834 $EGREP "free" >/dev/null 2>&1; then :
7835
7836else
7837 ac_cv_header_stdc=no
7838fi
7839rm -f conftest*
7840
7841fi
7842
7843if test $ac_cv_header_stdc = yes; then
7844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7845 if test "$cross_compiling" = yes; then :
7846 :
7847else
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849/* end confdefs.h. */
7850#include <ctype.h>
7851#include <stdlib.h>
7852#if ((' ' & 0x0FF) == 0x020)
7853# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7854# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7855#else
7856# define ISLOWER(c) \
7857 (('a' <= (c) && (c) <= 'i') \
7858 || ('j' <= (c) && (c) <= 'r') \
7859 || ('s' <= (c) && (c) <= 'z'))
7860# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7861#endif
7862
7863#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7864int
7865main ()
7866{
7867 int i;
7868 for (i = 0; i < 256; i++)
7869 if (XOR (islower (i), ISLOWER (i))
7870 || toupper (i) != TOUPPER (i))
7871 return 2;
7872 return 0;
7873}
7874_ACEOF
7875if ac_fn_c_try_run "$LINENO"; then :
7876
7877else
7878 ac_cv_header_stdc=no
7879fi
7880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7881 conftest.$ac_objext conftest.beam conftest.$ac_ext
7882fi
7883
7884fi
7885fi
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7887$as_echo "$ac_cv_header_stdc" >&6; }
7888if test $ac_cv_header_stdc = yes; then
7889
7890$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7891
7892fi
7893
7894# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7895for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7896 inttypes.h stdint.h unistd.h
7897do :
7898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7899ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7900"
73b6d7a9 7901if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
061793a4
ILT
7902 cat >>confdefs.h <<_ACEOF
7903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7904_ACEOF
7905
7906fi
7907
7908done
7909
7910
7a938933
ILT
7911for ac_header in dlfcn.h
7912do :
7913 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7914"
73b6d7a9 7915if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7a938933
ILT
7916 cat >>confdefs.h <<_ACEOF
7917#define HAVE_DLFCN_H 1
7918_ACEOF
7919
7920fi
7921
7922done
7923
7924if test -n "$ac_tool_prefix"; then
7925 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7926set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7929if ${ac_cv_prog_GOC+:} false; then :
7a938933
ILT
7930 $as_echo_n "(cached) " >&6
7931else
7932 if test -n "$GOC"; then
7933 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7934else
7935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936for as_dir in $PATH
7937do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7942 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946done
7947 done
7948IFS=$as_save_IFS
7949
7950fi
7951fi
7952GOC=$ac_cv_prog_GOC
7953if test -n "$GOC"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7955$as_echo "$GOC" >&6; }
7956else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958$as_echo "no" >&6; }
7959fi
7960
7961
7962fi
7963if test -z "$ac_cv_prog_GOC"; then
7964 ac_ct_GOC=$GOC
7965 # Extract the first word of "gccgo", so it can be a program name with args.
7966set dummy gccgo; ac_word=$2
7967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7969if ${ac_cv_prog_ac_ct_GOC+:} false; then :
7a938933
ILT
7970 $as_echo_n "(cached) " >&6
7971else
7972 if test -n "$ac_ct_GOC"; then
7973 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7974else
7975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976for as_dir in $PATH
7977do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7982 ac_cv_prog_ac_ct_GOC="gccgo"
7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986done
7987 done
7988IFS=$as_save_IFS
7989
7990fi
7991fi
7992ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7993if test -n "$ac_ct_GOC"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7995$as_echo "$ac_ct_GOC" >&6; }
7996else
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998$as_echo "no" >&6; }
7999fi
8000
8001 if test "x$ac_ct_GOC" = x; then
8002 GOC=""
8003 else
8004 case $cross_compiling:$ac_tool_warned in
8005yes:)
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8008ac_tool_warned=yes ;;
8009esac
8010 GOC=$ac_ct_GOC
8011 fi
8012else
8013 GOC="$ac_cv_prog_GOC"
8014fi
8015
8016
8017
8018
8019
8020
8021# Set options
8022
8023
8024
8025
8026 enable_win32_dll=no
8027
8028
8029 # Check whether --enable-shared was given.
8030if test "${enable_shared+set}" = set; then :
8031 enableval=$enable_shared; p=${PACKAGE-default}
8032 case $enableval in
8033 yes) enable_shared=yes ;;
8034 no) enable_shared=no ;;
8035 *)
8036 enable_shared=no
8037 # Look at the argument we got. We use all the common list separators.
8038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8039 for pkg in $enableval; do
8040 IFS="$lt_save_ifs"
8041 if test "X$pkg" = "X$p"; then
8042 enable_shared=yes
8043 fi
8044 done
8045 IFS="$lt_save_ifs"
8046 ;;
8047 esac
8048else
8049 enable_shared=yes
8050fi
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 # Check whether --enable-static was given.
8061if test "${enable_static+set}" = set; then :
8062 enableval=$enable_static; p=${PACKAGE-default}
8063 case $enableval in
8064 yes) enable_static=yes ;;
8065 no) enable_static=no ;;
8066 *)
8067 enable_static=no
8068 # Look at the argument we got. We use all the common list separators.
8069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8070 for pkg in $enableval; do
8071 IFS="$lt_save_ifs"
8072 if test "X$pkg" = "X$p"; then
8073 enable_static=yes
8074 fi
8075 done
8076 IFS="$lt_save_ifs"
8077 ;;
8078 esac
8079else
8080 enable_static=yes
8081fi
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092# Check whether --with-pic was given.
8093if test "${with_pic+set}" = set; then :
8094 withval=$with_pic; pic_mode="$withval"
8095else
8096 pic_mode=default
8097fi
8098
8099
8100test -z "$pic_mode" && pic_mode=default
8101
8102
8103
8104
8105
8106
8107
8108 # Check whether --enable-fast-install was given.
8109if test "${enable_fast_install+set}" = set; then :
8110 enableval=$enable_fast_install; p=${PACKAGE-default}
8111 case $enableval in
8112 yes) enable_fast_install=yes ;;
8113 no) enable_fast_install=no ;;
8114 *)
8115 enable_fast_install=no
8116 # Look at the argument we got. We use all the common list separators.
8117 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8118 for pkg in $enableval; do
8119 IFS="$lt_save_ifs"
8120 if test "X$pkg" = "X$p"; then
8121 enable_fast_install=yes
8122 fi
8123 done
8124 IFS="$lt_save_ifs"
8125 ;;
8126 esac
8127else
8128 enable_fast_install=yes
8129fi
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141# This can be used to rebuild libtool when needed
8142LIBTOOL_DEPS="$ltmain"
8143
8144# Always use our own libtool.
8145LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172test -z "$LN_S" && LN_S="ln -s"
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187if test -n "${ZSH_VERSION+set}" ; then
8188 setopt NO_GLOB_SUBST
8189fi
8190
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8192$as_echo_n "checking for objdir... " >&6; }
73b6d7a9 8193if ${lt_cv_objdir+:} false; then :
7a938933
ILT
8194 $as_echo_n "(cached) " >&6
8195else
8196 rm -f .libs 2>/dev/null
8197mkdir .libs 2>/dev/null
8198if test -d .libs; then
8199 lt_cv_objdir=.libs
8200else
8201 # MS-DOS does not allow filenames that begin with a dot.
8202 lt_cv_objdir=_libs
8203fi
8204rmdir .libs 2>/dev/null
8205fi
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8207$as_echo "$lt_cv_objdir" >&6; }
8208objdir=$lt_cv_objdir
8209
8210
8211
8212
8213
8214cat >>confdefs.h <<_ACEOF
8215#define LT_OBJDIR "$lt_cv_objdir/"
8216_ACEOF
8217
8218
8219
8220
8221case $host_os in
8222aix3*)
8223 # AIX sometimes has problems with the GCC collect2 program. For some
8224 # reason, if we set the COLLECT_NAMES environment variable, the problems
8225 # vanish in a puff of smoke.
8226 if test "X${COLLECT_NAMES+set}" != Xset; then
8227 COLLECT_NAMES=
8228 export COLLECT_NAMES
8229 fi
8230 ;;
8231esac
8232
8233# Global variables:
8234ofile=libtool
8235can_build_shared=yes
8236
8237# All known linkers require a `.a' archive for static linking (except MSVC,
8238# which needs '.lib').
8239libext=a
8240
8241with_gnu_ld="$lt_cv_prog_gnu_ld"
8242
8243old_CC="$CC"
8244old_CFLAGS="$CFLAGS"
8245
8246# Set sane defaults for various variables
8247test -z "$CC" && CC=cc
8248test -z "$LTCC" && LTCC=$CC
8249test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8250test -z "$LD" && LD=ld
8251test -z "$ac_objext" && ac_objext=o
8252
8253for cc_temp in $compiler""; do
8254 case $cc_temp in
8255 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8256 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8257 \-*) ;;
8258 *) break;;
8259 esac
8260done
8261cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8262
8263
8264# Only perform the check for file, if the check method requires it
8265test -z "$MAGIC_CMD" && MAGIC_CMD=file
8266case $deplibs_check_method in
8267file_magic*)
8268 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8270$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
73b6d7a9 8271if ${lt_cv_path_MAGIC_CMD+:} false; then :
7a938933
ILT
8272 $as_echo_n "(cached) " >&6
8273else
8274 case $MAGIC_CMD in
8275[\\/*] | ?:[\\/]*)
8276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8277 ;;
8278*)
8279 lt_save_MAGIC_CMD="$MAGIC_CMD"
8280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8282 for ac_dir in $ac_dummy; do
8283 IFS="$lt_save_ifs"
8284 test -z "$ac_dir" && ac_dir=.
8285 if test -f $ac_dir/${ac_tool_prefix}file; then
8286 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8287 if test -n "$file_magic_test_file"; then
8288 case $deplibs_check_method in
8289 "file_magic "*)
8290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8293 $EGREP "$file_magic_regex" > /dev/null; then
8294 :
8295 else
8296 cat <<_LT_EOF 1>&2
8297
8298*** Warning: the command libtool uses to detect shared libraries,
8299*** $file_magic_cmd, produces output that libtool cannot recognize.
8300*** The result is that libtool may fail to recognize shared libraries
8301*** as such. This will affect the creation of libtool libraries that
8302*** depend on shared libraries, but programs linked with such libtool
8303*** libraries will work regardless of this problem. Nevertheless, you
8304*** may want to report the problem to your system manager and/or to
8305*** bug-libtool@gnu.org
8306
8307_LT_EOF
8308 fi ;;
8309 esac
8310 fi
8311 break
8312 fi
8313 done
8314 IFS="$lt_save_ifs"
8315 MAGIC_CMD="$lt_save_MAGIC_CMD"
8316 ;;
8317esac
8318fi
8319
8320MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8321if test -n "$MAGIC_CMD"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8323$as_echo "$MAGIC_CMD" >&6; }
8324else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326$as_echo "no" >&6; }
8327fi
8328
8329
8330
8331
8332
8333if test -z "$lt_cv_path_MAGIC_CMD"; then
8334 if test -n "$ac_tool_prefix"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8336$as_echo_n "checking for file... " >&6; }
73b6d7a9 8337if ${lt_cv_path_MAGIC_CMD+:} false; then :
7a938933
ILT
8338 $as_echo_n "(cached) " >&6
8339else
8340 case $MAGIC_CMD in
8341[\\/*] | ?:[\\/]*)
8342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8343 ;;
8344*)
8345 lt_save_MAGIC_CMD="$MAGIC_CMD"
8346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8347 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8348 for ac_dir in $ac_dummy; do
8349 IFS="$lt_save_ifs"
8350 test -z "$ac_dir" && ac_dir=.
8351 if test -f $ac_dir/file; then
8352 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8353 if test -n "$file_magic_test_file"; then
8354 case $deplibs_check_method in
8355 "file_magic "*)
8356 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8359 $EGREP "$file_magic_regex" > /dev/null; then
8360 :
8361 else
8362 cat <<_LT_EOF 1>&2
8363
8364*** Warning: the command libtool uses to detect shared libraries,
8365*** $file_magic_cmd, produces output that libtool cannot recognize.
8366*** The result is that libtool may fail to recognize shared libraries
8367*** as such. This will affect the creation of libtool libraries that
8368*** depend on shared libraries, but programs linked with such libtool
8369*** libraries will work regardless of this problem. Nevertheless, you
8370*** may want to report the problem to your system manager and/or to
8371*** bug-libtool@gnu.org
8372
8373_LT_EOF
8374 fi ;;
8375 esac
8376 fi
8377 break
8378 fi
8379 done
8380 IFS="$lt_save_ifs"
8381 MAGIC_CMD="$lt_save_MAGIC_CMD"
8382 ;;
8383esac
8384fi
8385
8386MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387if test -n "$MAGIC_CMD"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8389$as_echo "$MAGIC_CMD" >&6; }
8390else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392$as_echo "no" >&6; }
8393fi
8394
8395
8396 else
8397 MAGIC_CMD=:
8398 fi
8399fi
8400
8401 fi
8402 ;;
8403esac
8404
8405# Use C for the default configuration in the libtool script
8406
8407lt_save_CC="$CC"
8408ac_ext=c
8409ac_cpp='$CPP $CPPFLAGS'
8410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8412ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413
8414
8415# Source file extension for C test sources.
8416ac_ext=c
8417
8418# Object file extension for compiled C test sources.
8419objext=o
8420objext=$objext
8421
8422# Code to be used in simple compile tests
8423lt_simple_compile_test_code="int some_variable = 0;"
8424
8425# Code to be used in simple link tests
8426lt_simple_link_test_code='int main(){return(0);}'
8427
8428
8429
8430
8431
8432
8433
8434# If no C compiler was specified, use CC.
8435LTCC=${LTCC-"$CC"}
8436
8437# If no C compiler flags were specified, use CFLAGS.
8438LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8439
8440# Allow CC to be a program name with arguments.
8441compiler=$CC
8442
8443# Save the default compiler, since it gets overwritten when the other
8444# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8445compiler_DEFAULT=$CC
8446
8447# save warnings/boilerplate of simple test code
8448ac_outfile=conftest.$ac_objext
8449echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8450eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8451_lt_compiler_boilerplate=`cat conftest.err`
8452$RM conftest*
8453
8454ac_outfile=conftest.$ac_objext
8455echo "$lt_simple_link_test_code" >conftest.$ac_ext
8456eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8457_lt_linker_boilerplate=`cat conftest.err`
8458$RM -r conftest*
8459
8460
8461## CAVEAT EMPTOR:
8462## There is no encapsulation within the following macros, do not change
8463## the running order or otherwise move them around unless you know exactly
8464## what you are doing...
8465if test -n "$compiler"; then
8466
8467lt_prog_compiler_no_builtin_flag=
8468
8469if test "$GCC" = yes; then
8470 case $cc_basename in
8471 nvcc*)
8472 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8473 *)
8474 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8475 esac
8476
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8478$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
73b6d7a9 8479if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7a938933
ILT
8480 $as_echo_n "(cached) " >&6
8481else
8482 lt_cv_prog_compiler_rtti_exceptions=no
8483 ac_outfile=conftest.$ac_objext
8484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8485 lt_compiler_flag="-fno-rtti -fno-exceptions"
8486 # Insert the option either (1) after the last *FLAGS variable, or
8487 # (2) before a word containing "conftest.", or (3) at the end.
8488 # Note that $ac_compile itself does not contain backslashes and begins
8489 # with a dollar sign (not a hyphen), so the echo should work correctly.
8490 # The option is referenced via a variable to avoid confusing sed.
8491 lt_compile=`echo "$ac_compile" | $SED \
8492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8494 -e 's:$: $lt_compiler_flag:'`
8495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8496 (eval "$lt_compile" 2>conftest.err)
8497 ac_status=$?
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 if (exit $ac_status) && test -s "$ac_outfile"; then
8501 # The compiler can only warn and ignore the option if not recognized
8502 # So say no if there are warnings other than the usual output.
8503 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8505 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8506 lt_cv_prog_compiler_rtti_exceptions=yes
8507 fi
8508 fi
8509 $RM conftest*
8510
8511fi
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8513$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8514
8515if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8516 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8517else
8518 :
8519fi
8520
8521fi
8522
8523
8524
8525
8526
8527
8528 lt_prog_compiler_wl=
8529lt_prog_compiler_pic=
8530lt_prog_compiler_static=
8531
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8533$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8534
8535 if test "$GCC" = yes; then
8536 lt_prog_compiler_wl='-Wl,'
8537 lt_prog_compiler_static='-static'
8538
8539 case $host_os in
8540 aix*)
8541 # All AIX code is PIC.
8542 if test "$host_cpu" = ia64; then
8543 # AIX 5 now supports IA64 processor
8544 lt_prog_compiler_static='-Bstatic'
8545 fi
327a26a3 8546 lt_prog_compiler_pic='-fPIC'
7a938933
ILT
8547 ;;
8548
8549 amigaos*)
8550 case $host_cpu in
8551 powerpc)
8552 # see comment about AmigaOS4 .so support
8553 lt_prog_compiler_pic='-fPIC'
8554 ;;
8555 m68k)
8556 # FIXME: we need at least 68020 code to build shared libraries, but
8557 # adding the `-m68020' flag to GCC prevents building anything better,
8558 # like `-m68040'.
8559 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8560 ;;
8561 esac
8562 ;;
8563
8564 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8565 # PIC is the default for these OSes.
8566 ;;
8567
8568 mingw* | cygwin* | pw32* | os2* | cegcc*)
8569 # This hack is so that the source file can tell whether it is being
8570 # built for inclusion in a dll (and should export symbols for example).
8571 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8572 # (--disable-auto-import) libraries
8573 lt_prog_compiler_pic='-DDLL_EXPORT'
8574 ;;
8575
8576 darwin* | rhapsody*)
8577 # PIC is the default on this platform
8578 # Common symbols not allowed in MH_DYLIB files
8579 lt_prog_compiler_pic='-fno-common'
8580 ;;
8581
8582 haiku*)
8583 # PIC is the default for Haiku.
8584 # The "-static" flag exists, but is broken.
8585 lt_prog_compiler_static=
8586 ;;
8587
8588 hpux*)
8589 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8590 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8591 # sets the default TLS model and affects inlining.
8592 case $host_cpu in
8593 hppa*64*)
8594 # +Z the default
8595 ;;
8596 *)
8597 lt_prog_compiler_pic='-fPIC'
8598 ;;
8599 esac
8600 ;;
8601
8602 interix[3-9]*)
8603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8604 # Instead, we relocate shared libraries at runtime.
8605 ;;
8606
8607 msdosdjgpp*)
8608 # Just because we use GCC doesn't mean we suddenly get shared libraries
8609 # on systems that don't support them.
8610 lt_prog_compiler_can_build_shared=no
8611 enable_shared=no
8612 ;;
8613
8614 *nto* | *qnx*)
8615 # QNX uses GNU C++, but need to define -shared option too, otherwise
8616 # it will coredump.
8617 lt_prog_compiler_pic='-fPIC -shared'
8618 ;;
8619
8620 sysv4*MP*)
8621 if test -d /usr/nec; then
8622 lt_prog_compiler_pic=-Kconform_pic
8623 fi
8624 ;;
8625
8626 *)
8627 lt_prog_compiler_pic='-fPIC'
8628 ;;
8629 esac
8630
8631 case $cc_basename in
8632 nvcc*) # Cuda Compiler Driver 2.2
8633 lt_prog_compiler_wl='-Xlinker '
8634 lt_prog_compiler_pic='-Xcompiler -fPIC'
8635 ;;
8636 esac
8637 else
8638 # PORTME Check for flag to pass linker flags through the system compiler.
8639 case $host_os in
8640 aix*)
8641 lt_prog_compiler_wl='-Wl,'
8642 if test "$host_cpu" = ia64; then
8643 # AIX 5 now supports IA64 processor
8644 lt_prog_compiler_static='-Bstatic'
8645 else
8646 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8647 fi
8648 ;;
8649
8650 mingw* | cygwin* | pw32* | os2* | cegcc*)
8651 # This hack is so that the source file can tell whether it is being
8652 # built for inclusion in a dll (and should export symbols for example).
8653 lt_prog_compiler_pic='-DDLL_EXPORT'
8654 ;;
8655
8656 hpux9* | hpux10* | hpux11*)
8657 lt_prog_compiler_wl='-Wl,'
8658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8659 # not for PA HP-UX.
8660 case $host_cpu in
8661 hppa*64*|ia64*)
8662 # +Z the default
8663 ;;
8664 *)
8665 lt_prog_compiler_pic='+Z'
8666 ;;
8667 esac
8668 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8669 lt_prog_compiler_static='${wl}-a ${wl}archive'
8670 ;;
8671
8672 irix5* | irix6* | nonstopux*)
8673 lt_prog_compiler_wl='-Wl,'
8674 # PIC (with -KPIC) is the default.
8675 lt_prog_compiler_static='-non_shared'
8676 ;;
8677
8678 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8679 case $cc_basename in
8680 # old Intel for x86_64 which still supported -KPIC.
8681 ecc*)
8682 lt_prog_compiler_wl='-Wl,'
8683 lt_prog_compiler_pic='-KPIC'
8684 lt_prog_compiler_static='-static'
8685 ;;
8686 # icc used to be incompatible with GCC.
8687 # ICC 10 doesn't accept -KPIC any more.
8688 icc* | ifort*)
8689 lt_prog_compiler_wl='-Wl,'
8690 lt_prog_compiler_pic='-fPIC'
8691 lt_prog_compiler_static='-static'
8692 ;;
8693 # Lahey Fortran 8.1.
8694 lf95*)
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_pic='--shared'
8697 lt_prog_compiler_static='--static'
8698 ;;
8699 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8700 # Portland Group compilers (*not* the Pentium gcc compiler,
8701 # which looks to be a dead project)
8702 lt_prog_compiler_wl='-Wl,'
8703 lt_prog_compiler_pic='-fpic'
8704 lt_prog_compiler_static='-Bstatic'
8705 ;;
8706 ccc*)
8707 lt_prog_compiler_wl='-Wl,'
8708 # All Alpha code is PIC.
8709 lt_prog_compiler_static='-non_shared'
8710 ;;
8711 xl* | bgxl* | bgf* | mpixl*)
8712 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_pic='-qpic'
8715 lt_prog_compiler_static='-qstaticlink'
8716 ;;
8717 *)
8718 case `$CC -V 2>&1 | sed 5q` in
8719 *Sun\ F* | *Sun*Fortran*)
8720 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8721 lt_prog_compiler_pic='-KPIC'
8722 lt_prog_compiler_static='-Bstatic'
8723 lt_prog_compiler_wl=''
8724 ;;
8725 *Sun\ C*)
8726 # Sun C 5.9
8727 lt_prog_compiler_pic='-KPIC'
8728 lt_prog_compiler_static='-Bstatic'
8729 lt_prog_compiler_wl='-Wl,'
8730 ;;
8731 esac
8732 ;;
8733 esac
8734 ;;
8735
8736 newsos6)
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 ;;
8740
8741 *nto* | *qnx*)
8742 # QNX uses GNU C++, but need to define -shared option too, otherwise
8743 # it will coredump.
8744 lt_prog_compiler_pic='-fPIC -shared'
8745 ;;
8746
8747 osf3* | osf4* | osf5*)
8748 lt_prog_compiler_wl='-Wl,'
8749 # All OSF/1 code is PIC.
8750 lt_prog_compiler_static='-non_shared'
8751 ;;
8752
8753 rdos*)
8754 lt_prog_compiler_static='-non_shared'
8755 ;;
8756
8757 solaris*)
8758 lt_prog_compiler_pic='-KPIC'
8759 lt_prog_compiler_static='-Bstatic'
8760 case $cc_basename in
8761 f77* | f90* | f95*)
8762 lt_prog_compiler_wl='-Qoption ld ';;
8763 *)
8764 lt_prog_compiler_wl='-Wl,';;
8765 esac
8766 ;;
8767
8768 sunos4*)
8769 lt_prog_compiler_wl='-Qoption ld '
8770 lt_prog_compiler_pic='-PIC'
8771 lt_prog_compiler_static='-Bstatic'
8772 ;;
8773
8774 sysv4 | sysv4.2uw2* | sysv4.3*)
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-KPIC'
8777 lt_prog_compiler_static='-Bstatic'
8778 ;;
8779
8780 sysv4*MP*)
8781 if test -d /usr/nec ;then
8782 lt_prog_compiler_pic='-Kconform_pic'
8783 lt_prog_compiler_static='-Bstatic'
8784 fi
8785 ;;
8786
8787 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 ;;
8792
8793 unicos*)
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_can_build_shared=no
8796 ;;
8797
8798 uts4*)
8799 lt_prog_compiler_pic='-pic'
8800 lt_prog_compiler_static='-Bstatic'
8801 ;;
8802
8803 *)
8804 lt_prog_compiler_can_build_shared=no
8805 ;;
8806 esac
8807 fi
8808
8809case $host_os in
8810 # For platforms which do not support PIC, -DPIC is meaningless:
8811 *djgpp*)
8812 lt_prog_compiler_pic=
8813 ;;
8814 *)
8815 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8816 ;;
8817esac
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8819$as_echo "$lt_prog_compiler_pic" >&6; }
8820
8821
8822
8823
8824
8825
8826#
8827# Check to make sure the PIC flag actually works.
8828#
8829if test -n "$lt_prog_compiler_pic"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8831$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
73b6d7a9 8832if ${lt_cv_prog_compiler_pic_works+:} false; then :
7a938933
ILT
8833 $as_echo_n "(cached) " >&6
8834else
8835 lt_cv_prog_compiler_pic_works=no
8836 ac_outfile=conftest.$ac_objext
8837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8838 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8839 # Insert the option either (1) after the last *FLAGS variable, or
8840 # (2) before a word containing "conftest.", or (3) at the end.
8841 # Note that $ac_compile itself does not contain backslashes and begins
8842 # with a dollar sign (not a hyphen), so the echo should work correctly.
8843 # The option is referenced via a variable to avoid confusing sed.
8844 lt_compile=`echo "$ac_compile" | $SED \
8845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8847 -e 's:$: $lt_compiler_flag:'`
8848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8849 (eval "$lt_compile" 2>conftest.err)
8850 ac_status=$?
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 if (exit $ac_status) && test -s "$ac_outfile"; then
8854 # The compiler can only warn and ignore the option if not recognized
8855 # So say no if there are warnings other than the usual output.
8856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8858 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8859 lt_cv_prog_compiler_pic_works=yes
8860 fi
8861 fi
8862 $RM conftest*
8863
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8866$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8867
8868if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8869 case $lt_prog_compiler_pic in
8870 "" | " "*) ;;
8871 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8872 esac
8873else
8874 lt_prog_compiler_pic=
8875 lt_prog_compiler_can_build_shared=no
8876fi
8877
8878fi
8879
8880
8881
8882
8883
8884
8885#
8886# Check to make sure the static flag actually works.
8887#
8888wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8890$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
73b6d7a9 8891if ${lt_cv_prog_compiler_static_works+:} false; then :
7a938933
ILT
8892 $as_echo_n "(cached) " >&6
8893else
8894 lt_cv_prog_compiler_static_works=no
8895 save_LDFLAGS="$LDFLAGS"
8896 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8897 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8898 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8899 # The linker can only warn and ignore the option if not recognized
8900 # So say no if there are warnings
8901 if test -s conftest.err; then
8902 # Append any errors to the config.log.
8903 cat conftest.err 1>&5
8904 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8906 if diff conftest.exp conftest.er2 >/dev/null; then
8907 lt_cv_prog_compiler_static_works=yes
8908 fi
8909 else
8910 lt_cv_prog_compiler_static_works=yes
8911 fi
8912 fi
8913 $RM -r conftest*
8914 LDFLAGS="$save_LDFLAGS"
8915
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8918$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8919
8920if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8921 :
8922else
8923 lt_prog_compiler_static=
8924fi
8925
8926
8927
8928
8929
8930
8931
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8933$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
73b6d7a9 8934if ${lt_cv_prog_compiler_c_o+:} false; then :
7a938933
ILT
8935 $as_echo_n "(cached) " >&6
8936else
8937 lt_cv_prog_compiler_c_o=no
8938 $RM -r conftest 2>/dev/null
8939 mkdir conftest
8940 cd conftest
8941 mkdir out
8942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8943
8944 lt_compiler_flag="-o out/conftest2.$ac_objext"
8945 # Insert the option either (1) after the last *FLAGS variable, or
8946 # (2) before a word containing "conftest.", or (3) at the end.
8947 # Note that $ac_compile itself does not contain backslashes and begins
8948 # with a dollar sign (not a hyphen), so the echo should work correctly.
8949 lt_compile=`echo "$ac_compile" | $SED \
8950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952 -e 's:$: $lt_compiler_flag:'`
8953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8954 (eval "$lt_compile" 2>out/conftest.err)
8955 ac_status=$?
8956 cat out/conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8959 then
8960 # The compiler can only warn and ignore the option if not recognized
8961 # So say no if there are warnings
8962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8965 lt_cv_prog_compiler_c_o=yes
8966 fi
8967 fi
8968 chmod u+w . 2>&5
8969 $RM conftest*
8970 # SGI C++ compiler will create directory out/ii_files/ for
8971 # template instantiation
8972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8973 $RM out/* && rmdir out
8974 cd ..
8975 $RM -r conftest
8976 $RM conftest*
8977
8978fi
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8980$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8981
8982
8983
8984
8985
8986
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8988$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
73b6d7a9 8989if ${lt_cv_prog_compiler_c_o+:} false; then :
7a938933
ILT
8990 $as_echo_n "(cached) " >&6
8991else
8992 lt_cv_prog_compiler_c_o=no
8993 $RM -r conftest 2>/dev/null
8994 mkdir conftest
8995 cd conftest
8996 mkdir out
8997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8998
8999 lt_compiler_flag="-o out/conftest2.$ac_objext"
9000 # Insert the option either (1) after the last *FLAGS variable, or
9001 # (2) before a word containing "conftest.", or (3) at the end.
9002 # Note that $ac_compile itself does not contain backslashes and begins
9003 # with a dollar sign (not a hyphen), so the echo should work correctly.
9004 lt_compile=`echo "$ac_compile" | $SED \
9005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9007 -e 's:$: $lt_compiler_flag:'`
9008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9009 (eval "$lt_compile" 2>out/conftest.err)
9010 ac_status=$?
9011 cat out/conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9014 then
9015 # The compiler can only warn and ignore the option if not recognized
9016 # So say no if there are warnings
9017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9020 lt_cv_prog_compiler_c_o=yes
9021 fi
9022 fi
9023 chmod u+w . 2>&5
9024 $RM conftest*
9025 # SGI C++ compiler will create directory out/ii_files/ for
9026 # template instantiation
9027 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9028 $RM out/* && rmdir out
9029 cd ..
9030 $RM -r conftest
9031 $RM conftest*
9032
9033fi
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9035$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9036
9037
9038
9039
9040hard_links="nottested"
9041if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9042 # do not overwrite the value of need_locks provided by the user
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9044$as_echo_n "checking if we can lock with hard links... " >&6; }
9045 hard_links=yes
9046 $RM conftest*
9047 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9048 touch conftest.a
9049 ln conftest.a conftest.b 2>&5 || hard_links=no
9050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9052$as_echo "$hard_links" >&6; }
9053 if test "$hard_links" = no; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9055$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9056 need_locks=warn
9057 fi
9058else
9059 need_locks=no
9060fi
9061
9062
9063
9064
9065
9066
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9068$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9069
9070 runpath_var=
9071 allow_undefined_flag=
9072 always_export_symbols=no
9073 archive_cmds=
9074 archive_expsym_cmds=
9075 compiler_needs_object=no
9076 enable_shared_with_static_runtimes=no
9077 export_dynamic_flag_spec=
9078 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9079 hardcode_automatic=no
9080 hardcode_direct=no
9081 hardcode_direct_absolute=no
9082 hardcode_libdir_flag_spec=
9083 hardcode_libdir_flag_spec_ld=
9084 hardcode_libdir_separator=
9085 hardcode_minus_L=no
9086 hardcode_shlibpath_var=unsupported
9087 inherit_rpath=no
9088 link_all_deplibs=unknown
9089 module_cmds=
9090 module_expsym_cmds=
9091 old_archive_from_new_cmds=
9092 old_archive_from_expsyms_cmds=
9093 thread_safe_flag_spec=
9094 whole_archive_flag_spec=
9095 # include_expsyms should be a list of space-separated symbols to be *always*
9096 # included in the symbol list
9097 include_expsyms=
9098 # exclude_expsyms can be an extended regexp of symbols to exclude
9099 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9100 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9101 # as well as any symbol that contains `d'.
9102 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9104 # platforms (ab)use it in PIC code, but their linkers get confused if
9105 # the symbol is explicitly referenced. Since portable code cannot
9106 # rely on this symbol name, it's probably fine to never include it in
9107 # preloaded symbol tables.
9108 # Exclude shared library initialization/finalization symbols.
9109 extract_expsyms_cmds=
9110
9111 case $host_os in
9112 cygwin* | mingw* | pw32* | cegcc*)
9113 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9114 # When not using gcc, we currently assume that we are using
9115 # Microsoft Visual C++.
9116 if test "$GCC" != yes; then
9117 with_gnu_ld=no
9118 fi
9119 ;;
9120 interix*)
9121 # we just hope/assume this is gcc and not c89 (= MSVC++)
9122 with_gnu_ld=yes
9123 ;;
9124 openbsd*)
9125 with_gnu_ld=no
9126 ;;
9127 esac
9128
9129 ld_shlibs=yes
9130
9131 # On some targets, GNU ld is compatible enough with the native linker
9132 # that we're better off using the native interface for both.
9133 lt_use_gnu_ld_interface=no
9134 if test "$with_gnu_ld" = yes; then
9135 case $host_os in
9136 aix*)
9137 # The AIX port of GNU ld has always aspired to compatibility
9138 # with the native linker. However, as the warning in the GNU ld
9139 # block says, versions before 2.19.5* couldn't really create working
9140 # shared libraries, regardless of the interface used.
9141 case `$LD -v 2>&1` in
9142 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9143 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9144 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9145 *)
9146 lt_use_gnu_ld_interface=yes
9147 ;;
9148 esac
9149 ;;
9150 *)
9151 lt_use_gnu_ld_interface=yes
9152 ;;
9153 esac
9154 fi
9155
9156 if test "$lt_use_gnu_ld_interface" = yes; then
9157 # If archive_cmds runs LD, not CC, wlarc should be empty
9158 wlarc='${wl}'
9159
9160 # Set some defaults for GNU ld with shared library support. These
9161 # are reset later if shared libraries are not supported. Putting them
9162 # here allows them to be overridden if necessary.
9163 runpath_var=LD_RUN_PATH
9164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9165 export_dynamic_flag_spec='${wl}--export-dynamic'
9166 # ancient GNU ld didn't support --whole-archive et. al.
9167 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9168 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9169 else
9170 whole_archive_flag_spec=
9171 fi
9172 supports_anon_versioning=no
9173 case `$LD -v 2>&1` in
9174 *GNU\ gold*) supports_anon_versioning=yes ;;
9175 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9176 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9177 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9178 *\ 2.11.*) ;; # other 2.11 versions
9179 *) supports_anon_versioning=yes ;;
9180 esac
9181
9182 # See if GNU ld supports shared libraries.
9183 case $host_os in
9184 aix[3-9]*)
9185 # On AIX/PPC, the GNU linker is very broken
9186 if test "$host_cpu" != ia64; then
9187 ld_shlibs=no
9188 cat <<_LT_EOF 1>&2
9189
9190*** Warning: the GNU linker, at least up to release 2.19, is reported
9191*** to be unable to reliably create shared libraries on AIX.
9192*** Therefore, libtool is disabling shared libraries support. If you
9193*** really care for shared libraries, you may want to install binutils
9194*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9195*** You will then need to restart the configuration process.
9196
9197_LT_EOF
9198 fi
9199 ;;
9200
9201 amigaos*)
9202 case $host_cpu in
9203 powerpc)
9204 # see comment about AmigaOS4 .so support
9205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 archive_expsym_cmds=''
9207 ;;
9208 m68k)
9209 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)'
9210 hardcode_libdir_flag_spec='-L$libdir'
9211 hardcode_minus_L=yes
9212 ;;
9213 esac
9214 ;;
9215
9216 beos*)
9217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9218 allow_undefined_flag=unsupported
9219 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9220 # support --undefined. This deserves some investigation. FIXME
9221 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222 else
9223 ld_shlibs=no
9224 fi
9225 ;;
9226
9227 cygwin* | mingw* | pw32* | cegcc*)
9228 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9229 # as there is no search path for DLLs.
9230 hardcode_libdir_flag_spec='-L$libdir'
9231 export_dynamic_flag_spec='${wl}--export-all-symbols'
9232 allow_undefined_flag=unsupported
9233 always_export_symbols=no
9234 enable_shared_with_static_runtimes=yes
9235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9236
9237 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9239 # If the export-symbols file already is a .def file (1st line
9240 # is EXPORTS), use it as is; otherwise, prepend...
9241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9242 cp $export_symbols $output_objdir/$soname.def;
9243 else
9244 echo EXPORTS > $output_objdir/$soname.def;
9245 cat $export_symbols >> $output_objdir/$soname.def;
9246 fi~
9247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9248 else
9249 ld_shlibs=no
9250 fi
9251 ;;
9252
9253 haiku*)
9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255 link_all_deplibs=yes
9256 ;;
9257
9258 interix[3-9]*)
9259 hardcode_direct=no
9260 hardcode_shlibpath_var=no
9261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9262 export_dynamic_flag_spec='${wl}-E'
9263 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9264 # Instead, shared libraries are loaded at an image base (0x10000000 by
9265 # default) and relocated if they conflict, which is a slow very memory
9266 # consuming and fragmenting process. To avoid this, we pick a random,
9267 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9268 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9269 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9270 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'
9271 ;;
9272
9273 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9274 tmp_diet=no
9275 if test "$host_os" = linux-dietlibc; then
9276 case $cc_basename in
9277 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9278 esac
9279 fi
9280 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9281 && test "$tmp_diet" = no
9282 then
9283 tmp_addflag=
9284 tmp_sharedflag='-shared'
9285 case $cc_basename,$host_cpu in
9286 pgcc*) # Portland Group C compiler
9287 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'
9288 tmp_addflag=' $pic_flag'
9289 ;;
9290 pgf77* | pgf90* | pgf95* | pgfortran*)
9291 # Portland Group f77 and f90 compilers
9292 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'
9293 tmp_addflag=' $pic_flag -Mnomain' ;;
9294 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9295 tmp_addflag=' -i_dynamic' ;;
9296 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9297 tmp_addflag=' -i_dynamic -nofor_main' ;;
9298 ifc* | ifort*) # Intel Fortran compiler
9299 tmp_addflag=' -nofor_main' ;;
9300 lf95*) # Lahey Fortran 8.1
9301 whole_archive_flag_spec=
9302 tmp_sharedflag='--shared' ;;
9303 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9304 tmp_sharedflag='-qmkshrobj'
9305 tmp_addflag= ;;
9306 nvcc*) # Cuda Compiler Driver 2.2
9307 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'
9308 compiler_needs_object=yes
9309 ;;
9310 esac
9311 case `$CC -V 2>&1 | sed 5q` in
9312 *Sun\ C*) # Sun C 5.9
9313 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'
9314 compiler_needs_object=yes
9315 tmp_sharedflag='-G' ;;
9316 *Sun\ F*) # Sun Fortran 8.3
9317 tmp_sharedflag='-G' ;;
9318 esac
9319 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320
9321 if test "x$supports_anon_versioning" = xyes; then
9322 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9324 echo "local: *; };" >> $output_objdir/$libname.ver~
9325 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9326 fi
9327
9328 case $cc_basename in
9329 xlf* | bgf* | bgxlf* | mpixlf*)
9330 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9331 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9332 hardcode_libdir_flag_spec=
9333 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9334 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9335 if test "x$supports_anon_versioning" = xyes; then
9336 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9338 echo "local: *; };" >> $output_objdir/$libname.ver~
9339 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9340 fi
9341 ;;
9342 esac
9343 else
9344 ld_shlibs=no
9345 fi
9346 ;;
9347
9348 netbsd*)
9349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9350 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9351 wlarc=
9352 else
9353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355 fi
9356 ;;
9357
9358 solaris*)
9359 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9360 ld_shlibs=no
9361 cat <<_LT_EOF 1>&2
9362
9363*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9364*** create shared libraries on Solaris systems. Therefore, libtool
9365*** is disabling shared libraries support. We urge you to upgrade GNU
9366*** binutils to release 2.9.1 or newer. Another option is to modify
9367*** your PATH or compiler configuration so that the native linker is
9368*** used, and then restart.
9369
9370_LT_EOF
9371 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9373 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9374 else
9375 ld_shlibs=no
9376 fi
9377 ;;
9378
9379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9380 case `$LD -v 2>&1` in
9381 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9382 ld_shlibs=no
9383 cat <<_LT_EOF 1>&2
9384
9385*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9386*** reliably create shared libraries on SCO systems. Therefore, libtool
9387*** is disabling shared libraries support. We urge you to upgrade GNU
9388*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9389*** your PATH or compiler configuration so that the native linker is
9390*** used, and then restart.
9391
9392_LT_EOF
9393 ;;
9394 *)
9395 # For security reasons, it is highly recommended that you always
9396 # use absolute paths for naming shared libraries, and exclude the
9397 # DT_RUNPATH tag from executables and libraries. But doing so
9398 # requires that you compile everything twice, which is a pain.
9399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9403 else
9404 ld_shlibs=no
9405 fi
9406 ;;
9407 esac
9408 ;;
9409
9410 sunos4*)
9411 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9412 wlarc=
9413 hardcode_direct=yes
9414 hardcode_shlibpath_var=no
9415 ;;
9416
9417 *)
9418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9421 else
9422 ld_shlibs=no
9423 fi
9424 ;;
9425 esac
9426
9427 if test "$ld_shlibs" = no; then
9428 runpath_var=
9429 hardcode_libdir_flag_spec=
9430 export_dynamic_flag_spec=
9431 whole_archive_flag_spec=
9432 fi
9433 else
9434 # PORTME fill in a description of your system's linker (not GNU ld)
9435 case $host_os in
9436 aix3*)
9437 allow_undefined_flag=unsupported
9438 always_export_symbols=yes
9439 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'
9440 # Note: this linker hardcodes the directories in LIBPATH if there
9441 # are no directories specified by -L.
9442 hardcode_minus_L=yes
9443 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9444 # Neither direct hardcoding nor static linking is supported with a
9445 # broken collect2.
9446 hardcode_direct=unsupported
9447 fi
9448 ;;
9449
9450 aix[4-9]*)
9451 if test "$host_cpu" = ia64; then
9452 # On IA64, the linker does run time linking by default, so we don't
9453 # have to do anything special.
9454 aix_use_runtimelinking=no
9455 exp_sym_flag='-Bexport'
9456 no_entry_flag=""
9457 else
9458 # If we're using GNU nm, then we don't want the "-C" option.
9459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9460 # Also, AIX nm treats weak defined symbols like other global
9461 # defined symbols, whereas GNU nm marks them as "W".
9462 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9463 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'
9464 else
9465 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'
9466 fi
9467 aix_use_runtimelinking=no
9468
9469 # Test if we are trying to use run time linking or normal
9470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9471 # need to do runtime linking.
9472 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9473 for ld_flag in $LDFLAGS; do
9474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9475 aix_use_runtimelinking=yes
9476 break
9477 fi
9478 done
9479 ;;
9480 esac
9481
9482 exp_sym_flag='-bexport'
9483 no_entry_flag='-bnoentry'
9484 fi
9485
9486 # When large executables or shared objects are built, AIX ld can
9487 # have problems creating the table of contents. If linking a library
9488 # or program results in "error TOC overflow" add -mminimal-toc to
9489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9491
9492 archive_cmds=''
9493 hardcode_direct=yes
9494 hardcode_direct_absolute=yes
9495 hardcode_libdir_separator=':'
9496 link_all_deplibs=yes
9497 file_list_spec='${wl}-f,'
9498
9499 if test "$GCC" = yes; then
9500 case $host_os in aix4.[012]|aix4.[012].*)
9501 # We only want to do this on AIX 4.2 and lower, the check
9502 # below for broken collect2 doesn't work under 4.3+
9503 collect2name=`${CC} -print-prog-name=collect2`
9504 if test -f "$collect2name" &&
9505 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9506 then
9507 # We have reworked collect2
9508 :
9509 else
9510 # We have old collect2
9511 hardcode_direct=unsupported
9512 # It fails to find uninstalled libraries when the uninstalled
9513 # path is not listed in the libpath. Setting hardcode_minus_L
9514 # to unsupported forces relinking
9515 hardcode_minus_L=yes
9516 hardcode_libdir_flag_spec='-L$libdir'
9517 hardcode_libdir_separator=
9518 fi
9519 ;;
9520 esac
9521 shared_flag='-shared'
9522 if test "$aix_use_runtimelinking" = yes; then
9523 shared_flag="$shared_flag "'${wl}-G'
9524 fi
9525 else
9526 # not using gcc
9527 if test "$host_cpu" = ia64; then
9528 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9529 # chokes on -Wl,-G. The following line is correct:
9530 shared_flag='-G'
9531 else
9532 if test "$aix_use_runtimelinking" = yes; then
9533 shared_flag='${wl}-G'
9534 else
9535 shared_flag='${wl}-bM:SRE'
9536 fi
9537 fi
9538 fi
9539
9540 export_dynamic_flag_spec='${wl}-bexpall'
9541 # It seems that -bexpall does not export symbols beginning with
9542 # underscore (_), so it is better to generate a list of symbols to export.
9543 always_export_symbols=yes
9544 if test "$aix_use_runtimelinking" = yes; then
9545 # Warning - without using the other runtime loading flags (-brtl),
9546 # -berok will link without error, but may produce a broken library.
9547 allow_undefined_flag='-berok'
9548 # Determine the default libpath from the value encoded in an
9549 # empty executable.
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551/* end confdefs.h. */
9552
9553int
9554main ()
9555{
9556
9557 ;
9558 return 0;
9559}
9560_ACEOF
9561if ac_fn_c_try_link "$LINENO"; then :
9562
9563lt_aix_libpath_sed='
9564 /Import File Strings/,/^$/ {
9565 /^0/ {
9566 s/^0 *\(.*\)$/\1/
9567 p
9568 }
9569 }'
9570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571# Check for a 64-bit object if we didn't find anything.
9572if test -z "$aix_libpath"; then
9573 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9574fi
9575fi
9576rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9579
9580 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9581 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"
9582 else
9583 if test "$host_cpu" = ia64; then
9584 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9585 allow_undefined_flag="-z nodefs"
9586 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"
9587 else
9588 # Determine the default libpath from the value encoded in an
9589 # empty executable.
9590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h. */
9592
9593int
9594main ()
9595{
9596
9597 ;
9598 return 0;
9599}
9600_ACEOF
9601if ac_fn_c_try_link "$LINENO"; then :
9602
9603lt_aix_libpath_sed='
9604 /Import File Strings/,/^$/ {
9605 /^0/ {
9606 s/^0 *\(.*\)$/\1/
9607 p
9608 }
9609 }'
9610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611# Check for a 64-bit object if we didn't find anything.
9612if test -z "$aix_libpath"; then
9613 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614fi
9615fi
9616rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9619
9620 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9621 # Warning - without using the other run time loading flags,
9622 # -berok will link without error, but may produce a broken library.
9623 no_undefined_flag=' ${wl}-bernotok'
9624 allow_undefined_flag=' ${wl}-berok'
9625 if test "$with_gnu_ld" = yes; then
9626 # We only use this code for GNU lds that support --whole-archive.
9627 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9628 else
9629 # Exported symbols can be pulled into shared objects from archives
9630 whole_archive_flag_spec='$convenience'
9631 fi
9632 archive_cmds_need_lc=yes
9633 # This is similar to how AIX traditionally builds its shared libraries.
9634 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'
9635 fi
9636 fi
9637 ;;
9638
9639 amigaos*)
9640 case $host_cpu in
9641 powerpc)
9642 # see comment about AmigaOS4 .so support
9643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644 archive_expsym_cmds=''
9645 ;;
9646 m68k)
9647 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)'
9648 hardcode_libdir_flag_spec='-L$libdir'
9649 hardcode_minus_L=yes
9650 ;;
9651 esac
9652 ;;
9653
9654 bsdi[45]*)
9655 export_dynamic_flag_spec=-rdynamic
9656 ;;
9657
9658 cygwin* | mingw* | pw32* | cegcc*)
9659 # When not using gcc, we currently assume that we are using
9660 # Microsoft Visual C++.
9661 # hardcode_libdir_flag_spec is actually meaningless, as there is
9662 # no search path for DLLs.
9663 hardcode_libdir_flag_spec=' '
9664 allow_undefined_flag=unsupported
9665 # Tell ltmain to make .lib files, not .a files.
9666 libext=lib
9667 # Tell ltmain to make .dll files, not .so files.
9668 shrext_cmds=".dll"
9669 # FIXME: Setting linknames here is a bad hack.
9670 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9671 # The linker will automatically build a .lib file if we build a DLL.
9672 old_archive_from_new_cmds='true'
9673 # FIXME: Should let the user specify the lib program.
9674 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9675 fix_srcfile_path='`cygpath -w "$srcfile"`'
9676 enable_shared_with_static_runtimes=yes
9677 ;;
9678
9679 darwin* | rhapsody*)
9680
9681
9682 archive_cmds_need_lc=no
9683 hardcode_direct=no
9684 hardcode_automatic=yes
9685 hardcode_shlibpath_var=unsupported
9686 if test "$lt_cv_ld_force_load" = "yes"; then
9687 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\"`'
9688 else
9689 whole_archive_flag_spec=''
9690 fi
9691 link_all_deplibs=yes
9692 allow_undefined_flag="$_lt_dar_allow_undefined"
9693 case $cc_basename in
9694 ifort*) _lt_dar_can_shared=yes ;;
9695 *) _lt_dar_can_shared=$GCC ;;
9696 esac
9697 if test "$_lt_dar_can_shared" = "yes"; then
9698 output_verbose_link_cmd=func_echo_all
9699 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9700 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9701 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}"
9702 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}"
9703
9704 else
9705 ld_shlibs=no
9706 fi
9707
9708 ;;
9709
9710 dgux*)
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_libdir_flag_spec='-L$libdir'
9713 hardcode_shlibpath_var=no
9714 ;;
9715
7a938933
ILT
9716 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9717 # support. Future versions do this automatically, but an explicit c++rt0.o
9718 # does not break anything, and helps significantly (at the cost of a little
9719 # extra space).
9720 freebsd2.2*)
9721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9722 hardcode_libdir_flag_spec='-R$libdir'
9723 hardcode_direct=yes
9724 hardcode_shlibpath_var=no
9725 ;;
9726
9727 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 9728 freebsd2.*)
7a938933
ILT
9729 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_direct=yes
9731 hardcode_minus_L=yes
9732 hardcode_shlibpath_var=no
9733 ;;
9734
9735 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9736 freebsd* | dragonfly*)
9737 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9738 hardcode_libdir_flag_spec='-R$libdir'
9739 hardcode_direct=yes
9740 hardcode_shlibpath_var=no
9741 ;;
9742
9743 hpux9*)
9744 if test "$GCC" = yes; then
9745 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'
9746 else
9747 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'
9748 fi
9749 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9750 hardcode_libdir_separator=:
9751 hardcode_direct=yes
9752
9753 # hardcode_minus_L: Not really in the search PATH,
9754 # but as the default location of the library.
9755 hardcode_minus_L=yes
9756 export_dynamic_flag_spec='${wl}-E'
9757 ;;
9758
9759 hpux10*)
9760 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9762 else
9763 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9764 fi
9765 if test "$with_gnu_ld" = no; then
9766 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9767 hardcode_libdir_flag_spec_ld='+b $libdir'
9768 hardcode_libdir_separator=:
9769 hardcode_direct=yes
9770 hardcode_direct_absolute=yes
9771 export_dynamic_flag_spec='${wl}-E'
9772 # hardcode_minus_L: Not really in the search PATH,
9773 # but as the default location of the library.
9774 hardcode_minus_L=yes
9775 fi
9776 ;;
9777
9778 hpux11*)
9779 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9780 case $host_cpu in
9781 hppa*64*)
9782 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9783 ;;
9784 ia64*)
9785 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9786 ;;
9787 *)
9788 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9789 ;;
9790 esac
9791 else
9792 case $host_cpu in
9793 hppa*64*)
9794 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9795 ;;
9796 ia64*)
9797 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9798 ;;
9799 *)
9800
9801 # Older versions of the 11.00 compiler do not understand -b yet
9802 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9804$as_echo_n "checking if $CC understands -b... " >&6; }
73b6d7a9 9805if ${lt_cv_prog_compiler__b+:} false; then :
7a938933
ILT
9806 $as_echo_n "(cached) " >&6
9807else
9808 lt_cv_prog_compiler__b=no
9809 save_LDFLAGS="$LDFLAGS"
9810 LDFLAGS="$LDFLAGS -b"
9811 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9812 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9813 # The linker can only warn and ignore the option if not recognized
9814 # So say no if there are warnings
9815 if test -s conftest.err; then
9816 # Append any errors to the config.log.
9817 cat conftest.err 1>&5
9818 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9820 if diff conftest.exp conftest.er2 >/dev/null; then
9821 lt_cv_prog_compiler__b=yes
9822 fi
9823 else
9824 lt_cv_prog_compiler__b=yes
9825 fi
9826 fi
9827 $RM -r conftest*
9828 LDFLAGS="$save_LDFLAGS"
9829
9830fi
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9832$as_echo "$lt_cv_prog_compiler__b" >&6; }
9833
9834if test x"$lt_cv_prog_compiler__b" = xyes; then
9835 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836else
9837 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9838fi
9839
9840 ;;
9841 esac
9842 fi
9843 if test "$with_gnu_ld" = no; then
9844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9845 hardcode_libdir_separator=:
9846
9847 case $host_cpu in
9848 hppa*64*|ia64*)
9849 hardcode_direct=no
9850 hardcode_shlibpath_var=no
9851 ;;
9852 *)
9853 hardcode_direct=yes
9854 hardcode_direct_absolute=yes
9855 export_dynamic_flag_spec='${wl}-E'
9856
9857 # hardcode_minus_L: Not really in the search PATH,
9858 # but as the default location of the library.
9859 hardcode_minus_L=yes
9860 ;;
9861 esac
9862 fi
9863 ;;
9864
9865 irix5* | irix6* | nonstopux*)
9866 if test "$GCC" = yes; then
9867 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'
9868 # Try to use the -exported_symbol ld option, if it does not
9869 # work, assume that -exports_file does not work either and
9870 # implicitly export all symbols.
9871 save_LDFLAGS="$LDFLAGS"
9872 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h. */
9875int foo(void) {}
9876_ACEOF
9877if ac_fn_c_try_link "$LINENO"; then :
9878 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'
9879
9880fi
9881rm -f core conftest.err conftest.$ac_objext \
9882 conftest$ac_exeext conftest.$ac_ext
9883 LDFLAGS="$save_LDFLAGS"
9884 else
9885 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'
9886 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'
9887 fi
9888 archive_cmds_need_lc='no'
9889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9890 hardcode_libdir_separator=:
9891 inherit_rpath=yes
9892 link_all_deplibs=yes
9893 ;;
9894
9895 netbsd*)
9896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9898 else
9899 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9900 fi
9901 hardcode_libdir_flag_spec='-R$libdir'
9902 hardcode_direct=yes
9903 hardcode_shlibpath_var=no
9904 ;;
9905
9906 newsos6)
9907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_direct=yes
9909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9910 hardcode_libdir_separator=:
9911 hardcode_shlibpath_var=no
9912 ;;
9913
9914 *nto* | *qnx*)
9915 ;;
9916
9917 openbsd*)
9918 if test -f /usr/libexec/ld.so; then
9919 hardcode_direct=yes
9920 hardcode_shlibpath_var=no
9921 hardcode_direct_absolute=yes
9922 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9923 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9924 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9925 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9926 export_dynamic_flag_spec='${wl}-E'
9927 else
9928 case $host_os in
9929 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9931 hardcode_libdir_flag_spec='-R$libdir'
9932 ;;
9933 *)
9934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9936 ;;
9937 esac
9938 fi
9939 else
9940 ld_shlibs=no
9941 fi
9942 ;;
9943
9944 os2*)
9945 hardcode_libdir_flag_spec='-L$libdir'
9946 hardcode_minus_L=yes
9947 allow_undefined_flag=unsupported
9948 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'
9949 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9950 ;;
9951
9952 osf3*)
9953 if test "$GCC" = yes; then
9954 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9955 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'
9956 else
9957 allow_undefined_flag=' -expect_unresolved \*'
9958 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'
9959 fi
9960 archive_cmds_need_lc='no'
9961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962 hardcode_libdir_separator=:
9963 ;;
9964
9965 osf4* | osf5*) # as osf3* with the addition of -msym flag
9966 if test "$GCC" = yes; then
9967 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9968 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'
9969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9970 else
9971 allow_undefined_flag=' -expect_unresolved \*'
9972 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'
9973 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~
9974 $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'
9975
9976 # Both c and cxx compiler support -rpath directly
9977 hardcode_libdir_flag_spec='-rpath $libdir'
9978 fi
9979 archive_cmds_need_lc='no'
9980 hardcode_libdir_separator=:
9981 ;;
9982
9983 solaris*)
9984 no_undefined_flag=' -z defs'
9985 if test "$GCC" = yes; then
9986 wlarc='${wl}'
9987 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9989 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9990 else
9991 case `$CC -V 2>&1` in
9992 *"Compilers 5.0"*)
9993 wlarc=''
9994 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9996 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9997 ;;
9998 *)
9999 wlarc='${wl}'
10000 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10002 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10003 ;;
10004 esac
10005 fi
10006 hardcode_libdir_flag_spec='-R$libdir'
10007 hardcode_shlibpath_var=no
10008 case $host_os in
10009 solaris2.[0-5] | solaris2.[0-5].*) ;;
10010 *)
10011 # The compiler driver will combine and reorder linker options,
10012 # but understands `-z linker_flag'. GCC discards it without `$wl',
10013 # but is careful enough not to reorder.
10014 # Supported since Solaris 2.6 (maybe 2.5.1?)
10015 if test "$GCC" = yes; then
10016 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10017 else
10018 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10019 fi
10020 ;;
10021 esac
10022 link_all_deplibs=yes
10023 ;;
10024
10025 sunos4*)
10026 if test "x$host_vendor" = xsequent; then
10027 # Use $CC to link under sequent, because it throws in some extra .o
10028 # files that make .init and .fini sections work.
10029 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10030 else
10031 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10032 fi
10033 hardcode_libdir_flag_spec='-L$libdir'
10034 hardcode_direct=yes
10035 hardcode_minus_L=yes
10036 hardcode_shlibpath_var=no
10037 ;;
10038
10039 sysv4)
10040 case $host_vendor in
10041 sni)
10042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10043 hardcode_direct=yes # is this really true???
10044 ;;
10045 siemens)
10046 ## LD is ld it makes a PLAMLIB
10047 ## CC just makes a GrossModule.
10048 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10049 reload_cmds='$CC -r -o $output$reload_objs'
10050 hardcode_direct=no
10051 ;;
10052 motorola)
10053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10055 ;;
10056 esac
10057 runpath_var='LD_RUN_PATH'
10058 hardcode_shlibpath_var=no
10059 ;;
10060
10061 sysv4.3*)
10062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 hardcode_shlibpath_var=no
10064 export_dynamic_flag_spec='-Bexport'
10065 ;;
10066
10067 sysv4*MP*)
10068 if test -d /usr/nec; then
10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_shlibpath_var=no
10071 runpath_var=LD_RUN_PATH
10072 hardcode_runpath_var=yes
10073 ld_shlibs=yes
10074 fi
10075 ;;
10076
10077 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10078 no_undefined_flag='${wl}-z,text'
10079 archive_cmds_need_lc=no
10080 hardcode_shlibpath_var=no
10081 runpath_var='LD_RUN_PATH'
10082
10083 if test "$GCC" = yes; then
10084 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086 else
10087 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 fi
10090 ;;
10091
10092 sysv5* | sco3.2v5* | sco5v6*)
10093 # Note: We can NOT use -z defs as we might desire, because we do not
10094 # link with -lc, and that would cause any symbols used from libc to
10095 # always be unresolved, which means just about no library would
10096 # ever link correctly. If we're not using GNU ld we use -z text
10097 # though, which does catch some bad symbols but isn't as heavy-handed
10098 # as -z defs.
10099 no_undefined_flag='${wl}-z,text'
10100 allow_undefined_flag='${wl}-z,nodefs'
10101 archive_cmds_need_lc=no
10102 hardcode_shlibpath_var=no
10103 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10104 hardcode_libdir_separator=':'
10105 link_all_deplibs=yes
10106 export_dynamic_flag_spec='${wl}-Bexport'
10107 runpath_var='LD_RUN_PATH'
10108
10109 if test "$GCC" = yes; then
10110 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112 else
10113 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 fi
10116 ;;
10117
10118 uts4*)
10119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120 hardcode_libdir_flag_spec='-L$libdir'
10121 hardcode_shlibpath_var=no
10122 ;;
10123
10124 *)
10125 ld_shlibs=no
10126 ;;
10127 esac
10128
10129 if test x$host_vendor = xsni; then
10130 case $host in
10131 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10132 export_dynamic_flag_spec='${wl}-Blargedynsym'
10133 ;;
10134 esac
10135 fi
10136 fi
10137
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10139$as_echo "$ld_shlibs" >&6; }
10140test "$ld_shlibs" = no && can_build_shared=no
10141
10142with_gnu_ld=$with_gnu_ld
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158#
10159# Do we need to explicitly link libc?
10160#
10161case "x$archive_cmds_need_lc" in
10162x|xyes)
10163 # Assume -lc should be added
10164 archive_cmds_need_lc=yes
10165
10166 if test "$enable_shared" = yes && test "$GCC" = yes; then
10167 case $archive_cmds in
10168 *'~'*)
10169 # FIXME: we may have to deal with multi-command sequences.
10170 ;;
10171 '$CC '*)
10172 # Test whether the compiler implicitly links with -lc since on some
10173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10174 # to ld, don't add -lc before -lgcc.
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10176$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
73b6d7a9 10177if ${lt_cv_archive_cmds_need_lc+:} false; then :
7a938933
ILT
10178 $as_echo_n "(cached) " >&6
10179else
10180 $RM conftest*
10181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10182
10183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10184 (eval $ac_compile) 2>&5
10185 ac_status=$?
10186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10187 test $ac_status = 0; } 2>conftest.err; then
10188 soname=conftest
10189 lib=conftest
10190 libobjs=conftest.$ac_objext
10191 deplibs=
10192 wl=$lt_prog_compiler_wl
10193 pic_flag=$lt_prog_compiler_pic
10194 compiler_flags=-v
10195 linker_flags=-v
10196 verstring=
10197 output_objdir=.
10198 libname=conftest
10199 lt_save_allow_undefined_flag=$allow_undefined_flag
10200 allow_undefined_flag=
10201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10202 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10203 ac_status=$?
10204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10205 test $ac_status = 0; }
10206 then
10207 lt_cv_archive_cmds_need_lc=no
10208 else
10209 lt_cv_archive_cmds_need_lc=yes
10210 fi
10211 allow_undefined_flag=$lt_save_allow_undefined_flag
10212 else
10213 cat conftest.err 1>&5
10214 fi
10215 $RM conftest*
10216
10217fi
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10219$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10220 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10221 ;;
10222 esac
10223 fi
10224 ;;
10225esac
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10384$as_echo_n "checking dynamic linker characteristics... " >&6; }
10385
10386if test "$GCC" = yes; then
10387 case $host_os in
10388 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10389 *) lt_awk_arg="/^libraries:/" ;;
10390 esac
10391 case $host_os in
10392 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10393 *) lt_sed_strip_eq="s,=/,/,g" ;;
10394 esac
10395 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10396 case $lt_search_path_spec in
10397 *\;*)
10398 # if the path contains ";" then we assume it to be the separator
10399 # otherwise default to the standard path separator (i.e. ":") - it is
10400 # assumed that no part of a normal pathname contains ";" but that should
10401 # okay in the real world where ";" in dirpaths is itself problematic.
10402 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10403 ;;
10404 *)
10405 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10406 ;;
10407 esac
10408 # Ok, now we have the path, separated by spaces, we can step through it
10409 # and add multilib dir if necessary.
10410 lt_tmp_lt_search_path_spec=
10411 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10412 for lt_sys_path in $lt_search_path_spec; do
10413 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10414 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10415 else
10416 test -d "$lt_sys_path" && \
10417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10418 fi
10419 done
10420 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10421BEGIN {RS=" "; FS="/|\n";} {
10422 lt_foo="";
10423 lt_count=0;
10424 for (lt_i = NF; lt_i > 0; lt_i--) {
10425 if ($lt_i != "" && $lt_i != ".") {
10426 if ($lt_i == "..") {
10427 lt_count++;
10428 } else {
10429 if (lt_count == 0) {
10430 lt_foo="/" $lt_i lt_foo;
10431 } else {
10432 lt_count--;
10433 }
10434 }
10435 }
10436 }
10437 if (lt_foo != "") { lt_freq[lt_foo]++; }
10438 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10439}'`
10440 # AWK program above erroneously prepends '/' to C:/dos/paths
10441 # for these hosts.
10442 case $host_os in
10443 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10444 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10445 esac
10446 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10447else
10448 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10449fi
10450library_names_spec=
10451libname_spec='lib$name'
10452soname_spec=
10453shrext_cmds=".so"
10454postinstall_cmds=
10455postuninstall_cmds=
10456finish_cmds=
10457finish_eval=
10458shlibpath_var=
10459shlibpath_overrides_runpath=unknown
10460version_type=none
10461dynamic_linker="$host_os ld.so"
10462sys_lib_dlsearch_path_spec="/lib /usr/lib"
10463need_lib_prefix=unknown
10464hardcode_into_libs=no
10465
10466# when you set need_version to no, make sure it does not cause -set_version
10467# flags to be left without arguments
10468need_version=unknown
10469
10470case $host_os in
10471aix3*)
10472 version_type=linux
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10474 shlibpath_var=LIBPATH
10475
10476 # AIX 3 has no versioning support, so we append a major version to the name.
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 ;;
10479
10480aix[4-9]*)
10481 version_type=linux
10482 need_lib_prefix=no
10483 need_version=no
10484 hardcode_into_libs=yes
10485 if test "$host_cpu" = ia64; then
10486 # AIX 5 supports IA64
10487 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 else
10490 # With GCC up to 2.95.x, collect2 would create an import file
10491 # for dependence libraries. The import file would start with
10492 # the line `#! .'. This would cause the generated library to
10493 # depend on `.', always an invalid library. This was fixed in
10494 # development snapshots of GCC prior to 3.0.
10495 case $host_os in
10496 aix4 | aix4.[01] | aix4.[01].*)
10497 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10498 echo ' yes '
10499 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10500 :
10501 else
10502 can_build_shared=no
10503 fi
10504 ;;
10505 esac
10506 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10507 # soname into executable. Probably we can add versioning support to
10508 # collect2, so additional links can be useful in future.
10509 if test "$aix_use_runtimelinking" = yes; then
10510 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10511 # instead of lib<name>.a to let people know that these are not
10512 # typical AIX shared libraries.
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 else
10515 # We preserve .a as extension for shared libraries through AIX4.2
10516 # and later when we are not doing run time linking.
10517 library_names_spec='${libname}${release}.a $libname.a'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10519 fi
10520 shlibpath_var=LIBPATH
10521 fi
10522 ;;
10523
10524amigaos*)
10525 case $host_cpu in
10526 powerpc)
10527 # Since July 2007 AmigaOS4 officially supports .so libraries.
10528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530 ;;
10531 m68k)
10532 library_names_spec='$libname.ixlibrary $libname.a'
10533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10534 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'
10535 ;;
10536 esac
10537 ;;
10538
10539beos*)
10540 library_names_spec='${libname}${shared_ext}'
10541 dynamic_linker="$host_os ld.so"
10542 shlibpath_var=LIBRARY_PATH
10543 ;;
10544
10545bsdi[45]*)
10546 version_type=linux
10547 need_version=no
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10549 soname_spec='${libname}${release}${shared_ext}$major'
10550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10551 shlibpath_var=LD_LIBRARY_PATH
10552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10554 # the default ld.so.conf also contains /usr/contrib/lib and
10555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10556 # libtool to hard-code these into programs
10557 ;;
10558
10559cygwin* | mingw* | pw32* | cegcc*)
10560 version_type=windows
10561 shrext_cmds=".dll"
10562 need_version=no
10563 need_lib_prefix=no
10564
10565 case $GCC,$host_os in
10566 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10567 library_names_spec='$libname.dll.a'
10568 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10569 postinstall_cmds='base_file=`basename \${file}`~
10570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10571 dldir=$destdir/`dirname \$dlpath`~
10572 test -d \$dldir || mkdir -p \$dldir~
10573 $install_prog $dir/$dlname \$dldir/$dlname~
10574 chmod a+x \$dldir/$dlname~
10575 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10576 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10577 fi'
10578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10579 dlpath=$dir/\$dldll~
10580 $RM \$dlpath'
10581 shlibpath_overrides_runpath=yes
10582
10583 case $host_os in
10584 cygwin*)
10585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10586 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10587
10588 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10589 ;;
10590 mingw* | cegcc*)
10591 # MinGW DLLs use traditional 'lib' prefix
10592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10593 ;;
10594 pw32*)
10595 # pw32 DLLs use 'pw' prefix rather than 'lib'
10596 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597 ;;
10598 esac
10599 ;;
10600
10601 *)
10602 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10603 ;;
10604 esac
10605 dynamic_linker='Win32 ld.exe'
10606 # FIXME: first we should search . and the directory the executable is in
10607 shlibpath_var=PATH
10608 ;;
10609
10610darwin* | rhapsody*)
10611 dynamic_linker="$host_os dyld"
10612 version_type=darwin
10613 need_lib_prefix=no
10614 need_version=no
10615 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10616 soname_spec='${libname}${release}${major}$shared_ext'
10617 shlibpath_overrides_runpath=yes
10618 shlibpath_var=DYLD_LIBRARY_PATH
10619 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10620
10621 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10622 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10623 ;;
10624
10625dgux*)
10626 version_type=linux
10627 need_lib_prefix=no
10628 need_version=no
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 ;;
10633
7a938933
ILT
10634freebsd* | dragonfly*)
10635 # DragonFly does not have aout. When/if they implement a new
10636 # versioning mechanism, adjust this.
10637 if test -x /usr/bin/objformat; then
10638 objformat=`/usr/bin/objformat`
10639 else
10640 case $host_os in
327a26a3 10641 freebsd[23].*) objformat=aout ;;
7a938933
ILT
10642 *) objformat=elf ;;
10643 esac
10644 fi
10645 version_type=freebsd-$objformat
10646 case $version_type in
10647 freebsd-elf*)
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10649 need_version=no
10650 need_lib_prefix=no
10651 ;;
10652 freebsd-*)
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10654 need_version=yes
10655 ;;
10656 esac
10657 shlibpath_var=LD_LIBRARY_PATH
10658 case $host_os in
327a26a3 10659 freebsd2.*)
7a938933
ILT
10660 shlibpath_overrides_runpath=yes
10661 ;;
10662 freebsd3.[01]* | freebsdelf3.[01]*)
10663 shlibpath_overrides_runpath=yes
10664 hardcode_into_libs=yes
10665 ;;
10666 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10667 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10668 shlibpath_overrides_runpath=no
10669 hardcode_into_libs=yes
10670 ;;
10671 *) # from 4.6 on, and DragonFly
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10674 ;;
10675 esac
10676 ;;
10677
10678gnu*)
10679 version_type=linux
10680 need_lib_prefix=no
10681 need_version=no
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 hardcode_into_libs=yes
10686 ;;
10687
10688haiku*)
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 dynamic_linker="$host_os runtime_loader"
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 shlibpath_var=LIBRARY_PATH
10696 shlibpath_overrides_runpath=yes
10697 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10698 hardcode_into_libs=yes
10699 ;;
10700
10701hpux9* | hpux10* | hpux11*)
10702 # Give a soname corresponding to the major version so that dld.sl refuses to
10703 # link against other versions.
10704 version_type=sunos
10705 need_lib_prefix=no
10706 need_version=no
10707 case $host_cpu in
10708 ia64*)
10709 shrext_cmds='.so'
10710 hardcode_into_libs=yes
10711 dynamic_linker="$host_os dld.so"
10712 shlibpath_var=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 if test "X$HPUX_IA64_MODE" = X32; then
10717 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10718 else
10719 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10720 fi
10721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10722 ;;
10723 hppa*64*)
10724 shrext_cmds='.sl'
10725 hardcode_into_libs=yes
10726 dynamic_linker="$host_os dld.sl"
10727 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10733 ;;
10734 *)
10735 shrext_cmds='.sl'
10736 dynamic_linker="$host_os dld.sl"
10737 shlibpath_var=SHLIB_PATH
10738 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 soname_spec='${libname}${release}${shared_ext}$major'
10741 ;;
10742 esac
10743 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10744 postinstall_cmds='chmod 555 $lib'
10745 # or fails outright, so override atomically:
10746 install_override_mode=555
10747 ;;
10748
10749interix[3-9]*)
10750 version_type=linux
10751 need_lib_prefix=no
10752 need_version=no
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10755 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10756 shlibpath_var=LD_LIBRARY_PATH
10757 shlibpath_overrides_runpath=no
10758 hardcode_into_libs=yes
10759 ;;
10760
10761irix5* | irix6* | nonstopux*)
10762 case $host_os in
10763 nonstopux*) version_type=nonstopux ;;
10764 *)
10765 if test "$lt_cv_prog_gnu_ld" = yes; then
10766 version_type=linux
10767 else
10768 version_type=irix
10769 fi ;;
10770 esac
10771 need_lib_prefix=no
10772 need_version=no
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10775 case $host_os in
10776 irix5* | nonstopux*)
10777 libsuff= shlibsuff=
10778 ;;
10779 *)
10780 case $LD in # libtool.m4 will add one of these switches to LD
10781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10782 libsuff= shlibsuff= libmagic=32-bit;;
10783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10784 libsuff=32 shlibsuff=N32 libmagic=N32;;
10785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10786 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10787 *) libsuff= shlibsuff= libmagic=never-match;;
10788 esac
10789 ;;
10790 esac
10791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10792 shlibpath_overrides_runpath=no
10793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10795 hardcode_into_libs=yes
10796 ;;
10797
10798# No shared lib support for Linux oldld, aout, or coff.
10799linux*oldld* | linux*aout* | linux*coff*)
10800 dynamic_linker=no
10801 ;;
10802
10803# This must be Linux ELF.
10804linux* | k*bsd*-gnu | kopensolaris*-gnu)
10805 version_type=linux
10806 need_lib_prefix=no
10807 need_version=no
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath=no
10813
10814 # Some binutils ld are patched to set DT_RUNPATH
73b6d7a9 10815 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
7a938933
ILT
10816 $as_echo_n "(cached) " >&6
10817else
10818 lt_cv_shlibpath_overrides_runpath=no
10819 save_LDFLAGS=$LDFLAGS
10820 save_libdir=$libdir
10821 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10822 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824/* end confdefs.h. */
10825
10826int
10827main ()
10828{
10829
10830 ;
10831 return 0;
10832}
10833_ACEOF
10834if ac_fn_c_try_link "$LINENO"; then :
10835 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10836 lt_cv_shlibpath_overrides_runpath=yes
10837fi
10838fi
10839rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LDFLAGS=$save_LDFLAGS
10842 libdir=$save_libdir
10843
10844fi
10845
10846 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10847
10848 # This implies no fast_install, which is unacceptable.
10849 # Some rework will be needed to allow for fast_install
10850 # before this can be enabled.
10851 hardcode_into_libs=yes
10852
10853 # Append ld.so.conf contents to the search path
10854 if test -f /etc/ld.so.conf; then
10855 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' ' '`
10856 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10857 fi
10858
10859 # We used to test for /lib/ld.so.1 and disable shared libraries on
10860 # powerpc, because MkLinux only supported shared libraries with the
10861 # GNU dynamic linker. Since this was broken with cross compilers,
10862 # most powerpc-linux boxes support dynamic linking these days and
10863 # people can always --disable-shared, the test was removed, and we
10864 # assume the GNU/Linux dynamic linker is in use.
10865 dynamic_linker='GNU/Linux ld.so'
10866 ;;
10867
10868netbsd*)
10869 version_type=sunos
10870 need_lib_prefix=no
10871 need_version=no
10872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10875 dynamic_linker='NetBSD (a.out) ld.so'
10876 else
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 dynamic_linker='NetBSD ld.elf_so'
10880 fi
10881 shlibpath_var=LD_LIBRARY_PATH
10882 shlibpath_overrides_runpath=yes
10883 hardcode_into_libs=yes
10884 ;;
10885
10886newsos6)
10887 version_type=linux
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes
10891 ;;
10892
10893*nto* | *qnx*)
10894 version_type=qnx
10895 need_lib_prefix=no
10896 need_version=no
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 hardcode_into_libs=yes
10902 dynamic_linker='ldqnx.so'
10903 ;;
10904
10905openbsd*)
10906 version_type=sunos
10907 sys_lib_dlsearch_path_spec="/usr/lib"
10908 need_lib_prefix=no
10909 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10910 case $host_os in
10911 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10912 *) need_version=no ;;
10913 esac
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10918 case $host_os in
10919 openbsd2.[89] | openbsd2.[89].*)
10920 shlibpath_overrides_runpath=no
10921 ;;
10922 *)
10923 shlibpath_overrides_runpath=yes
10924 ;;
10925 esac
10926 else
10927 shlibpath_overrides_runpath=yes
10928 fi
10929 ;;
10930
10931os2*)
10932 libname_spec='$name'
10933 shrext_cmds=".dll"
10934 need_lib_prefix=no
10935 library_names_spec='$libname${shared_ext} $libname.a'
10936 dynamic_linker='OS/2 ld.exe'
10937 shlibpath_var=LIBPATH
10938 ;;
10939
10940osf3* | osf4* | osf5*)
10941 version_type=osf
10942 need_lib_prefix=no
10943 need_version=no
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946 shlibpath_var=LD_LIBRARY_PATH
10947 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10948 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10949 ;;
10950
10951rdos*)
10952 dynamic_linker=no
10953 ;;
10954
10955solaris*)
10956 version_type=linux
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10963 hardcode_into_libs=yes
10964 # ldd complains unless libraries are executable
10965 postinstall_cmds='chmod +x $lib'
10966 ;;
10967
10968sunos4*)
10969 version_type=sunos
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10971 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=yes
10974 if test "$with_gnu_ld" = yes; then
10975 need_lib_prefix=no
10976 fi
10977 need_version=yes
10978 ;;
10979
10980sysv4 | sysv4.3*)
10981 version_type=linux
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 case $host_vendor in
10986 sni)
10987 shlibpath_overrides_runpath=no
10988 need_lib_prefix=no
10989 runpath_var=LD_RUN_PATH
10990 ;;
10991 siemens)
10992 need_lib_prefix=no
10993 ;;
10994 motorola)
10995 need_lib_prefix=no
10996 need_version=no
10997 shlibpath_overrides_runpath=no
10998 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10999 ;;
11000 esac
11001 ;;
11002
11003sysv4*MP*)
11004 if test -d /usr/nec ;then
11005 version_type=linux
11006 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11007 soname_spec='$libname${shared_ext}.$major'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 fi
11010 ;;
11011
11012sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11013 version_type=freebsd-elf
11014 need_lib_prefix=no
11015 need_version=no
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11020 hardcode_into_libs=yes
11021 if test "$with_gnu_ld" = yes; then
11022 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11023 else
11024 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11025 case $host_os in
11026 sco3.2v5*)
11027 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11028 ;;
11029 esac
11030 fi
11031 sys_lib_dlsearch_path_spec='/usr/lib'
11032 ;;
11033
11034tpf*)
11035 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11036 version_type=linux
11037 need_lib_prefix=no
11038 need_version=no
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=no
11042 hardcode_into_libs=yes
11043 ;;
11044
11045uts4*)
11046 version_type=linux
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 ;;
11051
11052*)
11053 dynamic_linker=no
11054 ;;
11055esac
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11057$as_echo "$dynamic_linker" >&6; }
11058test "$dynamic_linker" = no && can_build_shared=no
11059
11060variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11061if test "$GCC" = yes; then
11062 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11063fi
11064
11065if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11066 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11067fi
11068if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11069 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11070fi
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11164$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11165hardcode_action=
11166if test -n "$hardcode_libdir_flag_spec" ||
11167 test -n "$runpath_var" ||
11168 test "X$hardcode_automatic" = "Xyes" ; then
11169
11170 # We can hardcode non-existent directories.
11171 if test "$hardcode_direct" != no &&
11172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11173 # have to relink, otherwise we might link with an installed library
11174 # when we should be linking with a yet-to-be-installed one
11175 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11176 test "$hardcode_minus_L" != no; then
11177 # Linking always hardcodes the temporary library directory.
11178 hardcode_action=relink
11179 else
11180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11181 hardcode_action=immediate
11182 fi
11183else
11184 # We cannot hardcode anything, or else we can only hardcode existing
11185 # directories.
11186 hardcode_action=unsupported
11187fi
11188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11189$as_echo "$hardcode_action" >&6; }
11190
11191if test "$hardcode_action" = relink ||
11192 test "$inherit_rpath" = yes; then
11193 # Fast installation is not supported
11194 enable_fast_install=no
11195elif test "$shlibpath_overrides_runpath" = yes ||
11196 test "$enable_shared" = no; then
11197 # Fast installation is not necessary
11198 enable_fast_install=needless
11199fi
11200
11201
11202
11203
11204
11205
11206 if test "x$enable_dlopen" != xyes; then
11207 enable_dlopen=unknown
11208 enable_dlopen_self=unknown
11209 enable_dlopen_self_static=unknown
11210else
11211 lt_cv_dlopen=no
11212 lt_cv_dlopen_libs=
11213
11214 case $host_os in
11215 beos*)
11216 lt_cv_dlopen="load_add_on"
11217 lt_cv_dlopen_libs=
11218 lt_cv_dlopen_self=yes
11219 ;;
11220
11221 mingw* | pw32* | cegcc*)
11222 lt_cv_dlopen="LoadLibrary"
11223 lt_cv_dlopen_libs=
11224 ;;
11225
11226 cygwin*)
11227 lt_cv_dlopen="dlopen"
11228 lt_cv_dlopen_libs=
11229 ;;
11230
11231 darwin*)
11232 # if libdl is installed we need to link against it
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11234$as_echo_n "checking for dlopen in -ldl... " >&6; }
73b6d7a9 11235if ${ac_cv_lib_dl_dlopen+:} false; then :
7a938933
ILT
11236 $as_echo_n "(cached) " >&6
11237else
11238 ac_check_lib_save_LIBS=$LIBS
11239LIBS="-ldl $LIBS"
11240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241/* end confdefs.h. */
11242
11243/* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
11246#ifdef __cplusplus
11247extern "C"
11248#endif
11249char dlopen ();
11250int
11251main ()
11252{
11253return dlopen ();
11254 ;
11255 return 0;
11256}
11257_ACEOF
11258if ac_fn_c_try_link "$LINENO"; then :
11259 ac_cv_lib_dl_dlopen=yes
11260else
11261 ac_cv_lib_dl_dlopen=no
11262fi
11263rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
11265LIBS=$ac_check_lib_save_LIBS
11266fi
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11268$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
73b6d7a9 11269if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7a938933
ILT
11270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11271else
11272
11273 lt_cv_dlopen="dyld"
11274 lt_cv_dlopen_libs=
11275 lt_cv_dlopen_self=yes
11276
11277fi
11278
11279 ;;
11280
11281 *)
11282 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
73b6d7a9 11283if test "x$ac_cv_func_shl_load" = xyes; then :
7a938933
ILT
11284 lt_cv_dlopen="shl_load"
11285else
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11287$as_echo_n "checking for shl_load in -ldld... " >&6; }
73b6d7a9 11288if ${ac_cv_lib_dld_shl_load+:} false; then :
7a938933
ILT
11289 $as_echo_n "(cached) " >&6
11290else
11291 ac_check_lib_save_LIBS=$LIBS
11292LIBS="-ldld $LIBS"
11293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294/* end confdefs.h. */
11295
11296/* Override any GCC internal prototype to avoid an error.
11297 Use char because int might match the return type of a GCC
11298 builtin and then its argument prototype would still apply. */
11299#ifdef __cplusplus
11300extern "C"
11301#endif
11302char shl_load ();
11303int
11304main ()
11305{
11306return shl_load ();
11307 ;
11308 return 0;
11309}
11310_ACEOF
11311if ac_fn_c_try_link "$LINENO"; then :
11312 ac_cv_lib_dld_shl_load=yes
11313else
11314 ac_cv_lib_dld_shl_load=no
11315fi
11316rm -f core conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext conftest.$ac_ext
11318LIBS=$ac_check_lib_save_LIBS
11319fi
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11321$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
73b6d7a9 11322if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7a938933
ILT
11323 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11324else
11325 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
73b6d7a9 11326if test "x$ac_cv_func_dlopen" = xyes; then :
7a938933
ILT
11327 lt_cv_dlopen="dlopen"
11328else
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11330$as_echo_n "checking for dlopen in -ldl... " >&6; }
73b6d7a9 11331if ${ac_cv_lib_dl_dlopen+:} false; then :
7a938933
ILT
11332 $as_echo_n "(cached) " >&6
11333else
11334 ac_check_lib_save_LIBS=$LIBS
11335LIBS="-ldl $LIBS"
11336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337/* end confdefs.h. */
11338
11339/* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11342#ifdef __cplusplus
11343extern "C"
11344#endif
11345char dlopen ();
11346int
11347main ()
11348{
11349return dlopen ();
11350 ;
11351 return 0;
11352}
11353_ACEOF
11354if ac_fn_c_try_link "$LINENO"; then :
11355 ac_cv_lib_dl_dlopen=yes
11356else
11357 ac_cv_lib_dl_dlopen=no
11358fi
11359rm -f core conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
11361LIBS=$ac_check_lib_save_LIBS
11362fi
11363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11364$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
73b6d7a9 11365if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7a938933
ILT
11366 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11367else
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11369$as_echo_n "checking for dlopen in -lsvld... " >&6; }
73b6d7a9 11370if ${ac_cv_lib_svld_dlopen+:} false; then :
7a938933
ILT
11371 $as_echo_n "(cached) " >&6
11372else
11373 ac_check_lib_save_LIBS=$LIBS
11374LIBS="-lsvld $LIBS"
11375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376/* end confdefs.h. */
11377
11378/* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11381#ifdef __cplusplus
11382extern "C"
11383#endif
11384char dlopen ();
11385int
11386main ()
11387{
11388return dlopen ();
11389 ;
11390 return 0;
11391}
11392_ACEOF
11393if ac_fn_c_try_link "$LINENO"; then :
11394 ac_cv_lib_svld_dlopen=yes
11395else
11396 ac_cv_lib_svld_dlopen=no
11397fi
11398rm -f core conftest.err conftest.$ac_objext \
11399 conftest$ac_exeext conftest.$ac_ext
11400LIBS=$ac_check_lib_save_LIBS
11401fi
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11403$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
73b6d7a9 11404if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7a938933
ILT
11405 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11406else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11408$as_echo_n "checking for dld_link in -ldld... " >&6; }
73b6d7a9 11409if ${ac_cv_lib_dld_dld_link+:} false; then :
7a938933
ILT
11410 $as_echo_n "(cached) " >&6
11411else
11412 ac_check_lib_save_LIBS=$LIBS
11413LIBS="-ldld $LIBS"
11414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415/* end confdefs.h. */
11416
11417/* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11420#ifdef __cplusplus
11421extern "C"
11422#endif
11423char dld_link ();
11424int
11425main ()
11426{
11427return dld_link ();
11428 ;
11429 return 0;
11430}
11431_ACEOF
11432if ac_fn_c_try_link "$LINENO"; then :
11433 ac_cv_lib_dld_dld_link=yes
11434else
11435 ac_cv_lib_dld_dld_link=no
11436fi
11437rm -f core conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11439LIBS=$ac_check_lib_save_LIBS
11440fi
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11442$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
73b6d7a9 11443if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7a938933
ILT
11444 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11445fi
11446
11447
11448fi
11449
11450
11451fi
11452
11453
11454fi
11455
11456
11457fi
11458
11459
11460fi
11461
11462 ;;
11463 esac
11464
11465 if test "x$lt_cv_dlopen" != xno; then
11466 enable_dlopen=yes
11467 else
11468 enable_dlopen=no
11469 fi
11470
11471 case $lt_cv_dlopen in
11472 dlopen)
11473 save_CPPFLAGS="$CPPFLAGS"
11474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11475
11476 save_LDFLAGS="$LDFLAGS"
11477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11478
11479 save_LIBS="$LIBS"
11480 LIBS="$lt_cv_dlopen_libs $LIBS"
11481
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11483$as_echo_n "checking whether a program can dlopen itself... " >&6; }
73b6d7a9 11484if ${lt_cv_dlopen_self+:} false; then :
7a938933
ILT
11485 $as_echo_n "(cached) " >&6
11486else
11487 if test "$cross_compiling" = yes; then :
11488 lt_cv_dlopen_self=cross
11489else
11490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11491 lt_status=$lt_dlunknown
11492 cat > conftest.$ac_ext <<_LT_EOF
ba386bea 11493#line 11493 "configure"
7a938933
ILT
11494#include "confdefs.h"
11495
11496#if HAVE_DLFCN_H
11497#include <dlfcn.h>
11498#endif
11499
11500#include <stdio.h>
11501
11502#ifdef RTLD_GLOBAL
11503# define LT_DLGLOBAL RTLD_GLOBAL
11504#else
11505# ifdef DL_GLOBAL
11506# define LT_DLGLOBAL DL_GLOBAL
11507# else
11508# define LT_DLGLOBAL 0
11509# endif
11510#endif
11511
11512/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11513 find out it does not work in some platform. */
11514#ifndef LT_DLLAZY_OR_NOW
11515# ifdef RTLD_LAZY
11516# define LT_DLLAZY_OR_NOW RTLD_LAZY
11517# else
11518# ifdef DL_LAZY
11519# define LT_DLLAZY_OR_NOW DL_LAZY
11520# else
11521# ifdef RTLD_NOW
11522# define LT_DLLAZY_OR_NOW RTLD_NOW
11523# else
11524# ifdef DL_NOW
11525# define LT_DLLAZY_OR_NOW DL_NOW
11526# else
11527# define LT_DLLAZY_OR_NOW 0
11528# endif
11529# endif
11530# endif
11531# endif
11532#endif
11533
11534/* When -fvisbility=hidden is used, assume the code has been annotated
11535 correspondingly for the symbols needed. */
11536#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11537void fnord () __attribute__((visibility("default")));
11538#endif
11539
11540void fnord () { int i=42; }
11541int main ()
11542{
11543 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11544 int status = $lt_dlunknown;
11545
11546 if (self)
11547 {
11548 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11549 else
11550 {
11551 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11552 else puts (dlerror ());
11553 }
11554 /* dlclose (self); */
11555 }
11556 else
11557 puts (dlerror ());
11558
11559 return status;
11560}
11561_LT_EOF
11562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11563 (eval $ac_link) 2>&5
11564 ac_status=$?
11565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11566 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11567 (./conftest; exit; ) >&5 2>/dev/null
11568 lt_status=$?
11569 case x$lt_status in
11570 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11571 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11572 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11573 esac
11574 else :
11575 # compilation failed
11576 lt_cv_dlopen_self=no
11577 fi
11578fi
11579rm -fr conftest*
11580
11581
11582fi
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11584$as_echo "$lt_cv_dlopen_self" >&6; }
11585
11586 if test "x$lt_cv_dlopen_self" = xyes; then
11587 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11589$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
73b6d7a9 11590if ${lt_cv_dlopen_self_static+:} false; then :
7a938933
ILT
11591 $as_echo_n "(cached) " >&6
11592else
11593 if test "$cross_compiling" = yes; then :
11594 lt_cv_dlopen_self_static=cross
11595else
11596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11597 lt_status=$lt_dlunknown
11598 cat > conftest.$ac_ext <<_LT_EOF
ba386bea 11599#line 11599 "configure"
7a938933
ILT
11600#include "confdefs.h"
11601
11602#if HAVE_DLFCN_H
11603#include <dlfcn.h>
11604#endif
11605
11606#include <stdio.h>
11607
11608#ifdef RTLD_GLOBAL
11609# define LT_DLGLOBAL RTLD_GLOBAL
11610#else
11611# ifdef DL_GLOBAL
11612# define LT_DLGLOBAL DL_GLOBAL
11613# else
11614# define LT_DLGLOBAL 0
11615# endif
11616#endif
11617
11618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11619 find out it does not work in some platform. */
11620#ifndef LT_DLLAZY_OR_NOW
11621# ifdef RTLD_LAZY
11622# define LT_DLLAZY_OR_NOW RTLD_LAZY
11623# else
11624# ifdef DL_LAZY
11625# define LT_DLLAZY_OR_NOW DL_LAZY
11626# else
11627# ifdef RTLD_NOW
11628# define LT_DLLAZY_OR_NOW RTLD_NOW
11629# else
11630# ifdef DL_NOW
11631# define LT_DLLAZY_OR_NOW DL_NOW
11632# else
11633# define LT_DLLAZY_OR_NOW 0
11634# endif
11635# endif
11636# endif
11637# endif
11638#endif
11639
11640/* When -fvisbility=hidden is used, assume the code has been annotated
11641 correspondingly for the symbols needed. */
11642#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11643void fnord () __attribute__((visibility("default")));
11644#endif
11645
11646void fnord () { int i=42; }
11647int main ()
11648{
11649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11650 int status = $lt_dlunknown;
11651
11652 if (self)
11653 {
11654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11655 else
11656 {
11657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11658 else puts (dlerror ());
11659 }
11660 /* dlclose (self); */
11661 }
11662 else
11663 puts (dlerror ());
11664
11665 return status;
11666}
11667_LT_EOF
11668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11669 (eval $ac_link) 2>&5
11670 ac_status=$?
11671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11673 (./conftest; exit; ) >&5 2>/dev/null
11674 lt_status=$?
11675 case x$lt_status in
11676 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11677 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11678 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11679 esac
11680 else :
11681 # compilation failed
11682 lt_cv_dlopen_self_static=no
11683 fi
11684fi
11685rm -fr conftest*
11686
11687
11688fi
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11690$as_echo "$lt_cv_dlopen_self_static" >&6; }
11691 fi
11692
11693 CPPFLAGS="$save_CPPFLAGS"
11694 LDFLAGS="$save_LDFLAGS"
11695 LIBS="$save_LIBS"
11696 ;;
11697 esac
11698
11699 case $lt_cv_dlopen_self in
11700 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11701 *) enable_dlopen_self=unknown ;;
11702 esac
11703
11704 case $lt_cv_dlopen_self_static in
11705 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11706 *) enable_dlopen_self_static=unknown ;;
11707 esac
11708fi
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726striplib=
11727old_striplib=
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11729$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11730if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11731 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11732 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11734$as_echo "yes" >&6; }
11735else
11736# FIXME - insert some real tests, host_os isn't really good enough
11737 case $host_os in
11738 darwin*)
11739 if test -n "$STRIP" ; then
11740 striplib="$STRIP -x"
11741 old_striplib="$STRIP -S"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743$as_echo "yes" >&6; }
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746$as_echo "no" >&6; }
11747 fi
11748 ;;
11749 *)
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751$as_echo "no" >&6; }
11752 ;;
11753 esac
11754fi
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767 # Report which library types will actually be built
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11769$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11771$as_echo "$can_build_shared" >&6; }
11772
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11774$as_echo_n "checking whether to build shared libraries... " >&6; }
11775 test "$can_build_shared" = "no" && enable_shared=no
11776
11777 # On AIX, shared libraries and static libraries use the same namespace, and
11778 # are all built from PIC.
11779 case $host_os in
11780 aix3*)
11781 test "$enable_shared" = yes && enable_static=no
11782 if test -n "$RANLIB"; then
11783 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11784 postinstall_cmds='$RANLIB $lib'
11785 fi
11786 ;;
11787
11788 aix[4-9]*)
11789 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11790 test "$enable_shared" = yes && enable_static=no
11791 fi
11792 ;;
11793 esac
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11795$as_echo "$enable_shared" >&6; }
11796
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11798$as_echo_n "checking whether to build static libraries... " >&6; }
11799 # Make sure either enable_shared or enable_static is yes.
11800 test "$enable_shared" = yes || enable_static=yes
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11802$as_echo "$enable_static" >&6; }
11803
11804
11805
11806
11807fi
11808ac_ext=c
11809ac_cpp='$CPP $CPPFLAGS'
11810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11812ac_compiler_gnu=$ac_cv_c_compiler_gnu
11813
11814CC="$lt_save_CC"
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828# Source file extension for Go test sources.
11829ac_ext=go
11830
11831# Object file extension for compiled Go test sources.
11832objext=o
11833objext_GO=$objext
11834
11835# Code to be used in simple compile tests
11836lt_simple_compile_test_code="package main; func main() { }"
11837
11838# Code to be used in simple link tests
11839lt_simple_link_test_code='package main; func main() { }'
11840
11841# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11842
11843
11844
11845
11846
11847
11848# If no C compiler was specified, use CC.
11849LTCC=${LTCC-"$CC"}
11850
11851# If no C compiler flags were specified, use CFLAGS.
11852LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11853
11854# Allow CC to be a program name with arguments.
11855compiler=$CC
11856
11857
11858# save warnings/boilerplate of simple test code
11859ac_outfile=conftest.$ac_objext
11860echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11861eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11862_lt_compiler_boilerplate=`cat conftest.err`
11863$RM conftest*
11864
11865ac_outfile=conftest.$ac_objext
11866echo "$lt_simple_link_test_code" >conftest.$ac_ext
11867eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11868_lt_linker_boilerplate=`cat conftest.err`
11869$RM -r conftest*
11870
11871
11872# Allow CC to be a program name with arguments.
11873lt_save_CC="$CC"
11874lt_save_GCC="$GCC"
11875GCC=yes
11876CC=${GOC-"gccgo"}
11877compiler=$CC
11878compiler_GO=$CC
11879LD_GO="$LD"
11880for cc_temp in $compiler""; do
11881 case $cc_temp in
11882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11884 \-*) ;;
11885 *) break;;
11886 esac
11887done
11888cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11889
11890
11891# Go did not exist at the time GCC didn't implicitly link libc in.
11892archive_cmds_need_lc_GO=no
11893
11894old_archive_cmds_GO=$old_archive_cmds
11895
11896## CAVEAT EMPTOR:
11897## There is no encapsulation within the following macros, do not change
11898## the running order or otherwise move them around unless you know exactly
11899## what you are doing...
11900if test -n "$compiler"; then
11901
11902lt_prog_compiler_no_builtin_flag_GO=
11903
11904if test "$GCC" = yes; then
11905 case $cc_basename in
11906 nvcc*)
11907 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11908 *)
11909 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11910 esac
11911
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11913$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
73b6d7a9 11914if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7a938933
ILT
11915 $as_echo_n "(cached) " >&6
11916else
11917 lt_cv_prog_compiler_rtti_exceptions=no
11918 ac_outfile=conftest.$ac_objext
11919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11920 lt_compiler_flag="-fno-rtti -fno-exceptions"
11921 # Insert the option either (1) after the last *FLAGS variable, or
11922 # (2) before a word containing "conftest.", or (3) at the end.
11923 # Note that $ac_compile itself does not contain backslashes and begins
11924 # with a dollar sign (not a hyphen), so the echo should work correctly.
11925 # The option is referenced via a variable to avoid confusing sed.
11926 lt_compile=`echo "$ac_compile" | $SED \
11927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11929 -e 's:$: $lt_compiler_flag:'`
11930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11931 (eval "$lt_compile" 2>conftest.err)
11932 ac_status=$?
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 if (exit $ac_status) && test -s "$ac_outfile"; then
11936 # The compiler can only warn and ignore the option if not recognized
11937 # So say no if there are warnings other than the usual output.
11938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11941 lt_cv_prog_compiler_rtti_exceptions=yes
11942 fi
11943 fi
11944 $RM conftest*
11945
11946fi
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11948$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11949
11950if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11951 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11952else
11953 :
11954fi
11955
11956fi
11957
11958
11959
11960 lt_prog_compiler_wl_GO=
11961lt_prog_compiler_pic_GO=
11962lt_prog_compiler_static_GO=
11963
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11965$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11966
11967 if test "$GCC" = yes; then
11968 lt_prog_compiler_wl_GO='-Wl,'
11969 lt_prog_compiler_static_GO='-static'
11970
11971 case $host_os in
11972 aix*)
11973 # All AIX code is PIC.
11974 if test "$host_cpu" = ia64; then
11975 # AIX 5 now supports IA64 processor
11976 lt_prog_compiler_static_GO='-Bstatic'
11977 fi
327a26a3 11978 lt_prog_compiler_pic_GO='-fPIC'
7a938933
ILT
11979 ;;
11980
11981 amigaos*)
11982 case $host_cpu in
11983 powerpc)
11984 # see comment about AmigaOS4 .so support
11985 lt_prog_compiler_pic_GO='-fPIC'
11986 ;;
11987 m68k)
11988 # FIXME: we need at least 68020 code to build shared libraries, but
11989 # adding the `-m68020' flag to GCC prevents building anything better,
11990 # like `-m68040'.
11991 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11992 ;;
11993 esac
11994 ;;
11995
11996 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11997 # PIC is the default for these OSes.
11998 ;;
11999
12000 mingw* | cygwin* | pw32* | os2* | cegcc*)
12001 # This hack is so that the source file can tell whether it is being
12002 # built for inclusion in a dll (and should export symbols for example).
12003 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12004 # (--disable-auto-import) libraries
12005 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12006 ;;
12007
12008 darwin* | rhapsody*)
12009 # PIC is the default on this platform
12010 # Common symbols not allowed in MH_DYLIB files
12011 lt_prog_compiler_pic_GO='-fno-common'
12012 ;;
12013
12014 haiku*)
12015 # PIC is the default for Haiku.
12016 # The "-static" flag exists, but is broken.
12017 lt_prog_compiler_static_GO=
12018 ;;
12019
12020 hpux*)
12021 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12022 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12023 # sets the default TLS model and affects inlining.
12024 case $host_cpu in
12025 hppa*64*)
12026 # +Z the default
12027 ;;
12028 *)
12029 lt_prog_compiler_pic_GO='-fPIC'
12030 ;;
12031 esac
12032 ;;
12033
12034 interix[3-9]*)
12035 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12036 # Instead, we relocate shared libraries at runtime.
12037 ;;
12038
12039 msdosdjgpp*)
12040 # Just because we use GCC doesn't mean we suddenly get shared libraries
12041 # on systems that don't support them.
12042 lt_prog_compiler_can_build_shared_GO=no
12043 enable_shared=no
12044 ;;
12045
12046 *nto* | *qnx*)
12047 # QNX uses GNU C++, but need to define -shared option too, otherwise
12048 # it will coredump.
12049 lt_prog_compiler_pic_GO='-fPIC -shared'
12050 ;;
12051
12052 sysv4*MP*)
12053 if test -d /usr/nec; then
12054 lt_prog_compiler_pic_GO=-Kconform_pic
12055 fi
12056 ;;
12057
12058 *)
12059 lt_prog_compiler_pic_GO='-fPIC'
12060 ;;
12061 esac
12062
12063 case $cc_basename in
12064 nvcc*) # Cuda Compiler Driver 2.2
12065 lt_prog_compiler_wl_GO='-Xlinker '
12066 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
12067 ;;
12068 esac
12069 else
12070 # PORTME Check for flag to pass linker flags through the system compiler.
12071 case $host_os in
12072 aix*)
12073 lt_prog_compiler_wl_GO='-Wl,'
12074 if test "$host_cpu" = ia64; then
12075 # AIX 5 now supports IA64 processor
12076 lt_prog_compiler_static_GO='-Bstatic'
12077 else
12078 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
12079 fi
12080 ;;
12081
12082 mingw* | cygwin* | pw32* | os2* | cegcc*)
12083 # This hack is so that the source file can tell whether it is being
12084 # built for inclusion in a dll (and should export symbols for example).
12085 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12086 ;;
12087
12088 hpux9* | hpux10* | hpux11*)
12089 lt_prog_compiler_wl_GO='-Wl,'
12090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12091 # not for PA HP-UX.
12092 case $host_cpu in
12093 hppa*64*|ia64*)
12094 # +Z the default
12095 ;;
12096 *)
12097 lt_prog_compiler_pic_GO='+Z'
12098 ;;
12099 esac
12100 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12101 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
12102 ;;
12103
12104 irix5* | irix6* | nonstopux*)
12105 lt_prog_compiler_wl_GO='-Wl,'
12106 # PIC (with -KPIC) is the default.
12107 lt_prog_compiler_static_GO='-non_shared'
12108 ;;
12109
12110 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12111 case $cc_basename in
12112 # old Intel for x86_64 which still supported -KPIC.
12113 ecc*)
12114 lt_prog_compiler_wl_GO='-Wl,'
12115 lt_prog_compiler_pic_GO='-KPIC'
12116 lt_prog_compiler_static_GO='-static'
12117 ;;
12118 # icc used to be incompatible with GCC.
12119 # ICC 10 doesn't accept -KPIC any more.
12120 icc* | ifort*)
12121 lt_prog_compiler_wl_GO='-Wl,'
12122 lt_prog_compiler_pic_GO='-fPIC'
12123 lt_prog_compiler_static_GO='-static'
12124 ;;
12125 # Lahey Fortran 8.1.
12126 lf95*)
12127 lt_prog_compiler_wl_GO='-Wl,'
12128 lt_prog_compiler_pic_GO='--shared'
12129 lt_prog_compiler_static_GO='--static'
12130 ;;
12131 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12132 # Portland Group compilers (*not* the Pentium gcc compiler,
12133 # which looks to be a dead project)
12134 lt_prog_compiler_wl_GO='-Wl,'
12135 lt_prog_compiler_pic_GO='-fpic'
12136 lt_prog_compiler_static_GO='-Bstatic'
12137 ;;
12138 ccc*)
12139 lt_prog_compiler_wl_GO='-Wl,'
12140 # All Alpha code is PIC.
12141 lt_prog_compiler_static_GO='-non_shared'
12142 ;;
12143 xl* | bgxl* | bgf* | mpixl*)
12144 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12145 lt_prog_compiler_wl_GO='-Wl,'
12146 lt_prog_compiler_pic_GO='-qpic'
12147 lt_prog_compiler_static_GO='-qstaticlink'
12148 ;;
12149 *)
12150 case `$CC -V 2>&1 | sed 5q` in
12151 *Sun\ F* | *Sun*Fortran*)
12152 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12153 lt_prog_compiler_pic_GO='-KPIC'
12154 lt_prog_compiler_static_GO='-Bstatic'
12155 lt_prog_compiler_wl_GO=''
12156 ;;
12157 *Sun\ C*)
12158 # Sun C 5.9
12159 lt_prog_compiler_pic_GO='-KPIC'
12160 lt_prog_compiler_static_GO='-Bstatic'
12161 lt_prog_compiler_wl_GO='-Wl,'
12162 ;;
12163 esac
12164 ;;
12165 esac
12166 ;;
12167
12168 newsos6)
12169 lt_prog_compiler_pic_GO='-KPIC'
12170 lt_prog_compiler_static_GO='-Bstatic'
12171 ;;
12172
12173 *nto* | *qnx*)
12174 # QNX uses GNU C++, but need to define -shared option too, otherwise
12175 # it will coredump.
12176 lt_prog_compiler_pic_GO='-fPIC -shared'
12177 ;;
12178
12179 osf3* | osf4* | osf5*)
12180 lt_prog_compiler_wl_GO='-Wl,'
12181 # All OSF/1 code is PIC.
12182 lt_prog_compiler_static_GO='-non_shared'
12183 ;;
12184
12185 rdos*)
12186 lt_prog_compiler_static_GO='-non_shared'
12187 ;;
12188
12189 solaris*)
12190 lt_prog_compiler_pic_GO='-KPIC'
12191 lt_prog_compiler_static_GO='-Bstatic'
12192 case $cc_basename in
12193 f77* | f90* | f95*)
12194 lt_prog_compiler_wl_GO='-Qoption ld ';;
12195 *)
12196 lt_prog_compiler_wl_GO='-Wl,';;
12197 esac
12198 ;;
12199
12200 sunos4*)
12201 lt_prog_compiler_wl_GO='-Qoption ld '
12202 lt_prog_compiler_pic_GO='-PIC'
12203 lt_prog_compiler_static_GO='-Bstatic'
12204 ;;
12205
12206 sysv4 | sysv4.2uw2* | sysv4.3*)
12207 lt_prog_compiler_wl_GO='-Wl,'
12208 lt_prog_compiler_pic_GO='-KPIC'
12209 lt_prog_compiler_static_GO='-Bstatic'
12210 ;;
12211
12212 sysv4*MP*)
12213 if test -d /usr/nec ;then
12214 lt_prog_compiler_pic_GO='-Kconform_pic'
12215 lt_prog_compiler_static_GO='-Bstatic'
12216 fi
12217 ;;
12218
12219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12220 lt_prog_compiler_wl_GO='-Wl,'
12221 lt_prog_compiler_pic_GO='-KPIC'
12222 lt_prog_compiler_static_GO='-Bstatic'
12223 ;;
12224
12225 unicos*)
12226 lt_prog_compiler_wl_GO='-Wl,'
12227 lt_prog_compiler_can_build_shared_GO=no
12228 ;;
12229
12230 uts4*)
12231 lt_prog_compiler_pic_GO='-pic'
12232 lt_prog_compiler_static_GO='-Bstatic'
12233 ;;
12234
12235 *)
12236 lt_prog_compiler_can_build_shared_GO=no
12237 ;;
12238 esac
12239 fi
12240
12241case $host_os in
12242 # For platforms which do not support PIC, -DPIC is meaningless:
12243 *djgpp*)
12244 lt_prog_compiler_pic_GO=
12245 ;;
12246 *)
12247 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12248 ;;
12249esac
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12251$as_echo "$lt_prog_compiler_pic_GO" >&6; }
12252
12253
12254
12255#
12256# Check to make sure the PIC flag actually works.
12257#
12258if test -n "$lt_prog_compiler_pic_GO"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12260$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
73b6d7a9 12261if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
7a938933
ILT
12262 $as_echo_n "(cached) " >&6
12263else
12264 lt_cv_prog_compiler_pic_works_GO=no
12265 ac_outfile=conftest.$ac_objext
12266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12267 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12268 # Insert the option either (1) after the last *FLAGS variable, or
12269 # (2) before a word containing "conftest.", or (3) at the end.
12270 # Note that $ac_compile itself does not contain backslashes and begins
12271 # with a dollar sign (not a hyphen), so the echo should work correctly.
12272 # The option is referenced via a variable to avoid confusing sed.
12273 lt_compile=`echo "$ac_compile" | $SED \
12274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12276 -e 's:$: $lt_compiler_flag:'`
12277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12278 (eval "$lt_compile" 2>conftest.err)
12279 ac_status=$?
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 if (exit $ac_status) && test -s "$ac_outfile"; then
12283 # The compiler can only warn and ignore the option if not recognized
12284 # So say no if there are warnings other than the usual output.
12285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12288 lt_cv_prog_compiler_pic_works_GO=yes
12289 fi
12290 fi
12291 $RM conftest*
12292
12293fi
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12295$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12296
12297if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12298 case $lt_prog_compiler_pic_GO in
12299 "" | " "*) ;;
12300 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12301 esac
12302else
12303 lt_prog_compiler_pic_GO=
12304 lt_prog_compiler_can_build_shared_GO=no
12305fi
12306
12307fi
12308
12309
12310
12311#
12312# Check to make sure the static flag actually works.
12313#
12314wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12316$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
73b6d7a9 12317if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
7a938933
ILT
12318 $as_echo_n "(cached) " >&6
12319else
12320 lt_cv_prog_compiler_static_works_GO=no
12321 save_LDFLAGS="$LDFLAGS"
12322 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12323 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12325 # The linker can only warn and ignore the option if not recognized
12326 # So say no if there are warnings
12327 if test -s conftest.err; then
12328 # Append any errors to the config.log.
12329 cat conftest.err 1>&5
12330 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12332 if diff conftest.exp conftest.er2 >/dev/null; then
12333 lt_cv_prog_compiler_static_works_GO=yes
12334 fi
12335 else
12336 lt_cv_prog_compiler_static_works_GO=yes
12337 fi
12338 fi
12339 $RM -r conftest*
12340 LDFLAGS="$save_LDFLAGS"
12341
12342fi
12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12344$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12345
12346if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12347 :
12348else
12349 lt_prog_compiler_static_GO=
12350fi
12351
12352
12353
12354
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12356$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
73b6d7a9 12357if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
7a938933
ILT
12358 $as_echo_n "(cached) " >&6
12359else
12360 lt_cv_prog_compiler_c_o_GO=no
12361 $RM -r conftest 2>/dev/null
12362 mkdir conftest
12363 cd conftest
12364 mkdir out
12365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12366
12367 lt_compiler_flag="-o out/conftest2.$ac_objext"
12368 # Insert the option either (1) after the last *FLAGS variable, or
12369 # (2) before a word containing "conftest.", or (3) at the end.
12370 # Note that $ac_compile itself does not contain backslashes and begins
12371 # with a dollar sign (not a hyphen), so the echo should work correctly.
12372 lt_compile=`echo "$ac_compile" | $SED \
12373 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12375 -e 's:$: $lt_compiler_flag:'`
12376 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12377 (eval "$lt_compile" 2>out/conftest.err)
12378 ac_status=$?
12379 cat out/conftest.err >&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12382 then
12383 # The compiler can only warn and ignore the option if not recognized
12384 # So say no if there are warnings
12385 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12386 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12387 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12388 lt_cv_prog_compiler_c_o_GO=yes
12389 fi
12390 fi
12391 chmod u+w . 2>&5
12392 $RM conftest*
12393 # SGI C++ compiler will create directory out/ii_files/ for
12394 # template instantiation
12395 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12396 $RM out/* && rmdir out
12397 cd ..
12398 $RM -r conftest
12399 $RM conftest*
12400
12401fi
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12403$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12404
12405
12406
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12408$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
73b6d7a9 12409if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
7a938933
ILT
12410 $as_echo_n "(cached) " >&6
12411else
12412 lt_cv_prog_compiler_c_o_GO=no
12413 $RM -r conftest 2>/dev/null
12414 mkdir conftest
12415 cd conftest
12416 mkdir out
12417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12418
12419 lt_compiler_flag="-o out/conftest2.$ac_objext"
12420 # Insert the option either (1) after the last *FLAGS variable, or
12421 # (2) before a word containing "conftest.", or (3) at the end.
12422 # Note that $ac_compile itself does not contain backslashes and begins
12423 # with a dollar sign (not a hyphen), so the echo should work correctly.
12424 lt_compile=`echo "$ac_compile" | $SED \
12425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12427 -e 's:$: $lt_compiler_flag:'`
12428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12429 (eval "$lt_compile" 2>out/conftest.err)
12430 ac_status=$?
12431 cat out/conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12434 then
12435 # The compiler can only warn and ignore the option if not recognized
12436 # So say no if there are warnings
12437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12438 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12439 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12440 lt_cv_prog_compiler_c_o_GO=yes
12441 fi
12442 fi
12443 chmod u+w . 2>&5
12444 $RM conftest*
12445 # SGI C++ compiler will create directory out/ii_files/ for
12446 # template instantiation
12447 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12448 $RM out/* && rmdir out
12449 cd ..
12450 $RM -r conftest
12451 $RM conftest*
12452
12453fi
12454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12455$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12456
12457
12458
12459
12460hard_links="nottested"
12461if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12462 # do not overwrite the value of need_locks provided by the user
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12464$as_echo_n "checking if we can lock with hard links... " >&6; }
12465 hard_links=yes
12466 $RM conftest*
12467 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12468 touch conftest.a
12469 ln conftest.a conftest.b 2>&5 || hard_links=no
12470 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12472$as_echo "$hard_links" >&6; }
12473 if test "$hard_links" = no; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12475$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12476 need_locks=warn
12477 fi
12478else
12479 need_locks=no
12480fi
12481
12482
12483
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12485$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12486
12487 runpath_var=
12488 allow_undefined_flag_GO=
12489 always_export_symbols_GO=no
12490 archive_cmds_GO=
12491 archive_expsym_cmds_GO=
12492 compiler_needs_object_GO=no
12493 enable_shared_with_static_runtimes_GO=no
12494 export_dynamic_flag_spec_GO=
12495 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12496 hardcode_automatic_GO=no
12497 hardcode_direct_GO=no
12498 hardcode_direct_absolute_GO=no
12499 hardcode_libdir_flag_spec_GO=
12500 hardcode_libdir_flag_spec_ld_GO=
12501 hardcode_libdir_separator_GO=
12502 hardcode_minus_L_GO=no
12503 hardcode_shlibpath_var_GO=unsupported
12504 inherit_rpath_GO=no
12505 link_all_deplibs_GO=unknown
12506 module_cmds_GO=
12507 module_expsym_cmds_GO=
12508 old_archive_from_new_cmds_GO=
12509 old_archive_from_expsyms_cmds_GO=
12510 thread_safe_flag_spec_GO=
12511 whole_archive_flag_spec_GO=
12512 # include_expsyms should be a list of space-separated symbols to be *always*
12513 # included in the symbol list
12514 include_expsyms_GO=
12515 # exclude_expsyms can be an extended regexp of symbols to exclude
12516 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12517 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12518 # as well as any symbol that contains `d'.
12519 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12520 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12521 # platforms (ab)use it in PIC code, but their linkers get confused if
12522 # the symbol is explicitly referenced. Since portable code cannot
12523 # rely on this symbol name, it's probably fine to never include it in
12524 # preloaded symbol tables.
12525 # Exclude shared library initialization/finalization symbols.
12526 extract_expsyms_cmds=
12527
12528 case $host_os in
12529 cygwin* | mingw* | pw32* | cegcc*)
12530 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12531 # When not using gcc, we currently assume that we are using
12532 # Microsoft Visual C++.
12533 if test "$GCC" != yes; then
12534 with_gnu_ld=no
12535 fi
12536 ;;
12537 interix*)
12538 # we just hope/assume this is gcc and not c89 (= MSVC++)
12539 with_gnu_ld=yes
12540 ;;
12541 openbsd*)
12542 with_gnu_ld=no
12543 ;;
12544 esac
12545
12546 ld_shlibs_GO=yes
12547
12548 # On some targets, GNU ld is compatible enough with the native linker
12549 # that we're better off using the native interface for both.
12550 lt_use_gnu_ld_interface=no
12551 if test "$with_gnu_ld" = yes; then
12552 case $host_os in
12553 aix*)
12554 # The AIX port of GNU ld has always aspired to compatibility
12555 # with the native linker. However, as the warning in the GNU ld
12556 # block says, versions before 2.19.5* couldn't really create working
12557 # shared libraries, regardless of the interface used.
12558 case `$LD -v 2>&1` in
12559 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12560 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12561 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12562 *)
12563 lt_use_gnu_ld_interface=yes
12564 ;;
12565 esac
12566 ;;
12567 *)
12568 lt_use_gnu_ld_interface=yes
12569 ;;
12570 esac
12571 fi
12572
12573 if test "$lt_use_gnu_ld_interface" = yes; then
12574 # If archive_cmds runs LD, not CC, wlarc should be empty
12575 wlarc='${wl}'
12576
12577 # Set some defaults for GNU ld with shared library support. These
12578 # are reset later if shared libraries are not supported. Putting them
12579 # here allows them to be overridden if necessary.
12580 runpath_var=LD_RUN_PATH
12581 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12582 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12583 # ancient GNU ld didn't support --whole-archive et. al.
12584 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12585 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12586 else
12587 whole_archive_flag_spec_GO=
12588 fi
12589 supports_anon_versioning=no
12590 case `$LD -v 2>&1` in
12591 *GNU\ gold*) supports_anon_versioning=yes ;;
12592 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12593 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12594 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12595 *\ 2.11.*) ;; # other 2.11 versions
12596 *) supports_anon_versioning=yes ;;
12597 esac
12598
12599 # See if GNU ld supports shared libraries.
12600 case $host_os in
12601 aix[3-9]*)
12602 # On AIX/PPC, the GNU linker is very broken
12603 if test "$host_cpu" != ia64; then
12604 ld_shlibs_GO=no
12605 cat <<_LT_EOF 1>&2
12606
12607*** Warning: the GNU linker, at least up to release 2.19, is reported
12608*** to be unable to reliably create shared libraries on AIX.
12609*** Therefore, libtool is disabling shared libraries support. If you
12610*** really care for shared libraries, you may want to install binutils
12611*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12612*** You will then need to restart the configuration process.
12613
12614_LT_EOF
12615 fi
12616 ;;
12617
12618 amigaos*)
12619 case $host_cpu in
12620 powerpc)
12621 # see comment about AmigaOS4 .so support
12622 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12623 archive_expsym_cmds_GO=''
12624 ;;
12625 m68k)
12626 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)'
12627 hardcode_libdir_flag_spec_GO='-L$libdir'
12628 hardcode_minus_L_GO=yes
12629 ;;
12630 esac
12631 ;;
12632
12633 beos*)
12634 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12635 allow_undefined_flag_GO=unsupported
12636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12637 # support --undefined. This deserves some investigation. FIXME
12638 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12639 else
12640 ld_shlibs_GO=no
12641 fi
12642 ;;
12643
12644 cygwin* | mingw* | pw32* | cegcc*)
12645 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12646 # as there is no search path for DLLs.
12647 hardcode_libdir_flag_spec_GO='-L$libdir'
12648 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12649 allow_undefined_flag_GO=unsupported
12650 always_export_symbols_GO=no
12651 enable_shared_with_static_runtimes_GO=yes
12652 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12653
12654 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12655 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12656 # If the export-symbols file already is a .def file (1st line
12657 # is EXPORTS), use it as is; otherwise, prepend...
12658 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12659 cp $export_symbols $output_objdir/$soname.def;
12660 else
12661 echo EXPORTS > $output_objdir/$soname.def;
12662 cat $export_symbols >> $output_objdir/$soname.def;
12663 fi~
12664 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12665 else
12666 ld_shlibs_GO=no
12667 fi
12668 ;;
12669
12670 haiku*)
12671 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12672 link_all_deplibs_GO=yes
12673 ;;
12674
12675 interix[3-9]*)
12676 hardcode_direct_GO=no
12677 hardcode_shlibpath_var_GO=no
12678 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12679 export_dynamic_flag_spec_GO='${wl}-E'
12680 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12681 # Instead, shared libraries are loaded at an image base (0x10000000 by
12682 # default) and relocated if they conflict, which is a slow very memory
12683 # consuming and fragmenting process. To avoid this, we pick a random,
12684 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12685 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12686 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'
12687 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'
12688 ;;
12689
12690 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12691 tmp_diet=no
12692 if test "$host_os" = linux-dietlibc; then
12693 case $cc_basename in
12694 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12695 esac
12696 fi
12697 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12698 && test "$tmp_diet" = no
12699 then
12700 tmp_addflag=
12701 tmp_sharedflag='-shared'
12702 case $cc_basename,$host_cpu in
12703 pgcc*) # Portland Group C compiler
12704 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'
12705 tmp_addflag=' $pic_flag'
12706 ;;
12707 pgf77* | pgf90* | pgf95* | pgfortran*)
12708 # Portland Group f77 and f90 compilers
12709 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'
12710 tmp_addflag=' $pic_flag -Mnomain' ;;
12711 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12712 tmp_addflag=' -i_dynamic' ;;
12713 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12714 tmp_addflag=' -i_dynamic -nofor_main' ;;
12715 ifc* | ifort*) # Intel Fortran compiler
12716 tmp_addflag=' -nofor_main' ;;
12717 lf95*) # Lahey Fortran 8.1
12718 whole_archive_flag_spec_GO=
12719 tmp_sharedflag='--shared' ;;
12720 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12721 tmp_sharedflag='-qmkshrobj'
12722 tmp_addflag= ;;
12723 nvcc*) # Cuda Compiler Driver 2.2
12724 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'
12725 compiler_needs_object_GO=yes
12726 ;;
12727 esac
12728 case `$CC -V 2>&1 | sed 5q` in
12729 *Sun\ C*) # Sun C 5.9
12730 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'
12731 compiler_needs_object_GO=yes
12732 tmp_sharedflag='-G' ;;
12733 *Sun\ F*) # Sun Fortran 8.3
12734 tmp_sharedflag='-G' ;;
12735 esac
12736 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737
12738 if test "x$supports_anon_versioning" = xyes; then
12739 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12740 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12741 echo "local: *; };" >> $output_objdir/$libname.ver~
12742 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12743 fi
12744
12745 case $cc_basename in
12746 xlf* | bgf* | bgxlf* | mpixlf*)
12747 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12748 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12749 hardcode_libdir_flag_spec_GO=
12750 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12751 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12752 if test "x$supports_anon_versioning" = xyes; then
12753 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12755 echo "local: *; };" >> $output_objdir/$libname.ver~
12756 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12757 fi
12758 ;;
12759 esac
12760 else
12761 ld_shlibs_GO=no
12762 fi
12763 ;;
12764
12765 netbsd*)
12766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12767 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12768 wlarc=
12769 else
12770 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12772 fi
12773 ;;
12774
12775 solaris*)
12776 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12777 ld_shlibs_GO=no
12778 cat <<_LT_EOF 1>&2
12779
12780*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12781*** create shared libraries on Solaris systems. Therefore, libtool
12782*** is disabling shared libraries support. We urge you to upgrade GNU
12783*** binutils to release 2.9.1 or newer. Another option is to modify
12784*** your PATH or compiler configuration so that the native linker is
12785*** used, and then restart.
12786
12787_LT_EOF
12788 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12789 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12791 else
12792 ld_shlibs_GO=no
12793 fi
12794 ;;
12795
12796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12797 case `$LD -v 2>&1` in
12798 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12799 ld_shlibs_GO=no
12800 cat <<_LT_EOF 1>&2
12801
12802*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12803*** reliably create shared libraries on SCO systems. Therefore, libtool
12804*** is disabling shared libraries support. We urge you to upgrade GNU
12805*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12806*** your PATH or compiler configuration so that the native linker is
12807*** used, and then restart.
12808
12809_LT_EOF
12810 ;;
12811 *)
12812 # For security reasons, it is highly recommended that you always
12813 # use absolute paths for naming shared libraries, and exclude the
12814 # DT_RUNPATH tag from executables and libraries. But doing so
12815 # requires that you compile everything twice, which is a pain.
12816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12817 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12818 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12819 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12820 else
12821 ld_shlibs_GO=no
12822 fi
12823 ;;
12824 esac
12825 ;;
12826
12827 sunos4*)
12828 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12829 wlarc=
12830 hardcode_direct_GO=yes
12831 hardcode_shlibpath_var_GO=no
12832 ;;
12833
12834 *)
12835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12836 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12837 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12838 else
12839 ld_shlibs_GO=no
12840 fi
12841 ;;
12842 esac
12843
12844 if test "$ld_shlibs_GO" = no; then
12845 runpath_var=
12846 hardcode_libdir_flag_spec_GO=
12847 export_dynamic_flag_spec_GO=
12848 whole_archive_flag_spec_GO=
12849 fi
12850 else
12851 # PORTME fill in a description of your system's linker (not GNU ld)
12852 case $host_os in
12853 aix3*)
12854 allow_undefined_flag_GO=unsupported
12855 always_export_symbols_GO=yes
12856 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'
12857 # Note: this linker hardcodes the directories in LIBPATH if there
12858 # are no directories specified by -L.
12859 hardcode_minus_L_GO=yes
12860 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12861 # Neither direct hardcoding nor static linking is supported with a
12862 # broken collect2.
12863 hardcode_direct_GO=unsupported
12864 fi
12865 ;;
12866
12867 aix[4-9]*)
12868 if test "$host_cpu" = ia64; then
12869 # On IA64, the linker does run time linking by default, so we don't
12870 # have to do anything special.
12871 aix_use_runtimelinking=no
12872 exp_sym_flag='-Bexport'
12873 no_entry_flag=""
12874 else
12875 # If we're using GNU nm, then we don't want the "-C" option.
12876 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12877 # Also, AIX nm treats weak defined symbols like other global
12878 # defined symbols, whereas GNU nm marks them as "W".
12879 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12880 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'
12881 else
12882 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'
12883 fi
12884 aix_use_runtimelinking=no
12885
12886 # Test if we are trying to use run time linking or normal
12887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12888 # need to do runtime linking.
12889 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12890 for ld_flag in $LDFLAGS; do
12891 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12892 aix_use_runtimelinking=yes
12893 break
12894 fi
12895 done
12896 ;;
12897 esac
12898
12899 exp_sym_flag='-bexport'
12900 no_entry_flag='-bnoentry'
12901 fi
12902
12903 # When large executables or shared objects are built, AIX ld can
12904 # have problems creating the table of contents. If linking a library
12905 # or program results in "error TOC overflow" add -mminimal-toc to
12906 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12907 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12908
12909 archive_cmds_GO=''
12910 hardcode_direct_GO=yes
12911 hardcode_direct_absolute_GO=yes
12912 hardcode_libdir_separator_GO=':'
12913 link_all_deplibs_GO=yes
12914 file_list_spec_GO='${wl}-f,'
12915
12916 if test "$GCC" = yes; then
12917 case $host_os in aix4.[012]|aix4.[012].*)
12918 # We only want to do this on AIX 4.2 and lower, the check
12919 # below for broken collect2 doesn't work under 4.3+
12920 collect2name=`${CC} -print-prog-name=collect2`
12921 if test -f "$collect2name" &&
12922 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12923 then
12924 # We have reworked collect2
12925 :
12926 else
12927 # We have old collect2
12928 hardcode_direct_GO=unsupported
12929 # It fails to find uninstalled libraries when the uninstalled
12930 # path is not listed in the libpath. Setting hardcode_minus_L
12931 # to unsupported forces relinking
12932 hardcode_minus_L_GO=yes
12933 hardcode_libdir_flag_spec_GO='-L$libdir'
12934 hardcode_libdir_separator_GO=
12935 fi
12936 ;;
12937 esac
12938 shared_flag='-shared'
12939 if test "$aix_use_runtimelinking" = yes; then
12940 shared_flag="$shared_flag "'${wl}-G'
12941 fi
12942 else
12943 # not using gcc
12944 if test "$host_cpu" = ia64; then
12945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12946 # chokes on -Wl,-G. The following line is correct:
12947 shared_flag='-G'
12948 else
12949 if test "$aix_use_runtimelinking" = yes; then
12950 shared_flag='${wl}-G'
12951 else
12952 shared_flag='${wl}-bM:SRE'
12953 fi
12954 fi
12955 fi
12956
12957 export_dynamic_flag_spec_GO='${wl}-bexpall'
12958 # It seems that -bexpall does not export symbols beginning with
12959 # underscore (_), so it is better to generate a list of symbols to export.
12960 always_export_symbols_GO=yes
12961 if test "$aix_use_runtimelinking" = yes; then
12962 # Warning - without using the other runtime loading flags (-brtl),
12963 # -berok will link without error, but may produce a broken library.
12964 allow_undefined_flag_GO='-berok'
12965 # Determine the default libpath from the value encoded in an
12966 # empty executable.
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968/* end confdefs.h. */
12969
12970int
12971main ()
12972{
12973
12974 ;
12975 return 0;
12976}
12977_ACEOF
12978if ac_fn_c_try_link "$LINENO"; then :
12979
12980lt_aix_libpath_sed='
12981 /Import File Strings/,/^$/ {
12982 /^0/ {
12983 s/^0 *\(.*\)$/\1/
12984 p
12985 }
12986 }'
12987aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12988# Check for a 64-bit object if we didn't find anything.
12989if test -z "$aix_libpath"; then
12990 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12991fi
12992fi
12993rm -f core conftest.err conftest.$ac_objext \
12994 conftest$ac_exeext conftest.$ac_ext
12995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12996
12997 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12998 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"
12999 else
13000 if test "$host_cpu" = ia64; then
13001 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
13002 allow_undefined_flag_GO="-z nodefs"
13003 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"
13004 else
13005 # Determine the default libpath from the value encoded in an
13006 # empty executable.
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008/* end confdefs.h. */
13009
13010int
13011main ()
13012{
13013
13014 ;
13015 return 0;
13016}
13017_ACEOF
13018if ac_fn_c_try_link "$LINENO"; then :
13019
13020lt_aix_libpath_sed='
13021 /Import File Strings/,/^$/ {
13022 /^0/ {
13023 s/^0 *\(.*\)$/\1/
13024 p
13025 }
13026 }'
13027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13028# Check for a 64-bit object if we didn't find anything.
13029if test -z "$aix_libpath"; then
13030 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13031fi
13032fi
13033rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext conftest.$ac_ext
13035if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13036
13037 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13038 # Warning - without using the other run time loading flags,
13039 # -berok will link without error, but may produce a broken library.
13040 no_undefined_flag_GO=' ${wl}-bernotok'
13041 allow_undefined_flag_GO=' ${wl}-berok'
13042 if test "$with_gnu_ld" = yes; then
13043 # We only use this code for GNU lds that support --whole-archive.
13044 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13045 else
13046 # Exported symbols can be pulled into shared objects from archives
13047 whole_archive_flag_spec_GO='$convenience'
13048 fi
13049 archive_cmds_need_lc_GO=yes
13050 # This is similar to how AIX traditionally builds its shared libraries.
13051 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'
13052 fi
13053 fi
13054 ;;
13055
13056 amigaos*)
13057 case $host_cpu in
13058 powerpc)
13059 # see comment about AmigaOS4 .so support
13060 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061 archive_expsym_cmds_GO=''
13062 ;;
13063 m68k)
13064 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)'
13065 hardcode_libdir_flag_spec_GO='-L$libdir'
13066 hardcode_minus_L_GO=yes
13067 ;;
13068 esac
13069 ;;
13070
13071 bsdi[45]*)
13072 export_dynamic_flag_spec_GO=-rdynamic
13073 ;;
13074
13075 cygwin* | mingw* | pw32* | cegcc*)
13076 # When not using gcc, we currently assume that we are using
13077 # Microsoft Visual C++.
13078 # hardcode_libdir_flag_spec is actually meaningless, as there is
13079 # no search path for DLLs.
13080 hardcode_libdir_flag_spec_GO=' '
13081 allow_undefined_flag_GO=unsupported
13082 # Tell ltmain to make .lib files, not .a files.
13083 libext=lib
13084 # Tell ltmain to make .dll files, not .so files.
13085 shrext_cmds=".dll"
13086 # FIXME: Setting linknames here is a bad hack.
13087 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13088 # The linker will automatically build a .lib file if we build a DLL.
13089 old_archive_from_new_cmds_GO='true'
13090 # FIXME: Should let the user specify the lib program.
13091 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
13092 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
13093 enable_shared_with_static_runtimes_GO=yes
13094 ;;
13095
13096 darwin* | rhapsody*)
13097
13098
13099 archive_cmds_need_lc_GO=no
13100 hardcode_direct_GO=no
13101 hardcode_automatic_GO=yes
13102 hardcode_shlibpath_var_GO=unsupported
13103 if test "$lt_cv_ld_force_load" = "yes"; then
13104 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\"`'
13105 else
13106 whole_archive_flag_spec_GO=''
13107 fi
13108 link_all_deplibs_GO=yes
13109 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
13110 case $cc_basename in
13111 ifort*) _lt_dar_can_shared=yes ;;
13112 *) _lt_dar_can_shared=$GCC ;;
13113 esac
13114 if test "$_lt_dar_can_shared" = "yes"; then
13115 output_verbose_link_cmd=func_echo_all
13116 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}"
13117 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13118 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}"
13119 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}"
13120
13121 else
13122 ld_shlibs_GO=no
13123 fi
13124
13125 ;;
13126
13127 dgux*)
13128 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13129 hardcode_libdir_flag_spec_GO='-L$libdir'
13130 hardcode_shlibpath_var_GO=no
13131 ;;
13132
7a938933
ILT
13133 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13134 # support. Future versions do this automatically, but an explicit c++rt0.o
13135 # does not break anything, and helps significantly (at the cost of a little
13136 # extra space).
13137 freebsd2.2*)
13138 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13139 hardcode_libdir_flag_spec_GO='-R$libdir'
13140 hardcode_direct_GO=yes
13141 hardcode_shlibpath_var_GO=no
13142 ;;
13143
13144 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 13145 freebsd2.*)
7a938933
ILT
13146 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13147 hardcode_direct_GO=yes
13148 hardcode_minus_L_GO=yes
13149 hardcode_shlibpath_var_GO=no
13150 ;;
13151
13152 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13153 freebsd* | dragonfly*)
13154 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13155 hardcode_libdir_flag_spec_GO='-R$libdir'
13156 hardcode_direct_GO=yes
13157 hardcode_shlibpath_var_GO=no
13158 ;;
13159
13160 hpux9*)
13161 if test "$GCC" = yes; then
13162 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'
13163 else
13164 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'
13165 fi
13166 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13167 hardcode_libdir_separator_GO=:
13168 hardcode_direct_GO=yes
13169
13170 # hardcode_minus_L: Not really in the search PATH,
13171 # but as the default location of the library.
13172 hardcode_minus_L_GO=yes
13173 export_dynamic_flag_spec_GO='${wl}-E'
13174 ;;
13175
13176 hpux10*)
13177 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13178 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13179 else
13180 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13181 fi
13182 if test "$with_gnu_ld" = no; then
13183 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13184 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13185 hardcode_libdir_separator_GO=:
13186 hardcode_direct_GO=yes
13187 hardcode_direct_absolute_GO=yes
13188 export_dynamic_flag_spec_GO='${wl}-E'
13189 # hardcode_minus_L: Not really in the search PATH,
13190 # but as the default location of the library.
13191 hardcode_minus_L_GO=yes
13192 fi
13193 ;;
13194
13195 hpux11*)
13196 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13197 case $host_cpu in
13198 hppa*64*)
13199 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13200 ;;
13201 ia64*)
13202 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13203 ;;
13204 *)
13205 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13206 ;;
13207 esac
13208 else
13209 case $host_cpu in
13210 hppa*64*)
13211 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13212 ;;
13213 ia64*)
13214 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13215 ;;
13216 *)
13217 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13218 ;;
13219 esac
13220 fi
13221 if test "$with_gnu_ld" = no; then
13222 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13223 hardcode_libdir_separator_GO=:
13224
13225 case $host_cpu in
13226 hppa*64*|ia64*)
13227 hardcode_direct_GO=no
13228 hardcode_shlibpath_var_GO=no
13229 ;;
13230 *)
13231 hardcode_direct_GO=yes
13232 hardcode_direct_absolute_GO=yes
13233 export_dynamic_flag_spec_GO='${wl}-E'
13234
13235 # hardcode_minus_L: Not really in the search PATH,
13236 # but as the default location of the library.
13237 hardcode_minus_L_GO=yes
13238 ;;
13239 esac
13240 fi
13241 ;;
13242
13243 irix5* | irix6* | nonstopux*)
13244 if test "$GCC" = yes; then
13245 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'
13246 # Try to use the -exported_symbol ld option, if it does not
13247 # work, assume that -exports_file does not work either and
13248 # implicitly export all symbols.
13249 save_LDFLAGS="$LDFLAGS"
13250 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252/* end confdefs.h. */
13253int foo(void) {}
13254_ACEOF
13255if ac_fn_c_try_link "$LINENO"; then :
13256 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'
13257
13258fi
13259rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LDFLAGS="$save_LDFLAGS"
13262 else
13263 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'
13264 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'
13265 fi
13266 archive_cmds_need_lc_GO='no'
13267 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13268 hardcode_libdir_separator_GO=:
13269 inherit_rpath_GO=yes
13270 link_all_deplibs_GO=yes
13271 ;;
13272
13273 netbsd*)
13274 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13275 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13276 else
13277 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13278 fi
13279 hardcode_libdir_flag_spec_GO='-R$libdir'
13280 hardcode_direct_GO=yes
13281 hardcode_shlibpath_var_GO=no
13282 ;;
13283
13284 newsos6)
13285 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13286 hardcode_direct_GO=yes
13287 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13288 hardcode_libdir_separator_GO=:
13289 hardcode_shlibpath_var_GO=no
13290 ;;
13291
13292 *nto* | *qnx*)
13293 ;;
13294
13295 openbsd*)
13296 if test -f /usr/libexec/ld.so; then
13297 hardcode_direct_GO=yes
13298 hardcode_shlibpath_var_GO=no
13299 hardcode_direct_absolute_GO=yes
13300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13301 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13302 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13303 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13304 export_dynamic_flag_spec_GO='${wl}-E'
13305 else
13306 case $host_os in
13307 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13308 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309 hardcode_libdir_flag_spec_GO='-R$libdir'
13310 ;;
13311 *)
13312 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13313 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13314 ;;
13315 esac
13316 fi
13317 else
13318 ld_shlibs_GO=no
13319 fi
13320 ;;
13321
13322 os2*)
13323 hardcode_libdir_flag_spec_GO='-L$libdir'
13324 hardcode_minus_L_GO=yes
13325 allow_undefined_flag_GO=unsupported
13326 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'
13327 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13328 ;;
13329
13330 osf3*)
13331 if test "$GCC" = yes; then
13332 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13333 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'
13334 else
13335 allow_undefined_flag_GO=' -expect_unresolved \*'
13336 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'
13337 fi
13338 archive_cmds_need_lc_GO='no'
13339 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13340 hardcode_libdir_separator_GO=:
13341 ;;
13342
13343 osf4* | osf5*) # as osf3* with the addition of -msym flag
13344 if test "$GCC" = yes; then
13345 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13346 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'
13347 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13348 else
13349 allow_undefined_flag_GO=' -expect_unresolved \*'
13350 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'
13351 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~
13352 $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'
13353
13354 # Both c and cxx compiler support -rpath directly
13355 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13356 fi
13357 archive_cmds_need_lc_GO='no'
13358 hardcode_libdir_separator_GO=:
13359 ;;
13360
13361 solaris*)
13362 no_undefined_flag_GO=' -z defs'
13363 if test "$GCC" = yes; then
13364 wlarc='${wl}'
13365 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13366 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13367 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13368 else
13369 case `$CC -V 2>&1` in
13370 *"Compilers 5.0"*)
13371 wlarc=''
13372 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13373 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13374 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13375 ;;
13376 *)
13377 wlarc='${wl}'
13378 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13379 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13380 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13381 ;;
13382 esac
13383 fi
13384 hardcode_libdir_flag_spec_GO='-R$libdir'
13385 hardcode_shlibpath_var_GO=no
13386 case $host_os in
13387 solaris2.[0-5] | solaris2.[0-5].*) ;;
13388 *)
13389 # The compiler driver will combine and reorder linker options,
13390 # but understands `-z linker_flag'. GCC discards it without `$wl',
13391 # but is careful enough not to reorder.
13392 # Supported since Solaris 2.6 (maybe 2.5.1?)
13393 if test "$GCC" = yes; then
13394 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13395 else
13396 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13397 fi
13398 ;;
13399 esac
13400 link_all_deplibs_GO=yes
13401 ;;
13402
13403 sunos4*)
13404 if test "x$host_vendor" = xsequent; then
13405 # Use $CC to link under sequent, because it throws in some extra .o
13406 # files that make .init and .fini sections work.
13407 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13408 else
13409 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13410 fi
13411 hardcode_libdir_flag_spec_GO='-L$libdir'
13412 hardcode_direct_GO=yes
13413 hardcode_minus_L_GO=yes
13414 hardcode_shlibpath_var_GO=no
13415 ;;
13416
13417 sysv4)
13418 case $host_vendor in
13419 sni)
13420 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13421 hardcode_direct_GO=yes # is this really true???
13422 ;;
13423 siemens)
13424 ## LD is ld it makes a PLAMLIB
13425 ## CC just makes a GrossModule.
13426 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13427 reload_cmds_GO='$CC -r -o $output$reload_objs'
13428 hardcode_direct_GO=no
13429 ;;
13430 motorola)
13431 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13433 ;;
13434 esac
13435 runpath_var='LD_RUN_PATH'
13436 hardcode_shlibpath_var_GO=no
13437 ;;
13438
13439 sysv4.3*)
13440 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13441 hardcode_shlibpath_var_GO=no
13442 export_dynamic_flag_spec_GO='-Bexport'
13443 ;;
13444
13445 sysv4*MP*)
13446 if test -d /usr/nec; then
13447 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448 hardcode_shlibpath_var_GO=no
13449 runpath_var=LD_RUN_PATH
13450 hardcode_runpath_var=yes
13451 ld_shlibs_GO=yes
13452 fi
13453 ;;
13454
13455 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13456 no_undefined_flag_GO='${wl}-z,text'
13457 archive_cmds_need_lc_GO=no
13458 hardcode_shlibpath_var_GO=no
13459 runpath_var='LD_RUN_PATH'
13460
13461 if test "$GCC" = yes; then
13462 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464 else
13465 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467 fi
13468 ;;
13469
13470 sysv5* | sco3.2v5* | sco5v6*)
13471 # Note: We can NOT use -z defs as we might desire, because we do not
13472 # link with -lc, and that would cause any symbols used from libc to
13473 # always be unresolved, which means just about no library would
13474 # ever link correctly. If we're not using GNU ld we use -z text
13475 # though, which does catch some bad symbols but isn't as heavy-handed
13476 # as -z defs.
13477 no_undefined_flag_GO='${wl}-z,text'
13478 allow_undefined_flag_GO='${wl}-z,nodefs'
13479 archive_cmds_need_lc_GO=no
13480 hardcode_shlibpath_var_GO=no
13481 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13482 hardcode_libdir_separator_GO=':'
13483 link_all_deplibs_GO=yes
13484 export_dynamic_flag_spec_GO='${wl}-Bexport'
13485 runpath_var='LD_RUN_PATH'
13486
13487 if test "$GCC" = yes; then
13488 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490 else
13491 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493 fi
13494 ;;
13495
13496 uts4*)
13497 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13498 hardcode_libdir_flag_spec_GO='-L$libdir'
13499 hardcode_shlibpath_var_GO=no
13500 ;;
13501
13502 *)
13503 ld_shlibs_GO=no
13504 ;;
13505 esac
13506
13507 if test x$host_vendor = xsni; then
13508 case $host in
13509 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13510 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13511 ;;
13512 esac
13513 fi
13514 fi
13515
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13517$as_echo "$ld_shlibs_GO" >&6; }
13518test "$ld_shlibs_GO" = no && can_build_shared=no
13519
13520with_gnu_ld_GO=$with_gnu_ld
13521
13522
13523
13524
13525
13526
13527#
13528# Do we need to explicitly link libc?
13529#
13530case "x$archive_cmds_need_lc_GO" in
13531x|xyes)
13532 # Assume -lc should be added
13533 archive_cmds_need_lc_GO=yes
13534
13535 if test "$enable_shared" = yes && test "$GCC" = yes; then
13536 case $archive_cmds_GO in
13537 *'~'*)
13538 # FIXME: we may have to deal with multi-command sequences.
13539 ;;
13540 '$CC '*)
13541 # Test whether the compiler implicitly links with -lc since on some
13542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13543 # to ld, don't add -lc before -lgcc.
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13545$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
73b6d7a9 13546if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
7a938933
ILT
13547 $as_echo_n "(cached) " >&6
13548else
13549 $RM conftest*
13550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13551
13552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13553 (eval $ac_compile) 2>&5
13554 ac_status=$?
13555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13556 test $ac_status = 0; } 2>conftest.err; then
13557 soname=conftest
13558 lib=conftest
13559 libobjs=conftest.$ac_objext
13560 deplibs=
13561 wl=$lt_prog_compiler_wl_GO
13562 pic_flag=$lt_prog_compiler_pic_GO
13563 compiler_flags=-v
13564 linker_flags=-v
13565 verstring=
13566 output_objdir=.
13567 libname=conftest
13568 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13569 allow_undefined_flag_GO=
13570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13571 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13572 ac_status=$?
13573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13574 test $ac_status = 0; }
13575 then
13576 lt_cv_archive_cmds_need_lc_GO=no
13577 else
13578 lt_cv_archive_cmds_need_lc_GO=yes
13579 fi
13580 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13581 else
13582 cat conftest.err 1>&5
13583 fi
13584 $RM conftest*
13585
13586fi
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13588$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13589 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13590 ;;
13591 esac
13592 fi
13593 ;;
13594esac
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13660$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13661hardcode_action_GO=
13662if test -n "$hardcode_libdir_flag_spec_GO" ||
13663 test -n "$runpath_var_GO" ||
13664 test "X$hardcode_automatic_GO" = "Xyes" ; then
13665
13666 # We can hardcode non-existent directories.
13667 if test "$hardcode_direct_GO" != no &&
13668 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13669 # have to relink, otherwise we might link with an installed library
13670 # when we should be linking with a yet-to-be-installed one
13671 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13672 test "$hardcode_minus_L_GO" != no; then
13673 # Linking always hardcodes the temporary library directory.
13674 hardcode_action_GO=relink
13675 else
13676 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13677 hardcode_action_GO=immediate
13678 fi
13679else
13680 # We cannot hardcode anything, or else we can only hardcode existing
13681 # directories.
13682 hardcode_action_GO=unsupported
13683fi
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13685$as_echo "$hardcode_action_GO" >&6; }
13686
13687if test "$hardcode_action_GO" = relink ||
13688 test "$inherit_rpath_GO" = yes; then
13689 # Fast installation is not supported
13690 enable_fast_install=no
13691elif test "$shlibpath_overrides_runpath" = yes ||
13692 test "$enable_shared" = no; then
13693 # Fast installation is not necessary
13694 enable_fast_install=needless
13695fi
13696
13697
13698
13699
13700
13701
13702
13703fi
13704
13705ac_ext=c
13706ac_cpp='$CPP $CPPFLAGS'
13707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13709ac_compiler_gnu=$ac_cv_c_compiler_gnu
13710
13711
13712GCC=$lt_save_GCC
13713CC="$lt_save_CC"
13714
13715
13716
13717
13718 ac_config_commands="$ac_config_commands libtool"
13719
13720
13721
13722
13723# Only expand once:
13724
13725
13726
13727
13728
d983a802
ILT
13729CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13730
13731
de27caac
ILT
13732for ac_prog in gawk mawk nawk awk
13733do
13734 # Extract the first word of "$ac_prog", so it can be a program name with args.
13735set dummy $ac_prog; ac_word=$2
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 13738if ${ac_cv_prog_AWK+:} false; then :
de27caac
ILT
13739 $as_echo_n "(cached) " >&6
13740else
13741 if test -n "$AWK"; then
13742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13743else
13744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745for as_dir in $PATH
13746do
13747 IFS=$as_save_IFS
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 13750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
de27caac
ILT
13751 ac_cv_prog_AWK="$ac_prog"
13752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753 break 2
13754 fi
13755done
13756 done
13757IFS=$as_save_IFS
13758
13759fi
13760fi
13761AWK=$ac_cv_prog_AWK
13762if test -n "$AWK"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13764$as_echo "$AWK" >&6; }
13765else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768fi
13769
13770
13771 test -n "$AWK" && break
13772done
13773
13774
7a938933
ILT
13775WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13776
13777
0d4668c1
ILT
13778# Check whether --enable-werror was given.
13779if test "${enable_werror+set}" = set; then :
13780 enableval=$enable_werror;
13781fi
13782
13783if test "x$enable_werror" != "xno"; then
13784 WERROR="-Werror"
13785fi
7a938933
ILT
13786
13787
13788glibgo_toolexecdir=no
13789glibgo_toolexeclibdir=no
7a938933
ILT
13790
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13792$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13793# Check whether --enable-version-specific-runtime-libs was given.
13794if test "${enable_version_specific_runtime_libs+set}" = set; then :
13795 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13796 yes) version_specific_libs=yes ;;
13797 no) version_specific_libs=no ;;
73b6d7a9 13798 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
7a938933
ILT
13799 esac
13800else
13801 version_specific_libs=no
13802fi
13803
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13805$as_echo "$version_specific_libs" >&6; }
13806
ba386bea
ILT
13807
13808# Check whether --with-toolexeclibdir was given.
13809if test "${with_toolexeclibdir+set}" = set; then :
13810 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
13811 /)
13812 ;;
13813 */)
13814 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
13815 ;;
13816esac
13817else
13818 with_toolexeclibdir=no
13819fi
13820
13821
13822
7a938933
ILT
13823# Version-specific runtime libs processing.
13824if test $version_specific_libs = yes; then
13825 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13826 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13827fi
13828
13829# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13830# Install a library built with a cross compiler in tooldir, not libdir.
317ea7c0
ILT
13831if test -n "$with_cross_host" &&
13832 test x"$with_cross_host" != x"no"; then
13833 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
ba386bea
ILT
13834 case ${with_toolexeclibdir} in
13835 no)
13836 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13837 ;;
13838 *)
13839 nover_glibgo_toolexeclibdir=${with_toolexeclibdir}
13840 ;;
13841 esac
317ea7c0
ILT
13842else
13843 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13844 nover_glibgo_toolexeclibdir='${libdir}'
13845fi
6c76a95d 13846multi_os_directory=`$GOC -print-multi-os-directory`
317ea7c0
ILT
13847case $multi_os_directory in
13848 .) ;; # Avoid trailing /.
13849 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13850esac
13851
7a938933 13852if test x"$glibgo_toolexecdir" = x"no"; then
317ea7c0
ILT
13853 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13854 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
7a938933
ILT
13855fi
13856
13857
13858
13859
13860
13861# See if the user wants to configure without libffi. Some
13862# architectures don't support it. FIXME: We should set a default
13863# based on the host.
13864
13865# Check whether --with-libffi was given.
13866if test "${with_libffi+set}" = set; then :
13867 withval=$with_libffi; :
13868else
13869 with_libffi=${with_libffi_default-yes}
13870fi
13871
13872
13873LIBFFI=
13874LIBFFIINCS=
13875if test "$with_libffi" != no; then
13876
13877$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13878
13879 LIBFFI=../libffi/libffi_convenience.la
13880 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13881fi
13882
13883
8b9cfd76 13884 if test "$with_libffi" != "no"; then
5302cd02
ILT
13885 USE_LIBFFI_TRUE=
13886 USE_LIBFFI_FALSE='#'
13887else
13888 USE_LIBFFI_TRUE='#'
13889 USE_LIBFFI_FALSE=
13890fi
13891
7a938933 13892
9a85ed03
ILT
13893# See if the user wants to configure without libatomic. This is useful if we are
13894# on an architecture for which libgo does not need an atomic support library and
13895# libatomic does not support our C compiler.
13896
13897# Check whether --with-libatomic was given.
13898if test "${with_libatomic+set}" = set; then :
13899 withval=$with_libatomic; :
13900else
13901 with_libatomic=${with_libatomic_default-yes}
13902fi
13903
13904
13905LIBATOMIC=
13906if test "$with_libatomic" != no; then
13907 LIBATOMIC=../libatomic/libatomic_convenience.la
13908fi
13909
13910
18c70075
ILT
13911# Used to tell GNU make to include a file without telling automake to
13912# include it.
13913go_include="-include"
13914
13915
a8464243
ILT
13916# All known GOOS values. This is the union of all operating systems
13917# supported by the gofrontend and all operating systems supported by
13918# the gc toolchain.
aa8901e9 13919ALLGOOS="aix android darwin dragonfly freebsd hurd illumos irix js linux netbsd openbsd plan9 rtems solaris windows"
a8464243 13920
7a938933
ILT
13921is_darwin=no
13922is_freebsd=no
654d2ec0 13923is_irix=no
7a938933 13924is_linux=no
1efa38d1 13925is_netbsd=no
4ccad563 13926is_openbsd=no
f038dae6 13927is_dragonfly=no
7a938933 13928is_rtems=no
f2ee78b8 13929is_solaris=no
f163907e 13930is_aix=no
d9f0237f 13931is_hurd=no
c3b5b97b 13932GOOS=unknown
7a938933 13933case ${host} in
f2ee78b8
ILT
13934 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13935 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
654d2ec0 13936 *-*-irix6*) is_irix=yes; GOOS=irix ;;
f2ee78b8 13937 *-*-linux*) is_linux=yes; GOOS=linux ;;
df4aa89a 13938 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
4ccad563 13939 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
f038dae6 13940 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
f2ee78b8
ILT
13941 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13942 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
f163907e 13943 *-*-aix*) is_aix=yes; GOOS=aix ;;
d9f0237f 13944 *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
7a938933
ILT
13945esac
13946 if test $is_darwin = yes; then
13947 LIBGO_IS_DARWIN_TRUE=
13948 LIBGO_IS_DARWIN_FALSE='#'
13949else
13950 LIBGO_IS_DARWIN_TRUE='#'
13951 LIBGO_IS_DARWIN_FALSE=
13952fi
13953
13954 if test $is_freebsd = yes; then
13955 LIBGO_IS_FREEBSD_TRUE=
13956 LIBGO_IS_FREEBSD_FALSE='#'
13957else
13958 LIBGO_IS_FREEBSD_TRUE='#'
13959 LIBGO_IS_FREEBSD_FALSE=
13960fi
13961
654d2ec0
ILT
13962 if test $is_irix = yes; then
13963 LIBGO_IS_IRIX_TRUE=
13964 LIBGO_IS_IRIX_FALSE='#'
13965else
13966 LIBGO_IS_IRIX_TRUE='#'
13967 LIBGO_IS_IRIX_FALSE=
13968fi
13969
7a938933
ILT
13970 if test $is_linux = yes; then
13971 LIBGO_IS_LINUX_TRUE=
13972 LIBGO_IS_LINUX_FALSE='#'
13973else
13974 LIBGO_IS_LINUX_TRUE='#'
13975 LIBGO_IS_LINUX_FALSE=
13976fi
13977
df4aa89a
ILT
13978 if test $is_netbsd = yes; then
13979 LIBGO_IS_NETBSD_TRUE=
13980 LIBGO_IS_NETBSD_FALSE='#'
13981else
13982 LIBGO_IS_NETBSD_TRUE='#'
13983 LIBGO_IS_NETBSD_FALSE=
13984fi
13985
4ccad563
ILT
13986 if test $is_openbsd = yes; then
13987 LIBGO_IS_OPENBSD_TRUE=
13988 LIBGO_IS_OPENBSD_FALSE='#'
13989else
13990 LIBGO_IS_OPENBSD_TRUE='#'
13991 LIBGO_IS_OPENBSD_FALSE=
13992fi
13993
824393bd 13994 if test $is_dragonfly = yes; then
f038dae6
ILT
13995 LIBGO_IS_DRAGONFLY_TRUE=
13996 LIBGO_IS_DRAGONFLY_FALSE='#'
13997else
13998 LIBGO_IS_DRAGONFLY_TRUE='#'
13999 LIBGO_IS_DRAGONFLY_FALSE=
14000fi
14001
7a938933
ILT
14002 if test $is_rtems = yes; then
14003 LIBGO_IS_RTEMS_TRUE=
14004 LIBGO_IS_RTEMS_FALSE='#'
14005else
14006 LIBGO_IS_RTEMS_TRUE='#'
14007 LIBGO_IS_RTEMS_FALSE=
14008fi
14009
f2ee78b8
ILT
14010 if test $is_solaris = yes; then
14011 LIBGO_IS_SOLARIS_TRUE=
14012 LIBGO_IS_SOLARIS_FALSE='#'
14013else
14014 LIBGO_IS_SOLARIS_TRUE='#'
14015 LIBGO_IS_SOLARIS_FALSE=
14016fi
14017
f163907e
ILT
14018 if test $is_aix = yes; then
14019 LIBGO_IS_AIX_TRUE=
14020 LIBGO_IS_AIX_FALSE='#'
14021else
14022 LIBGO_IS_AIX_TRUE='#'
14023 LIBGO_IS_AIX_FALSE=
14024fi
14025
d9f0237f
ILT
14026 if test $is_hurd = yes; then
14027 LIBGO_IS_HURD_TRUE=
14028 LIBGO_IS_HURD_FALSE='#'
14029else
14030 LIBGO_IS_HURD_TRUE='#'
14031 LIBGO_IS_HURD_FALSE=
14032fi
14033
22b955cc
ILT
14034 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14035 LIBGO_IS_BSD_TRUE=
14036 LIBGO_IS_BSD_FALSE='#'
14037else
14038 LIBGO_IS_BSD_TRUE='#'
14039 LIBGO_IS_BSD_FALSE=
14040fi
14041
7a938933 14042
c3b5b97b 14043
a8464243 14044
7134cf28
ILT
14045USE_DEJAGNU=no
14046case ${host} in
14047 *-*-rtems*) USE_DEJAGNU=yes ;;
553752e1 14048 ${build}) ;;
7134cf28
ILT
14049 *) USE_DEJAGNU=yes ;;
14050esac
14051
14052
a8464243
ILT
14053# All known GOARCH values. This is the union of all architectures
14054# supported by the gofrontend and all architectures supported by the
14055# gc toolchain.
ffad1c54
ILT
14056# To add a new architecture:
14057# - add it to this list
14058# - if appropriate, add an entry to ALLGOARCHFAMILY below
14059# - add an entry to the case on ${host} below to set GOARCH
14060# - update goarchList in libgo/go/go/build/syslist.go
14061# - update goarch.sh to report the values for this architecture
14062# - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14063# - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14064# - update arch lists in libgo/match.sh
14065# - update arch lists in libgo/testsuite/gotest
14066# - update +build lines in several places
14067# - libgo/go/runtime/lfstack_NNbit.go
14068# - libgo/go/runtime/hashNN.go
14069# - libgo/go/runtime/unalignedN.go
14070# - libgo/go/syscall/endian_XX.go
14071# - possibly others
14072# - possibly update files in libgo/go/internal/syscall/unix
87cbbc45 14073ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
a8464243 14074
ffad1c54 14075# All known GOARCH family values.
87cbbc45 14076ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
a8464243 14077
c3b5b97b 14078GOARCH=unknown
7a938933 14079case ${host} in
e59b9171 14080 alpha*-*-*)
e59b9171
ILT
14081 GOARCH=alpha
14082 ;;
71d0d50a 14083 aarch64-*-*)
71d0d50a
ILT
14084 GOARCH=arm64
14085 ;;
9961856c
ILT
14086 aarch64_be-*-*)
14087 GOARCH=arm64be
14088 ;;
ca11cc98 14089 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
ca11cc98 14090 GOARCH=arm
1a2f01ef
ILT
14091 case ${host} in
14092 arm*b*-*-*)
14093 GOARCH=armbe
1a2f01ef
ILT
14094 ;;
14095 esac
ca11cc98 14096 ;;
c3b5b97b
ILT
14097 i[34567]86-*-* | x86_64-*-*)
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099/* end confdefs.h. */
14100
14101#ifdef __x86_64__
14102#error 64-bit
14103#endif
73b6d7a9 14104
c3b5b97b 14105_ACEOF
4a299bf4 14106if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14107 GOARCH=386
c3b5b97b 14108else
44ef0300
ILT
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110/* end confdefs.h. */
14111
14112#ifdef __ILP32__
14113#error x32
14114#endif
73b6d7a9 14115
44ef0300
ILT
14116_ACEOF
14117if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14118 GOARCH=amd64
44ef0300
ILT
14119else
14120 GOARCH=amd64p32
14121fi
14122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3b5b97b 14123fi
4a299bf4 14124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7a938933 14125 ;;
4f8e688a 14126 ia64-*-*)
4f8e688a
ILT
14127 GOARCH=ia64
14128 ;;
ca11cc98 14129 m68k*-*-*)
ca11cc98
ILT
14130 GOARCH=m68k
14131 ;;
14132 mips*-*-*)
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134/* end confdefs.h. */
14135
85a09210
ILT
14136#if _MIPS_SIM != _ABIO32
14137#error not o32
14138#endif
73b6d7a9 14139
85a09210
ILT
14140_ACEOF
14141if ac_fn_c_try_compile "$LINENO"; then :
14142 mips_abi="o32"
14143else
14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14145/* end confdefs.h. */
14146
14147#if _MIPS_SIM != _ABIN32
14148#error not n32
ca11cc98 14149#endif
73b6d7a9 14150
ca11cc98 14151_ACEOF
4a299bf4 14152if ac_fn_c_try_compile "$LINENO"; then :
85a09210 14153 mips_abi="n32"
ca11cc98 14154else
85a09210
ILT
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156/* end confdefs.h. */
14157
14158#if _MIPS_SIM != _ABI64
14159#error not n64
14160#endif
73b6d7a9 14161
85a09210
ILT
14162_ACEOF
14163if ac_fn_c_try_compile "$LINENO"; then :
14164 mips_abi="n64"
85a09210 14165else
73b6d7a9 14166 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
85a09210 14167mips_abi="n32"
ca11cc98 14168fi
4a299bf4 14169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85a09210
ILT
14170fi
14171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172fi
85a09210
ILT
14173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174 case "$mips_abi" in
1701a9d8
ILT
14175 "o32") GOARCH=mips ;;
14176 "n32") GOARCH=mips64p32 ;;
14177 "n64") GOARCH=mips64 ;;
85a09210 14178 esac
a8464243 14179 case "${host}" in
1701a9d8 14180 mips*el-*-*)
f30d2091 14181 GOARCH="${GOARCH}le"
a8464243 14182 ;;
a8464243 14183 esac
ca11cc98 14184 ;;
746d6ed4
ILT
14185 nios2-*-*)
14186 GOARCH=nios2
14187 ;;
ca11cc98
ILT
14188 rs6000*-*-* | powerpc*-*-*)
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190/* end confdefs.h. */
14191
14192#ifdef _ARCH_PPC64
14193#error 64-bit
14194#endif
73b6d7a9 14195
ca11cc98 14196_ACEOF
4a299bf4 14197if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14198 GOARCH=ppc
6f7ccafa 14199else
a8464243 14200
a8464243 14201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6f7ccafa
ILT
14202/* end confdefs.h. */
14203
14204#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14205#error 64be
14206#endif
73b6d7a9 14207
6f7ccafa
ILT
14208_ACEOF
14209if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14210 GOARCH=ppc64le
ca11cc98 14211else
a8464243 14212 GOARCH=ppc64
ca11cc98 14213fi
6f7ccafa
ILT
14214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215fi
4a299bf4 14216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7a938933 14217 ;;
b613cc2e
AS
14218 riscv64-*-*)
14219 GOARCH=riscv64
14220 ;;
1fec5f52
ILT
14221 s390*-*-*)
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223/* end confdefs.h. */
14224
14225#if defined(__s390x__)
14226#error 64-bit
14227#endif
73b6d7a9 14228
1fec5f52
ILT
14229_ACEOF
14230if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14231 GOARCH=s390
1fec5f52 14232else
a8464243 14233 GOARCH=s390x
1fec5f52
ILT
14234fi
14235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fec5f52 14236 ;;
ffad1c54 14237 sh3eb*-*-* | sh4eb*-*-*)
fd0c1dd1 14238 GOARCH=shbe
fd0c1dd1 14239 ;;
ffad1c54 14240 sh3*-*-* | sh4*-*-*)
fd0c1dd1 14241 GOARCH=sh
fd0c1dd1 14242 ;;
f2ee78b8
ILT
14243 sparc*-*-*)
14244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245/* end confdefs.h. */
14246
14247#if defined(__sparcv9) || defined(__arch64__)
14248#error 64-bit
14249#endif
73b6d7a9 14250
f2ee78b8 14251_ACEOF
4a299bf4 14252if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14253 GOARCH=sparc
f2ee78b8 14254else
a8464243 14255 GOARCH=sparc64
f2ee78b8 14256fi
4a299bf4 14257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f2ee78b8 14258 ;;
7a938933 14259esac
85a09210 14260
ca11cc98 14261
f98dd1a3 14262
ca11cc98 14263
de0f55db
ILT
14264 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14265 LIBGO_IS_X86_TRUE=
14266 LIBGO_IS_X86_FALSE='#'
14267else
14268 LIBGO_IS_X86_TRUE='#'
14269 LIBGO_IS_X86_FALSE=
14270fi
14271
14272
cba8a572
ILT
14273FUNCTION_DESCRIPTORS=false
14274case ${host} in
14275 rs6000*-*-* | powerpc*-*-*)
14276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277/* end confdefs.h. */
14278
14279#if _CALL_ELF == 1
14280#error descriptors
14281#endif
14282
14283_ACEOF
14284if ac_fn_c_try_compile "$LINENO"; then :
14285 FUNCTION_DESCRIPTORS=false
14286else
14287 FUNCTION_DESCRIPTORS=true
14288fi
14289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290 ;;
14291esac
14292
14293
de27caac
ILT
14294GO_LIBCALL_OS_FILE=
14295GO_LIBCALL_OS_ARCH_FILE=
14296GO_SYSCALL_OS_FILE=
14297GO_SYSCALL_OS_ARCH_FILE=
204b9fc2
ILT
14298if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14299 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
ca11cc98 14300fi
204b9fc2
ILT
14301if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14302 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
de27caac 14303fi
204b9fc2
ILT
14304if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14305 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
de27caac 14306fi
204b9fc2
ILT
14307if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14308 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
de27caac
ILT
14309fi
14310
14311
14312
ca11cc98
ILT
14313
14314
d48be5df 14315OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
90630d19 14316case "$target" in
9f3b1e6c
ILT
14317 mips-sgi-irix6.5*)
14318 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14319 # msghdr in <sys/socket.h>.
d48be5df 14320 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
9f3b1e6c 14321 ;;
93ee143d 14322 *-*-solaris2.*)
90630d19 14323 # Solaris 10+ needs this so struct msghdr gets the msg_control
bbe847a1 14324 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
90630d19 14325 # above doesn't work with C99.
bbe847a1 14326 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
90630d19
ILT
14327 ;;
14328esac
14329
14330
c3c54e0f 14331
08934aed 14332 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
c3c54e0f 14333
08934aed
ILT
14334 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14335 # with a different meaning.
14336 case ${target_os} in
14337 solaris2*)
14338 ac_save_CFLAGS="$CFLAGS"
14339 CFLAGS="$CFLAGS -Wa,-nH"
c3c54e0f 14340
08934aed
ILT
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14342$as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3c54e0f
ILT
14344/* end confdefs.h. */
14345
14346int
14347main ()
14348{
14349return 0;
14350 ;
14351 return 0;
14352}
14353_ACEOF
08934aed
ILT
14354if ac_fn_c_try_compile "$LINENO"; then :
14355 ac_hwcap_flags=yes
c3c54e0f 14356else
08934aed 14357 ac_hwcap_flags=no
c3c54e0f 14358fi
08934aed
ILT
14359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 if test "$ac_hwcap_flags" = "yes"; then
14361 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14362 fi
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14364$as_echo "$ac_hwcap_flags" >&6; }
c3c54e0f 14365
08934aed
ILT
14366 CFLAGS="$ac_save_CFLAGS"
14367 ;;
14368 esac
c3c54e0f
ILT
14369
14370
c3c54e0f
ILT
14371
14372
7a938933
ILT
14373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14374$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
73b6d7a9 14375if ${libgo_cv_c_split_stack_supported+:} false; then :
7a938933
ILT
14376 $as_echo_n "(cached) " >&6
14377else
14378 CFLAGS_hold=$CFLAGS
14379CFLAGS="$CFLAGS -fsplit-stack"
14380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381/* end confdefs.h. */
14382int i;
14383_ACEOF
14384if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14385 libgo_cv_c_split_stack_supported=yes
7a938933 14386else
f2ee78b8 14387 libgo_cv_c_split_stack_supported=no
7a938933
ILT
14388fi
14389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14390CFLAGS=$CFLAGS_hold
14391fi
f2ee78b8
ILT
14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14393$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
c33c18cd
ILT
14394
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14396$as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
73b6d7a9 14397if ${libgo_cv_c_linker_split_non_split+:} false; then :
c33c18cd
ILT
14398 $as_echo_n "(cached) " >&6
14399else
14400 cat > conftest1.c << EOF
14401extern void f();
14402int main() { f(); return 0; }
14403EOF
14404cat > conftest2.c << EOF
14405void f() {}
14406EOF
207f844e
ILT
14407$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14408$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14409if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
c33c18cd
ILT
14410 libgo_cv_c_linker_split_non_split=yes
14411else
14412 libgo_cv_c_linker_split_non_split=no
14413fi
14414rm -f conftest1.* conftest2.* conftest
14415fi
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14417$as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14418
14419if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
14420 SPLIT_STACK=-fsplit-stack
14421
14422$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14423
14424else
14425 SPLIT_STACK=
14426fi
14427
c33c18cd 14428 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
14429 USING_SPLIT_STACK_TRUE=
14430 USING_SPLIT_STACK_FALSE='#'
14431else
14432 USING_SPLIT_STACK_TRUE='#'
14433 USING_SPLIT_STACK_FALSE=
14434fi
14435
14436
a2bf11d1
ILT
14437if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14438 GO_SPLIT_STACK=-fno-split-stack
14439else
14440 GO_SPLIT_STACK=
14441fi
14442
14443
7a938933
ILT
14444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14445$as_echo_n "checking whether linker supports split stack... " >&6; }
73b6d7a9 14446if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
7a938933
ILT
14447 $as_echo_n "(cached) " >&6
14448else
f2ee78b8 14449 libgo_cv_c_linker_supports_split_stack=no
f56c5dd1 14450if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
f2ee78b8 14451 libgo_cv_c_linker_supports_split_stack=yes
7a938933
ILT
14452fi
14453fi
f2ee78b8
ILT
14454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14455$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14456if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
7a938933
ILT
14457
14458$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14459
14460fi
14461
4c46b5f0
ILT
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14463$as_echo_n "checking whether compiler is llgo... " >&6; }
73b6d7a9 14464if ${libgo_cv_c_goc_is_llgo+:} false; then :
4c46b5f0
ILT
14465 $as_echo_n "(cached) " >&6
14466else
14467 libgo_cv_c_goc_is_llgo=no
14468if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14469 libgo_cv_c_goc_is_llgo=yes
14470fi
14471fi
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14473$as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14474 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14475 GOC_IS_LLGO_TRUE=
14476 GOC_IS_LLGO_FALSE='#'
14477else
14478 GOC_IS_LLGO_TRUE='#'
14479 GOC_IS_LLGO_FALSE=
14480fi
14481
14482
505b439a
ILT
14483MATH_LIBS=
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14485$as_echo_n "checking for sqrt in -lm... " >&6; }
73b6d7a9 14486if ${ac_cv_lib_m_sqrt+:} false; then :
505b439a
ILT
14487 $as_echo_n "(cached) " >&6
14488else
14489 ac_check_lib_save_LIBS=$LIBS
14490LIBS="-lm $LIBS"
14491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492/* end confdefs.h. */
14493
14494/* Override any GCC internal prototype to avoid an error.
14495 Use char because int might match the return type of a GCC
14496 builtin and then its argument prototype would still apply. */
14497#ifdef __cplusplus
14498extern "C"
14499#endif
14500char sqrt ();
14501int
14502main ()
14503{
14504return sqrt ();
14505 ;
14506 return 0;
14507}
14508_ACEOF
14509if ac_fn_c_try_link "$LINENO"; then :
14510 ac_cv_lib_m_sqrt=yes
14511else
14512 ac_cv_lib_m_sqrt=no
14513fi
14514rm -f core conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14516LIBS=$ac_check_lib_save_LIBS
14517fi
14518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14519$as_echo "$ac_cv_lib_m_sqrt" >&6; }
73b6d7a9 14520if test "x$ac_cv_lib_m_sqrt" = xyes; then :
505b439a
ILT
14521 MATH_LIBS=-lm
14522fi
14523
14524
14525
f2ee78b8
ILT
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14527$as_echo_n "checking for socket libraries... " >&6; }
73b6d7a9 14528if ${libgo_cv_lib_sockets+:} false; then :
f2ee78b8
ILT
14529 $as_echo_n "(cached) " >&6
14530else
14531 libgo_cv_lib_sockets=
14532 libgo_check_both=no
14533 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
73b6d7a9 14534if test "x$ac_cv_func_connect" = xyes; then :
f2ee78b8
ILT
14535 libgo_check_socket=no
14536else
14537 libgo_check_socket=yes
14538fi
14539
14540 if test "$libgo_check_socket" = "yes"; then
14541 unset ac_cv_func_connect
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14543$as_echo_n "checking for main in -lsocket... " >&6; }
73b6d7a9 14544if ${ac_cv_lib_socket_main+:} false; then :
f2ee78b8
ILT
14545 $as_echo_n "(cached) " >&6
14546else
14547 ac_check_lib_save_LIBS=$LIBS
14548LIBS="-lsocket $LIBS"
14549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14550/* end confdefs.h. */
14551
14552
14553int
14554main ()
14555{
14556return main ();
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561if ac_fn_c_try_link "$LINENO"; then :
14562 ac_cv_lib_socket_main=yes
14563else
14564 ac_cv_lib_socket_main=no
14565fi
14566rm -f core conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14568LIBS=$ac_check_lib_save_LIBS
14569fi
14570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14571$as_echo "$ac_cv_lib_socket_main" >&6; }
73b6d7a9 14572if test "x$ac_cv_lib_socket_main" = xyes; then :
f2ee78b8
ILT
14573 libgo_cv_lib_sockets="-lsocket"
14574else
14575 libgo_check_both=yes
14576fi
14577
14578 fi
14579 if test "$libgo_check_both" = "yes"; then
14580 libgo_old_libs=$LIBS
14581 LIBS="$LIBS -lsocket -lnsl"
14582 unset ac_cv_func_accept
14583 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
73b6d7a9 14584if test "x$ac_cv_func_accept" = xyes; then :
f2ee78b8
ILT
14585 libgo_check_nsl=no
14586 libgo_cv_lib_sockets="-lsocket -lnsl"
14587fi
14588
14589 unset ac_cv_func_accept
14590 LIBS=$libgo_old_libs
14591 fi
14592 unset ac_cv_func_gethostbyname
14593 libgo_old_libs="$LIBS"
14594 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
73b6d7a9 14595if test "x$ac_cv_func_gethostbyname" = xyes; then :
f2ee78b8
ILT
14596
14597else
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14599$as_echo_n "checking for main in -lnsl... " >&6; }
73b6d7a9 14600if ${ac_cv_lib_nsl_main+:} false; then :
f2ee78b8
ILT
14601 $as_echo_n "(cached) " >&6
14602else
14603 ac_check_lib_save_LIBS=$LIBS
14604LIBS="-lnsl $LIBS"
14605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14606/* end confdefs.h. */
14607
14608
14609int
14610main ()
14611{
14612return main ();
14613 ;
14614 return 0;
14615}
14616_ACEOF
14617if ac_fn_c_try_link "$LINENO"; then :
14618 ac_cv_lib_nsl_main=yes
14619else
14620 ac_cv_lib_nsl_main=no
14621fi
14622rm -f core conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14624LIBS=$ac_check_lib_save_LIBS
14625fi
14626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14627$as_echo "$ac_cv_lib_nsl_main" >&6; }
73b6d7a9 14628if test "x$ac_cv_lib_nsl_main" = xyes; then :
f2ee78b8
ILT
14629 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14630fi
14631
14632fi
14633
14634 unset ac_cv_func_gethostbyname
88cf4de8 14635 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
73b6d7a9 14636if test "x$ac_cv_func_sendfile" = xyes; then :
88cf4de8
ILT
14637
14638else
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14640$as_echo_n "checking for main in -lsendfile... " >&6; }
73b6d7a9 14641if ${ac_cv_lib_sendfile_main+:} false; then :
88cf4de8
ILT
14642 $as_echo_n "(cached) " >&6
14643else
14644 ac_check_lib_save_LIBS=$LIBS
14645LIBS="-lsendfile $LIBS"
14646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647/* end confdefs.h. */
14648
14649
14650int
14651main ()
14652{
14653return main ();
14654 ;
14655 return 0;
14656}
14657_ACEOF
14658if ac_fn_c_try_link "$LINENO"; then :
14659 ac_cv_lib_sendfile_main=yes
14660else
14661 ac_cv_lib_sendfile_main=no
14662fi
14663rm -f core conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext conftest.$ac_ext
14665LIBS=$ac_check_lib_save_LIBS
14666fi
14667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14668$as_echo "$ac_cv_lib_sendfile_main" >&6; }
73b6d7a9 14669if test "x$ac_cv_lib_sendfile_main" = xyes; then :
88cf4de8
ILT
14670 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14671fi
14672
14673fi
14674
f2ee78b8
ILT
14675 LIBS=$libgo_old_libs
14676
14677fi
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14679$as_echo "$libgo_cv_lib_sockets" >&6; }
14680NET_LIBS="$libgo_cv_lib_sockets"
14681
14682
6c94a9fa
ILT
14683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14684$as_echo_n "checking whether -pthread is supported... " >&6; }
73b6d7a9 14685if ${libgo_cv_lib_pthread+:} false; then :
6c94a9fa
ILT
14686 $as_echo_n "(cached) " >&6
14687else
14688 CFLAGS_hold=$CFLAGS
35e7db41 14689CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
6c94a9fa
ILT
14690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691/* end confdefs.h. */
14692int i;
14693_ACEOF
14694if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14695 libgo_cv_lib_pthread=yes
6c94a9fa 14696else
f2ee78b8 14697 libgo_cv_lib_pthread=no
6c94a9fa
ILT
14698fi
14699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700CFLAGS=$CFLAGS_hold
14701fi
f2ee78b8
ILT
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14703$as_echo "$libgo_cv_lib_pthread" >&6; }
6c94a9fa 14704PTHREAD_CFLAGS=
f2ee78b8 14705if test "$libgo_cv_lib_pthread" = yes; then
35e7db41
ILT
14706 # RISC-V apparently adds -latomic when using -pthread.
14707 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
6c94a9fa
ILT
14708fi
14709
14710
14711PTHREAD_LIBS=
14712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14713$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
73b6d7a9 14714if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6c94a9fa
ILT
14715 $as_echo_n "(cached) " >&6
14716else
14717 ac_check_lib_save_LIBS=$LIBS
14718LIBS="-lpthread $LIBS"
14719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720/* end confdefs.h. */
14721
14722/* Override any GCC internal prototype to avoid an error.
14723 Use char because int might match the return type of a GCC
14724 builtin and then its argument prototype would still apply. */
14725#ifdef __cplusplus
14726extern "C"
14727#endif
14728char pthread_create ();
14729int
14730main ()
14731{
14732return pthread_create ();
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737if ac_fn_c_try_link "$LINENO"; then :
14738 ac_cv_lib_pthread_pthread_create=yes
14739else
14740 ac_cv_lib_pthread_pthread_create=no
14741fi
14742rm -f core conftest.err conftest.$ac_objext \
14743 conftest$ac_exeext conftest.$ac_ext
14744LIBS=$ac_check_lib_save_LIBS
14745fi
14746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14747$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
73b6d7a9 14748if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6c94a9fa
ILT
14749 PTHREAD_LIBS=-lpthread
14750fi
14751
14752
14753
ed4ebabc
ILT
14754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14755$as_echo_n "checking for library containing sched_yield... " >&6; }
73b6d7a9 14756if ${ac_cv_search_sched_yield+:} false; then :
ed4ebabc
ILT
14757 $as_echo_n "(cached) " >&6
14758else
14759 ac_func_search_save_LIBS=$LIBS
14760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761/* end confdefs.h. */
14762
14763/* Override any GCC internal prototype to avoid an error.
14764 Use char because int might match the return type of a GCC
14765 builtin and then its argument prototype would still apply. */
14766#ifdef __cplusplus
14767extern "C"
14768#endif
14769char sched_yield ();
14770int
14771main ()
14772{
14773return sched_yield ();
14774 ;
14775 return 0;
14776}
14777_ACEOF
14778for ac_lib in '' rt; do
14779 if test -z "$ac_lib"; then
14780 ac_res="none required"
14781 else
14782 ac_res=-l$ac_lib
14783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14784 fi
14785 if ac_fn_c_try_link "$LINENO"; then :
14786 ac_cv_search_sched_yield=$ac_res
14787fi
14788rm -f core conftest.err conftest.$ac_objext \
14789 conftest$ac_exeext
73b6d7a9 14790 if ${ac_cv_search_sched_yield+:} false; then :
ed4ebabc
ILT
14791 break
14792fi
14793done
73b6d7a9 14794if ${ac_cv_search_sched_yield+:} false; then :
ed4ebabc
ILT
14795
14796else
14797 ac_cv_search_sched_yield=no
14798fi
14799rm conftest.$ac_ext
14800LIBS=$ac_func_search_save_LIBS
14801fi
14802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14803$as_echo "$ac_cv_search_sched_yield" >&6; }
14804ac_res=$ac_cv_search_sched_yield
14805if test "$ac_res" != no; then :
14806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14807
ae135907
ILT
14808fi
14809
14810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14811$as_echo_n "checking for library containing nanosleep... " >&6; }
73b6d7a9 14812if ${ac_cv_search_nanosleep+:} false; then :
ae135907
ILT
14813 $as_echo_n "(cached) " >&6
14814else
14815 ac_func_search_save_LIBS=$LIBS
14816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817/* end confdefs.h. */
14818
14819/* Override any GCC internal prototype to avoid an error.
14820 Use char because int might match the return type of a GCC
14821 builtin and then its argument prototype would still apply. */
14822#ifdef __cplusplus
14823extern "C"
14824#endif
14825char nanosleep ();
14826int
14827main ()
14828{
14829return nanosleep ();
14830 ;
14831 return 0;
14832}
14833_ACEOF
14834for ac_lib in '' rt; do
14835 if test -z "$ac_lib"; then
14836 ac_res="none required"
14837 else
14838 ac_res=-l$ac_lib
14839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14840 fi
14841 if ac_fn_c_try_link "$LINENO"; then :
14842 ac_cv_search_nanosleep=$ac_res
14843fi
14844rm -f core conftest.err conftest.$ac_objext \
14845 conftest$ac_exeext
73b6d7a9 14846 if ${ac_cv_search_nanosleep+:} false; then :
ae135907
ILT
14847 break
14848fi
14849done
73b6d7a9 14850if ${ac_cv_search_nanosleep+:} false; then :
ae135907
ILT
14851
14852else
14853 ac_cv_search_nanosleep=no
14854fi
14855rm conftest.$ac_ext
14856LIBS=$ac_func_search_save_LIBS
14857fi
14858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14859$as_echo "$ac_cv_search_nanosleep" >&6; }
14860ac_res=$ac_cv_search_nanosleep
14861if test "$ac_res" != no; then :
14862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14863
bbbe8b33
ILT
14864fi
14865
14866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14867$as_echo_n "checking for library containing clock_gettime... " >&6; }
73b6d7a9 14868if ${ac_cv_search_clock_gettime+:} false; then :
bbbe8b33
ILT
14869 $as_echo_n "(cached) " >&6
14870else
14871 ac_func_search_save_LIBS=$LIBS
14872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873/* end confdefs.h. */
14874
14875/* Override any GCC internal prototype to avoid an error.
14876 Use char because int might match the return type of a GCC
14877 builtin and then its argument prototype would still apply. */
14878#ifdef __cplusplus
14879extern "C"
14880#endif
14881char clock_gettime ();
14882int
14883main ()
14884{
14885return clock_gettime ();
14886 ;
14887 return 0;
14888}
14889_ACEOF
14890for ac_lib in '' rt; do
14891 if test -z "$ac_lib"; then
14892 ac_res="none required"
14893 else
14894 ac_res=-l$ac_lib
14895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14896 fi
14897 if ac_fn_c_try_link "$LINENO"; then :
14898 ac_cv_search_clock_gettime=$ac_res
14899fi
14900rm -f core conftest.err conftest.$ac_objext \
14901 conftest$ac_exeext
73b6d7a9 14902 if ${ac_cv_search_clock_gettime+:} false; then :
bbbe8b33
ILT
14903 break
14904fi
14905done
73b6d7a9 14906if ${ac_cv_search_clock_gettime+:} false; then :
bbbe8b33
ILT
14907
14908else
14909 ac_cv_search_clock_gettime=no
14910fi
14911rm conftest.$ac_ext
14912LIBS=$ac_func_search_save_LIBS
14913fi
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14915$as_echo "$ac_cv_search_clock_gettime" >&6; }
14916ac_res=$ac_cv_search_clock_gettime
14917if test "$ac_res" != no; then :
14918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14919
ed4ebabc
ILT
14920fi
14921
14922
7a938933
ILT
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14924$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
73b6d7a9 14925if ${ac_cv_c_bigendian+:} false; then :
7a938933
ILT
14926 $as_echo_n "(cached) " >&6
14927else
14928 ac_cv_c_bigendian=unknown
14929 # See if we're dealing with a universal compiler.
14930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931/* end confdefs.h. */
14932#ifndef __APPLE_CC__
14933 not a universal capable compiler
14934 #endif
14935 typedef int dummy;
14936
14937_ACEOF
14938if ac_fn_c_try_compile "$LINENO"; then :
14939
14940 # Check for potential -arch flags. It is not universal unless
14941 # there are at least two -arch flags with different values.
14942 ac_arch=
14943 ac_prev=
14944 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14945 if test -n "$ac_prev"; then
14946 case $ac_word in
14947 i?86 | x86_64 | ppc | ppc64)
14948 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14949 ac_arch=$ac_word
14950 else
14951 ac_cv_c_bigendian=universal
14952 break
14953 fi
14954 ;;
14955 esac
14956 ac_prev=
14957 elif test "x$ac_word" = "x-arch"; then
14958 ac_prev=arch
14959 fi
14960 done
14961fi
14962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963 if test $ac_cv_c_bigendian = unknown; then
14964 # See if sys/param.h defines the BYTE_ORDER macro.
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h. */
14967#include <sys/types.h>
14968 #include <sys/param.h>
14969
14970int
14971main ()
14972{
14973#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14974 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14975 && LITTLE_ENDIAN)
14976 bogus endian macros
14977 #endif
14978
14979 ;
14980 return 0;
14981}
14982_ACEOF
14983if ac_fn_c_try_compile "$LINENO"; then :
14984 # It does; now see whether it defined to BIG_ENDIAN or not.
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986/* end confdefs.h. */
14987#include <sys/types.h>
14988 #include <sys/param.h>
14989
14990int
14991main ()
14992{
14993#if BYTE_ORDER != BIG_ENDIAN
14994 not big endian
14995 #endif
14996
14997 ;
14998 return 0;
14999}
15000_ACEOF
15001if ac_fn_c_try_compile "$LINENO"; then :
15002 ac_cv_c_bigendian=yes
15003else
15004 ac_cv_c_bigendian=no
15005fi
15006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007fi
15008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15009 fi
15010 if test $ac_cv_c_bigendian = unknown; then
15011 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013/* end confdefs.h. */
15014#include <limits.h>
15015
15016int
15017main ()
15018{
15019#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15020 bogus endian macros
15021 #endif
15022
15023 ;
15024 return 0;
15025}
15026_ACEOF
15027if ac_fn_c_try_compile "$LINENO"; then :
15028 # It does; now see whether it defined to _BIG_ENDIAN or not.
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030/* end confdefs.h. */
15031#include <limits.h>
15032
15033int
15034main ()
15035{
15036#ifndef _BIG_ENDIAN
15037 not big endian
15038 #endif
15039
15040 ;
15041 return 0;
15042}
15043_ACEOF
15044if ac_fn_c_try_compile "$LINENO"; then :
15045 ac_cv_c_bigendian=yes
15046else
15047 ac_cv_c_bigendian=no
15048fi
15049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050fi
15051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 fi
15053 if test $ac_cv_c_bigendian = unknown; then
15054 # Compile a test program.
15055 if test "$cross_compiling" = yes; then :
15056 # Try to guess by grepping values from an object file.
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058/* end confdefs.h. */
15059short int ascii_mm[] =
15060 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15061 short int ascii_ii[] =
15062 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15063 int use_ascii (int i) {
15064 return ascii_mm[i] + ascii_ii[i];
15065 }
15066 short int ebcdic_ii[] =
15067 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15068 short int ebcdic_mm[] =
15069 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15070 int use_ebcdic (int i) {
15071 return ebcdic_mm[i] + ebcdic_ii[i];
15072 }
15073 extern int foo;
15074
15075int
15076main ()
15077{
15078return use_ascii (foo) == use_ebcdic (foo);
15079 ;
15080 return 0;
15081}
15082_ACEOF
15083if ac_fn_c_try_compile "$LINENO"; then :
15084 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15085 ac_cv_c_bigendian=yes
15086 fi
15087 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15088 if test "$ac_cv_c_bigendian" = unknown; then
15089 ac_cv_c_bigendian=no
15090 else
15091 # finding both strings is unlikely to happen, but who knows?
15092 ac_cv_c_bigendian=unknown
15093 fi
15094 fi
15095fi
15096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097else
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099/* end confdefs.h. */
15100$ac_includes_default
15101int
15102main ()
15103{
15104
15105 /* Are we little or big endian? From Harbison&Steele. */
15106 union
15107 {
15108 long int l;
15109 char c[sizeof (long int)];
15110 } u;
15111 u.l = 1;
15112 return u.c[sizeof (long int) - 1] == 1;
15113
15114 ;
15115 return 0;
15116}
15117_ACEOF
15118if ac_fn_c_try_run "$LINENO"; then :
15119 ac_cv_c_bigendian=no
15120else
15121 ac_cv_c_bigendian=yes
15122fi
15123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15124 conftest.$ac_objext conftest.beam conftest.$ac_ext
15125fi
15126
15127 fi
15128fi
15129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15130$as_echo "$ac_cv_c_bigendian" >&6; }
15131 case $ac_cv_c_bigendian in #(
15132 yes)
15133 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15134;; #(
15135 no)
15136 ;; #(
15137 universal)
15138
15139$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15140
15141 ;; #(
15142 *)
73b6d7a9 15143 as_fn_error $? "unknown endianness
7a938933
ILT
15144 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15145 esac
15146
15147
54f0deb0
ILT
15148
15149
15150# Check whether --with-system-libunwind was given.
15151if test "${with_system_libunwind+set}" = set; then :
15152 withval=$with_system_libunwind;
15153fi
15154
15155 # If system-libunwind was not specifically set, pick a default setting.
15156 if test x$with_system_libunwind = x; then
15157 case ${target} in
15158 ia64-*-hpux*) with_system_libunwind=yes ;;
15159 *) with_system_libunwind=no ;;
15160 esac
15161 fi
15162 # Based on system-libunwind and target, do we have ipinfo?
15163 if test x$with_system_libunwind = xyes; then
15164 case ${target} in
15165 ia64-*-*) have_unwind_getipinfo=no ;;
15166 *) have_unwind_getipinfo=yes ;;
15167 esac
15168 else
15169 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15170
15171 case ${target} in
15172 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
15173 *) have_unwind_getipinfo=yes ;;
15174 esac
15175
15176 fi
15177
15178 if test x$have_unwind_getipinfo = xyes; then
15179
15180$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15181
15182 fi
15183
7a938933 15184
6222bddc 15185for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
7a938933
ILT
15186do :
15187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15188ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
73b6d7a9 15189if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7a938933
ILT
15190 cat >>confdefs.h <<_ACEOF
15191#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15192_ACEOF
15193
15194fi
15195
15196done
15197
adb0401d 15198
6222bddc
ILT
15199for ac_header in netinet/icmp6.h
15200do :
15201 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15202
15203"
73b6d7a9 15204if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
6222bddc
ILT
15205 cat >>confdefs.h <<_ACEOF
15206#define HAVE_NETINET_ICMP6_H 1
15207_ACEOF
15208
15209fi
15210
15211done
15212
15213
1410c222 15214for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
adb0401d
ILT
15215do :
15216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15217ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15218#include <sys/socket.h>
15219#endif
15220
15221"
73b6d7a9 15222if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
adb0401d
ILT
15223 cat >>confdefs.h <<_ACEOF
15224#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15225_ACEOF
15226
15227fi
15228
15229done
15230
15231
7a938933
ILT
15232 if test "$ac_cv_header_sys_mman_h" = yes; then
15233 HAVE_SYS_MMAN_H_TRUE=
15234 HAVE_SYS_MMAN_H_FALSE='#'
15235else
15236 HAVE_SYS_MMAN_H_TRUE='#'
15237 HAVE_SYS_MMAN_H_FALSE=
15238fi
15239
8955c80a 15240
d8ccfadb 15241for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
7a938933
ILT
15242do :
15243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15244ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
73b6d7a9 15245if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7a938933
ILT
15246 cat >>confdefs.h <<_ACEOF
15247#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15248_ACEOF
15249
15250fi
15251done
15252
8955c80a
ILT
15253 if test "$ac_cv_func_strerror_r" = yes; then
15254 HAVE_STRERROR_R_TRUE=
15255 HAVE_STRERROR_R_FALSE='#'
15256else
15257 HAVE_STRERROR_R_TRUE='#'
15258 HAVE_STRERROR_R_FALSE=
15259fi
15260
0b3189e7
ILT
15261 if test "$ac_cv_func_wait4" = yes; then
15262 HAVE_WAIT4_TRUE=
15263 HAVE_WAIT4_FALSE='#'
15264else
15265 HAVE_WAIT4_TRUE='#'
15266 HAVE_WAIT4_FALSE=
15267fi
15268
7a938933 15269
f163907e 15270for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice syscall tee unlinkat unshare utimensat
e02ed81e
ILT
15271do :
15272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15273ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
73b6d7a9 15274if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e02ed81e
ILT
15275 cat >>confdefs.h <<_ACEOF
15276#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15277_ACEOF
15278
15279fi
15280done
15281
5d46bf05 15282ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
73b6d7a9 15283if test "x$ac_cv_type_off_t" = xyes; then :
5d46bf05
ILT
15284
15285else
15286
15287cat >>confdefs.h <<_ACEOF
15288#define off_t long int
15289_ACEOF
15290
15291fi
15292
e02ed81e 15293ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
73b6d7a9 15294if test "x$ac_cv_type_loff_t" = xyes; then :
e02ed81e
ILT
15295
15296cat >>confdefs.h <<_ACEOF
15297#define HAVE_LOFF_T 1
15298_ACEOF
15299
15300
15301fi
15302
15303
324612b3
ILT
15304LIBS_hold="$LIBS"
15305LIBS="$LIBS -lm"
15306for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15307do :
15308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15309ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
73b6d7a9 15310if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
324612b3
ILT
15311 cat >>confdefs.h <<_ACEOF
15312#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15313_ACEOF
15314
15315fi
15316done
15317
15318LIBS="$LIBS_hold"
15319
08ee945e
ILT
15320CFLAGS_hold="$CFLAGS"
15321CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15322LIBS_hold="$LIBS"
15323LIBS="$LIBS $PTHREAD_LIBS"
15324for ac_func in sem_timedwait
15325do :
15326 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
73b6d7a9 15327if test "x$ac_cv_func_sem_timedwait" = xyes; then :
08ee945e
ILT
15328 cat >>confdefs.h <<_ACEOF
15329#define HAVE_SEM_TIMEDWAIT 1
15330_ACEOF
15331
15332fi
15333done
15334
15335CFLAGS="$CFLAGS_hold"
15336LIBS="$LIBS_hold"
15337
d2b480bc
ILT
15338LIBS_hold="$LIBS"
15339LIBS="$LIBS $MATH_LIBS"
15340for ac_func in matherr
15341do :
15342 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
73b6d7a9 15343if test "x$ac_cv_func_matherr" = xyes; then :
d2b480bc
ILT
15344 cat >>confdefs.h <<_ACEOF
15345#define HAVE_MATHERR 1
15346_ACEOF
15347
15348fi
15349done
15350
15351LIBS="$LIBS_hold"
15352
7a938933
ILT
15353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15354$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
73b6d7a9 15355if ${libgo_cv_c_stringops+:} false; then :
7a938933
ILT
15356 $as_echo_n "(cached) " >&6
15357else
15358 CFLAGS_hold=$CFLAGS
15359CFLAGS="$CFLAGS -minline-all-stringops"
15360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361/* end confdefs.h. */
15362int i;
15363_ACEOF
15364if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 15365 libgo_cv_c_stringops=yes
7a938933 15366else
f2ee78b8 15367 libgo_cv_c_stringops=no
7a938933
ILT
15368fi
15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370CFLAGS=$CFLAGS_hold
15371fi
f2ee78b8
ILT
15372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15373$as_echo "$libgo_cv_c_stringops" >&6; }
7a938933 15374STRINGOPS_FLAG=
f2ee78b8 15375if test "$libgo_cv_c_stringops" = yes; then
7a938933
ILT
15376 STRINGOPS_FLAG=-minline-all-stringops
15377fi
15378
15379
9d465faf
ILT
15380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15381$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
73b6d7a9 15382if ${libgo_cv_c_fancymath+:} false; then :
9d465faf
ILT
15383 $as_echo_n "(cached) " >&6
15384else
15385 CFLAGS_hold=$CFLAGS
15386CFLAGS="$CFLAGS -mfancy-math-387"
15387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388/* end confdefs.h. */
15389int i;
15390_ACEOF
15391if ac_fn_c_try_compile "$LINENO"; then :
15392 libgo_cv_c_fancymath=yes
15393else
15394 libgo_cv_c_fancymath=no
15395fi
15396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397CFLAGS=$CFLAGS_hold
15398fi
15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15400$as_echo "$libgo_cv_c_fancymath" >&6; }
15401MATH_FLAG=
15402if test "$libgo_cv_c_fancymath" = yes; then
28f3c814 15403 MATH_FLAG="-mfancy-math-387"
9d465faf 15404fi
28f3c814 15405MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
9d465faf
ILT
15406
15407
7a938933
ILT
15408CFLAGS_hold=$CFLAGS
15409CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15410ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
73b6d7a9 15411if test "x$ac_cv_type_off64_t" = xyes; then :
7a938933
ILT
15412
15413cat >>confdefs.h <<_ACEOF
15414#define HAVE_OFF64_T 1
15415_ACEOF
15416
15417
15418fi
15419
15420CFLAGS=$CFLAGS_hold
15421
207c35fa
ILT
15422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15423$as_echo_n "checking epoll_event size... " >&6; }
73b6d7a9 15424if ${libgo_cv_c_epoll_event_size+:} false; then :
207c35fa
ILT
15425 $as_echo_n "(cached) " >&6
15426else
15427 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15428
15429else
15430 libgo_cv_c_epoll_event_size=0
15431fi
15432
15433fi
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15435$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15436SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15437
15438
15439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15440$as_echo_n "checking epoll_event data.fd offset... " >&6; }
73b6d7a9 15441if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
207c35fa
ILT
15442 $as_echo_n "(cached) " >&6
15443else
15444 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15445#include <sys/epoll.h>"; then :
15446
15447else
15448 libgo_cv_c_epoll_event_fd_offset=0
15449fi
15450
15451fi
15452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15453$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15454STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15455
15456
476013d6
ILT
15457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458/* end confdefs.h. */
15459#include <sys/stat.h>
15460
15461_ACEOF
15462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15463 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15464 have_stat_timespec=yes
15465else
15466 have_stat_timespec=no
15467fi
15468rm -f conftest*
15469
15470 if test $have_stat_timespec = yes; then
15471 HAVE_STAT_TIMESPEC_TRUE=
15472 HAVE_STAT_TIMESPEC_FALSE='#'
15473else
15474 HAVE_STAT_TIMESPEC_TRUE='#'
15475 HAVE_STAT_TIMESPEC_FALSE=
15476fi
15477
15478
d2b480bc
ILT
15479ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15480"
73b6d7a9 15481if test "x$ac_cv_type_struct_exception" = xyes; then :
d2b480bc
ILT
15482 libgo_has_struct_exception=yes
15483else
15484 libgo_has_struct_exception=no
15485fi
15486
15487if test "$libgo_has_struct_exception" = "yes"; then
15488
15489$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15490
15491fi
15492
7f57843f
ILT
15493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15494$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
73b6d7a9 15495if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
7f57843f
ILT
15496 $as_echo_n "(cached) " >&6
15497else
e6c5817d
ILT
15498 CFLAGS_hold="$CFLAGS"
15499CFLAGS="$PTHREAD_CFLAGS"
15500LIBS_hold="$LIBS"
7f57843f 15501LIBS="$LIBS $PTHREAD_LIBS"
e6c5817d
ILT
15502# The cast to long int works around a bug in the HP C Compiler
15503# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15504# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15505# This bug is HP SR number 8606223364.
15506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15507$as_echo_n "checking size of void *... " >&6; }
73b6d7a9 15508if ${ac_cv_sizeof_void_p+:} false; then :
e6c5817d
ILT
15509 $as_echo_n "(cached) " >&6
15510else
15511 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15512
15513else
15514 if test "$ac_cv_type_void_p" = yes; then
15515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
15517as_fn_error 77 "cannot compute sizeof (void *)
15518See \`config.log' for more details" "$LINENO" 5; }
e6c5817d
ILT
15519 else
15520 ac_cv_sizeof_void_p=0
15521 fi
15522fi
15523
15524fi
15525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15526$as_echo "$ac_cv_sizeof_void_p" >&6; }
15527
15528
15529
15530cat >>confdefs.h <<_ACEOF
15531#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15532_ACEOF
15533
15534
15535as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
7f57843f 15536if test "$cross_compiling" = yes; then :
e6c5817d
ILT
15537 case "$target:$ptr_type_size" in
15538 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15539 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15540 *)
15541 libgo_cv_lib_setcontext_clobbers_tls=no ;;
7f57843f
ILT
15542 esac
15543
15544else
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546/* end confdefs.h. */
15547
15548#include <pthread.h>
15549#include <stdlib.h>
15550#include <ucontext.h>
15551#include <unistd.h>
15552
15553__thread int tls;
15554
15555static char stack[10 * 1024 * 1024];
15556static ucontext_t c;
15557
15558/* Called via makecontext/setcontext. */
15559
15560static void
15561cfn (void)
15562{
15563 exit (tls);
15564}
15565
15566/* Called via pthread_create. */
15567
15568static void *
15569tfn (void *dummy)
15570{
15571 /* The thread should still see this value after calling
15572 setcontext. */
15573 tls = 0;
15574
15575 setcontext (&c);
15576
15577 /* The call to setcontext should not return. */
15578 abort ();
15579}
15580
15581int
15582main ()
15583{
15584 pthread_t tid;
15585
15586 /* The thread should not see this value. */
15587 tls = 1;
15588
15589 if (getcontext (&c) < 0)
15590 abort ();
15591
15592 c.uc_stack.ss_sp = stack;
ca59d219
ILT
15593#ifdef MAKECONTEXT_STACK_TOP
15594 c.uc_stack.ss_sp += sizeof stack;
15595#endif
7f57843f
ILT
15596 c.uc_stack.ss_flags = 0;
15597 c.uc_stack.ss_size = sizeof stack;
15598 c.uc_link = NULL;
15599 makecontext (&c, cfn, 0);
15600
15601 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15602 abort ();
15603
15604 if (pthread_join (tid, NULL) != 0)
15605 abort ();
15606
15607 /* The thread should have called exit. */
15608 abort ();
15609}
15610
15611_ACEOF
15612if ac_fn_c_try_run "$LINENO"; then :
15613 libgo_cv_lib_setcontext_clobbers_tls=no
15614else
15615 libgo_cv_lib_setcontext_clobbers_tls=yes
15616fi
15617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15618 conftest.$ac_objext conftest.beam conftest.$ac_ext
15619fi
15620
e6c5817d 15621CFLAGS="$CFLAGS_hold"
7f57843f
ILT
15622LIBS="$LIBS_hold"
15623
15624fi
15625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15626$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15627if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15628
15629$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15630
15631fi
15632
cc1a9ac8
ILT
15633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15634$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
73b6d7a9 15635if ${libgo_cv_ro_eh_frame+:} false; then :
cc1a9ac8
ILT
15636 $as_echo_n "(cached) " >&6
15637else
15638
15639libgo_cv_ro_eh_frame=no
15640echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15641if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15642 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15643 libgo_cv_ro_eh_frame=yes
15644 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15645 | grep -v '#write' > /dev/null; then
15646 libgo_cv_ro_eh_frame=yes
15647 fi
15648fi
15649rm -f conftest.*
15650
15651fi
15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15653$as_echo "$libgo_cv_ro_eh_frame" >&6; }
15654if test "x$libgo_cv_ro_eh_frame" = xyes; then
15655
15656$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15657
15658else
15659
15660$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15661
15662fi
15663
a819231d
ILT
15664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15665$as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
73b6d7a9 15666if ${libgo_cv_c_unused_arguments+:} false; then :
a819231d
ILT
15667 $as_echo_n "(cached) " >&6
15668else
15669 CFLAGS_hold=$CFLAGS
15670CFLAGS="$CFLAGS -Qunused-arguments"
15671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672/* end confdefs.h. */
15673int i;
15674_ACEOF
15675if ac_fn_c_try_compile "$LINENO"; then :
15676 libgo_cv_c_unused_arguments=yes
15677else
15678 libgo_cv_c_unused_arguments=no
15679fi
15680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681CFLAGS=$CFLAGS_hold
15682fi
15683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15684$as_echo "$libgo_cv_c_unused_arguments" >&6; }
15685
cc1a9ac8
ILT
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15687$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
73b6d7a9 15688if ${libgo_cv_as_comdat_gnu+:} false; then :
cc1a9ac8
ILT
15689 $as_echo_n "(cached) " >&6
15690else
15691
15692echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
a819231d
ILT
15693CFLAGS_hold=$CFLAGS
15694if test "$libgo_cv_c_unused_arguments" = yes; then
15695 CFLAGS="$CFLAGS -Qunused-arguments"
15696fi
cc1a9ac8
ILT
15697if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15698 libgo_cv_as_comdat_gnu=yes
15699else
15700 libgo_cv_as_comdat_gnu=no
15701fi
a819231d 15702CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15703
15704fi
15705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15706$as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15707if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15708
15709$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15710
15711fi
15712
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15714$as_echo_n "checking assembler supports pc related relocs... " >&6; }
73b6d7a9 15715if ${libgo_cv_as_x86_pcrel+:} false; then :
cc1a9ac8
ILT
15716 $as_echo_n "(cached) " >&6
15717else
15718
15719libgo_cv_as_x86_pcrel=yes
15720echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
a819231d
ILT
15721CFLAGS_hold=$CFLAGS
15722if test "$libgo_cv_c_unused_arguments" = yes; then
15723 CFLAGS="$CFLAGS -Qunused-arguments"
15724fi
cc1a9ac8
ILT
15725if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15726 libgo_cv_as_x86_pcrel=no
15727fi
a819231d 15728CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15729
15730fi
15731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15732$as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15733if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15734
15735$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15736
15737fi
15738
15739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15740$as_echo_n "checking assembler supports unwind section type... " >&6; }
73b6d7a9 15741if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
cc1a9ac8
ILT
15742 $as_echo_n "(cached) " >&6
15743else
15744
15745libgo_cv_as_x86_64_unwind_section_type=yes
15746echo '.section .eh_frame,"a",@unwind' > conftest.s
a819231d
ILT
15747CFLAGS_hold=$CFLAGS
15748if test "$libgo_cv_c_unused_arguments" = yes; then
15749 CFLAGS="$CFLAGS -Qunused-arguments"
15750fi
cc1a9ac8
ILT
15751if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15752 libgo_cv_as_x86_64_unwind_section_type=no
15753fi
a819231d 15754CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15755
15756fi
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15758$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15759if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15760
15761$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15762
15763fi
15764
b379f8d8
ILT
15765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15766$as_echo_n "checking assembler supports AES instructions... " >&6; }
73b6d7a9 15767if ${libgo_cv_as_x86_aes+:} false; then :
b379f8d8
ILT
15768 $as_echo_n "(cached) " >&6
15769else
15770
15771libgo_cv_as_x86_aes=yes
15772echo 'aesenc %xmm0, %xmm1' > conftest.s
15773CFLAGS_hold=$CFLAGS
15774if test "$libgo_cv_c_unused_arguments" = yes; then
15775 CFLAGS="$CFLAGS -Qunused-arguments"
15776fi
15777if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15778 libgo_cv_as_x86_aes=no
15779fi
15780CFLAGS=$CFLAGS_hold
15781
15782fi
15783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15784$as_echo "$libgo_cv_as_x86_aes" >&6; }
15785if test "x$libgo_cv_as_x86_aes" = xyes; then
15786
15787$as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15788
15789fi
15790
7a938933
ILT
15791cat >confcache <<\_ACEOF
15792# This file is a shell script that caches the results of configure
15793# tests run on this system so they can be shared between configure
15794# scripts and configure runs, see configure's option --config-cache.
15795# It is not useful on other systems. If it contains results you don't
15796# want to keep, you may remove or edit it.
15797#
15798# config.status only pays attention to the cache file if you give it
15799# the --recheck option to rerun configure.
15800#
15801# `ac_cv_env_foo' variables (set or unset) will be overridden when
15802# loading this file, other *unset* `ac_cv_foo' will be assigned the
15803# following values.
15804
15805_ACEOF
15806
15807# The following way of writing the cache mishandles newlines in values,
15808# but we know of no workaround that is simple, portable, and efficient.
15809# So, we kill variables containing newlines.
15810# Ultrix sh set writes to stderr and can't be redirected directly,
15811# and sets the high bit in the cache file unless we assign to the vars.
15812(
15813 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15814 eval ac_val=\$$ac_var
15815 case $ac_val in #(
15816 *${as_nl}*)
15817 case $ac_var in #(
15818 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15819$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15820 esac
15821 case $ac_var in #(
15822 _ | IFS | as_nl) ;; #(
15823 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15824 *) { eval $ac_var=; unset $ac_var;} ;;
15825 esac ;;
15826 esac
15827 done
15828
15829 (set) 2>&1 |
15830 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15831 *${as_nl}ac_space=\ *)
15832 # `set' does not quote correctly, so add quotes: double-quote
15833 # substitution turns \\\\ into \\, and sed turns \\ into \.
15834 sed -n \
15835 "s/'/'\\\\''/g;
15836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15837 ;; #(
15838 *)
15839 # `set' quotes correctly as required by POSIX, so do not add quotes.
15840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15841 ;;
15842 esac |
15843 sort
15844) |
15845 sed '
15846 /^ac_cv_env_/b end
15847 t clear
15848 :clear
15849 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15850 t end
15851 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15852 :end' >>confcache
15853if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15854 if test -w "$cache_file"; then
73b6d7a9 15855 if test "x$cache_file" != "x/dev/null"; then
7a938933
ILT
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15857$as_echo "$as_me: updating cache $cache_file" >&6;}
73b6d7a9
ILT
15858 if test ! -f "$cache_file" || test -h "$cache_file"; then
15859 cat confcache >"$cache_file"
15860 else
15861 case $cache_file in #(
15862 */* | ?:*)
15863 mv -f confcache "$cache_file"$$ &&
15864 mv -f "$cache_file"$$ "$cache_file" ;; #(
15865 *)
15866 mv -f confcache "$cache_file" ;;
15867 esac
15868 fi
15869 fi
7a938933
ILT
15870 else
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15872$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15873 fi
15874fi
15875rm -f confcache
15876
15877if test ${multilib} = yes; then
15878 multilib_arg="--enable-multilib"
15879else
15880 multilib_arg=
15881fi
15882
b72813a6 15883ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
7a938933
ILT
15884
15885
15886ac_config_commands="$ac_config_commands default"
15887
15888
15889cat >confcache <<\_ACEOF
15890# This file is a shell script that caches the results of configure
15891# tests run on this system so they can be shared between configure
15892# scripts and configure runs, see configure's option --config-cache.
15893# It is not useful on other systems. If it contains results you don't
15894# want to keep, you may remove or edit it.
15895#
15896# config.status only pays attention to the cache file if you give it
15897# the --recheck option to rerun configure.
15898#
15899# `ac_cv_env_foo' variables (set or unset) will be overridden when
15900# loading this file, other *unset* `ac_cv_foo' will be assigned the
15901# following values.
15902
15903_ACEOF
15904
15905# The following way of writing the cache mishandles newlines in values,
15906# but we know of no workaround that is simple, portable, and efficient.
15907# So, we kill variables containing newlines.
15908# Ultrix sh set writes to stderr and can't be redirected directly,
15909# and sets the high bit in the cache file unless we assign to the vars.
15910(
15911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15912 eval ac_val=\$$ac_var
15913 case $ac_val in #(
15914 *${as_nl}*)
15915 case $ac_var in #(
15916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15917$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15918 esac
15919 case $ac_var in #(
15920 _ | IFS | as_nl) ;; #(
15921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15922 *) { eval $ac_var=; unset $ac_var;} ;;
15923 esac ;;
15924 esac
15925 done
15926
15927 (set) 2>&1 |
15928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15929 *${as_nl}ac_space=\ *)
15930 # `set' does not quote correctly, so add quotes: double-quote
15931 # substitution turns \\\\ into \\, and sed turns \\ into \.
15932 sed -n \
15933 "s/'/'\\\\''/g;
15934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15935 ;; #(
15936 *)
15937 # `set' quotes correctly as required by POSIX, so do not add quotes.
15938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15939 ;;
15940 esac |
15941 sort
15942) |
15943 sed '
15944 /^ac_cv_env_/b end
15945 t clear
15946 :clear
15947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15948 t end
15949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15950 :end' >>confcache
15951if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15952 if test -w "$cache_file"; then
73b6d7a9 15953 if test "x$cache_file" != "x/dev/null"; then
7a938933
ILT
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15955$as_echo "$as_me: updating cache $cache_file" >&6;}
73b6d7a9
ILT
15956 if test ! -f "$cache_file" || test -h "$cache_file"; then
15957 cat confcache >"$cache_file"
15958 else
15959 case $cache_file in #(
15960 */* | ?:*)
15961 mv -f confcache "$cache_file"$$ &&
15962 mv -f "$cache_file"$$ "$cache_file" ;; #(
15963 *)
15964 mv -f confcache "$cache_file" ;;
15965 esac
15966 fi
15967 fi
7a938933
ILT
15968 else
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15970$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15971 fi
15972fi
15973rm -f confcache
15974
15975test "x$prefix" = xNONE && prefix=$ac_default_prefix
15976# Let make expand exec_prefix.
15977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15978
15979DEFS=-DHAVE_CONFIG_H
15980
15981ac_libobjs=
15982ac_ltlibobjs=
73b6d7a9 15983U=
7a938933
ILT
15984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15985 # 1. Remove the extension, and $U if already installed.
15986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15989 # will be set to the directory where LIBOBJS objects are built.
15990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15992done
15993LIBOBJS=$ac_libobjs
15994
15995LTLIBOBJS=$ac_ltlibobjs
15996
15997
73b6d7a9
ILT
15998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15999$as_echo_n "checking that generated files are newer than configure... " >&6; }
16000 if test -n "$am_sleep_pid"; then
16001 # Hide warnings about reused PIDs.
16002 wait $am_sleep_pid 2>/dev/null
16003 fi
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16005$as_echo "done" >&6; }
7a938933
ILT
16006 if test -n "$EXEEXT"; then
16007 am__EXEEXT_TRUE=
16008 am__EXEEXT_FALSE='#'
16009else
16010 am__EXEEXT_TRUE='#'
16011 am__EXEEXT_FALSE=
16012fi
16013
16014if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
73b6d7a9 16015 as_fn_error $? "conditional \"AMDEP\" was never defined.
7a938933
ILT
16016Usually this means the macro was only invoked conditionally." "$LINENO" 5
16017fi
16018if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
73b6d7a9 16019 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7a938933 16020Usually this means the macro was only invoked conditionally." "$LINENO" 5
4d12cf3c
ILT
16021fi
16022if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16023 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16024Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
16025fi
16026if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
73b6d7a9 16027 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7a938933
ILT
16028Usually this means the macro was only invoked conditionally." "$LINENO" 5
16029fi
5302cd02 16030if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
73b6d7a9 16031 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
5302cd02
ILT
16032Usually this means the macro was only invoked conditionally." "$LINENO" 5
16033fi
7a938933 16034if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
73b6d7a9 16035 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
7a938933
ILT
16036Usually this means the macro was only invoked conditionally." "$LINENO" 5
16037fi
16038if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
73b6d7a9 16039 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
7a938933 16040Usually this means the macro was only invoked conditionally." "$LINENO" 5
654d2ec0
ILT
16041fi
16042if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
73b6d7a9 16043 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
654d2ec0 16044Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
16045fi
16046if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
73b6d7a9 16047 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
7a938933
ILT
16048Usually this means the macro was only invoked conditionally." "$LINENO" 5
16049fi
df4aa89a 16050if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
73b6d7a9 16051 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
df4aa89a
ILT
16052Usually this means the macro was only invoked conditionally." "$LINENO" 5
16053fi
4ccad563 16054if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
73b6d7a9 16055 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
4ccad563
ILT
16056Usually this means the macro was only invoked conditionally." "$LINENO" 5
16057fi
f038dae6 16058if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
73b6d7a9 16059 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
f038dae6
ILT
16060Usually this means the macro was only invoked conditionally." "$LINENO" 5
16061fi
7a938933 16062if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
73b6d7a9 16063 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
7a938933
ILT
16064Usually this means the macro was only invoked conditionally." "$LINENO" 5
16065fi
f2ee78b8 16066if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
73b6d7a9 16067 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
7a938933
ILT
16068Usually this means the macro was only invoked conditionally." "$LINENO" 5
16069fi
f163907e 16070if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
73b6d7a9 16071 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
f163907e
ILT
16072Usually this means the macro was only invoked conditionally." "$LINENO" 5
16073fi
d9f0237f
ILT
16074if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16075 as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
16076Usually this means the macro was only invoked conditionally." "$LINENO" 5
16077fi
22b955cc 16078if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
73b6d7a9 16079 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
22b955cc
ILT
16080Usually this means the macro was only invoked conditionally." "$LINENO" 5
16081fi
de0f55db
ILT
16082if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16083 as_fn_error $? "conditional \"LIBGO_IS_X86\" was never defined.
16084Usually this means the macro was only invoked conditionally." "$LINENO" 5
16085fi
7a938933 16086if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
73b6d7a9 16087 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
7a938933 16088Usually this means the macro was only invoked conditionally." "$LINENO" 5
4c46b5f0
ILT
16089fi
16090if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
73b6d7a9 16091 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
4c46b5f0 16092Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
16093fi
16094
16095if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
73b6d7a9 16096 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
7a938933
ILT
16097Usually this means the macro was only invoked conditionally." "$LINENO" 5
16098fi
8955c80a 16099if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
73b6d7a9 16100 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
8955c80a
ILT
16101Usually this means the macro was only invoked conditionally." "$LINENO" 5
16102fi
0b3189e7 16103if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
73b6d7a9 16104 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
0b3189e7
ILT
16105Usually this means the macro was only invoked conditionally." "$LINENO" 5
16106fi
476013d6 16107if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
73b6d7a9 16108 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
476013d6
ILT
16109Usually this means the macro was only invoked conditionally." "$LINENO" 5
16110fi
7a938933 16111
73b6d7a9 16112: "${CONFIG_STATUS=./config.status}"
7a938933
ILT
16113ac_write_fail=0
16114ac_clean_files_save=$ac_clean_files
16115ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16116{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16117$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16118as_write_fail=0
16119cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16120#! $SHELL
16121# Generated by $as_me.
16122# Run this file to recreate the current configuration.
16123# Compiler output produced by configure, useful for debugging
16124# configure, is in config.log if it exists.
16125
16126debug=false
16127ac_cs_recheck=false
16128ac_cs_silent=false
16129
16130SHELL=\${CONFIG_SHELL-$SHELL}
16131export SHELL
16132_ASEOF
16133cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16134## -------------------- ##
16135## M4sh Initialization. ##
16136## -------------------- ##
16137
16138# Be more Bourne compatible
16139DUALCASE=1; export DUALCASE # for MKS sh
16140if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16141 emulate sh
16142 NULLCMD=:
16143 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16144 # is contrary to our usage. Disable this feature.
16145 alias -g '${1+"$@"}'='"$@"'
16146 setopt NO_GLOB_SUBST
16147else
16148 case `(set -o) 2>/dev/null` in #(
16149 *posix*) :
16150 set -o posix ;; #(
16151 *) :
16152 ;;
16153esac
16154fi
16155
16156
16157as_nl='
16158'
16159export as_nl
16160# Printing a long string crashes Solaris 7 /usr/bin/printf.
16161as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16162as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16163as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16164# Prefer a ksh shell builtin over an external printf program on Solaris,
16165# but without wasting forks for bash or zsh.
16166if test -z "$BASH_VERSION$ZSH_VERSION" \
16167 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16168 as_echo='print -r --'
16169 as_echo_n='print -rn --'
16170elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16171 as_echo='printf %s\n'
16172 as_echo_n='printf %s'
16173else
16174 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16175 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16176 as_echo_n='/usr/ucb/echo -n'
16177 else
16178 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16179 as_echo_n_body='eval
16180 arg=$1;
16181 case $arg in #(
16182 *"$as_nl"*)
16183 expr "X$arg" : "X\\(.*\\)$as_nl";
16184 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16185 esac;
16186 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16187 '
16188 export as_echo_n_body
16189 as_echo_n='sh -c $as_echo_n_body as_echo'
16190 fi
16191 export as_echo_body
16192 as_echo='sh -c $as_echo_body as_echo'
16193fi
16194
16195# The user is always right.
16196if test "${PATH_SEPARATOR+set}" != set; then
16197 PATH_SEPARATOR=:
16198 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16199 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16200 PATH_SEPARATOR=';'
16201 }
16202fi
16203
16204
16205# IFS
16206# We need space, tab and new line, in precisely that order. Quoting is
16207# there to prevent editors from complaining about space-tab.
16208# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16209# splitting by setting IFS to empty value.)
16210IFS=" "" $as_nl"
16211
16212# Find who we are. Look in the path if we contain no directory separator.
73b6d7a9 16213as_myself=
7a938933
ILT
16214case $0 in #((
16215 *[\\/]* ) as_myself=$0 ;;
16216 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16217for as_dir in $PATH
16218do
16219 IFS=$as_save_IFS
16220 test -z "$as_dir" && as_dir=.
16221 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16222 done
16223IFS=$as_save_IFS
16224
16225 ;;
16226esac
16227# We did not find ourselves, most probably we were run as `sh COMMAND'
16228# in which case we are not to be found in the path.
16229if test "x$as_myself" = x; then
16230 as_myself=$0
16231fi
16232if test ! -f "$as_myself"; then
16233 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16234 exit 1
16235fi
16236
16237# Unset variables that we do not need and which cause bugs (e.g. in
16238# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16239# suppresses any "Segmentation fault" message there. '((' could
16240# trigger a bug in pdksh 5.2.14.
16241for as_var in BASH_ENV ENV MAIL MAILPATH
16242do eval test x\${$as_var+set} = xset \
16243 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16244done
16245PS1='$ '
16246PS2='> '
16247PS4='+ '
16248
16249# NLS nuisances.
16250LC_ALL=C
16251export LC_ALL
16252LANGUAGE=C
16253export LANGUAGE
16254
16255# CDPATH.
16256(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16257
16258
73b6d7a9
ILT
16259# as_fn_error STATUS ERROR [LINENO LOG_FD]
16260# ----------------------------------------
7a938933
ILT
16261# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16262# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
73b6d7a9 16263# script with STATUS, using 1 if that was 0.
7a938933
ILT
16264as_fn_error ()
16265{
73b6d7a9
ILT
16266 as_status=$1; test $as_status -eq 0 && as_status=1
16267 if test "$4"; then
16268 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16269 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7a938933 16270 fi
73b6d7a9 16271 $as_echo "$as_me: error: $2" >&2
7a938933
ILT
16272 as_fn_exit $as_status
16273} # as_fn_error
16274
16275
16276# as_fn_set_status STATUS
16277# -----------------------
16278# Set $? to STATUS, without forking.
16279as_fn_set_status ()
16280{
16281 return $1
16282} # as_fn_set_status
16283
16284# as_fn_exit STATUS
16285# -----------------
16286# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16287as_fn_exit ()
16288{
16289 set +e
16290 as_fn_set_status $1
16291 exit $1
16292} # as_fn_exit
16293
16294# as_fn_unset VAR
16295# ---------------
16296# Portably unset VAR.
16297as_fn_unset ()
16298{
16299 { eval $1=; unset $1;}
16300}
16301as_unset=as_fn_unset
16302# as_fn_append VAR VALUE
16303# ----------------------
16304# Append the text in VALUE to the end of the definition contained in VAR. Take
16305# advantage of any shell optimizations that allow amortized linear growth over
16306# repeated appends, instead of the typical quadratic growth present in naive
16307# implementations.
16308if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16309 eval 'as_fn_append ()
16310 {
16311 eval $1+=\$2
16312 }'
16313else
16314 as_fn_append ()
16315 {
16316 eval $1=\$$1\$2
16317 }
16318fi # as_fn_append
16319
16320# as_fn_arith ARG...
16321# ------------------
16322# Perform arithmetic evaluation on the ARGs, and store the result in the
16323# global $as_val. Take advantage of shells that can avoid forks. The arguments
16324# must be portable across $(()) and expr.
16325if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16326 eval 'as_fn_arith ()
16327 {
16328 as_val=$(( $* ))
16329 }'
16330else
16331 as_fn_arith ()
16332 {
16333 as_val=`expr "$@" || test $? -eq 1`
16334 }
16335fi # as_fn_arith
16336
16337
16338if expr a : '\(a\)' >/dev/null 2>&1 &&
16339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16340 as_expr=expr
16341else
16342 as_expr=false
16343fi
16344
16345if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16346 as_basename=basename
16347else
16348 as_basename=false
16349fi
16350
16351if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16352 as_dirname=dirname
16353else
16354 as_dirname=false
16355fi
16356
16357as_me=`$as_basename -- "$0" ||
16358$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16359 X"$0" : 'X\(//\)$' \| \
16360 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16361$as_echo X/"$0" |
16362 sed '/^.*\/\([^/][^/]*\)\/*$/{
16363 s//\1/
16364 q
16365 }
16366 /^X\/\(\/\/\)$/{
16367 s//\1/
16368 q
16369 }
16370 /^X\/\(\/\).*/{
16371 s//\1/
16372 q
16373 }
16374 s/.*/./; q'`
16375
16376# Avoid depending upon Character Ranges.
16377as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16378as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16379as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16380as_cr_digits='0123456789'
16381as_cr_alnum=$as_cr_Letters$as_cr_digits
16382
16383ECHO_C= ECHO_N= ECHO_T=
16384case `echo -n x` in #(((((
16385-n*)
16386 case `echo 'xy\c'` in
16387 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16388 xy) ECHO_C='\c';;
16389 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16390 ECHO_T=' ';;
16391 esac;;
16392*)
16393 ECHO_N='-n';;
16394esac
16395
16396rm -f conf$$ conf$$.exe conf$$.file
16397if test -d conf$$.dir; then
16398 rm -f conf$$.dir/conf$$.file
16399else
16400 rm -f conf$$.dir
16401 mkdir conf$$.dir 2>/dev/null
16402fi
16403if (echo >conf$$.file) 2>/dev/null; then
16404 if ln -s conf$$.file conf$$ 2>/dev/null; then
16405 as_ln_s='ln -s'
16406 # ... but there are two gotchas:
16407 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16408 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
73b6d7a9 16409 # In both cases, we have to default to `cp -pR'.
7a938933 16410 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
73b6d7a9 16411 as_ln_s='cp -pR'
7a938933
ILT
16412 elif ln conf$$.file conf$$ 2>/dev/null; then
16413 as_ln_s=ln
16414 else
73b6d7a9 16415 as_ln_s='cp -pR'
7a938933
ILT
16416 fi
16417else
73b6d7a9 16418 as_ln_s='cp -pR'
7a938933
ILT
16419fi
16420rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16421rmdir conf$$.dir 2>/dev/null
16422
16423
16424# as_fn_mkdir_p
16425# -------------
16426# Create "$as_dir" as a directory, including parents if necessary.
16427as_fn_mkdir_p ()
16428{
16429
16430 case $as_dir in #(
16431 -*) as_dir=./$as_dir;;
16432 esac
16433 test -d "$as_dir" || eval $as_mkdir_p || {
16434 as_dirs=
16435 while :; do
16436 case $as_dir in #(
16437 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16438 *) as_qdir=$as_dir;;
16439 esac
16440 as_dirs="'$as_qdir' $as_dirs"
16441 as_dir=`$as_dirname -- "$as_dir" ||
16442$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16443 X"$as_dir" : 'X\(//\)[^/]' \| \
16444 X"$as_dir" : 'X\(//\)$' \| \
16445 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16446$as_echo X"$as_dir" |
16447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16448 s//\1/
16449 q
16450 }
16451 /^X\(\/\/\)[^/].*/{
16452 s//\1/
16453 q
16454 }
16455 /^X\(\/\/\)$/{
16456 s//\1/
16457 q
16458 }
16459 /^X\(\/\).*/{
16460 s//\1/
16461 q
16462 }
16463 s/.*/./; q'`
16464 test -d "$as_dir" && break
16465 done
16466 test -z "$as_dirs" || eval "mkdir $as_dirs"
73b6d7a9 16467 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7a938933
ILT
16468
16469
16470} # as_fn_mkdir_p
16471if mkdir -p . 2>/dev/null; then
16472 as_mkdir_p='mkdir -p "$as_dir"'
16473else
16474 test -d ./-p && rmdir ./-p
16475 as_mkdir_p=false
16476fi
16477
73b6d7a9
ILT
16478
16479# as_fn_executable_p FILE
16480# -----------------------
16481# Test if FILE is an executable regular file.
16482as_fn_executable_p ()
16483{
16484 test -f "$1" && test -x "$1"
16485} # as_fn_executable_p
16486as_test_x='test -x'
16487as_executable_p=as_fn_executable_p
7a938933
ILT
16488
16489# Sed expression to map a string onto a valid CPP name.
16490as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16491
16492# Sed expression to map a string onto a valid variable name.
16493as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16494
16495
16496exec 6>&1
16497## ----------------------------------- ##
16498## Main body of $CONFIG_STATUS script. ##
16499## ----------------------------------- ##
16500_ASEOF
16501test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16502
16503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504# Save the log message, to keep $0 and so on meaningful, and to
16505# report actual input values of CONFIG_FILES etc. instead of their
16506# values after options handling.
16507ac_log="
16508This file was extended by package-unused $as_me version-unused, which was
73b6d7a9 16509generated by GNU Autoconf 2.69. Invocation command line was
7a938933
ILT
16510
16511 CONFIG_FILES = $CONFIG_FILES
16512 CONFIG_HEADERS = $CONFIG_HEADERS
16513 CONFIG_LINKS = $CONFIG_LINKS
16514 CONFIG_COMMANDS = $CONFIG_COMMANDS
16515 $ $0 $@
16516
16517on `(hostname || uname -n) 2>/dev/null | sed 1q`
16518"
16519
16520_ACEOF
16521
16522case $ac_config_files in *"
16523"*) set x $ac_config_files; shift; ac_config_files=$*;;
16524esac
16525
16526case $ac_config_headers in *"
16527"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16528esac
16529
16530
16531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16532# Files that config.status was made for.
16533config_files="$ac_config_files"
16534config_headers="$ac_config_headers"
16535config_commands="$ac_config_commands"
16536
16537_ACEOF
16538
16539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16540ac_cs_usage="\
16541\`$as_me' instantiates files and other configuration actions
16542from templates according to the current configuration. Unless the files
16543and actions are specified as TAGs, all are instantiated by default.
16544
16545Usage: $0 [OPTION]... [TAG]...
16546
16547 -h, --help print this help, then exit
16548 -V, --version print version number and configuration settings, then exit
73b6d7a9 16549 --config print configuration, then exit
7a938933
ILT
16550 -q, --quiet, --silent
16551 do not print progress messages
16552 -d, --debug don't remove temporary files
16553 --recheck update $as_me by reconfiguring in the same conditions
16554 --file=FILE[:TEMPLATE]
16555 instantiate the configuration file FILE
16556 --header=FILE[:TEMPLATE]
16557 instantiate the configuration header FILE
16558
16559Configuration files:
16560$config_files
16561
16562Configuration headers:
16563$config_headers
16564
16565Configuration commands:
16566$config_commands
16567
16568Report bugs to the package provider."
16569
16570_ACEOF
16571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73b6d7a9 16572ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7a938933
ILT
16573ac_cs_version="\\
16574package-unused config.status version-unused
73b6d7a9
ILT
16575configured by $0, generated by GNU Autoconf 2.69,
16576 with options \\"\$ac_cs_config\\"
7a938933 16577
73b6d7a9 16578Copyright (C) 2012 Free Software Foundation, Inc.
7a938933
ILT
16579This config.status script is free software; the Free Software Foundation
16580gives unlimited permission to copy, distribute and modify it."
16581
16582ac_pwd='$ac_pwd'
16583srcdir='$srcdir'
16584INSTALL='$INSTALL'
16585MKDIR_P='$MKDIR_P'
16586AWK='$AWK'
16587test -n "\$AWK" || AWK=awk
16588_ACEOF
16589
16590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16591# The default lists apply if the user does not specify any file.
16592ac_need_defaults=:
16593while test $# != 0
16594do
16595 case $1 in
73b6d7a9 16596 --*=?*)
7a938933
ILT
16597 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16598 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16599 ac_shift=:
16600 ;;
73b6d7a9
ILT
16601 --*=)
16602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16603 ac_optarg=
16604 ac_shift=:
16605 ;;
7a938933
ILT
16606 *)
16607 ac_option=$1
16608 ac_optarg=$2
16609 ac_shift=shift
16610 ;;
16611 esac
16612
16613 case $ac_option in
16614 # Handling of the options.
16615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16616 ac_cs_recheck=: ;;
16617 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16618 $as_echo "$ac_cs_version"; exit ;;
73b6d7a9
ILT
16619 --config | --confi | --conf | --con | --co | --c )
16620 $as_echo "$ac_cs_config"; exit ;;
7a938933
ILT
16621 --debug | --debu | --deb | --de | --d | -d )
16622 debug=: ;;
16623 --file | --fil | --fi | --f )
16624 $ac_shift
16625 case $ac_optarg in
16626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
73b6d7a9 16627 '') as_fn_error $? "missing file argument" ;;
7a938933
ILT
16628 esac
16629 as_fn_append CONFIG_FILES " '$ac_optarg'"
16630 ac_need_defaults=false;;
16631 --header | --heade | --head | --hea )
16632 $ac_shift
16633 case $ac_optarg in
16634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16635 esac
16636 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16637 ac_need_defaults=false;;
16638 --he | --h)
16639 # Conflict between --help and --header
73b6d7a9 16640 as_fn_error $? "ambiguous option: \`$1'
7a938933
ILT
16641Try \`$0 --help' for more information.";;
16642 --help | --hel | -h )
16643 $as_echo "$ac_cs_usage"; exit ;;
16644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16645 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16646 ac_cs_silent=: ;;
16647
16648 # This is an error.
73b6d7a9 16649 -*) as_fn_error $? "unrecognized option: \`$1'
7a938933
ILT
16650Try \`$0 --help' for more information." ;;
16651
16652 *) as_fn_append ac_config_targets " $1"
16653 ac_need_defaults=false ;;
16654
16655 esac
16656 shift
16657done
16658
16659ac_configure_extra_args=
16660
16661if $ac_cs_silent; then
16662 exec 6>/dev/null
16663 ac_configure_extra_args="$ac_configure_extra_args --silent"
16664fi
16665
16666_ACEOF
16667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16668if \$ac_cs_recheck; then
73b6d7a9 16669 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7a938933
ILT
16670 shift
16671 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16672 CONFIG_SHELL='$SHELL'
16673 export CONFIG_SHELL
16674 exec "\$@"
16675fi
16676
16677_ACEOF
16678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16679exec 5>>config.log
16680{
16681 echo
16682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16683## Running $as_me. ##
16684_ASBOX
16685 $as_echo "$ac_log"
16686} >&5
16687
16688_ACEOF
16689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16690#
16691# INIT-COMMANDS
16692#
16693
16694srcdir="$srcdir"
16695host="$host"
16696target="$target"
16697with_multisubdir="$with_multisubdir"
16698with_multisrctop="$with_multisrctop"
16699with_target_subdir="$with_target_subdir"
16700ac_configure_args="${multilib_arg} ${ac_configure_args}"
16701multi_basedir="$multi_basedir"
16702CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16703CC="$CC"
54f0deb0
ILT
16704CXX="$CXX"
16705GFORTRAN="$GFORTRAN"
73b6d7a9 16706GDC="$GDC"
7a938933
ILT
16707AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16708
16709
16710# The HP-UX ksh and POSIX shell print the target directory to stdout
16711# if CDPATH is set.
16712(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16713
16714sed_quote_subst='$sed_quote_subst'
16715double_quote_subst='$double_quote_subst'
16716delay_variable_subst='$delay_variable_subst'
16717SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16718Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16719GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16720EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16721FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16722SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16723ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16724LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16725macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16726macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16727enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16728enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16729pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16730enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16731host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16732host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16733host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16734build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16735build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16736build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16737NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16738LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16739max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16740ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16741exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16742lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16743lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16744lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16745reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16746reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16747OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16748deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16749file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16750AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16751AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16752STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16753RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16754old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16755old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16756old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16757lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16758CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16759CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16760compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16761GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16762lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16763lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16764lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16765lt_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"`'
16766objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16767MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16768lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16769lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16770lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16771lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16772lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16773need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16774DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16775NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16776LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16777OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16778OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16779libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16780shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16781extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16782archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16783enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16784export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16785whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16786compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16787old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16788old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16789archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16790archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16791module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16792module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16793with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16794allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16795no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16796hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16797hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16798hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16799hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16800hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16801hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16802hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16803hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16804inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16805link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16806fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16807always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16808export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16809exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16810include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16811prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16812file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16813variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16814need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16815need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16816version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16817runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16818shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16819shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16820libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16821library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16822soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16823install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16824postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16825postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16826finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16827finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16828hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16829sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16830sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16831hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16832enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16833enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16834enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16835old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16836striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16837LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16838reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16839reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16840old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16841compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16842GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16843lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16844lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16845lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16846lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16847lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16848archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16849enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16850export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16851whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16852compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16853old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16854old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16855archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16856archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16857module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16858module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16859with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16860allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16861no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16862hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16863hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16864hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16865hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16866hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16867hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16868hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16869hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16870inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16871link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16872fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16873always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16874export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16875exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16876include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16877prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16878file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16879hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16880
16881LTCC='$LTCC'
16882LTCFLAGS='$LTCFLAGS'
16883compiler='$compiler_DEFAULT'
16884
16885# A function that is used when there is no print builtin or printf.
16886func_fallback_echo ()
16887{
16888 eval 'cat <<_LTECHO_EOF
16889\$1
16890_LTECHO_EOF'
16891}
16892
16893# Quote evaled strings.
16894for var in SED \
16895GREP \
16896EGREP \
16897FGREP \
16898SHELL \
16899ECHO \
16900LD \
16901NM \
16902LN_S \
16903lt_SP2NL \
16904lt_NL2SP \
16905reload_flag \
16906OBJDUMP \
16907deplibs_check_method \
16908file_magic_cmd \
16909AR \
16910AR_FLAGS \
16911STRIP \
16912RANLIB \
16913CC \
16914CFLAGS \
16915compiler \
16916lt_cv_sys_global_symbol_pipe \
16917lt_cv_sys_global_symbol_to_cdecl \
16918lt_cv_sys_global_symbol_to_c_name_address \
16919lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16920lt_prog_compiler_no_builtin_flag \
16921lt_prog_compiler_wl \
16922lt_prog_compiler_pic \
16923lt_prog_compiler_static \
16924lt_cv_prog_compiler_c_o \
16925need_locks \
16926DSYMUTIL \
16927NMEDIT \
16928LIPO \
16929OTOOL \
16930OTOOL64 \
16931shrext_cmds \
16932export_dynamic_flag_spec \
16933whole_archive_flag_spec \
16934compiler_needs_object \
16935with_gnu_ld \
16936allow_undefined_flag \
16937no_undefined_flag \
16938hardcode_libdir_flag_spec \
16939hardcode_libdir_flag_spec_ld \
16940hardcode_libdir_separator \
16941fix_srcfile_path \
16942exclude_expsyms \
16943include_expsyms \
16944file_list_spec \
16945variables_saved_for_relink \
16946libname_spec \
16947library_names_spec \
16948soname_spec \
16949install_override_mode \
16950finish_eval \
16951old_striplib \
16952striplib \
16953LD_GO \
16954reload_flag_GO \
16955compiler_GO \
16956lt_prog_compiler_no_builtin_flag_GO \
16957lt_prog_compiler_wl_GO \
16958lt_prog_compiler_pic_GO \
16959lt_prog_compiler_static_GO \
16960lt_cv_prog_compiler_c_o_GO \
16961export_dynamic_flag_spec_GO \
16962whole_archive_flag_spec_GO \
16963compiler_needs_object_GO \
16964with_gnu_ld_GO \
16965allow_undefined_flag_GO \
16966no_undefined_flag_GO \
16967hardcode_libdir_flag_spec_GO \
16968hardcode_libdir_flag_spec_ld_GO \
16969hardcode_libdir_separator_GO \
16970fix_srcfile_path_GO \
16971exclude_expsyms_GO \
16972include_expsyms_GO \
16973file_list_spec_GO; do
16974 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16975 *[\\\\\\\`\\"\\\$]*)
16976 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16977 ;;
16978 *)
16979 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16980 ;;
16981 esac
16982done
16983
16984# Double-quote double-evaled strings.
16985for var in reload_cmds \
16986old_postinstall_cmds \
16987old_postuninstall_cmds \
16988old_archive_cmds \
16989extract_expsyms_cmds \
16990old_archive_from_new_cmds \
16991old_archive_from_expsyms_cmds \
16992archive_cmds \
16993archive_expsym_cmds \
16994module_cmds \
16995module_expsym_cmds \
16996export_symbols_cmds \
16997prelink_cmds \
16998postinstall_cmds \
16999postuninstall_cmds \
17000finish_cmds \
17001sys_lib_search_path_spec \
17002sys_lib_dlsearch_path_spec \
17003reload_cmds_GO \
17004old_archive_cmds_GO \
17005old_archive_from_new_cmds_GO \
17006old_archive_from_expsyms_cmds_GO \
17007archive_cmds_GO \
17008archive_expsym_cmds_GO \
17009module_cmds_GO \
17010module_expsym_cmds_GO \
17011export_symbols_cmds_GO \
17012prelink_cmds_GO; do
17013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17014 *[\\\\\\\`\\"\\\$]*)
17015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17016 ;;
17017 *)
17018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17019 ;;
17020 esac
17021done
17022
17023ac_aux_dir='$ac_aux_dir'
17024xsi_shell='$xsi_shell'
17025lt_shell_append='$lt_shell_append'
17026
17027# See if we are running on zsh, and set the options which allow our
17028# commands through without removal of \ escapes INIT.
17029if test -n "\${ZSH_VERSION+set}" ; then
17030 setopt NO_GLOB_SUBST
17031fi
17032
17033
17034 PACKAGE='$PACKAGE'
17035 VERSION='$VERSION'
17036 TIMESTAMP='$TIMESTAMP'
17037 RM='$RM'
17038 ofile='$ofile'
17039
17040
17041
17042
17043
17044
17045# Variables needed in config.status (file generation) which aren't already
17046# passed by autoconf.
17047SUBDIRS="$SUBDIRS"
17048
17049
17050_ACEOF
17051
17052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17053
17054# Handling of arguments.
17055for ac_config_target in $ac_config_targets
17056do
17057 case $ac_config_target in
17058 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17059 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17060 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17061 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17062 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17063 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
b72813a6 17064 "testsuite/libgo-test-support.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
7a938933
ILT
17065 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17066
73b6d7a9 17067 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7a938933
ILT
17068 esac
17069done
17070
17071
17072# If the user did not use the arguments to specify the items to instantiate,
17073# then the envvar interface is used. Set only those that are not.
17074# We use the long form for the default assignment because of an extremely
17075# bizarre bug on SunOS 4.1.3.
17076if $ac_need_defaults; then
17077 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17078 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17079 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17080fi
17081
17082# Have a temporary directory for convenience. Make it in the build tree
17083# simply because there is no reason against having it here, and in addition,
17084# creating and moving files from /tmp can sometimes cause problems.
17085# Hook for its removal unless debugging.
17086# Note that there is a small window in which the directory will not be cleaned:
17087# after its creation but before its name has been assigned to `$tmp'.
17088$debug ||
17089{
73b6d7a9 17090 tmp= ac_tmp=
7a938933 17091 trap 'exit_status=$?
73b6d7a9
ILT
17092 : "${ac_tmp:=$tmp}"
17093 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7a938933
ILT
17094' 0
17095 trap 'as_fn_exit 1' 1 2 13 15
17096}
17097# Create a (secure) tmp directory for tmp files.
17098
17099{
17100 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
73b6d7a9 17101 test -d "$tmp"
7a938933
ILT
17102} ||
17103{
17104 tmp=./conf$$-$RANDOM
17105 (umask 077 && mkdir "$tmp")
73b6d7a9
ILT
17106} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17107ac_tmp=$tmp
7a938933
ILT
17108
17109# Set up the scripts for CONFIG_FILES section.
17110# No need to generate them if there are no CONFIG_FILES.
17111# This happens for instance with `./config.status config.h'.
17112if test -n "$CONFIG_FILES"; then
17113
17114
17115ac_cr=`echo X | tr X '\015'`
17116# On cygwin, bash can eat \r inside `` if the user requested igncr.
17117# But we know of no other shell where ac_cr would be empty at this
17118# point, so we can use a bashism as a fallback.
17119if test "x$ac_cr" = x; then
17120 eval ac_cr=\$\'\\r\'
17121fi
17122ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17123if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
73b6d7a9 17124 ac_cs_awk_cr='\\r'
7a938933
ILT
17125else
17126 ac_cs_awk_cr=$ac_cr
17127fi
17128
73b6d7a9 17129echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7a938933
ILT
17130_ACEOF
17131
17132
17133{
17134 echo "cat >conf$$subs.awk <<_ACEOF" &&
17135 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17136 echo "_ACEOF"
17137} >conf$$subs.sh ||
73b6d7a9
ILT
17138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17139ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7a938933
ILT
17140ac_delim='%!_!# '
17141for ac_last_try in false false false false false :; do
17142 . ./conf$$subs.sh ||
73b6d7a9 17143 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7a938933
ILT
17144
17145 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17146 if test $ac_delim_n = $ac_delim_num; then
17147 break
17148 elif $ac_last_try; then
73b6d7a9 17149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7a938933
ILT
17150 else
17151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17152 fi
17153done
17154rm -f conf$$subs.sh
17155
17156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73b6d7a9 17157cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7a938933
ILT
17158_ACEOF
17159sed -n '
17160h
17161s/^/S["/; s/!.*/"]=/
17162p
17163g
17164s/^[^!]*!//
17165:repl
17166t repl
17167s/'"$ac_delim"'$//
17168t delim
17169:nl
17170h
73b6d7a9 17171s/\(.\{148\}\)..*/\1/
7a938933
ILT
17172t more1
17173s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17174p
17175n
17176b repl
17177:more1
17178s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17179p
17180g
17181s/.\{148\}//
17182t nl
17183:delim
17184h
73b6d7a9 17185s/\(.\{148\}\)..*/\1/
7a938933
ILT
17186t more2
17187s/["\\]/\\&/g; s/^/"/; s/$/"/
17188p
17189b
17190:more2
17191s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17192p
17193g
17194s/.\{148\}//
17195t delim
17196' <conf$$subs.awk | sed '
17197/^[^""]/{
17198 N
17199 s/\n//
17200}
17201' >>$CONFIG_STATUS || ac_write_fail=1
17202rm -f conf$$subs.awk
17203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17204_ACAWK
73b6d7a9 17205cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7a938933
ILT
17206 for (key in S) S_is_set[key] = 1
17207 FS = "\a"
17208
17209}
17210{
17211 line = $ 0
17212 nfields = split(line, field, "@")
17213 substed = 0
17214 len = length(field[1])
17215 for (i = 2; i < nfields; i++) {
17216 key = field[i]
17217 keylen = length(key)
17218 if (S_is_set[key]) {
17219 value = S[key]
17220 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17221 len += length(value) + length(field[++i])
17222 substed = 1
17223 } else
17224 len += 1 + keylen
17225 }
17226
17227 print line
17228}
17229
17230_ACAWK
17231_ACEOF
17232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17233if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17234 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17235else
17236 cat
73b6d7a9
ILT
17237fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17238 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a938933
ILT
17239_ACEOF
17240
73b6d7a9
ILT
17241# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17242# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a938933
ILT
17243# trailing colons and then remove the whole line if VPATH becomes empty
17244# (actually we leave an empty line to preserve line numbers).
17245if test "x$srcdir" = x.; then
73b6d7a9
ILT
17246 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17247h
17248s///
17249s/^/:/
17250s/[ ]*$/:/
17251s/:\$(srcdir):/:/g
17252s/:\${srcdir}:/:/g
17253s/:@srcdir@:/:/g
17254s/^:*//
7a938933 17255s/:*$//
73b6d7a9
ILT
17256x
17257s/\(=[ ]*\).*/\1/
17258G
17259s/\n//
7a938933
ILT
17260s/^[^=]*=[ ]*$//
17261}'
17262fi
17263
17264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17265fi # test -n "$CONFIG_FILES"
17266
17267# Set up the scripts for CONFIG_HEADERS section.
17268# No need to generate them if there are no CONFIG_HEADERS.
17269# This happens for instance with `./config.status Makefile'.
17270if test -n "$CONFIG_HEADERS"; then
73b6d7a9 17271cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7a938933
ILT
17272BEGIN {
17273_ACEOF
17274
17275# Transform confdefs.h into an awk script `defines.awk', embedded as
17276# here-document in config.status, that substitutes the proper values into
17277# config.h.in to produce config.h.
17278
17279# Create a delimiter string that does not exist in confdefs.h, to ease
17280# handling of long lines.
17281ac_delim='%!_!# '
17282for ac_last_try in false false :; do
73b6d7a9
ILT
17283 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17284 if test -z "$ac_tt"; then
7a938933
ILT
17285 break
17286 elif $ac_last_try; then
73b6d7a9 17287 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7a938933
ILT
17288 else
17289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17290 fi
17291done
17292
17293# For the awk script, D is an array of macro values keyed by name,
17294# likewise P contains macro parameters if any. Preserve backslash
17295# newline sequences.
17296
17297ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17298sed -n '
17299s/.\{148\}/&'"$ac_delim"'/g
17300t rset
17301:rset
17302s/^[ ]*#[ ]*define[ ][ ]*/ /
17303t def
17304d
17305:def
17306s/\\$//
17307t bsnl
17308s/["\\]/\\&/g
17309s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17310D["\1"]=" \3"/p
17311s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17312d
17313:bsnl
17314s/["\\]/\\&/g
17315s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17316D["\1"]=" \3\\\\\\n"\\/p
17317t cont
17318s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17319t cont
17320d
17321:cont
17322n
17323s/.\{148\}/&'"$ac_delim"'/g
17324t clear
17325:clear
17326s/\\$//
17327t bsnlc
17328s/["\\]/\\&/g; s/^/"/; s/$/"/p
17329d
17330:bsnlc
17331s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17332b cont
17333' <confdefs.h | sed '
17334s/'"$ac_delim"'/"\\\
17335"/g' >>$CONFIG_STATUS || ac_write_fail=1
17336
17337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17338 for (key in D) D_is_set[key] = 1
17339 FS = "\a"
17340}
17341/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17342 line = \$ 0
17343 split(line, arg, " ")
17344 if (arg[1] == "#") {
17345 defundef = arg[2]
17346 mac1 = arg[3]
17347 } else {
17348 defundef = substr(arg[1], 2)
17349 mac1 = arg[2]
17350 }
17351 split(mac1, mac2, "(") #)
17352 macro = mac2[1]
17353 prefix = substr(line, 1, index(line, defundef) - 1)
17354 if (D_is_set[macro]) {
17355 # Preserve the white space surrounding the "#".
17356 print prefix "define", macro P[macro] D[macro]
17357 next
17358 } else {
17359 # Replace #undef with comments. This is necessary, for example,
17360 # in the case of _POSIX_SOURCE, which is predefined and required
17361 # on some systems where configure will not decide to define it.
17362 if (defundef == "undef") {
17363 print "/*", prefix defundef, macro, "*/"
17364 next
17365 }
17366 }
17367}
17368{ print }
17369_ACAWK
17370_ACEOF
17371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73b6d7a9 17372 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7a938933
ILT
17373fi # test -n "$CONFIG_HEADERS"
17374
17375
17376eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17377shift
17378for ac_tag
17379do
17380 case $ac_tag in
17381 :[FHLC]) ac_mode=$ac_tag; continue;;
17382 esac
17383 case $ac_mode$ac_tag in
17384 :[FHL]*:*);;
73b6d7a9 17385 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a938933
ILT
17386 :[FH]-) ac_tag=-:-;;
17387 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17388 esac
17389 ac_save_IFS=$IFS
17390 IFS=:
17391 set x $ac_tag
17392 IFS=$ac_save_IFS
17393 shift
17394 ac_file=$1
17395 shift
17396
17397 case $ac_mode in
17398 :L) ac_source=$1;;
17399 :[FH])
17400 ac_file_inputs=
17401 for ac_f
17402 do
17403 case $ac_f in
73b6d7a9 17404 -) ac_f="$ac_tmp/stdin";;
7a938933
ILT
17405 *) # Look for the file first in the build tree, then in the source tree
17406 # (if the path is not absolute). The absolute path cannot be DOS-style,
17407 # because $ac_f cannot contain `:'.
17408 test -f "$ac_f" ||
17409 case $ac_f in
17410 [\\/$]*) false;;
17411 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17412 esac ||
73b6d7a9 17413 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a938933
ILT
17414 esac
17415 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17416 as_fn_append ac_file_inputs " '$ac_f'"
17417 done
17418
17419 # Let's still pretend it is `configure' which instantiates (i.e., don't
17420 # use $as_me), people would be surprised to read:
17421 # /* config.h. Generated by config.status. */
17422 configure_input='Generated from '`
17423 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17424 `' by configure.'
17425 if test x"$ac_file" != x-; then
17426 configure_input="$ac_file. $configure_input"
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17428$as_echo "$as_me: creating $ac_file" >&6;}
17429 fi
17430 # Neutralize special characters interpreted by sed in replacement strings.
17431 case $configure_input in #(
17432 *\&* | *\|* | *\\* )
17433 ac_sed_conf_input=`$as_echo "$configure_input" |
17434 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17435 *) ac_sed_conf_input=$configure_input;;
17436 esac
17437
17438 case $ac_tag in
73b6d7a9
ILT
17439 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a938933
ILT
17441 esac
17442 ;;
17443 esac
17444
17445 ac_dir=`$as_dirname -- "$ac_file" ||
17446$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17447 X"$ac_file" : 'X\(//\)[^/]' \| \
17448 X"$ac_file" : 'X\(//\)$' \| \
17449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17450$as_echo X"$ac_file" |
17451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17452 s//\1/
17453 q
17454 }
17455 /^X\(\/\/\)[^/].*/{
17456 s//\1/
17457 q
17458 }
17459 /^X\(\/\/\)$/{
17460 s//\1/
17461 q
17462 }
17463 /^X\(\/\).*/{
17464 s//\1/
17465 q
17466 }
17467 s/.*/./; q'`
17468 as_dir="$ac_dir"; as_fn_mkdir_p
17469 ac_builddir=.
17470
17471case "$ac_dir" in
17472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17473*)
17474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17475 # A ".." for each directory in $ac_dir_suffix.
17476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17477 case $ac_top_builddir_sub in
17478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17480 esac ;;
17481esac
17482ac_abs_top_builddir=$ac_pwd
17483ac_abs_builddir=$ac_pwd$ac_dir_suffix
17484# for backward compatibility:
17485ac_top_builddir=$ac_top_build_prefix
17486
17487case $srcdir in
17488 .) # We are building in place.
17489 ac_srcdir=.
17490 ac_top_srcdir=$ac_top_builddir_sub
17491 ac_abs_top_srcdir=$ac_pwd ;;
17492 [\\/]* | ?:[\\/]* ) # Absolute name.
17493 ac_srcdir=$srcdir$ac_dir_suffix;
17494 ac_top_srcdir=$srcdir
17495 ac_abs_top_srcdir=$srcdir ;;
17496 *) # Relative name.
17497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17498 ac_top_srcdir=$ac_top_build_prefix$srcdir
17499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17500esac
17501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17502
17503
17504 case $ac_mode in
17505 :F)
17506 #
17507 # CONFIG_FILE
17508 #
17509
17510 case $INSTALL in
17511 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17512 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17513 esac
17514 ac_MKDIR_P=$MKDIR_P
17515 case $MKDIR_P in
17516 [\\/$]* | ?:[\\/]* ) ;;
17517 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17518 esac
17519_ACEOF
17520
17521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17522# If the template does not know about datarootdir, expand it.
17523# FIXME: This hack should be removed a few years after 2.60.
17524ac_datarootdir_hack=; ac_datarootdir_seen=
17525ac_sed_dataroot='
17526/datarootdir/ {
17527 p
17528 q
17529}
17530/@datadir@/p
17531/@docdir@/p
17532/@infodir@/p
17533/@localedir@/p
17534/@mandir@/p'
17535case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17536*datarootdir*) ac_datarootdir_seen=yes;;
17537*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17539$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17540_ACEOF
17541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17542 ac_datarootdir_hack='
17543 s&@datadir@&$datadir&g
17544 s&@docdir@&$docdir&g
17545 s&@infodir@&$infodir&g
17546 s&@localedir@&$localedir&g
17547 s&@mandir@&$mandir&g
17548 s&\\\${datarootdir}&$datarootdir&g' ;;
17549esac
17550_ACEOF
17551
17552# Neutralize VPATH when `$srcdir' = `.'.
17553# Shell code in configure.ac might set extrasub.
17554# FIXME: do we really want to maintain this feature?
17555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17556ac_sed_extra="$ac_vpsub
17557$extrasub
17558_ACEOF
17559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17560:t
17561/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17562s|@configure_input@|$ac_sed_conf_input|;t t
17563s&@top_builddir@&$ac_top_builddir_sub&;t t
17564s&@top_build_prefix@&$ac_top_build_prefix&;t t
17565s&@srcdir@&$ac_srcdir&;t t
17566s&@abs_srcdir@&$ac_abs_srcdir&;t t
17567s&@top_srcdir@&$ac_top_srcdir&;t t
17568s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17569s&@builddir@&$ac_builddir&;t t
17570s&@abs_builddir@&$ac_abs_builddir&;t t
17571s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17572s&@INSTALL@&$ac_INSTALL&;t t
17573s&@MKDIR_P@&$ac_MKDIR_P&;t t
17574$ac_datarootdir_hack
17575"
73b6d7a9
ILT
17576eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17577 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a938933
ILT
17578
17579test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
73b6d7a9
ILT
17580 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17581 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17582 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7a938933 17583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73b6d7a9 17584which seems to be undefined. Please make sure it is defined" >&5
7a938933 17585$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73b6d7a9 17586which seems to be undefined. Please make sure it is defined" >&2;}
7a938933 17587
73b6d7a9 17588 rm -f "$ac_tmp/stdin"
7a938933 17589 case $ac_file in
73b6d7a9
ILT
17590 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17591 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7a938933 17592 esac \
73b6d7a9 17593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a938933
ILT
17594 ;;
17595 :H)
17596 #
17597 # CONFIG_HEADER
17598 #
17599 if test x"$ac_file" != x-; then
17600 {
17601 $as_echo "/* $configure_input */" \
73b6d7a9
ILT
17602 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17603 } >"$ac_tmp/config.h" \
17604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17605 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7a938933
ILT
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17607$as_echo "$as_me: $ac_file is unchanged" >&6;}
17608 else
17609 rm -f "$ac_file"
73b6d7a9
ILT
17610 mv "$ac_tmp/config.h" "$ac_file" \
17611 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a938933
ILT
17612 fi
17613 else
17614 $as_echo "/* $configure_input */" \
73b6d7a9
ILT
17615 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17616 || as_fn_error $? "could not create -" "$LINENO" 5
7a938933
ILT
17617 fi
17618# Compute "$ac_file"'s index in $config_headers.
17619_am_arg="$ac_file"
17620_am_stamp_count=1
17621for _am_header in $config_headers :; do
17622 case $_am_header in
17623 $_am_arg | $_am_arg:* )
17624 break ;;
17625 * )
17626 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17627 esac
17628done
17629echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17630$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17631 X"$_am_arg" : 'X\(//\)[^/]' \| \
17632 X"$_am_arg" : 'X\(//\)$' \| \
17633 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17634$as_echo X"$_am_arg" |
17635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17636 s//\1/
17637 q
17638 }
17639 /^X\(\/\/\)[^/].*/{
17640 s//\1/
17641 q
17642 }
17643 /^X\(\/\/\)$/{
17644 s//\1/
17645 q
17646 }
17647 /^X\(\/\).*/{
17648 s//\1/
17649 q
17650 }
17651 s/.*/./; q'`/stamp-h$_am_stamp_count
17652 ;;
17653
17654 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17655$as_echo "$as_me: executing $ac_file commands" >&6;}
17656 ;;
17657 esac
17658
17659
17660 case $ac_file$ac_mode in
17661 "default-1":C)
17662# Only add multilib support code if we just rebuilt the top-level
17663# Makefile.
17664case " $CONFIG_FILES " in
17665 *" Makefile "*)
17666 ac_file=Makefile . ${multi_basedir}/config-ml.in
17667 ;;
17668esac ;;
17669 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
73b6d7a9 17670 # Older Autoconf quotes --file arguments for eval, but not when files
7a938933
ILT
17671 # are listed without --file. Let's play safe and only enable the eval
17672 # if we detect the quoting.
17673 case $CONFIG_FILES in
17674 *\'*) eval set x "$CONFIG_FILES" ;;
17675 *) set x $CONFIG_FILES ;;
17676 esac
17677 shift
17678 for mf
17679 do
17680 # Strip MF so we end up with the name of the file.
17681 mf=`echo "$mf" | sed -e 's/:.*$//'`
17682 # Check whether this is an Automake generated Makefile or not.
73b6d7a9 17683 # We used to match only the files named 'Makefile.in', but
7a938933
ILT
17684 # some people rename them; so instead we look at the file content.
17685 # Grep'ing the first line is not enough: some people post-process
17686 # each Makefile.in and add a new line on top of each file to say so.
17687 # Grep'ing the whole file is not good either: AIX grep has a line
17688 # limit of 2048, but all sed's we know have understand at least 4000.
17689 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17690 dirpart=`$as_dirname -- "$mf" ||
17691$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17692 X"$mf" : 'X\(//\)[^/]' \| \
17693 X"$mf" : 'X\(//\)$' \| \
17694 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17695$as_echo X"$mf" |
17696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17697 s//\1/
17698 q
17699 }
17700 /^X\(\/\/\)[^/].*/{
17701 s//\1/
17702 q
17703 }
17704 /^X\(\/\/\)$/{
17705 s//\1/
17706 q
17707 }
17708 /^X\(\/\).*/{
17709 s//\1/
17710 q
17711 }
17712 s/.*/./; q'`
17713 else
17714 continue
17715 fi
17716 # Extract the definition of DEPDIR, am__include, and am__quote
73b6d7a9 17717 # from the Makefile without running 'make'.
7a938933
ILT
17718 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17719 test -z "$DEPDIR" && continue
17720 am__include=`sed -n 's/^am__include = //p' < "$mf"`
73b6d7a9 17721 test -z "$am__include" && continue
7a938933 17722 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7a938933
ILT
17723 # Find all dependency output files, they are included files with
17724 # $(DEPDIR) in their names. We invoke sed twice because it is the
17725 # simplest approach to changing $(DEPDIR) to its actual value in the
17726 # expansion.
17727 for file in `sed -n "
17728 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
73b6d7a9 17729 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7a938933
ILT
17730 # Make sure the directory exists.
17731 test -f "$dirpart/$file" && continue
17732 fdir=`$as_dirname -- "$file" ||
17733$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17734 X"$file" : 'X\(//\)[^/]' \| \
17735 X"$file" : 'X\(//\)$' \| \
17736 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17737$as_echo X"$file" |
17738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17739 s//\1/
17740 q
17741 }
17742 /^X\(\/\/\)[^/].*/{
17743 s//\1/
17744 q
17745 }
17746 /^X\(\/\/\)$/{
17747 s//\1/
17748 q
17749 }
17750 /^X\(\/\).*/{
17751 s//\1/
17752 q
17753 }
17754 s/.*/./; q'`
17755 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17756 # echo "creating $dirpart/$file"
17757 echo '# dummy' > "$dirpart/$file"
17758 done
17759 done
17760}
17761 ;;
17762 "libtool":C)
17763
17764 # See if we are running on zsh, and set the options which allow our
17765 # commands through without removal of \ escapes.
17766 if test -n "${ZSH_VERSION+set}" ; then
17767 setopt NO_GLOB_SUBST
17768 fi
17769
17770 cfgfile="${ofile}T"
17771 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17772 $RM "$cfgfile"
17773
17774 cat <<_LT_EOF >> "$cfgfile"
17775#! $SHELL
17776
17777# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17778# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17779# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17780# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17781#
17782# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17783# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17784# Written by Gordon Matzigkeit, 1996
17785#
17786# This file is part of GNU Libtool.
17787#
17788# GNU Libtool is free software; you can redistribute it and/or
17789# modify it under the terms of the GNU General Public License as
17790# published by the Free Software Foundation; either version 2 of
17791# the License, or (at your option) any later version.
17792#
17793# As a special exception to the GNU General Public License,
17794# if you distribute this file as part of a program or library that
17795# is built using GNU Libtool, you may include this file under the
17796# same distribution terms that you use for the rest of that program.
17797#
17798# GNU Libtool is distributed in the hope that it will be useful,
17799# but WITHOUT ANY WARRANTY; without even the implied warranty of
17800# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17801# GNU General Public License for more details.
17802#
17803# You should have received a copy of the GNU General Public License
17804# along with GNU Libtool; see the file COPYING. If not, a copy
17805# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17806# obtained by writing to the Free Software Foundation, Inc.,
17807# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17808
17809
17810# The names of the tagged configurations supported by this script.
17811available_tags="GO "
17812
17813# ### BEGIN LIBTOOL CONFIG
17814
17815# A sed program that does not truncate output.
17816SED=$lt_SED
17817
17818# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17819Xsed="\$SED -e 1s/^X//"
17820
17821# A grep program that handles long lines.
17822GREP=$lt_GREP
17823
17824# An ERE matcher.
17825EGREP=$lt_EGREP
17826
17827# A literal string matcher.
17828FGREP=$lt_FGREP
17829
17830# Shell to use when invoking shell scripts.
17831SHELL=$lt_SHELL
17832
17833# An echo program that protects backslashes.
17834ECHO=$lt_ECHO
17835
17836# Which release of libtool.m4 was used?
17837macro_version=$macro_version
17838macro_revision=$macro_revision
17839
17840# Whether or not to build shared libraries.
17841build_libtool_libs=$enable_shared
17842
17843# Whether or not to build static libraries.
17844build_old_libs=$enable_static
17845
17846# What type of objects to build.
17847pic_mode=$pic_mode
17848
17849# Whether or not to optimize for fast installation.
17850fast_install=$enable_fast_install
17851
17852# The host system.
17853host_alias=$host_alias
17854host=$host
17855host_os=$host_os
17856
17857# The build system.
17858build_alias=$build_alias
17859build=$build
17860build_os=$build_os
17861
17862# A BSD- or MS-compatible name lister.
17863NM=$lt_NM
17864
17865# Whether we need soft or hard links.
17866LN_S=$lt_LN_S
17867
17868# What is the maximum length of a command?
17869max_cmd_len=$max_cmd_len
17870
17871# Object file suffix (normally "o").
17872objext=$ac_objext
17873
17874# Executable file suffix (normally "").
17875exeext=$exeext
17876
17877# whether the shell understands "unset".
17878lt_unset=$lt_unset
17879
17880# turn spaces into newlines.
17881SP2NL=$lt_lt_SP2NL
17882
17883# turn newlines into spaces.
17884NL2SP=$lt_lt_NL2SP
17885
17886# An object symbol dumper.
17887OBJDUMP=$lt_OBJDUMP
17888
17889# Method to check whether dependent libraries are shared objects.
17890deplibs_check_method=$lt_deplibs_check_method
17891
17892# Command to use when deplibs_check_method == "file_magic".
17893file_magic_cmd=$lt_file_magic_cmd
17894
17895# The archiver.
17896AR=$lt_AR
17897AR_FLAGS=$lt_AR_FLAGS
17898
17899# A symbol stripping program.
17900STRIP=$lt_STRIP
17901
17902# Commands used to install an old-style archive.
17903RANLIB=$lt_RANLIB
17904old_postinstall_cmds=$lt_old_postinstall_cmds
17905old_postuninstall_cmds=$lt_old_postuninstall_cmds
17906
17907# Whether to use a lock for old archive extraction.
17908lock_old_archive_extraction=$lock_old_archive_extraction
17909
17910# A C compiler.
17911LTCC=$lt_CC
17912
17913# LTCC compiler flags.
17914LTCFLAGS=$lt_CFLAGS
17915
17916# Take the output of nm and produce a listing of raw symbols and C names.
17917global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17918
17919# Transform the output of nm in a proper C declaration.
17920global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17921
17922# Transform the output of nm in a C name address pair.
17923global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17924
17925# Transform the output of nm in a C name address pair when lib prefix is needed.
17926global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17927
17928# The name of the directory that contains temporary libtool files.
17929objdir=$objdir
17930
17931# Used to examine libraries when file_magic_cmd begins with "file".
17932MAGIC_CMD=$MAGIC_CMD
17933
17934# Must we lock files when doing compilation?
17935need_locks=$lt_need_locks
17936
17937# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17938DSYMUTIL=$lt_DSYMUTIL
17939
17940# Tool to change global to local symbols on Mac OS X.
17941NMEDIT=$lt_NMEDIT
17942
17943# Tool to manipulate fat objects and archives on Mac OS X.
17944LIPO=$lt_LIPO
17945
17946# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17947OTOOL=$lt_OTOOL
17948
17949# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17950OTOOL64=$lt_OTOOL64
17951
17952# Old archive suffix (normally "a").
17953libext=$libext
17954
17955# Shared library suffix (normally ".so").
17956shrext_cmds=$lt_shrext_cmds
17957
17958# The commands to extract the exported symbol list from a shared archive.
17959extract_expsyms_cmds=$lt_extract_expsyms_cmds
17960
17961# Variables whose values should be saved in libtool wrapper scripts and
17962# restored at link time.
17963variables_saved_for_relink=$lt_variables_saved_for_relink
17964
17965# Do we need the "lib" prefix for modules?
17966need_lib_prefix=$need_lib_prefix
17967
17968# Do we need a version for libraries?
17969need_version=$need_version
17970
17971# Library versioning type.
17972version_type=$version_type
17973
17974# Shared library runtime path variable.
17975runpath_var=$runpath_var
17976
17977# Shared library path variable.
17978shlibpath_var=$shlibpath_var
17979
17980# Is shlibpath searched before the hard-coded library search path?
17981shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17982
17983# Format of library name prefix.
17984libname_spec=$lt_libname_spec
17985
17986# List of archive names. First name is the real one, the rest are links.
17987# The last name is the one that the linker finds with -lNAME
17988library_names_spec=$lt_library_names_spec
17989
17990# The coded name of the library, if different from the real name.
17991soname_spec=$lt_soname_spec
17992
17993# Permission mode override for installation of shared libraries.
17994install_override_mode=$lt_install_override_mode
17995
17996# Command to use after installation of a shared archive.
17997postinstall_cmds=$lt_postinstall_cmds
17998
17999# Command to use after uninstallation of a shared archive.
18000postuninstall_cmds=$lt_postuninstall_cmds
18001
18002# Commands used to finish a libtool library installation in a directory.
18003finish_cmds=$lt_finish_cmds
18004
18005# As "finish_cmds", except a single script fragment to be evaled but
18006# not shown.
18007finish_eval=$lt_finish_eval
18008
18009# Whether we should hardcode library paths into libraries.
18010hardcode_into_libs=$hardcode_into_libs
18011
18012# Compile-time system search path for libraries.
18013sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18014
18015# Run-time system search path for libraries.
18016sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18017
18018# Whether dlopen is supported.
18019dlopen_support=$enable_dlopen
18020
18021# Whether dlopen of programs is supported.
18022dlopen_self=$enable_dlopen_self
18023
18024# Whether dlopen of statically linked programs is supported.
18025dlopen_self_static=$enable_dlopen_self_static
18026
18027# Commands to strip libraries.
18028old_striplib=$lt_old_striplib
18029striplib=$lt_striplib
18030
18031
18032# The linker used to build libraries.
18033LD=$lt_LD
18034
18035# How to create reloadable object files.
18036reload_flag=$lt_reload_flag
18037reload_cmds=$lt_reload_cmds
18038
18039# Commands used to build an old-style archive.
18040old_archive_cmds=$lt_old_archive_cmds
18041
18042# A language specific compiler.
18043CC=$lt_compiler
18044
18045# Is the compiler the GNU compiler?
18046with_gcc=$GCC
18047
18048# Compiler flag to turn off builtin functions.
18049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18050
18051# How to pass a linker flag through the compiler.
18052wl=$lt_lt_prog_compiler_wl
18053
18054# Additional compiler flags for building library objects.
18055pic_flag=$lt_lt_prog_compiler_pic
18056
18057# Compiler flag to prevent dynamic linking.
18058link_static_flag=$lt_lt_prog_compiler_static
18059
18060# Does compiler simultaneously support -c and -o options?
18061compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18062
18063# Whether or not to add -lc for building shared libraries.
18064build_libtool_need_lc=$archive_cmds_need_lc
18065
18066# Whether or not to disallow shared libs when runtime libs are static.
18067allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18068
18069# Compiler flag to allow reflexive dlopens.
18070export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18071
18072# Compiler flag to generate shared objects directly from archives.
18073whole_archive_flag_spec=$lt_whole_archive_flag_spec
18074
18075# Whether the compiler copes with passing no objects directly.
18076compiler_needs_object=$lt_compiler_needs_object
18077
18078# Create an old-style archive from a shared archive.
18079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18080
18081# Create a temporary old-style archive to link instead of a shared archive.
18082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18083
18084# Commands used to build a shared archive.
18085archive_cmds=$lt_archive_cmds
18086archive_expsym_cmds=$lt_archive_expsym_cmds
18087
18088# Commands used to build a loadable module if different from building
18089# a shared archive.
18090module_cmds=$lt_module_cmds
18091module_expsym_cmds=$lt_module_expsym_cmds
18092
18093# Whether we are building with GNU ld or not.
18094with_gnu_ld=$lt_with_gnu_ld
18095
18096# Flag that allows shared libraries with undefined symbols to be built.
18097allow_undefined_flag=$lt_allow_undefined_flag
18098
18099# Flag that enforces no undefined symbols.
18100no_undefined_flag=$lt_no_undefined_flag
18101
18102# Flag to hardcode \$libdir into a binary during linking.
18103# This must work even if \$libdir does not exist
18104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18105
18106# If ld is used when linking, flag to hardcode \$libdir into a binary
18107# during linking. This must work even if \$libdir does not exist.
18108hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18109
18110# Whether we need a single "-rpath" flag with a separated argument.
18111hardcode_libdir_separator=$lt_hardcode_libdir_separator
18112
18113# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18114# DIR into the resulting binary.
18115hardcode_direct=$hardcode_direct
18116
18117# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18118# DIR into the resulting binary and the resulting library dependency is
18119# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18120# library is relocated.
18121hardcode_direct_absolute=$hardcode_direct_absolute
18122
18123# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18124# into the resulting binary.
18125hardcode_minus_L=$hardcode_minus_L
18126
18127# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18128# into the resulting binary.
18129hardcode_shlibpath_var=$hardcode_shlibpath_var
18130
18131# Set to "yes" if building a shared library automatically hardcodes DIR
18132# into the library and all subsequent libraries and executables linked
18133# against it.
18134hardcode_automatic=$hardcode_automatic
18135
18136# Set to yes if linker adds runtime paths of dependent libraries
18137# to runtime path list.
18138inherit_rpath=$inherit_rpath
18139
18140# Whether libtool must link a program against all its dependency libraries.
18141link_all_deplibs=$link_all_deplibs
18142
18143# Fix the shell variable \$srcfile for the compiler.
18144fix_srcfile_path=$lt_fix_srcfile_path
18145
18146# Set to "yes" if exported symbols are required.
18147always_export_symbols=$always_export_symbols
18148
18149# The commands to list exported symbols.
18150export_symbols_cmds=$lt_export_symbols_cmds
18151
18152# Symbols that should not be listed in the preloaded symbols.
18153exclude_expsyms=$lt_exclude_expsyms
18154
18155# Symbols that must always be exported.
18156include_expsyms=$lt_include_expsyms
18157
18158# Commands necessary for linking programs (against libraries) with templates.
18159prelink_cmds=$lt_prelink_cmds
18160
18161# Specify filename containing input files.
18162file_list_spec=$lt_file_list_spec
18163
18164# How to hardcode a shared library path into an executable.
18165hardcode_action=$hardcode_action
18166
18167# ### END LIBTOOL CONFIG
18168
18169_LT_EOF
18170
18171 case $host_os in
18172 aix3*)
18173 cat <<\_LT_EOF >> "$cfgfile"
18174# AIX sometimes has problems with the GCC collect2 program. For some
18175# reason, if we set the COLLECT_NAMES environment variable, the problems
18176# vanish in a puff of smoke.
18177if test "X${COLLECT_NAMES+set}" != Xset; then
18178 COLLECT_NAMES=
18179 export COLLECT_NAMES
18180fi
18181_LT_EOF
18182 ;;
18183 esac
18184
18185
18186ltmain="$ac_aux_dir/ltmain.sh"
18187
18188
18189 # We use sed instead of cat because bash on DJGPP gets confused if
18190 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18191 # text mode, it properly converts lines to CR/LF. This bash problem
18192 # is reportedly fixed, but why not run on old versions too?
18193 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18194 || (rm -f "$cfgfile"; exit 1)
18195
18196 case $xsi_shell in
18197 yes)
18198 cat << \_LT_EOF >> "$cfgfile"
18199
18200# func_dirname file append nondir_replacement
18201# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18202# otherwise set result to NONDIR_REPLACEMENT.
18203func_dirname ()
18204{
18205 case ${1} in
18206 */*) func_dirname_result="${1%/*}${2}" ;;
18207 * ) func_dirname_result="${3}" ;;
18208 esac
18209}
18210
18211# func_basename file
18212func_basename ()
18213{
18214 func_basename_result="${1##*/}"
18215}
18216
18217# func_dirname_and_basename file append nondir_replacement
18218# perform func_basename and func_dirname in a single function
18219# call:
18220# dirname: Compute the dirname of FILE. If nonempty,
18221# add APPEND to the result, otherwise set result
18222# to NONDIR_REPLACEMENT.
18223# value returned in "$func_dirname_result"
18224# basename: Compute filename of FILE.
18225# value retuned in "$func_basename_result"
18226# Implementation must be kept synchronized with func_dirname
18227# and func_basename. For efficiency, we do not delegate to
18228# those functions but instead duplicate the functionality here.
18229func_dirname_and_basename ()
18230{
18231 case ${1} in
18232 */*) func_dirname_result="${1%/*}${2}" ;;
18233 * ) func_dirname_result="${3}" ;;
18234 esac
18235 func_basename_result="${1##*/}"
18236}
18237
18238# func_stripname prefix suffix name
18239# strip PREFIX and SUFFIX off of NAME.
18240# PREFIX and SUFFIX must not contain globbing or regex special
18241# characters, hashes, percent signs, but SUFFIX may contain a leading
18242# dot (in which case that matches only a dot).
18243func_stripname ()
18244{
18245 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18246 # positional parameters, so assign one to ordinary parameter first.
18247 func_stripname_result=${3}
18248 func_stripname_result=${func_stripname_result#"${1}"}
18249 func_stripname_result=${func_stripname_result%"${2}"}
18250}
18251
18252# func_opt_split
18253func_opt_split ()
18254{
18255 func_opt_split_opt=${1%%=*}
18256 func_opt_split_arg=${1#*=}
18257}
18258
18259# func_lo2o object
18260func_lo2o ()
18261{
18262 case ${1} in
18263 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18264 *) func_lo2o_result=${1} ;;
18265 esac
18266}
18267
18268# func_xform libobj-or-source
18269func_xform ()
18270{
18271 func_xform_result=${1%.*}.lo
18272}
18273
18274# func_arith arithmetic-term...
18275func_arith ()
18276{
18277 func_arith_result=$(( $* ))
18278}
18279
18280# func_len string
18281# STRING may not start with a hyphen.
18282func_len ()
18283{
18284 func_len_result=${#1}
18285}
18286
18287_LT_EOF
18288 ;;
18289 *) # Bourne compatible functions.
18290 cat << \_LT_EOF >> "$cfgfile"
18291
18292# func_dirname file append nondir_replacement
18293# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18294# otherwise set result to NONDIR_REPLACEMENT.
18295func_dirname ()
18296{
18297 # Extract subdirectory from the argument.
18298 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18299 if test "X$func_dirname_result" = "X${1}"; then
18300 func_dirname_result="${3}"
18301 else
18302 func_dirname_result="$func_dirname_result${2}"
18303 fi
18304}
18305
18306# func_basename file
18307func_basename ()
18308{
18309 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18310}
18311
18312
18313# func_stripname prefix suffix name
18314# strip PREFIX and SUFFIX off of NAME.
18315# PREFIX and SUFFIX must not contain globbing or regex special
18316# characters, hashes, percent signs, but SUFFIX may contain a leading
18317# dot (in which case that matches only a dot).
18318# func_strip_suffix prefix name
18319func_stripname ()
18320{
18321 case ${2} in
18322 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18323 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18324 esac
18325}
18326
18327# sed scripts:
18328my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18329my_sed_long_arg='1s/^-[^=]*=//'
18330
18331# func_opt_split
18332func_opt_split ()
18333{
18334 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18335 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18336}
18337
18338# func_lo2o object
18339func_lo2o ()
18340{
18341 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18342}
18343
18344# func_xform libobj-or-source
18345func_xform ()
18346{
18347 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18348}
18349
18350# func_arith arithmetic-term...
18351func_arith ()
18352{
18353 func_arith_result=`expr "$@"`
18354}
18355
18356# func_len string
18357# STRING may not start with a hyphen.
18358func_len ()
18359{
18360 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18361}
18362
18363_LT_EOF
18364esac
18365
18366case $lt_shell_append in
18367 yes)
18368 cat << \_LT_EOF >> "$cfgfile"
18369
18370# func_append var value
18371# Append VALUE to the end of shell variable VAR.
18372func_append ()
18373{
18374 eval "$1+=\$2"
18375}
18376_LT_EOF
18377 ;;
18378 *)
18379 cat << \_LT_EOF >> "$cfgfile"
18380
18381# func_append var value
18382# Append VALUE to the end of shell variable VAR.
18383func_append ()
18384{
18385 eval "$1=\$$1\$2"
18386}
18387
18388_LT_EOF
18389 ;;
18390 esac
18391
18392
18393 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18394 || (rm -f "$cfgfile"; exit 1)
18395
18396 mv -f "$cfgfile" "$ofile" ||
18397 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18398 chmod +x "$ofile"
18399
18400
18401 cat <<_LT_EOF >> "$ofile"
18402
18403# ### BEGIN LIBTOOL TAG CONFIG: GO
18404
18405# The linker used to build libraries.
18406LD=$lt_LD_GO
18407
18408# How to create reloadable object files.
18409reload_flag=$lt_reload_flag_GO
18410reload_cmds=$lt_reload_cmds_GO
18411
18412# Commands used to build an old-style archive.
18413old_archive_cmds=$lt_old_archive_cmds_GO
18414
18415# A language specific compiler.
18416CC=$lt_compiler_GO
18417
18418# Is the compiler the GNU compiler?
18419with_gcc=$GCC_GO
18420
18421# Compiler flag to turn off builtin functions.
18422no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18423
18424# How to pass a linker flag through the compiler.
18425wl=$lt_lt_prog_compiler_wl_GO
18426
18427# Additional compiler flags for building library objects.
18428pic_flag=$lt_lt_prog_compiler_pic_GO
18429
18430# Compiler flag to prevent dynamic linking.
18431link_static_flag=$lt_lt_prog_compiler_static_GO
18432
18433# Does compiler simultaneously support -c and -o options?
18434compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18435
18436# Whether or not to add -lc for building shared libraries.
18437build_libtool_need_lc=$archive_cmds_need_lc_GO
18438
18439# Whether or not to disallow shared libs when runtime libs are static.
18440allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18441
18442# Compiler flag to allow reflexive dlopens.
18443export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18444
18445# Compiler flag to generate shared objects directly from archives.
18446whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18447
18448# Whether the compiler copes with passing no objects directly.
18449compiler_needs_object=$lt_compiler_needs_object_GO
18450
18451# Create an old-style archive from a shared archive.
18452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18453
18454# Create a temporary old-style archive to link instead of a shared archive.
18455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18456
18457# Commands used to build a shared archive.
18458archive_cmds=$lt_archive_cmds_GO
18459archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18460
18461# Commands used to build a loadable module if different from building
18462# a shared archive.
18463module_cmds=$lt_module_cmds_GO
18464module_expsym_cmds=$lt_module_expsym_cmds_GO
18465
18466# Whether we are building with GNU ld or not.
18467with_gnu_ld=$lt_with_gnu_ld_GO
18468
18469# Flag that allows shared libraries with undefined symbols to be built.
18470allow_undefined_flag=$lt_allow_undefined_flag_GO
18471
18472# Flag that enforces no undefined symbols.
18473no_undefined_flag=$lt_no_undefined_flag_GO
18474
18475# Flag to hardcode \$libdir into a binary during linking.
18476# This must work even if \$libdir does not exist
18477hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18478
18479# If ld is used when linking, flag to hardcode \$libdir into a binary
18480# during linking. This must work even if \$libdir does not exist.
18481hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18482
18483# Whether we need a single "-rpath" flag with a separated argument.
18484hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18485
18486# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18487# DIR into the resulting binary.
18488hardcode_direct=$hardcode_direct_GO
18489
18490# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18491# DIR into the resulting binary and the resulting library dependency is
18492# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18493# library is relocated.
18494hardcode_direct_absolute=$hardcode_direct_absolute_GO
18495
18496# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18497# into the resulting binary.
18498hardcode_minus_L=$hardcode_minus_L_GO
18499
18500# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18501# into the resulting binary.
18502hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18503
18504# Set to "yes" if building a shared library automatically hardcodes DIR
18505# into the library and all subsequent libraries and executables linked
18506# against it.
18507hardcode_automatic=$hardcode_automatic_GO
18508
18509# Set to yes if linker adds runtime paths of dependent libraries
18510# to runtime path list.
18511inherit_rpath=$inherit_rpath_GO
18512
18513# Whether libtool must link a program against all its dependency libraries.
18514link_all_deplibs=$link_all_deplibs_GO
18515
18516# Fix the shell variable \$srcfile for the compiler.
18517fix_srcfile_path=$lt_fix_srcfile_path_GO
18518
18519# Set to "yes" if exported symbols are required.
18520always_export_symbols=$always_export_symbols_GO
18521
18522# The commands to list exported symbols.
18523export_symbols_cmds=$lt_export_symbols_cmds_GO
18524
18525# Symbols that should not be listed in the preloaded symbols.
18526exclude_expsyms=$lt_exclude_expsyms_GO
18527
18528# Symbols that must always be exported.
18529include_expsyms=$lt_include_expsyms_GO
18530
18531# Commands necessary for linking programs (against libraries) with templates.
18532prelink_cmds=$lt_prelink_cmds_GO
18533
18534# Specify filename containing input files.
18535file_list_spec=$lt_file_list_spec_GO
18536
18537# How to hardcode a shared library path into an executable.
18538hardcode_action=$hardcode_action_GO
18539
18540# ### END LIBTOOL TAG CONFIG: GO
18541_LT_EOF
18542
18543 ;;
18544 "default":C) if test -n "$CONFIG_FILES"; then
18545 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18546 # that multilib installs will end up installed in the correct place.
18547 # The testsuite needs it for multilib-aware ABI baseline files.
18548 # To work around this not being passed down from config-ml.in ->
18549 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18550 # append it here. Only modify Makefiles that have just been created.
18551 #
18552 # Also, get rid of this simulated-VPATH thing that automake does.
18553 cat > vpsed << \_EOF
18554s!`test -f '$<' || echo '$(srcdir)/'`!!
18555_EOF
18556 for i in $SUBDIRS; do
18557 case $CONFIG_FILES in
18558 *${i}/Makefile*)
18559 #echo "Adding MULTISUBDIR to $i/Makefile"
18560 sed -f vpsed $i/Makefile > tmp
18561 grep '^MULTISUBDIR =' Makefile >> tmp
18562 mv tmp $i/Makefile
18563 ;;
18564 esac
18565 done
18566 rm vpsed
18567 fi
18568 ;;
18569
18570 esac
18571done # for ac_tag
18572
18573
18574as_fn_exit 0
18575_ACEOF
18576ac_clean_files=$ac_clean_files_save
18577
18578test $ac_write_fail = 0 ||
73b6d7a9 18579 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7a938933
ILT
18580
18581
18582# configure is writing to config.log, and then calls config.status.
18583# config.status does its own redirection, appending to config.log.
18584# Unfortunately, on DOS this fails, as config.log is still kept open
18585# by configure, so config.status won't be able to write to it; its
18586# output is simply discarded. So we exec the FD to /dev/null,
18587# effectively closing config.log, so it can be properly (re)opened and
18588# appended to by config.status. When coming back to configure, we
18589# need to make the FD available again.
18590if test "$no_create" != yes; then
18591 ac_cs_success=:
18592 ac_config_status_args=
18593 test "$silent" = yes &&
18594 ac_config_status_args="$ac_config_status_args --quiet"
18595 exec 5>/dev/null
18596 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18597 exec 5>>config.log
18598 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18599 # would make configure fail if this is the last instruction.
73b6d7a9 18600 $ac_cs_success || as_fn_exit 1
7a938933
ILT
18601fi
18602if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18604$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18605fi
18606