]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/configure
i386: Remove unnecessary clobbers from combine splitters.
[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
e478cacb
ILT
636HAVE_STATIC_LINK_FALSE
637HAVE_STATIC_LINK_TRUE
476013d6
ILT
638HAVE_STAT_TIMESPEC_FALSE
639HAVE_STAT_TIMESPEC_TRUE
207c35fa
ILT
640STRUCT_EPOLL_EVENT_FD_OFFSET
641SIZEOF_STRUCT_EPOLL_EVENT
9d465faf 642MATH_FLAG
7a938933 643STRINGOPS_FLAG
0b3189e7
ILT
644HAVE_WAIT4_FALSE
645HAVE_WAIT4_TRUE
8955c80a
ILT
646HAVE_STRERROR_R_FALSE
647HAVE_STRERROR_R_TRUE
7a938933
ILT
648HAVE_SYS_MMAN_H_FALSE
649HAVE_SYS_MMAN_H_TRUE
6c94a9fa
ILT
650PTHREAD_LIBS
651PTHREAD_CFLAGS
f2ee78b8 652NET_LIBS
505b439a 653MATH_LIBS
4c46b5f0
ILT
654GOC_IS_LLGO_FALSE
655GOC_IS_LLGO_TRUE
a2bf11d1 656GO_SPLIT_STACK
7a938933
ILT
657USING_SPLIT_STACK_FALSE
658USING_SPLIT_STACK_TRUE
659SPLIT_STACK
08934aed 660HWCAP_CFLAGS
90630d19 661OSCFLAGS
de27caac
ILT
662GO_SYSCALL_OS_ARCH_FILE
663GO_SYSCALL_OS_FILE
664GO_LIBCALL_OS_ARCH_FILE
665GO_LIBCALL_OS_FILE
cba8a572 666FUNCTION_DESCRIPTORS
de0f55db
ILT
667LIBGO_IS_X86_FALSE
668LIBGO_IS_X86_TRUE
a8464243
ILT
669ALLGOARCHFAMILY
670ALLGOARCH
c3b5b97b 671GOARCH
7134cf28 672USE_DEJAGNU
a8464243 673ALLGOOS
c3b5b97b 674GOOS
22b955cc
ILT
675LIBGO_IS_BSD_FALSE
676LIBGO_IS_BSD_TRUE
d9f0237f
ILT
677LIBGO_IS_HURD_FALSE
678LIBGO_IS_HURD_TRUE
f163907e
ILT
679LIBGO_IS_AIX_FALSE
680LIBGO_IS_AIX_TRUE
f2ee78b8
ILT
681LIBGO_IS_SOLARIS_FALSE
682LIBGO_IS_SOLARIS_TRUE
7a938933
ILT
683LIBGO_IS_RTEMS_FALSE
684LIBGO_IS_RTEMS_TRUE
f038dae6
ILT
685LIBGO_IS_DRAGONFLY_FALSE
686LIBGO_IS_DRAGONFLY_TRUE
4ccad563
ILT
687LIBGO_IS_OPENBSD_FALSE
688LIBGO_IS_OPENBSD_TRUE
df4aa89a
ILT
689LIBGO_IS_NETBSD_FALSE
690LIBGO_IS_NETBSD_TRUE
7a938933
ILT
691LIBGO_IS_LINUX_FALSE
692LIBGO_IS_LINUX_TRUE
654d2ec0
ILT
693LIBGO_IS_IRIX_FALSE
694LIBGO_IS_IRIX_TRUE
7a938933
ILT
695LIBGO_IS_FREEBSD_FALSE
696LIBGO_IS_FREEBSD_TRUE
697LIBGO_IS_DARWIN_FALSE
698LIBGO_IS_DARWIN_TRUE
18c70075 699go_include
9a85ed03 700LIBATOMIC
5302cd02
ILT
701USE_LIBFFI_FALSE
702USE_LIBFFI_TRUE
7a938933
ILT
703LIBFFIINCS
704LIBFFI
317ea7c0 705nover_glibgo_toolexeclibdir
7a938933
ILT
706glibgo_toolexeclibdir
707glibgo_toolexecdir
7a938933
ILT
708WERROR
709WARN_FLAGS
d983a802 710CC_FOR_BUILD
7a938933
ILT
711enable_static
712enable_shared
061793a4 713CPP
7a938933
ILT
714OTOOL64
715OTOOL
716LIPO
717NMEDIT
718DSYMUTIL
719AR
720OBJDUMP
721LN_S
722NM
723ac_ct_DUMPBIN
724DUMPBIN
725LIBTOOL
726OBJCOPY
727RANLIB
728LD
729FGREP
730EGREP
731GREP
061793a4 732SED
7a938933
ILT
733MAINT
734MAINTAINER_MODE_FALSE
735MAINTAINER_MODE_TRUE
d040555a 736AIX_EXTRA_ARCH
4d12cf3c
ILT
737am__fastdepCCAS_FALSE
738am__fastdepCCAS_TRUE
739CCASDEPMODE
740CCASFLAGS
741CCAS
73b6d7a9 742GOFLAGS
7a938933
ILT
743GOC
744am__fastdepCC_FALSE
745am__fastdepCC_TRUE
746CCDEPMODE
44c925bd 747am__nodep
7a938933
ILT
748AMDEPBACKSLASH
749AMDEP_FALSE
750AMDEP_TRUE
751am__quote
752am__include
753DEPDIR
754OBJEXT
755EXEEXT
756ac_ct_CC
757CPPFLAGS
758LDFLAGS
759CFLAGS
760CC
73b6d7a9
ILT
761AM_BACKSLASH
762AM_DEFAULT_VERBOSITY
763AM_DEFAULT_V
764AM_V
7a938933
ILT
765am__untar
766am__tar
767AMTAR
768am__leading_dot
769SET_MAKE
770AWK
771mkdir_p
772MKDIR_P
773INSTALL_STRIP_PROGRAM
774STRIP
775install_sh
776MAKEINFO
777AUTOHEADER
778AUTOMAKE
779AUTOCONF
780ACLOCAL
781VERSION
782PACKAGE
783CYGPATH_W
784am__isrc
785INSTALL_DATA
786INSTALL_SCRIPT
787INSTALL_PROGRAM
788target_os
789target_vendor
790target_cpu
791target
792host_os
793host_vendor
794host_cpu
795host
796build_os
797build_vendor
798build_cpu
799build
800multi_basedir
801libtool_VERSION
802target_alias
803host_alias
804build_alias
805LIBS
806ECHO_T
807ECHO_N
808ECHO_C
809DEFS
810mandir
811localedir
812libdir
813psdir
814pdfdir
815dvidir
816htmldir
817infodir
818docdir
819oldincludedir
820includedir
821localstatedir
822sharedstatedir
823sysconfdir
824datadir
825datarootdir
826libexecdir
827sbindir
828bindir
829program_transform_name
830prefix
831exec_prefix
832PACKAGE_URL
833PACKAGE_BUGREPORT
834PACKAGE_STRING
835PACKAGE_VERSION
836PACKAGE_TARNAME
837PACKAGE_NAME
838PATH_SEPARATOR
839SHELL'
840ac_subst_files=''
841ac_user_opts='
842enable_option_checking
843enable_multilib
73b6d7a9 844enable_silent_rules
7a938933
ILT
845enable_dependency_tracking
846enable_maintainer_mode
847with_gnu_ld
848enable_shared
849enable_static
850with_pic
851enable_fast_install
852enable_libtool_lock
0d4668c1 853enable_werror
7a938933 854enable_version_specific_runtime_libs
ba386bea 855with_toolexeclibdir
7a938933 856with_libffi
9a85ed03 857with_libatomic
54f0deb0 858with_system_libunwind
7a938933
ILT
859'
860 ac_precious_vars='build_alias
861host_alias
862target_alias
863CPP
864CPPFLAGS'
865
866
867# Initialize some variables set by options.
868ac_init_help=
869ac_init_version=false
870ac_unrecognized_opts=
871ac_unrecognized_sep=
872# The variables have the same names as the options, with
873# dashes changed to underlines.
874cache_file=/dev/null
875exec_prefix=NONE
876no_create=
877no_recursion=
878prefix=NONE
879program_prefix=NONE
880program_suffix=NONE
881program_transform_name=s,x,x,
882silent=
883site=
884srcdir=
885verbose=
886x_includes=NONE
887x_libraries=NONE
888
889# Installation directory options.
890# These are left unexpanded so users can "make install exec_prefix=/foo"
891# and all the variables that are supposed to be based on exec_prefix
892# by default will actually change.
893# Use braces instead of parens because sh, perl, etc. also accept them.
894# (The list follows the same order as the GNU Coding Standards.)
895bindir='${exec_prefix}/bin'
896sbindir='${exec_prefix}/sbin'
897libexecdir='${exec_prefix}/libexec'
898datarootdir='${prefix}/share'
899datadir='${datarootdir}'
900sysconfdir='${prefix}/etc'
901sharedstatedir='${prefix}/com'
902localstatedir='${prefix}/var'
903includedir='${prefix}/include'
904oldincludedir='/usr/include'
905docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906infodir='${datarootdir}/info'
907htmldir='${docdir}'
908dvidir='${docdir}'
909pdfdir='${docdir}'
910psdir='${docdir}'
911libdir='${exec_prefix}/lib'
912localedir='${datarootdir}/locale'
913mandir='${datarootdir}/man'
914
915ac_prev=
916ac_dashdash=
917for ac_option
918do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
73b6d7a9
ILT
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
7a938933
ILT
930 esac
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
73b6d7a9 974 as_fn_error $? "invalid feature name: $ac_useropt"
7a938933
ILT
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
73b6d7a9 1000 as_fn_error $? "invalid feature name: $ac_useropt"
7a938933
ILT
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005"enable_$ac_useropt"
1006"*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
73b6d7a9 1204 as_fn_error $? "invalid package name: $ac_useropt"
7a938933
ILT
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209"with_$ac_useropt"
1210"*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
73b6d7a9 1220 as_fn_error $? "invalid package name: $ac_useropt"
7a938933
ILT
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225"with_$ac_useropt"
1226"*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
73b6d7a9
ILT
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251Try \`$0 --help' for more information"
7a938933
ILT
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
73b6d7a9 1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7a938933
ILT
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
73b6d7a9 1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
7a938933
ILT
1270 ;;
1271
1272 esac
1273done
1274
1275if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
73b6d7a9 1277 as_fn_error $? "missing argument to $ac_option"
7a938933
ILT
1278fi
1279
1280if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
73b6d7a9 1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7a938933
ILT
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286fi
1287
1288# Check all directory arguments for consistency.
1289for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2099d446 1292 libdir localedir mandir
7a938933
ILT
1293do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
73b6d7a9 1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
7a938933
ILT
1307done
1308
1309# There might be people who depend on the old broken behavior: `$host'
1310# used to hold the argument of --host etc.
1311# FIXME: To remove some day.
1312build=$build_alias
1313host=$host_alias
1314target=$target_alias
1315
1316# FIXME: To remove some day.
1317if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
7a938933
ILT
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323fi
1324
1325ac_tool_prefix=
1326test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328test "$silent" = yes && exec 6>/dev/null
1329
1330
1331ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332ac_ls_di=`ls -di .` &&
1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
73b6d7a9 1334 as_fn_error $? "working directory cannot be determined"
7a938933 1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
73b6d7a9 1336 as_fn_error $? "pwd does not report name of working directory"
7a938933
ILT
1337
1338
1339# Find the source files, if location was not specified.
1340if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348$as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370else
1371 ac_srcdir_defaulted=no
1372fi
1373if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
73b6d7a9 1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
7a938933
ILT
1376fi
1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378ac_abs_confdir=`(
73b6d7a9 1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a938933
ILT
1380 pwd)`
1381# When building in place, set srcdir=.
1382if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384fi
1385# Remove unnecessary trailing slashes from srcdir.
1386# Double slashes in file names in object file debugging info
1387# mess up M-x gdb in Emacs.
1388case $srcdir in
1389*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390esac
1391for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396done
1397
1398#
1399# Report the --help message.
1400#
1401if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1406
1407Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412Defaults for the options are specified in brackets.
1413
1414Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
73b6d7a9 1419 -q, --quiet, --silent do not print \`checking ...' messages
7a938933
ILT
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431By default, \`make install' will install all the files in
1432\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434for instance \`--prefix=\$HOME'.
1435
1436For better control, use the options below.
1437
1438Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458_ACEOF
1459
1460 cat <<\_ACEOF
1461
1462Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
1467System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 --target=TARGET configure for building compilers for TARGET [HOST]
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of package-unused version-unused:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480Optional Features:
1481 --disable-option-checking ignore unrecognized --enable/--with options
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-multilib build many library versions (default)
73b6d7a9
ILT
1485 --enable-silent-rules less verbose build output (undo: "make V=1")
1486 --disable-silent-rules verbose build output (undo: "make V=0")
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --enable-maintainer-mode
1492 enable make rules and dependencies not useful (and
1493 sometimes confusing) to the casual installer
7a938933
ILT
1494 --enable-shared[=PKGS] build shared libraries [default=yes]
1495 --enable-static[=PKGS] build static libraries [default=yes]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --disable-libtool-lock avoid locking (might break parallel builds)
0d4668c1 1499 --enable-werror turns on -Werror [default=yes]
7a938933
ILT
1500 --enable-version-specific-runtime-libs
1501 Specify that runtime libraries should be installed
1502 in a compiler-specific directory
1503
1504Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-pic try to use only PIC/non-PIC objects [default=use
1509 both]
ba386bea
ILT
1510 --with-toolexeclibdir=DIR
1511 install libraries built with a cross compiler within
1512 DIR
7a938933 1513 --without-libffi don't use libffi
9a85ed03 1514 --without-libatomic don't use libatomic
54f0deb0 1515 --with-system-libunwind use installed libunwind
7a938933
ILT
1516
1517Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
73b6d7a9 1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a938933
ILT
1524 you have headers in a nonstandard directory <include dir>
1525 GOC Go compiler command
73b6d7a9 1526 GOFLAGS Go compiler flags
4d12cf3c
ILT
1527 CCAS assembler compiler command (defaults to CC)
1528 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
7a938933
ILT
1529 CPP C preprocessor
1530
1531Use these variables to override the choices made by `configure' or to help
1532it to find libraries and programs with nonstandard names/locations.
1533
1534Report bugs to the package provider.
1535_ACEOF
1536ac_status=$?
1537fi
1538
1539if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547case "$ac_dir" in
1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549*)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557esac
1558ac_abs_top_builddir=$ac_pwd
1559ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560# for backward compatibility:
1561ac_top_builddir=$ac_top_build_prefix
1562
1563case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576esac
1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592fi
1593
1594test -n "$ac_init_help" && exit $ac_status
1595if $ac_init_version; then
1596 cat <<\_ACEOF
1597package-unused configure version-unused
73b6d7a9 1598generated by GNU Autoconf 2.69
7a938933 1599
73b6d7a9 1600Copyright (C) 2012 Free Software Foundation, Inc.
7a938933
ILT
1601This configure script is free software; the Free Software Foundation
1602gives unlimited permission to copy, distribute and modify it.
1603_ACEOF
1604 exit
1605fi
1606
1607## ------------------------ ##
1608## Autoconf initialization. ##
1609## ------------------------ ##
1610
1611# ac_fn_c_try_compile LINENO
1612# --------------------------
1613# Try to compile conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_compile ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643fi
73b6d7a9
ILT
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
7a938933
ILT
1646
1647} # ac_fn_c_try_compile
1648
061793a4
ILT
1649# ac_fn_c_try_link LINENO
1650# -----------------------
1651# Try to link conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_link ()
7a938933
ILT
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4
ILT
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
7a938933
ILT
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
061793a4 1663 (eval "$ac_link") 2>conftest.err
7a938933
ILT
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
061793a4
ILT
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
7a938933 1673 test ! -s conftest.err
061793a4
ILT
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
73b6d7a9 1676 test -x conftest$ac_exeext
7a938933
ILT
1677 }; then :
1678 ac_retval=0
1679else
1680 $as_echo "$as_me: failed program was:" >&5
1681sed 's/^/| /' conftest.$ac_ext >&5
1682
061793a4 1683 ac_retval=1
7a938933 1684fi
061793a4
ILT
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
7a938933 1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
73b6d7a9
ILT
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
7a938933 1692
061793a4 1693} # ac_fn_c_try_link
7a938933
ILT
1694
1695# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696# -------------------------------------------------------
1697# Tests whether HEADER exists and can be compiled using the include files in
1698# INCLUDES, setting the cache variable VAR accordingly.
1699ac_fn_c_check_header_compile ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1704if eval \${$3+:} false; then :
7a938933
ILT
1705 $as_echo_n "(cached) " >&6
1706else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708/* end confdefs.h. */
1709$4
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_compile "$LINENO"; then :
1713 eval "$3=yes"
1714else
1715 eval "$3=no"
1716fi
1717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718fi
1719eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721$as_echo "$ac_res" >&6; }
73b6d7a9 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7a938933
ILT
1723
1724} # ac_fn_c_check_header_compile
1725
061793a4
ILT
1726# ac_fn_c_try_cpp LINENO
1727# ----------------------
1728# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_cpp ()
7a938933
ILT
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
061793a4 1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
7a938933
ILT
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
061793a4 1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
7a938933
ILT
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
73b6d7a9 1747 test $ac_status = 0; } > conftest.i && {
061793a4 1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7a938933
ILT
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
061793a4
ILT
1756 ac_retval=1
1757fi
73b6d7a9
ILT
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
061793a4
ILT
1760
1761} # ac_fn_c_try_cpp
1762
1763# ac_fn_c_try_run LINENO
1764# ----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766# that executables *can* be run.
1767ac_fn_c_try_run ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: program exited with status $ac_status" >&5
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=$ac_status
7a938933
ILT
1798fi
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
73b6d7a9
ILT
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
7a938933 1802
061793a4 1803} # ac_fn_c_try_run
7a938933
ILT
1804
1805# ac_fn_c_check_func LINENO FUNC VAR
1806# ----------------------------------
1807# Tests whether FUNC exists, setting the cache variable VAR accordingly
1808ac_fn_c_check_func ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1813if eval \${$3+:} false; then :
7a938933
ILT
1814 $as_echo_n "(cached) " >&6
1815else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820#define $2 innocuous_$2
1821
1822/* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827#ifdef __STDC__
1828# include <limits.h>
1829#else
1830# include <assert.h>
1831#endif
1832
1833#undef $2
1834
1835/* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838#ifdef __cplusplus
1839extern "C"
1840#endif
1841char $2 ();
1842/* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845#if defined __stub_$2 || defined __stub___$2
1846choke me
1847#endif
1848
1849int
1850main ()
1851{
1852return $2 ();
1853 ;
1854 return 0;
1855}
1856_ACEOF
1857if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859else
1860 eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
73b6d7a9 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7a938933
ILT
1869
1870} # ac_fn_c_check_func
1871
1872# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1873# -------------------------------------------------------
1874# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1875# the include files in INCLUDES and setting the cache variable VAR
1876# accordingly.
1877ac_fn_c_check_header_mongrel ()
1878{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
73b6d7a9 1880 if eval \${$3+:} false; then :
7a938933
ILT
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1883if eval \${$3+:} false; then :
7a938933
ILT
1884 $as_echo_n "(cached) " >&6
1885fi
1886eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889else
1890 # Is the header compilable?
1891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1892$as_echo_n "checking $2 usability... " >&6; }
1893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895$4
1896#include <$2>
1897_ACEOF
1898if ac_fn_c_try_compile "$LINENO"; then :
1899 ac_header_compiler=yes
1900else
1901 ac_header_compiler=no
1902fi
1903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1905$as_echo "$ac_header_compiler" >&6; }
1906
1907# Is the header present?
1908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1909$as_echo_n "checking $2 presence... " >&6; }
1910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912#include <$2>
1913_ACEOF
1914if ac_fn_c_try_cpp "$LINENO"; then :
1915 ac_header_preproc=yes
1916else
1917 ac_header_preproc=no
1918fi
73b6d7a9 1919rm -f conftest.err conftest.i conftest.$ac_ext
7a938933
ILT
1920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1921$as_echo "$ac_header_preproc" >&6; }
1922
1923# So? What about this header?
1924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1925 yes:no: )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1927$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 ;;
1931 no:yes:* )
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1933$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1935$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1937$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1939$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 ;;
1943esac
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1946if eval \${$3+:} false; then :
7a938933
ILT
1947 $as_echo_n "(cached) " >&6
1948else
1949 eval "$3=\$ac_header_compiler"
1950fi
1951eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953$as_echo "$ac_res" >&6; }
1954fi
73b6d7a9 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7a938933
ILT
1956
1957} # ac_fn_c_check_header_mongrel
1958
1959# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960# -------------------------------------------
1961# Tests whether TYPE exists after having included INCLUDES, setting cache
1962# variable VAR accordingly.
1963ac_fn_c_check_type ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
73b6d7a9 1968if eval \${$3+:} false; then :
7a938933
ILT
1969 $as_echo_n "(cached) " >&6
1970else
1971 eval "$3=no"
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h. */
1974$4
1975int
1976main ()
1977{
1978if (sizeof ($2))
1979 return 0;
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987$4
1988int
1989main ()
1990{
1991if (sizeof (($2)))
1992 return 0;
1993 ;
1994 return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998
1999else
2000 eval "$3=yes"
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
73b6d7a9 2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7a938933
ILT
2010
2011} # ac_fn_c_check_type
207c35fa
ILT
2012
2013# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2014# --------------------------------------------
2015# Tries to find the compile-time value of EXPR in a program that includes
2016# INCLUDES, setting VAR accordingly. Returns whether the value could be
2017# computed
2018ac_fn_c_compute_int ()
2019{
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 if test "$cross_compiling" = yes; then
2022 # Depending upon the size, compute the lo and hi bounds.
2023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$4
2026int
2027main ()
2028{
2029static int test_array [1 - 2 * !(($2) >= 0)];
73b6d7a9
ILT
2030test_array [0] = 0;
2031return test_array [0];
207c35fa
ILT
2032
2033 ;
2034 return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038 ac_lo=0 ac_mid=0
2039 while :; do
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h. */
2042$4
2043int
2044main ()
2045{
2046static int test_array [1 - 2 * !(($2) <= $ac_mid)];
73b6d7a9
ILT
2047test_array [0] = 0;
2048return test_array [0];
207c35fa
ILT
2049
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_hi=$ac_mid; break
2056else
2057 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2058 if test $ac_lo -le $ac_mid; then
2059 ac_lo= ac_hi=
2060 break
2061 fi
2062 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2063fi
2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 done
2066else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068/* end confdefs.h. */
2069$4
2070int
2071main ()
2072{
2073static int test_array [1 - 2 * !(($2) < 0)];
73b6d7a9
ILT
2074test_array [0] = 0;
2075return test_array [0];
207c35fa
ILT
2076
2077 ;
2078 return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_hi=-1 ac_mid=-1
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090static int test_array [1 - 2 * !(($2) >= $ac_mid)];
73b6d7a9
ILT
2091test_array [0] = 0;
2092return test_array [0];
207c35fa
ILT
2093
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=$ac_mid; break
2100else
2101 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2102 if test $ac_mid -le $ac_hi; then
2103 ac_lo= ac_hi=
2104 break
2105 fi
2106 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110else
2111 ac_lo= ac_hi=
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116# Binary search between lo and hi bounds.
2117while test "x$ac_lo" != "x$ac_hi"; do
2118 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121$4
2122int
2123main ()
2124{
2125static int test_array [1 - 2 * !(($2) <= $ac_mid)];
73b6d7a9
ILT
2126test_array [0] = 0;
2127return test_array [0];
207c35fa
ILT
2128
2129 ;
2130 return 0;
2131}
2132_ACEOF
2133if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=$ac_mid
2135else
2136 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2137fi
2138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139done
2140case $ac_lo in #((
2141?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2142'') ac_retval=1 ;;
2143esac
2144 else
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h. */
2147$4
2148static long int longval () { return $2; }
2149static unsigned long int ulongval () { return $2; }
2150#include <stdio.h>
2151#include <stdlib.h>
2152int
2153main ()
2154{
2155
2156 FILE *f = fopen ("conftest.val", "w");
2157 if (! f)
2158 return 1;
2159 if (($2) < 0)
2160 {
2161 long int i = longval ();
2162 if (i != ($2))
2163 return 1;
2164 fprintf (f, "%ld", i);
2165 }
2166 else
2167 {
2168 unsigned long int i = ulongval ();
2169 if (i != ($2))
2170 return 1;
2171 fprintf (f, "%lu", i);
2172 }
2173 /* Do not output a trailing newline, as this causes \r\n confusion
2174 on some platforms. */
2175 return ferror (f) || fclose (f) != 0;
2176
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_run "$LINENO"; then :
2182 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2183else
2184 ac_retval=1
2185fi
2186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2187 conftest.$ac_objext conftest.beam conftest.$ac_ext
2188rm -f conftest.val
2189
2190 fi
73b6d7a9
ILT
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 as_fn_set_status $ac_retval
207c35fa
ILT
2193
2194} # ac_fn_c_compute_int
7a938933
ILT
2195cat >config.log <<_ACEOF
2196This file contains any messages produced by compilers while
2197running configure, to aid debugging if configure makes a mistake.
2198
2199It was created by package-unused $as_me version-unused, which was
73b6d7a9 2200generated by GNU Autoconf 2.69. Invocation command line was
7a938933
ILT
2201
2202 $ $0 $@
2203
2204_ACEOF
2205exec 5>>config.log
2206{
2207cat <<_ASUNAME
2208## --------- ##
2209## Platform. ##
2210## --------- ##
2211
2212hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2213uname -m = `(uname -m) 2>/dev/null || echo unknown`
2214uname -r = `(uname -r) 2>/dev/null || echo unknown`
2215uname -s = `(uname -s) 2>/dev/null || echo unknown`
2216uname -v = `(uname -v) 2>/dev/null || echo unknown`
2217
2218/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2219/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2220
2221/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2222/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2223/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2224/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2225/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2226/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2227/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2228
2229_ASUNAME
2230
2231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232for as_dir in $PATH
2233do
2234 IFS=$as_save_IFS
2235 test -z "$as_dir" && as_dir=.
2236 $as_echo "PATH: $as_dir"
2237 done
2238IFS=$as_save_IFS
2239
2240} >&5
2241
2242cat >&5 <<_ACEOF
2243
2244
2245## ----------- ##
2246## Core tests. ##
2247## ----------- ##
2248
2249_ACEOF
2250
2251
2252# Keep a trace of the command line.
2253# Strip out --no-create and --no-recursion so they do not pile up.
2254# Strip out --silent because we don't want to record it for future runs.
2255# Also quote any args containing shell meta-characters.
2256# Make two passes to allow for proper duplicate-argument suppression.
2257ac_configure_args=
2258ac_configure_args0=
2259ac_configure_args1=
2260ac_must_keep_next=false
2261for ac_pass in 1 2
2262do
2263 for ac_arg
2264 do
2265 case $ac_arg in
2266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2268 | -silent | --silent | --silen | --sile | --sil)
2269 continue ;;
2270 *\'*)
2271 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2272 esac
2273 case $ac_pass in
2274 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2275 2)
2276 as_fn_append ac_configure_args1 " '$ac_arg'"
2277 if test $ac_must_keep_next = true; then
2278 ac_must_keep_next=false # Got value, back to normal.
2279 else
2280 case $ac_arg in
2281 *=* | --config-cache | -C | -disable-* | --disable-* \
2282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2284 | -with-* | --with-* | -without-* | --without-* | --x)
2285 case "$ac_configure_args0 " in
2286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2287 esac
2288 ;;
2289 -* ) ac_must_keep_next=true ;;
2290 esac
2291 fi
2292 as_fn_append ac_configure_args " '$ac_arg'"
2293 ;;
2294 esac
2295 done
2296done
2297{ ac_configure_args0=; unset ac_configure_args0;}
2298{ ac_configure_args1=; unset ac_configure_args1;}
2299
2300# When interrupted or exit'd, cleanup temporary files, and complete
2301# config.log. We remove comments because anyway the quotes in there
2302# would cause problems or look ugly.
2303# WARNING: Use '\'' to represent an apostrophe within the trap.
2304# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2305trap 'exit_status=$?
2306 # Save into config.log some information that might help in debugging.
2307 {
2308 echo
2309
73b6d7a9 2310 $as_echo "## ---------------- ##
7a938933 2311## Cache variables. ##
73b6d7a9 2312## ---------------- ##"
7a938933
ILT
2313 echo
2314 # The following way of writing the cache mishandles newlines in values,
2315(
2316 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2317 eval ac_val=\$$ac_var
2318 case $ac_val in #(
2319 *${as_nl}*)
2320 case $ac_var in #(
2321 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2322$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2323 esac
2324 case $ac_var in #(
2325 _ | IFS | as_nl) ;; #(
2326 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2327 *) { eval $ac_var=; unset $ac_var;} ;;
2328 esac ;;
2329 esac
2330 done
2331 (set) 2>&1 |
2332 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2333 *${as_nl}ac_space=\ *)
2334 sed -n \
2335 "s/'\''/'\''\\\\'\'''\''/g;
2336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2337 ;; #(
2338 *)
2339 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2340 ;;
2341 esac |
2342 sort
2343)
2344 echo
2345
73b6d7a9 2346 $as_echo "## ----------------- ##
7a938933 2347## Output variables. ##
73b6d7a9 2348## ----------------- ##"
7a938933
ILT
2349 echo
2350 for ac_var in $ac_subst_vars
2351 do
2352 eval ac_val=\$$ac_var
2353 case $ac_val in
2354 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2355 esac
2356 $as_echo "$ac_var='\''$ac_val'\''"
2357 done | sort
2358 echo
2359
2360 if test -n "$ac_subst_files"; then
73b6d7a9 2361 $as_echo "## ------------------- ##
7a938933 2362## File substitutions. ##
73b6d7a9 2363## ------------------- ##"
7a938933
ILT
2364 echo
2365 for ac_var in $ac_subst_files
2366 do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in
2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 esac
2371 $as_echo "$ac_var='\''$ac_val'\''"
2372 done | sort
2373 echo
2374 fi
2375
2376 if test -s confdefs.h; then
73b6d7a9 2377 $as_echo "## ----------- ##
7a938933 2378## confdefs.h. ##
73b6d7a9 2379## ----------- ##"
7a938933
ILT
2380 echo
2381 cat confdefs.h
2382 echo
2383 fi
2384 test "$ac_signal" != 0 &&
2385 $as_echo "$as_me: caught signal $ac_signal"
2386 $as_echo "$as_me: exit $exit_status"
2387 } >&5
2388 rm -f core *.core core.conftest.* &&
2389 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2390 exit $exit_status
2391' 0
2392for ac_signal in 1 2 13 15; do
2393 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2394done
2395ac_signal=0
2396
2397# confdefs.h avoids OS command line length limits that DEFS can exceed.
2398rm -f -r conftest* confdefs.h
2399
2400$as_echo "/* confdefs.h */" > confdefs.h
2401
2402# Predefined preprocessor variables.
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_NAME "$PACKAGE_NAME"
2406_ACEOF
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2410_ACEOF
2411
2412cat >>confdefs.h <<_ACEOF
2413#define PACKAGE_VERSION "$PACKAGE_VERSION"
2414_ACEOF
2415
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_STRING "$PACKAGE_STRING"
2418_ACEOF
2419
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2422_ACEOF
2423
2424cat >>confdefs.h <<_ACEOF
2425#define PACKAGE_URL "$PACKAGE_URL"
2426_ACEOF
2427
2428
2429# Let the site file select an alternate cache file if it wants to.
2430# Prefer an explicitly selected file to automatically selected ones.
2431ac_site_file1=NONE
2432ac_site_file2=NONE
2433if test -n "$CONFIG_SITE"; then
73b6d7a9
ILT
2434 # We do not want a PATH search for config.site.
2435 case $CONFIG_SITE in #((
2436 -*) ac_site_file1=./$CONFIG_SITE;;
2437 */*) ac_site_file1=$CONFIG_SITE;;
2438 *) ac_site_file1=./$CONFIG_SITE;;
2439 esac
7a938933
ILT
2440elif test "x$prefix" != xNONE; then
2441 ac_site_file1=$prefix/share/config.site
2442 ac_site_file2=$prefix/etc/config.site
2443else
2444 ac_site_file1=$ac_default_prefix/share/config.site
2445 ac_site_file2=$ac_default_prefix/etc/config.site
2446fi
2447for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2448do
2449 test "x$ac_site_file" = xNONE && continue
73b6d7a9 2450 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7a938933
ILT
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2452$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2453 sed 's/^/| /' "$ac_site_file" >&5
73b6d7a9
ILT
2454 . "$ac_site_file" \
2455 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457as_fn_error $? "failed to load site script $ac_site_file
2458See \`config.log' for more details" "$LINENO" 5; }
7a938933
ILT
2459 fi
2460done
2461
2462if test -r "$cache_file"; then
73b6d7a9
ILT
2463 # Some versions of bash will fail to source /dev/null (special files
2464 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2465 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7a938933
ILT
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2467$as_echo "$as_me: loading cache $cache_file" >&6;}
2468 case $cache_file in
2469 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2470 *) . "./$cache_file";;
2471 esac
2472 fi
2473else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2475$as_echo "$as_me: creating cache $cache_file" >&6;}
2476 >$cache_file
2477fi
2478
2479# Check that the precious variables saved in the cache have kept the same
2480# value.
2481ac_cache_corrupted=false
2482for ac_var in $ac_precious_vars; do
2483 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2484 eval ac_new_set=\$ac_env_${ac_var}_set
2485 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2486 eval ac_new_val=\$ac_env_${ac_var}_value
2487 case $ac_old_set,$ac_new_set in
2488 set,)
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2490$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2491 ac_cache_corrupted=: ;;
2492 ,set)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2494$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2495 ac_cache_corrupted=: ;;
2496 ,);;
2497 *)
2498 if test "x$ac_old_val" != "x$ac_new_val"; then
2499 # differences in whitespace do not lead to failure.
2500 ac_old_val_w=`echo x $ac_old_val`
2501 ac_new_val_w=`echo x $ac_new_val`
2502 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2504$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2505 ac_cache_corrupted=:
2506 else
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2508$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2509 eval $ac_var=\$ac_old_val
2510 fi
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2512$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2514$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2515 fi;;
2516 esac
2517 # Pass precious variables to config.status.
2518 if test "$ac_new_set" = set; then
2519 case $ac_new_val in
2520 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2521 *) ac_arg=$ac_var=$ac_new_val ;;
2522 esac
2523 case " $ac_configure_args " in
2524 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2525 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2526 esac
2527 fi
2528done
2529if $ac_cache_corrupted; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2533$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
73b6d7a9 2534 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
7a938933
ILT
2535fi
2536## -------------------- ##
2537## Main body of script. ##
2538## -------------------- ##
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
2547
54f0deb0
ILT
2548
2549
2550
7a938933
ILT
2551ac_config_headers="$ac_config_headers config.h"
2552
2553
a01dda3c 2554libtool_VERSION=18:0:0
7a938933
ILT
2555
2556
2557# Default to --enable-multilib
2558# Check whether --enable-multilib was given.
2559if test "${enable_multilib+set}" = set; then :
2560 enableval=$enable_multilib; case "$enableval" in
2561 yes) multilib=yes ;;
2562 no) multilib=no ;;
73b6d7a9 2563 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
7a938933
ILT
2564 esac
2565else
2566 multilib=yes
2567fi
2568
2569
2570# We may get other options which we leave undocumented:
2571# --with-target-subdir, --with-multisrctop, --with-multisubdir
2572# See config-ml.in if you want the gory details.
2573
2574if test "$srcdir" = "."; then
2575 if test "$with_target_subdir" != "."; then
2576 multi_basedir="$srcdir/$with_multisrctop../.."
2577 else
2578 multi_basedir="$srcdir/$with_multisrctop.."
2579 fi
2580else
2581 multi_basedir="$srcdir/.."
2582fi
2583
2584
2585# Even if the default multilib is not a cross compilation,
2586# it may be that some of the other multilibs are.
2587if test $cross_compiling = no && test $multilib = yes \
2588 && test "x${with_multisubdir}" != x ; then
2589 cross_compiling=maybe
2590fi
2591
2592ac_config_commands="$ac_config_commands default-1"
2593
2594
2595ac_aux_dir=
2596for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
73b6d7a9
ILT
2597 if test -f "$ac_dir/install-sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2600 break
2601 elif test -f "$ac_dir/install.sh"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2604 break
2605 elif test -f "$ac_dir/shtool"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2608 break
2609 fi
7a938933
ILT
2610done
2611if test -z "$ac_aux_dir"; then
73b6d7a9 2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7a938933
ILT
2613fi
2614
2615# These three variables are undocumented and unsupported,
2616# and are intended to be withdrawn in a future Autoconf release.
2617# They can cause serious problems if a builder's source tree is in a directory
2618# whose full name contains unusual characters.
2619ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622
2623
2624# Make sure we can run config.sub.
2625$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
73b6d7a9 2626 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7a938933
ILT
2627
2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629$as_echo_n "checking build system type... " >&6; }
73b6d7a9 2630if ${ac_cv_build+:} false; then :
7a938933
ILT
2631 $as_echo_n "(cached) " >&6
2632else
2633 ac_build_alias=$build_alias
2634test "x$ac_build_alias" = x &&
2635 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636test "x$ac_build_alias" = x &&
73b6d7a9 2637 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7a938933 2638ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
73b6d7a9 2639 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
7a938933
ILT
2640
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643$as_echo "$ac_cv_build" >&6; }
2644case $ac_cv_build in
2645*-*-*) ;;
73b6d7a9 2646*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7a938933
ILT
2647esac
2648build=$ac_cv_build
2649ac_save_IFS=$IFS; IFS='-'
2650set x $ac_cv_build
2651shift
2652build_cpu=$1
2653build_vendor=$2
2654shift; shift
2655# Remember, the first character of IFS is used to create $*,
2656# except with old shells:
2657build_os=$*
2658IFS=$ac_save_IFS
2659case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2660
2661
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663$as_echo_n "checking host system type... " >&6; }
73b6d7a9 2664if ${ac_cv_host+:} false; then :
7a938933
ILT
2665 $as_echo_n "(cached) " >&6
2666else
2667 if test "x$host_alias" = x; then
2668 ac_cv_host=$ac_cv_build
2669else
2670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
73b6d7a9 2671 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7a938933
ILT
2672fi
2673
2674fi
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676$as_echo "$ac_cv_host" >&6; }
2677case $ac_cv_host in
2678*-*-*) ;;
73b6d7a9 2679*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7a938933
ILT
2680esac
2681host=$ac_cv_host
2682ac_save_IFS=$IFS; IFS='-'
2683set x $ac_cv_host
2684shift
2685host_cpu=$1
2686host_vendor=$2
2687shift; shift
2688# Remember, the first character of IFS is used to create $*,
2689# except with old shells:
2690host_os=$*
2691IFS=$ac_save_IFS
2692case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2693
2694
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2696$as_echo_n "checking target system type... " >&6; }
73b6d7a9 2697if ${ac_cv_target+:} false; then :
7a938933
ILT
2698 $as_echo_n "(cached) " >&6
2699else
2700 if test "x$target_alias" = x; then
2701 ac_cv_target=$ac_cv_host
2702else
2703 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
73b6d7a9 2704 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
7a938933
ILT
2705fi
2706
2707fi
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2709$as_echo "$ac_cv_target" >&6; }
2710case $ac_cv_target in
2711*-*-*) ;;
73b6d7a9 2712*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
7a938933
ILT
2713esac
2714target=$ac_cv_target
2715ac_save_IFS=$IFS; IFS='-'
2716set x $ac_cv_target
2717shift
2718target_cpu=$1
2719target_vendor=$2
2720shift; shift
2721# Remember, the first character of IFS is used to create $*,
2722# except with old shells:
2723target_os=$*
2724IFS=$ac_save_IFS
2725case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2726
2727
2728# The aliases save the names the user supplied, while $host etc.
2729# will get canonicalized.
2730test -n "$target_alias" &&
2731 test "$program_prefix$program_suffix$program_transform_name" = \
2732 NONENONEs,x,x, &&
2733 program_prefix=${target_alias}-
2734
2735target_alias=${target_alias-$host_alias}
2736
73b6d7a9 2737am__api_version='1.15'
7a938933
ILT
2738
2739# Find a good install program. We prefer a C program (faster),
2740# so one script is as good as another. But avoid the broken or
2741# incompatible versions:
2742# SysV /etc/install, /usr/sbin/install
2743# SunOS /usr/etc/install
2744# IRIX /sbin/install
2745# AIX /bin/install
2746# AmigaOS /C/install, which installs bootblocks on floppy discs
2747# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2748# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2749# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2750# OS/2's system install, which has a completely different semantic
2751# ./install, which can be erroneously created by make from ./install.sh.
2752# Reject install programs that cannot install multiple files.
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2754$as_echo_n "checking for a BSD-compatible install... " >&6; }
2755if test -z "$INSTALL"; then
73b6d7a9 2756if ${ac_cv_path_install+:} false; then :
7a938933
ILT
2757 $as_echo_n "(cached) " >&6
2758else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 # Account for people who put trailing slashes in PATH elements.
2765case $as_dir/ in #((
2766 ./ | .// | /[cC]/* | \
2767 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2768 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2769 /usr/ucb/* ) ;;
2770 *)
2771 # OSF1 and SCO ODT 3.0 have their own names for install.
2772 # Don't use installbsd from OSF since it installs stuff as root
2773 # by default.
2774 for ac_prog in ginstall scoinst install; do
2775 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 2776 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7a938933
ILT
2777 if test $ac_prog = install &&
2778 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779 # AIX install. It has an incompatible calling convention.
2780 :
2781 elif test $ac_prog = install &&
2782 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2783 # program-specific install script used by HP pwplus--don't use.
2784 :
2785 else
2786 rm -rf conftest.one conftest.two conftest.dir
2787 echo one > conftest.one
2788 echo two > conftest.two
2789 mkdir conftest.dir
2790 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2791 test -s conftest.one && test -s conftest.two &&
2792 test -s conftest.dir/conftest.one &&
2793 test -s conftest.dir/conftest.two
2794 then
2795 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2796 break 3
2797 fi
2798 fi
2799 fi
2800 done
2801 done
2802 ;;
2803esac
2804
2805 done
2806IFS=$as_save_IFS
2807
2808rm -rf conftest.one conftest.two conftest.dir
2809
2810fi
2811 if test "${ac_cv_path_install+set}" = set; then
2812 INSTALL=$ac_cv_path_install
2813 else
2814 # As a last resort, use the slow shell script. Don't cache a
2815 # value for INSTALL within a source directory, because that will
2816 # break other packages using the cache if that directory is
2817 # removed, or if the value is a relative name.
2818 INSTALL=$ac_install_sh
2819 fi
2820fi
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2822$as_echo "$INSTALL" >&6; }
2823
2824# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2825# It thinks the first close brace ends the variable substitution.
2826test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2827
2828test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2829
2830test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2831
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2833$as_echo_n "checking whether build environment is sane... " >&6; }
7a938933
ILT
2834# Reject unsafe characters in $srcdir or the absolute working directory
2835# name. Accept space and tab only in the latter.
2836am_lf='
2837'
2838case `pwd` in
2839 *[\\\"\#\$\&\'\`$am_lf]*)
73b6d7a9 2840 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
7a938933
ILT
2841esac
2842case $srcdir in
2843 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
73b6d7a9 2844 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
7a938933
ILT
2845esac
2846
73b6d7a9 2847# Do 'set' in a subshell so we don't clobber the current shell's
7a938933
ILT
2848# arguments. Must try -L first in case configure is actually a
2849# symlink; some systems play weird games with the mod time of symlinks
2850# (eg FreeBSD returns the mod time of the symlink's containing
2851# directory).
2852if (
73b6d7a9
ILT
2853 am_has_slept=no
2854 for am_try in 1 2; do
2855 echo "timestamp, slept: $am_has_slept" > conftest.file
2856 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2857 if test "$*" = "X"; then
2858 # -L didn't work.
2859 set X `ls -t "$srcdir/configure" conftest.file`
2860 fi
2861 if test "$*" != "X $srcdir/configure conftest.file" \
2862 && test "$*" != "X conftest.file $srcdir/configure"; then
2863
2864 # If neither matched, then we have a broken ls. This can happen
2865 # if, for instance, CONFIG_SHELL is bash and it inherits a
2866 # broken ls alias from the environment. This has actually
2867 # happened. Such a system could not be considered "sane".
2868 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2869 alias in your environment" "$LINENO" 5
2870 fi
2871 if test "$2" = conftest.file || test $am_try -eq 2; then
2872 break
2873 fi
2874 # Just in case.
2875 sleep 1
2876 am_has_slept=yes
2877 done
7a938933
ILT
2878 test "$2" = conftest.file
2879 )
2880then
2881 # Ok.
2882 :
2883else
73b6d7a9 2884 as_fn_error $? "newly created file is older than distributed files!
7a938933
ILT
2885Check your system clock" "$LINENO" 5
2886fi
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888$as_echo "yes" >&6; }
73b6d7a9
ILT
2889# If we didn't sleep, we still need to ensure time stamps of config.status and
2890# generated files are strictly newer.
2891am_sleep_pid=
2892if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2893 ( sleep 1 ) &
2894 am_sleep_pid=$!
2895fi
2896
2897rm -f conftest.file
2898
7a938933
ILT
2899test "$program_prefix" != NONE &&
2900 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2901# Use a double $ so make ignores it.
2902test "$program_suffix" != NONE &&
2903 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2904# Double any \ or $.
2905# By default was `s,x,x', remove it if useless.
2906ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2907program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2908
73b6d7a9
ILT
2909# Expand $ac_aux_dir to an absolute path.
2910am_aux_dir=`cd "$ac_aux_dir" && pwd`
7a938933
ILT
2911
2912if test x"${MISSING+set}" != xset; then
2913 case $am_aux_dir in
2914 *\ * | *\ *)
2915 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2916 *)
2917 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2918 esac
2919fi
2920# Use eval to expand $SHELL
73b6d7a9
ILT
2921if eval "$MISSING --is-lightweight"; then
2922 am_missing_run="$MISSING "
7a938933
ILT
2923else
2924 am_missing_run=
73b6d7a9
ILT
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2926$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
7a938933
ILT
2927fi
2928
73b6d7a9 2929if test x"${install_sh+set}" != xset; then
7a938933
ILT
2930 case $am_aux_dir in
2931 *\ * | *\ *)
2932 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2933 *)
2934 install_sh="\${SHELL} $am_aux_dir/install-sh"
2935 esac
2936fi
2937
73b6d7a9
ILT
2938# Installed binaries are usually stripped using 'strip' when the user
2939# run "make install-strip". However 'strip' might not be the right
7a938933 2940# tool to use in cross-compilation environments, therefore Automake
73b6d7a9 2941# will honor the 'STRIP' environment variable to overrule this program.
7a938933
ILT
2942if test "$cross_compiling" != no; then
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2945set dummy ${ac_tool_prefix}strip; ac_word=$2
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 2948if ${ac_cv_prog_STRIP+:} false; then :
7a938933
ILT
2949 $as_echo_n "(cached) " >&6
2950else
2951 if test -n "$STRIP"; then
2952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
2961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2964 fi
2965done
2966 done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971STRIP=$ac_cv_prog_STRIP
2972if test -n "$STRIP"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2974$as_echo "$STRIP" >&6; }
2975else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978fi
2979
2980
2981fi
2982if test -z "$ac_cv_prog_STRIP"; then
2983 ac_ct_STRIP=$STRIP
2984 # Extract the first word of "strip", so it can be a program name with args.
2985set dummy strip; ac_word=$2
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 2988if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7a938933
ILT
2989 $as_echo_n "(cached) " >&6
2990else
2991 if test -n "$ac_ct_STRIP"; then
2992 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2993else
2994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3001 ac_cv_prog_ac_ct_STRIP="strip"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 break 2
3004 fi
3005done
3006 done
3007IFS=$as_save_IFS
3008
3009fi
3010fi
3011ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3012if test -n "$ac_ct_STRIP"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3014$as_echo "$ac_ct_STRIP" >&6; }
3015else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017$as_echo "no" >&6; }
3018fi
3019
3020 if test "x$ac_ct_STRIP" = x; then
3021 STRIP=":"
3022 else
3023 case $cross_compiling:$ac_tool_warned in
3024yes:)
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027ac_tool_warned=yes ;;
3028esac
3029 STRIP=$ac_ct_STRIP
3030 fi
3031else
3032 STRIP="$ac_cv_prog_STRIP"
3033fi
3034
3035fi
3036INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3037
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3039$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3040if test -z "$MKDIR_P"; then
73b6d7a9 3041 if ${ac_cv_path_mkdir+:} false; then :
7a938933
ILT
3042 $as_echo_n "(cached) " >&6
3043else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3046do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_prog in mkdir gmkdir; do
3050 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3051 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7a938933
ILT
3052 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3053 'mkdir (GNU coreutils) '* | \
3054 'mkdir (coreutils) '* | \
3055 'mkdir (fileutils) '4.1*)
3056 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3057 break 3;;
3058 esac
3059 done
3060 done
3061 done
3062IFS=$as_save_IFS
3063
3064fi
3065
73b6d7a9 3066 test -d ./--version && rmdir ./--version
7a938933
ILT
3067 if test "${ac_cv_path_mkdir+set}" = set; then
3068 MKDIR_P="$ac_cv_path_mkdir -p"
3069 else
3070 # As a last resort, use the slow shell script. Don't cache a
3071 # value for MKDIR_P within a source directory, because that will
3072 # break other packages using the cache if that directory is
3073 # removed, or if the value is a relative name.
7a938933
ILT
3074 MKDIR_P="$ac_install_sh -d"
3075 fi
3076fi
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3078$as_echo "$MKDIR_P" >&6; }
3079
7a938933
ILT
3080for ac_prog in gawk mawk nawk awk
3081do
3082 # Extract the first word of "$ac_prog", so it can be a program name with args.
3083set dummy $ac_prog; ac_word=$2
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3086if ${ac_cv_prog_AWK+:} false; then :
7a938933
ILT
3087 $as_echo_n "(cached) " >&6
3088else
3089 if test -n "$AWK"; then
3090 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3099 ac_cv_prog_AWK="$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103done
3104 done
3105IFS=$as_save_IFS
3106
3107fi
3108fi
3109AWK=$ac_cv_prog_AWK
3110if test -n "$AWK"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3112$as_echo "$AWK" >&6; }
3113else
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115$as_echo "no" >&6; }
3116fi
3117
3118
3119 test -n "$AWK" && break
3120done
3121
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3123$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3124set x ${MAKE-make}
3125ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
73b6d7a9 3126if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7a938933
ILT
3127 $as_echo_n "(cached) " >&6
3128else
3129 cat >conftest.make <<\_ACEOF
3130SHELL = /bin/sh
3131all:
3132 @echo '@@@%%%=$(MAKE)=@@@%%%'
3133_ACEOF
73b6d7a9 3134# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7a938933
ILT
3135case `${MAKE-make} -f conftest.make 2>/dev/null` in
3136 *@@@%%%=?*=@@@%%%*)
3137 eval ac_cv_prog_make_${ac_make}_set=yes;;
3138 *)
3139 eval ac_cv_prog_make_${ac_make}_set=no;;
3140esac
3141rm -f conftest.make
3142fi
3143if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3145$as_echo "yes" >&6; }
3146 SET_MAKE=
3147else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149$as_echo "no" >&6; }
3150 SET_MAKE="MAKE=${MAKE-make}"
3151fi
3152
3153rm -rf .tst 2>/dev/null
3154mkdir .tst 2>/dev/null
3155if test -d .tst; then
3156 am__leading_dot=.
3157else
3158 am__leading_dot=_
3159fi
3160rmdir .tst 2>/dev/null
3161
73b6d7a9
ILT
3162# Check whether --enable-silent-rules was given.
3163if test "${enable_silent_rules+set}" = set; then :
3164 enableval=$enable_silent_rules;
3165fi
3166
3167case $enable_silent_rules in # (((
3168 yes) AM_DEFAULT_VERBOSITY=0;;
3169 no) AM_DEFAULT_VERBOSITY=1;;
3170 *) AM_DEFAULT_VERBOSITY=1;;
3171esac
3172am_make=${MAKE-make}
3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3174$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3175if ${am_cv_make_support_nested_variables+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177else
3178 if $as_echo 'TRUE=$(BAR$(V))
3179BAR0=false
3180BAR1=true
3181V=1
3182am__doit:
3183 @$(TRUE)
3184.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3185 am_cv_make_support_nested_variables=yes
3186else
3187 am_cv_make_support_nested_variables=no
3188fi
3189fi
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3191$as_echo "$am_cv_make_support_nested_variables" >&6; }
3192if test $am_cv_make_support_nested_variables = yes; then
3193 AM_V='$(V)'
3194 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3195else
3196 AM_V=$AM_DEFAULT_VERBOSITY
3197 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3198fi
3199AM_BACKSLASH='\'
3200
7a938933
ILT
3201if test "`cd $srcdir && pwd`" != "`pwd`"; then
3202 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3203 # is not polluted with repeated "-I."
3204 am__isrc=' -I$(srcdir)'
3205 # test to see if srcdir already configured
3206 if test -f $srcdir/config.status; then
73b6d7a9 3207 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7a938933
ILT
3208 fi
3209fi
3210
3211# test whether we have cygpath
3212if test -z "$CYGPATH_W"; then
3213 if (cygpath --version) >/dev/null 2>/dev/null; then
3214 CYGPATH_W='cygpath -w'
3215 else
3216 CYGPATH_W=echo
3217 fi
3218fi
3219
3220
3221# Define the identity of the package.
3222 PACKAGE='libgo'
3223 VERSION='version-unused'
3224
3225
3226# Some tools Automake needs.
3227
3228ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3229
3230
3231AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3232
3233
3234AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3235
3236
3237AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3238
3239
3240MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3241
73b6d7a9
ILT
3242# For better backward compatibility. To be removed once Automake 1.9.x
3243# dies out for good. For more background, see:
3244# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3245# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3246mkdir_p='$(MKDIR_P)'
3247
3248# We need awk for the "check" target (and possibly the TAP driver). The
3249# system "awk" is bad on some platforms.
44c925bd
ILT
3250# Always define AMTAR for backward compatibility. Yes, it's still used
3251# in the wild :-( We should find a proper way to deprecate it ...
3252AMTAR='$${TAR-tar}'
7a938933 3253
73b6d7a9
ILT
3254
3255# We'll loop over all known methods to create a tar archive until one works.
3256_am_tools='gnutar pax cpio none'
3257
44c925bd 3258am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
7a938933
ILT
3259
3260
3261
3262
3263
3264
73b6d7a9
ILT
3265# POSIX will say in a future version that running "rm -f" with no argument
3266# is OK; and we want to be able to make that assumption in our Makefile
3267# recipes. So use an aggressive probe to check that the usage we want is
3268# actually supported "in the wild" to an acceptable degree.
3269# See automake bug#10828.
3270# To make any issue more visible, cause the running configure to be aborted
3271# by default if the 'rm' program in use doesn't match our expectations; the
3272# user can still override this though.
3273if rm -f && rm -fr && rm -rf; then : OK; else
3274 cat >&2 <<'END'
3275Oops!
3276
3277Your 'rm' program seems unable to run without file operands specified
3278on the command line, even when the '-f' option is present. This is contrary
3279to the behaviour of most rm programs out there, and not conforming with
3280the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3281
3282Please tell bug-automake@gnu.org about your system, including the value
3283of your $PATH and any error possibly output before this message. This
3284can help us improve future automake versions.
3285
3286END
3287 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3288 echo 'Configuration will proceed anyway, since you have set the' >&2
3289 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3290 echo >&2
3291 else
3292 cat >&2 <<'END'
3293Aborting the configuration process, to ensure you take notice of the issue.
3294
3295You can download and install GNU coreutils to get an 'rm' implementation
3296that behaves properly: <http://www.gnu.org/software/coreutils/>.
3297
3298If you want to complete the configuration process using your problematic
3299'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3300to "yes", and re-run configure.
3301
3302END
3303 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3304 fi
3305fi
3306
3307
7a938933
ILT
3308
3309
3310
3311
3312ac_ext=c
3313ac_cpp='$CPP $CPPFLAGS'
3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317if test -n "$ac_tool_prefix"; then
3318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3319set dummy ${ac_tool_prefix}gcc; ac_word=$2
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3322if ${ac_cv_prog_CC+:} false; then :
7a938933
ILT
3323 $as_echo_n "(cached) " >&6
3324else
3325 if test -n "$CC"; then
3326 ac_cv_prog_CC="$CC" # Let the user override the test.
3327else
3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329for as_dir in $PATH
3330do
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3335 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339done
3340 done
3341IFS=$as_save_IFS
3342
3343fi
3344fi
3345CC=$ac_cv_prog_CC
3346if test -n "$CC"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3348$as_echo "$CC" >&6; }
3349else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351$as_echo "no" >&6; }
3352fi
3353
3354
3355fi
3356if test -z "$ac_cv_prog_CC"; then
3357 ac_ct_CC=$CC
3358 # Extract the first word of "gcc", so it can be a program name with args.
3359set dummy gcc; ac_word=$2
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3362if ${ac_cv_prog_ac_ct_CC+:} false; then :
7a938933
ILT
3363 $as_echo_n "(cached) " >&6
3364else
3365 if test -n "$ac_ct_CC"; then
3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367else
3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369for as_dir in $PATH
3370do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3375 ac_cv_prog_ac_ct_CC="gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2
3378 fi
3379done
3380 done
3381IFS=$as_save_IFS
3382
3383fi
3384fi
3385ac_ct_CC=$ac_cv_prog_ac_ct_CC
3386if test -n "$ac_ct_CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3388$as_echo "$ac_ct_CC" >&6; }
3389else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392fi
3393
3394 if test "x$ac_ct_CC" = x; then
3395 CC=""
3396 else
3397 case $cross_compiling:$ac_tool_warned in
3398yes:)
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401ac_tool_warned=yes ;;
3402esac
3403 CC=$ac_ct_CC
3404 fi
3405else
3406 CC="$ac_cv_prog_CC"
3407fi
3408
3409if test -z "$CC"; then
3410 if test -n "$ac_tool_prefix"; then
3411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3412set dummy ${ac_tool_prefix}cc; ac_word=$2
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3415if ${ac_cv_prog_CC+:} false; then :
7a938933
ILT
3416 $as_echo_n "(cached) " >&6
3417else
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3428 ac_cv_prog_CC="${ac_tool_prefix}cc"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432done
3433 done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438CC=$ac_cv_prog_CC
3439if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441$as_echo "$CC" >&6; }
3442else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448 fi
3449fi
3450if test -z "$CC"; then
3451 # Extract the first word of "cc", so it can be a program name with args.
3452set dummy cc; ac_word=$2
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3455if ${ac_cv_prog_CC+:} false; then :
7a938933
ILT
3456 $as_echo_n "(cached) " >&6
3457else
3458 if test -n "$CC"; then
3459 ac_cv_prog_CC="$CC" # Let the user override the test.
3460else
3461 ac_prog_rejected=no
3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH
3464do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3470 ac_prog_rejected=yes
3471 continue
3472 fi
3473 ac_cv_prog_CC="cc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477done
3478 done
3479IFS=$as_save_IFS
3480
3481if test $ac_prog_rejected = yes; then
3482 # We found a bogon in the path, so make sure we never use it.
3483 set dummy $ac_cv_prog_CC
3484 shift
3485 if test $# != 0; then
3486 # We chose a different compiler from the bogus one.
3487 # However, it has the same basename, so the bogon will be chosen
3488 # first if we set CC to just the basename; use the full file name.
3489 shift
3490 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3491 fi
3492fi
3493fi
3494fi
3495CC=$ac_cv_prog_CC
3496if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498$as_echo "$CC" >&6; }
3499else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501$as_echo "no" >&6; }
3502fi
3503
3504
3505fi
3506if test -z "$CC"; then
3507 if test -n "$ac_tool_prefix"; then
3508 for ac_prog in cl.exe
3509 do
3510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3514if ${ac_cv_prog_CC+:} false; then :
7a938933
ILT
3515 $as_echo_n "(cached) " >&6
3516else
3517 if test -n "$CC"; then
3518 ac_cv_prog_CC="$CC" # Let the user override the test.
3519else
3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521for as_dir in $PATH
3522do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
3530 fi
3531done
3532 done
3533IFS=$as_save_IFS
3534
3535fi
3536fi
3537CC=$ac_cv_prog_CC
3538if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540$as_echo "$CC" >&6; }
3541else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543$as_echo "no" >&6; }
3544fi
3545
3546
3547 test -n "$CC" && break
3548 done
3549fi
3550if test -z "$CC"; then
3551 ac_ct_CC=$CC
3552 for ac_prog in cl.exe
3553do
3554 # Extract the first word of "$ac_prog", so it can be a program name with args.
3555set dummy $ac_prog; ac_word=$2
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 3558if ${ac_cv_prog_ac_ct_CC+:} false; then :
7a938933
ILT
3559 $as_echo_n "(cached) " >&6
3560else
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3563else
3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565for as_dir in $PATH
3566do
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
3571 ac_cv_prog_ac_ct_CC="$ac_prog"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3574 fi
3575done
3576 done
3577IFS=$as_save_IFS
3578
3579fi
3580fi
3581ac_ct_CC=$ac_cv_prog_ac_ct_CC
3582if test -n "$ac_ct_CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3584$as_echo "$ac_ct_CC" >&6; }
3585else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587$as_echo "no" >&6; }
3588fi
3589
3590
3591 test -n "$ac_ct_CC" && break
3592done
3593
3594 if test "x$ac_ct_CC" = x; then
3595 CC=""
3596 else
3597 case $cross_compiling:$ac_tool_warned in
3598yes:)
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601ac_tool_warned=yes ;;
3602esac
3603 CC=$ac_ct_CC
3604 fi
3605fi
3606
3607fi
3608
3609
3610test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
3612as_fn_error $? "no acceptable C compiler found in \$PATH
3613See \`config.log' for more details" "$LINENO" 5; }
7a938933
ILT
3614
3615# Provide some information about the compiler.
3616$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3617set X $ac_compile
3618ac_compiler=$2
3619for ac_option in --version -v -V -qversion; do
3620 { { ac_try="$ac_compiler $ac_option >&5"
3621case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624esac
3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626$as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3628 ac_status=$?
3629 if test -s conftest.err; then
3630 sed '10a\
3631... rest of stderr output deleted ...
3632 10q' conftest.err >conftest.er1
3633 cat conftest.er1 >&5
7a938933 3634 fi
73b6d7a9 3635 rm -f conftest.er1 conftest.err
7a938933
ILT
3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }
3638done
3639
3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h. */
54f0deb0 3642
7a938933
ILT
3643int
3644main ()
3645{
3646
3647 ;
3648 return 0;
3649}
3650_ACEOF
3651ac_clean_files_save=$ac_clean_files
73b6d7a9 3652ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7a938933
ILT
3653# Try to create an executable without -o first, disregard a.out.
3654# It will help us diagnose broken compilers, and finding out an intuition
3655# of exeext.
73b6d7a9
ILT
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3657$as_echo_n "checking whether the C compiler works... " >&6; }
7a938933
ILT
3658ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3659
3660# The possible output files:
3661ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3662
3663ac_rmfiles=
3664for ac_file in $ac_files
3665do
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3668 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3669 esac
3670done
3671rm -f $ac_rmfiles
3672
3673if { { ac_try="$ac_link_default"
3674case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677esac
3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679$as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_link_default") 2>&5
3681 ac_status=$?
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; then :
3684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3685# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3686# in a Makefile. We should not override ac_cv_exeext if it was cached,
3687# so that the user can short-circuit this test for compilers unknown to
3688# Autoconf.
3689for ac_file in $ac_files ''
3690do
3691 test -f "$ac_file" || continue
3692 case $ac_file in
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3694 ;;
3695 [ab].out )
3696 # We found the default executable, but exeext='' is most
3697 # certainly right.
3698 break;;
3699 *.* )
3700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3701 then :; else
3702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3703 fi
3704 # We set ac_cv_exeext here because the later test for it is not
3705 # safe: cross compilers may not add the suffix if given an `-o'
3706 # argument, so we may need to know it at that point already.
3707 # Even if this section looks crufty: it has the advantage of
3708 # actually working.
3709 break;;
3710 * )
3711 break;;
3712 esac
3713done
3714test "$ac_cv_exeext" = no && ac_cv_exeext=
3715
3716else
3717 ac_file=''
3718fi
7a938933 3719if test -z "$ac_file"; then :
73b6d7a9
ILT
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721$as_echo "no" >&6; }
3722$as_echo "$as_me: failed program was:" >&5
7a938933
ILT
3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
3727as_fn_error 77 "C compiler cannot create executables
3728See \`config.log' for more details" "$LINENO" 5; }
3729else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3731$as_echo "yes" >&6; }
7a938933 3732fi
73b6d7a9
ILT
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3734$as_echo_n "checking for C compiler default output file name... " >&6; }
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3736$as_echo "$ac_file" >&6; }
7a938933
ILT
3737ac_exeext=$ac_cv_exeext
3738
73b6d7a9 3739rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7a938933 3740ac_clean_files=$ac_clean_files_save
7a938933
ILT
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3742$as_echo_n "checking for suffix of executables... " >&6; }
3743if { { ac_try="$ac_link"
3744case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747esac
3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749$as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link") 2>&5
3751 ac_status=$?
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }; then :
3754 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3755# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3756# work properly (i.e., refer to `conftest.exe'), while it won't with
3757# `rm'.
3758for ac_file in conftest.exe conftest conftest.*; do
3759 test -f "$ac_file" || continue
3760 case $ac_file in
3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3763 break;;
3764 * ) break;;
3765 esac
3766done
3767else
3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
3770as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3771See \`config.log' for more details" "$LINENO" 5; }
7a938933 3772fi
73b6d7a9 3773rm -f conftest conftest$ac_cv_exeext
7a938933
ILT
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3775$as_echo "$ac_cv_exeext" >&6; }
3776
3777rm -f conftest.$ac_ext
3778EXEEXT=$ac_cv_exeext
3779ac_exeext=$EXEEXT
73b6d7a9
ILT
3780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h. */
3782#include <stdio.h>
3783int
3784main ()
3785{
3786FILE *f = fopen ("conftest.out", "w");
3787 return ferror (f) || fclose (f) != 0;
3788
3789 ;
3790 return 0;
3791}
3792_ACEOF
3793ac_clean_files="$ac_clean_files conftest.out"
3794# Check that the compiler produces executables we can run. If not, either
3795# the compiler is broken, or we cross compile.
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3797$as_echo_n "checking whether we are cross compiling... " >&6; }
3798if test "$cross_compiling" != yes; then
3799 { { ac_try="$ac_link"
3800case "(($ac_try" in
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3803esac
3804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805$as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_link") 2>&5
3807 ac_status=$?
3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809 test $ac_status = 0; }
3810 if { ac_try='./conftest$ac_cv_exeext'
3811 { { case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814esac
3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816$as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_try") 2>&5
3818 ac_status=$?
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; }; then
3821 cross_compiling=no
3822 else
3823 if test "$cross_compiling" = maybe; then
3824 cross_compiling=yes
3825 else
3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828as_fn_error $? "cannot run C compiled programs.
3829If you meant to cross compile, use \`--host'.
3830See \`config.log' for more details" "$LINENO" 5; }
3831 fi
3832 fi
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3835$as_echo "$cross_compiling" >&6; }
3836
3837rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3838ac_clean_files=$ac_clean_files_save
7a938933
ILT
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3840$as_echo_n "checking for suffix of object files... " >&6; }
73b6d7a9 3841if ${ac_cv_objext+:} false; then :
7a938933
ILT
3842 $as_echo_n "(cached) " >&6
3843else
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h. */
3846
3847int
3848main ()
3849{
3850
3851 ;
3852 return 0;
3853}
3854_ACEOF
3855rm -f conftest.o conftest.obj
3856if { { ac_try="$ac_compile"
3857case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862$as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_compile") 2>&5
3864 ac_status=$?
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }; then :
3867 for ac_file in conftest.o conftest.obj conftest.*; do
3868 test -f "$ac_file" || continue;
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3872 break;;
3873 esac
3874done
3875else
3876 $as_echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
3881as_fn_error $? "cannot compute suffix of object files: cannot compile
3882See \`config.log' for more details" "$LINENO" 5; }
7a938933
ILT
3883fi
3884rm -f conftest.$ac_cv_objext conftest.$ac_ext
3885fi
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3887$as_echo "$ac_cv_objext" >&6; }
3888OBJEXT=$ac_cv_objext
3889ac_objext=$OBJEXT
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3891$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
73b6d7a9 3892if ${ac_cv_c_compiler_gnu+:} false; then :
7a938933
ILT
3893 $as_echo_n "(cached) " >&6
3894else
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h. */
3897
3898int
3899main ()
3900{
3901#ifndef __GNUC__
3902 choke me
3903#endif
3904
3905 ;
3906 return 0;
3907}
3908_ACEOF
3909if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_compiler_gnu=yes
3911else
3912 ac_compiler_gnu=no
3913fi
3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915ac_cv_c_compiler_gnu=$ac_compiler_gnu
3916
3917fi
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3919$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3920if test $ac_compiler_gnu = yes; then
3921 GCC=yes
3922else
3923 GCC=
3924fi
3925ac_test_CFLAGS=${CFLAGS+set}
3926ac_save_CFLAGS=$CFLAGS
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3928$as_echo_n "checking whether $CC accepts -g... " >&6; }
73b6d7a9 3929if ${ac_cv_prog_cc_g+:} false; then :
7a938933
ILT
3930 $as_echo_n "(cached) " >&6
3931else
3932 ac_save_c_werror_flag=$ac_c_werror_flag
3933 ac_c_werror_flag=yes
3934 ac_cv_prog_cc_g=no
3935 CFLAGS="-g"
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h. */
3938
3939int
3940main ()
3941{
3942
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947if ac_fn_c_try_compile "$LINENO"; then :
3948 ac_cv_prog_cc_g=yes
3949else
3950 CFLAGS=""
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h. */
3953
3954int
3955main ()
3956{
3957
3958 ;
3959 return 0;
3960}
3961_ACEOF
3962if ac_fn_c_try_compile "$LINENO"; then :
3963
3964else
3965 ac_c_werror_flag=$ac_save_c_werror_flag
3966 CFLAGS="-g"
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968/* end confdefs.h. */
3969
3970int
3971main ()
3972{
3973
3974 ;
3975 return 0;
3976}
3977_ACEOF
3978if ac_fn_c_try_compile "$LINENO"; then :
3979 ac_cv_prog_cc_g=yes
3980fi
3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982fi
3983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984fi
3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_c_werror_flag=$ac_save_c_werror_flag
3987fi
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3989$as_echo "$ac_cv_prog_cc_g" >&6; }
3990if test "$ac_test_CFLAGS" = set; then
3991 CFLAGS=$ac_save_CFLAGS
3992elif test $ac_cv_prog_cc_g = yes; then
3993 if test "$GCC" = yes; then
3994 CFLAGS="-g -O2"
3995 else
3996 CFLAGS="-g"
3997 fi
3998else
3999 if test "$GCC" = yes; then
4000 CFLAGS="-O2"
4001 else
4002 CFLAGS=
4003 fi
4004fi
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4006$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
73b6d7a9 4007if ${ac_cv_prog_cc_c89+:} false; then :
7a938933
ILT
4008 $as_echo_n "(cached) " >&6
4009else
4010 ac_cv_prog_cc_c89=no
4011ac_save_CC=$CC
4012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013/* end confdefs.h. */
4014#include <stdarg.h>
4015#include <stdio.h>
73b6d7a9 4016struct stat;
7a938933
ILT
4017/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4018struct buf { int x; };
4019FILE * (*rcsopen) (struct buf *, struct stat *, int);
4020static char *e (p, i)
4021 char **p;
4022 int i;
4023{
4024 return p[i];
4025}
4026static char *f (char * (*g) (char **, int), char **p, ...)
4027{
4028 char *s;
4029 va_list v;
4030 va_start (v,p);
4031 s = g (p, va_arg (v,int));
4032 va_end (v);
4033 return s;
4034}
4035
4036/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4037 function prototypes and stuff, but not '\xHH' hex character constants.
4038 These don't provoke an error unfortunately, instead are silently treated
4039 as 'x'. The following induces an error, until -std is added to get
4040 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4041 array size at least. It's necessary to write '\x00'==0 to get something
4042 that's true only with -std. */
4043int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4044
4045/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4046 inside strings and character constants. */
4047#define FOO(x) 'x'
4048int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4049
4050int test (int i, double x);
4051struct s1 {int (*f) (int a);};
4052struct s2 {int (*f) (double a);};
4053int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4054int argc;
4055char **argv;
4056int
4057main ()
4058{
4059return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4065 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4066do
4067 CC="$ac_save_CC $ac_arg"
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_prog_cc_c89=$ac_arg
4070fi
4071rm -f core conftest.err conftest.$ac_objext
4072 test "x$ac_cv_prog_cc_c89" != "xno" && break
4073done
4074rm -f conftest.$ac_ext
4075CC=$ac_save_CC
4076
4077fi
4078# AC_CACHE_VAL
4079case "x$ac_cv_prog_cc_c89" in
4080 x)
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4082$as_echo "none needed" >&6; } ;;
4083 xno)
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4085$as_echo "unsupported" >&6; } ;;
4086 *)
4087 CC="$CC $ac_cv_prog_cc_c89"
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4089$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4090esac
4091if test "x$ac_cv_prog_cc_c89" != xno; then :
4092
4093fi
4094
4095ac_ext=c
4096ac_cpp='$CPP $CPPFLAGS'
4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compiler_gnu=$ac_cv_c_compiler_gnu
73b6d7a9
ILT
4100
4101ac_ext=c
4102ac_cpp='$CPP $CPPFLAGS'
4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4107$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4108if ${am_cv_prog_cc_c_o+:} false; then :
4109 $as_echo_n "(cached) " >&6
4110else
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112/* end confdefs.h. */
4113
4114int
4115main ()
4116{
4117
4118 ;
4119 return 0;
4120}
4121_ACEOF
4122 # Make sure it works both with $CC and with simple cc.
4123 # Following AC_PROG_CC_C_O, we do the test twice because some
4124 # compilers refuse to overwrite an existing .o file with -o,
4125 # though they will create one.
4126 am_cv_prog_cc_c_o=yes
4127 for am_i in 1 2; do
4128 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4129 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } \
4133 && test -f conftest2.$ac_objext; then
4134 : OK
4135 else
4136 am_cv_prog_cc_c_o=no
4137 break
4138 fi
4139 done
4140 rm -f core conftest*
4141 unset am_i
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4144$as_echo "$am_cv_prog_cc_c_o" >&6; }
4145if test "$am_cv_prog_cc_c_o" != yes; then
4146 # Losing compiler, so override with the script.
4147 # FIXME: It is wrong to rewrite CC.
4148 # But if we don't then we get into trouble of one sort or another.
4149 # A longer-term fix would be to have automake use am__CC in this case,
4150 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4151 CC="$am_aux_dir/compile $CC"
4152fi
4153ac_ext=c
4154ac_cpp='$CPP $CPPFLAGS'
4155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158
7a938933
ILT
4159DEPDIR="${am__leading_dot}deps"
4160
4161ac_config_commands="$ac_config_commands depfiles"
4162
4163
4164am_make=${MAKE-make}
4165cat > confinc << 'END'
4166am__doit:
4167 @echo this is the am__doit target
4168.PHONY: am__doit
4169END
4170# If we don't find an include directive, just comment out the code.
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4172$as_echo_n "checking for style of include used by $am_make... " >&6; }
4173am__include="#"
4174am__quote=
4175_am_result=none
4176# First try GNU make style include.
4177echo "include confinc" > confmf
73b6d7a9 4178# Ignore all kinds of additional output from 'make'.
7a938933
ILT
4179case `$am_make -s -f confmf 2> /dev/null` in #(
4180*the\ am__doit\ target*)
4181 am__include=include
4182 am__quote=
4183 _am_result=GNU
4184 ;;
4185esac
4186# Now try BSD make style include.
4187if test "$am__include" = "#"; then
4188 echo '.include "confinc"' > confmf
4189 case `$am_make -s -f confmf 2> /dev/null` in #(
4190 *the\ am__doit\ target*)
4191 am__include=.include
4192 am__quote="\""
4193 _am_result=BSD
4194 ;;
4195 esac
4196fi
4197
4198
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4200$as_echo "$_am_result" >&6; }
4201rm -f confinc confmf
4202
4203# Check whether --enable-dependency-tracking was given.
4204if test "${enable_dependency_tracking+set}" = set; then :
4205 enableval=$enable_dependency_tracking;
4206fi
4207
4208if test "x$enable_dependency_tracking" != xno; then
4209 am_depcomp="$ac_aux_dir/depcomp"
4210 AMDEPBACKSLASH='\'
44c925bd 4211 am__nodep='_no'
7a938933
ILT
4212fi
4213 if test "x$enable_dependency_tracking" != xno; then
4214 AMDEP_TRUE=
4215 AMDEP_FALSE='#'
4216else
4217 AMDEP_TRUE='#'
4218 AMDEP_FALSE=
4219fi
4220
4221
4222
4223depcc="$CC" am_compiler_list=
4224
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4226$as_echo_n "checking dependency style of $depcc... " >&6; }
73b6d7a9 4227if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7a938933
ILT
4228 $as_echo_n "(cached) " >&6
4229else
4230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4231 # We make a subdir and do the tests there. Otherwise we can end up
4232 # making bogus files that we don't know about and never remove. For
4233 # instance it was reported that on HP-UX the gcc test will end up
73b6d7a9
ILT
4234 # making a dummy file named 'D' -- because '-MD' means "put the output
4235 # in D".
44c925bd 4236 rm -rf conftest.dir
7a938933
ILT
4237 mkdir conftest.dir
4238 # Copy depcomp to subdir because otherwise we won't find it if we're
4239 # using a relative directory.
4240 cp "$am_depcomp" conftest.dir
4241 cd conftest.dir
4242 # We will build objects and dependencies in a subdirectory because
4243 # it helps to detect inapplicable dependency modes. For instance
4244 # both Tru64's cc and ICC support -MD to output dependencies as a
4245 # side effect of compilation, but ICC will put the dependencies in
4246 # the current directory while Tru64 will put them in the object
4247 # directory.
4248 mkdir sub
4249
4250 am_cv_CC_dependencies_compiler_type=none
4251 if test "$am_compiler_list" = ""; then
4252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4253 fi
4254 am__universal=false
4255 case " $depcc " in #(
4256 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4257 esac
4258
4259 for depmode in $am_compiler_list; do
4260 # Setup a source with many dependencies, because some compilers
4261 # like to wrap large dependency lists on column 80 (with \), and
4262 # we should not choose a depcomp mode which is confused by this.
4263 #
4264 # We need to recreate these files for each test, as the compiler may
4265 # overwrite some of them when testing with obscure command lines.
4266 # This happens at least with the AIX C compiler.
4267 : > sub/conftest.c
4268 for i in 1 2 3 4 5 6; do
4269 echo '#include "conftst'$i'.h"' >> sub/conftest.c
73b6d7a9
ILT
4270 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4271 # Solaris 10 /bin/sh.
4272 echo '/* dummy */' > sub/conftst$i.h
7a938933
ILT
4273 done
4274 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4275
73b6d7a9 4276 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7a938933 4277 # mode. It turns out that the SunPro C++ compiler does not properly
73b6d7a9
ILT
4278 # handle '-M -o', and we need to detect this. Also, some Intel
4279 # versions had trouble with output in subdirs.
7a938933
ILT
4280 am__obj=sub/conftest.${OBJEXT-o}
4281 am__minus_obj="-o $am__obj"
4282 case $depmode in
4283 gcc)
4284 # This depmode causes a compiler race in universal mode.
4285 test "$am__universal" = false || continue
4286 ;;
4287 nosideeffect)
73b6d7a9
ILT
4288 # After this tag, mechanisms are not by side-effect, so they'll
4289 # only be used when explicitly requested.
7a938933
ILT
4290 if test "x$enable_dependency_tracking" = xyes; then
4291 continue
4292 else
4293 break
4294 fi
4295 ;;
44c925bd 4296 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
73b6d7a9 4297 # This compiler won't grok '-c -o', but also, the minuso test has
7a938933
ILT
4298 # not run yet. These depmodes are late enough in the game, and
4299 # so weak that their functioning should not be impacted.
4300 am__obj=conftest.${OBJEXT-o}
4301 am__minus_obj=
4302 ;;
4303 none) break ;;
4304 esac
4305 if depmode=$depmode \
4306 source=sub/conftest.c object=$am__obj \
4307 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4308 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4309 >/dev/null 2>conftest.err &&
4310 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4311 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4312 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4313 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4314 # icc doesn't choke on unknown options, it will just issue warnings
4315 # or remarks (even with -Werror). So we grep stderr for any message
4316 # that says an option was ignored or not supported.
4317 # When given -MP, icc 7.0 and 7.1 complain thusly:
4318 # icc: Command line warning: ignoring option '-M'; no argument required
4319 # The diagnosis changed in icc 8.0:
4320 # icc: Command line remark: option '-MP' not supported
4321 if (grep 'ignoring option' conftest.err ||
4322 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4323 am_cv_CC_dependencies_compiler_type=$depmode
4324 break
4325 fi
4326 fi
4327 done
4328
4329 cd ..
4330 rm -rf conftest.dir
4331else
4332 am_cv_CC_dependencies_compiler_type=none
4333fi
4334
4335fi
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4337$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4338CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4339
4340 if
4341 test "x$enable_dependency_tracking" != xno \
4342 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4343 am__fastdepCC_TRUE=
4344 am__fastdepCC_FALSE='#'
4345else
4346 am__fastdepCC_TRUE='#'
4347 am__fastdepCC_FALSE=
4348fi
4349
4350
4351ac_ext=go
73b6d7a9
ILT
4352ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4353ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354ac_compiler_gnu=yes
7a938933
ILT
4355if test -n "$ac_tool_prefix"; then
4356 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4357set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 4360if ${ac_cv_prog_GOC+:} false; then :
7a938933
ILT
4361 $as_echo_n "(cached) " >&6
4362else
4363 if test -n "$GOC"; then
4364 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4365else
4366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 4372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
4373 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4376 fi
4377done
4378 done
4379IFS=$as_save_IFS
4380
4381fi
4382fi
4383GOC=$ac_cv_prog_GOC
4384if test -n "$GOC"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4386$as_echo "$GOC" >&6; }
4387else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389$as_echo "no" >&6; }
4390fi
4391
4392
4393fi
4394if test -z "$ac_cv_prog_GOC"; then
4395 ac_ct_GOC=$GOC
4396 # Extract the first word of "gccgo", so it can be a program name with args.
4397set dummy gccgo; ac_word=$2
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 4400if ${ac_cv_prog_ac_ct_GOC+:} false; then :
7a938933
ILT
4401 $as_echo_n "(cached) " >&6
4402else
4403 if test -n "$ac_ct_GOC"; then
4404 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 4412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
4413 ac_cv_prog_ac_ct_GOC="gccgo"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418 done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4424if test -n "$ac_ct_GOC"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4426$as_echo "$ac_ct_GOC" >&6; }
4427else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429$as_echo "no" >&6; }
4430fi
4431
4432 if test "x$ac_ct_GOC" = x; then
4433 GOC=""
4434 else
4435 case $cross_compiling:$ac_tool_warned in
4436yes:)
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4439ac_tool_warned=yes ;;
4440esac
4441 GOC=$ac_ct_GOC
4442 fi
4443else
4444 GOC="$ac_cv_prog_GOC"
4445fi
4446
4447if test -z "$GOC"; then
4448 if test -n "$ac_tool_prefix"; then
4449 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4450set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 4453if ${ac_cv_prog_GOC+:} false; then :
7a938933
ILT
4454 $as_echo_n "(cached) " >&6
4455else
4456 if test -n "$GOC"; then
4457 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 4465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
4466 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470done
4471 done
4472IFS=$as_save_IFS
4473
4474fi
4475fi
4476GOC=$ac_cv_prog_GOC
4477if test -n "$GOC"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4479$as_echo "$GOC" >&6; }
4480else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
4483fi
4484
4485
4486 fi
4487fi
4488if test -z "$GOC"; then
4489 # Extract the first word of "gccgo", so it can be a program name with args.
4490set dummy gccgo; ac_word=$2
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4492$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 4493if ${ac_cv_prog_GOC+:} false; then :
7a938933
ILT
4494 $as_echo_n "(cached) " >&6
4495else
4496 if test -n "$GOC"; then
4497 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4498else
4499 ac_prog_rejected=no
4500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9
ILT
4506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4507 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
7a938933
ILT
4508 ac_prog_rejected=yes
4509 continue
4510 fi
4511 ac_cv_prog_GOC="gccgo"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515done
4516 done
4517IFS=$as_save_IFS
4518
4519if test $ac_prog_rejected = yes; then
4520 # We found a bogon in the path, so make sure we never use it.
4521 set dummy $ac_cv_prog_GOC
4522 shift
4523 if test $# != 0; then
4524 # We chose a different compiler from the bogus one.
4525 # However, it has the same basename, so the bogon will be chosen
4526 # first if we set GOC to just the basename; use the full file name.
4527 shift
4528 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4529 fi
4530fi
4531fi
4532fi
4533GOC=$ac_cv_prog_GOC
4534if test -n "$GOC"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4536$as_echo "$GOC" >&6; }
4537else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539$as_echo "no" >&6; }
4540fi
4541
4542
4543fi
4544
4545
4546# Provide some information about the compiler.
4547$as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4548set X $ac_compile
4549ac_compiler=$2
4550{ { ac_try="$ac_compiler --version >&5"
4551case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554esac
4555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556$as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_compiler --version >&5") 2>conftest.err
4558 ac_status=$?
4559 if test -s conftest.err; then
4560 sed '10a\
4561... rest of stderr output deleted ...
4562 10q' conftest.err >conftest.er1
4563 cat conftest.er1 >&5
7a938933 4564 fi
73b6d7a9 4565 rm -f conftest.er1 conftest.err
7a938933
ILT
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }
73b6d7a9 4568GOFLAGS="-g -O2"
7a938933
ILT
4569ac_ext=c
4570ac_cpp='$CPP $CPPFLAGS'
4571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574
4d12cf3c
ILT
4575# By default we simply use the C compiler to build assembly code.
4576
4577test "${CCAS+set}" = set || CCAS=$CC
4578test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4579
4580
4581
4582depcc="$CCAS" am_compiler_list=
4583
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4585$as_echo_n "checking dependency style of $depcc... " >&6; }
4586if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588else
4589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4590 # We make a subdir and do the tests there. Otherwise we can end up
4591 # making bogus files that we don't know about and never remove. For
4592 # instance it was reported that on HP-UX the gcc test will end up
4593 # making a dummy file named 'D' -- because '-MD' means "put the output
4594 # in D".
4595 rm -rf conftest.dir
4596 mkdir conftest.dir
4597 # Copy depcomp to subdir because otherwise we won't find it if we're
4598 # using a relative directory.
4599 cp "$am_depcomp" conftest.dir
4600 cd conftest.dir
4601 # We will build objects and dependencies in a subdirectory because
4602 # it helps to detect inapplicable dependency modes. For instance
4603 # both Tru64's cc and ICC support -MD to output dependencies as a
4604 # side effect of compilation, but ICC will put the dependencies in
4605 # the current directory while Tru64 will put them in the object
4606 # directory.
4607 mkdir sub
4608
4609 am_cv_CCAS_dependencies_compiler_type=none
4610 if test "$am_compiler_list" = ""; then
4611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4612 fi
4613 am__universal=false
4614
4615
4616 for depmode in $am_compiler_list; do
4617 # Setup a source with many dependencies, because some compilers
4618 # like to wrap large dependency lists on column 80 (with \), and
4619 # we should not choose a depcomp mode which is confused by this.
4620 #
4621 # We need to recreate these files for each test, as the compiler may
4622 # overwrite some of them when testing with obscure command lines.
4623 # This happens at least with the AIX C compiler.
4624 : > sub/conftest.c
4625 for i in 1 2 3 4 5 6; do
4626 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4627 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4628 # Solaris 10 /bin/sh.
4629 echo '/* dummy */' > sub/conftst$i.h
4630 done
4631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4632
4633 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4634 # mode. It turns out that the SunPro C++ compiler does not properly
4635 # handle '-M -o', and we need to detect this. Also, some Intel
4636 # versions had trouble with output in subdirs.
4637 am__obj=sub/conftest.${OBJEXT-o}
4638 am__minus_obj="-o $am__obj"
4639 case $depmode in
4640 gcc)
4641 # This depmode causes a compiler race in universal mode.
4642 test "$am__universal" = false || continue
4643 ;;
4644 nosideeffect)
4645 # After this tag, mechanisms are not by side-effect, so they'll
4646 # only be used when explicitly requested.
4647 if test "x$enable_dependency_tracking" = xyes; then
4648 continue
4649 else
4650 break
4651 fi
4652 ;;
4653 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4654 # This compiler won't grok '-c -o', but also, the minuso test has
4655 # not run yet. These depmodes are late enough in the game, and
4656 # so weak that their functioning should not be impacted.
4657 am__obj=conftest.${OBJEXT-o}
4658 am__minus_obj=
4659 ;;
4660 none) break ;;
4661 esac
4662 if depmode=$depmode \
4663 source=sub/conftest.c object=$am__obj \
4664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4666 >/dev/null 2>conftest.err &&
4667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4671 # icc doesn't choke on unknown options, it will just issue warnings
4672 # or remarks (even with -Werror). So we grep stderr for any message
4673 # that says an option was ignored or not supported.
4674 # When given -MP, icc 7.0 and 7.1 complain thusly:
4675 # icc: Command line warning: ignoring option '-M'; no argument required
4676 # The diagnosis changed in icc 8.0:
4677 # icc: Command line remark: option '-MP' not supported
4678 if (grep 'ignoring option' conftest.err ||
4679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4680 am_cv_CCAS_dependencies_compiler_type=$depmode
4681 break
4682 fi
4683 fi
4684 done
4685
4686 cd ..
4687 rm -rf conftest.dir
4688else
4689 am_cv_CCAS_dependencies_compiler_type=none
4690fi
4691
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4694$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4695CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4696
4697 if
4698 test "x$enable_dependency_tracking" != xno \
4699 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4700 am__fastdepCCAS_TRUE=
4701 am__fastdepCCAS_FALSE='#'
4702else
4703 am__fastdepCCAS_TRUE='#'
4704 am__fastdepCCAS_FALSE=
4705fi
4706
4707
7a938933
ILT
4708
4709
4710
4711
f163907e
ILT
4712case ${host} in
4713 *-*-aix*)
83cc5e2b 4714 # Check default architecture for FAT library creation
d040555a
CC
4715 if test -z "`$CC -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then
4716 AIX_EXTRA_ARCH='64'
83cc5e2b 4717 else
d040555a 4718 AIX_EXTRA_ARCH='32'
83cc5e2b
CC
4719 fi
4720
f163907e
ILT
4721 ;;
4722esac
4723
7a938933
ILT
4724
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4726$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4727 # Check whether --enable-maintainer-mode was given.
4728if test "${enable_maintainer_mode+set}" = set; then :
4729 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4730else
4731 USE_MAINTAINER_MODE=no
4732fi
4733
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4735$as_echo "$USE_MAINTAINER_MODE" >&6; }
4736 if test $USE_MAINTAINER_MODE = yes; then
4737 MAINTAINER_MODE_TRUE=
4738 MAINTAINER_MODE_FALSE='#'
4739else
4740 MAINTAINER_MODE_TRUE='#'
4741 MAINTAINER_MODE_FALSE=
4742fi
4743
4744 MAINT=$MAINTAINER_MODE_TRUE
4745
4746
4747
061793a4
ILT
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4749$as_echo_n "checking for a sed that does not truncate output... " >&6; }
73b6d7a9 4750if ${ac_cv_path_SED+:} false; then :
7a938933
ILT
4751 $as_echo_n "(cached) " >&6
4752else
061793a4
ILT
4753 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4754 for ac_i in 1 2 3 4 5 6 7; do
4755 ac_script="$ac_script$as_nl$ac_script"
4756 done
4757 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4758 { ac_script=; unset ac_script;}
4759 if test -z "$SED"; then
4760 ac_path_SED_found=false
4761 # Loop through the user's path and test for each of PROGNAME-LIST
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
7a938933 4764do
061793a4
ILT
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_prog in sed gsed; do
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
73b6d7a9 4770 as_fn_executable_p "$ac_path_SED" || continue
061793a4
ILT
4771# Check for GNU ac_path_SED and select it if it is found.
4772 # Check for GNU $ac_path_SED
4773case `"$ac_path_SED" --version 2>&1` in
4774*GNU*)
4775 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4776*)
4777 ac_count=0
4778 $as_echo_n 0123456789 >"conftest.in"
4779 while :
4780 do
4781 cat "conftest.in" "conftest.in" >"conftest.tmp"
4782 mv "conftest.tmp" "conftest.in"
4783 cp "conftest.in" "conftest.nl"
4784 $as_echo '' >> "conftest.nl"
4785 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4787 as_fn_arith $ac_count + 1 && ac_count=$as_val
4788 if test $ac_count -gt ${ac_path_SED_max-0}; then
4789 # Best one so far, save it but keep looking for a better one
4790 ac_cv_path_SED="$ac_path_SED"
4791 ac_path_SED_max=$ac_count
4792 fi
4793 # 10*(2^10) chars as input seems more than enough
4794 test $ac_count -gt 10 && break
4795 done
4796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4797esac
7a938933 4798
061793a4
ILT
4799 $ac_path_SED_found && break 3
4800 done
4801 done
4802 done
4803IFS=$as_save_IFS
4804 if test -z "$ac_cv_path_SED"; then
73b6d7a9 4805 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
061793a4 4806 fi
7a938933 4807else
061793a4 4808 ac_cv_path_SED=$SED
7a938933
ILT
4809fi
4810
4811fi
061793a4
ILT
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4813$as_echo "$ac_cv_path_SED" >&6; }
4814 SED="$ac_cv_path_SED"
4815 rm -f conftest.sed
4816
4817test -z "$SED" && SED=sed
4818Xsed="$SED -e 1s/^X//"
4819
7a938933
ILT
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4831$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
73b6d7a9 4832if ${ac_cv_path_GREP+:} false; then :
7a938933
ILT
4833 $as_echo_n "(cached) " >&6
4834else
4835 if test -z "$GREP"; then
4836 ac_path_GREP_found=false
4837 # Loop through the user's path and test for each of PROGNAME-LIST
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_prog in grep ggrep; do
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
73b6d7a9 4846 as_fn_executable_p "$ac_path_GREP" || continue
7a938933
ILT
4847# Check for GNU ac_path_GREP and select it if it is found.
4848 # Check for GNU $ac_path_GREP
4849case `"$ac_path_GREP" --version 2>&1` in
4850*GNU*)
4851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4852*)
4853 ac_count=0
4854 $as_echo_n 0123456789 >"conftest.in"
4855 while :
4856 do
4857 cat "conftest.in" "conftest.in" >"conftest.tmp"
4858 mv "conftest.tmp" "conftest.in"
4859 cp "conftest.in" "conftest.nl"
4860 $as_echo 'GREP' >> "conftest.nl"
4861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863 as_fn_arith $ac_count + 1 && ac_count=$as_val
4864 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4865 # Best one so far, save it but keep looking for a better one
4866 ac_cv_path_GREP="$ac_path_GREP"
4867 ac_path_GREP_max=$ac_count
4868 fi
4869 # 10*(2^10) chars as input seems more than enough
4870 test $ac_count -gt 10 && break
4871 done
4872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873esac
4874
4875 $ac_path_GREP_found && break 3
4876 done
4877 done
4878 done
4879IFS=$as_save_IFS
4880 if test -z "$ac_cv_path_GREP"; then
73b6d7a9 4881 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7a938933
ILT
4882 fi
4883else
4884 ac_cv_path_GREP=$GREP
4885fi
4886
4887fi
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4889$as_echo "$ac_cv_path_GREP" >&6; }
4890 GREP="$ac_cv_path_GREP"
4891
4892
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4894$as_echo_n "checking for egrep... " >&6; }
73b6d7a9 4895if ${ac_cv_path_EGREP+:} false; then :
7a938933
ILT
4896 $as_echo_n "(cached) " >&6
4897else
4898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4899 then ac_cv_path_EGREP="$GREP -E"
4900 else
4901 if test -z "$EGREP"; then
4902 ac_path_EGREP_found=false
4903 # Loop through the user's path and test for each of PROGNAME-LIST
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4906do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_prog in egrep; do
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
73b6d7a9 4912 as_fn_executable_p "$ac_path_EGREP" || continue
7a938933
ILT
4913# Check for GNU ac_path_EGREP and select it if it is found.
4914 # Check for GNU $ac_path_EGREP
4915case `"$ac_path_EGREP" --version 2>&1` in
4916*GNU*)
4917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4918*)
4919 ac_count=0
4920 $as_echo_n 0123456789 >"conftest.in"
4921 while :
4922 do
4923 cat "conftest.in" "conftest.in" >"conftest.tmp"
4924 mv "conftest.tmp" "conftest.in"
4925 cp "conftest.in" "conftest.nl"
4926 $as_echo 'EGREP' >> "conftest.nl"
4927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4929 as_fn_arith $ac_count + 1 && ac_count=$as_val
4930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4931 # Best one so far, save it but keep looking for a better one
4932 ac_cv_path_EGREP="$ac_path_EGREP"
4933 ac_path_EGREP_max=$ac_count
4934 fi
4935 # 10*(2^10) chars as input seems more than enough
4936 test $ac_count -gt 10 && break
4937 done
4938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4939esac
4940
4941 $ac_path_EGREP_found && break 3
4942 done
4943 done
4944 done
4945IFS=$as_save_IFS
4946 if test -z "$ac_cv_path_EGREP"; then
73b6d7a9 4947 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7a938933
ILT
4948 fi
4949else
4950 ac_cv_path_EGREP=$EGREP
4951fi
4952
4953 fi
4954fi
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4956$as_echo "$ac_cv_path_EGREP" >&6; }
4957 EGREP="$ac_cv_path_EGREP"
4958
4959
061793a4
ILT
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4961$as_echo_n "checking for fgrep... " >&6; }
73b6d7a9 4962if ${ac_cv_path_FGREP+:} false; then :
e02ed81e
ILT
4963 $as_echo_n "(cached) " >&6
4964else
061793a4
ILT
4965 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4966 then ac_cv_path_FGREP="$GREP -F"
4967 else
4968 if test -z "$FGREP"; then
4969 ac_path_FGREP_found=false
7a938933
ILT
4970 # Loop through the user's path and test for each of PROGNAME-LIST
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
061793a4 4972for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7a938933
ILT
4973do
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
061793a4 4976 for ac_prog in fgrep; do
7a938933 4977 for ac_exec_ext in '' $ac_executable_extensions; do
061793a4 4978 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
73b6d7a9 4979 as_fn_executable_p "$ac_path_FGREP" || continue
061793a4
ILT
4980# Check for GNU ac_path_FGREP and select it if it is found.
4981 # Check for GNU $ac_path_FGREP
4982case `"$ac_path_FGREP" --version 2>&1` in
7a938933 4983*GNU*)
061793a4 4984 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7a938933
ILT
4985*)
4986 ac_count=0
4987 $as_echo_n 0123456789 >"conftest.in"
4988 while :
4989 do
4990 cat "conftest.in" "conftest.in" >"conftest.tmp"
4991 mv "conftest.tmp" "conftest.in"
4992 cp "conftest.in" "conftest.nl"
061793a4
ILT
4993 $as_echo 'FGREP' >> "conftest.nl"
4994 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7a938933
ILT
4995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4996 as_fn_arith $ac_count + 1 && ac_count=$as_val
061793a4 4997 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7a938933 4998 # Best one so far, save it but keep looking for a better one
061793a4
ILT
4999 ac_cv_path_FGREP="$ac_path_FGREP"
5000 ac_path_FGREP_max=$ac_count
7a938933
ILT
5001 fi
5002 # 10*(2^10) chars as input seems more than enough
5003 test $ac_count -gt 10 && break
5004 done
5005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5006esac
5007
061793a4 5008 $ac_path_FGREP_found && break 3
7a938933
ILT
5009 done
5010 done
5011 done
5012IFS=$as_save_IFS
061793a4 5013 if test -z "$ac_cv_path_FGREP"; then
73b6d7a9 5014 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7a938933
ILT
5015 fi
5016else
061793a4 5017 ac_cv_path_FGREP=$FGREP
e02ed81e
ILT
5018fi
5019
061793a4 5020 fi
7a938933
ILT
5021fi
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5023$as_echo "$ac_cv_path_FGREP" >&6; }
5024 FGREP="$ac_cv_path_FGREP"
5025
5026
5027test -z "$GREP" && GREP=grep
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5046ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5047ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5048
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5050$as_echo_n "checking how to print strings... " >&6; }
5051# Test print first, because it will be a builtin if present.
5052if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5053 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5054 ECHO='print -r --'
5055elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5056 ECHO='printf %s\n'
5057else
5058 # Use this function as a fallback that always works.
5059 func_fallback_echo ()
5060 {
5061 eval 'cat <<_LTECHO_EOF
5062$1
5063_LTECHO_EOF'
5064 }
5065 ECHO='func_fallback_echo'
5066fi
5067
5068# func_echo_all arg...
5069# Invoke $ECHO with all args, space-separated.
5070func_echo_all ()
5071{
5072 $ECHO ""
5073}
5074
5075case "$ECHO" in
5076 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5077$as_echo "printf" >&6; } ;;
5078 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5079$as_echo "print -r" >&6; } ;;
5080 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5081$as_echo "cat" >&6; } ;;
5082esac
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099# Check whether --with-gnu-ld was given.
5100if test "${with_gnu_ld+set}" = set; then :
5101 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5102else
5103 with_gnu_ld=no
5104fi
5105
5106ac_prog=ld
5107if test "$GCC" = yes; then
5108 # Check if gcc -print-prog-name=ld gives a path.
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5110$as_echo_n "checking for ld used by $CC... " >&6; }
5111 case $host in
5112 *-*-mingw*)
5113 # gcc leaves a trailing carriage return which upsets mingw
5114 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5115 *)
5116 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5117 esac
5118 case $ac_prog in
5119 # Accept absolute paths.
5120 [\\/]* | ?:[\\/]*)
5121 re_direlt='/[^/][^/]*/\.\./'
5122 # Canonicalize the pathname of ld
5123 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5124 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5125 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5126 done
5127 test -z "$LD" && LD="$ac_prog"
5128 ;;
5129 "")
5130 # If it fails, then pretend we aren't using GCC.
5131 ac_prog=ld
5132 ;;
5133 *)
5134 # If it is relative, then search for the first ld in PATH.
5135 with_gnu_ld=unknown
5136 ;;
5137 esac
5138elif test "$with_gnu_ld" = yes; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5140$as_echo_n "checking for GNU ld... " >&6; }
5141else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5143$as_echo_n "checking for non-GNU ld... " >&6; }
5144fi
73b6d7a9 5145if ${lt_cv_path_LD+:} false; then :
7a938933
ILT
5146 $as_echo_n "(cached) " >&6
5147else
5148 if test -z "$LD"; then
5149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5150 for ac_dir in $PATH; do
5151 IFS="$lt_save_ifs"
5152 test -z "$ac_dir" && ac_dir=.
5153 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5154 lt_cv_path_LD="$ac_dir/$ac_prog"
5155 # Check to see if the program is GNU ld. I'd rather use --version,
5156 # but apparently some variants of GNU ld only accept -v.
5157 # Break only if it was the GNU/non-GNU ld that we prefer.
5158 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5159 *GNU* | *'with BFD'*)
5160 test "$with_gnu_ld" != no && break
5161 ;;
5162 *)
5163 test "$with_gnu_ld" != yes && break
5164 ;;
5165 esac
5166 fi
5167 done
5168 IFS="$lt_save_ifs"
5169else
5170 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5171fi
5172fi
5173
5174LD="$lt_cv_path_LD"
5175if test -n "$LD"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5177$as_echo "$LD" >&6; }
5178else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180$as_echo "no" >&6; }
5181fi
73b6d7a9 5182test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7a938933
ILT
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5184$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
73b6d7a9 5185if ${lt_cv_prog_gnu_ld+:} false; then :
7a938933
ILT
5186 $as_echo_n "(cached) " >&6
5187else
5188 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5189case `$LD -v 2>&1 </dev/null` in
5190*GNU* | *'with BFD'*)
5191 lt_cv_prog_gnu_ld=yes
5192 ;;
5193*)
5194 lt_cv_prog_gnu_ld=no
5195 ;;
5196esac
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5199$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5200with_gnu_ld=$lt_cv_prog_gnu_ld
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210if test -n "$ac_tool_prefix"; then
5211 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5212set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5215if ${ac_cv_prog_RANLIB+:} false; then :
7a938933
ILT
5216 $as_echo_n "(cached) " >&6
5217else
5218 if test -n "$RANLIB"; then
5219 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5220else
5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5228 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233 done
5234IFS=$as_save_IFS
5235
5236fi
5237fi
5238RANLIB=$ac_cv_prog_RANLIB
5239if test -n "$RANLIB"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5241$as_echo "$RANLIB" >&6; }
5242else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }
5245fi
5246
5247
5248fi
5249if test -z "$ac_cv_prog_RANLIB"; then
5250 ac_ct_RANLIB=$RANLIB
5251 # Extract the first word of "ranlib", so it can be a program name with args.
5252set dummy ranlib; ac_word=$2
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5255if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7a938933
ILT
5256 $as_echo_n "(cached) " >&6
5257else
5258 if test -n "$ac_ct_RANLIB"; then
5259 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5260else
5261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5268 ac_cv_prog_ac_ct_RANLIB="ranlib"
5269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272done
5273 done
5274IFS=$as_save_IFS
5275
5276fi
5277fi
5278ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5279if test -n "$ac_ct_RANLIB"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5281$as_echo "$ac_ct_RANLIB" >&6; }
5282else
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284$as_echo "no" >&6; }
5285fi
5286
5287 if test "x$ac_ct_RANLIB" = x; then
5288 RANLIB=":"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291yes:)
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5294ac_tool_warned=yes ;;
5295esac
5296 RANLIB=$ac_ct_RANLIB
5297 fi
5298else
5299 RANLIB="$ac_cv_prog_RANLIB"
5300fi
5301
5302if test -n "$ac_tool_prefix"; then
5303 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5304set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5307if ${ac_cv_prog_OBJCOPY+:} false; then :
7a938933
ILT
5308 $as_echo_n "(cached) " >&6
5309else
5310 if test -n "$OBJCOPY"; then
5311 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5312else
5313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314for as_dir in $PATH
5315do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5320 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 break 2
5323 fi
5324done
5325 done
5326IFS=$as_save_IFS
5327
5328fi
5329fi
5330OBJCOPY=$ac_cv_prog_OBJCOPY
5331if test -n "$OBJCOPY"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5333$as_echo "$OBJCOPY" >&6; }
5334else
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336$as_echo "no" >&6; }
5337fi
5338
5339
5340fi
5341if test -z "$ac_cv_prog_OBJCOPY"; then
5342 ac_ct_OBJCOPY=$OBJCOPY
5343 # Extract the first word of "objcopy", so it can be a program name with args.
5344set dummy objcopy; ac_word=$2
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5347if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
7a938933
ILT
5348 $as_echo_n "(cached) " >&6
5349else
5350 if test -n "$ac_ct_OBJCOPY"; then
5351 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5360 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364done
5365 done
5366IFS=$as_save_IFS
5367
5368fi
5369fi
5370ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5371if test -n "$ac_ct_OBJCOPY"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5373$as_echo "$ac_ct_OBJCOPY" >&6; }
5374else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376$as_echo "no" >&6; }
5377fi
5378
5379 if test "x$ac_ct_OBJCOPY" = x; then
5380 OBJCOPY="missing-objcopy"
5381 else
5382 case $cross_compiling:$ac_tool_warned in
5383yes:)
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5386ac_tool_warned=yes ;;
5387esac
5388 OBJCOPY=$ac_ct_OBJCOPY
5389 fi
5390else
5391 OBJCOPY="$ac_cv_prog_OBJCOPY"
5392fi
5393
5394
5395enable_dlopen=yes
5396
5397
5398
5399case `pwd` in
5400 *\ * | *\ *)
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5402$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5403esac
5404
5405
5406
5407macro_version='2.2.7a'
5408macro_revision='1.3134'
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422ltmain="$ac_aux_dir/ltmain.sh"
5423
5424# Backslashify metacharacters that are still active within
5425# double-quoted strings.
5426sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5427
5428# Same as above, but do not quote variable references.
5429double_quote_subst='s/\(["`\\]\)/\\\1/g'
5430
5431# Sed substitution to delay expansion of an escaped shell variable in a
5432# double_quote_subst'ed string.
5433delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5434
5435# Sed substitution to delay expansion of an escaped single quote.
5436delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5437
5438# Sed substitution to avoid accidental globbing in evaled expressions
5439no_glob_subst='s/\*/\\\*/g'
5440
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5442$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
73b6d7a9 5443if ${lt_cv_path_NM+:} false; then :
7a938933
ILT
5444 $as_echo_n "(cached) " >&6
5445else
5446 if test -n "$NM"; then
5447 # Let the user override the test.
5448 lt_cv_path_NM="$NM"
5449else
5450 lt_nm_to_check="${ac_tool_prefix}nm"
5451 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5452 lt_nm_to_check="$lt_nm_to_check nm"
5453 fi
5454 for lt_tmp_nm in $lt_nm_to_check; do
5455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5456 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5457 IFS="$lt_save_ifs"
5458 test -z "$ac_dir" && ac_dir=.
5459 tmp_nm="$ac_dir/$lt_tmp_nm"
5460 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5461 # Check to see if the nm accepts a BSD-compat flag.
5462 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5463 # nm: unknown option "B" ignored
5464 # Tru64's nm complains that /dev/null is an invalid object file
5465 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5466 */dev/null* | *'Invalid file or object type'*)
5467 lt_cv_path_NM="$tmp_nm -B"
5468 break
5469 ;;
5470 *)
5471 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5472 */dev/null*)
5473 lt_cv_path_NM="$tmp_nm -p"
5474 break
5475 ;;
5476 *)
5477 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5478 continue # so that we can try to find one that supports BSD flags
5479 ;;
5480 esac
5481 ;;
5482 esac
5483 fi
5484 done
5485 IFS="$lt_save_ifs"
5486 done
5487 : ${lt_cv_path_NM=no}
5488fi
5489fi
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5491$as_echo "$lt_cv_path_NM" >&6; }
5492if test "$lt_cv_path_NM" != "no"; then
5493 NM="$lt_cv_path_NM"
5494else
5495 # Didn't find any BSD compatible name lister, look for dumpbin.
5496 if test -n "$DUMPBIN"; then :
5497 # Let the user override the test.
5498 else
5499 if test -n "$ac_tool_prefix"; then
5500 for ac_prog in dumpbin "link -dump"
5501 do
5502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5503set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5506if ${ac_cv_prog_DUMPBIN+:} false; then :
7a938933
ILT
5507 $as_echo_n "(cached) " >&6
5508else
5509 if test -n "$DUMPBIN"; then
5510 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5519 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523done
5524 done
5525IFS=$as_save_IFS
5526
5527fi
5528fi
5529DUMPBIN=$ac_cv_prog_DUMPBIN
5530if test -n "$DUMPBIN"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5532$as_echo "$DUMPBIN" >&6; }
5533else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536fi
5537
5538
5539 test -n "$DUMPBIN" && break
5540 done
5541fi
5542if test -z "$DUMPBIN"; then
5543 ac_ct_DUMPBIN=$DUMPBIN
5544 for ac_prog in dumpbin "link -dump"
5545do
5546 # Extract the first word of "$ac_prog", so it can be a program name with args.
5547set dummy $ac_prog; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5550if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7a938933
ILT
5551 $as_echo_n "(cached) " >&6
5552else
5553 if test -n "$ac_ct_DUMPBIN"; then
5554 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5563 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568 done
5569IFS=$as_save_IFS
5570
5571fi
5572fi
5573ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5574if test -n "$ac_ct_DUMPBIN"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5576$as_echo "$ac_ct_DUMPBIN" >&6; }
5577else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579$as_echo "no" >&6; }
5580fi
5581
5582
5583 test -n "$ac_ct_DUMPBIN" && break
5584done
5585
5586 if test "x$ac_ct_DUMPBIN" = x; then
5587 DUMPBIN=":"
5588 else
5589 case $cross_compiling:$ac_tool_warned in
5590yes:)
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5593ac_tool_warned=yes ;;
5594esac
5595 DUMPBIN=$ac_ct_DUMPBIN
5596 fi
5597fi
5598
5599 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5600 *COFF*)
5601 DUMPBIN="$DUMPBIN -symbols"
5602 ;;
5603 *)
5604 DUMPBIN=:
5605 ;;
5606 esac
5607 fi
5608
5609 if test "$DUMPBIN" != ":"; then
5610 NM="$DUMPBIN"
5611 fi
5612fi
5613test -z "$NM" && NM=nm
5614
5615
5616
5617
5618
5619
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5621$as_echo_n "checking the name lister ($NM) interface... " >&6; }
73b6d7a9 5622if ${lt_cv_nm_interface+:} false; then :
7a938933
ILT
5623 $as_echo_n "(cached) " >&6
5624else
5625 lt_cv_nm_interface="BSD nm"
5626 echo "int some_variable = 0;" > conftest.$ac_ext
5627 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5628 (eval "$ac_compile" 2>conftest.err)
5629 cat conftest.err >&5
5630 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5631 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5632 cat conftest.err >&5
5633 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5634 cat conftest.out >&5
5635 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5636 lt_cv_nm_interface="MS dumpbin"
5637 fi
5638 rm -f conftest*
5639fi
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5641$as_echo "$lt_cv_nm_interface" >&6; }
5642
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5644$as_echo_n "checking whether ln -s works... " >&6; }
5645LN_S=$as_ln_s
5646if test "$LN_S" = "ln -s"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5648$as_echo "yes" >&6; }
5649else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5651$as_echo "no, using $LN_S" >&6; }
5652fi
5653
5654# find the maximum length of command line arguments
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5656$as_echo_n "checking the maximum length of command line arguments... " >&6; }
73b6d7a9 5657if ${lt_cv_sys_max_cmd_len+:} false; then :
7a938933
ILT
5658 $as_echo_n "(cached) " >&6
5659else
5660 i=0
5661 teststring="ABCD"
5662
5663 case $build_os in
5664 msdosdjgpp*)
5665 # On DJGPP, this test can blow up pretty badly due to problems in libc
5666 # (any single argument exceeding 2000 bytes causes a buffer overrun
5667 # during glob expansion). Even if it were fixed, the result of this
5668 # check would be larger than it should be.
5669 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5670 ;;
5671
5672 gnu*)
5673 # Under GNU Hurd, this test is not required because there is
5674 # no limit to the length of command line arguments.
5675 # Libtool will interpret -1 as no limit whatsoever
5676 lt_cv_sys_max_cmd_len=-1;
5677 ;;
5678
5679 cygwin* | mingw* | cegcc*)
5680 # On Win9x/ME, this test blows up -- it succeeds, but takes
5681 # about 5 minutes as the teststring grows exponentially.
5682 # Worse, since 9x/ME are not pre-emptively multitasking,
5683 # you end up with a "frozen" computer, even though with patience
5684 # the test eventually succeeds (with a max line length of 256k).
5685 # Instead, let's just punt: use the minimum linelength reported by
5686 # all of the supported platforms: 8192 (on NT/2K/XP).
5687 lt_cv_sys_max_cmd_len=8192;
5688 ;;
5689
5690 mint*)
5691 # On MiNT this can take a long time and run out of memory.
5692 lt_cv_sys_max_cmd_len=8192;
5693 ;;
5694
5695 amigaos*)
5696 # On AmigaOS with pdksh, this test takes hours, literally.
5697 # So we just punt and use a minimum line length of 8192.
5698 lt_cv_sys_max_cmd_len=8192;
5699 ;;
5700
5701 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5702 # This has been around since 386BSD, at least. Likely further.
5703 if test -x /sbin/sysctl; then
5704 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5705 elif test -x /usr/sbin/sysctl; then
5706 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5707 else
5708 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5709 fi
5710 # And add a safety zone
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5713 ;;
5714
5715 interix*)
5716 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5717 lt_cv_sys_max_cmd_len=196608
5718 ;;
5719
5720 osf*)
5721 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5722 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5723 # nice to cause kernel panics so lets avoid the loop below.
5724 # First set a reasonable default.
5725 lt_cv_sys_max_cmd_len=16384
5726 #
5727 if test -x /sbin/sysconfig; then
5728 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5729 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5730 esac
5731 fi
5732 ;;
5733 sco3.2v5*)
5734 lt_cv_sys_max_cmd_len=102400
5735 ;;
5736 sysv5* | sco5v6* | sysv4.2uw2*)
5737 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5738 if test -n "$kargmax"; then
5739 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5740 else
5741 lt_cv_sys_max_cmd_len=32768
5742 fi
5743 ;;
5744 *)
5745 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5746 if test -n "$lt_cv_sys_max_cmd_len"; then
5747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5749 else
5750 # Make teststring a little bigger before we do anything with it.
5751 # a 1K string should be a reasonable start.
5752 for i in 1 2 3 4 5 6 7 8 ; do
5753 teststring=$teststring$teststring
5754 done
5755 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5756 # If test is not a shell built-in, we'll probably end up computing a
5757 # maximum length that is only half of the actual maximum length, but
5758 # we can't tell.
5759 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5760 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5761 test $i != 17 # 1/2 MB should be enough
5762 do
5763 i=`expr $i + 1`
5764 teststring=$teststring$teststring
5765 done
5766 # Only check the string length outside the loop.
5767 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5768 teststring=
5769 # Add a significant safety factor because C++ compilers can tack on
5770 # massive amounts of additional arguments before passing them to the
5771 # linker. It appears as though 1/2 is a usable value.
5772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5773 fi
5774 ;;
5775 esac
5776
5777fi
5778
5779if test -n $lt_cv_sys_max_cmd_len ; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5781$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5782else
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5784$as_echo "none" >&6; }
5785fi
5786max_cmd_len=$lt_cv_sys_max_cmd_len
5787
5788
5789
5790
5791
5792
5793: ${CP="cp -f"}
5794: ${MV="mv -f"}
5795: ${RM="rm -f"}
5796
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5798$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5799# Try some XSI features
5800xsi_shell=no
5801( _lt_dummy="a/b/c"
5802 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5803 = c,a/b,, \
5804 && eval 'test $(( 1 + 1 )) -eq 2 \
5805 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5806 && xsi_shell=yes
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5808$as_echo "$xsi_shell" >&6; }
5809
5810
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5812$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5813lt_shell_append=no
5814( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5815 >/dev/null 2>&1 \
5816 && lt_shell_append=yes
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5818$as_echo "$lt_shell_append" >&6; }
5819
5820
5821if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5822 lt_unset=unset
5823else
5824 lt_unset=false
5825fi
5826
5827
5828
5829
5830
5831# test EBCDIC or ASCII
5832case `echo X|tr X '\101'` in
5833 A) # ASCII based system
5834 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5835 lt_SP2NL='tr \040 \012'
5836 lt_NL2SP='tr \015\012 \040\040'
5837 ;;
5838 *) # EBCDIC based system
5839 lt_SP2NL='tr \100 \n'
5840 lt_NL2SP='tr \r\n \100\100'
5841 ;;
5842esac
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5853$as_echo_n "checking for $LD option to reload object files... " >&6; }
73b6d7a9 5854if ${lt_cv_ld_reload_flag+:} false; then :
7a938933
ILT
5855 $as_echo_n "(cached) " >&6
5856else
5857 lt_cv_ld_reload_flag='-r'
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5860$as_echo "$lt_cv_ld_reload_flag" >&6; }
5861reload_flag=$lt_cv_ld_reload_flag
5862case $reload_flag in
5863"" | " "*) ;;
5864*) reload_flag=" $reload_flag" ;;
5865esac
5866reload_cmds='$LD$reload_flag -o $output$reload_objs'
5867case $host_os in
5868 darwin*)
5869 if test "$GCC" = yes; then
5870 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5871 else
5872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5873 fi
5874 ;;
5875esac
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885if test -n "$ac_tool_prefix"; then
5886 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5887set dummy ${ac_tool_prefix}objdump; ac_word=$2
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5890if ${ac_cv_prog_OBJDUMP+:} false; then :
7a938933
ILT
5891 $as_echo_n "(cached) " >&6
5892else
5893 if test -n "$OBJDUMP"; then
5894 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5903 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908 done
5909IFS=$as_save_IFS
5910
5911fi
5912fi
5913OBJDUMP=$ac_cv_prog_OBJDUMP
5914if test -n "$OBJDUMP"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5916$as_echo "$OBJDUMP" >&6; }
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919$as_echo "no" >&6; }
5920fi
5921
5922
5923fi
5924if test -z "$ac_cv_prog_OBJDUMP"; then
5925 ac_ct_OBJDUMP=$OBJDUMP
5926 # Extract the first word of "objdump", so it can be a program name with args.
5927set dummy objdump; ac_word=$2
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 5930if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7a938933
ILT
5931 $as_echo_n "(cached) " >&6
5932else
5933 if test -n "$ac_ct_OBJDUMP"; then
5934 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5935else
5936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH
5938do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 5942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
5943 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947done
5948 done
5949IFS=$as_save_IFS
5950
5951fi
5952fi
5953ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5954if test -n "$ac_ct_OBJDUMP"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5956$as_echo "$ac_ct_OBJDUMP" >&6; }
5957else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959$as_echo "no" >&6; }
5960fi
5961
5962 if test "x$ac_ct_OBJDUMP" = x; then
5963 OBJDUMP="false"
5964 else
5965 case $cross_compiling:$ac_tool_warned in
5966yes:)
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5969ac_tool_warned=yes ;;
5970esac
5971 OBJDUMP=$ac_ct_OBJDUMP
5972 fi
5973else
5974 OBJDUMP="$ac_cv_prog_OBJDUMP"
5975fi
5976
5977test -z "$OBJDUMP" && OBJDUMP=objdump
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5988$as_echo_n "checking how to recognize dependent libraries... " >&6; }
73b6d7a9 5989if ${lt_cv_deplibs_check_method+:} false; then :
7a938933
ILT
5990 $as_echo_n "(cached) " >&6
5991else
5992 lt_cv_file_magic_cmd='$MAGIC_CMD'
5993lt_cv_file_magic_test_file=
5994lt_cv_deplibs_check_method='unknown'
5995# Need to set the preceding variable on all platforms that support
5996# interlibrary dependencies.
5997# 'none' -- dependencies not supported.
5998# `unknown' -- same as none, but documents that we really don't know.
5999# 'pass_all' -- all dependencies passed with no checks.
6000# 'test_compile' -- check by making test program.
6001# 'file_magic [[regex]]' -- check by looking for files in library path
6002# which responds to the $file_magic_cmd with a given extended regex.
6003# If you have `file' or equivalent on your system and you're not sure
6004# whether `pass_all' will *always* work, you probably want this one.
6005
6006case $host_os in
6007aix[4-9]*)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010
6011beos*)
6012 lt_cv_deplibs_check_method=pass_all
6013 ;;
6014
6015bsdi[45]*)
6016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6017 lt_cv_file_magic_cmd='/usr/bin/file -L'
6018 lt_cv_file_magic_test_file=/shlib/libc.so
6019 ;;
6020
6021cygwin*)
6022 # func_win32_libid is a shell function defined in ltmain.sh
6023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6024 lt_cv_file_magic_cmd='func_win32_libid'
6025 ;;
6026
6027mingw* | pw32*)
6028 # Base MSYS/MinGW do not provide the 'file' command needed by
6029 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6030 # unless we find 'file', for example because we are cross-compiling.
6031 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6032 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6034 lt_cv_file_magic_cmd='func_win32_libid'
6035 else
6036 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6037 lt_cv_file_magic_cmd='$OBJDUMP -f'
6038 fi
6039 ;;
6040
6041cegcc*)
6042 # use the weaker test based on 'objdump'. See mingw*.
6043 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6044 lt_cv_file_magic_cmd='$OBJDUMP -f'
6045 ;;
6046
6047darwin* | rhapsody*)
6048 lt_cv_deplibs_check_method=pass_all
6049 ;;
6050
6051freebsd* | dragonfly*)
6052 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6053 case $host_cpu in
6054 i*86 )
6055 # Not sure whether the presence of OpenBSD here was a mistake.
6056 # Let's accept both of them until this is cleared up.
6057 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6058 lt_cv_file_magic_cmd=/usr/bin/file
6059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6060 ;;
6061 esac
6062 else
6063 lt_cv_deplibs_check_method=pass_all
6064 fi
6065 ;;
6066
6067gnu*)
6068 lt_cv_deplibs_check_method=pass_all
6069 ;;
6070
6071haiku*)
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074
6075hpux10.20* | hpux11*)
6076 lt_cv_file_magic_cmd=/usr/bin/file
6077 case $host_cpu in
6078 ia64*)
6079 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6080 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6081 ;;
6082 hppa*64*)
6083 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]'
6084 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6085 ;;
6086 *)
6087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6088 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6089 ;;
6090 esac
6091 ;;
6092
6093interix[3-9]*)
6094 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6096 ;;
6097
6098irix5* | irix6* | nonstopux*)
6099 case $LD in
6100 *-32|*"-32 ") libmagic=32-bit;;
6101 *-n32|*"-n32 ") libmagic=N32;;
6102 *-64|*"-64 ") libmagic=64-bit;;
6103 *) libmagic=never-match;;
6104 esac
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107
6108# This must be Linux ELF.
6109linux* | k*bsd*-gnu | kopensolaris*-gnu)
6110 lt_cv_deplibs_check_method=pass_all
6111 ;;
6112
6113netbsd*)
6114 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6116 else
6117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6118 fi
6119 ;;
6120
6121newos6*)
6122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6123 lt_cv_file_magic_cmd=/usr/bin/file
6124 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6125 ;;
6126
6127*nto* | *qnx*)
6128 lt_cv_deplibs_check_method=pass_all
6129 ;;
6130
6131openbsd*)
6132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6134 else
6135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6136 fi
6137 ;;
6138
6139osf3* | osf4* | osf5*)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142
6143rdos*)
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146
6147solaris*)
6148 lt_cv_deplibs_check_method=pass_all
6149 ;;
6150
6151sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6152 lt_cv_deplibs_check_method=pass_all
6153 ;;
6154
6155sysv4 | sysv4.3*)
6156 case $host_vendor in
6157 motorola)
6158 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]'
6159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6160 ;;
6161 ncr)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164 sequent)
6165 lt_cv_file_magic_cmd='/bin/file'
6166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6167 ;;
6168 sni)
6169 lt_cv_file_magic_cmd='/bin/file'
6170 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6171 lt_cv_file_magic_test_file=/lib/libc.so
6172 ;;
6173 siemens)
6174 lt_cv_deplibs_check_method=pass_all
6175 ;;
6176 pc)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179 esac
6180 ;;
6181
6182tpf*)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
6185esac
6186
6187fi
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6189$as_echo "$lt_cv_deplibs_check_method" >&6; }
6190file_magic_cmd=$lt_cv_file_magic_cmd
6191deplibs_check_method=$lt_cv_deplibs_check_method
6192test -z "$deplibs_check_method" && deplibs_check_method=unknown
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6207set dummy ${ac_tool_prefix}ar; ac_word=$2
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6210if ${ac_cv_prog_AR+:} false; then :
7a938933
ILT
6211 $as_echo_n "(cached) " >&6
6212else
6213 if test -n "$AR"; then
6214 ac_cv_prog_AR="$AR" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6223 ac_cv_prog_AR="${ac_tool_prefix}ar"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 break 2
6226 fi
6227done
6228 done
6229IFS=$as_save_IFS
6230
6231fi
6232fi
6233AR=$ac_cv_prog_AR
6234if test -n "$AR"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6236$as_echo "$AR" >&6; }
6237else
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239$as_echo "no" >&6; }
6240fi
6241
6242
6243fi
6244if test -z "$ac_cv_prog_AR"; then
6245 ac_ct_AR=$AR
6246 # Extract the first word of "ar", so it can be a program name with args.
6247set dummy ar; ac_word=$2
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6250if ${ac_cv_prog_ac_ct_AR+:} false; then :
7a938933
ILT
6251 $as_echo_n "(cached) " >&6
6252else
6253 if test -n "$ac_ct_AR"; then
6254 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6263 ac_cv_prog_ac_ct_AR="ar"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267done
6268 done
6269IFS=$as_save_IFS
6270
6271fi
6272fi
6273ac_ct_AR=$ac_cv_prog_ac_ct_AR
6274if test -n "$ac_ct_AR"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6276$as_echo "$ac_ct_AR" >&6; }
6277else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279$as_echo "no" >&6; }
6280fi
6281
6282 if test "x$ac_ct_AR" = x; then
6283 AR="false"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286yes:)
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289ac_tool_warned=yes ;;
6290esac
6291 AR=$ac_ct_AR
6292 fi
6293else
6294 AR="$ac_cv_prog_AR"
6295fi
6296
6297test -z "$AR" && AR=ar
6298test -z "$AR_FLAGS" && AR_FLAGS=cru
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310if test -n "$ac_tool_prefix"; then
6311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6312set dummy ${ac_tool_prefix}strip; ac_word=$2
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6315if ${ac_cv_prog_STRIP+:} false; then :
7a938933
ILT
6316 $as_echo_n "(cached) " >&6
6317else
6318 if test -n "$STRIP"; then
6319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6328 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332done
6333 done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338STRIP=$ac_cv_prog_STRIP
6339if test -n "$STRIP"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6341$as_echo "$STRIP" >&6; }
6342else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347
6348fi
6349if test -z "$ac_cv_prog_STRIP"; then
6350 ac_ct_STRIP=$STRIP
6351 # Extract the first word of "strip", so it can be a program name with args.
6352set dummy strip; ac_word=$2
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6355if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7a938933
ILT
6356 $as_echo_n "(cached) " >&6
6357else
6358 if test -n "$ac_ct_STRIP"; then
6359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6368 ac_cv_prog_ac_ct_STRIP="strip"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372done
6373 done
6374IFS=$as_save_IFS
6375
6376fi
6377fi
6378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6379if test -n "$ac_ct_STRIP"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6381$as_echo "$ac_ct_STRIP" >&6; }
6382else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384$as_echo "no" >&6; }
6385fi
6386
6387 if test "x$ac_ct_STRIP" = x; then
6388 STRIP=":"
6389 else
6390 case $cross_compiling:$ac_tool_warned in
6391yes:)
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6394ac_tool_warned=yes ;;
6395esac
6396 STRIP=$ac_ct_STRIP
6397 fi
6398else
6399 STRIP="$ac_cv_prog_STRIP"
6400fi
6401
6402test -z "$STRIP" && STRIP=:
6403
6404
6405
6406
6407
6408
6409if test -n "$ac_tool_prefix"; then
6410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6411set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6414if ${ac_cv_prog_RANLIB+:} false; then :
7a938933
ILT
6415 $as_echo_n "(cached) " >&6
6416else
6417 if test -n "$RANLIB"; then
6418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6419else
6420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423 IFS=$as_save_IFS
6424 test -z "$as_dir" && as_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 break 2
6430 fi
6431done
6432 done
6433IFS=$as_save_IFS
6434
6435fi
6436fi
6437RANLIB=$ac_cv_prog_RANLIB
6438if test -n "$RANLIB"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6440$as_echo "$RANLIB" >&6; }
6441else
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443$as_echo "no" >&6; }
6444fi
6445
6446
6447fi
6448if test -z "$ac_cv_prog_RANLIB"; then
6449 ac_ct_RANLIB=$RANLIB
6450 # Extract the first word of "ranlib", so it can be a program name with args.
6451set dummy ranlib; ac_word=$2
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 6454if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7a938933
ILT
6455 $as_echo_n "(cached) " >&6
6456else
6457 if test -n "$ac_ct_RANLIB"; then
6458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6459else
6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461for as_dir in $PATH
6462do
6463 IFS=$as_save_IFS
6464 test -z "$as_dir" && as_dir=.
6465 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
6467 ac_cv_prog_ac_ct_RANLIB="ranlib"
6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 break 2
6470 fi
6471done
6472 done
6473IFS=$as_save_IFS
6474
6475fi
6476fi
6477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6478if test -n "$ac_ct_RANLIB"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6480$as_echo "$ac_ct_RANLIB" >&6; }
6481else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
6484fi
6485
6486 if test "x$ac_ct_RANLIB" = x; then
6487 RANLIB=":"
6488 else
6489 case $cross_compiling:$ac_tool_warned in
6490yes:)
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6493ac_tool_warned=yes ;;
6494esac
6495 RANLIB=$ac_ct_RANLIB
6496 fi
6497else
6498 RANLIB="$ac_cv_prog_RANLIB"
6499fi
6500
6501test -z "$RANLIB" && RANLIB=:
6502
6503
6504
6505
6506
6507
6508# Determine commands to create old-style static archives.
6509old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6510old_postinstall_cmds='chmod 644 $oldlib'
6511old_postuninstall_cmds=
6512
6513if test -n "$RANLIB"; then
6514 case $host_os in
6515 openbsd*)
6516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6517 ;;
6518 *)
6519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6520 ;;
6521 esac
6522 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6523fi
6524
6525case $host_os in
6526 darwin*)
6527 lock_old_archive_extraction=yes ;;
6528 *)
6529 lock_old_archive_extraction=no ;;
6530esac
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
6564
6565
6566
6567
6568
6569
6570# If no C compiler was specified, use CC.
6571LTCC=${LTCC-"$CC"}
6572
6573# If no C compiler flags were specified, use CFLAGS.
6574LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6575
6576# Allow CC to be a program name with arguments.
6577compiler=$CC
6578
6579
6580# Check for command to grab the raw symbol name followed by C symbol from nm.
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6582$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
73b6d7a9 6583if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7a938933
ILT
6584 $as_echo_n "(cached) " >&6
6585else
6586
6587# These are sane defaults that work on at least a few old systems.
6588# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6589
6590# Character class describing NM global symbol codes.
6591symcode='[BCDEGRST]'
6592
6593# Regexp to match symbols that can be accessed directly from C.
6594sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6595
6596# Define system-specific variables.
6597case $host_os in
6598aix*)
6599 symcode='[BCDT]'
6600 ;;
6601cygwin* | mingw* | pw32* | cegcc*)
6602 symcode='[ABCDGISTW]'
6603 ;;
6604hpux*)
6605 if test "$host_cpu" = ia64; then
6606 symcode='[ABCDEGRST]'
6607 fi
6608 ;;
6609irix* | nonstopux*)
6610 symcode='[BCDEGRST]'
6611 ;;
6612osf*)
6613 symcode='[BCDEGQRST]'
6614 ;;
6615solaris*)
6616 symcode='[BDRT]'
6617 ;;
6618sco3.2v5*)
6619 symcode='[DT]'
6620 ;;
6621sysv4.2uw2*)
6622 symcode='[DT]'
6623 ;;
6624sysv5* | sco5v6* | unixware* | OpenUNIX*)
6625 symcode='[ABDT]'
6626 ;;
6627sysv4)
6628 symcode='[DFNSTU]'
6629 ;;
6630esac
6631
6632# If we're using GNU nm, then use its standard symbol codes.
6633case `$NM -V 2>&1` in
6634*GNU* | *'with BFD'*)
6635 symcode='[ABCDGIRSTW]' ;;
6636esac
6637
6638# Transform an extracted symbol line into a proper C declaration.
6639# Some systems (esp. on ia64) link data and code symbols differently,
6640# so use this general approach.
6641lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6642
6643# Transform an extracted symbol line into symbol name and symbol address
6644lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6645lt_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'"
6646
6647# Handle CRLF in mingw tool chain
6648opt_cr=
6649case $build_os in
6650mingw*)
6651 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6652 ;;
6653esac
6654
6655# Try without a prefix underscore, then with it.
6656for ac_symprfx in "" "_"; do
6657
6658 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6659 symxfrm="\\1 $ac_symprfx\\2 \\2"
6660
6661 # Write the raw and C identifiers.
6662 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6663 # Fake it for dumpbin and say T for any non-static function
6664 # and D for any global variable.
6665 # Also find C++ and __fastcall symbols from MSVC++,
6666 # which start with @ or ?.
6667 lt_cv_sys_global_symbol_pipe="$AWK '"\
6668" {last_section=section; section=\$ 3};"\
6669" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6670" \$ 0!~/External *\|/{next};"\
6671" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6672" {if(hide[section]) next};"\
6673" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6674" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6675" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6676" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6677" ' prfx=^$ac_symprfx"
6678 else
6679 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6680 fi
6681
6682 # Check to see that the pipe works correctly.
6683 pipe_works=no
6684
6685 rm -f conftest*
6686 cat > conftest.$ac_ext <<_LT_EOF
6687#ifdef __cplusplus
6688extern "C" {
6689#endif
6690char nm_test_var;
6691void nm_test_func(void);
6692void nm_test_func(void){}
6693#ifdef __cplusplus
6694}
6695#endif
6696int main(){nm_test_var='a';nm_test_func();return(0);}
6697_LT_EOF
6698
6699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6700 (eval $ac_compile) 2>&5
6701 ac_status=$?
6702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703 test $ac_status = 0; }; then
6704 # Now try to grab the symbols.
6705 nlist=conftest.nm
6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6707 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6708 ac_status=$?
6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710 test $ac_status = 0; } && test -s "$nlist"; then
6711 # Try sorting and uniquifying the output.
6712 if sort "$nlist" | uniq > "$nlist"T; then
6713 mv -f "$nlist"T "$nlist"
6714 else
6715 rm -f "$nlist"T
6716 fi
6717
6718 # Make sure that we snagged all the symbols we need.
6719 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6720 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6721 cat <<_LT_EOF > conftest.$ac_ext
6722#ifdef __cplusplus
6723extern "C" {
6724#endif
6725
6726_LT_EOF
6727 # Now generate the symbol file.
6728 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6729
6730 cat <<_LT_EOF >> conftest.$ac_ext
6731
6732/* The mapping between symbol names and symbols. */
6733const struct {
6734 const char *name;
6735 void *address;
6736}
6737lt__PROGRAM__LTX_preloaded_symbols[] =
6738{
6739 { "@PROGRAM@", (void *) 0 },
6740_LT_EOF
6741 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6742 cat <<\_LT_EOF >> conftest.$ac_ext
6743 {0, (void *) 0}
6744};
6745
6746/* This works around a problem in FreeBSD linker */
6747#ifdef FREEBSD_WORKAROUND
6748static const void *lt_preloaded_setup() {
6749 return lt__PROGRAM__LTX_preloaded_symbols;
6750}
6751#endif
6752
6753#ifdef __cplusplus
6754}
6755#endif
6756_LT_EOF
6757 # Now try linking the two files.
6758 mv conftest.$ac_objext conftstm.$ac_objext
6759 lt_save_LIBS="$LIBS"
6760 lt_save_CFLAGS="$CFLAGS"
6761 LIBS="conftstm.$ac_objext"
6762 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6764 (eval $ac_link) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6768 pipe_works=yes
6769 fi
6770 LIBS="$lt_save_LIBS"
6771 CFLAGS="$lt_save_CFLAGS"
6772 else
6773 echo "cannot find nm_test_func in $nlist" >&5
6774 fi
6775 else
6776 echo "cannot find nm_test_var in $nlist" >&5
6777 fi
6778 else
6779 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6780 fi
6781 else
6782 echo "$progname: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6784 fi
6785 rm -rf conftest* conftst*
6786
6787 # Do not use the global_symbol_pipe unless it works.
6788 if test "$pipe_works" = yes; then
6789 break
6790 else
6791 lt_cv_sys_global_symbol_pipe=
6792 fi
6793done
6794
6795fi
6796
6797if test -z "$lt_cv_sys_global_symbol_pipe"; then
6798 lt_cv_sys_global_symbol_to_cdecl=
6799fi
6800if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6802$as_echo "failed" >&6; }
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6805$as_echo "ok" >&6; }
6806fi
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
061793a4 6827
7a938933
ILT
6828
6829
6830# Check whether --enable-libtool-lock was given.
6831if test "${enable_libtool_lock+set}" = set; then :
6832 enableval=$enable_libtool_lock;
6833fi
6834
6835test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6836
6837# Some flags need to be propagated to the compiler or linker for good
6838# libtool support.
6839case $host in
6840ia64-*-hpux*)
6841 # Find out which ABI we are using.
6842 echo 'int i;' > conftest.$ac_ext
6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6844 (eval $ac_compile) 2>&5
6845 ac_status=$?
6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6847 test $ac_status = 0; }; then
6848 case `/usr/bin/file conftest.$ac_objext` in
6849 *ELF-32*)
6850 HPUX_IA64_MODE="32"
6851 ;;
6852 *ELF-64*)
6853 HPUX_IA64_MODE="64"
6854 ;;
6855 esac
6856 fi
6857 rm -rf conftest*
6858 ;;
6859*-*-irix6*)
6860 # Find out which ABI we are using.
6861 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6863 (eval $ac_compile) 2>&5
6864 ac_status=$?
6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }; then
6867 if test "$lt_cv_prog_gnu_ld" = yes; then
6868 case `/usr/bin/file conftest.$ac_objext` in
6869 *32-bit*)
6870 LD="${LD-ld} -melf32bsmip"
6871 ;;
6872 *N32*)
6873 LD="${LD-ld} -melf32bmipn32"
6874 ;;
6875 *64-bit*)
6876 LD="${LD-ld} -melf64bmip"
6877 ;;
6878 esac
6879 else
6880 case `/usr/bin/file conftest.$ac_objext` in
6881 *32-bit*)
6882 LD="${LD-ld} -32"
6883 ;;
6884 *N32*)
6885 LD="${LD-ld} -n32"
6886 ;;
6887 *64-bit*)
6888 LD="${LD-ld} -64"
6889 ;;
6890 esac
6891 fi
6892 fi
6893 rm -rf conftest*
6894 ;;
6895
6e6bbb60 6896x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7a938933
ILT
6897s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6898 # Find out which ABI we are using.
6899 echo 'int i;' > conftest.$ac_ext
6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; }; then
6905 case `/usr/bin/file conftest.o` in
6906 *32-bit*)
6907 case $host in
6908 x86_64-*kfreebsd*-gnu)
6909 LD="${LD-ld} -m elf_i386_fbsd"
6910 ;;
6911 x86_64-*linux*)
327a26a3
ILT
6912 case `/usr/bin/file conftest.o` in
6913 *x86-64*)
6914 LD="${LD-ld} -m elf32_x86_64"
6915 ;;
6916 *)
6917 LD="${LD-ld} -m elf_i386"
6918 ;;
6919 esac
7a938933 6920 ;;
42c447c0 6921 powerpc64le-*linux*)
6e6bbb60
ILT
6922 LD="${LD-ld} -m elf32lppclinux"
6923 ;;
42c447c0 6924 powerpc64-*linux*)
7a938933
ILT
6925 LD="${LD-ld} -m elf32ppclinux"
6926 ;;
6927 s390x-*linux*)
6928 LD="${LD-ld} -m elf_s390"
6929 ;;
6930 sparc64-*linux*)
6931 LD="${LD-ld} -m elf32_sparc"
6932 ;;
6933 esac
6934 ;;
6935 *64-bit*)
6936 case $host in
6937 x86_64-*kfreebsd*-gnu)
6938 LD="${LD-ld} -m elf_x86_64_fbsd"
6939 ;;
6940 x86_64-*linux*)
6941 LD="${LD-ld} -m elf_x86_64"
6942 ;;
42c447c0 6943 powerpcle-*linux*)
6e6bbb60
ILT
6944 LD="${LD-ld} -m elf64lppc"
6945 ;;
42c447c0 6946 powerpc-*linux*)
7a938933
ILT
6947 LD="${LD-ld} -m elf64ppc"
6948 ;;
6949 s390*-*linux*|s390*-*tpf*)
6950 LD="${LD-ld} -m elf64_s390"
6951 ;;
6952 sparc*-*linux*)
6953 LD="${LD-ld} -m elf64_sparc"
6954 ;;
6955 esac
6956 ;;
6957 esac
6958 fi
6959 rm -rf conftest*
6960 ;;
6961
6962*-*-sco3.2v5*)
6963 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6964 SAVE_CFLAGS="$CFLAGS"
6965 CFLAGS="$CFLAGS -belf"
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6967$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
73b6d7a9 6968if ${lt_cv_cc_needs_belf+:} false; then :
7a938933
ILT
6969 $as_echo_n "(cached) " >&6
6970else
6971 ac_ext=c
6972ac_cpp='$CPP $CPPFLAGS'
6973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h. */
6979
6980int
6981main ()
6982{
6983
6984 ;
6985 return 0;
6986}
6987_ACEOF
6988if ac_fn_c_try_link "$LINENO"; then :
6989 lt_cv_cc_needs_belf=yes
6990else
6991 lt_cv_cc_needs_belf=no
6992fi
6993rm -f core conftest.err conftest.$ac_objext \
6994 conftest$ac_exeext conftest.$ac_ext
6995 ac_ext=c
6996ac_cpp='$CPP $CPPFLAGS'
6997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999ac_compiler_gnu=$ac_cv_c_compiler_gnu
7000
7001fi
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7003$as_echo "$lt_cv_cc_needs_belf" >&6; }
7004 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7006 CFLAGS="$SAVE_CFLAGS"
7007 fi
7008 ;;
327a26a3 7009sparc*-*solaris*)
7a938933
ILT
7010 # Find out which ABI we are using.
7011 echo 'int i;' > conftest.$ac_ext
7012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7013 (eval $ac_compile) 2>&5
7014 ac_status=$?
7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016 test $ac_status = 0; }; then
7017 case `/usr/bin/file conftest.o` in
7018 *64-bit*)
7019 case $lt_cv_prog_gnu_ld in
327a26a3 7020 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7a938933
ILT
7021 *)
7022 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7023 LD="${LD-ld} -64"
7024 fi
7025 ;;
7026 esac
7027 ;;
7028 esac
7029 fi
7030 rm -rf conftest*
7031 ;;
7032esac
7033
7034need_locks="$enable_libtool_lock"
7035
7036
7037 case $host_os in
7038 rhapsody* | darwin*)
7039 if test -n "$ac_tool_prefix"; then
7040 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7041set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7044if ${ac_cv_prog_DSYMUTIL+:} false; then :
7a938933
ILT
7045 $as_echo_n "(cached) " >&6
7046else
7047 if test -n "$DSYMUTIL"; then
7048 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7049else
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7057 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061done
7062 done
7063IFS=$as_save_IFS
7064
7065fi
7066fi
7067DSYMUTIL=$ac_cv_prog_DSYMUTIL
7068if test -n "$DSYMUTIL"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7070$as_echo "$DSYMUTIL" >&6; }
7071else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074fi
7075
7076
7077fi
7078if test -z "$ac_cv_prog_DSYMUTIL"; then
7079 ac_ct_DSYMUTIL=$DSYMUTIL
7080 # Extract the first word of "dsymutil", so it can be a program name with args.
7081set dummy dsymutil; ac_word=$2
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7084if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7a938933
ILT
7085 $as_echo_n "(cached) " >&6
7086else
7087 if test -n "$ac_ct_DSYMUTIL"; then
7088 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7089else
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7097 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101done
7102 done
7103IFS=$as_save_IFS
7104
7105fi
7106fi
7107ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7108if test -n "$ac_ct_DSYMUTIL"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7110$as_echo "$ac_ct_DSYMUTIL" >&6; }
7111else
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113$as_echo "no" >&6; }
7114fi
7115
7116 if test "x$ac_ct_DSYMUTIL" = x; then
7117 DSYMUTIL=":"
7118 else
7119 case $cross_compiling:$ac_tool_warned in
7120yes:)
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123ac_tool_warned=yes ;;
7124esac
7125 DSYMUTIL=$ac_ct_DSYMUTIL
7126 fi
7127else
7128 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7129fi
7130
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7133set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7136if ${ac_cv_prog_NMEDIT+:} false; then :
7a938933
ILT
7137 $as_echo_n "(cached) " >&6
7138else
7139 if test -n "$NMEDIT"; then
7140 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7141else
7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7149 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153done
7154 done
7155IFS=$as_save_IFS
7156
7157fi
7158fi
7159NMEDIT=$ac_cv_prog_NMEDIT
7160if test -n "$NMEDIT"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7162$as_echo "$NMEDIT" >&6; }
7163else
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165$as_echo "no" >&6; }
7166fi
7167
7168
7169fi
7170if test -z "$ac_cv_prog_NMEDIT"; then
7171 ac_ct_NMEDIT=$NMEDIT
7172 # Extract the first word of "nmedit", so it can be a program name with args.
7173set dummy nmedit; ac_word=$2
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7176if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7a938933
ILT
7177 $as_echo_n "(cached) " >&6
7178else
7179 if test -n "$ac_ct_NMEDIT"; then
7180 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7181else
7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7189 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 break 2
7192 fi
7193done
7194 done
7195IFS=$as_save_IFS
7196
7197fi
7198fi
7199ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7200if test -n "$ac_ct_NMEDIT"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7202$as_echo "$ac_ct_NMEDIT" >&6; }
7203else
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205$as_echo "no" >&6; }
7206fi
7207
7208 if test "x$ac_ct_NMEDIT" = x; then
7209 NMEDIT=":"
7210 else
7211 case $cross_compiling:$ac_tool_warned in
7212yes:)
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7215ac_tool_warned=yes ;;
7216esac
7217 NMEDIT=$ac_ct_NMEDIT
7218 fi
7219else
7220 NMEDIT="$ac_cv_prog_NMEDIT"
7221fi
7222
7223 if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7225set dummy ${ac_tool_prefix}lipo; ac_word=$2
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7228if ${ac_cv_prog_LIPO+:} false; then :
7a938933
ILT
7229 $as_echo_n "(cached) " >&6
7230else
7231 if test -n "$LIPO"; then
7232 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7241 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7244 fi
7245done
7246 done
7247IFS=$as_save_IFS
7248
7249fi
7250fi
7251LIPO=$ac_cv_prog_LIPO
7252if test -n "$LIPO"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7254$as_echo "$LIPO" >&6; }
7255else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257$as_echo "no" >&6; }
7258fi
7259
7260
7261fi
7262if test -z "$ac_cv_prog_LIPO"; then
7263 ac_ct_LIPO=$LIPO
7264 # Extract the first word of "lipo", so it can be a program name with args.
7265set dummy lipo; ac_word=$2
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7268if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7a938933
ILT
7269 $as_echo_n "(cached) " >&6
7270else
7271 if test -n "$ac_ct_LIPO"; then
7272 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7281 ac_cv_prog_ac_ct_LIPO="lipo"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7284 fi
7285done
7286 done
7287IFS=$as_save_IFS
7288
7289fi
7290fi
7291ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7292if test -n "$ac_ct_LIPO"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7294$as_echo "$ac_ct_LIPO" >&6; }
7295else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297$as_echo "no" >&6; }
7298fi
7299
7300 if test "x$ac_ct_LIPO" = x; then
7301 LIPO=":"
7302 else
7303 case $cross_compiling:$ac_tool_warned in
7304yes:)
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307ac_tool_warned=yes ;;
7308esac
7309 LIPO=$ac_ct_LIPO
7310 fi
7311else
7312 LIPO="$ac_cv_prog_LIPO"
7313fi
7314
7315 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7317set dummy ${ac_tool_prefix}otool; ac_word=$2
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7320if ${ac_cv_prog_OTOOL+:} false; then :
7a938933
ILT
7321 $as_echo_n "(cached) " >&6
7322else
7323 if test -n "$OTOOL"; then
7324 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329 IFS=$as_save_IFS
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7333 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337done
7338 done
7339IFS=$as_save_IFS
7340
7341fi
7342fi
7343OTOOL=$ac_cv_prog_OTOOL
7344if test -n "$OTOOL"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7346$as_echo "$OTOOL" >&6; }
7347else
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349$as_echo "no" >&6; }
7350fi
7351
7352
7353fi
7354if test -z "$ac_cv_prog_OTOOL"; then
7355 ac_ct_OTOOL=$OTOOL
7356 # Extract the first word of "otool", so it can be a program name with args.
7357set dummy otool; ac_word=$2
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7360if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7a938933
ILT
7361 $as_echo_n "(cached) " >&6
7362else
7363 if test -n "$ac_ct_OTOOL"; then
7364 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7365else
7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7373 ac_cv_prog_ac_ct_OTOOL="otool"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 break 2
7376 fi
7377done
7378 done
7379IFS=$as_save_IFS
7380
7381fi
7382fi
7383ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7384if test -n "$ac_ct_OTOOL"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7386$as_echo "$ac_ct_OTOOL" >&6; }
7387else
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389$as_echo "no" >&6; }
7390fi
7391
7392 if test "x$ac_ct_OTOOL" = x; then
7393 OTOOL=":"
7394 else
7395 case $cross_compiling:$ac_tool_warned in
7396yes:)
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399ac_tool_warned=yes ;;
7400esac
7401 OTOOL=$ac_ct_OTOOL
7402 fi
7403else
7404 OTOOL="$ac_cv_prog_OTOOL"
7405fi
7406
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7409set dummy ${ac_tool_prefix}otool64; ac_word=$2
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7412if ${ac_cv_prog_OTOOL64+:} false; then :
7a938933
ILT
7413 $as_echo_n "(cached) " >&6
7414else
7415 if test -n "$OTOOL64"; then
7416 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7417else
7418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421 IFS=$as_save_IFS
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7425 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427 break 2
7428 fi
7429done
7430 done
7431IFS=$as_save_IFS
7432
7433fi
7434fi
7435OTOOL64=$ac_cv_prog_OTOOL64
7436if test -n "$OTOOL64"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7438$as_echo "$OTOOL64" >&6; }
7439else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441$as_echo "no" >&6; }
7442fi
7443
7444
7445fi
7446if test -z "$ac_cv_prog_OTOOL64"; then
7447 ac_ct_OTOOL64=$OTOOL64
7448 # Extract the first word of "otool64", so it can be a program name with args.
7449set dummy otool64; ac_word=$2
7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7452if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7a938933
ILT
7453 $as_echo_n "(cached) " >&6
7454else
7455 if test -n "$ac_ct_OTOOL64"; then
7456 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7457else
7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7465 ac_cv_prog_ac_ct_OTOOL64="otool64"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7468 fi
7469done
7470 done
7471IFS=$as_save_IFS
7472
7473fi
7474fi
7475ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7476if test -n "$ac_ct_OTOOL64"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7478$as_echo "$ac_ct_OTOOL64" >&6; }
7479else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481$as_echo "no" >&6; }
7482fi
7483
7484 if test "x$ac_ct_OTOOL64" = x; then
7485 OTOOL64=":"
7486 else
7487 case $cross_compiling:$ac_tool_warned in
7488yes:)
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491ac_tool_warned=yes ;;
7492esac
7493 OTOOL64=$ac_ct_OTOOL64
7494 fi
7495else
e02ed81e 7496 OTOOL64="$ac_cv_prog_OTOOL64"
7a938933
ILT
7497fi
7498
7a938933
ILT
7499
7500
7a938933 7501
7a938933 7502
7a938933 7503
7a938933 7504
7a938933 7505
7a938933 7506
7a938933 7507
7a938933 7508
7a938933 7509
7a938933 7510
7a938933 7511
e02ed81e
ILT
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7526$as_echo_n "checking for -single_module linker flag... " >&6; }
73b6d7a9 7527if ${lt_cv_apple_cc_single_mod+:} false; then :
e02ed81e 7528 $as_echo_n "(cached) " >&6
7a938933 7529else
e02ed81e
ILT
7530 lt_cv_apple_cc_single_mod=no
7531 if test -z "${LT_MULTI_MODULE}"; then
7532 # By default we will add the -single_module flag. You can override
7533 # by either setting the environment variable LT_MULTI_MODULE
7534 # non-empty at configure time, or by adding -multi_module to the
7535 # link flags.
7536 rm -rf libconftest.dylib*
7537 echo "int foo(void){return 1;}" > conftest.c
7538 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7539-dynamiclib -Wl,-single_module conftest.c" >&5
7540 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7541 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7542 _lt_result=$?
7543 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7544 lt_cv_apple_cc_single_mod=yes
7545 else
7546 cat conftest.err >&5
7547 fi
7548 rm -rf libconftest.dylib*
7549 rm -f conftest.*
7550 fi
7551fi
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7553$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7555$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
73b6d7a9 7556if ${lt_cv_ld_exported_symbols_list+:} false; then :
e02ed81e
ILT
7557 $as_echo_n "(cached) " >&6
7558else
7559 lt_cv_ld_exported_symbols_list=no
7560 save_LDFLAGS=$LDFLAGS
7561 echo "_main" > conftest.sym
7562 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a938933 7564/* end confdefs.h. */
7a938933 7565
7a938933
ILT
7566int
7567main ()
7568{
e02ed81e
ILT
7569
7570 ;
7a938933
ILT
7571 return 0;
7572}
7573_ACEOF
e02ed81e
ILT
7574if ac_fn_c_try_link "$LINENO"; then :
7575 lt_cv_ld_exported_symbols_list=yes
7a938933 7576else
e02ed81e 7577 lt_cv_ld_exported_symbols_list=no
7a938933 7578fi
e02ed81e
ILT
7579rm -f core conftest.err conftest.$ac_objext \
7580 conftest$ac_exeext conftest.$ac_ext
7581 LDFLAGS="$save_LDFLAGS"
7a938933
ILT
7582
7583fi
e02ed81e
ILT
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7585$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7587$as_echo_n "checking for -force_load linker flag... " >&6; }
73b6d7a9 7588if ${lt_cv_ld_force_load+:} false; then :
e02ed81e
ILT
7589 $as_echo_n "(cached) " >&6
7590else
7591 lt_cv_ld_force_load=no
7592 cat > conftest.c << _LT_EOF
7593int forced_loaded() { return 2;}
7594_LT_EOF
7595 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7596 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7597 echo "$AR cru libconftest.a conftest.o" >&5
7598 $AR cru libconftest.a conftest.o 2>&5
7599 cat > conftest.c << _LT_EOF
7600int main() { return 0;}
7601_LT_EOF
7602 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7603 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7604 _lt_result=$?
7605 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7606 lt_cv_ld_force_load=yes
7607 else
7608 cat conftest.err >&5
7609 fi
7610 rm -f conftest.err libconftest.a conftest conftest.c
7611 rm -rf conftest.dSYM
7a938933
ILT
7612
7613fi
e02ed81e
ILT
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7615$as_echo "$lt_cv_ld_force_load" >&6; }
7616 case $host_os in
7617 rhapsody* | darwin1.[012])
7618 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7619 darwin1.*)
7620 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7621 darwin*) # darwin 5.x on
7622 # if running on 10.5 or later, the deployment target defaults
7623 # to the OS version, if on x86, and 10.4, the deployment
7624 # target defaults to 10.4. Don't you love it?
7625 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7626 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7627 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
327a26a3 7628 10.[012][,.]*)
e02ed81e
ILT
7629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7630 10.*)
7631 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7632 esac
7633 ;;
7634 esac
7635 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7636 _lt_dar_single_mod='$single_module'
7637 fi
7638 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7639 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7640 else
7641 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7642 fi
7643 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7644 _lt_dsymutil='~$DSYMUTIL $lib || :'
7645 else
7646 _lt_dsymutil=
7647 fi
7648 ;;
7649 esac
7a938933 7650
061793a4
ILT
7651ac_ext=c
7652ac_cpp='$CPP $CPPFLAGS'
7653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655ac_compiler_gnu=$ac_cv_c_compiler_gnu
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7657$as_echo_n "checking how to run the C preprocessor... " >&6; }
7658# On Suns, sometimes $CPP names a directory.
7659if test -n "$CPP" && test -d "$CPP"; then
7660 CPP=
7661fi
7662if test -z "$CPP"; then
73b6d7a9 7663 if ${ac_cv_prog_CPP+:} false; then :
061793a4
ILT
7664 $as_echo_n "(cached) " >&6
7665else
7666 # Double quotes because CPP needs to be expanded
7667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7668 do
7669 ac_preproc_ok=false
7670for ac_c_preproc_warn_flag in '' yes
7671do
7672 # Use a header file that comes with gcc, so configuring glibc
7673 # with a fresh cross-compiler works.
7674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7675 # <limits.h> exists even on freestanding compilers.
7676 # On the NeXT, cc -E runs the code through the compiler's parser,
7677 # not just through cpp. "Syntax error" is here to catch this case.
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h. */
7680#ifdef __STDC__
7681# include <limits.h>
7682#else
7683# include <assert.h>
7684#endif
7685 Syntax error
7686_ACEOF
7687if ac_fn_c_try_cpp "$LINENO"; then :
7688
7689else
7690 # Broken: fails on valid input.
7691continue
7692fi
73b6d7a9 7693rm -f conftest.err conftest.i conftest.$ac_ext
061793a4
ILT
7694
7695 # OK, works on sane cases. Now check whether nonexistent headers
7696 # can be detected and how.
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h. */
7699#include <ac_nonexistent.h>
7700_ACEOF
7701if ac_fn_c_try_cpp "$LINENO"; then :
7702 # Broken: success on invalid input.
7703continue
7704else
7705 # Passes both tests.
7706ac_preproc_ok=:
7707break
7708fi
73b6d7a9 7709rm -f conftest.err conftest.i conftest.$ac_ext
061793a4
ILT
7710
7711done
7712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
73b6d7a9 7713rm -f conftest.i conftest.err conftest.$ac_ext
061793a4
ILT
7714if $ac_preproc_ok; then :
7715 break
7716fi
7717
7718 done
7719 ac_cv_prog_CPP=$CPP
7720
7721fi
7722 CPP=$ac_cv_prog_CPP
7723else
7724 ac_cv_prog_CPP=$CPP
7725fi
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7727$as_echo "$CPP" >&6; }
7728ac_preproc_ok=false
7729for ac_c_preproc_warn_flag in '' yes
7730do
7731 # Use a header file that comes with gcc, so configuring glibc
7732 # with a fresh cross-compiler works.
7733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7734 # <limits.h> exists even on freestanding compilers.
7735 # On the NeXT, cc -E runs the code through the compiler's parser,
7736 # not just through cpp. "Syntax error" is here to catch this case.
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738/* end confdefs.h. */
7739#ifdef __STDC__
7740# include <limits.h>
7741#else
7742# include <assert.h>
7743#endif
7744 Syntax error
7745_ACEOF
7746if ac_fn_c_try_cpp "$LINENO"; then :
7747
7748else
7749 # Broken: fails on valid input.
7750continue
7751fi
73b6d7a9 7752rm -f conftest.err conftest.i conftest.$ac_ext
061793a4
ILT
7753
7754 # OK, works on sane cases. Now check whether nonexistent headers
7755 # can be detected and how.
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757/* end confdefs.h. */
7758#include <ac_nonexistent.h>
7759_ACEOF
7760if ac_fn_c_try_cpp "$LINENO"; then :
7761 # Broken: success on invalid input.
7762continue
7763else
7764 # Passes both tests.
7765ac_preproc_ok=:
7766break
7767fi
73b6d7a9 7768rm -f conftest.err conftest.i conftest.$ac_ext
061793a4
ILT
7769
7770done
7771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
73b6d7a9 7772rm -f conftest.i conftest.err conftest.$ac_ext
061793a4
ILT
7773if $ac_preproc_ok; then :
7774
7775else
7776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
7778as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7779See \`config.log' for more details" "$LINENO" 5; }
061793a4
ILT
7780fi
7781
7782ac_ext=c
7783ac_cpp='$CPP $CPPFLAGS'
7784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
7788
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7790$as_echo_n "checking for ANSI C header files... " >&6; }
73b6d7a9 7791if ${ac_cv_header_stdc+:} false; then :
061793a4
ILT
7792 $as_echo_n "(cached) " >&6
7793else
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795/* end confdefs.h. */
7796#include <stdlib.h>
7797#include <stdarg.h>
7798#include <string.h>
7799#include <float.h>
7800
7801int
7802main ()
7803{
7804
7805 ;
7806 return 0;
7807}
7808_ACEOF
7809if ac_fn_c_try_compile "$LINENO"; then :
7810 ac_cv_header_stdc=yes
7811else
7812 ac_cv_header_stdc=no
7813fi
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815
7816if test $ac_cv_header_stdc = yes; then
7817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819/* end confdefs.h. */
7820#include <string.h>
7821
7822_ACEOF
7823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7824 $EGREP "memchr" >/dev/null 2>&1; then :
7825
7826else
7827 ac_cv_header_stdc=no
7828fi
7829rm -f conftest*
7830
7831fi
7832
7833if test $ac_cv_header_stdc = yes; then
7834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836/* end confdefs.h. */
7837#include <stdlib.h>
7838
7839_ACEOF
7840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7841 $EGREP "free" >/dev/null 2>&1; then :
7842
7843else
7844 ac_cv_header_stdc=no
7845fi
7846rm -f conftest*
7847
7848fi
7849
7850if test $ac_cv_header_stdc = yes; then
7851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7852 if test "$cross_compiling" = yes; then :
7853 :
7854else
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856/* end confdefs.h. */
7857#include <ctype.h>
7858#include <stdlib.h>
7859#if ((' ' & 0x0FF) == 0x020)
7860# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7861# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7862#else
7863# define ISLOWER(c) \
7864 (('a' <= (c) && (c) <= 'i') \
7865 || ('j' <= (c) && (c) <= 'r') \
7866 || ('s' <= (c) && (c) <= 'z'))
7867# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7868#endif
7869
7870#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7871int
7872main ()
7873{
7874 int i;
7875 for (i = 0; i < 256; i++)
7876 if (XOR (islower (i), ISLOWER (i))
7877 || toupper (i) != TOUPPER (i))
7878 return 2;
7879 return 0;
7880}
7881_ACEOF
7882if ac_fn_c_try_run "$LINENO"; then :
7883
7884else
7885 ac_cv_header_stdc=no
7886fi
7887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7888 conftest.$ac_objext conftest.beam conftest.$ac_ext
7889fi
7890
7891fi
7892fi
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7894$as_echo "$ac_cv_header_stdc" >&6; }
7895if test $ac_cv_header_stdc = yes; then
7896
7897$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7898
7899fi
7900
7901# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7902for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7903 inttypes.h stdint.h unistd.h
7904do :
7905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7906ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7907"
73b6d7a9 7908if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
061793a4
ILT
7909 cat >>confdefs.h <<_ACEOF
7910#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7911_ACEOF
7912
7913fi
7914
7915done
7916
7917
7a938933
ILT
7918for ac_header in dlfcn.h
7919do :
7920 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7921"
73b6d7a9 7922if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7a938933
ILT
7923 cat >>confdefs.h <<_ACEOF
7924#define HAVE_DLFCN_H 1
7925_ACEOF
7926
7927fi
7928
7929done
7930
7931if test -n "$ac_tool_prefix"; then
7932 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7933set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7936if ${ac_cv_prog_GOC+:} false; then :
7a938933
ILT
7937 $as_echo_n "(cached) " >&6
7938else
7939 if test -n "$GOC"; then
7940 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7941else
7942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943for as_dir in $PATH
7944do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7949 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953done
7954 done
7955IFS=$as_save_IFS
7956
7957fi
7958fi
7959GOC=$ac_cv_prog_GOC
7960if test -n "$GOC"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7962$as_echo "$GOC" >&6; }
7963else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
7966fi
7967
7968
7969fi
7970if test -z "$ac_cv_prog_GOC"; then
7971 ac_ct_GOC=$GOC
7972 # Extract the first word of "gccgo", so it can be a program name with args.
7973set dummy gccgo; ac_word=$2
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 7976if ${ac_cv_prog_ac_ct_GOC+:} false; then :
7a938933
ILT
7977 $as_echo_n "(cached) " >&6
7978else
7979 if test -n "$ac_ct_GOC"; then
7980 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7a938933
ILT
7989 ac_cv_prog_ac_ct_GOC="gccgo"
7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993done
7994 done
7995IFS=$as_save_IFS
7996
7997fi
7998fi
7999ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
8000if test -n "$ac_ct_GOC"; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
8002$as_echo "$ac_ct_GOC" >&6; }
8003else
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
8006fi
8007
8008 if test "x$ac_ct_GOC" = x; then
8009 GOC=""
8010 else
8011 case $cross_compiling:$ac_tool_warned in
8012yes:)
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8015ac_tool_warned=yes ;;
8016esac
8017 GOC=$ac_ct_GOC
8018 fi
8019else
8020 GOC="$ac_cv_prog_GOC"
8021fi
8022
8023
8024
8025
8026
8027
8028# Set options
8029
8030
8031
8032
8033 enable_win32_dll=no
8034
8035
8036 # Check whether --enable-shared was given.
8037if test "${enable_shared+set}" = set; then :
8038 enableval=$enable_shared; p=${PACKAGE-default}
8039 case $enableval in
8040 yes) enable_shared=yes ;;
8041 no) enable_shared=no ;;
8042 *)
8043 enable_shared=no
8044 # Look at the argument we got. We use all the common list separators.
8045 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8046 for pkg in $enableval; do
8047 IFS="$lt_save_ifs"
8048 if test "X$pkg" = "X$p"; then
8049 enable_shared=yes
8050 fi
8051 done
8052 IFS="$lt_save_ifs"
8053 ;;
8054 esac
8055else
8056 enable_shared=yes
8057fi
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067 # Check whether --enable-static was given.
8068if test "${enable_static+set}" = set; then :
8069 enableval=$enable_static; p=${PACKAGE-default}
8070 case $enableval in
8071 yes) enable_static=yes ;;
8072 no) enable_static=no ;;
8073 *)
8074 enable_static=no
8075 # Look at the argument we got. We use all the common list separators.
8076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8077 for pkg in $enableval; do
8078 IFS="$lt_save_ifs"
8079 if test "X$pkg" = "X$p"; then
8080 enable_static=yes
8081 fi
8082 done
8083 IFS="$lt_save_ifs"
8084 ;;
8085 esac
8086else
8087 enable_static=yes
8088fi
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099# Check whether --with-pic was given.
8100if test "${with_pic+set}" = set; then :
8101 withval=$with_pic; pic_mode="$withval"
8102else
8103 pic_mode=default
8104fi
8105
8106
8107test -z "$pic_mode" && pic_mode=default
8108
8109
8110
8111
8112
8113
8114
8115 # Check whether --enable-fast-install was given.
8116if test "${enable_fast_install+set}" = set; then :
8117 enableval=$enable_fast_install; p=${PACKAGE-default}
8118 case $enableval in
8119 yes) enable_fast_install=yes ;;
8120 no) enable_fast_install=no ;;
8121 *)
8122 enable_fast_install=no
8123 # Look at the argument we got. We use all the common list separators.
8124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8125 for pkg in $enableval; do
8126 IFS="$lt_save_ifs"
8127 if test "X$pkg" = "X$p"; then
8128 enable_fast_install=yes
8129 fi
8130 done
8131 IFS="$lt_save_ifs"
8132 ;;
8133 esac
8134else
8135 enable_fast_install=yes
8136fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148# This can be used to rebuild libtool when needed
8149LIBTOOL_DEPS="$ltmain"
8150
8151# Always use our own libtool.
8152LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179test -z "$LN_S" && LN_S="ln -s"
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194if test -n "${ZSH_VERSION+set}" ; then
8195 setopt NO_GLOB_SUBST
8196fi
8197
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8199$as_echo_n "checking for objdir... " >&6; }
73b6d7a9 8200if ${lt_cv_objdir+:} false; then :
7a938933
ILT
8201 $as_echo_n "(cached) " >&6
8202else
8203 rm -f .libs 2>/dev/null
8204mkdir .libs 2>/dev/null
8205if test -d .libs; then
8206 lt_cv_objdir=.libs
8207else
8208 # MS-DOS does not allow filenames that begin with a dot.
8209 lt_cv_objdir=_libs
8210fi
8211rmdir .libs 2>/dev/null
8212fi
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8214$as_echo "$lt_cv_objdir" >&6; }
8215objdir=$lt_cv_objdir
8216
8217
8218
8219
8220
8221cat >>confdefs.h <<_ACEOF
8222#define LT_OBJDIR "$lt_cv_objdir/"
8223_ACEOF
8224
8225
8226
8227
8228case $host_os in
8229aix3*)
8230 # AIX sometimes has problems with the GCC collect2 program. For some
8231 # reason, if we set the COLLECT_NAMES environment variable, the problems
8232 # vanish in a puff of smoke.
8233 if test "X${COLLECT_NAMES+set}" != Xset; then
8234 COLLECT_NAMES=
8235 export COLLECT_NAMES
8236 fi
8237 ;;
8238esac
8239
8240# Global variables:
8241ofile=libtool
8242can_build_shared=yes
8243
8244# All known linkers require a `.a' archive for static linking (except MSVC,
8245# which needs '.lib').
8246libext=a
8247
8248with_gnu_ld="$lt_cv_prog_gnu_ld"
8249
8250old_CC="$CC"
8251old_CFLAGS="$CFLAGS"
8252
8253# Set sane defaults for various variables
8254test -z "$CC" && CC=cc
8255test -z "$LTCC" && LTCC=$CC
8256test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8257test -z "$LD" && LD=ld
8258test -z "$ac_objext" && ac_objext=o
8259
8260for cc_temp in $compiler""; do
8261 case $cc_temp in
8262 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8263 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8264 \-*) ;;
8265 *) break;;
8266 esac
8267done
8268cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8269
8270
8271# Only perform the check for file, if the check method requires it
8272test -z "$MAGIC_CMD" && MAGIC_CMD=file
8273case $deplibs_check_method in
8274file_magic*)
8275 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8277$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
73b6d7a9 8278if ${lt_cv_path_MAGIC_CMD+:} false; then :
7a938933
ILT
8279 $as_echo_n "(cached) " >&6
8280else
8281 case $MAGIC_CMD in
8282[\\/*] | ?:[\\/]*)
8283 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8284 ;;
8285*)
8286 lt_save_MAGIC_CMD="$MAGIC_CMD"
8287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8289 for ac_dir in $ac_dummy; do
8290 IFS="$lt_save_ifs"
8291 test -z "$ac_dir" && ac_dir=.
8292 if test -f $ac_dir/${ac_tool_prefix}file; then
8293 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8294 if test -n "$file_magic_test_file"; then
8295 case $deplibs_check_method in
8296 "file_magic "*)
8297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8300 $EGREP "$file_magic_regex" > /dev/null; then
8301 :
8302 else
8303 cat <<_LT_EOF 1>&2
8304
8305*** Warning: the command libtool uses to detect shared libraries,
8306*** $file_magic_cmd, produces output that libtool cannot recognize.
8307*** The result is that libtool may fail to recognize shared libraries
8308*** as such. This will affect the creation of libtool libraries that
8309*** depend on shared libraries, but programs linked with such libtool
8310*** libraries will work regardless of this problem. Nevertheless, you
8311*** may want to report the problem to your system manager and/or to
8312*** bug-libtool@gnu.org
8313
8314_LT_EOF
8315 fi ;;
8316 esac
8317 fi
8318 break
8319 fi
8320 done
8321 IFS="$lt_save_ifs"
8322 MAGIC_CMD="$lt_save_MAGIC_CMD"
8323 ;;
8324esac
8325fi
8326
8327MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8328if test -n "$MAGIC_CMD"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8330$as_echo "$MAGIC_CMD" >&6; }
8331else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333$as_echo "no" >&6; }
8334fi
8335
8336
8337
8338
8339
8340if test -z "$lt_cv_path_MAGIC_CMD"; then
8341 if test -n "$ac_tool_prefix"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8343$as_echo_n "checking for file... " >&6; }
73b6d7a9 8344if ${lt_cv_path_MAGIC_CMD+:} false; then :
7a938933
ILT
8345 $as_echo_n "(cached) " >&6
8346else
8347 case $MAGIC_CMD in
8348[\\/*] | ?:[\\/]*)
8349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8350 ;;
8351*)
8352 lt_save_MAGIC_CMD="$MAGIC_CMD"
8353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8354 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8355 for ac_dir in $ac_dummy; do
8356 IFS="$lt_save_ifs"
8357 test -z "$ac_dir" && ac_dir=.
8358 if test -f $ac_dir/file; then
8359 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8360 if test -n "$file_magic_test_file"; then
8361 case $deplibs_check_method in
8362 "file_magic "*)
8363 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8364 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8365 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8366 $EGREP "$file_magic_regex" > /dev/null; then
8367 :
8368 else
8369 cat <<_LT_EOF 1>&2
8370
8371*** Warning: the command libtool uses to detect shared libraries,
8372*** $file_magic_cmd, produces output that libtool cannot recognize.
8373*** The result is that libtool may fail to recognize shared libraries
8374*** as such. This will affect the creation of libtool libraries that
8375*** depend on shared libraries, but programs linked with such libtool
8376*** libraries will work regardless of this problem. Nevertheless, you
8377*** may want to report the problem to your system manager and/or to
8378*** bug-libtool@gnu.org
8379
8380_LT_EOF
8381 fi ;;
8382 esac
8383 fi
8384 break
8385 fi
8386 done
8387 IFS="$lt_save_ifs"
8388 MAGIC_CMD="$lt_save_MAGIC_CMD"
8389 ;;
8390esac
8391fi
8392
8393MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8394if test -n "$MAGIC_CMD"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8396$as_echo "$MAGIC_CMD" >&6; }
8397else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
8400fi
8401
8402
8403 else
8404 MAGIC_CMD=:
8405 fi
8406fi
8407
8408 fi
8409 ;;
8410esac
8411
8412# Use C for the default configuration in the libtool script
8413
8414lt_save_CC="$CC"
8415ac_ext=c
8416ac_cpp='$CPP $CPPFLAGS'
8417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8419ac_compiler_gnu=$ac_cv_c_compiler_gnu
8420
8421
8422# Source file extension for C test sources.
8423ac_ext=c
8424
8425# Object file extension for compiled C test sources.
8426objext=o
8427objext=$objext
8428
8429# Code to be used in simple compile tests
8430lt_simple_compile_test_code="int some_variable = 0;"
8431
8432# Code to be used in simple link tests
8433lt_simple_link_test_code='int main(){return(0);}'
8434
8435
8436
8437
8438
8439
8440
8441# If no C compiler was specified, use CC.
8442LTCC=${LTCC-"$CC"}
8443
8444# If no C compiler flags were specified, use CFLAGS.
8445LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8446
8447# Allow CC to be a program name with arguments.
8448compiler=$CC
8449
8450# Save the default compiler, since it gets overwritten when the other
8451# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8452compiler_DEFAULT=$CC
8453
8454# save warnings/boilerplate of simple test code
8455ac_outfile=conftest.$ac_objext
8456echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8457eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8458_lt_compiler_boilerplate=`cat conftest.err`
8459$RM conftest*
8460
8461ac_outfile=conftest.$ac_objext
8462echo "$lt_simple_link_test_code" >conftest.$ac_ext
8463eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8464_lt_linker_boilerplate=`cat conftest.err`
8465$RM -r conftest*
8466
8467
8468## CAVEAT EMPTOR:
8469## There is no encapsulation within the following macros, do not change
8470## the running order or otherwise move them around unless you know exactly
8471## what you are doing...
8472if test -n "$compiler"; then
8473
8474lt_prog_compiler_no_builtin_flag=
8475
8476if test "$GCC" = yes; then
8477 case $cc_basename in
8478 nvcc*)
8479 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8480 *)
8481 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8482 esac
8483
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8485$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
73b6d7a9 8486if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7a938933
ILT
8487 $as_echo_n "(cached) " >&6
8488else
8489 lt_cv_prog_compiler_rtti_exceptions=no
8490 ac_outfile=conftest.$ac_objext
8491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8492 lt_compiler_flag="-fno-rtti -fno-exceptions"
8493 # Insert the option either (1) after the last *FLAGS variable, or
8494 # (2) before a word containing "conftest.", or (3) at the end.
8495 # Note that $ac_compile itself does not contain backslashes and begins
8496 # with a dollar sign (not a hyphen), so the echo should work correctly.
8497 # The option is referenced via a variable to avoid confusing sed.
8498 lt_compile=`echo "$ac_compile" | $SED \
8499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8501 -e 's:$: $lt_compiler_flag:'`
8502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8503 (eval "$lt_compile" 2>conftest.err)
8504 ac_status=$?
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 if (exit $ac_status) && test -s "$ac_outfile"; then
8508 # The compiler can only warn and ignore the option if not recognized
8509 # So say no if there are warnings other than the usual output.
8510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8513 lt_cv_prog_compiler_rtti_exceptions=yes
8514 fi
8515 fi
8516 $RM conftest*
8517
8518fi
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8520$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8521
8522if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8523 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8524else
8525 :
8526fi
8527
8528fi
8529
8530
8531
8532
8533
8534
8535 lt_prog_compiler_wl=
8536lt_prog_compiler_pic=
8537lt_prog_compiler_static=
8538
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8540$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8541
8542 if test "$GCC" = yes; then
8543 lt_prog_compiler_wl='-Wl,'
8544 lt_prog_compiler_static='-static'
8545
8546 case $host_os in
8547 aix*)
8548 # All AIX code is PIC.
8549 if test "$host_cpu" = ia64; then
8550 # AIX 5 now supports IA64 processor
8551 lt_prog_compiler_static='-Bstatic'
8552 fi
327a26a3 8553 lt_prog_compiler_pic='-fPIC'
7a938933
ILT
8554 ;;
8555
8556 amigaos*)
8557 case $host_cpu in
8558 powerpc)
8559 # see comment about AmigaOS4 .so support
8560 lt_prog_compiler_pic='-fPIC'
8561 ;;
8562 m68k)
8563 # FIXME: we need at least 68020 code to build shared libraries, but
8564 # adding the `-m68020' flag to GCC prevents building anything better,
8565 # like `-m68040'.
8566 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8567 ;;
8568 esac
8569 ;;
8570
8571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8572 # PIC is the default for these OSes.
8573 ;;
8574
8575 mingw* | cygwin* | pw32* | os2* | cegcc*)
8576 # This hack is so that the source file can tell whether it is being
8577 # built for inclusion in a dll (and should export symbols for example).
8578 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8579 # (--disable-auto-import) libraries
8580 lt_prog_compiler_pic='-DDLL_EXPORT'
8581 ;;
8582
8583 darwin* | rhapsody*)
8584 # PIC is the default on this platform
8585 # Common symbols not allowed in MH_DYLIB files
8586 lt_prog_compiler_pic='-fno-common'
8587 ;;
8588
8589 haiku*)
8590 # PIC is the default for Haiku.
8591 # The "-static" flag exists, but is broken.
8592 lt_prog_compiler_static=
8593 ;;
8594
8595 hpux*)
8596 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8597 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8598 # sets the default TLS model and affects inlining.
8599 case $host_cpu in
8600 hppa*64*)
8601 # +Z the default
8602 ;;
8603 *)
8604 lt_prog_compiler_pic='-fPIC'
8605 ;;
8606 esac
8607 ;;
8608
8609 interix[3-9]*)
8610 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8611 # Instead, we relocate shared libraries at runtime.
8612 ;;
8613
8614 msdosdjgpp*)
8615 # Just because we use GCC doesn't mean we suddenly get shared libraries
8616 # on systems that don't support them.
8617 lt_prog_compiler_can_build_shared=no
8618 enable_shared=no
8619 ;;
8620
8621 *nto* | *qnx*)
8622 # QNX uses GNU C++, but need to define -shared option too, otherwise
8623 # it will coredump.
8624 lt_prog_compiler_pic='-fPIC -shared'
8625 ;;
8626
8627 sysv4*MP*)
8628 if test -d /usr/nec; then
8629 lt_prog_compiler_pic=-Kconform_pic
8630 fi
8631 ;;
8632
8633 *)
8634 lt_prog_compiler_pic='-fPIC'
8635 ;;
8636 esac
8637
8638 case $cc_basename in
8639 nvcc*) # Cuda Compiler Driver 2.2
8640 lt_prog_compiler_wl='-Xlinker '
8641 lt_prog_compiler_pic='-Xcompiler -fPIC'
8642 ;;
8643 esac
8644 else
8645 # PORTME Check for flag to pass linker flags through the system compiler.
8646 case $host_os in
8647 aix*)
8648 lt_prog_compiler_wl='-Wl,'
8649 if test "$host_cpu" = ia64; then
8650 # AIX 5 now supports IA64 processor
8651 lt_prog_compiler_static='-Bstatic'
8652 else
8653 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8654 fi
8655 ;;
8656
8657 mingw* | cygwin* | pw32* | os2* | cegcc*)
8658 # This hack is so that the source file can tell whether it is being
8659 # built for inclusion in a dll (and should export symbols for example).
8660 lt_prog_compiler_pic='-DDLL_EXPORT'
8661 ;;
8662
8663 hpux9* | hpux10* | hpux11*)
8664 lt_prog_compiler_wl='-Wl,'
8665 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8666 # not for PA HP-UX.
8667 case $host_cpu in
8668 hppa*64*|ia64*)
8669 # +Z the default
8670 ;;
8671 *)
8672 lt_prog_compiler_pic='+Z'
8673 ;;
8674 esac
8675 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8676 lt_prog_compiler_static='${wl}-a ${wl}archive'
8677 ;;
8678
8679 irix5* | irix6* | nonstopux*)
8680 lt_prog_compiler_wl='-Wl,'
8681 # PIC (with -KPIC) is the default.
8682 lt_prog_compiler_static='-non_shared'
8683 ;;
8684
8685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8686 case $cc_basename in
8687 # old Intel for x86_64 which still supported -KPIC.
8688 ecc*)
8689 lt_prog_compiler_wl='-Wl,'
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-static'
8692 ;;
8693 # icc used to be incompatible with GCC.
8694 # ICC 10 doesn't accept -KPIC any more.
8695 icc* | ifort*)
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_pic='-fPIC'
8698 lt_prog_compiler_static='-static'
8699 ;;
8700 # Lahey Fortran 8.1.
8701 lf95*)
8702 lt_prog_compiler_wl='-Wl,'
8703 lt_prog_compiler_pic='--shared'
8704 lt_prog_compiler_static='--static'
8705 ;;
8706 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8707 # Portland Group compilers (*not* the Pentium gcc compiler,
8708 # which looks to be a dead project)
8709 lt_prog_compiler_wl='-Wl,'
8710 lt_prog_compiler_pic='-fpic'
8711 lt_prog_compiler_static='-Bstatic'
8712 ;;
8713 ccc*)
8714 lt_prog_compiler_wl='-Wl,'
8715 # All Alpha code is PIC.
8716 lt_prog_compiler_static='-non_shared'
8717 ;;
8718 xl* | bgxl* | bgf* | mpixl*)
8719 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_pic='-qpic'
8722 lt_prog_compiler_static='-qstaticlink'
8723 ;;
8724 *)
8725 case `$CC -V 2>&1 | sed 5q` in
8726 *Sun\ F* | *Sun*Fortran*)
8727 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-Bstatic'
8730 lt_prog_compiler_wl=''
8731 ;;
8732 *Sun\ C*)
8733 # Sun C 5.9
8734 lt_prog_compiler_pic='-KPIC'
8735 lt_prog_compiler_static='-Bstatic'
8736 lt_prog_compiler_wl='-Wl,'
8737 ;;
8738 esac
8739 ;;
8740 esac
8741 ;;
8742
8743 newsos6)
8744 lt_prog_compiler_pic='-KPIC'
8745 lt_prog_compiler_static='-Bstatic'
8746 ;;
8747
8748 *nto* | *qnx*)
8749 # QNX uses GNU C++, but need to define -shared option too, otherwise
8750 # it will coredump.
8751 lt_prog_compiler_pic='-fPIC -shared'
8752 ;;
8753
8754 osf3* | osf4* | osf5*)
8755 lt_prog_compiler_wl='-Wl,'
8756 # All OSF/1 code is PIC.
8757 lt_prog_compiler_static='-non_shared'
8758 ;;
8759
8760 rdos*)
8761 lt_prog_compiler_static='-non_shared'
8762 ;;
8763
8764 solaris*)
8765 lt_prog_compiler_pic='-KPIC'
8766 lt_prog_compiler_static='-Bstatic'
8767 case $cc_basename in
8768 f77* | f90* | f95*)
8769 lt_prog_compiler_wl='-Qoption ld ';;
8770 *)
8771 lt_prog_compiler_wl='-Wl,';;
8772 esac
8773 ;;
8774
8775 sunos4*)
8776 lt_prog_compiler_wl='-Qoption ld '
8777 lt_prog_compiler_pic='-PIC'
8778 lt_prog_compiler_static='-Bstatic'
8779 ;;
8780
8781 sysv4 | sysv4.2uw2* | sysv4.3*)
8782 lt_prog_compiler_wl='-Wl,'
8783 lt_prog_compiler_pic='-KPIC'
8784 lt_prog_compiler_static='-Bstatic'
8785 ;;
8786
8787 sysv4*MP*)
8788 if test -d /usr/nec ;then
8789 lt_prog_compiler_pic='-Kconform_pic'
8790 lt_prog_compiler_static='-Bstatic'
8791 fi
8792 ;;
8793
8794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8795 lt_prog_compiler_wl='-Wl,'
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 ;;
8799
8800 unicos*)
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_can_build_shared=no
8803 ;;
8804
8805 uts4*)
8806 lt_prog_compiler_pic='-pic'
8807 lt_prog_compiler_static='-Bstatic'
8808 ;;
8809
8810 *)
8811 lt_prog_compiler_can_build_shared=no
8812 ;;
8813 esac
8814 fi
8815
8816case $host_os in
8817 # For platforms which do not support PIC, -DPIC is meaningless:
8818 *djgpp*)
8819 lt_prog_compiler_pic=
8820 ;;
8821 *)
8822 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8823 ;;
8824esac
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8826$as_echo "$lt_prog_compiler_pic" >&6; }
8827
8828
8829
8830
8831
8832
8833#
8834# Check to make sure the PIC flag actually works.
8835#
8836if test -n "$lt_prog_compiler_pic"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8838$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
73b6d7a9 8839if ${lt_cv_prog_compiler_pic_works+:} false; then :
7a938933
ILT
8840 $as_echo_n "(cached) " >&6
8841else
8842 lt_cv_prog_compiler_pic_works=no
8843 ac_outfile=conftest.$ac_objext
8844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8845 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8846 # Insert the option either (1) after the last *FLAGS variable, or
8847 # (2) before a word containing "conftest.", or (3) at the end.
8848 # Note that $ac_compile itself does not contain backslashes and begins
8849 # with a dollar sign (not a hyphen), so the echo should work correctly.
8850 # The option is referenced via a variable to avoid confusing sed.
8851 lt_compile=`echo "$ac_compile" | $SED \
8852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854 -e 's:$: $lt_compiler_flag:'`
8855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8856 (eval "$lt_compile" 2>conftest.err)
8857 ac_status=$?
8858 cat conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 if (exit $ac_status) && test -s "$ac_outfile"; then
8861 # The compiler can only warn and ignore the option if not recognized
8862 # So say no if there are warnings other than the usual output.
8863 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8865 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8866 lt_cv_prog_compiler_pic_works=yes
8867 fi
8868 fi
8869 $RM conftest*
8870
8871fi
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8873$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8874
8875if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8876 case $lt_prog_compiler_pic in
8877 "" | " "*) ;;
8878 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8879 esac
8880else
8881 lt_prog_compiler_pic=
8882 lt_prog_compiler_can_build_shared=no
8883fi
8884
8885fi
8886
8887
8888
8889
8890
8891
8892#
8893# Check to make sure the static flag actually works.
8894#
8895wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8897$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
73b6d7a9 8898if ${lt_cv_prog_compiler_static_works+:} false; then :
7a938933
ILT
8899 $as_echo_n "(cached) " >&6
8900else
8901 lt_cv_prog_compiler_static_works=no
8902 save_LDFLAGS="$LDFLAGS"
8903 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8906 # The linker can only warn and ignore the option if not recognized
8907 # So say no if there are warnings
8908 if test -s conftest.err; then
8909 # Append any errors to the config.log.
8910 cat conftest.err 1>&5
8911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8913 if diff conftest.exp conftest.er2 >/dev/null; then
8914 lt_cv_prog_compiler_static_works=yes
8915 fi
8916 else
8917 lt_cv_prog_compiler_static_works=yes
8918 fi
8919 fi
8920 $RM -r conftest*
8921 LDFLAGS="$save_LDFLAGS"
8922
8923fi
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8925$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8926
8927if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8928 :
8929else
8930 lt_prog_compiler_static=
8931fi
8932
8933
8934
8935
8936
8937
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8940$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
73b6d7a9 8941if ${lt_cv_prog_compiler_c_o+:} false; then :
7a938933
ILT
8942 $as_echo_n "(cached) " >&6
8943else
8944 lt_cv_prog_compiler_c_o=no
8945 $RM -r conftest 2>/dev/null
8946 mkdir conftest
8947 cd conftest
8948 mkdir out
8949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8950
8951 lt_compiler_flag="-o out/conftest2.$ac_objext"
8952 # Insert the option either (1) after the last *FLAGS variable, or
8953 # (2) before a word containing "conftest.", or (3) at the end.
8954 # Note that $ac_compile itself does not contain backslashes and begins
8955 # with a dollar sign (not a hyphen), so the echo should work correctly.
8956 lt_compile=`echo "$ac_compile" | $SED \
8957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8959 -e 's:$: $lt_compiler_flag:'`
8960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8961 (eval "$lt_compile" 2>out/conftest.err)
8962 ac_status=$?
8963 cat out/conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8966 then
8967 # The compiler can only warn and ignore the option if not recognized
8968 # So say no if there are warnings
8969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8972 lt_cv_prog_compiler_c_o=yes
8973 fi
8974 fi
8975 chmod u+w . 2>&5
8976 $RM conftest*
8977 # SGI C++ compiler will create directory out/ii_files/ for
8978 # template instantiation
8979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8980 $RM out/* && rmdir out
8981 cd ..
8982 $RM -r conftest
8983 $RM conftest*
8984
8985fi
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8987$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8988
8989
8990
8991
8992
8993
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8995$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
73b6d7a9 8996if ${lt_cv_prog_compiler_c_o+:} false; then :
7a938933
ILT
8997 $as_echo_n "(cached) " >&6
8998else
8999 lt_cv_prog_compiler_c_o=no
9000 $RM -r conftest 2>/dev/null
9001 mkdir conftest
9002 cd conftest
9003 mkdir out
9004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005
9006 lt_compiler_flag="-o out/conftest2.$ac_objext"
9007 # Insert the option either (1) after the last *FLAGS variable, or
9008 # (2) before a word containing "conftest.", or (3) at the end.
9009 # Note that $ac_compile itself does not contain backslashes and begins
9010 # with a dollar sign (not a hyphen), so the echo should work correctly.
9011 lt_compile=`echo "$ac_compile" | $SED \
9012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014 -e 's:$: $lt_compiler_flag:'`
9015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016 (eval "$lt_compile" 2>out/conftest.err)
9017 ac_status=$?
9018 cat out/conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9021 then
9022 # The compiler can only warn and ignore the option if not recognized
9023 # So say no if there are warnings
9024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9027 lt_cv_prog_compiler_c_o=yes
9028 fi
9029 fi
9030 chmod u+w . 2>&5
9031 $RM conftest*
9032 # SGI C++ compiler will create directory out/ii_files/ for
9033 # template instantiation
9034 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9035 $RM out/* && rmdir out
9036 cd ..
9037 $RM -r conftest
9038 $RM conftest*
9039
9040fi
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9042$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9043
9044
9045
9046
9047hard_links="nottested"
9048if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9049 # do not overwrite the value of need_locks provided by the user
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9051$as_echo_n "checking if we can lock with hard links... " >&6; }
9052 hard_links=yes
9053 $RM conftest*
9054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9055 touch conftest.a
9056 ln conftest.a conftest.b 2>&5 || hard_links=no
9057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9059$as_echo "$hard_links" >&6; }
9060 if test "$hard_links" = no; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9062$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9063 need_locks=warn
9064 fi
9065else
9066 need_locks=no
9067fi
9068
9069
9070
9071
9072
9073
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9075$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9076
9077 runpath_var=
9078 allow_undefined_flag=
9079 always_export_symbols=no
9080 archive_cmds=
9081 archive_expsym_cmds=
9082 compiler_needs_object=no
9083 enable_shared_with_static_runtimes=no
9084 export_dynamic_flag_spec=
9085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9086 hardcode_automatic=no
9087 hardcode_direct=no
9088 hardcode_direct_absolute=no
9089 hardcode_libdir_flag_spec=
9090 hardcode_libdir_flag_spec_ld=
9091 hardcode_libdir_separator=
9092 hardcode_minus_L=no
9093 hardcode_shlibpath_var=unsupported
9094 inherit_rpath=no
9095 link_all_deplibs=unknown
9096 module_cmds=
9097 module_expsym_cmds=
9098 old_archive_from_new_cmds=
9099 old_archive_from_expsyms_cmds=
9100 thread_safe_flag_spec=
9101 whole_archive_flag_spec=
9102 # include_expsyms should be a list of space-separated symbols to be *always*
9103 # included in the symbol list
9104 include_expsyms=
9105 # exclude_expsyms can be an extended regexp of symbols to exclude
9106 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9107 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9108 # as well as any symbol that contains `d'.
9109 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9110 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9111 # platforms (ab)use it in PIC code, but their linkers get confused if
9112 # the symbol is explicitly referenced. Since portable code cannot
9113 # rely on this symbol name, it's probably fine to never include it in
9114 # preloaded symbol tables.
9115 # Exclude shared library initialization/finalization symbols.
9116 extract_expsyms_cmds=
9117
9118 case $host_os in
9119 cygwin* | mingw* | pw32* | cegcc*)
9120 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9121 # When not using gcc, we currently assume that we are using
9122 # Microsoft Visual C++.
9123 if test "$GCC" != yes; then
9124 with_gnu_ld=no
9125 fi
9126 ;;
9127 interix*)
9128 # we just hope/assume this is gcc and not c89 (= MSVC++)
9129 with_gnu_ld=yes
9130 ;;
9131 openbsd*)
9132 with_gnu_ld=no
9133 ;;
9134 esac
9135
9136 ld_shlibs=yes
9137
9138 # On some targets, GNU ld is compatible enough with the native linker
9139 # that we're better off using the native interface for both.
9140 lt_use_gnu_ld_interface=no
9141 if test "$with_gnu_ld" = yes; then
9142 case $host_os in
9143 aix*)
9144 # The AIX port of GNU ld has always aspired to compatibility
9145 # with the native linker. However, as the warning in the GNU ld
9146 # block says, versions before 2.19.5* couldn't really create working
9147 # shared libraries, regardless of the interface used.
9148 case `$LD -v 2>&1` in
9149 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9150 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9151 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9152 *)
9153 lt_use_gnu_ld_interface=yes
9154 ;;
9155 esac
9156 ;;
9157 *)
9158 lt_use_gnu_ld_interface=yes
9159 ;;
9160 esac
9161 fi
9162
9163 if test "$lt_use_gnu_ld_interface" = yes; then
9164 # If archive_cmds runs LD, not CC, wlarc should be empty
9165 wlarc='${wl}'
9166
9167 # Set some defaults for GNU ld with shared library support. These
9168 # are reset later if shared libraries are not supported. Putting them
9169 # here allows them to be overridden if necessary.
9170 runpath_var=LD_RUN_PATH
9171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9172 export_dynamic_flag_spec='${wl}--export-dynamic'
9173 # ancient GNU ld didn't support --whole-archive et. al.
9174 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9175 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9176 else
9177 whole_archive_flag_spec=
9178 fi
9179 supports_anon_versioning=no
9180 case `$LD -v 2>&1` in
9181 *GNU\ gold*) supports_anon_versioning=yes ;;
9182 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9183 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9184 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9185 *\ 2.11.*) ;; # other 2.11 versions
9186 *) supports_anon_versioning=yes ;;
9187 esac
9188
9189 # See if GNU ld supports shared libraries.
9190 case $host_os in
9191 aix[3-9]*)
9192 # On AIX/PPC, the GNU linker is very broken
9193 if test "$host_cpu" != ia64; then
9194 ld_shlibs=no
9195 cat <<_LT_EOF 1>&2
9196
9197*** Warning: the GNU linker, at least up to release 2.19, is reported
9198*** to be unable to reliably create shared libraries on AIX.
9199*** Therefore, libtool is disabling shared libraries support. If you
9200*** really care for shared libraries, you may want to install binutils
9201*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9202*** You will then need to restart the configuration process.
9203
9204_LT_EOF
9205 fi
9206 ;;
9207
9208 amigaos*)
9209 case $host_cpu in
9210 powerpc)
9211 # see comment about AmigaOS4 .so support
9212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213 archive_expsym_cmds=''
9214 ;;
9215 m68k)
9216 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)'
9217 hardcode_libdir_flag_spec='-L$libdir'
9218 hardcode_minus_L=yes
9219 ;;
9220 esac
9221 ;;
9222
9223 beos*)
9224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9225 allow_undefined_flag=unsupported
9226 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9227 # support --undefined. This deserves some investigation. FIXME
9228 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9229 else
9230 ld_shlibs=no
9231 fi
9232 ;;
9233
9234 cygwin* | mingw* | pw32* | cegcc*)
9235 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9236 # as there is no search path for DLLs.
9237 hardcode_libdir_flag_spec='-L$libdir'
9238 export_dynamic_flag_spec='${wl}--export-all-symbols'
9239 allow_undefined_flag=unsupported
9240 always_export_symbols=no
9241 enable_shared_with_static_runtimes=yes
9242 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9243
9244 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9246 # If the export-symbols file already is a .def file (1st line
9247 # is EXPORTS), use it as is; otherwise, prepend...
9248 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9249 cp $export_symbols $output_objdir/$soname.def;
9250 else
9251 echo EXPORTS > $output_objdir/$soname.def;
9252 cat $export_symbols >> $output_objdir/$soname.def;
9253 fi~
9254 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9255 else
9256 ld_shlibs=no
9257 fi
9258 ;;
9259
9260 haiku*)
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262 link_all_deplibs=yes
9263 ;;
9264
9265 interix[3-9]*)
9266 hardcode_direct=no
9267 hardcode_shlibpath_var=no
9268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9269 export_dynamic_flag_spec='${wl}-E'
9270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9271 # Instead, shared libraries are loaded at an image base (0x10000000 by
9272 # default) and relocated if they conflict, which is a slow very memory
9273 # consuming and fragmenting process. To avoid this, we pick a random,
9274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9275 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9277 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'
9278 ;;
9279
9280 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9281 tmp_diet=no
9282 if test "$host_os" = linux-dietlibc; then
9283 case $cc_basename in
9284 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9285 esac
9286 fi
9287 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9288 && test "$tmp_diet" = no
9289 then
9290 tmp_addflag=
9291 tmp_sharedflag='-shared'
9292 case $cc_basename,$host_cpu in
9293 pgcc*) # Portland Group C compiler
9294 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'
9295 tmp_addflag=' $pic_flag'
9296 ;;
9297 pgf77* | pgf90* | pgf95* | pgfortran*)
9298 # Portland Group f77 and f90 compilers
9299 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'
9300 tmp_addflag=' $pic_flag -Mnomain' ;;
9301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9302 tmp_addflag=' -i_dynamic' ;;
9303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9304 tmp_addflag=' -i_dynamic -nofor_main' ;;
9305 ifc* | ifort*) # Intel Fortran compiler
9306 tmp_addflag=' -nofor_main' ;;
9307 lf95*) # Lahey Fortran 8.1
9308 whole_archive_flag_spec=
9309 tmp_sharedflag='--shared' ;;
9310 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9311 tmp_sharedflag='-qmkshrobj'
9312 tmp_addflag= ;;
9313 nvcc*) # Cuda Compiler Driver 2.2
9314 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'
9315 compiler_needs_object=yes
9316 ;;
9317 esac
9318 case `$CC -V 2>&1 | sed 5q` in
9319 *Sun\ C*) # Sun C 5.9
9320 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'
9321 compiler_needs_object=yes
9322 tmp_sharedflag='-G' ;;
9323 *Sun\ F*) # Sun Fortran 8.3
9324 tmp_sharedflag='-G' ;;
9325 esac
9326 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327
9328 if test "x$supports_anon_versioning" = xyes; then
9329 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9330 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9331 echo "local: *; };" >> $output_objdir/$libname.ver~
9332 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9333 fi
9334
9335 case $cc_basename in
9336 xlf* | bgf* | bgxlf* | mpixlf*)
9337 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9338 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9339 hardcode_libdir_flag_spec=
9340 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9341 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9342 if test "x$supports_anon_versioning" = xyes; then
9343 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9344 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9345 echo "local: *; };" >> $output_objdir/$libname.ver~
9346 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9347 fi
9348 ;;
9349 esac
9350 else
9351 ld_shlibs=no
9352 fi
9353 ;;
9354
9355 netbsd*)
9356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9357 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9358 wlarc=
9359 else
9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9362 fi
9363 ;;
9364
9365 solaris*)
9366 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9367 ld_shlibs=no
9368 cat <<_LT_EOF 1>&2
9369
9370*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9371*** create shared libraries on Solaris systems. Therefore, libtool
9372*** is disabling shared libraries support. We urge you to upgrade GNU
9373*** binutils to release 2.9.1 or newer. Another option is to modify
9374*** your PATH or compiler configuration so that the native linker is
9375*** used, and then restart.
9376
9377_LT_EOF
9378 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9381 else
9382 ld_shlibs=no
9383 fi
9384 ;;
9385
9386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9387 case `$LD -v 2>&1` in
9388 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9389 ld_shlibs=no
9390 cat <<_LT_EOF 1>&2
9391
9392*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9393*** reliably create shared libraries on SCO systems. Therefore, libtool
9394*** is disabling shared libraries support. We urge you to upgrade GNU
9395*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9396*** your PATH or compiler configuration so that the native linker is
9397*** used, and then restart.
9398
9399_LT_EOF
9400 ;;
9401 *)
9402 # For security reasons, it is highly recommended that you always
9403 # use absolute paths for naming shared libraries, and exclude the
9404 # DT_RUNPATH tag from executables and libraries. But doing so
9405 # requires that you compile everything twice, which is a pain.
9406 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9410 else
9411 ld_shlibs=no
9412 fi
9413 ;;
9414 esac
9415 ;;
9416
9417 sunos4*)
9418 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9419 wlarc=
9420 hardcode_direct=yes
9421 hardcode_shlibpath_var=no
9422 ;;
9423
9424 *)
9425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9428 else
9429 ld_shlibs=no
9430 fi
9431 ;;
9432 esac
9433
9434 if test "$ld_shlibs" = no; then
9435 runpath_var=
9436 hardcode_libdir_flag_spec=
9437 export_dynamic_flag_spec=
9438 whole_archive_flag_spec=
9439 fi
9440 else
9441 # PORTME fill in a description of your system's linker (not GNU ld)
9442 case $host_os in
9443 aix3*)
9444 allow_undefined_flag=unsupported
9445 always_export_symbols=yes
9446 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'
9447 # Note: this linker hardcodes the directories in LIBPATH if there
9448 # are no directories specified by -L.
9449 hardcode_minus_L=yes
9450 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9451 # Neither direct hardcoding nor static linking is supported with a
9452 # broken collect2.
9453 hardcode_direct=unsupported
9454 fi
9455 ;;
9456
9457 aix[4-9]*)
9458 if test "$host_cpu" = ia64; then
9459 # On IA64, the linker does run time linking by default, so we don't
9460 # have to do anything special.
9461 aix_use_runtimelinking=no
9462 exp_sym_flag='-Bexport'
9463 no_entry_flag=""
9464 else
9465 # If we're using GNU nm, then we don't want the "-C" option.
9466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9467 # Also, AIX nm treats weak defined symbols like other global
9468 # defined symbols, whereas GNU nm marks them as "W".
9469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9470 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'
9471 else
9472 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'
9473 fi
9474 aix_use_runtimelinking=no
9475
9476 # Test if we are trying to use run time linking or normal
9477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9478 # need to do runtime linking.
9479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9480 for ld_flag in $LDFLAGS; do
9481 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9482 aix_use_runtimelinking=yes
9483 break
9484 fi
9485 done
9486 ;;
9487 esac
9488
9489 exp_sym_flag='-bexport'
9490 no_entry_flag='-bnoentry'
9491 fi
9492
9493 # When large executables or shared objects are built, AIX ld can
9494 # have problems creating the table of contents. If linking a library
9495 # or program results in "error TOC overflow" add -mminimal-toc to
9496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9498
9499 archive_cmds=''
9500 hardcode_direct=yes
9501 hardcode_direct_absolute=yes
9502 hardcode_libdir_separator=':'
9503 link_all_deplibs=yes
9504 file_list_spec='${wl}-f,'
9505
9506 if test "$GCC" = yes; then
9507 case $host_os in aix4.[012]|aix4.[012].*)
9508 # We only want to do this on AIX 4.2 and lower, the check
9509 # below for broken collect2 doesn't work under 4.3+
9510 collect2name=`${CC} -print-prog-name=collect2`
9511 if test -f "$collect2name" &&
9512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9513 then
9514 # We have reworked collect2
9515 :
9516 else
9517 # We have old collect2
9518 hardcode_direct=unsupported
9519 # It fails to find uninstalled libraries when the uninstalled
9520 # path is not listed in the libpath. Setting hardcode_minus_L
9521 # to unsupported forces relinking
9522 hardcode_minus_L=yes
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_libdir_separator=
9525 fi
9526 ;;
9527 esac
9528 shared_flag='-shared'
9529 if test "$aix_use_runtimelinking" = yes; then
9530 shared_flag="$shared_flag "'${wl}-G'
9531 fi
9532 else
9533 # not using gcc
9534 if test "$host_cpu" = ia64; then
9535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9536 # chokes on -Wl,-G. The following line is correct:
9537 shared_flag='-G'
9538 else
9539 if test "$aix_use_runtimelinking" = yes; then
9540 shared_flag='${wl}-G'
9541 else
9542 shared_flag='${wl}-bM:SRE'
9543 fi
9544 fi
9545 fi
9546
9547 export_dynamic_flag_spec='${wl}-bexpall'
9548 # It seems that -bexpall does not export symbols beginning with
9549 # underscore (_), so it is better to generate a list of symbols to export.
9550 always_export_symbols=yes
9551 if test "$aix_use_runtimelinking" = yes; then
9552 # Warning - without using the other runtime loading flags (-brtl),
9553 # -berok will link without error, but may produce a broken library.
9554 allow_undefined_flag='-berok'
9555 # Determine the default libpath from the value encoded in an
9556 # empty executable.
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h. */
9559
9560int
9561main ()
9562{
9563
9564 ;
9565 return 0;
9566}
9567_ACEOF
9568if ac_fn_c_try_link "$LINENO"; then :
9569
9570lt_aix_libpath_sed='
9571 /Import File Strings/,/^$/ {
9572 /^0/ {
9573 s/^0 *\(.*\)$/\1/
9574 p
9575 }
9576 }'
9577aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578# Check for a 64-bit object if we didn't find anything.
9579if test -z "$aix_libpath"; then
9580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9581fi
9582fi
9583rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9586
9587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9588 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"
9589 else
9590 if test "$host_cpu" = ia64; then
9591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9592 allow_undefined_flag="-z nodefs"
9593 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"
9594 else
9595 # Determine the default libpath from the value encoded in an
9596 # empty executable.
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598/* end confdefs.h. */
9599
9600int
9601main ()
9602{
9603
9604 ;
9605 return 0;
9606}
9607_ACEOF
9608if ac_fn_c_try_link "$LINENO"; then :
9609
9610lt_aix_libpath_sed='
9611 /Import File Strings/,/^$/ {
9612 /^0/ {
9613 s/^0 *\(.*\)$/\1/
9614 p
9615 }
9616 }'
9617aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618# Check for a 64-bit object if we didn't find anything.
9619if test -z "$aix_libpath"; then
9620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621fi
9622fi
9623rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9626
9627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9628 # Warning - without using the other run time loading flags,
9629 # -berok will link without error, but may produce a broken library.
9630 no_undefined_flag=' ${wl}-bernotok'
9631 allow_undefined_flag=' ${wl}-berok'
9632 if test "$with_gnu_ld" = yes; then
9633 # We only use this code for GNU lds that support --whole-archive.
9634 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9635 else
9636 # Exported symbols can be pulled into shared objects from archives
9637 whole_archive_flag_spec='$convenience'
9638 fi
9639 archive_cmds_need_lc=yes
9640 # This is similar to how AIX traditionally builds its shared libraries.
9641 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'
9642 fi
9643 fi
9644 ;;
9645
9646 amigaos*)
9647 case $host_cpu in
9648 powerpc)
9649 # see comment about AmigaOS4 .so support
9650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651 archive_expsym_cmds=''
9652 ;;
9653 m68k)
9654 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)'
9655 hardcode_libdir_flag_spec='-L$libdir'
9656 hardcode_minus_L=yes
9657 ;;
9658 esac
9659 ;;
9660
9661 bsdi[45]*)
9662 export_dynamic_flag_spec=-rdynamic
9663 ;;
9664
9665 cygwin* | mingw* | pw32* | cegcc*)
9666 # When not using gcc, we currently assume that we are using
9667 # Microsoft Visual C++.
9668 # hardcode_libdir_flag_spec is actually meaningless, as there is
9669 # no search path for DLLs.
9670 hardcode_libdir_flag_spec=' '
9671 allow_undefined_flag=unsupported
9672 # Tell ltmain to make .lib files, not .a files.
9673 libext=lib
9674 # Tell ltmain to make .dll files, not .so files.
9675 shrext_cmds=".dll"
9676 # FIXME: Setting linknames here is a bad hack.
9677 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9678 # The linker will automatically build a .lib file if we build a DLL.
9679 old_archive_from_new_cmds='true'
9680 # FIXME: Should let the user specify the lib program.
9681 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9682 fix_srcfile_path='`cygpath -w "$srcfile"`'
9683 enable_shared_with_static_runtimes=yes
9684 ;;
9685
9686 darwin* | rhapsody*)
9687
9688
9689 archive_cmds_need_lc=no
9690 hardcode_direct=no
9691 hardcode_automatic=yes
9692 hardcode_shlibpath_var=unsupported
9693 if test "$lt_cv_ld_force_load" = "yes"; then
9694 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\"`'
9695 else
9696 whole_archive_flag_spec=''
9697 fi
9698 link_all_deplibs=yes
9699 allow_undefined_flag="$_lt_dar_allow_undefined"
9700 case $cc_basename in
9701 ifort*) _lt_dar_can_shared=yes ;;
9702 *) _lt_dar_can_shared=$GCC ;;
9703 esac
9704 if test "$_lt_dar_can_shared" = "yes"; then
9705 output_verbose_link_cmd=func_echo_all
9706 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9707 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9708 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}"
9709 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}"
9710
9711 else
9712 ld_shlibs=no
9713 fi
9714
9715 ;;
9716
9717 dgux*)
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_shlibpath_var=no
9721 ;;
9722
7a938933
ILT
9723 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9724 # support. Future versions do this automatically, but an explicit c++rt0.o
9725 # does not break anything, and helps significantly (at the cost of a little
9726 # extra space).
9727 freebsd2.2*)
9728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9729 hardcode_libdir_flag_spec='-R$libdir'
9730 hardcode_direct=yes
9731 hardcode_shlibpath_var=no
9732 ;;
9733
9734 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 9735 freebsd2.*)
7a938933
ILT
9736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_direct=yes
9738 hardcode_minus_L=yes
9739 hardcode_shlibpath_var=no
9740 ;;
9741
9742 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9743 freebsd* | dragonfly*)
9744 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9745 hardcode_libdir_flag_spec='-R$libdir'
9746 hardcode_direct=yes
9747 hardcode_shlibpath_var=no
9748 ;;
9749
9750 hpux9*)
9751 if test "$GCC" = yes; then
9752 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'
9753 else
9754 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'
9755 fi
9756 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9757 hardcode_libdir_separator=:
9758 hardcode_direct=yes
9759
9760 # hardcode_minus_L: Not really in the search PATH,
9761 # but as the default location of the library.
9762 hardcode_minus_L=yes
9763 export_dynamic_flag_spec='${wl}-E'
9764 ;;
9765
9766 hpux10*)
9767 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9768 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9769 else
9770 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9771 fi
9772 if test "$with_gnu_ld" = no; then
9773 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9774 hardcode_libdir_flag_spec_ld='+b $libdir'
9775 hardcode_libdir_separator=:
9776 hardcode_direct=yes
9777 hardcode_direct_absolute=yes
9778 export_dynamic_flag_spec='${wl}-E'
9779 # hardcode_minus_L: Not really in the search PATH,
9780 # but as the default location of the library.
9781 hardcode_minus_L=yes
9782 fi
9783 ;;
9784
9785 hpux11*)
9786 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9787 case $host_cpu in
9788 hppa*64*)
9789 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9790 ;;
9791 ia64*)
9792 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9793 ;;
9794 *)
9795 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9796 ;;
9797 esac
9798 else
9799 case $host_cpu in
9800 hppa*64*)
9801 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 ;;
9803 ia64*)
9804 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9805 ;;
9806 *)
9807
9808 # Older versions of the 11.00 compiler do not understand -b yet
9809 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9811$as_echo_n "checking if $CC understands -b... " >&6; }
73b6d7a9 9812if ${lt_cv_prog_compiler__b+:} false; then :
7a938933
ILT
9813 $as_echo_n "(cached) " >&6
9814else
9815 lt_cv_prog_compiler__b=no
9816 save_LDFLAGS="$LDFLAGS"
9817 LDFLAGS="$LDFLAGS -b"
9818 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9820 # The linker can only warn and ignore the option if not recognized
9821 # So say no if there are warnings
9822 if test -s conftest.err; then
9823 # Append any errors to the config.log.
9824 cat conftest.err 1>&5
9825 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9827 if diff conftest.exp conftest.er2 >/dev/null; then
9828 lt_cv_prog_compiler__b=yes
9829 fi
9830 else
9831 lt_cv_prog_compiler__b=yes
9832 fi
9833 fi
9834 $RM -r conftest*
9835 LDFLAGS="$save_LDFLAGS"
9836
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9839$as_echo "$lt_cv_prog_compiler__b" >&6; }
9840
9841if test x"$lt_cv_prog_compiler__b" = xyes; then
9842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9843else
9844 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9845fi
9846
9847 ;;
9848 esac
9849 fi
9850 if test "$with_gnu_ld" = no; then
9851 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9852 hardcode_libdir_separator=:
9853
9854 case $host_cpu in
9855 hppa*64*|ia64*)
9856 hardcode_direct=no
9857 hardcode_shlibpath_var=no
9858 ;;
9859 *)
9860 hardcode_direct=yes
9861 hardcode_direct_absolute=yes
9862 export_dynamic_flag_spec='${wl}-E'
9863
9864 # hardcode_minus_L: Not really in the search PATH,
9865 # but as the default location of the library.
9866 hardcode_minus_L=yes
9867 ;;
9868 esac
9869 fi
9870 ;;
9871
9872 irix5* | irix6* | nonstopux*)
9873 if test "$GCC" = yes; then
9874 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'
9875 # Try to use the -exported_symbol ld option, if it does not
9876 # work, assume that -exports_file does not work either and
9877 # implicitly export all symbols.
9878 save_LDFLAGS="$LDFLAGS"
9879 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881/* end confdefs.h. */
9882int foo(void) {}
9883_ACEOF
9884if ac_fn_c_try_link "$LINENO"; then :
9885 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'
9886
9887fi
9888rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 LDFLAGS="$save_LDFLAGS"
9891 else
9892 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'
9893 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'
9894 fi
9895 archive_cmds_need_lc='no'
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator=:
9898 inherit_rpath=yes
9899 link_all_deplibs=yes
9900 ;;
9901
9902 netbsd*)
9903 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9905 else
9906 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9907 fi
9908 hardcode_libdir_flag_spec='-R$libdir'
9909 hardcode_direct=yes
9910 hardcode_shlibpath_var=no
9911 ;;
9912
9913 newsos6)
9914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915 hardcode_direct=yes
9916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9917 hardcode_libdir_separator=:
9918 hardcode_shlibpath_var=no
9919 ;;
9920
9921 *nto* | *qnx*)
9922 ;;
9923
9924 openbsd*)
9925 if test -f /usr/libexec/ld.so; then
9926 hardcode_direct=yes
9927 hardcode_shlibpath_var=no
9928 hardcode_direct_absolute=yes
9929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9932 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9933 export_dynamic_flag_spec='${wl}-E'
9934 else
9935 case $host_os in
9936 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9937 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9938 hardcode_libdir_flag_spec='-R$libdir'
9939 ;;
9940 *)
9941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9942 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9943 ;;
9944 esac
9945 fi
9946 else
9947 ld_shlibs=no
9948 fi
9949 ;;
9950
9951 os2*)
9952 hardcode_libdir_flag_spec='-L$libdir'
9953 hardcode_minus_L=yes
9954 allow_undefined_flag=unsupported
9955 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'
9956 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9957 ;;
9958
9959 osf3*)
9960 if test "$GCC" = yes; then
9961 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9962 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'
9963 else
9964 allow_undefined_flag=' -expect_unresolved \*'
9965 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'
9966 fi
9967 archive_cmds_need_lc='no'
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 hardcode_libdir_separator=:
9970 ;;
9971
9972 osf4* | osf5*) # as osf3* with the addition of -msym flag
9973 if test "$GCC" = yes; then
9974 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9975 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'
9976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9977 else
9978 allow_undefined_flag=' -expect_unresolved \*'
9979 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'
9980 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~
9981 $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'
9982
9983 # Both c and cxx compiler support -rpath directly
9984 hardcode_libdir_flag_spec='-rpath $libdir'
9985 fi
9986 archive_cmds_need_lc='no'
9987 hardcode_libdir_separator=:
9988 ;;
9989
9990 solaris*)
9991 no_undefined_flag=' -z defs'
9992 if test "$GCC" = yes; then
9993 wlarc='${wl}'
9994 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9996 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9997 else
9998 case `$CC -V 2>&1` in
9999 *"Compilers 5.0"*)
10000 wlarc=''
10001 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10003 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10004 ;;
10005 *)
10006 wlarc='${wl}'
10007 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10009 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10010 ;;
10011 esac
10012 fi
10013 hardcode_libdir_flag_spec='-R$libdir'
10014 hardcode_shlibpath_var=no
10015 case $host_os in
10016 solaris2.[0-5] | solaris2.[0-5].*) ;;
10017 *)
10018 # The compiler driver will combine and reorder linker options,
10019 # but understands `-z linker_flag'. GCC discards it without `$wl',
10020 # but is careful enough not to reorder.
10021 # Supported since Solaris 2.6 (maybe 2.5.1?)
10022 if test "$GCC" = yes; then
10023 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10024 else
10025 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10026 fi
10027 ;;
10028 esac
10029 link_all_deplibs=yes
10030 ;;
10031
10032 sunos4*)
10033 if test "x$host_vendor" = xsequent; then
10034 # Use $CC to link under sequent, because it throws in some extra .o
10035 # files that make .init and .fini sections work.
10036 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10037 else
10038 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10039 fi
10040 hardcode_libdir_flag_spec='-L$libdir'
10041 hardcode_direct=yes
10042 hardcode_minus_L=yes
10043 hardcode_shlibpath_var=no
10044 ;;
10045
10046 sysv4)
10047 case $host_vendor in
10048 sni)
10049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_direct=yes # is this really true???
10051 ;;
10052 siemens)
10053 ## LD is ld it makes a PLAMLIB
10054 ## CC just makes a GrossModule.
10055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10056 reload_cmds='$CC -r -o $output$reload_objs'
10057 hardcode_direct=no
10058 ;;
10059 motorola)
10060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10062 ;;
10063 esac
10064 runpath_var='LD_RUN_PATH'
10065 hardcode_shlibpath_var=no
10066 ;;
10067
10068 sysv4.3*)
10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_shlibpath_var=no
10071 export_dynamic_flag_spec='-Bexport'
10072 ;;
10073
10074 sysv4*MP*)
10075 if test -d /usr/nec; then
10076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10077 hardcode_shlibpath_var=no
10078 runpath_var=LD_RUN_PATH
10079 hardcode_runpath_var=yes
10080 ld_shlibs=yes
10081 fi
10082 ;;
10083
10084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10085 no_undefined_flag='${wl}-z,text'
10086 archive_cmds_need_lc=no
10087 hardcode_shlibpath_var=no
10088 runpath_var='LD_RUN_PATH'
10089
10090 if test "$GCC" = yes; then
10091 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 else
10094 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 fi
10097 ;;
10098
10099 sysv5* | sco3.2v5* | sco5v6*)
10100 # Note: We can NOT use -z defs as we might desire, because we do not
10101 # link with -lc, and that would cause any symbols used from libc to
10102 # always be unresolved, which means just about no library would
10103 # ever link correctly. If we're not using GNU ld we use -z text
10104 # though, which does catch some bad symbols but isn't as heavy-handed
10105 # as -z defs.
10106 no_undefined_flag='${wl}-z,text'
10107 allow_undefined_flag='${wl}-z,nodefs'
10108 archive_cmds_need_lc=no
10109 hardcode_shlibpath_var=no
10110 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10111 hardcode_libdir_separator=':'
10112 link_all_deplibs=yes
10113 export_dynamic_flag_spec='${wl}-Bexport'
10114 runpath_var='LD_RUN_PATH'
10115
10116 if test "$GCC" = yes; then
10117 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 else
10120 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 fi
10123 ;;
10124
10125 uts4*)
10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 hardcode_shlibpath_var=no
10129 ;;
10130
10131 *)
10132 ld_shlibs=no
10133 ;;
10134 esac
10135
10136 if test x$host_vendor = xsni; then
10137 case $host in
10138 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10139 export_dynamic_flag_spec='${wl}-Blargedynsym'
10140 ;;
10141 esac
10142 fi
10143 fi
10144
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10146$as_echo "$ld_shlibs" >&6; }
10147test "$ld_shlibs" = no && can_build_shared=no
10148
10149with_gnu_ld=$with_gnu_ld
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165#
10166# Do we need to explicitly link libc?
10167#
10168case "x$archive_cmds_need_lc" in
10169x|xyes)
10170 # Assume -lc should be added
10171 archive_cmds_need_lc=yes
10172
10173 if test "$enable_shared" = yes && test "$GCC" = yes; then
10174 case $archive_cmds in
10175 *'~'*)
10176 # FIXME: we may have to deal with multi-command sequences.
10177 ;;
10178 '$CC '*)
10179 # Test whether the compiler implicitly links with -lc since on some
10180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10181 # to ld, don't add -lc before -lgcc.
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10183$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
73b6d7a9 10184if ${lt_cv_archive_cmds_need_lc+:} false; then :
7a938933
ILT
10185 $as_echo_n "(cached) " >&6
10186else
10187 $RM conftest*
10188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10189
10190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10191 (eval $ac_compile) 2>&5
10192 ac_status=$?
10193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10194 test $ac_status = 0; } 2>conftest.err; then
10195 soname=conftest
10196 lib=conftest
10197 libobjs=conftest.$ac_objext
10198 deplibs=
10199 wl=$lt_prog_compiler_wl
10200 pic_flag=$lt_prog_compiler_pic
10201 compiler_flags=-v
10202 linker_flags=-v
10203 verstring=
10204 output_objdir=.
10205 libname=conftest
10206 lt_save_allow_undefined_flag=$allow_undefined_flag
10207 allow_undefined_flag=
10208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10209 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10210 ac_status=$?
10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212 test $ac_status = 0; }
10213 then
10214 lt_cv_archive_cmds_need_lc=no
10215 else
10216 lt_cv_archive_cmds_need_lc=yes
10217 fi
10218 allow_undefined_flag=$lt_save_allow_undefined_flag
10219 else
10220 cat conftest.err 1>&5
10221 fi
10222 $RM conftest*
10223
10224fi
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10226$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10227 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10228 ;;
10229 esac
10230 fi
10231 ;;
10232esac
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
10384
10385
10386
10387
10388
10389
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10391$as_echo_n "checking dynamic linker characteristics... " >&6; }
10392
10393if test "$GCC" = yes; then
10394 case $host_os in
10395 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10396 *) lt_awk_arg="/^libraries:/" ;;
10397 esac
10398 case $host_os in
10399 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10400 *) lt_sed_strip_eq="s,=/,/,g" ;;
10401 esac
10402 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10403 case $lt_search_path_spec in
10404 *\;*)
10405 # if the path contains ";" then we assume it to be the separator
10406 # otherwise default to the standard path separator (i.e. ":") - it is
10407 # assumed that no part of a normal pathname contains ";" but that should
10408 # okay in the real world where ";" in dirpaths is itself problematic.
10409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10410 ;;
10411 *)
10412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10413 ;;
10414 esac
10415 # Ok, now we have the path, separated by spaces, we can step through it
10416 # and add multilib dir if necessary.
10417 lt_tmp_lt_search_path_spec=
10418 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10419 for lt_sys_path in $lt_search_path_spec; do
10420 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10421 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10422 else
10423 test -d "$lt_sys_path" && \
10424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10425 fi
10426 done
10427 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10428BEGIN {RS=" "; FS="/|\n";} {
10429 lt_foo="";
10430 lt_count=0;
10431 for (lt_i = NF; lt_i > 0; lt_i--) {
10432 if ($lt_i != "" && $lt_i != ".") {
10433 if ($lt_i == "..") {
10434 lt_count++;
10435 } else {
10436 if (lt_count == 0) {
10437 lt_foo="/" $lt_i lt_foo;
10438 } else {
10439 lt_count--;
10440 }
10441 }
10442 }
10443 }
10444 if (lt_foo != "") { lt_freq[lt_foo]++; }
10445 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10446}'`
10447 # AWK program above erroneously prepends '/' to C:/dos/paths
10448 # for these hosts.
10449 case $host_os in
10450 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10451 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10452 esac
10453 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10454else
10455 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10456fi
10457library_names_spec=
10458libname_spec='lib$name'
10459soname_spec=
10460shrext_cmds=".so"
10461postinstall_cmds=
10462postuninstall_cmds=
10463finish_cmds=
10464finish_eval=
10465shlibpath_var=
10466shlibpath_overrides_runpath=unknown
10467version_type=none
10468dynamic_linker="$host_os ld.so"
10469sys_lib_dlsearch_path_spec="/lib /usr/lib"
10470need_lib_prefix=unknown
10471hardcode_into_libs=no
10472
10473# when you set need_version to no, make sure it does not cause -set_version
10474# flags to be left without arguments
10475need_version=unknown
10476
10477case $host_os in
10478aix3*)
10479 version_type=linux
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10481 shlibpath_var=LIBPATH
10482
10483 # AIX 3 has no versioning support, so we append a major version to the name.
10484 soname_spec='${libname}${release}${shared_ext}$major'
10485 ;;
10486
10487aix[4-9]*)
10488 version_type=linux
10489 need_lib_prefix=no
10490 need_version=no
10491 hardcode_into_libs=yes
10492 if test "$host_cpu" = ia64; then
10493 # AIX 5 supports IA64
10494 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 else
10497 # With GCC up to 2.95.x, collect2 would create an import file
10498 # for dependence libraries. The import file would start with
10499 # the line `#! .'. This would cause the generated library to
10500 # depend on `.', always an invalid library. This was fixed in
10501 # development snapshots of GCC prior to 3.0.
10502 case $host_os in
10503 aix4 | aix4.[01] | aix4.[01].*)
10504 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10505 echo ' yes '
10506 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10507 :
10508 else
10509 can_build_shared=no
10510 fi
10511 ;;
10512 esac
10513 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10514 # soname into executable. Probably we can add versioning support to
10515 # collect2, so additional links can be useful in future.
10516 if test "$aix_use_runtimelinking" = yes; then
10517 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10518 # instead of lib<name>.a to let people know that these are not
10519 # typical AIX shared libraries.
10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10521 else
10522 # We preserve .a as extension for shared libraries through AIX4.2
10523 # and later when we are not doing run time linking.
10524 library_names_spec='${libname}${release}.a $libname.a'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 fi
10527 shlibpath_var=LIBPATH
10528 fi
10529 ;;
10530
10531amigaos*)
10532 case $host_cpu in
10533 powerpc)
10534 # Since July 2007 AmigaOS4 officially supports .so libraries.
10535 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537 ;;
10538 m68k)
10539 library_names_spec='$libname.ixlibrary $libname.a'
10540 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10541 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'
10542 ;;
10543 esac
10544 ;;
10545
10546beos*)
10547 library_names_spec='${libname}${shared_ext}'
10548 dynamic_linker="$host_os ld.so"
10549 shlibpath_var=LIBRARY_PATH
10550 ;;
10551
10552bsdi[45]*)
10553 version_type=linux
10554 need_version=no
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10561 # the default ld.so.conf also contains /usr/contrib/lib and
10562 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10563 # libtool to hard-code these into programs
10564 ;;
10565
10566cygwin* | mingw* | pw32* | cegcc*)
10567 version_type=windows
10568 shrext_cmds=".dll"
10569 need_version=no
10570 need_lib_prefix=no
10571
10572 case $GCC,$host_os in
10573 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10574 library_names_spec='$libname.dll.a'
10575 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10576 postinstall_cmds='base_file=`basename \${file}`~
10577 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10578 dldir=$destdir/`dirname \$dlpath`~
10579 test -d \$dldir || mkdir -p \$dldir~
10580 $install_prog $dir/$dlname \$dldir/$dlname~
10581 chmod a+x \$dldir/$dlname~
10582 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10583 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10584 fi'
10585 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10586 dlpath=$dir/\$dldll~
10587 $RM \$dlpath'
10588 shlibpath_overrides_runpath=yes
10589
10590 case $host_os in
10591 cygwin*)
10592 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10593 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10594
10595 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10596 ;;
10597 mingw* | cegcc*)
10598 # MinGW DLLs use traditional 'lib' prefix
10599 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10600 ;;
10601 pw32*)
10602 # pw32 DLLs use 'pw' prefix rather than 'lib'
10603 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10604 ;;
10605 esac
10606 ;;
10607
10608 *)
10609 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10610 ;;
10611 esac
10612 dynamic_linker='Win32 ld.exe'
10613 # FIXME: first we should search . and the directory the executable is in
10614 shlibpath_var=PATH
10615 ;;
10616
10617darwin* | rhapsody*)
10618 dynamic_linker="$host_os dyld"
10619 version_type=darwin
10620 need_lib_prefix=no
10621 need_version=no
10622 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10623 soname_spec='${libname}${release}${major}$shared_ext'
10624 shlibpath_overrides_runpath=yes
10625 shlibpath_var=DYLD_LIBRARY_PATH
10626 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10627
10628 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10629 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10630 ;;
10631
10632dgux*)
10633 version_type=linux
10634 need_lib_prefix=no
10635 need_version=no
10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10637 soname_spec='${libname}${release}${shared_ext}$major'
10638 shlibpath_var=LD_LIBRARY_PATH
10639 ;;
10640
7a938933
ILT
10641freebsd* | dragonfly*)
10642 # DragonFly does not have aout. When/if they implement a new
10643 # versioning mechanism, adjust this.
10644 if test -x /usr/bin/objformat; then
10645 objformat=`/usr/bin/objformat`
10646 else
10647 case $host_os in
327a26a3 10648 freebsd[23].*) objformat=aout ;;
7a938933
ILT
10649 *) objformat=elf ;;
10650 esac
10651 fi
10652 version_type=freebsd-$objformat
10653 case $version_type in
10654 freebsd-elf*)
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10656 need_version=no
10657 need_lib_prefix=no
10658 ;;
10659 freebsd-*)
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10661 need_version=yes
10662 ;;
10663 esac
10664 shlibpath_var=LD_LIBRARY_PATH
10665 case $host_os in
327a26a3 10666 freebsd2.*)
7a938933
ILT
10667 shlibpath_overrides_runpath=yes
10668 ;;
10669 freebsd3.[01]* | freebsdelf3.[01]*)
10670 shlibpath_overrides_runpath=yes
10671 hardcode_into_libs=yes
10672 ;;
10673 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10674 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10675 shlibpath_overrides_runpath=no
10676 hardcode_into_libs=yes
10677 ;;
10678 *) # from 4.6 on, and DragonFly
10679 shlibpath_overrides_runpath=yes
10680 hardcode_into_libs=yes
10681 ;;
10682 esac
10683 ;;
10684
10685gnu*)
10686 version_type=linux
10687 need_lib_prefix=no
10688 need_version=no
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 hardcode_into_libs=yes
10693 ;;
10694
10695haiku*)
10696 version_type=linux
10697 need_lib_prefix=no
10698 need_version=no
10699 dynamic_linker="$host_os runtime_loader"
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 shlibpath_var=LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes
10704 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10705 hardcode_into_libs=yes
10706 ;;
10707
10708hpux9* | hpux10* | hpux11*)
10709 # Give a soname corresponding to the major version so that dld.sl refuses to
10710 # link against other versions.
10711 version_type=sunos
10712 need_lib_prefix=no
10713 need_version=no
10714 case $host_cpu in
10715 ia64*)
10716 shrext_cmds='.so'
10717 hardcode_into_libs=yes
10718 dynamic_linker="$host_os dld.so"
10719 shlibpath_var=LD_LIBRARY_PATH
10720 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 if test "X$HPUX_IA64_MODE" = X32; then
10724 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10725 else
10726 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10727 fi
10728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10729 ;;
10730 hppa*64*)
10731 shrext_cmds='.sl'
10732 hardcode_into_libs=yes
10733 dynamic_linker="$host_os dld.sl"
10734 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10735 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 soname_spec='${libname}${release}${shared_ext}$major'
10738 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10739 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10740 ;;
10741 *)
10742 shrext_cmds='.sl'
10743 dynamic_linker="$host_os dld.sl"
10744 shlibpath_var=SHLIB_PATH
10745 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 ;;
10749 esac
10750 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10751 postinstall_cmds='chmod 555 $lib'
10752 # or fails outright, so override atomically:
10753 install_override_mode=555
10754 ;;
10755
10756interix[3-9]*)
10757 version_type=linux
10758 need_lib_prefix=no
10759 need_version=no
10760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10761 soname_spec='${libname}${release}${shared_ext}$major'
10762 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 shlibpath_overrides_runpath=no
10765 hardcode_into_libs=yes
10766 ;;
10767
10768irix5* | irix6* | nonstopux*)
10769 case $host_os in
10770 nonstopux*) version_type=nonstopux ;;
10771 *)
10772 if test "$lt_cv_prog_gnu_ld" = yes; then
10773 version_type=linux
10774 else
10775 version_type=irix
10776 fi ;;
10777 esac
10778 need_lib_prefix=no
10779 need_version=no
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10782 case $host_os in
10783 irix5* | nonstopux*)
10784 libsuff= shlibsuff=
10785 ;;
10786 *)
10787 case $LD in # libtool.m4 will add one of these switches to LD
10788 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10789 libsuff= shlibsuff= libmagic=32-bit;;
10790 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10791 libsuff=32 shlibsuff=N32 libmagic=N32;;
10792 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10793 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10794 *) libsuff= shlibsuff= libmagic=never-match;;
10795 esac
10796 ;;
10797 esac
10798 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10799 shlibpath_overrides_runpath=no
10800 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10801 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10802 hardcode_into_libs=yes
10803 ;;
10804
10805# No shared lib support for Linux oldld, aout, or coff.
10806linux*oldld* | linux*aout* | linux*coff*)
10807 dynamic_linker=no
10808 ;;
10809
10810# This must be Linux ELF.
10811linux* | k*bsd*-gnu | kopensolaris*-gnu)
10812 version_type=linux
10813 need_lib_prefix=no
10814 need_version=no
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 shlibpath_overrides_runpath=no
10820
10821 # Some binutils ld are patched to set DT_RUNPATH
73b6d7a9 10822 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
7a938933
ILT
10823 $as_echo_n "(cached) " >&6
10824else
10825 lt_cv_shlibpath_overrides_runpath=no
10826 save_LDFLAGS=$LDFLAGS
10827 save_libdir=$libdir
10828 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10829 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h. */
10832
10833int
10834main ()
10835{
10836
10837 ;
10838 return 0;
10839}
10840_ACEOF
10841if ac_fn_c_try_link "$LINENO"; then :
10842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10843 lt_cv_shlibpath_overrides_runpath=yes
10844fi
10845fi
10846rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
10848 LDFLAGS=$save_LDFLAGS
10849 libdir=$save_libdir
10850
10851fi
10852
10853 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10854
10855 # This implies no fast_install, which is unacceptable.
10856 # Some rework will be needed to allow for fast_install
10857 # before this can be enabled.
10858 hardcode_into_libs=yes
10859
10860 # Append ld.so.conf contents to the search path
10861 if test -f /etc/ld.so.conf; then
10862 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' ' '`
10863 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10864 fi
10865
10866 # We used to test for /lib/ld.so.1 and disable shared libraries on
10867 # powerpc, because MkLinux only supported shared libraries with the
10868 # GNU dynamic linker. Since this was broken with cross compilers,
10869 # most powerpc-linux boxes support dynamic linking these days and
10870 # people can always --disable-shared, the test was removed, and we
10871 # assume the GNU/Linux dynamic linker is in use.
10872 dynamic_linker='GNU/Linux ld.so'
10873 ;;
10874
10875netbsd*)
10876 version_type=sunos
10877 need_lib_prefix=no
10878 need_version=no
10879 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10882 dynamic_linker='NetBSD (a.out) ld.so'
10883 else
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 dynamic_linker='NetBSD ld.elf_so'
10887 fi
10888 shlibpath_var=LD_LIBRARY_PATH
10889 shlibpath_overrides_runpath=yes
10890 hardcode_into_libs=yes
10891 ;;
10892
10893newsos6)
10894 version_type=linux
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=yes
10898 ;;
10899
10900*nto* | *qnx*)
10901 version_type=qnx
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=no
10908 hardcode_into_libs=yes
10909 dynamic_linker='ldqnx.so'
10910 ;;
10911
10912openbsd*)
10913 version_type=sunos
10914 sys_lib_dlsearch_path_spec="/usr/lib"
10915 need_lib_prefix=no
10916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10917 case $host_os in
10918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10919 *) need_version=no ;;
10920 esac
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10925 case $host_os in
10926 openbsd2.[89] | openbsd2.[89].*)
10927 shlibpath_overrides_runpath=no
10928 ;;
10929 *)
10930 shlibpath_overrides_runpath=yes
10931 ;;
10932 esac
10933 else
10934 shlibpath_overrides_runpath=yes
10935 fi
10936 ;;
10937
10938os2*)
10939 libname_spec='$name'
10940 shrext_cmds=".dll"
10941 need_lib_prefix=no
10942 library_names_spec='$libname${shared_ext} $libname.a'
10943 dynamic_linker='OS/2 ld.exe'
10944 shlibpath_var=LIBPATH
10945 ;;
10946
10947osf3* | osf4* | osf5*)
10948 version_type=osf
10949 need_lib_prefix=no
10950 need_version=no
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10956 ;;
10957
10958rdos*)
10959 dynamic_linker=no
10960 ;;
10961
10962solaris*)
10963 version_type=linux
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes
10970 hardcode_into_libs=yes
10971 # ldd complains unless libraries are executable
10972 postinstall_cmds='chmod +x $lib'
10973 ;;
10974
10975sunos4*)
10976 version_type=sunos
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 shlibpath_overrides_runpath=yes
10981 if test "$with_gnu_ld" = yes; then
10982 need_lib_prefix=no
10983 fi
10984 need_version=yes
10985 ;;
10986
10987sysv4 | sysv4.3*)
10988 version_type=linux
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 case $host_vendor in
10993 sni)
10994 shlibpath_overrides_runpath=no
10995 need_lib_prefix=no
10996 runpath_var=LD_RUN_PATH
10997 ;;
10998 siemens)
10999 need_lib_prefix=no
11000 ;;
11001 motorola)
11002 need_lib_prefix=no
11003 need_version=no
11004 shlibpath_overrides_runpath=no
11005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11006 ;;
11007 esac
11008 ;;
11009
11010sysv4*MP*)
11011 if test -d /usr/nec ;then
11012 version_type=linux
11013 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11014 soname_spec='$libname${shared_ext}.$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 fi
11017 ;;
11018
11019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11020 version_type=freebsd-elf
11021 need_lib_prefix=no
11022 need_version=no
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11024 soname_spec='${libname}${release}${shared_ext}$major'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=yes
11027 hardcode_into_libs=yes
11028 if test "$with_gnu_ld" = yes; then
11029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11030 else
11031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11032 case $host_os in
11033 sco3.2v5*)
11034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11035 ;;
11036 esac
11037 fi
11038 sys_lib_dlsearch_path_spec='/usr/lib'
11039 ;;
11040
11041tpf*)
11042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11043 version_type=linux
11044 need_lib_prefix=no
11045 need_version=no
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=no
11049 hardcode_into_libs=yes
11050 ;;
11051
11052uts4*)
11053 version_type=linux
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 soname_spec='${libname}${release}${shared_ext}$major'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 ;;
11058
11059*)
11060 dynamic_linker=no
11061 ;;
11062esac
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11064$as_echo "$dynamic_linker" >&6; }
11065test "$dynamic_linker" = no && can_build_shared=no
11066
11067variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11068if test "$GCC" = yes; then
11069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11070fi
11071
11072if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11073 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11074fi
11075if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11076 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11077fi
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
11164
11165
11166
11167
11168
11169
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11171$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11172hardcode_action=
11173if test -n "$hardcode_libdir_flag_spec" ||
11174 test -n "$runpath_var" ||
11175 test "X$hardcode_automatic" = "Xyes" ; then
11176
11177 # We can hardcode non-existent directories.
11178 if test "$hardcode_direct" != no &&
11179 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11180 # have to relink, otherwise we might link with an installed library
11181 # when we should be linking with a yet-to-be-installed one
11182 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11183 test "$hardcode_minus_L" != no; then
11184 # Linking always hardcodes the temporary library directory.
11185 hardcode_action=relink
11186 else
11187 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11188 hardcode_action=immediate
11189 fi
11190else
11191 # We cannot hardcode anything, or else we can only hardcode existing
11192 # directories.
11193 hardcode_action=unsupported
11194fi
11195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11196$as_echo "$hardcode_action" >&6; }
11197
11198if test "$hardcode_action" = relink ||
11199 test "$inherit_rpath" = yes; then
11200 # Fast installation is not supported
11201 enable_fast_install=no
11202elif test "$shlibpath_overrides_runpath" = yes ||
11203 test "$enable_shared" = no; then
11204 # Fast installation is not necessary
11205 enable_fast_install=needless
11206fi
11207
11208
11209
11210
11211
11212
11213 if test "x$enable_dlopen" != xyes; then
11214 enable_dlopen=unknown
11215 enable_dlopen_self=unknown
11216 enable_dlopen_self_static=unknown
11217else
11218 lt_cv_dlopen=no
11219 lt_cv_dlopen_libs=
11220
11221 case $host_os in
11222 beos*)
11223 lt_cv_dlopen="load_add_on"
11224 lt_cv_dlopen_libs=
11225 lt_cv_dlopen_self=yes
11226 ;;
11227
11228 mingw* | pw32* | cegcc*)
11229 lt_cv_dlopen="LoadLibrary"
11230 lt_cv_dlopen_libs=
11231 ;;
11232
11233 cygwin*)
11234 lt_cv_dlopen="dlopen"
11235 lt_cv_dlopen_libs=
11236 ;;
11237
11238 darwin*)
11239 # if libdl is installed we need to link against it
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11241$as_echo_n "checking for dlopen in -ldl... " >&6; }
73b6d7a9 11242if ${ac_cv_lib_dl_dlopen+:} false; then :
7a938933
ILT
11243 $as_echo_n "(cached) " >&6
11244else
11245 ac_check_lib_save_LIBS=$LIBS
11246LIBS="-ldl $LIBS"
11247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248/* end confdefs.h. */
11249
11250/* Override any GCC internal prototype to avoid an error.
11251 Use char because int might match the return type of a GCC
11252 builtin and then its argument prototype would still apply. */
11253#ifdef __cplusplus
11254extern "C"
11255#endif
11256char dlopen ();
11257int
11258main ()
11259{
11260return dlopen ();
11261 ;
11262 return 0;
11263}
11264_ACEOF
11265if ac_fn_c_try_link "$LINENO"; then :
11266 ac_cv_lib_dl_dlopen=yes
11267else
11268 ac_cv_lib_dl_dlopen=no
11269fi
11270rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
11272LIBS=$ac_check_lib_save_LIBS
11273fi
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11275$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
73b6d7a9 11276if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7a938933
ILT
11277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11278else
11279
11280 lt_cv_dlopen="dyld"
11281 lt_cv_dlopen_libs=
11282 lt_cv_dlopen_self=yes
11283
11284fi
11285
11286 ;;
11287
11288 *)
11289 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
73b6d7a9 11290if test "x$ac_cv_func_shl_load" = xyes; then :
7a938933
ILT
11291 lt_cv_dlopen="shl_load"
11292else
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11294$as_echo_n "checking for shl_load in -ldld... " >&6; }
73b6d7a9 11295if ${ac_cv_lib_dld_shl_load+:} false; then :
7a938933
ILT
11296 $as_echo_n "(cached) " >&6
11297else
11298 ac_check_lib_save_LIBS=$LIBS
11299LIBS="-ldld $LIBS"
11300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301/* end confdefs.h. */
11302
11303/* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309char shl_load ();
11310int
11311main ()
11312{
11313return shl_load ();
11314 ;
11315 return 0;
11316}
11317_ACEOF
11318if ac_fn_c_try_link "$LINENO"; then :
11319 ac_cv_lib_dld_shl_load=yes
11320else
11321 ac_cv_lib_dld_shl_load=no
11322fi
11323rm -f core conftest.err conftest.$ac_objext \
11324 conftest$ac_exeext conftest.$ac_ext
11325LIBS=$ac_check_lib_save_LIBS
11326fi
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11328$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
73b6d7a9 11329if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
7a938933
ILT
11330 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11331else
11332 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
73b6d7a9 11333if test "x$ac_cv_func_dlopen" = xyes; then :
7a938933
ILT
11334 lt_cv_dlopen="dlopen"
11335else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11337$as_echo_n "checking for dlopen in -ldl... " >&6; }
73b6d7a9 11338if ${ac_cv_lib_dl_dlopen+:} false; then :
7a938933
ILT
11339 $as_echo_n "(cached) " >&6
11340else
11341 ac_check_lib_save_LIBS=$LIBS
11342LIBS="-ldl $LIBS"
11343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344/* end confdefs.h. */
11345
11346/* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349#ifdef __cplusplus
11350extern "C"
11351#endif
11352char dlopen ();
11353int
11354main ()
11355{
11356return dlopen ();
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361if ac_fn_c_try_link "$LINENO"; then :
11362 ac_cv_lib_dl_dlopen=yes
11363else
11364 ac_cv_lib_dl_dlopen=no
11365fi
11366rm -f core conftest.err conftest.$ac_objext \
11367 conftest$ac_exeext conftest.$ac_ext
11368LIBS=$ac_check_lib_save_LIBS
11369fi
11370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11371$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
73b6d7a9 11372if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7a938933
ILT
11373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11374else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11376$as_echo_n "checking for dlopen in -lsvld... " >&6; }
73b6d7a9 11377if ${ac_cv_lib_svld_dlopen+:} false; then :
7a938933
ILT
11378 $as_echo_n "(cached) " >&6
11379else
11380 ac_check_lib_save_LIBS=$LIBS
11381LIBS="-lsvld $LIBS"
11382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383/* end confdefs.h. */
11384
11385/* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388#ifdef __cplusplus
11389extern "C"
11390#endif
11391char dlopen ();
11392int
11393main ()
11394{
11395return dlopen ();
11396 ;
11397 return 0;
11398}
11399_ACEOF
11400if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_svld_dlopen=yes
11402else
11403 ac_cv_lib_svld_dlopen=no
11404fi
11405rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407LIBS=$ac_check_lib_save_LIBS
11408fi
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11410$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
73b6d7a9 11411if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
7a938933
ILT
11412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11413else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11415$as_echo_n "checking for dld_link in -ldld... " >&6; }
73b6d7a9 11416if ${ac_cv_lib_dld_dld_link+:} false; then :
7a938933
ILT
11417 $as_echo_n "(cached) " >&6
11418else
11419 ac_check_lib_save_LIBS=$LIBS
11420LIBS="-ldld $LIBS"
11421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422/* end confdefs.h. */
11423
11424/* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427#ifdef __cplusplus
11428extern "C"
11429#endif
11430char dld_link ();
11431int
11432main ()
11433{
11434return dld_link ();
11435 ;
11436 return 0;
11437}
11438_ACEOF
11439if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_dld_dld_link=yes
11441else
11442 ac_cv_lib_dld_dld_link=no
11443fi
11444rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446LIBS=$ac_check_lib_save_LIBS
11447fi
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11449$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
73b6d7a9 11450if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
7a938933
ILT
11451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11452fi
11453
11454
11455fi
11456
11457
11458fi
11459
11460
11461fi
11462
11463
11464fi
11465
11466
11467fi
11468
11469 ;;
11470 esac
11471
11472 if test "x$lt_cv_dlopen" != xno; then
11473 enable_dlopen=yes
11474 else
11475 enable_dlopen=no
11476 fi
11477
11478 case $lt_cv_dlopen in
11479 dlopen)
11480 save_CPPFLAGS="$CPPFLAGS"
11481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11482
11483 save_LDFLAGS="$LDFLAGS"
11484 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11485
11486 save_LIBS="$LIBS"
11487 LIBS="$lt_cv_dlopen_libs $LIBS"
11488
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11490$as_echo_n "checking whether a program can dlopen itself... " >&6; }
73b6d7a9 11491if ${lt_cv_dlopen_self+:} false; then :
7a938933
ILT
11492 $as_echo_n "(cached) " >&6
11493else
11494 if test "$cross_compiling" = yes; then :
11495 lt_cv_dlopen_self=cross
11496else
11497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11498 lt_status=$lt_dlunknown
11499 cat > conftest.$ac_ext <<_LT_EOF
45376dc0 11500#line 11500 "configure"
7a938933
ILT
11501#include "confdefs.h"
11502
11503#if HAVE_DLFCN_H
11504#include <dlfcn.h>
11505#endif
11506
11507#include <stdio.h>
11508
11509#ifdef RTLD_GLOBAL
11510# define LT_DLGLOBAL RTLD_GLOBAL
11511#else
11512# ifdef DL_GLOBAL
11513# define LT_DLGLOBAL DL_GLOBAL
11514# else
11515# define LT_DLGLOBAL 0
11516# endif
11517#endif
11518
11519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11520 find out it does not work in some platform. */
11521#ifndef LT_DLLAZY_OR_NOW
11522# ifdef RTLD_LAZY
11523# define LT_DLLAZY_OR_NOW RTLD_LAZY
11524# else
11525# ifdef DL_LAZY
11526# define LT_DLLAZY_OR_NOW DL_LAZY
11527# else
11528# ifdef RTLD_NOW
11529# define LT_DLLAZY_OR_NOW RTLD_NOW
11530# else
11531# ifdef DL_NOW
11532# define LT_DLLAZY_OR_NOW DL_NOW
11533# else
11534# define LT_DLLAZY_OR_NOW 0
11535# endif
11536# endif
11537# endif
11538# endif
11539#endif
11540
11541/* When -fvisbility=hidden is used, assume the code has been annotated
11542 correspondingly for the symbols needed. */
11543#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11544void fnord () __attribute__((visibility("default")));
11545#endif
11546
11547void fnord () { int i=42; }
11548int main ()
11549{
11550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11551 int status = $lt_dlunknown;
11552
11553 if (self)
11554 {
11555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11556 else
11557 {
11558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11559 else puts (dlerror ());
11560 }
11561 /* dlclose (self); */
11562 }
11563 else
11564 puts (dlerror ());
11565
11566 return status;
11567}
11568_LT_EOF
11569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11570 (eval $ac_link) 2>&5
11571 ac_status=$?
11572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11573 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11574 (./conftest; exit; ) >&5 2>/dev/null
11575 lt_status=$?
11576 case x$lt_status in
11577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11579 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11580 esac
11581 else :
11582 # compilation failed
11583 lt_cv_dlopen_self=no
11584 fi
11585fi
11586rm -fr conftest*
11587
11588
11589fi
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11591$as_echo "$lt_cv_dlopen_self" >&6; }
11592
11593 if test "x$lt_cv_dlopen_self" = xyes; then
11594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11596$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
73b6d7a9 11597if ${lt_cv_dlopen_self_static+:} false; then :
7a938933
ILT
11598 $as_echo_n "(cached) " >&6
11599else
11600 if test "$cross_compiling" = yes; then :
11601 lt_cv_dlopen_self_static=cross
11602else
11603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11604 lt_status=$lt_dlunknown
11605 cat > conftest.$ac_ext <<_LT_EOF
45376dc0 11606#line 11606 "configure"
7a938933
ILT
11607#include "confdefs.h"
11608
11609#if HAVE_DLFCN_H
11610#include <dlfcn.h>
11611#endif
11612
11613#include <stdio.h>
11614
11615#ifdef RTLD_GLOBAL
11616# define LT_DLGLOBAL RTLD_GLOBAL
11617#else
11618# ifdef DL_GLOBAL
11619# define LT_DLGLOBAL DL_GLOBAL
11620# else
11621# define LT_DLGLOBAL 0
11622# endif
11623#endif
11624
11625/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11626 find out it does not work in some platform. */
11627#ifndef LT_DLLAZY_OR_NOW
11628# ifdef RTLD_LAZY
11629# define LT_DLLAZY_OR_NOW RTLD_LAZY
11630# else
11631# ifdef DL_LAZY
11632# define LT_DLLAZY_OR_NOW DL_LAZY
11633# else
11634# ifdef RTLD_NOW
11635# define LT_DLLAZY_OR_NOW RTLD_NOW
11636# else
11637# ifdef DL_NOW
11638# define LT_DLLAZY_OR_NOW DL_NOW
11639# else
11640# define LT_DLLAZY_OR_NOW 0
11641# endif
11642# endif
11643# endif
11644# endif
11645#endif
11646
11647/* When -fvisbility=hidden is used, assume the code has been annotated
11648 correspondingly for the symbols needed. */
11649#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11650void fnord () __attribute__((visibility("default")));
11651#endif
11652
11653void fnord () { int i=42; }
11654int main ()
11655{
11656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11657 int status = $lt_dlunknown;
11658
11659 if (self)
11660 {
11661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11662 else
11663 {
11664 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11665 else puts (dlerror ());
11666 }
11667 /* dlclose (self); */
11668 }
11669 else
11670 puts (dlerror ());
11671
11672 return status;
11673}
11674_LT_EOF
11675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11676 (eval $ac_link) 2>&5
11677 ac_status=$?
11678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11679 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11680 (./conftest; exit; ) >&5 2>/dev/null
11681 lt_status=$?
11682 case x$lt_status in
11683 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11684 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11685 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11686 esac
11687 else :
11688 # compilation failed
11689 lt_cv_dlopen_self_static=no
11690 fi
11691fi
11692rm -fr conftest*
11693
11694
11695fi
11696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11697$as_echo "$lt_cv_dlopen_self_static" >&6; }
11698 fi
11699
11700 CPPFLAGS="$save_CPPFLAGS"
11701 LDFLAGS="$save_LDFLAGS"
11702 LIBS="$save_LIBS"
11703 ;;
11704 esac
11705
11706 case $lt_cv_dlopen_self in
11707 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11708 *) enable_dlopen_self=unknown ;;
11709 esac
11710
11711 case $lt_cv_dlopen_self_static in
11712 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11713 *) enable_dlopen_self_static=unknown ;;
11714 esac
11715fi
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733striplib=
11734old_striplib=
11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11736$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11737if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11738 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11739 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741$as_echo "yes" >&6; }
11742else
11743# FIXME - insert some real tests, host_os isn't really good enough
11744 case $host_os in
11745 darwin*)
11746 if test -n "$STRIP" ; then
11747 striplib="$STRIP -x"
11748 old_striplib="$STRIP -S"
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750$as_echo "yes" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
11754 fi
11755 ;;
11756 *)
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
11759 ;;
11760 esac
11761fi
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774 # Report which library types will actually be built
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11776$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11778$as_echo "$can_build_shared" >&6; }
11779
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11781$as_echo_n "checking whether to build shared libraries... " >&6; }
11782 test "$can_build_shared" = "no" && enable_shared=no
11783
11784 # On AIX, shared libraries and static libraries use the same namespace, and
11785 # are all built from PIC.
11786 case $host_os in
11787 aix3*)
11788 test "$enable_shared" = yes && enable_static=no
11789 if test -n "$RANLIB"; then
11790 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11791 postinstall_cmds='$RANLIB $lib'
11792 fi
11793 ;;
11794
11795 aix[4-9]*)
11796 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11797 test "$enable_shared" = yes && enable_static=no
11798 fi
11799 ;;
11800 esac
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11802$as_echo "$enable_shared" >&6; }
11803
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11805$as_echo_n "checking whether to build static libraries... " >&6; }
11806 # Make sure either enable_shared or enable_static is yes.
11807 test "$enable_shared" = yes || enable_static=yes
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11809$as_echo "$enable_static" >&6; }
11810
11811
11812
11813
11814fi
11815ac_ext=c
11816ac_cpp='$CPP $CPPFLAGS'
11817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820
11821CC="$lt_save_CC"
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835# Source file extension for Go test sources.
11836ac_ext=go
11837
11838# Object file extension for compiled Go test sources.
11839objext=o
11840objext_GO=$objext
11841
11842# Code to be used in simple compile tests
11843lt_simple_compile_test_code="package main; func main() { }"
11844
11845# Code to be used in simple link tests
11846lt_simple_link_test_code='package main; func main() { }'
11847
11848# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11849
11850
11851
11852
11853
11854
11855# If no C compiler was specified, use CC.
11856LTCC=${LTCC-"$CC"}
11857
11858# If no C compiler flags were specified, use CFLAGS.
11859LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11860
11861# Allow CC to be a program name with arguments.
11862compiler=$CC
11863
11864
11865# save warnings/boilerplate of simple test code
11866ac_outfile=conftest.$ac_objext
11867echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11868eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11869_lt_compiler_boilerplate=`cat conftest.err`
11870$RM conftest*
11871
11872ac_outfile=conftest.$ac_objext
11873echo "$lt_simple_link_test_code" >conftest.$ac_ext
11874eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11875_lt_linker_boilerplate=`cat conftest.err`
11876$RM -r conftest*
11877
11878
11879# Allow CC to be a program name with arguments.
11880lt_save_CC="$CC"
11881lt_save_GCC="$GCC"
11882GCC=yes
11883CC=${GOC-"gccgo"}
11884compiler=$CC
11885compiler_GO=$CC
11886LD_GO="$LD"
11887for cc_temp in $compiler""; do
11888 case $cc_temp in
11889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11891 \-*) ;;
11892 *) break;;
11893 esac
11894done
11895cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11896
11897
11898# Go did not exist at the time GCC didn't implicitly link libc in.
11899archive_cmds_need_lc_GO=no
11900
11901old_archive_cmds_GO=$old_archive_cmds
11902
11903## CAVEAT EMPTOR:
11904## There is no encapsulation within the following macros, do not change
11905## the running order or otherwise move them around unless you know exactly
11906## what you are doing...
11907if test -n "$compiler"; then
11908
11909lt_prog_compiler_no_builtin_flag_GO=
11910
11911if test "$GCC" = yes; then
11912 case $cc_basename in
11913 nvcc*)
11914 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11915 *)
11916 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11917 esac
11918
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11920$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
73b6d7a9 11921if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7a938933
ILT
11922 $as_echo_n "(cached) " >&6
11923else
11924 lt_cv_prog_compiler_rtti_exceptions=no
11925 ac_outfile=conftest.$ac_objext
11926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11927 lt_compiler_flag="-fno-rtti -fno-exceptions"
11928 # Insert the option either (1) after the last *FLAGS variable, or
11929 # (2) before a word containing "conftest.", or (3) at the end.
11930 # Note that $ac_compile itself does not contain backslashes and begins
11931 # with a dollar sign (not a hyphen), so the echo should work correctly.
11932 # The option is referenced via a variable to avoid confusing sed.
11933 lt_compile=`echo "$ac_compile" | $SED \
11934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11936 -e 's:$: $lt_compiler_flag:'`
11937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11938 (eval "$lt_compile" 2>conftest.err)
11939 ac_status=$?
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 if (exit $ac_status) && test -s "$ac_outfile"; then
11943 # The compiler can only warn and ignore the option if not recognized
11944 # So say no if there are warnings other than the usual output.
11945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11948 lt_cv_prog_compiler_rtti_exceptions=yes
11949 fi
11950 fi
11951 $RM conftest*
11952
11953fi
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11955$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11956
11957if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11958 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11959else
11960 :
11961fi
11962
11963fi
11964
11965
11966
11967 lt_prog_compiler_wl_GO=
11968lt_prog_compiler_pic_GO=
11969lt_prog_compiler_static_GO=
11970
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11972$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11973
11974 if test "$GCC" = yes; then
11975 lt_prog_compiler_wl_GO='-Wl,'
11976 lt_prog_compiler_static_GO='-static'
11977
11978 case $host_os in
11979 aix*)
11980 # All AIX code is PIC.
11981 if test "$host_cpu" = ia64; then
11982 # AIX 5 now supports IA64 processor
11983 lt_prog_compiler_static_GO='-Bstatic'
11984 fi
327a26a3 11985 lt_prog_compiler_pic_GO='-fPIC'
7a938933
ILT
11986 ;;
11987
11988 amigaos*)
11989 case $host_cpu in
11990 powerpc)
11991 # see comment about AmigaOS4 .so support
11992 lt_prog_compiler_pic_GO='-fPIC'
11993 ;;
11994 m68k)
11995 # FIXME: we need at least 68020 code to build shared libraries, but
11996 # adding the `-m68020' flag to GCC prevents building anything better,
11997 # like `-m68040'.
11998 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11999 ;;
12000 esac
12001 ;;
12002
12003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12004 # PIC is the default for these OSes.
12005 ;;
12006
12007 mingw* | cygwin* | pw32* | os2* | cegcc*)
12008 # This hack is so that the source file can tell whether it is being
12009 # built for inclusion in a dll (and should export symbols for example).
12010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12011 # (--disable-auto-import) libraries
12012 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12013 ;;
12014
12015 darwin* | rhapsody*)
12016 # PIC is the default on this platform
12017 # Common symbols not allowed in MH_DYLIB files
12018 lt_prog_compiler_pic_GO='-fno-common'
12019 ;;
12020
12021 haiku*)
12022 # PIC is the default for Haiku.
12023 # The "-static" flag exists, but is broken.
12024 lt_prog_compiler_static_GO=
12025 ;;
12026
12027 hpux*)
12028 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12029 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12030 # sets the default TLS model and affects inlining.
12031 case $host_cpu in
12032 hppa*64*)
12033 # +Z the default
12034 ;;
12035 *)
12036 lt_prog_compiler_pic_GO='-fPIC'
12037 ;;
12038 esac
12039 ;;
12040
12041 interix[3-9]*)
12042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12043 # Instead, we relocate shared libraries at runtime.
12044 ;;
12045
12046 msdosdjgpp*)
12047 # Just because we use GCC doesn't mean we suddenly get shared libraries
12048 # on systems that don't support them.
12049 lt_prog_compiler_can_build_shared_GO=no
12050 enable_shared=no
12051 ;;
12052
12053 *nto* | *qnx*)
12054 # QNX uses GNU C++, but need to define -shared option too, otherwise
12055 # it will coredump.
12056 lt_prog_compiler_pic_GO='-fPIC -shared'
12057 ;;
12058
12059 sysv4*MP*)
12060 if test -d /usr/nec; then
12061 lt_prog_compiler_pic_GO=-Kconform_pic
12062 fi
12063 ;;
12064
12065 *)
12066 lt_prog_compiler_pic_GO='-fPIC'
12067 ;;
12068 esac
12069
12070 case $cc_basename in
12071 nvcc*) # Cuda Compiler Driver 2.2
12072 lt_prog_compiler_wl_GO='-Xlinker '
12073 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
12074 ;;
12075 esac
12076 else
12077 # PORTME Check for flag to pass linker flags through the system compiler.
12078 case $host_os in
12079 aix*)
12080 lt_prog_compiler_wl_GO='-Wl,'
12081 if test "$host_cpu" = ia64; then
12082 # AIX 5 now supports IA64 processor
12083 lt_prog_compiler_static_GO='-Bstatic'
12084 else
12085 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
12086 fi
12087 ;;
12088
12089 mingw* | cygwin* | pw32* | os2* | cegcc*)
12090 # This hack is so that the source file can tell whether it is being
12091 # built for inclusion in a dll (and should export symbols for example).
12092 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12093 ;;
12094
12095 hpux9* | hpux10* | hpux11*)
12096 lt_prog_compiler_wl_GO='-Wl,'
12097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12098 # not for PA HP-UX.
12099 case $host_cpu in
12100 hppa*64*|ia64*)
12101 # +Z the default
12102 ;;
12103 *)
12104 lt_prog_compiler_pic_GO='+Z'
12105 ;;
12106 esac
12107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12108 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
12109 ;;
12110
12111 irix5* | irix6* | nonstopux*)
12112 lt_prog_compiler_wl_GO='-Wl,'
12113 # PIC (with -KPIC) is the default.
12114 lt_prog_compiler_static_GO='-non_shared'
12115 ;;
12116
12117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12118 case $cc_basename in
12119 # old Intel for x86_64 which still supported -KPIC.
12120 ecc*)
12121 lt_prog_compiler_wl_GO='-Wl,'
12122 lt_prog_compiler_pic_GO='-KPIC'
12123 lt_prog_compiler_static_GO='-static'
12124 ;;
12125 # icc used to be incompatible with GCC.
12126 # ICC 10 doesn't accept -KPIC any more.
12127 icc* | ifort*)
12128 lt_prog_compiler_wl_GO='-Wl,'
12129 lt_prog_compiler_pic_GO='-fPIC'
12130 lt_prog_compiler_static_GO='-static'
12131 ;;
12132 # Lahey Fortran 8.1.
12133 lf95*)
12134 lt_prog_compiler_wl_GO='-Wl,'
12135 lt_prog_compiler_pic_GO='--shared'
12136 lt_prog_compiler_static_GO='--static'
12137 ;;
12138 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12139 # Portland Group compilers (*not* the Pentium gcc compiler,
12140 # which looks to be a dead project)
12141 lt_prog_compiler_wl_GO='-Wl,'
12142 lt_prog_compiler_pic_GO='-fpic'
12143 lt_prog_compiler_static_GO='-Bstatic'
12144 ;;
12145 ccc*)
12146 lt_prog_compiler_wl_GO='-Wl,'
12147 # All Alpha code is PIC.
12148 lt_prog_compiler_static_GO='-non_shared'
12149 ;;
12150 xl* | bgxl* | bgf* | mpixl*)
12151 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12152 lt_prog_compiler_wl_GO='-Wl,'
12153 lt_prog_compiler_pic_GO='-qpic'
12154 lt_prog_compiler_static_GO='-qstaticlink'
12155 ;;
12156 *)
12157 case `$CC -V 2>&1 | sed 5q` in
12158 *Sun\ F* | *Sun*Fortran*)
12159 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12160 lt_prog_compiler_pic_GO='-KPIC'
12161 lt_prog_compiler_static_GO='-Bstatic'
12162 lt_prog_compiler_wl_GO=''
12163 ;;
12164 *Sun\ C*)
12165 # Sun C 5.9
12166 lt_prog_compiler_pic_GO='-KPIC'
12167 lt_prog_compiler_static_GO='-Bstatic'
12168 lt_prog_compiler_wl_GO='-Wl,'
12169 ;;
12170 esac
12171 ;;
12172 esac
12173 ;;
12174
12175 newsos6)
12176 lt_prog_compiler_pic_GO='-KPIC'
12177 lt_prog_compiler_static_GO='-Bstatic'
12178 ;;
12179
12180 *nto* | *qnx*)
12181 # QNX uses GNU C++, but need to define -shared option too, otherwise
12182 # it will coredump.
12183 lt_prog_compiler_pic_GO='-fPIC -shared'
12184 ;;
12185
12186 osf3* | osf4* | osf5*)
12187 lt_prog_compiler_wl_GO='-Wl,'
12188 # All OSF/1 code is PIC.
12189 lt_prog_compiler_static_GO='-non_shared'
12190 ;;
12191
12192 rdos*)
12193 lt_prog_compiler_static_GO='-non_shared'
12194 ;;
12195
12196 solaris*)
12197 lt_prog_compiler_pic_GO='-KPIC'
12198 lt_prog_compiler_static_GO='-Bstatic'
12199 case $cc_basename in
12200 f77* | f90* | f95*)
12201 lt_prog_compiler_wl_GO='-Qoption ld ';;
12202 *)
12203 lt_prog_compiler_wl_GO='-Wl,';;
12204 esac
12205 ;;
12206
12207 sunos4*)
12208 lt_prog_compiler_wl_GO='-Qoption ld '
12209 lt_prog_compiler_pic_GO='-PIC'
12210 lt_prog_compiler_static_GO='-Bstatic'
12211 ;;
12212
12213 sysv4 | sysv4.2uw2* | sysv4.3*)
12214 lt_prog_compiler_wl_GO='-Wl,'
12215 lt_prog_compiler_pic_GO='-KPIC'
12216 lt_prog_compiler_static_GO='-Bstatic'
12217 ;;
12218
12219 sysv4*MP*)
12220 if test -d /usr/nec ;then
12221 lt_prog_compiler_pic_GO='-Kconform_pic'
12222 lt_prog_compiler_static_GO='-Bstatic'
12223 fi
12224 ;;
12225
12226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12227 lt_prog_compiler_wl_GO='-Wl,'
12228 lt_prog_compiler_pic_GO='-KPIC'
12229 lt_prog_compiler_static_GO='-Bstatic'
12230 ;;
12231
12232 unicos*)
12233 lt_prog_compiler_wl_GO='-Wl,'
12234 lt_prog_compiler_can_build_shared_GO=no
12235 ;;
12236
12237 uts4*)
12238 lt_prog_compiler_pic_GO='-pic'
12239 lt_prog_compiler_static_GO='-Bstatic'
12240 ;;
12241
12242 *)
12243 lt_prog_compiler_can_build_shared_GO=no
12244 ;;
12245 esac
12246 fi
12247
12248case $host_os in
12249 # For platforms which do not support PIC, -DPIC is meaningless:
12250 *djgpp*)
12251 lt_prog_compiler_pic_GO=
12252 ;;
12253 *)
12254 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12255 ;;
12256esac
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12258$as_echo "$lt_prog_compiler_pic_GO" >&6; }
12259
12260
12261
12262#
12263# Check to make sure the PIC flag actually works.
12264#
12265if test -n "$lt_prog_compiler_pic_GO"; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12267$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
73b6d7a9 12268if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
7a938933
ILT
12269 $as_echo_n "(cached) " >&6
12270else
12271 lt_cv_prog_compiler_pic_works_GO=no
12272 ac_outfile=conftest.$ac_objext
12273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12274 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12275 # Insert the option either (1) after the last *FLAGS variable, or
12276 # (2) before a word containing "conftest.", or (3) at the end.
12277 # Note that $ac_compile itself does not contain backslashes and begins
12278 # with a dollar sign (not a hyphen), so the echo should work correctly.
12279 # The option is referenced via a variable to avoid confusing sed.
12280 lt_compile=`echo "$ac_compile" | $SED \
12281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12283 -e 's:$: $lt_compiler_flag:'`
12284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12285 (eval "$lt_compile" 2>conftest.err)
12286 ac_status=$?
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 if (exit $ac_status) && test -s "$ac_outfile"; then
12290 # The compiler can only warn and ignore the option if not recognized
12291 # So say no if there are warnings other than the usual output.
12292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12294 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12295 lt_cv_prog_compiler_pic_works_GO=yes
12296 fi
12297 fi
12298 $RM conftest*
12299
12300fi
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12302$as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12303
12304if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12305 case $lt_prog_compiler_pic_GO in
12306 "" | " "*) ;;
12307 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12308 esac
12309else
12310 lt_prog_compiler_pic_GO=
12311 lt_prog_compiler_can_build_shared_GO=no
12312fi
12313
12314fi
12315
12316
12317
12318#
12319# Check to make sure the static flag actually works.
12320#
12321wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12323$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
73b6d7a9 12324if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
7a938933
ILT
12325 $as_echo_n "(cached) " >&6
12326else
12327 lt_cv_prog_compiler_static_works_GO=no
12328 save_LDFLAGS="$LDFLAGS"
12329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12330 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12332 # The linker can only warn and ignore the option if not recognized
12333 # So say no if there are warnings
12334 if test -s conftest.err; then
12335 # Append any errors to the config.log.
12336 cat conftest.err 1>&5
12337 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12339 if diff conftest.exp conftest.er2 >/dev/null; then
12340 lt_cv_prog_compiler_static_works_GO=yes
12341 fi
12342 else
12343 lt_cv_prog_compiler_static_works_GO=yes
12344 fi
12345 fi
12346 $RM -r conftest*
12347 LDFLAGS="$save_LDFLAGS"
12348
12349fi
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12351$as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12352
12353if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12354 :
12355else
12356 lt_prog_compiler_static_GO=
12357fi
12358
12359
12360
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12363$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
73b6d7a9 12364if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
7a938933
ILT
12365 $as_echo_n "(cached) " >&6
12366else
12367 lt_cv_prog_compiler_c_o_GO=no
12368 $RM -r conftest 2>/dev/null
12369 mkdir conftest
12370 cd conftest
12371 mkdir out
12372 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12373
12374 lt_compiler_flag="-o out/conftest2.$ac_objext"
12375 # Insert the option either (1) after the last *FLAGS variable, or
12376 # (2) before a word containing "conftest.", or (3) at the end.
12377 # Note that $ac_compile itself does not contain backslashes and begins
12378 # with a dollar sign (not a hyphen), so the echo should work correctly.
12379 lt_compile=`echo "$ac_compile" | $SED \
12380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12382 -e 's:$: $lt_compiler_flag:'`
12383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12384 (eval "$lt_compile" 2>out/conftest.err)
12385 ac_status=$?
12386 cat out/conftest.err >&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12389 then
12390 # The compiler can only warn and ignore the option if not recognized
12391 # So say no if there are warnings
12392 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12393 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12394 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12395 lt_cv_prog_compiler_c_o_GO=yes
12396 fi
12397 fi
12398 chmod u+w . 2>&5
12399 $RM conftest*
12400 # SGI C++ compiler will create directory out/ii_files/ for
12401 # template instantiation
12402 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12403 $RM out/* && rmdir out
12404 cd ..
12405 $RM -r conftest
12406 $RM conftest*
12407
12408fi
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12410$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12411
12412
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12415$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
73b6d7a9 12416if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
7a938933
ILT
12417 $as_echo_n "(cached) " >&6
12418else
12419 lt_cv_prog_compiler_c_o_GO=no
12420 $RM -r conftest 2>/dev/null
12421 mkdir conftest
12422 cd conftest
12423 mkdir out
12424 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12425
12426 lt_compiler_flag="-o out/conftest2.$ac_objext"
12427 # Insert the option either (1) after the last *FLAGS variable, or
12428 # (2) before a word containing "conftest.", or (3) at the end.
12429 # Note that $ac_compile itself does not contain backslashes and begins
12430 # with a dollar sign (not a hyphen), so the echo should work correctly.
12431 lt_compile=`echo "$ac_compile" | $SED \
12432 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12433 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12434 -e 's:$: $lt_compiler_flag:'`
12435 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12436 (eval "$lt_compile" 2>out/conftest.err)
12437 ac_status=$?
12438 cat out/conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12441 then
12442 # The compiler can only warn and ignore the option if not recognized
12443 # So say no if there are warnings
12444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12445 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12446 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12447 lt_cv_prog_compiler_c_o_GO=yes
12448 fi
12449 fi
12450 chmod u+w . 2>&5
12451 $RM conftest*
12452 # SGI C++ compiler will create directory out/ii_files/ for
12453 # template instantiation
12454 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12455 $RM out/* && rmdir out
12456 cd ..
12457 $RM -r conftest
12458 $RM conftest*
12459
12460fi
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12462$as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12463
12464
12465
12466
12467hard_links="nottested"
12468if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12469 # do not overwrite the value of need_locks provided by the user
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12471$as_echo_n "checking if we can lock with hard links... " >&6; }
12472 hard_links=yes
12473 $RM conftest*
12474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12475 touch conftest.a
12476 ln conftest.a conftest.b 2>&5 || hard_links=no
12477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12479$as_echo "$hard_links" >&6; }
12480 if test "$hard_links" = no; then
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12482$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12483 need_locks=warn
12484 fi
12485else
12486 need_locks=no
12487fi
12488
12489
12490
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12492$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12493
12494 runpath_var=
12495 allow_undefined_flag_GO=
12496 always_export_symbols_GO=no
12497 archive_cmds_GO=
12498 archive_expsym_cmds_GO=
12499 compiler_needs_object_GO=no
12500 enable_shared_with_static_runtimes_GO=no
12501 export_dynamic_flag_spec_GO=
12502 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12503 hardcode_automatic_GO=no
12504 hardcode_direct_GO=no
12505 hardcode_direct_absolute_GO=no
12506 hardcode_libdir_flag_spec_GO=
12507 hardcode_libdir_flag_spec_ld_GO=
12508 hardcode_libdir_separator_GO=
12509 hardcode_minus_L_GO=no
12510 hardcode_shlibpath_var_GO=unsupported
12511 inherit_rpath_GO=no
12512 link_all_deplibs_GO=unknown
12513 module_cmds_GO=
12514 module_expsym_cmds_GO=
12515 old_archive_from_new_cmds_GO=
12516 old_archive_from_expsyms_cmds_GO=
12517 thread_safe_flag_spec_GO=
12518 whole_archive_flag_spec_GO=
12519 # include_expsyms should be a list of space-separated symbols to be *always*
12520 # included in the symbol list
12521 include_expsyms_GO=
12522 # exclude_expsyms can be an extended regexp of symbols to exclude
12523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12525 # as well as any symbol that contains `d'.
12526 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12528 # platforms (ab)use it in PIC code, but their linkers get confused if
12529 # the symbol is explicitly referenced. Since portable code cannot
12530 # rely on this symbol name, it's probably fine to never include it in
12531 # preloaded symbol tables.
12532 # Exclude shared library initialization/finalization symbols.
12533 extract_expsyms_cmds=
12534
12535 case $host_os in
12536 cygwin* | mingw* | pw32* | cegcc*)
12537 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12538 # When not using gcc, we currently assume that we are using
12539 # Microsoft Visual C++.
12540 if test "$GCC" != yes; then
12541 with_gnu_ld=no
12542 fi
12543 ;;
12544 interix*)
12545 # we just hope/assume this is gcc and not c89 (= MSVC++)
12546 with_gnu_ld=yes
12547 ;;
12548 openbsd*)
12549 with_gnu_ld=no
12550 ;;
12551 esac
12552
12553 ld_shlibs_GO=yes
12554
12555 # On some targets, GNU ld is compatible enough with the native linker
12556 # that we're better off using the native interface for both.
12557 lt_use_gnu_ld_interface=no
12558 if test "$with_gnu_ld" = yes; then
12559 case $host_os in
12560 aix*)
12561 # The AIX port of GNU ld has always aspired to compatibility
12562 # with the native linker. However, as the warning in the GNU ld
12563 # block says, versions before 2.19.5* couldn't really create working
12564 # shared libraries, regardless of the interface used.
12565 case `$LD -v 2>&1` in
12566 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12567 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12568 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12569 *)
12570 lt_use_gnu_ld_interface=yes
12571 ;;
12572 esac
12573 ;;
12574 *)
12575 lt_use_gnu_ld_interface=yes
12576 ;;
12577 esac
12578 fi
12579
12580 if test "$lt_use_gnu_ld_interface" = yes; then
12581 # If archive_cmds runs LD, not CC, wlarc should be empty
12582 wlarc='${wl}'
12583
12584 # Set some defaults for GNU ld with shared library support. These
12585 # are reset later if shared libraries are not supported. Putting them
12586 # here allows them to be overridden if necessary.
12587 runpath_var=LD_RUN_PATH
12588 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12589 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12590 # ancient GNU ld didn't support --whole-archive et. al.
12591 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12592 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12593 else
12594 whole_archive_flag_spec_GO=
12595 fi
12596 supports_anon_versioning=no
12597 case `$LD -v 2>&1` in
12598 *GNU\ gold*) supports_anon_versioning=yes ;;
12599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12602 *\ 2.11.*) ;; # other 2.11 versions
12603 *) supports_anon_versioning=yes ;;
12604 esac
12605
12606 # See if GNU ld supports shared libraries.
12607 case $host_os in
12608 aix[3-9]*)
12609 # On AIX/PPC, the GNU linker is very broken
12610 if test "$host_cpu" != ia64; then
12611 ld_shlibs_GO=no
12612 cat <<_LT_EOF 1>&2
12613
12614*** Warning: the GNU linker, at least up to release 2.19, is reported
12615*** to be unable to reliably create shared libraries on AIX.
12616*** Therefore, libtool is disabling shared libraries support. If you
12617*** really care for shared libraries, you may want to install binutils
12618*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12619*** You will then need to restart the configuration process.
12620
12621_LT_EOF
12622 fi
12623 ;;
12624
12625 amigaos*)
12626 case $host_cpu in
12627 powerpc)
12628 # see comment about AmigaOS4 .so support
12629 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12630 archive_expsym_cmds_GO=''
12631 ;;
12632 m68k)
12633 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)'
12634 hardcode_libdir_flag_spec_GO='-L$libdir'
12635 hardcode_minus_L_GO=yes
12636 ;;
12637 esac
12638 ;;
12639
12640 beos*)
12641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12642 allow_undefined_flag_GO=unsupported
12643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12644 # support --undefined. This deserves some investigation. FIXME
12645 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 else
12647 ld_shlibs_GO=no
12648 fi
12649 ;;
12650
12651 cygwin* | mingw* | pw32* | cegcc*)
12652 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12653 # as there is no search path for DLLs.
12654 hardcode_libdir_flag_spec_GO='-L$libdir'
12655 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12656 allow_undefined_flag_GO=unsupported
12657 always_export_symbols_GO=no
12658 enable_shared_with_static_runtimes_GO=yes
12659 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12660
12661 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12662 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12663 # If the export-symbols file already is a .def file (1st line
12664 # is EXPORTS), use it as is; otherwise, prepend...
12665 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12666 cp $export_symbols $output_objdir/$soname.def;
12667 else
12668 echo EXPORTS > $output_objdir/$soname.def;
12669 cat $export_symbols >> $output_objdir/$soname.def;
12670 fi~
12671 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12672 else
12673 ld_shlibs_GO=no
12674 fi
12675 ;;
12676
12677 haiku*)
12678 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12679 link_all_deplibs_GO=yes
12680 ;;
12681
12682 interix[3-9]*)
12683 hardcode_direct_GO=no
12684 hardcode_shlibpath_var_GO=no
12685 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12686 export_dynamic_flag_spec_GO='${wl}-E'
12687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12688 # Instead, shared libraries are loaded at an image base (0x10000000 by
12689 # default) and relocated if they conflict, which is a slow very memory
12690 # consuming and fragmenting process. To avoid this, we pick a random,
12691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12693 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'
12694 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'
12695 ;;
12696
12697 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12698 tmp_diet=no
12699 if test "$host_os" = linux-dietlibc; then
12700 case $cc_basename in
12701 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12702 esac
12703 fi
12704 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12705 && test "$tmp_diet" = no
12706 then
12707 tmp_addflag=
12708 tmp_sharedflag='-shared'
12709 case $cc_basename,$host_cpu in
12710 pgcc*) # Portland Group C compiler
12711 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'
12712 tmp_addflag=' $pic_flag'
12713 ;;
12714 pgf77* | pgf90* | pgf95* | pgfortran*)
12715 # Portland Group f77 and f90 compilers
12716 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'
12717 tmp_addflag=' $pic_flag -Mnomain' ;;
12718 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12719 tmp_addflag=' -i_dynamic' ;;
12720 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12721 tmp_addflag=' -i_dynamic -nofor_main' ;;
12722 ifc* | ifort*) # Intel Fortran compiler
12723 tmp_addflag=' -nofor_main' ;;
12724 lf95*) # Lahey Fortran 8.1
12725 whole_archive_flag_spec_GO=
12726 tmp_sharedflag='--shared' ;;
12727 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12728 tmp_sharedflag='-qmkshrobj'
12729 tmp_addflag= ;;
12730 nvcc*) # Cuda Compiler Driver 2.2
12731 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'
12732 compiler_needs_object_GO=yes
12733 ;;
12734 esac
12735 case `$CC -V 2>&1 | sed 5q` in
12736 *Sun\ C*) # Sun C 5.9
12737 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'
12738 compiler_needs_object_GO=yes
12739 tmp_sharedflag='-G' ;;
12740 *Sun\ F*) # Sun Fortran 8.3
12741 tmp_sharedflag='-G' ;;
12742 esac
12743 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12744
12745 if test "x$supports_anon_versioning" = xyes; then
12746 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12748 echo "local: *; };" >> $output_objdir/$libname.ver~
12749 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12750 fi
12751
12752 case $cc_basename in
12753 xlf* | bgf* | bgxlf* | mpixlf*)
12754 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12755 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12756 hardcode_libdir_flag_spec_GO=
12757 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12758 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12759 if test "x$supports_anon_versioning" = xyes; then
12760 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12762 echo "local: *; };" >> $output_objdir/$libname.ver~
12763 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12764 fi
12765 ;;
12766 esac
12767 else
12768 ld_shlibs_GO=no
12769 fi
12770 ;;
12771
12772 netbsd*)
12773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12774 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12775 wlarc=
12776 else
12777 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12779 fi
12780 ;;
12781
12782 solaris*)
12783 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12784 ld_shlibs_GO=no
12785 cat <<_LT_EOF 1>&2
12786
12787*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12788*** create shared libraries on Solaris systems. Therefore, libtool
12789*** is disabling shared libraries support. We urge you to upgrade GNU
12790*** binutils to release 2.9.1 or newer. Another option is to modify
12791*** your PATH or compiler configuration so that the native linker is
12792*** used, and then restart.
12793
12794_LT_EOF
12795 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12796 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12798 else
12799 ld_shlibs_GO=no
12800 fi
12801 ;;
12802
12803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12804 case `$LD -v 2>&1` in
12805 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12806 ld_shlibs_GO=no
12807 cat <<_LT_EOF 1>&2
12808
12809*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12810*** reliably create shared libraries on SCO systems. Therefore, libtool
12811*** is disabling shared libraries support. We urge you to upgrade GNU
12812*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12813*** your PATH or compiler configuration so that the native linker is
12814*** used, and then restart.
12815
12816_LT_EOF
12817 ;;
12818 *)
12819 # For security reasons, it is highly recommended that you always
12820 # use absolute paths for naming shared libraries, and exclude the
12821 # DT_RUNPATH tag from executables and libraries. But doing so
12822 # requires that you compile everything twice, which is a pain.
12823 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12824 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12825 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12826 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12827 else
12828 ld_shlibs_GO=no
12829 fi
12830 ;;
12831 esac
12832 ;;
12833
12834 sunos4*)
12835 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12836 wlarc=
12837 hardcode_direct_GO=yes
12838 hardcode_shlibpath_var_GO=no
12839 ;;
12840
12841 *)
12842 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12843 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845 else
12846 ld_shlibs_GO=no
12847 fi
12848 ;;
12849 esac
12850
12851 if test "$ld_shlibs_GO" = no; then
12852 runpath_var=
12853 hardcode_libdir_flag_spec_GO=
12854 export_dynamic_flag_spec_GO=
12855 whole_archive_flag_spec_GO=
12856 fi
12857 else
12858 # PORTME fill in a description of your system's linker (not GNU ld)
12859 case $host_os in
12860 aix3*)
12861 allow_undefined_flag_GO=unsupported
12862 always_export_symbols_GO=yes
12863 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'
12864 # Note: this linker hardcodes the directories in LIBPATH if there
12865 # are no directories specified by -L.
12866 hardcode_minus_L_GO=yes
12867 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12868 # Neither direct hardcoding nor static linking is supported with a
12869 # broken collect2.
12870 hardcode_direct_GO=unsupported
12871 fi
12872 ;;
12873
12874 aix[4-9]*)
12875 if test "$host_cpu" = ia64; then
12876 # On IA64, the linker does run time linking by default, so we don't
12877 # have to do anything special.
12878 aix_use_runtimelinking=no
12879 exp_sym_flag='-Bexport'
12880 no_entry_flag=""
12881 else
12882 # If we're using GNU nm, then we don't want the "-C" option.
12883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12884 # Also, AIX nm treats weak defined symbols like other global
12885 # defined symbols, whereas GNU nm marks them as "W".
12886 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12887 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'
12888 else
12889 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'
12890 fi
12891 aix_use_runtimelinking=no
12892
12893 # Test if we are trying to use run time linking or normal
12894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12895 # need to do runtime linking.
12896 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12897 for ld_flag in $LDFLAGS; do
12898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12899 aix_use_runtimelinking=yes
12900 break
12901 fi
12902 done
12903 ;;
12904 esac
12905
12906 exp_sym_flag='-bexport'
12907 no_entry_flag='-bnoentry'
12908 fi
12909
12910 # When large executables or shared objects are built, AIX ld can
12911 # have problems creating the table of contents. If linking a library
12912 # or program results in "error TOC overflow" add -mminimal-toc to
12913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12915
12916 archive_cmds_GO=''
12917 hardcode_direct_GO=yes
12918 hardcode_direct_absolute_GO=yes
12919 hardcode_libdir_separator_GO=':'
12920 link_all_deplibs_GO=yes
12921 file_list_spec_GO='${wl}-f,'
12922
12923 if test "$GCC" = yes; then
12924 case $host_os in aix4.[012]|aix4.[012].*)
12925 # We only want to do this on AIX 4.2 and lower, the check
12926 # below for broken collect2 doesn't work under 4.3+
12927 collect2name=`${CC} -print-prog-name=collect2`
12928 if test -f "$collect2name" &&
12929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12930 then
12931 # We have reworked collect2
12932 :
12933 else
12934 # We have old collect2
12935 hardcode_direct_GO=unsupported
12936 # It fails to find uninstalled libraries when the uninstalled
12937 # path is not listed in the libpath. Setting hardcode_minus_L
12938 # to unsupported forces relinking
12939 hardcode_minus_L_GO=yes
12940 hardcode_libdir_flag_spec_GO='-L$libdir'
12941 hardcode_libdir_separator_GO=
12942 fi
12943 ;;
12944 esac
12945 shared_flag='-shared'
12946 if test "$aix_use_runtimelinking" = yes; then
12947 shared_flag="$shared_flag "'${wl}-G'
12948 fi
12949 else
12950 # not using gcc
12951 if test "$host_cpu" = ia64; then
12952 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12953 # chokes on -Wl,-G. The following line is correct:
12954 shared_flag='-G'
12955 else
12956 if test "$aix_use_runtimelinking" = yes; then
12957 shared_flag='${wl}-G'
12958 else
12959 shared_flag='${wl}-bM:SRE'
12960 fi
12961 fi
12962 fi
12963
12964 export_dynamic_flag_spec_GO='${wl}-bexpall'
12965 # It seems that -bexpall does not export symbols beginning with
12966 # underscore (_), so it is better to generate a list of symbols to export.
12967 always_export_symbols_GO=yes
12968 if test "$aix_use_runtimelinking" = yes; then
12969 # Warning - without using the other runtime loading flags (-brtl),
12970 # -berok will link without error, but may produce a broken library.
12971 allow_undefined_flag_GO='-berok'
12972 # Determine the default libpath from the value encoded in an
12973 # empty executable.
12974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12975/* end confdefs.h. */
12976
12977int
12978main ()
12979{
12980
12981 ;
12982 return 0;
12983}
12984_ACEOF
12985if ac_fn_c_try_link "$LINENO"; then :
12986
12987lt_aix_libpath_sed='
12988 /Import File Strings/,/^$/ {
12989 /^0/ {
12990 s/^0 *\(.*\)$/\1/
12991 p
12992 }
12993 }'
12994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12995# Check for a 64-bit object if we didn't find anything.
12996if test -z "$aix_libpath"; then
12997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12998fi
12999fi
13000rm -f core conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13003
13004 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13005 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"
13006 else
13007 if test "$host_cpu" = ia64; then
13008 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
13009 allow_undefined_flag_GO="-z nodefs"
13010 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"
13011 else
13012 # Determine the default libpath from the value encoded in an
13013 # empty executable.
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015/* end confdefs.h. */
13016
13017int
13018main ()
13019{
13020
13021 ;
13022 return 0;
13023}
13024_ACEOF
13025if ac_fn_c_try_link "$LINENO"; then :
13026
13027lt_aix_libpath_sed='
13028 /Import File Strings/,/^$/ {
13029 /^0/ {
13030 s/^0 *\(.*\)$/\1/
13031 p
13032 }
13033 }'
13034aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13035# Check for a 64-bit object if we didn't find anything.
13036if test -z "$aix_libpath"; then
13037 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13038fi
13039fi
13040rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13043
13044 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13045 # Warning - without using the other run time loading flags,
13046 # -berok will link without error, but may produce a broken library.
13047 no_undefined_flag_GO=' ${wl}-bernotok'
13048 allow_undefined_flag_GO=' ${wl}-berok'
13049 if test "$with_gnu_ld" = yes; then
13050 # We only use this code for GNU lds that support --whole-archive.
13051 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13052 else
13053 # Exported symbols can be pulled into shared objects from archives
13054 whole_archive_flag_spec_GO='$convenience'
13055 fi
13056 archive_cmds_need_lc_GO=yes
13057 # This is similar to how AIX traditionally builds its shared libraries.
13058 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'
13059 fi
13060 fi
13061 ;;
13062
13063 amigaos*)
13064 case $host_cpu in
13065 powerpc)
13066 # see comment about AmigaOS4 .so support
13067 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13068 archive_expsym_cmds_GO=''
13069 ;;
13070 m68k)
13071 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)'
13072 hardcode_libdir_flag_spec_GO='-L$libdir'
13073 hardcode_minus_L_GO=yes
13074 ;;
13075 esac
13076 ;;
13077
13078 bsdi[45]*)
13079 export_dynamic_flag_spec_GO=-rdynamic
13080 ;;
13081
13082 cygwin* | mingw* | pw32* | cegcc*)
13083 # When not using gcc, we currently assume that we are using
13084 # Microsoft Visual C++.
13085 # hardcode_libdir_flag_spec is actually meaningless, as there is
13086 # no search path for DLLs.
13087 hardcode_libdir_flag_spec_GO=' '
13088 allow_undefined_flag_GO=unsupported
13089 # Tell ltmain to make .lib files, not .a files.
13090 libext=lib
13091 # Tell ltmain to make .dll files, not .so files.
13092 shrext_cmds=".dll"
13093 # FIXME: Setting linknames here is a bad hack.
13094 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13095 # The linker will automatically build a .lib file if we build a DLL.
13096 old_archive_from_new_cmds_GO='true'
13097 # FIXME: Should let the user specify the lib program.
13098 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
13099 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
13100 enable_shared_with_static_runtimes_GO=yes
13101 ;;
13102
13103 darwin* | rhapsody*)
13104
13105
13106 archive_cmds_need_lc_GO=no
13107 hardcode_direct_GO=no
13108 hardcode_automatic_GO=yes
13109 hardcode_shlibpath_var_GO=unsupported
13110 if test "$lt_cv_ld_force_load" = "yes"; then
13111 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\"`'
13112 else
13113 whole_archive_flag_spec_GO=''
13114 fi
13115 link_all_deplibs_GO=yes
13116 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
13117 case $cc_basename in
13118 ifort*) _lt_dar_can_shared=yes ;;
13119 *) _lt_dar_can_shared=$GCC ;;
13120 esac
13121 if test "$_lt_dar_can_shared" = "yes"; then
13122 output_verbose_link_cmd=func_echo_all
13123 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}"
13124 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13125 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}"
13126 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}"
13127
13128 else
13129 ld_shlibs_GO=no
13130 fi
13131
13132 ;;
13133
13134 dgux*)
13135 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13136 hardcode_libdir_flag_spec_GO='-L$libdir'
13137 hardcode_shlibpath_var_GO=no
13138 ;;
13139
7a938933
ILT
13140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13141 # support. Future versions do this automatically, but an explicit c++rt0.o
13142 # does not break anything, and helps significantly (at the cost of a little
13143 # extra space).
13144 freebsd2.2*)
13145 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13146 hardcode_libdir_flag_spec_GO='-R$libdir'
13147 hardcode_direct_GO=yes
13148 hardcode_shlibpath_var_GO=no
13149 ;;
13150
13151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
327a26a3 13152 freebsd2.*)
7a938933
ILT
13153 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13154 hardcode_direct_GO=yes
13155 hardcode_minus_L_GO=yes
13156 hardcode_shlibpath_var_GO=no
13157 ;;
13158
13159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13160 freebsd* | dragonfly*)
13161 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13162 hardcode_libdir_flag_spec_GO='-R$libdir'
13163 hardcode_direct_GO=yes
13164 hardcode_shlibpath_var_GO=no
13165 ;;
13166
13167 hpux9*)
13168 if test "$GCC" = yes; then
13169 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'
13170 else
13171 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'
13172 fi
13173 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13174 hardcode_libdir_separator_GO=:
13175 hardcode_direct_GO=yes
13176
13177 # hardcode_minus_L: Not really in the search PATH,
13178 # but as the default location of the library.
13179 hardcode_minus_L_GO=yes
13180 export_dynamic_flag_spec_GO='${wl}-E'
13181 ;;
13182
13183 hpux10*)
13184 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13185 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13186 else
13187 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13188 fi
13189 if test "$with_gnu_ld" = no; then
13190 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13191 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13192 hardcode_libdir_separator_GO=:
13193 hardcode_direct_GO=yes
13194 hardcode_direct_absolute_GO=yes
13195 export_dynamic_flag_spec_GO='${wl}-E'
13196 # hardcode_minus_L: Not really in the search PATH,
13197 # but as the default location of the library.
13198 hardcode_minus_L_GO=yes
13199 fi
13200 ;;
13201
13202 hpux11*)
13203 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13204 case $host_cpu in
13205 hppa*64*)
13206 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13207 ;;
13208 ia64*)
13209 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13210 ;;
13211 *)
13212 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13213 ;;
13214 esac
13215 else
13216 case $host_cpu in
13217 hppa*64*)
13218 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13219 ;;
13220 ia64*)
13221 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13222 ;;
13223 *)
13224 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13225 ;;
13226 esac
13227 fi
13228 if test "$with_gnu_ld" = no; then
13229 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13230 hardcode_libdir_separator_GO=:
13231
13232 case $host_cpu in
13233 hppa*64*|ia64*)
13234 hardcode_direct_GO=no
13235 hardcode_shlibpath_var_GO=no
13236 ;;
13237 *)
13238 hardcode_direct_GO=yes
13239 hardcode_direct_absolute_GO=yes
13240 export_dynamic_flag_spec_GO='${wl}-E'
13241
13242 # hardcode_minus_L: Not really in the search PATH,
13243 # but as the default location of the library.
13244 hardcode_minus_L_GO=yes
13245 ;;
13246 esac
13247 fi
13248 ;;
13249
13250 irix5* | irix6* | nonstopux*)
13251 if test "$GCC" = yes; then
13252 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'
13253 # Try to use the -exported_symbol ld option, if it does not
13254 # work, assume that -exports_file does not work either and
13255 # implicitly export all symbols.
13256 save_LDFLAGS="$LDFLAGS"
13257 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259/* end confdefs.h. */
13260int foo(void) {}
13261_ACEOF
13262if ac_fn_c_try_link "$LINENO"; then :
13263 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'
13264
13265fi
13266rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LDFLAGS="$save_LDFLAGS"
13269 else
13270 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'
13271 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'
13272 fi
13273 archive_cmds_need_lc_GO='no'
13274 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13275 hardcode_libdir_separator_GO=:
13276 inherit_rpath_GO=yes
13277 link_all_deplibs_GO=yes
13278 ;;
13279
13280 netbsd*)
13281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13282 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13283 else
13284 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13285 fi
13286 hardcode_libdir_flag_spec_GO='-R$libdir'
13287 hardcode_direct_GO=yes
13288 hardcode_shlibpath_var_GO=no
13289 ;;
13290
13291 newsos6)
13292 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13293 hardcode_direct_GO=yes
13294 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13295 hardcode_libdir_separator_GO=:
13296 hardcode_shlibpath_var_GO=no
13297 ;;
13298
13299 *nto* | *qnx*)
13300 ;;
13301
13302 openbsd*)
13303 if test -f /usr/libexec/ld.so; then
13304 hardcode_direct_GO=yes
13305 hardcode_shlibpath_var_GO=no
13306 hardcode_direct_absolute_GO=yes
13307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13308 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13309 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13310 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13311 export_dynamic_flag_spec_GO='${wl}-E'
13312 else
13313 case $host_os in
13314 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13315 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13316 hardcode_libdir_flag_spec_GO='-R$libdir'
13317 ;;
13318 *)
13319 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13320 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13321 ;;
13322 esac
13323 fi
13324 else
13325 ld_shlibs_GO=no
13326 fi
13327 ;;
13328
13329 os2*)
13330 hardcode_libdir_flag_spec_GO='-L$libdir'
13331 hardcode_minus_L_GO=yes
13332 allow_undefined_flag_GO=unsupported
13333 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'
13334 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13335 ;;
13336
13337 osf3*)
13338 if test "$GCC" = yes; then
13339 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13340 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'
13341 else
13342 allow_undefined_flag_GO=' -expect_unresolved \*'
13343 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'
13344 fi
13345 archive_cmds_need_lc_GO='no'
13346 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13347 hardcode_libdir_separator_GO=:
13348 ;;
13349
13350 osf4* | osf5*) # as osf3* with the addition of -msym flag
13351 if test "$GCC" = yes; then
13352 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13353 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'
13354 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13355 else
13356 allow_undefined_flag_GO=' -expect_unresolved \*'
13357 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'
13358 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~
13359 $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'
13360
13361 # Both c and cxx compiler support -rpath directly
13362 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13363 fi
13364 archive_cmds_need_lc_GO='no'
13365 hardcode_libdir_separator_GO=:
13366 ;;
13367
13368 solaris*)
13369 no_undefined_flag_GO=' -z defs'
13370 if test "$GCC" = yes; then
13371 wlarc='${wl}'
13372 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13373 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13374 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13375 else
13376 case `$CC -V 2>&1` in
13377 *"Compilers 5.0"*)
13378 wlarc=''
13379 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13380 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13381 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13382 ;;
13383 *)
13384 wlarc='${wl}'
13385 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13386 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13387 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13388 ;;
13389 esac
13390 fi
13391 hardcode_libdir_flag_spec_GO='-R$libdir'
13392 hardcode_shlibpath_var_GO=no
13393 case $host_os in
13394 solaris2.[0-5] | solaris2.[0-5].*) ;;
13395 *)
13396 # The compiler driver will combine and reorder linker options,
13397 # but understands `-z linker_flag'. GCC discards it without `$wl',
13398 # but is careful enough not to reorder.
13399 # Supported since Solaris 2.6 (maybe 2.5.1?)
13400 if test "$GCC" = yes; then
13401 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13402 else
13403 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13404 fi
13405 ;;
13406 esac
13407 link_all_deplibs_GO=yes
13408 ;;
13409
13410 sunos4*)
13411 if test "x$host_vendor" = xsequent; then
13412 # Use $CC to link under sequent, because it throws in some extra .o
13413 # files that make .init and .fini sections work.
13414 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13415 else
13416 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13417 fi
13418 hardcode_libdir_flag_spec_GO='-L$libdir'
13419 hardcode_direct_GO=yes
13420 hardcode_minus_L_GO=yes
13421 hardcode_shlibpath_var_GO=no
13422 ;;
13423
13424 sysv4)
13425 case $host_vendor in
13426 sni)
13427 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13428 hardcode_direct_GO=yes # is this really true???
13429 ;;
13430 siemens)
13431 ## LD is ld it makes a PLAMLIB
13432 ## CC just makes a GrossModule.
13433 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13434 reload_cmds_GO='$CC -r -o $output$reload_objs'
13435 hardcode_direct_GO=no
13436 ;;
13437 motorola)
13438 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13439 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13440 ;;
13441 esac
13442 runpath_var='LD_RUN_PATH'
13443 hardcode_shlibpath_var_GO=no
13444 ;;
13445
13446 sysv4.3*)
13447 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448 hardcode_shlibpath_var_GO=no
13449 export_dynamic_flag_spec_GO='-Bexport'
13450 ;;
13451
13452 sysv4*MP*)
13453 if test -d /usr/nec; then
13454 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13455 hardcode_shlibpath_var_GO=no
13456 runpath_var=LD_RUN_PATH
13457 hardcode_runpath_var=yes
13458 ld_shlibs_GO=yes
13459 fi
13460 ;;
13461
13462 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13463 no_undefined_flag_GO='${wl}-z,text'
13464 archive_cmds_need_lc_GO=no
13465 hardcode_shlibpath_var_GO=no
13466 runpath_var='LD_RUN_PATH'
13467
13468 if test "$GCC" = yes; then
13469 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13470 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13471 else
13472 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13473 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13474 fi
13475 ;;
13476
13477 sysv5* | sco3.2v5* | sco5v6*)
13478 # Note: We can NOT use -z defs as we might desire, because we do not
13479 # link with -lc, and that would cause any symbols used from libc to
13480 # always be unresolved, which means just about no library would
13481 # ever link correctly. If we're not using GNU ld we use -z text
13482 # though, which does catch some bad symbols but isn't as heavy-handed
13483 # as -z defs.
13484 no_undefined_flag_GO='${wl}-z,text'
13485 allow_undefined_flag_GO='${wl}-z,nodefs'
13486 archive_cmds_need_lc_GO=no
13487 hardcode_shlibpath_var_GO=no
13488 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13489 hardcode_libdir_separator_GO=':'
13490 link_all_deplibs_GO=yes
13491 export_dynamic_flag_spec_GO='${wl}-Bexport'
13492 runpath_var='LD_RUN_PATH'
13493
13494 if test "$GCC" = yes; then
13495 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13496 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13497 else
13498 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13499 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13500 fi
13501 ;;
13502
13503 uts4*)
13504 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13505 hardcode_libdir_flag_spec_GO='-L$libdir'
13506 hardcode_shlibpath_var_GO=no
13507 ;;
13508
13509 *)
13510 ld_shlibs_GO=no
13511 ;;
13512 esac
13513
13514 if test x$host_vendor = xsni; then
13515 case $host in
13516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13517 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13518 ;;
13519 esac
13520 fi
13521 fi
13522
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13524$as_echo "$ld_shlibs_GO" >&6; }
13525test "$ld_shlibs_GO" = no && can_build_shared=no
13526
13527with_gnu_ld_GO=$with_gnu_ld
13528
13529
13530
13531
13532
13533
13534#
13535# Do we need to explicitly link libc?
13536#
13537case "x$archive_cmds_need_lc_GO" in
13538x|xyes)
13539 # Assume -lc should be added
13540 archive_cmds_need_lc_GO=yes
13541
13542 if test "$enable_shared" = yes && test "$GCC" = yes; then
13543 case $archive_cmds_GO in
13544 *'~'*)
13545 # FIXME: we may have to deal with multi-command sequences.
13546 ;;
13547 '$CC '*)
13548 # Test whether the compiler implicitly links with -lc since on some
13549 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13550 # to ld, don't add -lc before -lgcc.
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13552$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
73b6d7a9 13553if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
7a938933
ILT
13554 $as_echo_n "(cached) " >&6
13555else
13556 $RM conftest*
13557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13558
13559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13560 (eval $ac_compile) 2>&5
13561 ac_status=$?
13562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563 test $ac_status = 0; } 2>conftest.err; then
13564 soname=conftest
13565 lib=conftest
13566 libobjs=conftest.$ac_objext
13567 deplibs=
13568 wl=$lt_prog_compiler_wl_GO
13569 pic_flag=$lt_prog_compiler_pic_GO
13570 compiler_flags=-v
13571 linker_flags=-v
13572 verstring=
13573 output_objdir=.
13574 libname=conftest
13575 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13576 allow_undefined_flag_GO=
13577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13578 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13579 ac_status=$?
13580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13581 test $ac_status = 0; }
13582 then
13583 lt_cv_archive_cmds_need_lc_GO=no
13584 else
13585 lt_cv_archive_cmds_need_lc_GO=yes
13586 fi
13587 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13588 else
13589 cat conftest.err 1>&5
13590 fi
13591 $RM conftest*
13592
13593fi
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13595$as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13596 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13597 ;;
13598 esac
13599 fi
13600 ;;
13601esac
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
13660
13661
13662
13663
13664
13665
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13667$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13668hardcode_action_GO=
13669if test -n "$hardcode_libdir_flag_spec_GO" ||
13670 test -n "$runpath_var_GO" ||
13671 test "X$hardcode_automatic_GO" = "Xyes" ; then
13672
13673 # We can hardcode non-existent directories.
13674 if test "$hardcode_direct_GO" != no &&
13675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13676 # have to relink, otherwise we might link with an installed library
13677 # when we should be linking with a yet-to-be-installed one
13678 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13679 test "$hardcode_minus_L_GO" != no; then
13680 # Linking always hardcodes the temporary library directory.
13681 hardcode_action_GO=relink
13682 else
13683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13684 hardcode_action_GO=immediate
13685 fi
13686else
13687 # We cannot hardcode anything, or else we can only hardcode existing
13688 # directories.
13689 hardcode_action_GO=unsupported
13690fi
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13692$as_echo "$hardcode_action_GO" >&6; }
13693
13694if test "$hardcode_action_GO" = relink ||
13695 test "$inherit_rpath_GO" = yes; then
13696 # Fast installation is not supported
13697 enable_fast_install=no
13698elif test "$shlibpath_overrides_runpath" = yes ||
13699 test "$enable_shared" = no; then
13700 # Fast installation is not necessary
13701 enable_fast_install=needless
13702fi
13703
13704
13705
13706
13707
13708
13709
13710fi
13711
13712ac_ext=c
13713ac_cpp='$CPP $CPPFLAGS'
13714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13716ac_compiler_gnu=$ac_cv_c_compiler_gnu
13717
13718
13719GCC=$lt_save_GCC
13720CC="$lt_save_CC"
13721
13722
13723
13724
13725 ac_config_commands="$ac_config_commands libtool"
13726
13727
13728
13729
13730# Only expand once:
13731
13732
13733
13734
13735
d983a802
ILT
13736CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13737
13738
de27caac
ILT
13739for ac_prog in gawk mawk nawk awk
13740do
13741 # Extract the first word of "$ac_prog", so it can be a program name with args.
13742set dummy $ac_prog; ac_word=$2
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744$as_echo_n "checking for $ac_word... " >&6; }
73b6d7a9 13745if ${ac_cv_prog_AWK+:} false; then :
de27caac
ILT
13746 $as_echo_n "(cached) " >&6
13747else
13748 if test -n "$AWK"; then
13749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13750else
13751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752for as_dir in $PATH
13753do
13754 IFS=$as_save_IFS
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
73b6d7a9 13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
de27caac
ILT
13758 ac_cv_prog_AWK="$ac_prog"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760 break 2
13761 fi
13762done
13763 done
13764IFS=$as_save_IFS
13765
13766fi
13767fi
13768AWK=$ac_cv_prog_AWK
13769if test -n "$AWK"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13771$as_echo "$AWK" >&6; }
13772else
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
13775fi
13776
13777
13778 test -n "$AWK" && break
13779done
13780
13781
7a938933
ILT
13782WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13783
13784
0d4668c1
ILT
13785# Check whether --enable-werror was given.
13786if test "${enable_werror+set}" = set; then :
13787 enableval=$enable_werror;
13788fi
13789
13790if test "x$enable_werror" != "xno"; then
13791 WERROR="-Werror"
13792fi
7a938933
ILT
13793
13794
13795glibgo_toolexecdir=no
13796glibgo_toolexeclibdir=no
7a938933
ILT
13797
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13799$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13800# Check whether --enable-version-specific-runtime-libs was given.
13801if test "${enable_version_specific_runtime_libs+set}" = set; then :
13802 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13803 yes) version_specific_libs=yes ;;
13804 no) version_specific_libs=no ;;
73b6d7a9 13805 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
7a938933
ILT
13806 esac
13807else
13808 version_specific_libs=no
13809fi
13810
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13812$as_echo "$version_specific_libs" >&6; }
13813
ba386bea
ILT
13814
13815# Check whether --with-toolexeclibdir was given.
13816if test "${with_toolexeclibdir+set}" = set; then :
13817 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
13818 /)
13819 ;;
13820 */)
13821 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
13822 ;;
13823esac
13824else
13825 with_toolexeclibdir=no
13826fi
13827
13828
13829
7a938933
ILT
13830# Version-specific runtime libs processing.
13831if test $version_specific_libs = yes; then
13832 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13833 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13834fi
13835
13836# Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13837# Install a library built with a cross compiler in tooldir, not libdir.
317ea7c0
ILT
13838if test -n "$with_cross_host" &&
13839 test x"$with_cross_host" != x"no"; then
13840 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
ba386bea
ILT
13841 case ${with_toolexeclibdir} in
13842 no)
13843 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13844 ;;
13845 *)
13846 nover_glibgo_toolexeclibdir=${with_toolexeclibdir}
13847 ;;
13848 esac
317ea7c0
ILT
13849else
13850 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13851 nover_glibgo_toolexeclibdir='${libdir}'
13852fi
6c76a95d 13853multi_os_directory=`$GOC -print-multi-os-directory`
317ea7c0
ILT
13854case $multi_os_directory in
13855 .) ;; # Avoid trailing /.
13856 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13857esac
13858
7a938933 13859if test x"$glibgo_toolexecdir" = x"no"; then
317ea7c0
ILT
13860 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13861 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
7a938933
ILT
13862fi
13863
13864
13865
13866
13867
13868# See if the user wants to configure without libffi. Some
13869# architectures don't support it. FIXME: We should set a default
13870# based on the host.
13871
13872# Check whether --with-libffi was given.
13873if test "${with_libffi+set}" = set; then :
13874 withval=$with_libffi; :
13875else
13876 with_libffi=${with_libffi_default-yes}
13877fi
13878
13879
13880LIBFFI=
13881LIBFFIINCS=
13882if test "$with_libffi" != no; then
13883
13884$as_echo "#define USE_LIBFFI 1" >>confdefs.h
13885
13886 LIBFFI=../libffi/libffi_convenience.la
13887 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13888fi
13889
13890
8b9cfd76 13891 if test "$with_libffi" != "no"; then
5302cd02
ILT
13892 USE_LIBFFI_TRUE=
13893 USE_LIBFFI_FALSE='#'
13894else
13895 USE_LIBFFI_TRUE='#'
13896 USE_LIBFFI_FALSE=
13897fi
13898
7a938933 13899
9a85ed03
ILT
13900# See if the user wants to configure without libatomic. This is useful if we are
13901# on an architecture for which libgo does not need an atomic support library and
13902# libatomic does not support our C compiler.
13903
13904# Check whether --with-libatomic was given.
13905if test "${with_libatomic+set}" = set; then :
13906 withval=$with_libatomic; :
13907else
13908 with_libatomic=${with_libatomic_default-yes}
13909fi
13910
13911
13912LIBATOMIC=
13913if test "$with_libatomic" != no; then
13914 LIBATOMIC=../libatomic/libatomic_convenience.la
13915fi
13916
13917
18c70075
ILT
13918# Used to tell GNU make to include a file without telling automake to
13919# include it.
13920go_include="-include"
13921
13922
a8464243
ILT
13923# All known GOOS values. This is the union of all operating systems
13924# supported by the gofrontend and all operating systems supported by
13925# the gc toolchain.
aa8901e9 13926ALLGOOS="aix android darwin dragonfly freebsd hurd illumos irix js linux netbsd openbsd plan9 rtems solaris windows"
a8464243 13927
7a938933
ILT
13928is_darwin=no
13929is_freebsd=no
654d2ec0 13930is_irix=no
7a938933 13931is_linux=no
1efa38d1 13932is_netbsd=no
4ccad563 13933is_openbsd=no
f038dae6 13934is_dragonfly=no
7a938933 13935is_rtems=no
f2ee78b8 13936is_solaris=no
f163907e 13937is_aix=no
d9f0237f 13938is_hurd=no
c3b5b97b 13939GOOS=unknown
7a938933 13940case ${host} in
f2ee78b8
ILT
13941 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13942 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
654d2ec0 13943 *-*-irix6*) is_irix=yes; GOOS=irix ;;
f2ee78b8 13944 *-*-linux*) is_linux=yes; GOOS=linux ;;
df4aa89a 13945 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
4ccad563 13946 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
f038dae6 13947 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
f2ee78b8
ILT
13948 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13949 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
f163907e 13950 *-*-aix*) is_aix=yes; GOOS=aix ;;
d9f0237f 13951 *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
7a938933
ILT
13952esac
13953 if test $is_darwin = yes; then
13954 LIBGO_IS_DARWIN_TRUE=
13955 LIBGO_IS_DARWIN_FALSE='#'
13956else
13957 LIBGO_IS_DARWIN_TRUE='#'
13958 LIBGO_IS_DARWIN_FALSE=
13959fi
13960
13961 if test $is_freebsd = yes; then
13962 LIBGO_IS_FREEBSD_TRUE=
13963 LIBGO_IS_FREEBSD_FALSE='#'
13964else
13965 LIBGO_IS_FREEBSD_TRUE='#'
13966 LIBGO_IS_FREEBSD_FALSE=
13967fi
13968
654d2ec0
ILT
13969 if test $is_irix = yes; then
13970 LIBGO_IS_IRIX_TRUE=
13971 LIBGO_IS_IRIX_FALSE='#'
13972else
13973 LIBGO_IS_IRIX_TRUE='#'
13974 LIBGO_IS_IRIX_FALSE=
13975fi
13976
7a938933
ILT
13977 if test $is_linux = yes; then
13978 LIBGO_IS_LINUX_TRUE=
13979 LIBGO_IS_LINUX_FALSE='#'
13980else
13981 LIBGO_IS_LINUX_TRUE='#'
13982 LIBGO_IS_LINUX_FALSE=
13983fi
13984
df4aa89a
ILT
13985 if test $is_netbsd = yes; then
13986 LIBGO_IS_NETBSD_TRUE=
13987 LIBGO_IS_NETBSD_FALSE='#'
13988else
13989 LIBGO_IS_NETBSD_TRUE='#'
13990 LIBGO_IS_NETBSD_FALSE=
13991fi
13992
4ccad563
ILT
13993 if test $is_openbsd = yes; then
13994 LIBGO_IS_OPENBSD_TRUE=
13995 LIBGO_IS_OPENBSD_FALSE='#'
13996else
13997 LIBGO_IS_OPENBSD_TRUE='#'
13998 LIBGO_IS_OPENBSD_FALSE=
13999fi
14000
824393bd 14001 if test $is_dragonfly = yes; then
f038dae6
ILT
14002 LIBGO_IS_DRAGONFLY_TRUE=
14003 LIBGO_IS_DRAGONFLY_FALSE='#'
14004else
14005 LIBGO_IS_DRAGONFLY_TRUE='#'
14006 LIBGO_IS_DRAGONFLY_FALSE=
14007fi
14008
7a938933
ILT
14009 if test $is_rtems = yes; then
14010 LIBGO_IS_RTEMS_TRUE=
14011 LIBGO_IS_RTEMS_FALSE='#'
14012else
14013 LIBGO_IS_RTEMS_TRUE='#'
14014 LIBGO_IS_RTEMS_FALSE=
14015fi
14016
f2ee78b8
ILT
14017 if test $is_solaris = yes; then
14018 LIBGO_IS_SOLARIS_TRUE=
14019 LIBGO_IS_SOLARIS_FALSE='#'
14020else
14021 LIBGO_IS_SOLARIS_TRUE='#'
14022 LIBGO_IS_SOLARIS_FALSE=
14023fi
14024
f163907e
ILT
14025 if test $is_aix = yes; then
14026 LIBGO_IS_AIX_TRUE=
14027 LIBGO_IS_AIX_FALSE='#'
14028else
14029 LIBGO_IS_AIX_TRUE='#'
14030 LIBGO_IS_AIX_FALSE=
14031fi
14032
d9f0237f
ILT
14033 if test $is_hurd = yes; then
14034 LIBGO_IS_HURD_TRUE=
14035 LIBGO_IS_HURD_FALSE='#'
14036else
14037 LIBGO_IS_HURD_TRUE='#'
14038 LIBGO_IS_HURD_FALSE=
14039fi
14040
22b955cc
ILT
14041 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14042 LIBGO_IS_BSD_TRUE=
14043 LIBGO_IS_BSD_FALSE='#'
14044else
14045 LIBGO_IS_BSD_TRUE='#'
14046 LIBGO_IS_BSD_FALSE=
14047fi
14048
7a938933 14049
c3b5b97b 14050
a8464243 14051
7134cf28
ILT
14052USE_DEJAGNU=no
14053case ${host} in
14054 *-*-rtems*) USE_DEJAGNU=yes ;;
553752e1 14055 ${build}) ;;
7134cf28
ILT
14056 *) USE_DEJAGNU=yes ;;
14057esac
14058
14059
a8464243
ILT
14060# All known GOARCH values. This is the union of all architectures
14061# supported by the gofrontend and all architectures supported by the
14062# gc toolchain.
ffad1c54
ILT
14063# To add a new architecture:
14064# - add it to this list
14065# - if appropriate, add an entry to ALLGOARCHFAMILY below
14066# - add an entry to the case on ${host} below to set GOARCH
14067# - update goarchList in libgo/go/go/build/syslist.go
14068# - update goarch.sh to report the values for this architecture
14069# - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14070# - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14071# - update arch lists in libgo/match.sh
14072# - update arch lists in libgo/testsuite/gotest
14073# - update +build lines in several places
14074# - libgo/go/runtime/lfstack_NNbit.go
14075# - libgo/go/runtime/hashNN.go
14076# - libgo/go/runtime/unalignedN.go
14077# - libgo/go/syscall/endian_XX.go
14078# - possibly others
14079# - possibly update files in libgo/go/internal/syscall/unix
87cbbc45 14080ALLGOARCH="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 14081
ffad1c54 14082# All known GOARCH family values.
87cbbc45 14083ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
a8464243 14084
c3b5b97b 14085GOARCH=unknown
7a938933 14086case ${host} in
e59b9171 14087 alpha*-*-*)
e59b9171
ILT
14088 GOARCH=alpha
14089 ;;
71d0d50a 14090 aarch64-*-*)
71d0d50a
ILT
14091 GOARCH=arm64
14092 ;;
9961856c
ILT
14093 aarch64_be-*-*)
14094 GOARCH=arm64be
14095 ;;
ca11cc98 14096 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
ca11cc98 14097 GOARCH=arm
1a2f01ef
ILT
14098 case ${host} in
14099 arm*b*-*-*)
14100 GOARCH=armbe
1a2f01ef
ILT
14101 ;;
14102 esac
ca11cc98 14103 ;;
c3b5b97b
ILT
14104 i[34567]86-*-* | x86_64-*-*)
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106/* end confdefs.h. */
14107
14108#ifdef __x86_64__
14109#error 64-bit
14110#endif
73b6d7a9 14111
c3b5b97b 14112_ACEOF
4a299bf4 14113if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14114 GOARCH=386
c3b5b97b 14115else
44ef0300
ILT
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117/* end confdefs.h. */
14118
14119#ifdef __ILP32__
14120#error x32
14121#endif
73b6d7a9 14122
44ef0300
ILT
14123_ACEOF
14124if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14125 GOARCH=amd64
44ef0300
ILT
14126else
14127 GOARCH=amd64p32
14128fi
14129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3b5b97b 14130fi
4a299bf4 14131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7a938933 14132 ;;
4f8e688a 14133 ia64-*-*)
4f8e688a
ILT
14134 GOARCH=ia64
14135 ;;
ca11cc98 14136 m68k*-*-*)
ca11cc98
ILT
14137 GOARCH=m68k
14138 ;;
14139 mips*-*-*)
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141/* end confdefs.h. */
14142
85a09210
ILT
14143#if _MIPS_SIM != _ABIO32
14144#error not o32
14145#endif
73b6d7a9 14146
85a09210
ILT
14147_ACEOF
14148if ac_fn_c_try_compile "$LINENO"; then :
14149 mips_abi="o32"
14150else
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152/* end confdefs.h. */
14153
14154#if _MIPS_SIM != _ABIN32
14155#error not n32
ca11cc98 14156#endif
73b6d7a9 14157
ca11cc98 14158_ACEOF
4a299bf4 14159if ac_fn_c_try_compile "$LINENO"; then :
85a09210 14160 mips_abi="n32"
ca11cc98 14161else
85a09210
ILT
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163/* end confdefs.h. */
14164
14165#if _MIPS_SIM != _ABI64
14166#error not n64
14167#endif
73b6d7a9 14168
85a09210
ILT
14169_ACEOF
14170if ac_fn_c_try_compile "$LINENO"; then :
14171 mips_abi="n64"
85a09210 14172else
73b6d7a9 14173 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
85a09210 14174mips_abi="n32"
ca11cc98 14175fi
4a299bf4 14176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
85a09210
ILT
14177fi
14178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14179fi
85a09210
ILT
14180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 case "$mips_abi" in
1701a9d8
ILT
14182 "o32") GOARCH=mips ;;
14183 "n32") GOARCH=mips64p32 ;;
14184 "n64") GOARCH=mips64 ;;
85a09210 14185 esac
a8464243 14186 case "${host}" in
1701a9d8 14187 mips*el-*-*)
f30d2091 14188 GOARCH="${GOARCH}le"
a8464243 14189 ;;
a8464243 14190 esac
ca11cc98 14191 ;;
746d6ed4
ILT
14192 nios2-*-*)
14193 GOARCH=nios2
14194 ;;
ca11cc98
ILT
14195 rs6000*-*-* | powerpc*-*-*)
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197/* end confdefs.h. */
14198
14199#ifdef _ARCH_PPC64
14200#error 64-bit
14201#endif
73b6d7a9 14202
ca11cc98 14203_ACEOF
4a299bf4 14204if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14205 GOARCH=ppc
6f7ccafa 14206else
a8464243 14207
a8464243 14208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6f7ccafa
ILT
14209/* end confdefs.h. */
14210
14211#if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14212#error 64be
14213#endif
73b6d7a9 14214
6f7ccafa
ILT
14215_ACEOF
14216if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14217 GOARCH=ppc64le
ca11cc98 14218else
a8464243 14219 GOARCH=ppc64
ca11cc98 14220fi
6f7ccafa
ILT
14221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222fi
4a299bf4 14223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7a938933 14224 ;;
2c5499b5
MR
14225 riscv*-*-*)
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227/* end confdefs.h. */
14228
14229#if __riscv_xlen == 64
14230#error 64-bit
14231#endif
14232
14233_ACEOF
14234if ac_fn_c_try_compile "$LINENO"; then :
14235 GOARCH=riscv
14236else
14237 GOARCH=riscv64
14238fi
14239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b613cc2e 14240 ;;
1fec5f52
ILT
14241 s390*-*-*)
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243/* end confdefs.h. */
14244
14245#if defined(__s390x__)
14246#error 64-bit
14247#endif
73b6d7a9 14248
1fec5f52
ILT
14249_ACEOF
14250if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14251 GOARCH=s390
1fec5f52 14252else
a8464243 14253 GOARCH=s390x
1fec5f52
ILT
14254fi
14255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fec5f52 14256 ;;
ffad1c54 14257 sh3eb*-*-* | sh4eb*-*-*)
fd0c1dd1 14258 GOARCH=shbe
fd0c1dd1 14259 ;;
ffad1c54 14260 sh3*-*-* | sh4*-*-*)
fd0c1dd1 14261 GOARCH=sh
fd0c1dd1 14262 ;;
f2ee78b8
ILT
14263 sparc*-*-*)
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265/* end confdefs.h. */
14266
14267#if defined(__sparcv9) || defined(__arch64__)
14268#error 64-bit
14269#endif
73b6d7a9 14270
f2ee78b8 14271_ACEOF
4a299bf4 14272if ac_fn_c_try_compile "$LINENO"; then :
a8464243 14273 GOARCH=sparc
f2ee78b8 14274else
a8464243 14275 GOARCH=sparc64
f2ee78b8 14276fi
4a299bf4 14277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f2ee78b8 14278 ;;
7a938933 14279esac
85a09210 14280
ca11cc98 14281
f98dd1a3 14282
ca11cc98 14283
de0f55db
ILT
14284 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14285 LIBGO_IS_X86_TRUE=
14286 LIBGO_IS_X86_FALSE='#'
14287else
14288 LIBGO_IS_X86_TRUE='#'
14289 LIBGO_IS_X86_FALSE=
14290fi
14291
14292
cba8a572
ILT
14293FUNCTION_DESCRIPTORS=false
14294case ${host} in
14295 rs6000*-*-* | powerpc*-*-*)
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297/* end confdefs.h. */
14298
14299#if _CALL_ELF == 1
14300#error descriptors
14301#endif
14302
14303_ACEOF
14304if ac_fn_c_try_compile "$LINENO"; then :
14305 FUNCTION_DESCRIPTORS=false
14306else
14307 FUNCTION_DESCRIPTORS=true
14308fi
14309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14310 ;;
14311esac
14312
14313
de27caac
ILT
14314GO_LIBCALL_OS_FILE=
14315GO_LIBCALL_OS_ARCH_FILE=
14316GO_SYSCALL_OS_FILE=
14317GO_SYSCALL_OS_ARCH_FILE=
204b9fc2
ILT
14318if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14319 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
ca11cc98 14320fi
204b9fc2
ILT
14321if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14322 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
de27caac 14323fi
204b9fc2
ILT
14324if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14325 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
de27caac 14326fi
204b9fc2
ILT
14327if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14328 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
de27caac
ILT
14329fi
14330
14331
14332
ca11cc98
ILT
14333
14334
d48be5df 14335OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
90630d19 14336case "$target" in
9f3b1e6c
ILT
14337 mips-sgi-irix6.5*)
14338 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14339 # msghdr in <sys/socket.h>.
d48be5df 14340 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
9f3b1e6c 14341 ;;
93ee143d 14342 *-*-solaris2.*)
90630d19 14343 # Solaris 10+ needs this so struct msghdr gets the msg_control
bbe847a1 14344 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
90630d19 14345 # above doesn't work with C99.
bbe847a1 14346 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
90630d19
ILT
14347 ;;
14348esac
14349
14350
c3c54e0f 14351
08934aed 14352 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
c3c54e0f 14353
08934aed
ILT
14354 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14355 # with a different meaning.
14356 case ${target_os} in
14357 solaris2*)
14358 ac_save_CFLAGS="$CFLAGS"
14359 CFLAGS="$CFLAGS -Wa,-nH"
c3c54e0f 14360
08934aed
ILT
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14362$as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3c54e0f
ILT
14364/* end confdefs.h. */
14365
14366int
14367main ()
14368{
14369return 0;
14370 ;
14371 return 0;
14372}
14373_ACEOF
08934aed
ILT
14374if ac_fn_c_try_compile "$LINENO"; then :
14375 ac_hwcap_flags=yes
c3c54e0f 14376else
08934aed 14377 ac_hwcap_flags=no
c3c54e0f 14378fi
08934aed
ILT
14379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 if test "$ac_hwcap_flags" = "yes"; then
14381 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14382 fi
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14384$as_echo "$ac_hwcap_flags" >&6; }
c3c54e0f 14385
08934aed
ILT
14386 CFLAGS="$ac_save_CFLAGS"
14387 ;;
14388 esac
c3c54e0f
ILT
14389
14390
c3c54e0f
ILT
14391
14392
7a938933
ILT
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14394$as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
73b6d7a9 14395if ${libgo_cv_c_split_stack_supported+:} false; then :
7a938933
ILT
14396 $as_echo_n "(cached) " >&6
14397else
14398 CFLAGS_hold=$CFLAGS
14399CFLAGS="$CFLAGS -fsplit-stack"
14400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401/* end confdefs.h. */
14402int i;
14403_ACEOF
14404if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14405 libgo_cv_c_split_stack_supported=yes
7a938933 14406else
f2ee78b8 14407 libgo_cv_c_split_stack_supported=no
7a938933
ILT
14408fi
14409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410CFLAGS=$CFLAGS_hold
14411fi
f2ee78b8
ILT
14412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14413$as_echo "$libgo_cv_c_split_stack_supported" >&6; }
c33c18cd
ILT
14414
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14416$as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
73b6d7a9 14417if ${libgo_cv_c_linker_split_non_split+:} false; then :
c33c18cd
ILT
14418 $as_echo_n "(cached) " >&6
14419else
14420 cat > conftest1.c << EOF
14421extern void f();
14422int main() { f(); return 0; }
14423EOF
14424cat > conftest2.c << EOF
14425void f() {}
14426EOF
207f844e
ILT
14427$CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14428$CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14429if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
c33c18cd
ILT
14430 libgo_cv_c_linker_split_non_split=yes
14431else
14432 libgo_cv_c_linker_split_non_split=no
14433fi
14434rm -f conftest1.* conftest2.* conftest
14435fi
14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14437$as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14438
14439if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
14440 SPLIT_STACK=-fsplit-stack
14441
14442$as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14443
14444else
14445 SPLIT_STACK=
14446fi
14447
c33c18cd 14448 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
7a938933
ILT
14449 USING_SPLIT_STACK_TRUE=
14450 USING_SPLIT_STACK_FALSE='#'
14451else
14452 USING_SPLIT_STACK_TRUE='#'
14453 USING_SPLIT_STACK_FALSE=
14454fi
14455
14456
a2bf11d1
ILT
14457if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14458 GO_SPLIT_STACK=-fno-split-stack
14459else
14460 GO_SPLIT_STACK=
14461fi
14462
14463
7a938933
ILT
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14465$as_echo_n "checking whether linker supports split stack... " >&6; }
73b6d7a9 14466if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
7a938933
ILT
14467 $as_echo_n "(cached) " >&6
14468else
f2ee78b8 14469 libgo_cv_c_linker_supports_split_stack=no
f56c5dd1 14470if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
f2ee78b8 14471 libgo_cv_c_linker_supports_split_stack=yes
7a938933
ILT
14472fi
14473fi
f2ee78b8
ILT
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14475$as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14476if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
7a938933
ILT
14477
14478$as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14479
14480fi
14481
4c46b5f0
ILT
14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14483$as_echo_n "checking whether compiler is llgo... " >&6; }
73b6d7a9 14484if ${libgo_cv_c_goc_is_llgo+:} false; then :
4c46b5f0
ILT
14485 $as_echo_n "(cached) " >&6
14486else
14487 libgo_cv_c_goc_is_llgo=no
14488if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14489 libgo_cv_c_goc_is_llgo=yes
14490fi
14491fi
14492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14493$as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14494 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14495 GOC_IS_LLGO_TRUE=
14496 GOC_IS_LLGO_FALSE='#'
14497else
14498 GOC_IS_LLGO_TRUE='#'
14499 GOC_IS_LLGO_FALSE=
14500fi
14501
14502
505b439a
ILT
14503MATH_LIBS=
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14505$as_echo_n "checking for sqrt in -lm... " >&6; }
73b6d7a9 14506if ${ac_cv_lib_m_sqrt+:} false; then :
505b439a
ILT
14507 $as_echo_n "(cached) " >&6
14508else
14509 ac_check_lib_save_LIBS=$LIBS
14510LIBS="-lm $LIBS"
14511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512/* end confdefs.h. */
14513
14514/* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14517#ifdef __cplusplus
14518extern "C"
14519#endif
14520char sqrt ();
14521int
14522main ()
14523{
14524return sqrt ();
14525 ;
14526 return 0;
14527}
14528_ACEOF
14529if ac_fn_c_try_link "$LINENO"; then :
14530 ac_cv_lib_m_sqrt=yes
14531else
14532 ac_cv_lib_m_sqrt=no
14533fi
14534rm -f core conftest.err conftest.$ac_objext \
14535 conftest$ac_exeext conftest.$ac_ext
14536LIBS=$ac_check_lib_save_LIBS
14537fi
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14539$as_echo "$ac_cv_lib_m_sqrt" >&6; }
73b6d7a9 14540if test "x$ac_cv_lib_m_sqrt" = xyes; then :
505b439a
ILT
14541 MATH_LIBS=-lm
14542fi
14543
14544
14545
f2ee78b8
ILT
14546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14547$as_echo_n "checking for socket libraries... " >&6; }
73b6d7a9 14548if ${libgo_cv_lib_sockets+:} false; then :
f2ee78b8
ILT
14549 $as_echo_n "(cached) " >&6
14550else
14551 libgo_cv_lib_sockets=
14552 libgo_check_both=no
14553 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
73b6d7a9 14554if test "x$ac_cv_func_connect" = xyes; then :
f2ee78b8
ILT
14555 libgo_check_socket=no
14556else
14557 libgo_check_socket=yes
14558fi
14559
14560 if test "$libgo_check_socket" = "yes"; then
14561 unset ac_cv_func_connect
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14563$as_echo_n "checking for main in -lsocket... " >&6; }
73b6d7a9 14564if ${ac_cv_lib_socket_main+:} false; then :
f2ee78b8
ILT
14565 $as_echo_n "(cached) " >&6
14566else
14567 ac_check_lib_save_LIBS=$LIBS
14568LIBS="-lsocket $LIBS"
14569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14570/* end confdefs.h. */
14571
14572
14573int
14574main ()
14575{
14576return main ();
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581if ac_fn_c_try_link "$LINENO"; then :
14582 ac_cv_lib_socket_main=yes
14583else
14584 ac_cv_lib_socket_main=no
14585fi
14586rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14588LIBS=$ac_check_lib_save_LIBS
14589fi
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14591$as_echo "$ac_cv_lib_socket_main" >&6; }
73b6d7a9 14592if test "x$ac_cv_lib_socket_main" = xyes; then :
f2ee78b8
ILT
14593 libgo_cv_lib_sockets="-lsocket"
14594else
14595 libgo_check_both=yes
14596fi
14597
14598 fi
14599 if test "$libgo_check_both" = "yes"; then
14600 libgo_old_libs=$LIBS
14601 LIBS="$LIBS -lsocket -lnsl"
14602 unset ac_cv_func_accept
14603 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
73b6d7a9 14604if test "x$ac_cv_func_accept" = xyes; then :
f2ee78b8
ILT
14605 libgo_check_nsl=no
14606 libgo_cv_lib_sockets="-lsocket -lnsl"
14607fi
14608
14609 unset ac_cv_func_accept
14610 LIBS=$libgo_old_libs
14611 fi
14612 unset ac_cv_func_gethostbyname
14613 libgo_old_libs="$LIBS"
14614 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
73b6d7a9 14615if test "x$ac_cv_func_gethostbyname" = xyes; then :
f2ee78b8
ILT
14616
14617else
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14619$as_echo_n "checking for main in -lnsl... " >&6; }
73b6d7a9 14620if ${ac_cv_lib_nsl_main+:} false; then :
f2ee78b8
ILT
14621 $as_echo_n "(cached) " >&6
14622else
14623 ac_check_lib_save_LIBS=$LIBS
14624LIBS="-lnsl $LIBS"
14625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626/* end confdefs.h. */
14627
14628
14629int
14630main ()
14631{
14632return main ();
14633 ;
14634 return 0;
14635}
14636_ACEOF
14637if ac_fn_c_try_link "$LINENO"; then :
14638 ac_cv_lib_nsl_main=yes
14639else
14640 ac_cv_lib_nsl_main=no
14641fi
14642rm -f core conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14644LIBS=$ac_check_lib_save_LIBS
14645fi
14646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14647$as_echo "$ac_cv_lib_nsl_main" >&6; }
73b6d7a9 14648if test "x$ac_cv_lib_nsl_main" = xyes; then :
f2ee78b8
ILT
14649 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14650fi
14651
14652fi
14653
14654 unset ac_cv_func_gethostbyname
88cf4de8 14655 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
73b6d7a9 14656if test "x$ac_cv_func_sendfile" = xyes; then :
88cf4de8
ILT
14657
14658else
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14660$as_echo_n "checking for main in -lsendfile... " >&6; }
73b6d7a9 14661if ${ac_cv_lib_sendfile_main+:} false; then :
88cf4de8
ILT
14662 $as_echo_n "(cached) " >&6
14663else
14664 ac_check_lib_save_LIBS=$LIBS
14665LIBS="-lsendfile $LIBS"
14666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667/* end confdefs.h. */
14668
14669
14670int
14671main ()
14672{
14673return main ();
14674 ;
14675 return 0;
14676}
14677_ACEOF
14678if ac_fn_c_try_link "$LINENO"; then :
14679 ac_cv_lib_sendfile_main=yes
14680else
14681 ac_cv_lib_sendfile_main=no
14682fi
14683rm -f core conftest.err conftest.$ac_objext \
14684 conftest$ac_exeext conftest.$ac_ext
14685LIBS=$ac_check_lib_save_LIBS
14686fi
14687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14688$as_echo "$ac_cv_lib_sendfile_main" >&6; }
73b6d7a9 14689if test "x$ac_cv_lib_sendfile_main" = xyes; then :
88cf4de8
ILT
14690 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14691fi
14692
14693fi
14694
f2ee78b8
ILT
14695 LIBS=$libgo_old_libs
14696
14697fi
14698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14699$as_echo "$libgo_cv_lib_sockets" >&6; }
14700NET_LIBS="$libgo_cv_lib_sockets"
14701
14702
6c94a9fa
ILT
14703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14704$as_echo_n "checking whether -pthread is supported... " >&6; }
73b6d7a9 14705if ${libgo_cv_lib_pthread+:} false; then :
6c94a9fa
ILT
14706 $as_echo_n "(cached) " >&6
14707else
14708 CFLAGS_hold=$CFLAGS
35e7db41 14709CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
6c94a9fa
ILT
14710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711/* end confdefs.h. */
14712int i;
14713_ACEOF
14714if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 14715 libgo_cv_lib_pthread=yes
6c94a9fa 14716else
f2ee78b8 14717 libgo_cv_lib_pthread=no
6c94a9fa
ILT
14718fi
14719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720CFLAGS=$CFLAGS_hold
14721fi
f2ee78b8
ILT
14722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14723$as_echo "$libgo_cv_lib_pthread" >&6; }
6c94a9fa 14724PTHREAD_CFLAGS=
f2ee78b8 14725if test "$libgo_cv_lib_pthread" = yes; then
35e7db41
ILT
14726 # RISC-V apparently adds -latomic when using -pthread.
14727 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
6c94a9fa
ILT
14728fi
14729
14730
14731PTHREAD_LIBS=
14732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14733$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
73b6d7a9 14734if ${ac_cv_lib_pthread_pthread_create+:} false; then :
6c94a9fa
ILT
14735 $as_echo_n "(cached) " >&6
14736else
14737 ac_check_lib_save_LIBS=$LIBS
14738LIBS="-lpthread $LIBS"
14739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740/* end confdefs.h. */
14741
14742/* Override any GCC internal prototype to avoid an error.
14743 Use char because int might match the return type of a GCC
14744 builtin and then its argument prototype would still apply. */
14745#ifdef __cplusplus
14746extern "C"
14747#endif
14748char pthread_create ();
14749int
14750main ()
14751{
14752return pthread_create ();
14753 ;
14754 return 0;
14755}
14756_ACEOF
14757if ac_fn_c_try_link "$LINENO"; then :
14758 ac_cv_lib_pthread_pthread_create=yes
14759else
14760 ac_cv_lib_pthread_pthread_create=no
14761fi
14762rm -f core conftest.err conftest.$ac_objext \
14763 conftest$ac_exeext conftest.$ac_ext
14764LIBS=$ac_check_lib_save_LIBS
14765fi
14766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14767$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
73b6d7a9 14768if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
6c94a9fa
ILT
14769 PTHREAD_LIBS=-lpthread
14770fi
14771
14772
14773
ed4ebabc
ILT
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14775$as_echo_n "checking for library containing sched_yield... " >&6; }
73b6d7a9 14776if ${ac_cv_search_sched_yield+:} false; then :
ed4ebabc
ILT
14777 $as_echo_n "(cached) " >&6
14778else
14779 ac_func_search_save_LIBS=$LIBS
14780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781/* end confdefs.h. */
14782
14783/* Override any GCC internal prototype to avoid an error.
14784 Use char because int might match the return type of a GCC
14785 builtin and then its argument prototype would still apply. */
14786#ifdef __cplusplus
14787extern "C"
14788#endif
14789char sched_yield ();
14790int
14791main ()
14792{
14793return sched_yield ();
14794 ;
14795 return 0;
14796}
14797_ACEOF
14798for ac_lib in '' rt; do
14799 if test -z "$ac_lib"; then
14800 ac_res="none required"
14801 else
14802 ac_res=-l$ac_lib
14803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14804 fi
14805 if ac_fn_c_try_link "$LINENO"; then :
14806 ac_cv_search_sched_yield=$ac_res
14807fi
14808rm -f core conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext
73b6d7a9 14810 if ${ac_cv_search_sched_yield+:} false; then :
ed4ebabc
ILT
14811 break
14812fi
14813done
73b6d7a9 14814if ${ac_cv_search_sched_yield+:} false; then :
ed4ebabc
ILT
14815
14816else
14817 ac_cv_search_sched_yield=no
14818fi
14819rm conftest.$ac_ext
14820LIBS=$ac_func_search_save_LIBS
14821fi
14822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14823$as_echo "$ac_cv_search_sched_yield" >&6; }
14824ac_res=$ac_cv_search_sched_yield
14825if test "$ac_res" != no; then :
14826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14827
ae135907
ILT
14828fi
14829
14830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14831$as_echo_n "checking for library containing nanosleep... " >&6; }
73b6d7a9 14832if ${ac_cv_search_nanosleep+:} false; then :
ae135907
ILT
14833 $as_echo_n "(cached) " >&6
14834else
14835 ac_func_search_save_LIBS=$LIBS
14836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837/* end confdefs.h. */
14838
14839/* Override any GCC internal prototype to avoid an error.
14840 Use char because int might match the return type of a GCC
14841 builtin and then its argument prototype would still apply. */
14842#ifdef __cplusplus
14843extern "C"
14844#endif
14845char nanosleep ();
14846int
14847main ()
14848{
14849return nanosleep ();
14850 ;
14851 return 0;
14852}
14853_ACEOF
14854for ac_lib in '' rt; do
14855 if test -z "$ac_lib"; then
14856 ac_res="none required"
14857 else
14858 ac_res=-l$ac_lib
14859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14860 fi
14861 if ac_fn_c_try_link "$LINENO"; then :
14862 ac_cv_search_nanosleep=$ac_res
14863fi
14864rm -f core conftest.err conftest.$ac_objext \
14865 conftest$ac_exeext
73b6d7a9 14866 if ${ac_cv_search_nanosleep+:} false; then :
ae135907
ILT
14867 break
14868fi
14869done
73b6d7a9 14870if ${ac_cv_search_nanosleep+:} false; then :
ae135907
ILT
14871
14872else
14873 ac_cv_search_nanosleep=no
14874fi
14875rm conftest.$ac_ext
14876LIBS=$ac_func_search_save_LIBS
14877fi
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14879$as_echo "$ac_cv_search_nanosleep" >&6; }
14880ac_res=$ac_cv_search_nanosleep
14881if test "$ac_res" != no; then :
14882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14883
bbbe8b33
ILT
14884fi
14885
14886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14887$as_echo_n "checking for library containing clock_gettime... " >&6; }
73b6d7a9 14888if ${ac_cv_search_clock_gettime+:} false; then :
bbbe8b33
ILT
14889 $as_echo_n "(cached) " >&6
14890else
14891 ac_func_search_save_LIBS=$LIBS
14892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14893/* end confdefs.h. */
14894
14895/* Override any GCC internal prototype to avoid an error.
14896 Use char because int might match the return type of a GCC
14897 builtin and then its argument prototype would still apply. */
14898#ifdef __cplusplus
14899extern "C"
14900#endif
14901char clock_gettime ();
14902int
14903main ()
14904{
14905return clock_gettime ();
14906 ;
14907 return 0;
14908}
14909_ACEOF
14910for ac_lib in '' rt; do
14911 if test -z "$ac_lib"; then
14912 ac_res="none required"
14913 else
14914 ac_res=-l$ac_lib
14915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14916 fi
14917 if ac_fn_c_try_link "$LINENO"; then :
14918 ac_cv_search_clock_gettime=$ac_res
14919fi
14920rm -f core conftest.err conftest.$ac_objext \
14921 conftest$ac_exeext
73b6d7a9 14922 if ${ac_cv_search_clock_gettime+:} false; then :
bbbe8b33
ILT
14923 break
14924fi
14925done
73b6d7a9 14926if ${ac_cv_search_clock_gettime+:} false; then :
bbbe8b33
ILT
14927
14928else
14929 ac_cv_search_clock_gettime=no
14930fi
14931rm conftest.$ac_ext
14932LIBS=$ac_func_search_save_LIBS
14933fi
14934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14935$as_echo "$ac_cv_search_clock_gettime" >&6; }
14936ac_res=$ac_cv_search_clock_gettime
14937if test "$ac_res" != no; then :
14938 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14939
ed4ebabc
ILT
14940fi
14941
14942
7a938933
ILT
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14944$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
73b6d7a9 14945if ${ac_cv_c_bigendian+:} false; then :
7a938933
ILT
14946 $as_echo_n "(cached) " >&6
14947else
14948 ac_cv_c_bigendian=unknown
14949 # See if we're dealing with a universal compiler.
14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951/* end confdefs.h. */
14952#ifndef __APPLE_CC__
14953 not a universal capable compiler
14954 #endif
14955 typedef int dummy;
14956
14957_ACEOF
14958if ac_fn_c_try_compile "$LINENO"; then :
14959
14960 # Check for potential -arch flags. It is not universal unless
14961 # there are at least two -arch flags with different values.
14962 ac_arch=
14963 ac_prev=
14964 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14965 if test -n "$ac_prev"; then
14966 case $ac_word in
14967 i?86 | x86_64 | ppc | ppc64)
14968 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14969 ac_arch=$ac_word
14970 else
14971 ac_cv_c_bigendian=universal
14972 break
14973 fi
14974 ;;
14975 esac
14976 ac_prev=
14977 elif test "x$ac_word" = "x-arch"; then
14978 ac_prev=arch
14979 fi
14980 done
14981fi
14982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 if test $ac_cv_c_bigendian = unknown; then
14984 # See if sys/param.h defines the BYTE_ORDER macro.
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 ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14994 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14995 && LITTLE_ENDIAN)
14996 bogus endian macros
14997 #endif
14998
14999 ;
15000 return 0;
15001}
15002_ACEOF
15003if ac_fn_c_try_compile "$LINENO"; then :
15004 # It does; now see whether it defined to BIG_ENDIAN or not.
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006/* end confdefs.h. */
15007#include <sys/types.h>
15008 #include <sys/param.h>
15009
15010int
15011main ()
15012{
15013#if BYTE_ORDER != BIG_ENDIAN
15014 not big endian
15015 #endif
15016
15017 ;
15018 return 0;
15019}
15020_ACEOF
15021if ac_fn_c_try_compile "$LINENO"; then :
15022 ac_cv_c_bigendian=yes
15023else
15024 ac_cv_c_bigendian=no
15025fi
15026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15027fi
15028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 fi
15030 if test $ac_cv_c_bigendian = unknown; then
15031 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h. */
15034#include <limits.h>
15035
15036int
15037main ()
15038{
15039#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15040 bogus endian macros
15041 #endif
15042
15043 ;
15044 return 0;
15045}
15046_ACEOF
15047if ac_fn_c_try_compile "$LINENO"; then :
15048 # It does; now see whether it defined to _BIG_ENDIAN or not.
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050/* end confdefs.h. */
15051#include <limits.h>
15052
15053int
15054main ()
15055{
15056#ifndef _BIG_ENDIAN
15057 not big endian
15058 #endif
15059
15060 ;
15061 return 0;
15062}
15063_ACEOF
15064if ac_fn_c_try_compile "$LINENO"; then :
15065 ac_cv_c_bigendian=yes
15066else
15067 ac_cv_c_bigendian=no
15068fi
15069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070fi
15071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 fi
15073 if test $ac_cv_c_bigendian = unknown; then
15074 # Compile a test program.
15075 if test "$cross_compiling" = yes; then :
15076 # Try to guess by grepping values from an object file.
15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078/* end confdefs.h. */
15079short int ascii_mm[] =
15080 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15081 short int ascii_ii[] =
15082 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15083 int use_ascii (int i) {
15084 return ascii_mm[i] + ascii_ii[i];
15085 }
15086 short int ebcdic_ii[] =
15087 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15088 short int ebcdic_mm[] =
15089 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15090 int use_ebcdic (int i) {
15091 return ebcdic_mm[i] + ebcdic_ii[i];
15092 }
15093 extern int foo;
15094
15095int
15096main ()
15097{
15098return use_ascii (foo) == use_ebcdic (foo);
15099 ;
15100 return 0;
15101}
15102_ACEOF
15103if ac_fn_c_try_compile "$LINENO"; then :
15104 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15105 ac_cv_c_bigendian=yes
15106 fi
15107 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15108 if test "$ac_cv_c_bigendian" = unknown; then
15109 ac_cv_c_bigendian=no
15110 else
15111 # finding both strings is unlikely to happen, but who knows?
15112 ac_cv_c_bigendian=unknown
15113 fi
15114 fi
15115fi
15116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117else
15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119/* end confdefs.h. */
15120$ac_includes_default
15121int
15122main ()
15123{
15124
15125 /* Are we little or big endian? From Harbison&Steele. */
15126 union
15127 {
15128 long int l;
15129 char c[sizeof (long int)];
15130 } u;
15131 u.l = 1;
15132 return u.c[sizeof (long int) - 1] == 1;
15133
15134 ;
15135 return 0;
15136}
15137_ACEOF
15138if ac_fn_c_try_run "$LINENO"; then :
15139 ac_cv_c_bigendian=no
15140else
15141 ac_cv_c_bigendian=yes
15142fi
15143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15144 conftest.$ac_objext conftest.beam conftest.$ac_ext
15145fi
15146
15147 fi
15148fi
15149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15150$as_echo "$ac_cv_c_bigendian" >&6; }
15151 case $ac_cv_c_bigendian in #(
15152 yes)
15153 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15154;; #(
15155 no)
15156 ;; #(
15157 universal)
15158
15159$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15160
15161 ;; #(
15162 *)
73b6d7a9 15163 as_fn_error $? "unknown endianness
7a938933
ILT
15164 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15165 esac
15166
15167
54f0deb0
ILT
15168
15169
15170# Check whether --with-system-libunwind was given.
15171if test "${with_system_libunwind+set}" = set; then :
15172 withval=$with_system_libunwind;
15173fi
15174
15175 # If system-libunwind was not specifically set, pick a default setting.
15176 if test x$with_system_libunwind = x; then
15177 case ${target} in
15178 ia64-*-hpux*) with_system_libunwind=yes ;;
15179 *) with_system_libunwind=no ;;
15180 esac
15181 fi
15182 # Based on system-libunwind and target, do we have ipinfo?
15183 if test x$with_system_libunwind = xyes; then
15184 case ${target} in
15185 ia64-*-*) have_unwind_getipinfo=no ;;
15186 *) have_unwind_getipinfo=yes ;;
15187 esac
15188 else
15189 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15190
15191 case ${target} in
15192 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
15193 *) have_unwind_getipinfo=yes ;;
15194 esac
15195
15196 fi
15197
15198 if test x$have_unwind_getipinfo = xyes; then
15199
15200$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15201
15202 fi
15203
7a938933 15204
0cdde1e7 15205for 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/sysctl.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/bpf.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 lwp.h
7a938933
ILT
15206do :
15207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15208ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
73b6d7a9 15209if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7a938933
ILT
15210 cat >>confdefs.h <<_ACEOF
15211#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15212_ACEOF
15213
15214fi
15215
15216done
15217
adb0401d 15218
6222bddc
ILT
15219for ac_header in netinet/icmp6.h
15220do :
15221 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15222
15223"
73b6d7a9 15224if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
6222bddc
ILT
15225 cat >>confdefs.h <<_ACEOF
15226#define HAVE_NETINET_ICMP6_H 1
15227_ACEOF
15228
15229fi
15230
15231done
15232
15233
1410c222 15234for 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
15235do :
15236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15237ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15238#include <sys/socket.h>
15239#endif
15240
15241"
73b6d7a9 15242if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
adb0401d
ILT
15243 cat >>confdefs.h <<_ACEOF
15244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15245_ACEOF
15246
15247fi
15248
15249done
15250
15251
7a938933
ILT
15252 if test "$ac_cv_header_sys_mman_h" = yes; then
15253 HAVE_SYS_MMAN_H_TRUE=
15254 HAVE_SYS_MMAN_H_FALSE='#'
15255else
15256 HAVE_SYS_MMAN_H_TRUE='#'
15257 HAVE_SYS_MMAN_H_FALSE=
15258fi
15259
8955c80a 15260
d8ccfadb 15261for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
7a938933
ILT
15262do :
15263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15264ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
73b6d7a9 15265if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7a938933
ILT
15266 cat >>confdefs.h <<_ACEOF
15267#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15268_ACEOF
15269
15270fi
15271done
15272
8955c80a
ILT
15273 if test "$ac_cv_func_strerror_r" = yes; then
15274 HAVE_STRERROR_R_TRUE=
15275 HAVE_STRERROR_R_FALSE='#'
15276else
15277 HAVE_STRERROR_R_TRUE='#'
15278 HAVE_STRERROR_R_FALSE=
15279fi
15280
0b3189e7
ILT
15281 if test "$ac_cv_func_wait4" = yes; then
15282 HAVE_WAIT4_TRUE=
15283 HAVE_WAIT4_FALSE='#'
15284else
15285 HAVE_WAIT4_TRUE='#'
15286 HAVE_WAIT4_FALSE=
15287fi
15288
7a938933 15289
f163907e 15290for 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
15291do :
15292 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15293ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
73b6d7a9 15294if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e02ed81e
ILT
15295 cat >>confdefs.h <<_ACEOF
15296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15297_ACEOF
15298
15299fi
15300done
15301
5d46bf05 15302ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
73b6d7a9 15303if test "x$ac_cv_type_off_t" = xyes; then :
5d46bf05
ILT
15304
15305else
15306
15307cat >>confdefs.h <<_ACEOF
15308#define off_t long int
15309_ACEOF
15310
15311fi
15312
e02ed81e 15313ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
73b6d7a9 15314if test "x$ac_cv_type_loff_t" = xyes; then :
e02ed81e
ILT
15315
15316cat >>confdefs.h <<_ACEOF
15317#define HAVE_LOFF_T 1
15318_ACEOF
15319
15320
15321fi
15322
15323
324612b3
ILT
15324LIBS_hold="$LIBS"
15325LIBS="$LIBS -lm"
15326for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15327do :
15328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15329ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
73b6d7a9 15330if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
324612b3
ILT
15331 cat >>confdefs.h <<_ACEOF
15332#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15333_ACEOF
15334
15335fi
15336done
15337
15338LIBS="$LIBS_hold"
15339
08ee945e
ILT
15340CFLAGS_hold="$CFLAGS"
15341CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15342LIBS_hold="$LIBS"
15343LIBS="$LIBS $PTHREAD_LIBS"
15344for ac_func in sem_timedwait
15345do :
15346 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
73b6d7a9 15347if test "x$ac_cv_func_sem_timedwait" = xyes; then :
08ee945e
ILT
15348 cat >>confdefs.h <<_ACEOF
15349#define HAVE_SEM_TIMEDWAIT 1
15350_ACEOF
15351
15352fi
15353done
15354
15355CFLAGS="$CFLAGS_hold"
15356LIBS="$LIBS_hold"
15357
d2b480bc
ILT
15358LIBS_hold="$LIBS"
15359LIBS="$LIBS $MATH_LIBS"
15360for ac_func in matherr
15361do :
15362 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
73b6d7a9 15363if test "x$ac_cv_func_matherr" = xyes; then :
d2b480bc
ILT
15364 cat >>confdefs.h <<_ACEOF
15365#define HAVE_MATHERR 1
15366_ACEOF
15367
15368fi
15369done
15370
15371LIBS="$LIBS_hold"
15372
7a938933
ILT
15373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15374$as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
73b6d7a9 15375if ${libgo_cv_c_stringops+:} false; then :
7a938933
ILT
15376 $as_echo_n "(cached) " >&6
15377else
15378 CFLAGS_hold=$CFLAGS
15379CFLAGS="$CFLAGS -minline-all-stringops"
15380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h. */
15382int i;
15383_ACEOF
15384if ac_fn_c_try_compile "$LINENO"; then :
f2ee78b8 15385 libgo_cv_c_stringops=yes
7a938933 15386else
f2ee78b8 15387 libgo_cv_c_stringops=no
7a938933
ILT
15388fi
15389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390CFLAGS=$CFLAGS_hold
15391fi
f2ee78b8
ILT
15392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15393$as_echo "$libgo_cv_c_stringops" >&6; }
7a938933 15394STRINGOPS_FLAG=
f2ee78b8 15395if test "$libgo_cv_c_stringops" = yes; then
7a938933
ILT
15396 STRINGOPS_FLAG=-minline-all-stringops
15397fi
15398
15399
9d465faf
ILT
15400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15401$as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
73b6d7a9 15402if ${libgo_cv_c_fancymath+:} false; then :
9d465faf
ILT
15403 $as_echo_n "(cached) " >&6
15404else
15405 CFLAGS_hold=$CFLAGS
15406CFLAGS="$CFLAGS -mfancy-math-387"
15407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408/* end confdefs.h. */
15409int i;
15410_ACEOF
15411if ac_fn_c_try_compile "$LINENO"; then :
15412 libgo_cv_c_fancymath=yes
15413else
15414 libgo_cv_c_fancymath=no
15415fi
15416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15417CFLAGS=$CFLAGS_hold
15418fi
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15420$as_echo "$libgo_cv_c_fancymath" >&6; }
15421MATH_FLAG=
15422if test "$libgo_cv_c_fancymath" = yes; then
28f3c814 15423 MATH_FLAG="-mfancy-math-387"
9d465faf 15424fi
28f3c814 15425MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
9d465faf
ILT
15426
15427
7a938933
ILT
15428CFLAGS_hold=$CFLAGS
15429CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15430ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
73b6d7a9 15431if test "x$ac_cv_type_off64_t" = xyes; then :
7a938933
ILT
15432
15433cat >>confdefs.h <<_ACEOF
15434#define HAVE_OFF64_T 1
15435_ACEOF
15436
15437
15438fi
15439
15440CFLAGS=$CFLAGS_hold
15441
207c35fa
ILT
15442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15443$as_echo_n "checking epoll_event size... " >&6; }
73b6d7a9 15444if ${libgo_cv_c_epoll_event_size+:} false; then :
207c35fa
ILT
15445 $as_echo_n "(cached) " >&6
15446else
15447 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15448
15449else
15450 libgo_cv_c_epoll_event_size=0
15451fi
15452
15453fi
15454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15455$as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15456SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15457
15458
15459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15460$as_echo_n "checking epoll_event data.fd offset... " >&6; }
73b6d7a9 15461if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
207c35fa
ILT
15462 $as_echo_n "(cached) " >&6
15463else
15464 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15465#include <sys/epoll.h>"; then :
15466
15467else
15468 libgo_cv_c_epoll_event_fd_offset=0
15469fi
15470
15471fi
15472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15473$as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15474STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15475
15476
476013d6
ILT
15477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15478/* end confdefs.h. */
15479#include <sys/stat.h>
15480
15481_ACEOF
15482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15483 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15484 have_stat_timespec=yes
15485else
15486 have_stat_timespec=no
15487fi
15488rm -f conftest*
15489
15490 if test $have_stat_timespec = yes; then
15491 HAVE_STAT_TIMESPEC_TRUE=
15492 HAVE_STAT_TIMESPEC_FALSE='#'
15493else
15494 HAVE_STAT_TIMESPEC_TRUE='#'
15495 HAVE_STAT_TIMESPEC_FALSE=
15496fi
15497
15498
d2b480bc
ILT
15499ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15500"
73b6d7a9 15501if test "x$ac_cv_type_struct_exception" = xyes; then :
d2b480bc
ILT
15502 libgo_has_struct_exception=yes
15503else
15504 libgo_has_struct_exception=no
15505fi
15506
15507if test "$libgo_has_struct_exception" = "yes"; then
15508
15509$as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15510
15511fi
15512
7f57843f
ILT
15513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15514$as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
73b6d7a9 15515if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
7f57843f
ILT
15516 $as_echo_n "(cached) " >&6
15517else
e6c5817d
ILT
15518 CFLAGS_hold="$CFLAGS"
15519CFLAGS="$PTHREAD_CFLAGS"
15520LIBS_hold="$LIBS"
7f57843f 15521LIBS="$LIBS $PTHREAD_LIBS"
e6c5817d
ILT
15522# The cast to long int works around a bug in the HP C Compiler
15523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15525# This bug is HP SR number 8606223364.
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15527$as_echo_n "checking size of void *... " >&6; }
73b6d7a9 15528if ${ac_cv_sizeof_void_p+:} false; then :
e6c5817d
ILT
15529 $as_echo_n "(cached) " >&6
15530else
15531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15532
15533else
15534 if test "$ac_cv_type_void_p" = yes; then
15535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
73b6d7a9
ILT
15537as_fn_error 77 "cannot compute sizeof (void *)
15538See \`config.log' for more details" "$LINENO" 5; }
e6c5817d
ILT
15539 else
15540 ac_cv_sizeof_void_p=0
15541 fi
15542fi
15543
15544fi
15545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15546$as_echo "$ac_cv_sizeof_void_p" >&6; }
15547
15548
15549
15550cat >>confdefs.h <<_ACEOF
15551#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15552_ACEOF
15553
15554
15555as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
7f57843f 15556if test "$cross_compiling" = yes; then :
e6c5817d
ILT
15557 case "$target:$ptr_type_size" in
15558 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15559 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15560 *)
15561 libgo_cv_lib_setcontext_clobbers_tls=no ;;
7f57843f
ILT
15562 esac
15563
15564else
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566/* end confdefs.h. */
15567
15568#include <pthread.h>
15569#include <stdlib.h>
15570#include <ucontext.h>
15571#include <unistd.h>
15572
15573__thread int tls;
15574
15575static char stack[10 * 1024 * 1024];
15576static ucontext_t c;
15577
15578/* Called via makecontext/setcontext. */
15579
15580static void
15581cfn (void)
15582{
15583 exit (tls);
15584}
15585
15586/* Called via pthread_create. */
15587
15588static void *
15589tfn (void *dummy)
15590{
15591 /* The thread should still see this value after calling
15592 setcontext. */
15593 tls = 0;
15594
15595 setcontext (&c);
15596
15597 /* The call to setcontext should not return. */
15598 abort ();
15599}
15600
15601int
15602main ()
15603{
15604 pthread_t tid;
15605
15606 /* The thread should not see this value. */
15607 tls = 1;
15608
15609 if (getcontext (&c) < 0)
15610 abort ();
15611
15612 c.uc_stack.ss_sp = stack;
ca59d219
ILT
15613#ifdef MAKECONTEXT_STACK_TOP
15614 c.uc_stack.ss_sp += sizeof stack;
15615#endif
7f57843f
ILT
15616 c.uc_stack.ss_flags = 0;
15617 c.uc_stack.ss_size = sizeof stack;
15618 c.uc_link = NULL;
15619 makecontext (&c, cfn, 0);
15620
15621 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15622 abort ();
15623
15624 if (pthread_join (tid, NULL) != 0)
15625 abort ();
15626
15627 /* The thread should have called exit. */
15628 abort ();
15629}
15630
15631_ACEOF
15632if ac_fn_c_try_run "$LINENO"; then :
15633 libgo_cv_lib_setcontext_clobbers_tls=no
15634else
15635 libgo_cv_lib_setcontext_clobbers_tls=yes
15636fi
15637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15638 conftest.$ac_objext conftest.beam conftest.$ac_ext
15639fi
15640
e6c5817d 15641CFLAGS="$CFLAGS_hold"
7f57843f
ILT
15642LIBS="$LIBS_hold"
15643
15644fi
15645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15646$as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15647if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15648
15649$as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15650
15651fi
15652
cc1a9ac8
ILT
15653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15654$as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
73b6d7a9 15655if ${libgo_cv_ro_eh_frame+:} false; then :
cc1a9ac8
ILT
15656 $as_echo_n "(cached) " >&6
15657else
15658
15659libgo_cv_ro_eh_frame=no
15660echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15661if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15662 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15663 libgo_cv_ro_eh_frame=yes
15664 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15665 | grep -v '#write' > /dev/null; then
15666 libgo_cv_ro_eh_frame=yes
15667 fi
15668fi
15669rm -f conftest.*
15670
15671fi
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15673$as_echo "$libgo_cv_ro_eh_frame" >&6; }
15674if test "x$libgo_cv_ro_eh_frame" = xyes; then
15675
15676$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15677
15678else
15679
15680$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15681
15682fi
15683
a819231d
ILT
15684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15685$as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
73b6d7a9 15686if ${libgo_cv_c_unused_arguments+:} false; then :
a819231d
ILT
15687 $as_echo_n "(cached) " >&6
15688else
15689 CFLAGS_hold=$CFLAGS
15690CFLAGS="$CFLAGS -Qunused-arguments"
15691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692/* end confdefs.h. */
15693int i;
15694_ACEOF
15695if ac_fn_c_try_compile "$LINENO"; then :
15696 libgo_cv_c_unused_arguments=yes
15697else
15698 libgo_cv_c_unused_arguments=no
15699fi
15700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15701CFLAGS=$CFLAGS_hold
15702fi
15703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15704$as_echo "$libgo_cv_c_unused_arguments" >&6; }
15705
cc1a9ac8
ILT
15706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15707$as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
73b6d7a9 15708if ${libgo_cv_as_comdat_gnu+:} false; then :
cc1a9ac8
ILT
15709 $as_echo_n "(cached) " >&6
15710else
15711
15712echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
a819231d
ILT
15713CFLAGS_hold=$CFLAGS
15714if test "$libgo_cv_c_unused_arguments" = yes; then
15715 CFLAGS="$CFLAGS -Qunused-arguments"
15716fi
cc1a9ac8
ILT
15717if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15718 libgo_cv_as_comdat_gnu=yes
15719else
15720 libgo_cv_as_comdat_gnu=no
15721fi
a819231d 15722CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15723
15724fi
15725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15726$as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15727if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15728
15729$as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15730
15731fi
15732
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15734$as_echo_n "checking assembler supports pc related relocs... " >&6; }
73b6d7a9 15735if ${libgo_cv_as_x86_pcrel+:} false; then :
cc1a9ac8
ILT
15736 $as_echo_n "(cached) " >&6
15737else
15738
15739libgo_cv_as_x86_pcrel=yes
15740echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
a819231d
ILT
15741CFLAGS_hold=$CFLAGS
15742if test "$libgo_cv_c_unused_arguments" = yes; then
15743 CFLAGS="$CFLAGS -Qunused-arguments"
15744fi
cc1a9ac8
ILT
15745if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15746 libgo_cv_as_x86_pcrel=no
15747fi
a819231d 15748CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15749
15750fi
15751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15752$as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15753if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15754
15755$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15756
15757fi
15758
15759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15760$as_echo_n "checking assembler supports unwind section type... " >&6; }
73b6d7a9 15761if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
cc1a9ac8
ILT
15762 $as_echo_n "(cached) " >&6
15763else
15764
15765libgo_cv_as_x86_64_unwind_section_type=yes
15766echo '.section .eh_frame,"a",@unwind' > conftest.s
a819231d
ILT
15767CFLAGS_hold=$CFLAGS
15768if test "$libgo_cv_c_unused_arguments" = yes; then
15769 CFLAGS="$CFLAGS -Qunused-arguments"
15770fi
cc1a9ac8
ILT
15771if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15772 libgo_cv_as_x86_64_unwind_section_type=no
15773fi
a819231d 15774CFLAGS=$CFLAGS_hold
cc1a9ac8
ILT
15775
15776fi
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15778$as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15779if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15780
15781$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15782
15783fi
15784
b379f8d8
ILT
15785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15786$as_echo_n "checking assembler supports AES instructions... " >&6; }
73b6d7a9 15787if ${libgo_cv_as_x86_aes+:} false; then :
b379f8d8
ILT
15788 $as_echo_n "(cached) " >&6
15789else
15790
15791libgo_cv_as_x86_aes=yes
15792echo 'aesenc %xmm0, %xmm1' > conftest.s
15793CFLAGS_hold=$CFLAGS
15794if test "$libgo_cv_c_unused_arguments" = yes; then
15795 CFLAGS="$CFLAGS -Qunused-arguments"
15796fi
15797if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15798 libgo_cv_as_x86_aes=no
15799fi
15800CFLAGS=$CFLAGS_hold
15801
15802fi
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15804$as_echo "$libgo_cv_as_x86_aes" >&6; }
15805if test "x$libgo_cv_as_x86_aes" = xyes; then
15806
15807$as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15808
15809fi
15810
e478cacb
ILT
15811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -static is supported" >&5
15812$as_echo_n "checking whether -static is supported... " >&6; }
15813if ${libgo_cv_ld_static+:} false; then :
15814 $as_echo_n "(cached) " >&6
15815else
15816 LDFLAGS_hold=$LDFLAGS
15817LDFLAGS="$LDFLAGS -static"
15818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h. */
15820
15821int
15822main ()
15823{
15824
15825 ;
15826 return 0;
15827}
15828_ACEOF
15829if ac_fn_c_try_link "$LINENO"; then :
15830 libgo_cv_ld_static=yes
15831else
15832 libgo_cv_ld_static=no
15833fi
15834rm -f core conftest.err conftest.$ac_objext \
15835 conftest$ac_exeext conftest.$ac_ext
15836LDFLAGS=$LDFLAGS_hold
15837fi
15838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_static" >&5
15839$as_echo "$libgo_cv_ld_static" >&6; }
15840 if test "$libgo_cv_ld_static" = yes; then
15841 HAVE_STATIC_LINK_TRUE=
15842 HAVE_STATIC_LINK_FALSE='#'
15843else
15844 HAVE_STATIC_LINK_TRUE='#'
15845 HAVE_STATIC_LINK_FALSE=
15846fi
15847
15848
7a938933
ILT
15849cat >confcache <<\_ACEOF
15850# This file is a shell script that caches the results of configure
15851# tests run on this system so they can be shared between configure
15852# scripts and configure runs, see configure's option --config-cache.
15853# It is not useful on other systems. If it contains results you don't
15854# want to keep, you may remove or edit it.
15855#
15856# config.status only pays attention to the cache file if you give it
15857# the --recheck option to rerun configure.
15858#
15859# `ac_cv_env_foo' variables (set or unset) will be overridden when
15860# loading this file, other *unset* `ac_cv_foo' will be assigned the
15861# following values.
15862
15863_ACEOF
15864
15865# The following way of writing the cache mishandles newlines in values,
15866# but we know of no workaround that is simple, portable, and efficient.
15867# So, we kill variables containing newlines.
15868# Ultrix sh set writes to stderr and can't be redirected directly,
15869# and sets the high bit in the cache file unless we assign to the vars.
15870(
15871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15872 eval ac_val=\$$ac_var
15873 case $ac_val in #(
15874 *${as_nl}*)
15875 case $ac_var in #(
15876 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15877$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15878 esac
15879 case $ac_var in #(
15880 _ | IFS | as_nl) ;; #(
15881 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15882 *) { eval $ac_var=; unset $ac_var;} ;;
15883 esac ;;
15884 esac
15885 done
15886
15887 (set) 2>&1 |
15888 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15889 *${as_nl}ac_space=\ *)
15890 # `set' does not quote correctly, so add quotes: double-quote
15891 # substitution turns \\\\ into \\, and sed turns \\ into \.
15892 sed -n \
15893 "s/'/'\\\\''/g;
15894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15895 ;; #(
15896 *)
15897 # `set' quotes correctly as required by POSIX, so do not add quotes.
15898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15899 ;;
15900 esac |
15901 sort
15902) |
15903 sed '
15904 /^ac_cv_env_/b end
15905 t clear
15906 :clear
15907 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15908 t end
15909 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15910 :end' >>confcache
15911if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15912 if test -w "$cache_file"; then
73b6d7a9 15913 if test "x$cache_file" != "x/dev/null"; then
7a938933
ILT
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15915$as_echo "$as_me: updating cache $cache_file" >&6;}
73b6d7a9
ILT
15916 if test ! -f "$cache_file" || test -h "$cache_file"; then
15917 cat confcache >"$cache_file"
15918 else
15919 case $cache_file in #(
15920 */* | ?:*)
15921 mv -f confcache "$cache_file"$$ &&
15922 mv -f "$cache_file"$$ "$cache_file" ;; #(
15923 *)
15924 mv -f confcache "$cache_file" ;;
15925 esac
15926 fi
15927 fi
7a938933
ILT
15928 else
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15930$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15931 fi
15932fi
15933rm -f confcache
15934
15935if test ${multilib} = yes; then
15936 multilib_arg="--enable-multilib"
15937else
15938 multilib_arg=
15939fi
15940
b72813a6 15941ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
7a938933
ILT
15942
15943
15944ac_config_commands="$ac_config_commands default"
15945
15946
15947cat >confcache <<\_ACEOF
15948# This file is a shell script that caches the results of configure
15949# tests run on this system so they can be shared between configure
15950# scripts and configure runs, see configure's option --config-cache.
15951# It is not useful on other systems. If it contains results you don't
15952# want to keep, you may remove or edit it.
15953#
15954# config.status only pays attention to the cache file if you give it
15955# the --recheck option to rerun configure.
15956#
15957# `ac_cv_env_foo' variables (set or unset) will be overridden when
15958# loading this file, other *unset* `ac_cv_foo' will be assigned the
15959# following values.
15960
15961_ACEOF
15962
15963# The following way of writing the cache mishandles newlines in values,
15964# but we know of no workaround that is simple, portable, and efficient.
15965# So, we kill variables containing newlines.
15966# Ultrix sh set writes to stderr and can't be redirected directly,
15967# and sets the high bit in the cache file unless we assign to the vars.
15968(
15969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15970 eval ac_val=\$$ac_var
15971 case $ac_val in #(
15972 *${as_nl}*)
15973 case $ac_var in #(
15974 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15975$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15976 esac
15977 case $ac_var in #(
15978 _ | IFS | as_nl) ;; #(
15979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15980 *) { eval $ac_var=; unset $ac_var;} ;;
15981 esac ;;
15982 esac
15983 done
15984
15985 (set) 2>&1 |
15986 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15987 *${as_nl}ac_space=\ *)
15988 # `set' does not quote correctly, so add quotes: double-quote
15989 # substitution turns \\\\ into \\, and sed turns \\ into \.
15990 sed -n \
15991 "s/'/'\\\\''/g;
15992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15993 ;; #(
15994 *)
15995 # `set' quotes correctly as required by POSIX, so do not add quotes.
15996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15997 ;;
15998 esac |
15999 sort
16000) |
16001 sed '
16002 /^ac_cv_env_/b end
16003 t clear
16004 :clear
16005 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16006 t end
16007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16008 :end' >>confcache
16009if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16010 if test -w "$cache_file"; then
73b6d7a9 16011 if test "x$cache_file" != "x/dev/null"; then
7a938933
ILT
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16013$as_echo "$as_me: updating cache $cache_file" >&6;}
73b6d7a9
ILT
16014 if test ! -f "$cache_file" || test -h "$cache_file"; then
16015 cat confcache >"$cache_file"
16016 else
16017 case $cache_file in #(
16018 */* | ?:*)
16019 mv -f confcache "$cache_file"$$ &&
16020 mv -f "$cache_file"$$ "$cache_file" ;; #(
16021 *)
16022 mv -f confcache "$cache_file" ;;
16023 esac
16024 fi
16025 fi
7a938933
ILT
16026 else
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16028$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16029 fi
16030fi
16031rm -f confcache
16032
16033test "x$prefix" = xNONE && prefix=$ac_default_prefix
16034# Let make expand exec_prefix.
16035test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16036
16037DEFS=-DHAVE_CONFIG_H
16038
16039ac_libobjs=
16040ac_ltlibobjs=
73b6d7a9 16041U=
7a938933
ILT
16042for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16043 # 1. Remove the extension, and $U if already installed.
16044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16047 # will be set to the directory where LIBOBJS objects are built.
16048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16050done
16051LIBOBJS=$ac_libobjs
16052
16053LTLIBOBJS=$ac_ltlibobjs
16054
16055
73b6d7a9
ILT
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16057$as_echo_n "checking that generated files are newer than configure... " >&6; }
16058 if test -n "$am_sleep_pid"; then
16059 # Hide warnings about reused PIDs.
16060 wait $am_sleep_pid 2>/dev/null
16061 fi
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16063$as_echo "done" >&6; }
7a938933
ILT
16064 if test -n "$EXEEXT"; then
16065 am__EXEEXT_TRUE=
16066 am__EXEEXT_FALSE='#'
16067else
16068 am__EXEEXT_TRUE='#'
16069 am__EXEEXT_FALSE=
16070fi
16071
16072if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
73b6d7a9 16073 as_fn_error $? "conditional \"AMDEP\" was never defined.
7a938933
ILT
16074Usually this means the macro was only invoked conditionally." "$LINENO" 5
16075fi
16076if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
73b6d7a9 16077 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7a938933 16078Usually this means the macro was only invoked conditionally." "$LINENO" 5
4d12cf3c
ILT
16079fi
16080if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16081 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16082Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
16083fi
16084if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
73b6d7a9 16085 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7a938933
ILT
16086Usually this means the macro was only invoked conditionally." "$LINENO" 5
16087fi
5302cd02 16088if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
73b6d7a9 16089 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
5302cd02
ILT
16090Usually this means the macro was only invoked conditionally." "$LINENO" 5
16091fi
7a938933 16092if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
73b6d7a9 16093 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
7a938933
ILT
16094Usually this means the macro was only invoked conditionally." "$LINENO" 5
16095fi
16096if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
73b6d7a9 16097 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
7a938933 16098Usually this means the macro was only invoked conditionally." "$LINENO" 5
654d2ec0
ILT
16099fi
16100if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
73b6d7a9 16101 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
654d2ec0 16102Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
16103fi
16104if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
73b6d7a9 16105 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
7a938933
ILT
16106Usually this means the macro was only invoked conditionally." "$LINENO" 5
16107fi
df4aa89a 16108if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
73b6d7a9 16109 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
df4aa89a
ILT
16110Usually this means the macro was only invoked conditionally." "$LINENO" 5
16111fi
4ccad563 16112if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
73b6d7a9 16113 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
4ccad563
ILT
16114Usually this means the macro was only invoked conditionally." "$LINENO" 5
16115fi
f038dae6 16116if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
73b6d7a9 16117 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
f038dae6
ILT
16118Usually this means the macro was only invoked conditionally." "$LINENO" 5
16119fi
7a938933 16120if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
73b6d7a9 16121 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
7a938933
ILT
16122Usually this means the macro was only invoked conditionally." "$LINENO" 5
16123fi
f2ee78b8 16124if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
73b6d7a9 16125 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
7a938933
ILT
16126Usually this means the macro was only invoked conditionally." "$LINENO" 5
16127fi
f163907e 16128if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
73b6d7a9 16129 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
f163907e
ILT
16130Usually this means the macro was only invoked conditionally." "$LINENO" 5
16131fi
d9f0237f
ILT
16132if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16133 as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
16134Usually this means the macro was only invoked conditionally." "$LINENO" 5
16135fi
22b955cc 16136if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
73b6d7a9 16137 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
22b955cc
ILT
16138Usually this means the macro was only invoked conditionally." "$LINENO" 5
16139fi
de0f55db
ILT
16140if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16141 as_fn_error $? "conditional \"LIBGO_IS_X86\" was never defined.
16142Usually this means the macro was only invoked conditionally." "$LINENO" 5
16143fi
7a938933 16144if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
73b6d7a9 16145 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
7a938933 16146Usually this means the macro was only invoked conditionally." "$LINENO" 5
4c46b5f0
ILT
16147fi
16148if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
73b6d7a9 16149 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
4c46b5f0 16150Usually this means the macro was only invoked conditionally." "$LINENO" 5
7a938933
ILT
16151fi
16152
16153if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
73b6d7a9 16154 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
7a938933
ILT
16155Usually this means the macro was only invoked conditionally." "$LINENO" 5
16156fi
8955c80a 16157if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
73b6d7a9 16158 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
8955c80a
ILT
16159Usually this means the macro was only invoked conditionally." "$LINENO" 5
16160fi
0b3189e7 16161if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
73b6d7a9 16162 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
0b3189e7
ILT
16163Usually this means the macro was only invoked conditionally." "$LINENO" 5
16164fi
476013d6 16165if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
73b6d7a9 16166 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
476013d6
ILT
16167Usually this means the macro was only invoked conditionally." "$LINENO" 5
16168fi
e478cacb
ILT
16169if test -z "${HAVE_STATIC_LINK_TRUE}" && test -z "${HAVE_STATIC_LINK_FALSE}"; then
16170 as_fn_error $? "conditional \"HAVE_STATIC_LINK\" was never defined.
16171Usually this means the macro was only invoked conditionally." "$LINENO" 5
16172fi
7a938933 16173
73b6d7a9 16174: "${CONFIG_STATUS=./config.status}"
7a938933
ILT
16175ac_write_fail=0
16176ac_clean_files_save=$ac_clean_files
16177ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16178{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16179$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16180as_write_fail=0
16181cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16182#! $SHELL
16183# Generated by $as_me.
16184# Run this file to recreate the current configuration.
16185# Compiler output produced by configure, useful for debugging
16186# configure, is in config.log if it exists.
16187
16188debug=false
16189ac_cs_recheck=false
16190ac_cs_silent=false
16191
16192SHELL=\${CONFIG_SHELL-$SHELL}
16193export SHELL
16194_ASEOF
16195cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16196## -------------------- ##
16197## M4sh Initialization. ##
16198## -------------------- ##
16199
16200# Be more Bourne compatible
16201DUALCASE=1; export DUALCASE # for MKS sh
16202if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16203 emulate sh
16204 NULLCMD=:
16205 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16206 # is contrary to our usage. Disable this feature.
16207 alias -g '${1+"$@"}'='"$@"'
16208 setopt NO_GLOB_SUBST
16209else
16210 case `(set -o) 2>/dev/null` in #(
16211 *posix*) :
16212 set -o posix ;; #(
16213 *) :
16214 ;;
16215esac
16216fi
16217
16218
16219as_nl='
16220'
16221export as_nl
16222# Printing a long string crashes Solaris 7 /usr/bin/printf.
16223as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16224as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16225as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16226# Prefer a ksh shell builtin over an external printf program on Solaris,
16227# but without wasting forks for bash or zsh.
16228if test -z "$BASH_VERSION$ZSH_VERSION" \
16229 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16230 as_echo='print -r --'
16231 as_echo_n='print -rn --'
16232elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16233 as_echo='printf %s\n'
16234 as_echo_n='printf %s'
16235else
16236 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16237 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16238 as_echo_n='/usr/ucb/echo -n'
16239 else
16240 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16241 as_echo_n_body='eval
16242 arg=$1;
16243 case $arg in #(
16244 *"$as_nl"*)
16245 expr "X$arg" : "X\\(.*\\)$as_nl";
16246 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16247 esac;
16248 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16249 '
16250 export as_echo_n_body
16251 as_echo_n='sh -c $as_echo_n_body as_echo'
16252 fi
16253 export as_echo_body
16254 as_echo='sh -c $as_echo_body as_echo'
16255fi
16256
16257# The user is always right.
16258if test "${PATH_SEPARATOR+set}" != set; then
16259 PATH_SEPARATOR=:
16260 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16261 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16262 PATH_SEPARATOR=';'
16263 }
16264fi
16265
16266
16267# IFS
16268# We need space, tab and new line, in precisely that order. Quoting is
16269# there to prevent editors from complaining about space-tab.
16270# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16271# splitting by setting IFS to empty value.)
16272IFS=" "" $as_nl"
16273
16274# Find who we are. Look in the path if we contain no directory separator.
73b6d7a9 16275as_myself=
7a938933
ILT
16276case $0 in #((
16277 *[\\/]* ) as_myself=$0 ;;
16278 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16279for as_dir in $PATH
16280do
16281 IFS=$as_save_IFS
16282 test -z "$as_dir" && as_dir=.
16283 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16284 done
16285IFS=$as_save_IFS
16286
16287 ;;
16288esac
16289# We did not find ourselves, most probably we were run as `sh COMMAND'
16290# in which case we are not to be found in the path.
16291if test "x$as_myself" = x; then
16292 as_myself=$0
16293fi
16294if test ! -f "$as_myself"; then
16295 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16296 exit 1
16297fi
16298
16299# Unset variables that we do not need and which cause bugs (e.g. in
16300# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16301# suppresses any "Segmentation fault" message there. '((' could
16302# trigger a bug in pdksh 5.2.14.
16303for as_var in BASH_ENV ENV MAIL MAILPATH
16304do eval test x\${$as_var+set} = xset \
16305 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16306done
16307PS1='$ '
16308PS2='> '
16309PS4='+ '
16310
16311# NLS nuisances.
16312LC_ALL=C
16313export LC_ALL
16314LANGUAGE=C
16315export LANGUAGE
16316
16317# CDPATH.
16318(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16319
16320
73b6d7a9
ILT
16321# as_fn_error STATUS ERROR [LINENO LOG_FD]
16322# ----------------------------------------
7a938933
ILT
16323# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16324# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
73b6d7a9 16325# script with STATUS, using 1 if that was 0.
7a938933
ILT
16326as_fn_error ()
16327{
73b6d7a9
ILT
16328 as_status=$1; test $as_status -eq 0 && as_status=1
16329 if test "$4"; then
16330 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16331 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7a938933 16332 fi
73b6d7a9 16333 $as_echo "$as_me: error: $2" >&2
7a938933
ILT
16334 as_fn_exit $as_status
16335} # as_fn_error
16336
16337
16338# as_fn_set_status STATUS
16339# -----------------------
16340# Set $? to STATUS, without forking.
16341as_fn_set_status ()
16342{
16343 return $1
16344} # as_fn_set_status
16345
16346# as_fn_exit STATUS
16347# -----------------
16348# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16349as_fn_exit ()
16350{
16351 set +e
16352 as_fn_set_status $1
16353 exit $1
16354} # as_fn_exit
16355
16356# as_fn_unset VAR
16357# ---------------
16358# Portably unset VAR.
16359as_fn_unset ()
16360{
16361 { eval $1=; unset $1;}
16362}
16363as_unset=as_fn_unset
16364# as_fn_append VAR VALUE
16365# ----------------------
16366# Append the text in VALUE to the end of the definition contained in VAR. Take
16367# advantage of any shell optimizations that allow amortized linear growth over
16368# repeated appends, instead of the typical quadratic growth present in naive
16369# implementations.
16370if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16371 eval 'as_fn_append ()
16372 {
16373 eval $1+=\$2
16374 }'
16375else
16376 as_fn_append ()
16377 {
16378 eval $1=\$$1\$2
16379 }
16380fi # as_fn_append
16381
16382# as_fn_arith ARG...
16383# ------------------
16384# Perform arithmetic evaluation on the ARGs, and store the result in the
16385# global $as_val. Take advantage of shells that can avoid forks. The arguments
16386# must be portable across $(()) and expr.
16387if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16388 eval 'as_fn_arith ()
16389 {
16390 as_val=$(( $* ))
16391 }'
16392else
16393 as_fn_arith ()
16394 {
16395 as_val=`expr "$@" || test $? -eq 1`
16396 }
16397fi # as_fn_arith
16398
16399
16400if expr a : '\(a\)' >/dev/null 2>&1 &&
16401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16402 as_expr=expr
16403else
16404 as_expr=false
16405fi
16406
16407if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16408 as_basename=basename
16409else
16410 as_basename=false
16411fi
16412
16413if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16414 as_dirname=dirname
16415else
16416 as_dirname=false
16417fi
16418
16419as_me=`$as_basename -- "$0" ||
16420$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16421 X"$0" : 'X\(//\)$' \| \
16422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16423$as_echo X/"$0" |
16424 sed '/^.*\/\([^/][^/]*\)\/*$/{
16425 s//\1/
16426 q
16427 }
16428 /^X\/\(\/\/\)$/{
16429 s//\1/
16430 q
16431 }
16432 /^X\/\(\/\).*/{
16433 s//\1/
16434 q
16435 }
16436 s/.*/./; q'`
16437
16438# Avoid depending upon Character Ranges.
16439as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16440as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16441as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16442as_cr_digits='0123456789'
16443as_cr_alnum=$as_cr_Letters$as_cr_digits
16444
16445ECHO_C= ECHO_N= ECHO_T=
16446case `echo -n x` in #(((((
16447-n*)
16448 case `echo 'xy\c'` in
16449 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16450 xy) ECHO_C='\c';;
16451 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16452 ECHO_T=' ';;
16453 esac;;
16454*)
16455 ECHO_N='-n';;
16456esac
16457
16458rm -f conf$$ conf$$.exe conf$$.file
16459if test -d conf$$.dir; then
16460 rm -f conf$$.dir/conf$$.file
16461else
16462 rm -f conf$$.dir
16463 mkdir conf$$.dir 2>/dev/null
16464fi
16465if (echo >conf$$.file) 2>/dev/null; then
16466 if ln -s conf$$.file conf$$ 2>/dev/null; then
16467 as_ln_s='ln -s'
16468 # ... but there are two gotchas:
16469 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16470 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
73b6d7a9 16471 # In both cases, we have to default to `cp -pR'.
7a938933 16472 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
73b6d7a9 16473 as_ln_s='cp -pR'
7a938933
ILT
16474 elif ln conf$$.file conf$$ 2>/dev/null; then
16475 as_ln_s=ln
16476 else
73b6d7a9 16477 as_ln_s='cp -pR'
7a938933
ILT
16478 fi
16479else
73b6d7a9 16480 as_ln_s='cp -pR'
7a938933
ILT
16481fi
16482rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16483rmdir conf$$.dir 2>/dev/null
16484
16485
16486# as_fn_mkdir_p
16487# -------------
16488# Create "$as_dir" as a directory, including parents if necessary.
16489as_fn_mkdir_p ()
16490{
16491
16492 case $as_dir in #(
16493 -*) as_dir=./$as_dir;;
16494 esac
16495 test -d "$as_dir" || eval $as_mkdir_p || {
16496 as_dirs=
16497 while :; do
16498 case $as_dir in #(
16499 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16500 *) as_qdir=$as_dir;;
16501 esac
16502 as_dirs="'$as_qdir' $as_dirs"
16503 as_dir=`$as_dirname -- "$as_dir" ||
16504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16505 X"$as_dir" : 'X\(//\)[^/]' \| \
16506 X"$as_dir" : 'X\(//\)$' \| \
16507 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16508$as_echo X"$as_dir" |
16509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16510 s//\1/
16511 q
16512 }
16513 /^X\(\/\/\)[^/].*/{
16514 s//\1/
16515 q
16516 }
16517 /^X\(\/\/\)$/{
16518 s//\1/
16519 q
16520 }
16521 /^X\(\/\).*/{
16522 s//\1/
16523 q
16524 }
16525 s/.*/./; q'`
16526 test -d "$as_dir" && break
16527 done
16528 test -z "$as_dirs" || eval "mkdir $as_dirs"
73b6d7a9 16529 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7a938933
ILT
16530
16531
16532} # as_fn_mkdir_p
16533if mkdir -p . 2>/dev/null; then
16534 as_mkdir_p='mkdir -p "$as_dir"'
16535else
16536 test -d ./-p && rmdir ./-p
16537 as_mkdir_p=false
16538fi
16539
73b6d7a9
ILT
16540
16541# as_fn_executable_p FILE
16542# -----------------------
16543# Test if FILE is an executable regular file.
16544as_fn_executable_p ()
16545{
16546 test -f "$1" && test -x "$1"
16547} # as_fn_executable_p
16548as_test_x='test -x'
16549as_executable_p=as_fn_executable_p
7a938933
ILT
16550
16551# Sed expression to map a string onto a valid CPP name.
16552as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16553
16554# Sed expression to map a string onto a valid variable name.
16555as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16556
16557
16558exec 6>&1
16559## ----------------------------------- ##
16560## Main body of $CONFIG_STATUS script. ##
16561## ----------------------------------- ##
16562_ASEOF
16563test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16564
16565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16566# Save the log message, to keep $0 and so on meaningful, and to
16567# report actual input values of CONFIG_FILES etc. instead of their
16568# values after options handling.
16569ac_log="
16570This file was extended by package-unused $as_me version-unused, which was
73b6d7a9 16571generated by GNU Autoconf 2.69. Invocation command line was
7a938933
ILT
16572
16573 CONFIG_FILES = $CONFIG_FILES
16574 CONFIG_HEADERS = $CONFIG_HEADERS
16575 CONFIG_LINKS = $CONFIG_LINKS
16576 CONFIG_COMMANDS = $CONFIG_COMMANDS
16577 $ $0 $@
16578
16579on `(hostname || uname -n) 2>/dev/null | sed 1q`
16580"
16581
16582_ACEOF
16583
16584case $ac_config_files in *"
16585"*) set x $ac_config_files; shift; ac_config_files=$*;;
16586esac
16587
16588case $ac_config_headers in *"
16589"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16590esac
16591
16592
16593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16594# Files that config.status was made for.
16595config_files="$ac_config_files"
16596config_headers="$ac_config_headers"
16597config_commands="$ac_config_commands"
16598
16599_ACEOF
16600
16601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16602ac_cs_usage="\
16603\`$as_me' instantiates files and other configuration actions
16604from templates according to the current configuration. Unless the files
16605and actions are specified as TAGs, all are instantiated by default.
16606
16607Usage: $0 [OPTION]... [TAG]...
16608
16609 -h, --help print this help, then exit
16610 -V, --version print version number and configuration settings, then exit
73b6d7a9 16611 --config print configuration, then exit
7a938933
ILT
16612 -q, --quiet, --silent
16613 do not print progress messages
16614 -d, --debug don't remove temporary files
16615 --recheck update $as_me by reconfiguring in the same conditions
16616 --file=FILE[:TEMPLATE]
16617 instantiate the configuration file FILE
16618 --header=FILE[:TEMPLATE]
16619 instantiate the configuration header FILE
16620
16621Configuration files:
16622$config_files
16623
16624Configuration headers:
16625$config_headers
16626
16627Configuration commands:
16628$config_commands
16629
16630Report bugs to the package provider."
16631
16632_ACEOF
16633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73b6d7a9 16634ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7a938933
ILT
16635ac_cs_version="\\
16636package-unused config.status version-unused
73b6d7a9
ILT
16637configured by $0, generated by GNU Autoconf 2.69,
16638 with options \\"\$ac_cs_config\\"
7a938933 16639
73b6d7a9 16640Copyright (C) 2012 Free Software Foundation, Inc.
7a938933
ILT
16641This config.status script is free software; the Free Software Foundation
16642gives unlimited permission to copy, distribute and modify it."
16643
16644ac_pwd='$ac_pwd'
16645srcdir='$srcdir'
16646INSTALL='$INSTALL'
16647MKDIR_P='$MKDIR_P'
16648AWK='$AWK'
16649test -n "\$AWK" || AWK=awk
16650_ACEOF
16651
16652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653# The default lists apply if the user does not specify any file.
16654ac_need_defaults=:
16655while test $# != 0
16656do
16657 case $1 in
73b6d7a9 16658 --*=?*)
7a938933
ILT
16659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16660 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16661 ac_shift=:
16662 ;;
73b6d7a9
ILT
16663 --*=)
16664 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16665 ac_optarg=
16666 ac_shift=:
16667 ;;
7a938933
ILT
16668 *)
16669 ac_option=$1
16670 ac_optarg=$2
16671 ac_shift=shift
16672 ;;
16673 esac
16674
16675 case $ac_option in
16676 # Handling of the options.
16677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16678 ac_cs_recheck=: ;;
16679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16680 $as_echo "$ac_cs_version"; exit ;;
73b6d7a9
ILT
16681 --config | --confi | --conf | --con | --co | --c )
16682 $as_echo "$ac_cs_config"; exit ;;
7a938933
ILT
16683 --debug | --debu | --deb | --de | --d | -d )
16684 debug=: ;;
16685 --file | --fil | --fi | --f )
16686 $ac_shift
16687 case $ac_optarg in
16688 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
73b6d7a9 16689 '') as_fn_error $? "missing file argument" ;;
7a938933
ILT
16690 esac
16691 as_fn_append CONFIG_FILES " '$ac_optarg'"
16692 ac_need_defaults=false;;
16693 --header | --heade | --head | --hea )
16694 $ac_shift
16695 case $ac_optarg in
16696 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16697 esac
16698 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16699 ac_need_defaults=false;;
16700 --he | --h)
16701 # Conflict between --help and --header
73b6d7a9 16702 as_fn_error $? "ambiguous option: \`$1'
7a938933
ILT
16703Try \`$0 --help' for more information.";;
16704 --help | --hel | -h )
16705 $as_echo "$ac_cs_usage"; exit ;;
16706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16707 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16708 ac_cs_silent=: ;;
16709
16710 # This is an error.
73b6d7a9 16711 -*) as_fn_error $? "unrecognized option: \`$1'
7a938933
ILT
16712Try \`$0 --help' for more information." ;;
16713
16714 *) as_fn_append ac_config_targets " $1"
16715 ac_need_defaults=false ;;
16716
16717 esac
16718 shift
16719done
16720
16721ac_configure_extra_args=
16722
16723if $ac_cs_silent; then
16724 exec 6>/dev/null
16725 ac_configure_extra_args="$ac_configure_extra_args --silent"
16726fi
16727
16728_ACEOF
16729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16730if \$ac_cs_recheck; then
73b6d7a9 16731 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7a938933
ILT
16732 shift
16733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16734 CONFIG_SHELL='$SHELL'
16735 export CONFIG_SHELL
16736 exec "\$@"
16737fi
16738
16739_ACEOF
16740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16741exec 5>>config.log
16742{
16743 echo
16744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16745## Running $as_me. ##
16746_ASBOX
16747 $as_echo "$ac_log"
16748} >&5
16749
16750_ACEOF
16751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16752#
16753# INIT-COMMANDS
16754#
16755
16756srcdir="$srcdir"
16757host="$host"
16758target="$target"
16759with_multisubdir="$with_multisubdir"
16760with_multisrctop="$with_multisrctop"
16761with_target_subdir="$with_target_subdir"
16762ac_configure_args="${multilib_arg} ${ac_configure_args}"
16763multi_basedir="$multi_basedir"
16764CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16765CC="$CC"
54f0deb0
ILT
16766CXX="$CXX"
16767GFORTRAN="$GFORTRAN"
73b6d7a9 16768GDC="$GDC"
7a938933
ILT
16769AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16770
16771
16772# The HP-UX ksh and POSIX shell print the target directory to stdout
16773# if CDPATH is set.
16774(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16775
16776sed_quote_subst='$sed_quote_subst'
16777double_quote_subst='$double_quote_subst'
16778delay_variable_subst='$delay_variable_subst'
16779SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16780Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16781GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16782EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16783FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16784SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16785ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16786LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16787macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16788macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16789enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16790enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16791pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16792enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16793host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16794host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16795host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16796build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16797build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16798build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16799NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16800LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16801max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16802ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16803exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16804lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16805lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16806lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16807reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16808reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16809OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16810deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16811file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16812AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16813AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16814STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16815RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16816old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16817old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16818old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16819lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16820CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16821CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16822compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16823GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16824lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16825lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16826lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16827lt_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"`'
16828objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16829MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16830lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16831lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16832lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16833lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16834lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16835need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16836DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16837NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16838LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16839OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16840OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16841libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16842shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16843extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16844archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16845enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16846export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16847whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16848compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16849old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16850old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16851archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16852archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16853module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16854module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16855with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16856allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16857no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16858hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16859hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16860hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16861hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16862hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16863hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16864hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16865hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16866inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16867link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16868fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16869always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16870export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16871exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16872include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16873prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16874file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16875variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16876need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16877need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16878version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16879runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16880shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16881shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16882libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16883library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16884soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16885install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16886postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16887postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16888finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16889finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16890hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16891sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16892sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16893hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16894enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16895enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16896enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16897old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16898striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16899LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16900reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16901reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16902old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16903compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16904GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16905lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16906lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16907lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16908lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16909lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16910archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16911enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16912export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16913whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16914compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16915old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16916old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16917archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16918archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16919module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16920module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16921with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16922allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16923no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16924hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16925hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16926hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16927hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16928hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16929hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16930hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16931hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16932inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16933link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16934fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16935always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16936export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16937exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16938include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16939prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16940file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16941hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16942
16943LTCC='$LTCC'
16944LTCFLAGS='$LTCFLAGS'
16945compiler='$compiler_DEFAULT'
16946
16947# A function that is used when there is no print builtin or printf.
16948func_fallback_echo ()
16949{
16950 eval 'cat <<_LTECHO_EOF
16951\$1
16952_LTECHO_EOF'
16953}
16954
16955# Quote evaled strings.
16956for var in SED \
16957GREP \
16958EGREP \
16959FGREP \
16960SHELL \
16961ECHO \
16962LD \
16963NM \
16964LN_S \
16965lt_SP2NL \
16966lt_NL2SP \
16967reload_flag \
16968OBJDUMP \
16969deplibs_check_method \
16970file_magic_cmd \
16971AR \
16972AR_FLAGS \
16973STRIP \
16974RANLIB \
16975CC \
16976CFLAGS \
16977compiler \
16978lt_cv_sys_global_symbol_pipe \
16979lt_cv_sys_global_symbol_to_cdecl \
16980lt_cv_sys_global_symbol_to_c_name_address \
16981lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16982lt_prog_compiler_no_builtin_flag \
16983lt_prog_compiler_wl \
16984lt_prog_compiler_pic \
16985lt_prog_compiler_static \
16986lt_cv_prog_compiler_c_o \
16987need_locks \
16988DSYMUTIL \
16989NMEDIT \
16990LIPO \
16991OTOOL \
16992OTOOL64 \
16993shrext_cmds \
16994export_dynamic_flag_spec \
16995whole_archive_flag_spec \
16996compiler_needs_object \
16997with_gnu_ld \
16998allow_undefined_flag \
16999no_undefined_flag \
17000hardcode_libdir_flag_spec \
17001hardcode_libdir_flag_spec_ld \
17002hardcode_libdir_separator \
17003fix_srcfile_path \
17004exclude_expsyms \
17005include_expsyms \
17006file_list_spec \
17007variables_saved_for_relink \
17008libname_spec \
17009library_names_spec \
17010soname_spec \
17011install_override_mode \
17012finish_eval \
17013old_striplib \
17014striplib \
17015LD_GO \
17016reload_flag_GO \
17017compiler_GO \
17018lt_prog_compiler_no_builtin_flag_GO \
17019lt_prog_compiler_wl_GO \
17020lt_prog_compiler_pic_GO \
17021lt_prog_compiler_static_GO \
17022lt_cv_prog_compiler_c_o_GO \
17023export_dynamic_flag_spec_GO \
17024whole_archive_flag_spec_GO \
17025compiler_needs_object_GO \
17026with_gnu_ld_GO \
17027allow_undefined_flag_GO \
17028no_undefined_flag_GO \
17029hardcode_libdir_flag_spec_GO \
17030hardcode_libdir_flag_spec_ld_GO \
17031hardcode_libdir_separator_GO \
17032fix_srcfile_path_GO \
17033exclude_expsyms_GO \
17034include_expsyms_GO \
17035file_list_spec_GO; do
17036 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17037 *[\\\\\\\`\\"\\\$]*)
17038 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17039 ;;
17040 *)
17041 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17042 ;;
17043 esac
17044done
17045
17046# Double-quote double-evaled strings.
17047for var in reload_cmds \
17048old_postinstall_cmds \
17049old_postuninstall_cmds \
17050old_archive_cmds \
17051extract_expsyms_cmds \
17052old_archive_from_new_cmds \
17053old_archive_from_expsyms_cmds \
17054archive_cmds \
17055archive_expsym_cmds \
17056module_cmds \
17057module_expsym_cmds \
17058export_symbols_cmds \
17059prelink_cmds \
17060postinstall_cmds \
17061postuninstall_cmds \
17062finish_cmds \
17063sys_lib_search_path_spec \
17064sys_lib_dlsearch_path_spec \
17065reload_cmds_GO \
17066old_archive_cmds_GO \
17067old_archive_from_new_cmds_GO \
17068old_archive_from_expsyms_cmds_GO \
17069archive_cmds_GO \
17070archive_expsym_cmds_GO \
17071module_cmds_GO \
17072module_expsym_cmds_GO \
17073export_symbols_cmds_GO \
17074prelink_cmds_GO; do
17075 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17076 *[\\\\\\\`\\"\\\$]*)
17077 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17078 ;;
17079 *)
17080 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17081 ;;
17082 esac
17083done
17084
17085ac_aux_dir='$ac_aux_dir'
17086xsi_shell='$xsi_shell'
17087lt_shell_append='$lt_shell_append'
17088
17089# See if we are running on zsh, and set the options which allow our
17090# commands through without removal of \ escapes INIT.
17091if test -n "\${ZSH_VERSION+set}" ; then
17092 setopt NO_GLOB_SUBST
17093fi
17094
17095
17096 PACKAGE='$PACKAGE'
17097 VERSION='$VERSION'
17098 TIMESTAMP='$TIMESTAMP'
17099 RM='$RM'
17100 ofile='$ofile'
17101
17102
17103
17104
17105
17106
17107# Variables needed in config.status (file generation) which aren't already
17108# passed by autoconf.
17109SUBDIRS="$SUBDIRS"
17110
17111
17112_ACEOF
17113
17114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17115
17116# Handling of arguments.
17117for ac_config_target in $ac_config_targets
17118do
17119 case $ac_config_target in
17120 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17121 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17122 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17123 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17125 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
b72813a6 17126 "testsuite/libgo-test-support.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
7a938933
ILT
17127 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17128
73b6d7a9 17129 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7a938933
ILT
17130 esac
17131done
17132
17133
17134# If the user did not use the arguments to specify the items to instantiate,
17135# then the envvar interface is used. Set only those that are not.
17136# We use the long form for the default assignment because of an extremely
17137# bizarre bug on SunOS 4.1.3.
17138if $ac_need_defaults; then
17139 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17140 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17141 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17142fi
17143
17144# Have a temporary directory for convenience. Make it in the build tree
17145# simply because there is no reason against having it here, and in addition,
17146# creating and moving files from /tmp can sometimes cause problems.
17147# Hook for its removal unless debugging.
17148# Note that there is a small window in which the directory will not be cleaned:
17149# after its creation but before its name has been assigned to `$tmp'.
17150$debug ||
17151{
73b6d7a9 17152 tmp= ac_tmp=
7a938933 17153 trap 'exit_status=$?
73b6d7a9
ILT
17154 : "${ac_tmp:=$tmp}"
17155 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7a938933
ILT
17156' 0
17157 trap 'as_fn_exit 1' 1 2 13 15
17158}
17159# Create a (secure) tmp directory for tmp files.
17160
17161{
17162 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
73b6d7a9 17163 test -d "$tmp"
7a938933
ILT
17164} ||
17165{
17166 tmp=./conf$$-$RANDOM
17167 (umask 077 && mkdir "$tmp")
73b6d7a9
ILT
17168} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17169ac_tmp=$tmp
7a938933
ILT
17170
17171# Set up the scripts for CONFIG_FILES section.
17172# No need to generate them if there are no CONFIG_FILES.
17173# This happens for instance with `./config.status config.h'.
17174if test -n "$CONFIG_FILES"; then
17175
17176
17177ac_cr=`echo X | tr X '\015'`
17178# On cygwin, bash can eat \r inside `` if the user requested igncr.
17179# But we know of no other shell where ac_cr would be empty at this
17180# point, so we can use a bashism as a fallback.
17181if test "x$ac_cr" = x; then
17182 eval ac_cr=\$\'\\r\'
17183fi
17184ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17185if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
73b6d7a9 17186 ac_cs_awk_cr='\\r'
7a938933
ILT
17187else
17188 ac_cs_awk_cr=$ac_cr
17189fi
17190
73b6d7a9 17191echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7a938933
ILT
17192_ACEOF
17193
17194
17195{
17196 echo "cat >conf$$subs.awk <<_ACEOF" &&
17197 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17198 echo "_ACEOF"
17199} >conf$$subs.sh ||
73b6d7a9
ILT
17200 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17201ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7a938933
ILT
17202ac_delim='%!_!# '
17203for ac_last_try in false false false false false :; do
17204 . ./conf$$subs.sh ||
73b6d7a9 17205 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7a938933
ILT
17206
17207 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17208 if test $ac_delim_n = $ac_delim_num; then
17209 break
17210 elif $ac_last_try; then
73b6d7a9 17211 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7a938933
ILT
17212 else
17213 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17214 fi
17215done
17216rm -f conf$$subs.sh
17217
17218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
73b6d7a9 17219cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7a938933
ILT
17220_ACEOF
17221sed -n '
17222h
17223s/^/S["/; s/!.*/"]=/
17224p
17225g
17226s/^[^!]*!//
17227:repl
17228t repl
17229s/'"$ac_delim"'$//
17230t delim
17231:nl
17232h
73b6d7a9 17233s/\(.\{148\}\)..*/\1/
7a938933
ILT
17234t more1
17235s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17236p
17237n
17238b repl
17239:more1
17240s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17241p
17242g
17243s/.\{148\}//
17244t nl
17245:delim
17246h
73b6d7a9 17247s/\(.\{148\}\)..*/\1/
7a938933
ILT
17248t more2
17249s/["\\]/\\&/g; s/^/"/; s/$/"/
17250p
17251b
17252:more2
17253s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17254p
17255g
17256s/.\{148\}//
17257t delim
17258' <conf$$subs.awk | sed '
17259/^[^""]/{
17260 N
17261 s/\n//
17262}
17263' >>$CONFIG_STATUS || ac_write_fail=1
17264rm -f conf$$subs.awk
17265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17266_ACAWK
73b6d7a9 17267cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7a938933
ILT
17268 for (key in S) S_is_set[key] = 1
17269 FS = "\a"
17270
17271}
17272{
17273 line = $ 0
17274 nfields = split(line, field, "@")
17275 substed = 0
17276 len = length(field[1])
17277 for (i = 2; i < nfields; i++) {
17278 key = field[i]
17279 keylen = length(key)
17280 if (S_is_set[key]) {
17281 value = S[key]
17282 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17283 len += length(value) + length(field[++i])
17284 substed = 1
17285 } else
17286 len += 1 + keylen
17287 }
17288
17289 print line
17290}
17291
17292_ACAWK
17293_ACEOF
17294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17295if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17296 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17297else
17298 cat
73b6d7a9
ILT
17299fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17300 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a938933
ILT
17301_ACEOF
17302
73b6d7a9
ILT
17303# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17304# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a938933
ILT
17305# trailing colons and then remove the whole line if VPATH becomes empty
17306# (actually we leave an empty line to preserve line numbers).
17307if test "x$srcdir" = x.; then
73b6d7a9
ILT
17308 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17309h
17310s///
17311s/^/:/
17312s/[ ]*$/:/
17313s/:\$(srcdir):/:/g
17314s/:\${srcdir}:/:/g
17315s/:@srcdir@:/:/g
17316s/^:*//
7a938933 17317s/:*$//
73b6d7a9
ILT
17318x
17319s/\(=[ ]*\).*/\1/
17320G
17321s/\n//
7a938933
ILT
17322s/^[^=]*=[ ]*$//
17323}'
17324fi
17325
17326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17327fi # test -n "$CONFIG_FILES"
17328
17329# Set up the scripts for CONFIG_HEADERS section.
17330# No need to generate them if there are no CONFIG_HEADERS.
17331# This happens for instance with `./config.status Makefile'.
17332if test -n "$CONFIG_HEADERS"; then
73b6d7a9 17333cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7a938933
ILT
17334BEGIN {
17335_ACEOF
17336
17337# Transform confdefs.h into an awk script `defines.awk', embedded as
17338# here-document in config.status, that substitutes the proper values into
17339# config.h.in to produce config.h.
17340
17341# Create a delimiter string that does not exist in confdefs.h, to ease
17342# handling of long lines.
17343ac_delim='%!_!# '
17344for ac_last_try in false false :; do
73b6d7a9
ILT
17345 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17346 if test -z "$ac_tt"; then
7a938933
ILT
17347 break
17348 elif $ac_last_try; then
73b6d7a9 17349 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7a938933
ILT
17350 else
17351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17352 fi
17353done
17354
17355# For the awk script, D is an array of macro values keyed by name,
17356# likewise P contains macro parameters if any. Preserve backslash
17357# newline sequences.
17358
17359ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17360sed -n '
17361s/.\{148\}/&'"$ac_delim"'/g
17362t rset
17363:rset
17364s/^[ ]*#[ ]*define[ ][ ]*/ /
17365t def
17366d
17367:def
17368s/\\$//
17369t bsnl
17370s/["\\]/\\&/g
17371s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17372D["\1"]=" \3"/p
17373s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17374d
17375:bsnl
17376s/["\\]/\\&/g
17377s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17378D["\1"]=" \3\\\\\\n"\\/p
17379t cont
17380s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17381t cont
17382d
17383:cont
17384n
17385s/.\{148\}/&'"$ac_delim"'/g
17386t clear
17387:clear
17388s/\\$//
17389t bsnlc
17390s/["\\]/\\&/g; s/^/"/; s/$/"/p
17391d
17392:bsnlc
17393s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17394b cont
17395' <confdefs.h | sed '
17396s/'"$ac_delim"'/"\\\
17397"/g' >>$CONFIG_STATUS || ac_write_fail=1
17398
17399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17400 for (key in D) D_is_set[key] = 1
17401 FS = "\a"
17402}
17403/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17404 line = \$ 0
17405 split(line, arg, " ")
17406 if (arg[1] == "#") {
17407 defundef = arg[2]
17408 mac1 = arg[3]
17409 } else {
17410 defundef = substr(arg[1], 2)
17411 mac1 = arg[2]
17412 }
17413 split(mac1, mac2, "(") #)
17414 macro = mac2[1]
17415 prefix = substr(line, 1, index(line, defundef) - 1)
17416 if (D_is_set[macro]) {
17417 # Preserve the white space surrounding the "#".
17418 print prefix "define", macro P[macro] D[macro]
17419 next
17420 } else {
17421 # Replace #undef with comments. This is necessary, for example,
17422 # in the case of _POSIX_SOURCE, which is predefined and required
17423 # on some systems where configure will not decide to define it.
17424 if (defundef == "undef") {
17425 print "/*", prefix defundef, macro, "*/"
17426 next
17427 }
17428 }
17429}
17430{ print }
17431_ACAWK
17432_ACEOF
17433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
73b6d7a9 17434 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7a938933
ILT
17435fi # test -n "$CONFIG_HEADERS"
17436
17437
17438eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17439shift
17440for ac_tag
17441do
17442 case $ac_tag in
17443 :[FHLC]) ac_mode=$ac_tag; continue;;
17444 esac
17445 case $ac_mode$ac_tag in
17446 :[FHL]*:*);;
73b6d7a9 17447 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a938933
ILT
17448 :[FH]-) ac_tag=-:-;;
17449 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17450 esac
17451 ac_save_IFS=$IFS
17452 IFS=:
17453 set x $ac_tag
17454 IFS=$ac_save_IFS
17455 shift
17456 ac_file=$1
17457 shift
17458
17459 case $ac_mode in
17460 :L) ac_source=$1;;
17461 :[FH])
17462 ac_file_inputs=
17463 for ac_f
17464 do
17465 case $ac_f in
73b6d7a9 17466 -) ac_f="$ac_tmp/stdin";;
7a938933
ILT
17467 *) # Look for the file first in the build tree, then in the source tree
17468 # (if the path is not absolute). The absolute path cannot be DOS-style,
17469 # because $ac_f cannot contain `:'.
17470 test -f "$ac_f" ||
17471 case $ac_f in
17472 [\\/$]*) false;;
17473 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17474 esac ||
73b6d7a9 17475 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a938933
ILT
17476 esac
17477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17478 as_fn_append ac_file_inputs " '$ac_f'"
17479 done
17480
17481 # Let's still pretend it is `configure' which instantiates (i.e., don't
17482 # use $as_me), people would be surprised to read:
17483 # /* config.h. Generated by config.status. */
17484 configure_input='Generated from '`
17485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17486 `' by configure.'
17487 if test x"$ac_file" != x-; then
17488 configure_input="$ac_file. $configure_input"
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17490$as_echo "$as_me: creating $ac_file" >&6;}
17491 fi
17492 # Neutralize special characters interpreted by sed in replacement strings.
17493 case $configure_input in #(
17494 *\&* | *\|* | *\\* )
17495 ac_sed_conf_input=`$as_echo "$configure_input" |
17496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17497 *) ac_sed_conf_input=$configure_input;;
17498 esac
17499
17500 case $ac_tag in
73b6d7a9
ILT
17501 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17502 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a938933
ILT
17503 esac
17504 ;;
17505 esac
17506
17507 ac_dir=`$as_dirname -- "$ac_file" ||
17508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17509 X"$ac_file" : 'X\(//\)[^/]' \| \
17510 X"$ac_file" : 'X\(//\)$' \| \
17511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17512$as_echo X"$ac_file" |
17513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17514 s//\1/
17515 q
17516 }
17517 /^X\(\/\/\)[^/].*/{
17518 s//\1/
17519 q
17520 }
17521 /^X\(\/\/\)$/{
17522 s//\1/
17523 q
17524 }
17525 /^X\(\/\).*/{
17526 s//\1/
17527 q
17528 }
17529 s/.*/./; q'`
17530 as_dir="$ac_dir"; as_fn_mkdir_p
17531 ac_builddir=.
17532
17533case "$ac_dir" in
17534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17535*)
17536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17537 # A ".." for each directory in $ac_dir_suffix.
17538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17539 case $ac_top_builddir_sub in
17540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17542 esac ;;
17543esac
17544ac_abs_top_builddir=$ac_pwd
17545ac_abs_builddir=$ac_pwd$ac_dir_suffix
17546# for backward compatibility:
17547ac_top_builddir=$ac_top_build_prefix
17548
17549case $srcdir in
17550 .) # We are building in place.
17551 ac_srcdir=.
17552 ac_top_srcdir=$ac_top_builddir_sub
17553 ac_abs_top_srcdir=$ac_pwd ;;
17554 [\\/]* | ?:[\\/]* ) # Absolute name.
17555 ac_srcdir=$srcdir$ac_dir_suffix;
17556 ac_top_srcdir=$srcdir
17557 ac_abs_top_srcdir=$srcdir ;;
17558 *) # Relative name.
17559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17560 ac_top_srcdir=$ac_top_build_prefix$srcdir
17561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17562esac
17563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17564
17565
17566 case $ac_mode in
17567 :F)
17568 #
17569 # CONFIG_FILE
17570 #
17571
17572 case $INSTALL in
17573 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17574 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17575 esac
17576 ac_MKDIR_P=$MKDIR_P
17577 case $MKDIR_P in
17578 [\\/$]* | ?:[\\/]* ) ;;
17579 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17580 esac
17581_ACEOF
17582
17583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17584# If the template does not know about datarootdir, expand it.
17585# FIXME: This hack should be removed a few years after 2.60.
17586ac_datarootdir_hack=; ac_datarootdir_seen=
17587ac_sed_dataroot='
17588/datarootdir/ {
17589 p
17590 q
17591}
17592/@datadir@/p
17593/@docdir@/p
17594/@infodir@/p
17595/@localedir@/p
17596/@mandir@/p'
17597case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17598*datarootdir*) ac_datarootdir_seen=yes;;
17599*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17601$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17602_ACEOF
17603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17604 ac_datarootdir_hack='
17605 s&@datadir@&$datadir&g
17606 s&@docdir@&$docdir&g
17607 s&@infodir@&$infodir&g
17608 s&@localedir@&$localedir&g
17609 s&@mandir@&$mandir&g
17610 s&\\\${datarootdir}&$datarootdir&g' ;;
17611esac
17612_ACEOF
17613
17614# Neutralize VPATH when `$srcdir' = `.'.
17615# Shell code in configure.ac might set extrasub.
17616# FIXME: do we really want to maintain this feature?
17617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17618ac_sed_extra="$ac_vpsub
17619$extrasub
17620_ACEOF
17621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17622:t
17623/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17624s|@configure_input@|$ac_sed_conf_input|;t t
17625s&@top_builddir@&$ac_top_builddir_sub&;t t
17626s&@top_build_prefix@&$ac_top_build_prefix&;t t
17627s&@srcdir@&$ac_srcdir&;t t
17628s&@abs_srcdir@&$ac_abs_srcdir&;t t
17629s&@top_srcdir@&$ac_top_srcdir&;t t
17630s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17631s&@builddir@&$ac_builddir&;t t
17632s&@abs_builddir@&$ac_abs_builddir&;t t
17633s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17634s&@INSTALL@&$ac_INSTALL&;t t
17635s&@MKDIR_P@&$ac_MKDIR_P&;t t
17636$ac_datarootdir_hack
17637"
73b6d7a9
ILT
17638eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17639 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a938933
ILT
17640
17641test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
73b6d7a9
ILT
17642 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17643 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17644 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7a938933 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73b6d7a9 17646which seems to be undefined. Please make sure it is defined" >&5
7a938933 17647$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
73b6d7a9 17648which seems to be undefined. Please make sure it is defined" >&2;}
7a938933 17649
73b6d7a9 17650 rm -f "$ac_tmp/stdin"
7a938933 17651 case $ac_file in
73b6d7a9
ILT
17652 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17653 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7a938933 17654 esac \
73b6d7a9 17655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a938933
ILT
17656 ;;
17657 :H)
17658 #
17659 # CONFIG_HEADER
17660 #
17661 if test x"$ac_file" != x-; then
17662 {
17663 $as_echo "/* $configure_input */" \
73b6d7a9
ILT
17664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17665 } >"$ac_tmp/config.h" \
17666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17667 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7a938933
ILT
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17669$as_echo "$as_me: $ac_file is unchanged" >&6;}
17670 else
17671 rm -f "$ac_file"
73b6d7a9
ILT
17672 mv "$ac_tmp/config.h" "$ac_file" \
17673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a938933
ILT
17674 fi
17675 else
17676 $as_echo "/* $configure_input */" \
73b6d7a9
ILT
17677 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17678 || as_fn_error $? "could not create -" "$LINENO" 5
7a938933
ILT
17679 fi
17680# Compute "$ac_file"'s index in $config_headers.
17681_am_arg="$ac_file"
17682_am_stamp_count=1
17683for _am_header in $config_headers :; do
17684 case $_am_header in
17685 $_am_arg | $_am_arg:* )
17686 break ;;
17687 * )
17688 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17689 esac
17690done
17691echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17692$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17693 X"$_am_arg" : 'X\(//\)[^/]' \| \
17694 X"$_am_arg" : 'X\(//\)$' \| \
17695 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17696$as_echo X"$_am_arg" |
17697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17698 s//\1/
17699 q
17700 }
17701 /^X\(\/\/\)[^/].*/{
17702 s//\1/
17703 q
17704 }
17705 /^X\(\/\/\)$/{
17706 s//\1/
17707 q
17708 }
17709 /^X\(\/\).*/{
17710 s//\1/
17711 q
17712 }
17713 s/.*/./; q'`/stamp-h$_am_stamp_count
17714 ;;
17715
17716 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17717$as_echo "$as_me: executing $ac_file commands" >&6;}
17718 ;;
17719 esac
17720
17721
17722 case $ac_file$ac_mode in
17723 "default-1":C)
17724# Only add multilib support code if we just rebuilt the top-level
17725# Makefile.
17726case " $CONFIG_FILES " in
17727 *" Makefile "*)
17728 ac_file=Makefile . ${multi_basedir}/config-ml.in
17729 ;;
17730esac ;;
17731 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
73b6d7a9 17732 # Older Autoconf quotes --file arguments for eval, but not when files
7a938933
ILT
17733 # are listed without --file. Let's play safe and only enable the eval
17734 # if we detect the quoting.
17735 case $CONFIG_FILES in
17736 *\'*) eval set x "$CONFIG_FILES" ;;
17737 *) set x $CONFIG_FILES ;;
17738 esac
17739 shift
17740 for mf
17741 do
17742 # Strip MF so we end up with the name of the file.
17743 mf=`echo "$mf" | sed -e 's/:.*$//'`
17744 # Check whether this is an Automake generated Makefile or not.
73b6d7a9 17745 # We used to match only the files named 'Makefile.in', but
7a938933
ILT
17746 # some people rename them; so instead we look at the file content.
17747 # Grep'ing the first line is not enough: some people post-process
17748 # each Makefile.in and add a new line on top of each file to say so.
17749 # Grep'ing the whole file is not good either: AIX grep has a line
17750 # limit of 2048, but all sed's we know have understand at least 4000.
17751 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17752 dirpart=`$as_dirname -- "$mf" ||
17753$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17754 X"$mf" : 'X\(//\)[^/]' \| \
17755 X"$mf" : 'X\(//\)$' \| \
17756 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17757$as_echo X"$mf" |
17758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17759 s//\1/
17760 q
17761 }
17762 /^X\(\/\/\)[^/].*/{
17763 s//\1/
17764 q
17765 }
17766 /^X\(\/\/\)$/{
17767 s//\1/
17768 q
17769 }
17770 /^X\(\/\).*/{
17771 s//\1/
17772 q
17773 }
17774 s/.*/./; q'`
17775 else
17776 continue
17777 fi
17778 # Extract the definition of DEPDIR, am__include, and am__quote
73b6d7a9 17779 # from the Makefile without running 'make'.
7a938933
ILT
17780 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17781 test -z "$DEPDIR" && continue
17782 am__include=`sed -n 's/^am__include = //p' < "$mf"`
73b6d7a9 17783 test -z "$am__include" && continue
7a938933 17784 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7a938933
ILT
17785 # Find all dependency output files, they are included files with
17786 # $(DEPDIR) in their names. We invoke sed twice because it is the
17787 # simplest approach to changing $(DEPDIR) to its actual value in the
17788 # expansion.
17789 for file in `sed -n "
17790 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
73b6d7a9 17791 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7a938933
ILT
17792 # Make sure the directory exists.
17793 test -f "$dirpart/$file" && continue
17794 fdir=`$as_dirname -- "$file" ||
17795$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17796 X"$file" : 'X\(//\)[^/]' \| \
17797 X"$file" : 'X\(//\)$' \| \
17798 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17799$as_echo X"$file" |
17800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17801 s//\1/
17802 q
17803 }
17804 /^X\(\/\/\)[^/].*/{
17805 s//\1/
17806 q
17807 }
17808 /^X\(\/\/\)$/{
17809 s//\1/
17810 q
17811 }
17812 /^X\(\/\).*/{
17813 s//\1/
17814 q
17815 }
17816 s/.*/./; q'`
17817 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17818 # echo "creating $dirpart/$file"
17819 echo '# dummy' > "$dirpart/$file"
17820 done
17821 done
17822}
17823 ;;
17824 "libtool":C)
17825
17826 # See if we are running on zsh, and set the options which allow our
17827 # commands through without removal of \ escapes.
17828 if test -n "${ZSH_VERSION+set}" ; then
17829 setopt NO_GLOB_SUBST
17830 fi
17831
17832 cfgfile="${ofile}T"
17833 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17834 $RM "$cfgfile"
17835
17836 cat <<_LT_EOF >> "$cfgfile"
17837#! $SHELL
17838
17839# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17840# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17841# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17842# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17843#
17844# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17845# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17846# Written by Gordon Matzigkeit, 1996
17847#
17848# This file is part of GNU Libtool.
17849#
17850# GNU Libtool is free software; you can redistribute it and/or
17851# modify it under the terms of the GNU General Public License as
17852# published by the Free Software Foundation; either version 2 of
17853# the License, or (at your option) any later version.
17854#
17855# As a special exception to the GNU General Public License,
17856# if you distribute this file as part of a program or library that
17857# is built using GNU Libtool, you may include this file under the
17858# same distribution terms that you use for the rest of that program.
17859#
17860# GNU Libtool is distributed in the hope that it will be useful,
17861# but WITHOUT ANY WARRANTY; without even the implied warranty of
17862# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17863# GNU General Public License for more details.
17864#
17865# You should have received a copy of the GNU General Public License
17866# along with GNU Libtool; see the file COPYING. If not, a copy
17867# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17868# obtained by writing to the Free Software Foundation, Inc.,
17869# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17870
17871
17872# The names of the tagged configurations supported by this script.
17873available_tags="GO "
17874
17875# ### BEGIN LIBTOOL CONFIG
17876
17877# A sed program that does not truncate output.
17878SED=$lt_SED
17879
17880# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17881Xsed="\$SED -e 1s/^X//"
17882
17883# A grep program that handles long lines.
17884GREP=$lt_GREP
17885
17886# An ERE matcher.
17887EGREP=$lt_EGREP
17888
17889# A literal string matcher.
17890FGREP=$lt_FGREP
17891
17892# Shell to use when invoking shell scripts.
17893SHELL=$lt_SHELL
17894
17895# An echo program that protects backslashes.
17896ECHO=$lt_ECHO
17897
17898# Which release of libtool.m4 was used?
17899macro_version=$macro_version
17900macro_revision=$macro_revision
17901
17902# Whether or not to build shared libraries.
17903build_libtool_libs=$enable_shared
17904
17905# Whether or not to build static libraries.
17906build_old_libs=$enable_static
17907
17908# What type of objects to build.
17909pic_mode=$pic_mode
17910
17911# Whether or not to optimize for fast installation.
17912fast_install=$enable_fast_install
17913
17914# The host system.
17915host_alias=$host_alias
17916host=$host
17917host_os=$host_os
17918
17919# The build system.
17920build_alias=$build_alias
17921build=$build
17922build_os=$build_os
17923
17924# A BSD- or MS-compatible name lister.
17925NM=$lt_NM
17926
17927# Whether we need soft or hard links.
17928LN_S=$lt_LN_S
17929
17930# What is the maximum length of a command?
17931max_cmd_len=$max_cmd_len
17932
17933# Object file suffix (normally "o").
17934objext=$ac_objext
17935
17936# Executable file suffix (normally "").
17937exeext=$exeext
17938
17939# whether the shell understands "unset".
17940lt_unset=$lt_unset
17941
17942# turn spaces into newlines.
17943SP2NL=$lt_lt_SP2NL
17944
17945# turn newlines into spaces.
17946NL2SP=$lt_lt_NL2SP
17947
17948# An object symbol dumper.
17949OBJDUMP=$lt_OBJDUMP
17950
17951# Method to check whether dependent libraries are shared objects.
17952deplibs_check_method=$lt_deplibs_check_method
17953
17954# Command to use when deplibs_check_method == "file_magic".
17955file_magic_cmd=$lt_file_magic_cmd
17956
17957# The archiver.
17958AR=$lt_AR
17959AR_FLAGS=$lt_AR_FLAGS
17960
17961# A symbol stripping program.
17962STRIP=$lt_STRIP
17963
17964# Commands used to install an old-style archive.
17965RANLIB=$lt_RANLIB
17966old_postinstall_cmds=$lt_old_postinstall_cmds
17967old_postuninstall_cmds=$lt_old_postuninstall_cmds
17968
17969# Whether to use a lock for old archive extraction.
17970lock_old_archive_extraction=$lock_old_archive_extraction
17971
17972# A C compiler.
17973LTCC=$lt_CC
17974
17975# LTCC compiler flags.
17976LTCFLAGS=$lt_CFLAGS
17977
17978# Take the output of nm and produce a listing of raw symbols and C names.
17979global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17980
17981# Transform the output of nm in a proper C declaration.
17982global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17983
17984# Transform the output of nm in a C name address pair.
17985global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17986
17987# Transform the output of nm in a C name address pair when lib prefix is needed.
17988global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17989
17990# The name of the directory that contains temporary libtool files.
17991objdir=$objdir
17992
17993# Used to examine libraries when file_magic_cmd begins with "file".
17994MAGIC_CMD=$MAGIC_CMD
17995
17996# Must we lock files when doing compilation?
17997need_locks=$lt_need_locks
17998
17999# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18000DSYMUTIL=$lt_DSYMUTIL
18001
18002# Tool to change global to local symbols on Mac OS X.
18003NMEDIT=$lt_NMEDIT
18004
18005# Tool to manipulate fat objects and archives on Mac OS X.
18006LIPO=$lt_LIPO
18007
18008# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18009OTOOL=$lt_OTOOL
18010
18011# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18012OTOOL64=$lt_OTOOL64
18013
18014# Old archive suffix (normally "a").
18015libext=$libext
18016
18017# Shared library suffix (normally ".so").
18018shrext_cmds=$lt_shrext_cmds
18019
18020# The commands to extract the exported symbol list from a shared archive.
18021extract_expsyms_cmds=$lt_extract_expsyms_cmds
18022
18023# Variables whose values should be saved in libtool wrapper scripts and
18024# restored at link time.
18025variables_saved_for_relink=$lt_variables_saved_for_relink
18026
18027# Do we need the "lib" prefix for modules?
18028need_lib_prefix=$need_lib_prefix
18029
18030# Do we need a version for libraries?
18031need_version=$need_version
18032
18033# Library versioning type.
18034version_type=$version_type
18035
18036# Shared library runtime path variable.
18037runpath_var=$runpath_var
18038
18039# Shared library path variable.
18040shlibpath_var=$shlibpath_var
18041
18042# Is shlibpath searched before the hard-coded library search path?
18043shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18044
18045# Format of library name prefix.
18046libname_spec=$lt_libname_spec
18047
18048# List of archive names. First name is the real one, the rest are links.
18049# The last name is the one that the linker finds with -lNAME
18050library_names_spec=$lt_library_names_spec
18051
18052# The coded name of the library, if different from the real name.
18053soname_spec=$lt_soname_spec
18054
18055# Permission mode override for installation of shared libraries.
18056install_override_mode=$lt_install_override_mode
18057
18058# Command to use after installation of a shared archive.
18059postinstall_cmds=$lt_postinstall_cmds
18060
18061# Command to use after uninstallation of a shared archive.
18062postuninstall_cmds=$lt_postuninstall_cmds
18063
18064# Commands used to finish a libtool library installation in a directory.
18065finish_cmds=$lt_finish_cmds
18066
18067# As "finish_cmds", except a single script fragment to be evaled but
18068# not shown.
18069finish_eval=$lt_finish_eval
18070
18071# Whether we should hardcode library paths into libraries.
18072hardcode_into_libs=$hardcode_into_libs
18073
18074# Compile-time system search path for libraries.
18075sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18076
18077# Run-time system search path for libraries.
18078sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18079
18080# Whether dlopen is supported.
18081dlopen_support=$enable_dlopen
18082
18083# Whether dlopen of programs is supported.
18084dlopen_self=$enable_dlopen_self
18085
18086# Whether dlopen of statically linked programs is supported.
18087dlopen_self_static=$enable_dlopen_self_static
18088
18089# Commands to strip libraries.
18090old_striplib=$lt_old_striplib
18091striplib=$lt_striplib
18092
18093
18094# The linker used to build libraries.
18095LD=$lt_LD
18096
18097# How to create reloadable object files.
18098reload_flag=$lt_reload_flag
18099reload_cmds=$lt_reload_cmds
18100
18101# Commands used to build an old-style archive.
18102old_archive_cmds=$lt_old_archive_cmds
18103
18104# A language specific compiler.
18105CC=$lt_compiler
18106
18107# Is the compiler the GNU compiler?
18108with_gcc=$GCC
18109
18110# Compiler flag to turn off builtin functions.
18111no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18112
18113# How to pass a linker flag through the compiler.
18114wl=$lt_lt_prog_compiler_wl
18115
18116# Additional compiler flags for building library objects.
18117pic_flag=$lt_lt_prog_compiler_pic
18118
18119# Compiler flag to prevent dynamic linking.
18120link_static_flag=$lt_lt_prog_compiler_static
18121
18122# Does compiler simultaneously support -c and -o options?
18123compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18124
18125# Whether or not to add -lc for building shared libraries.
18126build_libtool_need_lc=$archive_cmds_need_lc
18127
18128# Whether or not to disallow shared libs when runtime libs are static.
18129allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18130
18131# Compiler flag to allow reflexive dlopens.
18132export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18133
18134# Compiler flag to generate shared objects directly from archives.
18135whole_archive_flag_spec=$lt_whole_archive_flag_spec
18136
18137# Whether the compiler copes with passing no objects directly.
18138compiler_needs_object=$lt_compiler_needs_object
18139
18140# Create an old-style archive from a shared archive.
18141old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18142
18143# Create a temporary old-style archive to link instead of a shared archive.
18144old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18145
18146# Commands used to build a shared archive.
18147archive_cmds=$lt_archive_cmds
18148archive_expsym_cmds=$lt_archive_expsym_cmds
18149
18150# Commands used to build a loadable module if different from building
18151# a shared archive.
18152module_cmds=$lt_module_cmds
18153module_expsym_cmds=$lt_module_expsym_cmds
18154
18155# Whether we are building with GNU ld or not.
18156with_gnu_ld=$lt_with_gnu_ld
18157
18158# Flag that allows shared libraries with undefined symbols to be built.
18159allow_undefined_flag=$lt_allow_undefined_flag
18160
18161# Flag that enforces no undefined symbols.
18162no_undefined_flag=$lt_no_undefined_flag
18163
18164# Flag to hardcode \$libdir into a binary during linking.
18165# This must work even if \$libdir does not exist
18166hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18167
18168# If ld is used when linking, flag to hardcode \$libdir into a binary
18169# during linking. This must work even if \$libdir does not exist.
18170hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18171
18172# Whether we need a single "-rpath" flag with a separated argument.
18173hardcode_libdir_separator=$lt_hardcode_libdir_separator
18174
18175# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18176# DIR into the resulting binary.
18177hardcode_direct=$hardcode_direct
18178
18179# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18180# DIR into the resulting binary and the resulting library dependency is
18181# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18182# library is relocated.
18183hardcode_direct_absolute=$hardcode_direct_absolute
18184
18185# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18186# into the resulting binary.
18187hardcode_minus_L=$hardcode_minus_L
18188
18189# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18190# into the resulting binary.
18191hardcode_shlibpath_var=$hardcode_shlibpath_var
18192
18193# Set to "yes" if building a shared library automatically hardcodes DIR
18194# into the library and all subsequent libraries and executables linked
18195# against it.
18196hardcode_automatic=$hardcode_automatic
18197
18198# Set to yes if linker adds runtime paths of dependent libraries
18199# to runtime path list.
18200inherit_rpath=$inherit_rpath
18201
18202# Whether libtool must link a program against all its dependency libraries.
18203link_all_deplibs=$link_all_deplibs
18204
18205# Fix the shell variable \$srcfile for the compiler.
18206fix_srcfile_path=$lt_fix_srcfile_path
18207
18208# Set to "yes" if exported symbols are required.
18209always_export_symbols=$always_export_symbols
18210
18211# The commands to list exported symbols.
18212export_symbols_cmds=$lt_export_symbols_cmds
18213
18214# Symbols that should not be listed in the preloaded symbols.
18215exclude_expsyms=$lt_exclude_expsyms
18216
18217# Symbols that must always be exported.
18218include_expsyms=$lt_include_expsyms
18219
18220# Commands necessary for linking programs (against libraries) with templates.
18221prelink_cmds=$lt_prelink_cmds
18222
18223# Specify filename containing input files.
18224file_list_spec=$lt_file_list_spec
18225
18226# How to hardcode a shared library path into an executable.
18227hardcode_action=$hardcode_action
18228
18229# ### END LIBTOOL CONFIG
18230
18231_LT_EOF
18232
18233 case $host_os in
18234 aix3*)
18235 cat <<\_LT_EOF >> "$cfgfile"
18236# AIX sometimes has problems with the GCC collect2 program. For some
18237# reason, if we set the COLLECT_NAMES environment variable, the problems
18238# vanish in a puff of smoke.
18239if test "X${COLLECT_NAMES+set}" != Xset; then
18240 COLLECT_NAMES=
18241 export COLLECT_NAMES
18242fi
18243_LT_EOF
18244 ;;
18245 esac
18246
18247
18248ltmain="$ac_aux_dir/ltmain.sh"
18249
18250
18251 # We use sed instead of cat because bash on DJGPP gets confused if
18252 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18253 # text mode, it properly converts lines to CR/LF. This bash problem
18254 # is reportedly fixed, but why not run on old versions too?
18255 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18256 || (rm -f "$cfgfile"; exit 1)
18257
18258 case $xsi_shell in
18259 yes)
18260 cat << \_LT_EOF >> "$cfgfile"
18261
18262# func_dirname file append nondir_replacement
18263# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18264# otherwise set result to NONDIR_REPLACEMENT.
18265func_dirname ()
18266{
18267 case ${1} in
18268 */*) func_dirname_result="${1%/*}${2}" ;;
18269 * ) func_dirname_result="${3}" ;;
18270 esac
18271}
18272
18273# func_basename file
18274func_basename ()
18275{
18276 func_basename_result="${1##*/}"
18277}
18278
18279# func_dirname_and_basename file append nondir_replacement
18280# perform func_basename and func_dirname in a single function
18281# call:
18282# dirname: Compute the dirname of FILE. If nonempty,
18283# add APPEND to the result, otherwise set result
18284# to NONDIR_REPLACEMENT.
18285# value returned in "$func_dirname_result"
18286# basename: Compute filename of FILE.
18287# value retuned in "$func_basename_result"
18288# Implementation must be kept synchronized with func_dirname
18289# and func_basename. For efficiency, we do not delegate to
18290# those functions but instead duplicate the functionality here.
18291func_dirname_and_basename ()
18292{
18293 case ${1} in
18294 */*) func_dirname_result="${1%/*}${2}" ;;
18295 * ) func_dirname_result="${3}" ;;
18296 esac
18297 func_basename_result="${1##*/}"
18298}
18299
18300# func_stripname prefix suffix name
18301# strip PREFIX and SUFFIX off of NAME.
18302# PREFIX and SUFFIX must not contain globbing or regex special
18303# characters, hashes, percent signs, but SUFFIX may contain a leading
18304# dot (in which case that matches only a dot).
18305func_stripname ()
18306{
18307 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18308 # positional parameters, so assign one to ordinary parameter first.
18309 func_stripname_result=${3}
18310 func_stripname_result=${func_stripname_result#"${1}"}
18311 func_stripname_result=${func_stripname_result%"${2}"}
18312}
18313
18314# func_opt_split
18315func_opt_split ()
18316{
18317 func_opt_split_opt=${1%%=*}
18318 func_opt_split_arg=${1#*=}
18319}
18320
18321# func_lo2o object
18322func_lo2o ()
18323{
18324 case ${1} in
18325 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18326 *) func_lo2o_result=${1} ;;
18327 esac
18328}
18329
18330# func_xform libobj-or-source
18331func_xform ()
18332{
18333 func_xform_result=${1%.*}.lo
18334}
18335
18336# func_arith arithmetic-term...
18337func_arith ()
18338{
18339 func_arith_result=$(( $* ))
18340}
18341
18342# func_len string
18343# STRING may not start with a hyphen.
18344func_len ()
18345{
18346 func_len_result=${#1}
18347}
18348
18349_LT_EOF
18350 ;;
18351 *) # Bourne compatible functions.
18352 cat << \_LT_EOF >> "$cfgfile"
18353
18354# func_dirname file append nondir_replacement
18355# Compute the dirname of FILE. If nonempty, add APPEND to the result,
18356# otherwise set result to NONDIR_REPLACEMENT.
18357func_dirname ()
18358{
18359 # Extract subdirectory from the argument.
18360 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18361 if test "X$func_dirname_result" = "X${1}"; then
18362 func_dirname_result="${3}"
18363 else
18364 func_dirname_result="$func_dirname_result${2}"
18365 fi
18366}
18367
18368# func_basename file
18369func_basename ()
18370{
18371 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18372}
18373
18374
18375# func_stripname prefix suffix name
18376# strip PREFIX and SUFFIX off of NAME.
18377# PREFIX and SUFFIX must not contain globbing or regex special
18378# characters, hashes, percent signs, but SUFFIX may contain a leading
18379# dot (in which case that matches only a dot).
18380# func_strip_suffix prefix name
18381func_stripname ()
18382{
18383 case ${2} in
18384 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18385 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18386 esac
18387}
18388
18389# sed scripts:
18390my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18391my_sed_long_arg='1s/^-[^=]*=//'
18392
18393# func_opt_split
18394func_opt_split ()
18395{
18396 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18397 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18398}
18399
18400# func_lo2o object
18401func_lo2o ()
18402{
18403 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18404}
18405
18406# func_xform libobj-or-source
18407func_xform ()
18408{
18409 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18410}
18411
18412# func_arith arithmetic-term...
18413func_arith ()
18414{
18415 func_arith_result=`expr "$@"`
18416}
18417
18418# func_len string
18419# STRING may not start with a hyphen.
18420func_len ()
18421{
18422 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18423}
18424
18425_LT_EOF
18426esac
18427
18428case $lt_shell_append in
18429 yes)
18430 cat << \_LT_EOF >> "$cfgfile"
18431
18432# func_append var value
18433# Append VALUE to the end of shell variable VAR.
18434func_append ()
18435{
18436 eval "$1+=\$2"
18437}
18438_LT_EOF
18439 ;;
18440 *)
18441 cat << \_LT_EOF >> "$cfgfile"
18442
18443# func_append var value
18444# Append VALUE to the end of shell variable VAR.
18445func_append ()
18446{
18447 eval "$1=\$$1\$2"
18448}
18449
18450_LT_EOF
18451 ;;
18452 esac
18453
18454
18455 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18456 || (rm -f "$cfgfile"; exit 1)
18457
18458 mv -f "$cfgfile" "$ofile" ||
18459 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18460 chmod +x "$ofile"
18461
18462
18463 cat <<_LT_EOF >> "$ofile"
18464
18465# ### BEGIN LIBTOOL TAG CONFIG: GO
18466
18467# The linker used to build libraries.
18468LD=$lt_LD_GO
18469
18470# How to create reloadable object files.
18471reload_flag=$lt_reload_flag_GO
18472reload_cmds=$lt_reload_cmds_GO
18473
18474# Commands used to build an old-style archive.
18475old_archive_cmds=$lt_old_archive_cmds_GO
18476
18477# A language specific compiler.
18478CC=$lt_compiler_GO
18479
18480# Is the compiler the GNU compiler?
18481with_gcc=$GCC_GO
18482
18483# Compiler flag to turn off builtin functions.
18484no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18485
18486# How to pass a linker flag through the compiler.
18487wl=$lt_lt_prog_compiler_wl_GO
18488
18489# Additional compiler flags for building library objects.
18490pic_flag=$lt_lt_prog_compiler_pic_GO
18491
18492# Compiler flag to prevent dynamic linking.
18493link_static_flag=$lt_lt_prog_compiler_static_GO
18494
18495# Does compiler simultaneously support -c and -o options?
18496compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18497
18498# Whether or not to add -lc for building shared libraries.
18499build_libtool_need_lc=$archive_cmds_need_lc_GO
18500
18501# Whether or not to disallow shared libs when runtime libs are static.
18502allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18503
18504# Compiler flag to allow reflexive dlopens.
18505export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18506
18507# Compiler flag to generate shared objects directly from archives.
18508whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18509
18510# Whether the compiler copes with passing no objects directly.
18511compiler_needs_object=$lt_compiler_needs_object_GO
18512
18513# Create an old-style archive from a shared archive.
18514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18515
18516# Create a temporary old-style archive to link instead of a shared archive.
18517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18518
18519# Commands used to build a shared archive.
18520archive_cmds=$lt_archive_cmds_GO
18521archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18522
18523# Commands used to build a loadable module if different from building
18524# a shared archive.
18525module_cmds=$lt_module_cmds_GO
18526module_expsym_cmds=$lt_module_expsym_cmds_GO
18527
18528# Whether we are building with GNU ld or not.
18529with_gnu_ld=$lt_with_gnu_ld_GO
18530
18531# Flag that allows shared libraries with undefined symbols to be built.
18532allow_undefined_flag=$lt_allow_undefined_flag_GO
18533
18534# Flag that enforces no undefined symbols.
18535no_undefined_flag=$lt_no_undefined_flag_GO
18536
18537# Flag to hardcode \$libdir into a binary during linking.
18538# This must work even if \$libdir does not exist
18539hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18540
18541# If ld is used when linking, flag to hardcode \$libdir into a binary
18542# during linking. This must work even if \$libdir does not exist.
18543hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18544
18545# Whether we need a single "-rpath" flag with a separated argument.
18546hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18547
18548# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18549# DIR into the resulting binary.
18550hardcode_direct=$hardcode_direct_GO
18551
18552# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18553# DIR into the resulting binary and the resulting library dependency is
18554# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18555# library is relocated.
18556hardcode_direct_absolute=$hardcode_direct_absolute_GO
18557
18558# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18559# into the resulting binary.
18560hardcode_minus_L=$hardcode_minus_L_GO
18561
18562# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18563# into the resulting binary.
18564hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18565
18566# Set to "yes" if building a shared library automatically hardcodes DIR
18567# into the library and all subsequent libraries and executables linked
18568# against it.
18569hardcode_automatic=$hardcode_automatic_GO
18570
18571# Set to yes if linker adds runtime paths of dependent libraries
18572# to runtime path list.
18573inherit_rpath=$inherit_rpath_GO
18574
18575# Whether libtool must link a program against all its dependency libraries.
18576link_all_deplibs=$link_all_deplibs_GO
18577
18578# Fix the shell variable \$srcfile for the compiler.
18579fix_srcfile_path=$lt_fix_srcfile_path_GO
18580
18581# Set to "yes" if exported symbols are required.
18582always_export_symbols=$always_export_symbols_GO
18583
18584# The commands to list exported symbols.
18585export_symbols_cmds=$lt_export_symbols_cmds_GO
18586
18587# Symbols that should not be listed in the preloaded symbols.
18588exclude_expsyms=$lt_exclude_expsyms_GO
18589
18590# Symbols that must always be exported.
18591include_expsyms=$lt_include_expsyms_GO
18592
18593# Commands necessary for linking programs (against libraries) with templates.
18594prelink_cmds=$lt_prelink_cmds_GO
18595
18596# Specify filename containing input files.
18597file_list_spec=$lt_file_list_spec_GO
18598
18599# How to hardcode a shared library path into an executable.
18600hardcode_action=$hardcode_action_GO
18601
18602# ### END LIBTOOL TAG CONFIG: GO
18603_LT_EOF
18604
18605 ;;
18606 "default":C) if test -n "$CONFIG_FILES"; then
18607 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18608 # that multilib installs will end up installed in the correct place.
18609 # The testsuite needs it for multilib-aware ABI baseline files.
18610 # To work around this not being passed down from config-ml.in ->
18611 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18612 # append it here. Only modify Makefiles that have just been created.
18613 #
18614 # Also, get rid of this simulated-VPATH thing that automake does.
18615 cat > vpsed << \_EOF
18616s!`test -f '$<' || echo '$(srcdir)/'`!!
18617_EOF
18618 for i in $SUBDIRS; do
18619 case $CONFIG_FILES in
18620 *${i}/Makefile*)
18621 #echo "Adding MULTISUBDIR to $i/Makefile"
18622 sed -f vpsed $i/Makefile > tmp
18623 grep '^MULTISUBDIR =' Makefile >> tmp
18624 mv tmp $i/Makefile
18625 ;;
18626 esac
18627 done
18628 rm vpsed
18629 fi
18630 ;;
18631
18632 esac
18633done # for ac_tag
18634
18635
18636as_fn_exit 0
18637_ACEOF
18638ac_clean_files=$ac_clean_files_save
18639
18640test $ac_write_fail = 0 ||
73b6d7a9 18641 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7a938933
ILT
18642
18643
18644# configure is writing to config.log, and then calls config.status.
18645# config.status does its own redirection, appending to config.log.
18646# Unfortunately, on DOS this fails, as config.log is still kept open
18647# by configure, so config.status won't be able to write to it; its
18648# output is simply discarded. So we exec the FD to /dev/null,
18649# effectively closing config.log, so it can be properly (re)opened and
18650# appended to by config.status. When coming back to configure, we
18651# need to make the FD available again.
18652if test "$no_create" != yes; then
18653 ac_cs_success=:
18654 ac_config_status_args=
18655 test "$silent" = yes &&
18656 ac_config_status_args="$ac_config_status_args --quiet"
18657 exec 5>/dev/null
18658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18659 exec 5>>config.log
18660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18661 # would make configure fail if this is the last instruction.
73b6d7a9 18662 $ac_cs_success || as_fn_exit 1
7a938933
ILT
18663fi
18664if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18666$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18667fi
18668