Don't use bfd_get_* macro to set bfd fields
[deliverable/binutils-gdb.git] / binutils / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for binutils 2.33.50.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
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.
90as_myself=
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
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;}
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
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
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 :
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
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"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
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
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
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
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
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
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
422 fi
423 $as_echo "$as_me: error: $2" >&2
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
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
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.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
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
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
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
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
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='binutils'
589PACKAGE_TARNAME='binutils'
590PACKAGE_VERSION='2.33.50'
591PACKAGE_STRING='binutils 2.33.50'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="ar.c"
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_header_list=
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
637EMULATION_VECTOR
638EMULATION
639OBJDUMP_PRIVATE_OFILES
640OBJDUMP_DEFS
641BUILD_INSTALL_MISC
642BUILD_MISC
643BUILD_DLLWRAP
644BUILD_WINDMC
645BUILD_WINDRES
646DLLTOOL_DEFS
647BUILD_DLLTOOL
648BUILD_SRCONV
649LTLIBICONV
650LIBICONV
651zlibinc
652zlibdir
653ALLOCA
654DEMANGLER_NAME
655EXEEXT_FOR_BUILD
656CC_FOR_BUILD
657HDEFINES
658GENINSRC_NEVER_FALSE
659GENINSRC_NEVER_TRUE
660MAINT
661MAINTAINER_MODE_FALSE
662MAINTAINER_MODE_TRUE
663MSGMERGE
664MSGFMT
665MKINSTALLDIRS
666CATOBJEXT
667GENCAT
668INSTOBJEXT
669DATADIRNAME
670CATALOGS
671POSUB
672GMSGFMT
673XGETTEXT
674INCINTL
675LIBINTL_DEP
676LIBINTL
677USE_NLS
678LEXLIB
679LEX_OUTPUT_ROOT
680LEX
681YFLAGS
682YACC
683WARN_WRITE_STRINGS
684NO_WERROR
685WARN_CFLAGS_FOR_BUILD
686WARN_CFLAGS
687OTOOL64
688OTOOL
689LIPO
690NMEDIT
691DSYMUTIL
692RANLIB
693AR
694OBJDUMP
695LN_S
696NM
697ac_ct_DUMPBIN
698DUMPBIN
699LD
700FGREP
701SED
702LIBTOOL
703EGREP
704GREP
705CPP
706AM_BACKSLASH
707AM_DEFAULT_VERBOSITY
708AM_DEFAULT_V
709AM_V
710am__fastdepCC_FALSE
711am__fastdepCC_TRUE
712CCDEPMODE
713am__nodep
714AMDEPBACKSLASH
715AMDEP_FALSE
716AMDEP_TRUE
717am__quote
718am__include
719DEPDIR
720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
743OBJEXT
744EXEEXT
745ac_ct_CC
746CPPFLAGS
747LDFLAGS
748CFLAGS
749CC
750target_os
751target_vendor
752target_cpu
753target
754host_os
755host_vendor
756host_cpu
757host
758build_os
759build_vendor
760build_cpu
761build
762target_alias
763host_alias
764build_alias
765LIBS
766ECHO_T
767ECHO_N
768ECHO_C
769DEFS
770mandir
771localedir
772libdir
773psdir
774pdfdir
775dvidir
776htmldir
777infodir
778docdir
779oldincludedir
780includedir
781runstatedir
782localstatedir
783sharedstatedir
784sysconfdir
785datadir
786datarootdir
787libexecdir
788sbindir
789bindir
790program_transform_name
791prefix
792exec_prefix
793PACKAGE_URL
794PACKAGE_BUGREPORT
795PACKAGE_STRING
796PACKAGE_VERSION
797PACKAGE_TARNAME
798PACKAGE_NAME
799PATH_SEPARATOR
800SHELL'
801ac_subst_files=''
802ac_user_opts='
803enable_option_checking
804enable_dependency_tracking
805enable_silent_rules
806enable_shared
807enable_static
808with_pic
809enable_fast_install
810with_gnu_ld
811enable_libtool_lock
812enable_plugins
813enable_largefile
814enable_targets
815enable_deterministic_archives
816enable_default_strings_all
817enable_werror
818enable_build_warnings
819enable_nls
820enable_maintainer_mode
821with_system_zlib
822enable_rpath
823with_libiconv_prefix
824'
825 ac_precious_vars='build_alias
826host_alias
827target_alias
828CC
829CFLAGS
830LDFLAGS
831LIBS
832CPPFLAGS
833CPP
834YACC
835YFLAGS'
836
837
838# Initialize some variables set by options.
839ac_init_help=
840ac_init_version=false
841ac_unrecognized_opts=
842ac_unrecognized_sep=
843# The variables have the same names as the options, with
844# dashes changed to underlines.
845cache_file=/dev/null
846exec_prefix=NONE
847no_create=
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
856verbose=
857x_includes=NONE
858x_libraries=NONE
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
865# (The list follows the same order as the GNU Coding Standards.)
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
874runstatedir='${localstatedir}/run'
875includedir='${prefix}/include'
876oldincludedir='/usr/include'
877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878infodir='${datarootdir}/info'
879htmldir='${docdir}'
880dvidir='${docdir}'
881pdfdir='${docdir}'
882psdir='${docdir}'
883libdir='${exec_prefix}/lib'
884localedir='${datarootdir}/locale'
885mandir='${datarootdir}/man'
886
887ac_prev=
888ac_dashdash=
889for ac_option
890do
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
894 ac_prev=
895 continue
896 fi
897
898 case $ac_option in
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *=) ac_optarg= ;;
901 *) ac_optarg=yes ;;
902 esac
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977"enable_$ac_useropt"
978"*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -runstatedir | --runstatedir | --runstatedi | --runstated \
1128 | --runstate | --runstat | --runsta | --runst | --runs \
1129 | --run | --ru | --r)
1130 ac_prev=runstatedir ;;
1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133 | --run=* | --ru=* | --r=*)
1134 runstatedir=$ac_optarg ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1232Try \`$0 --help' for more information"
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251 ;;
1252
1253 esac
1254done
1255
1256if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error $? "missing argument to $ac_option"
1259fi
1260
1261if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267fi
1268
1269# Check all directory arguments for consistency.
1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir runstatedir
1274do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288done
1289
1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
1296
1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
1310
1311
1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351else
1352 ac_srcdir_defaulted=no
1353fi
1354if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
1372for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386\`configure' configures binutils 2.33.50 to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1406Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440_ACEOF
1441
1442 cat <<\_ACEOF
1443
1444Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448
1449System types:
1450 --build=BUILD configure for building on BUILD [guessed]
1451 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 --target=TARGET configure for building compilers for TARGET [HOST]
1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of binutils 2.33.50:";;
1459 esac
1460 cat <<\_ACEOF
1461
1462Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-dependency-tracking
1467 do not reject slow dependency extractors
1468 --disable-dependency-tracking
1469 speeds up one-time build
1470 --enable-silent-rules less verbose build output (undo: "make V=1")
1471 --disable-silent-rules verbose build output (undo: "make V=0")
1472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --enable-plugins Enable support for plugins
1478 --disable-largefile omit support for large files
1479 --enable-targets alternative target configurations
1480 --enable-deterministic-archives
1481 ar and ranlib default to -D behavior
1482 --disable-default-strings-all
1483 strings defaults to --data behavior
1484 --enable-werror treat compile warnings as errors
1485 --enable-build-warnings enable build-time compiler warnings
1486 --disable-nls do not use Native Language Support
1487 --enable-maintainer-mode
1488 enable make rules and dependencies not useful (and
1489 sometimes confusing) to the casual installer
1490 --disable-rpath do not hardcode runtime library paths
1491
1492Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1496 both]
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-system-zlib use installed libz
1499 --with-gnu-ld assume the C compiler uses GNU ld default=no
1500 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1501 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1502
1503Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CPP C preprocessor
1512 YACC The `Yet Another Compiler Compiler' implementation to use.
1513 Defaults to the first program found out of: `bison -y', `byacc',
1514 `yacc'.
1515 YFLAGS The list of arguments that will be passed by default to $YACC.
1516 This script will default YFLAGS to the empty string to avoid a
1517 default value of `-d' given by some make applications.
1518
1519Use these variables to override the choices made by `configure' or to help
1520it to find libraries and programs with nonstandard names/locations.
1521
1522Report bugs to the package provider.
1523_ACEOF
1524ac_status=$?
1525fi
1526
1527if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" ||
1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 continue
1533 ac_builddir=.
1534
1535case "$ac_dir" in
1536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537*)
1538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 esac ;;
1545esac
1546ac_abs_top_builddir=$ac_pwd
1547ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548# for backward compatibility:
1549ac_top_builddir=$ac_top_build_prefix
1550
1551case $srcdir in
1552 .) # We are building in place.
1553 ac_srcdir=.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1560 *) # Relative name.
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564esac
1565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1575 else
1576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 fi || ac_status=$?
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1579 done
1580fi
1581
1582test -n "$ac_init_help" && exit $ac_status
1583if $ac_init_version; then
1584 cat <<\_ACEOF
1585binutils configure 2.33.50
1586generated by GNU Autoconf 2.69
1587
1588Copyright (C) 2012 Free Software Foundation, Inc.
1589This configure script is free software; the Free Software Foundation
1590gives unlimited permission to copy, distribute and modify it.
1591_ACEOF
1592 exit
1593fi
1594
1595## ------------------------ ##
1596## Autoconf initialization. ##
1597## ------------------------ ##
1598
1599# ac_fn_c_try_compile LINENO
1600# --------------------------
1601# Try to compile conftest.$ac_ext, and return whether this succeeded.
1602ac_fn_c_try_compile ()
1603{
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext
1606 if { { ac_try="$ac_compile"
1607case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext; then :
1625 ac_retval=0
1626else
1627 $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635} # ac_fn_c_try_compile
1636
1637# ac_fn_c_try_link LINENO
1638# -----------------------
1639# Try to link conftest.$ac_ext, and return whether this succeeded.
1640ac_fn_c_try_link ()
1641{
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest$ac_exeext
1644 if { { ac_try="$ac_link"
1645case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648esac
1649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650$as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest$ac_exeext && {
1663 test "$cross_compiling" = yes ||
1664 test -x conftest$ac_exeext
1665 }; then :
1666 ac_retval=0
1667else
1668 $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672fi
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1680
1681} # ac_fn_c_try_link
1682
1683# ac_fn_c_try_cpp LINENO
1684# ----------------------
1685# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686ac_fn_c_try_cpp ()
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
1690case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } > conftest.i && {
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 }; then :
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714fi
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718} # ac_fn_c_try_cpp
1719
1720# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721# -------------------------------------------------------
1722# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723# the include files in INCLUDES and setting the cache variable VAR
1724# accordingly.
1725ac_fn_c_check_header_mongrel ()
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if eval \${$3+:} false; then :
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
1731if eval \${$3+:} false; then :
1732 $as_echo_n "(cached) " >&6
1733fi
1734eval ac_res=\$$3
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736$as_echo "$ac_res" >&6; }
1737else
1738 # Is the header compilable?
1739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740$as_echo_n "checking $2 usability... " >&6; }
1741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742/* end confdefs.h. */
1743$4
1744#include <$2>
1745_ACEOF
1746if ac_fn_c_try_compile "$LINENO"; then :
1747 ac_header_compiler=yes
1748else
1749 ac_header_compiler=no
1750fi
1751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753$as_echo "$ac_header_compiler" >&6; }
1754
1755# Is the header present?
1756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757$as_echo_n "checking $2 presence... " >&6; }
1758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h. */
1760#include <$2>
1761_ACEOF
1762if ac_fn_c_try_cpp "$LINENO"; then :
1763 ac_header_preproc=yes
1764else
1765 ac_header_preproc=no
1766fi
1767rm -f conftest.err conftest.i conftest.$ac_ext
1768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769$as_echo "$ac_header_preproc" >&6; }
1770
1771# So? What about this header?
1772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1773 yes:no: )
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1778 ;;
1779 no:yes:* )
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1783$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1787$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790 ;;
1791esac
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1796else
1797 eval "$3=\$ac_header_compiler"
1798fi
1799eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801$as_echo "$ac_res" >&6; }
1802fi
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805} # ac_fn_c_check_header_mongrel
1806
1807# ac_fn_c_try_run LINENO
1808# ----------------------
1809# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1810# that executables *can* be run.
1811ac_fn_c_try_run ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 if { { ac_try="$ac_link"
1815case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>&5
1822 ac_status=$?
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1825 { { case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_try") 2>&5
1832 ac_status=$?
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; }; }; then :
1835 ac_retval=0
1836else
1837 $as_echo "$as_me: program exited with status $ac_status" >&5
1838 $as_echo "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=$ac_status
1842fi
1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 as_fn_set_status $ac_retval
1846
1847} # ac_fn_c_try_run
1848
1849# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1850# -------------------------------------------------------
1851# Tests whether HEADER exists and can be compiled using the include files in
1852# INCLUDES, setting the cache variable VAR accordingly.
1853ac_fn_c_check_header_compile ()
1854{
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1860else
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h. */
1863$4
1864#include <$2>
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867 eval "$3=yes"
1868else
1869 eval "$3=no"
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_header_compile
1879
1880# ac_fn_c_check_func LINENO FUNC VAR
1881# ----------------------------------
1882# Tests whether FUNC exists, setting the cache variable VAR accordingly
1883ac_fn_c_check_func ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887$as_echo_n "checking for $2... " >&6; }
1888if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h. */
1893/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1895#define $2 innocuous_$2
1896
1897/* System header to define __stub macros and hopefully few prototypes,
1898 which can conflict with char $2 (); below.
1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1900 <limits.h> exists even on freestanding compilers. */
1901
1902#ifdef __STDC__
1903# include <limits.h>
1904#else
1905# include <assert.h>
1906#endif
1907
1908#undef $2
1909
1910/* Override any GCC internal prototype to avoid an error.
1911 Use char because int might match the return type of a GCC
1912 builtin and then its argument prototype would still apply. */
1913#ifdef __cplusplus
1914extern "C"
1915#endif
1916char $2 ();
1917/* The GNU C library defines this for functions which it implements
1918 to always fail with ENOSYS. Some functions are actually named
1919 something starting with __ and the normal name is an alias. */
1920#if defined __stub_$2 || defined __stub___$2
1921choke me
1922#endif
1923
1924int
1925main ()
1926{
1927return $2 ();
1928 ;
1929 return 0;
1930}
1931_ACEOF
1932if ac_fn_c_try_link "$LINENO"; then :
1933 eval "$3=yes"
1934else
1935 eval "$3=no"
1936fi
1937rm -f core conftest.err conftest.$ac_objext \
1938 conftest$ac_exeext conftest.$ac_ext
1939fi
1940eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944
1945} # ac_fn_c_check_func
1946
1947# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1948# --------------------------------------------
1949# Tries to find the compile-time value of EXPR in a program that includes
1950# INCLUDES, setting VAR accordingly. Returns whether the value could be
1951# computed
1952ac_fn_c_compute_int ()
1953{
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if test "$cross_compiling" = yes; then
1956 # Depending upon the size, compute the lo and hi bounds.
1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h. */
1959$4
1960int
1961main ()
1962{
1963static int test_array [1 - 2 * !(($2) >= 0)];
1964test_array [0] = 0;
1965return test_array [0];
1966
1967 ;
1968 return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_lo=0 ac_mid=0
1973 while :; do
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976$4
1977int
1978main ()
1979{
1980static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1981test_array [0] = 0;
1982return test_array [0];
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988if ac_fn_c_try_compile "$LINENO"; then :
1989 ac_hi=$ac_mid; break
1990else
1991 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1992 if test $ac_lo -le $ac_mid; then
1993 ac_lo= ac_hi=
1994 break
1995 fi
1996 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 done
2000else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003$4
2004int
2005main ()
2006{
2007static int test_array [1 - 2 * !(($2) < 0)];
2008test_array [0] = 0;
2009return test_array [0];
2010
2011 ;
2012 return 0;
2013}
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_hi=-1 ac_mid=-1
2017 while :; do
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
2020$4
2021int
2022main ()
2023{
2024static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2025test_array [0] = 0;
2026return test_array [0];
2027
2028 ;
2029 return 0;
2030}
2031_ACEOF
2032if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_lo=$ac_mid; break
2034else
2035 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2036 if test $ac_mid -le $ac_hi; then
2037 ac_lo= ac_hi=
2038 break
2039 fi
2040 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 done
2044else
2045 ac_lo= ac_hi=
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050# Binary search between lo and hi bounds.
2051while test "x$ac_lo" != "x$ac_hi"; do
2052 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054/* end confdefs.h. */
2055$4
2056int
2057main ()
2058{
2059static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060test_array [0] = 0;
2061return test_array [0];
2062
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_hi=$ac_mid
2069else
2070 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073done
2074case $ac_lo in #((
2075?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2076'') ac_retval=1 ;;
2077esac
2078 else
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h. */
2081$4
2082static long int longval () { return $2; }
2083static unsigned long int ulongval () { return $2; }
2084#include <stdio.h>
2085#include <stdlib.h>
2086int
2087main ()
2088{
2089
2090 FILE *f = fopen ("conftest.val", "w");
2091 if (! f)
2092 return 1;
2093 if (($2) < 0)
2094 {
2095 long int i = longval ();
2096 if (i != ($2))
2097 return 1;
2098 fprintf (f, "%ld", i);
2099 }
2100 else
2101 {
2102 unsigned long int i = ulongval ();
2103 if (i != ($2))
2104 return 1;
2105 fprintf (f, "%lu", i);
2106 }
2107 /* Do not output a trailing newline, as this causes \r\n confusion
2108 on some platforms. */
2109 return ferror (f) || fclose (f) != 0;
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_run "$LINENO"; then :
2116 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2117else
2118 ac_retval=1
2119fi
2120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2121 conftest.$ac_objext conftest.beam conftest.$ac_ext
2122rm -f conftest.val
2123
2124 fi
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2127
2128} # ac_fn_c_compute_int
2129
2130# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131# -------------------------------------------
2132# Tests whether TYPE exists after having included INCLUDES, setting cache
2133# variable VAR accordingly.
2134ac_fn_c_check_type ()
2135{
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138$as_echo_n "checking for $2... " >&6; }
2139if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141else
2142 eval "$3=no"
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146int
2147main ()
2148{
2149if (sizeof ($2))
2150 return 0;
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h. */
2158$4
2159int
2160main ()
2161{
2162if (sizeof (($2)))
2163 return 0;
2164 ;
2165 return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169
2170else
2171 eval "$3=yes"
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176fi
2177eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182} # ac_fn_c_check_type
2183
2184# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2185# ---------------------------------------------
2186# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2187# accordingly.
2188ac_fn_c_check_decl ()
2189{
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 as_decl_name=`echo $2|sed 's/ *(.*//'`
2192 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2194$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2195if eval \${$3+:} false; then :
2196 $as_echo_n "(cached) " >&6
2197else
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201int
2202main ()
2203{
2204#ifndef $as_decl_name
2205#ifdef __cplusplus
2206 (void) $as_decl_use;
2207#else
2208 (void) $as_decl_name;
2209#endif
2210#endif
2211
2212 ;
2213 return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217 eval "$3=yes"
2218else
2219 eval "$3=no"
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222fi
2223eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225$as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227
2228} # ac_fn_c_check_decl
2229cat >config.log <<_ACEOF
2230This file contains any messages produced by compilers while
2231running configure, to aid debugging if configure makes a mistake.
2232
2233It was created by binutils $as_me 2.33.50, which was
2234generated by GNU Autoconf 2.69. Invocation command line was
2235
2236 $ $0 $@
2237
2238_ACEOF
2239exec 5>>config.log
2240{
2241cat <<_ASUNAME
2242## --------- ##
2243## Platform. ##
2244## --------- ##
2245
2246hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2247uname -m = `(uname -m) 2>/dev/null || echo unknown`
2248uname -r = `(uname -r) 2>/dev/null || echo unknown`
2249uname -s = `(uname -s) 2>/dev/null || echo unknown`
2250uname -v = `(uname -v) 2>/dev/null || echo unknown`
2251
2252/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2253/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2254
2255/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2256/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2257/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2258/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2259/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2260/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2261/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2262
2263_ASUNAME
2264
2265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266for as_dir in $PATH
2267do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 $as_echo "PATH: $as_dir"
2271 done
2272IFS=$as_save_IFS
2273
2274} >&5
2275
2276cat >&5 <<_ACEOF
2277
2278
2279## ----------- ##
2280## Core tests. ##
2281## ----------- ##
2282
2283_ACEOF
2284
2285
2286# Keep a trace of the command line.
2287# Strip out --no-create and --no-recursion so they do not pile up.
2288# Strip out --silent because we don't want to record it for future runs.
2289# Also quote any args containing shell meta-characters.
2290# Make two passes to allow for proper duplicate-argument suppression.
2291ac_configure_args=
2292ac_configure_args0=
2293ac_configure_args1=
2294ac_must_keep_next=false
2295for ac_pass in 1 2
2296do
2297 for ac_arg
2298 do
2299 case $ac_arg in
2300 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2302 | -silent | --silent | --silen | --sile | --sil)
2303 continue ;;
2304 *\'*)
2305 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 esac
2307 case $ac_pass in
2308 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2309 2)
2310 as_fn_append ac_configure_args1 " '$ac_arg'"
2311 if test $ac_must_keep_next = true; then
2312 ac_must_keep_next=false # Got value, back to normal.
2313 else
2314 case $ac_arg in
2315 *=* | --config-cache | -C | -disable-* | --disable-* \
2316 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2317 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2318 | -with-* | --with-* | -without-* | --without-* | --x)
2319 case "$ac_configure_args0 " in
2320 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2321 esac
2322 ;;
2323 -* ) ac_must_keep_next=true ;;
2324 esac
2325 fi
2326 as_fn_append ac_configure_args " '$ac_arg'"
2327 ;;
2328 esac
2329 done
2330done
2331{ ac_configure_args0=; unset ac_configure_args0;}
2332{ ac_configure_args1=; unset ac_configure_args1;}
2333
2334# When interrupted or exit'd, cleanup temporary files, and complete
2335# config.log. We remove comments because anyway the quotes in there
2336# would cause problems or look ugly.
2337# WARNING: Use '\'' to represent an apostrophe within the trap.
2338# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2339trap 'exit_status=$?
2340 # Save into config.log some information that might help in debugging.
2341 {
2342 echo
2343
2344 $as_echo "## ---------------- ##
2345## Cache variables. ##
2346## ---------------- ##"
2347 echo
2348 # The following way of writing the cache mishandles newlines in values,
2349(
2350 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in #(
2353 *${as_nl}*)
2354 case $ac_var in #(
2355 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2356$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2357 esac
2358 case $ac_var in #(
2359 _ | IFS | as_nl) ;; #(
2360 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2361 *) { eval $ac_var=; unset $ac_var;} ;;
2362 esac ;;
2363 esac
2364 done
2365 (set) 2>&1 |
2366 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2367 *${as_nl}ac_space=\ *)
2368 sed -n \
2369 "s/'\''/'\''\\\\'\'''\''/g;
2370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2371 ;; #(
2372 *)
2373 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2374 ;;
2375 esac |
2376 sort
2377)
2378 echo
2379
2380 $as_echo "## ----------------- ##
2381## Output variables. ##
2382## ----------------- ##"
2383 echo
2384 for ac_var in $ac_subst_vars
2385 do
2386 eval ac_val=\$$ac_var
2387 case $ac_val in
2388 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389 esac
2390 $as_echo "$ac_var='\''$ac_val'\''"
2391 done | sort
2392 echo
2393
2394 if test -n "$ac_subst_files"; then
2395 $as_echo "## ------------------- ##
2396## File substitutions. ##
2397## ------------------- ##"
2398 echo
2399 for ac_var in $ac_subst_files
2400 do
2401 eval ac_val=\$$ac_var
2402 case $ac_val in
2403 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2404 esac
2405 $as_echo "$ac_var='\''$ac_val'\''"
2406 done | sort
2407 echo
2408 fi
2409
2410 if test -s confdefs.h; then
2411 $as_echo "## ----------- ##
2412## confdefs.h. ##
2413## ----------- ##"
2414 echo
2415 cat confdefs.h
2416 echo
2417 fi
2418 test "$ac_signal" != 0 &&
2419 $as_echo "$as_me: caught signal $ac_signal"
2420 $as_echo "$as_me: exit $exit_status"
2421 } >&5
2422 rm -f core *.core core.conftest.* &&
2423 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2424 exit $exit_status
2425' 0
2426for ac_signal in 1 2 13 15; do
2427 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2428done
2429ac_signal=0
2430
2431# confdefs.h avoids OS command line length limits that DEFS can exceed.
2432rm -f -r conftest* confdefs.h
2433
2434$as_echo "/* confdefs.h */" > confdefs.h
2435
2436# Predefined preprocessor variables.
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_NAME "$PACKAGE_NAME"
2440_ACEOF
2441
2442cat >>confdefs.h <<_ACEOF
2443#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2444_ACEOF
2445
2446cat >>confdefs.h <<_ACEOF
2447#define PACKAGE_VERSION "$PACKAGE_VERSION"
2448_ACEOF
2449
2450cat >>confdefs.h <<_ACEOF
2451#define PACKAGE_STRING "$PACKAGE_STRING"
2452_ACEOF
2453
2454cat >>confdefs.h <<_ACEOF
2455#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2456_ACEOF
2457
2458cat >>confdefs.h <<_ACEOF
2459#define PACKAGE_URL "$PACKAGE_URL"
2460_ACEOF
2461
2462
2463# Let the site file select an alternate cache file if it wants to.
2464# Prefer an explicitly selected file to automatically selected ones.
2465ac_site_file1=NONE
2466ac_site_file2=NONE
2467if test -n "$CONFIG_SITE"; then
2468 # We do not want a PATH search for config.site.
2469 case $CONFIG_SITE in #((
2470 -*) ac_site_file1=./$CONFIG_SITE;;
2471 */*) ac_site_file1=$CONFIG_SITE;;
2472 *) ac_site_file1=./$CONFIG_SITE;;
2473 esac
2474elif test "x$prefix" != xNONE; then
2475 ac_site_file1=$prefix/share/config.site
2476 ac_site_file2=$prefix/etc/config.site
2477else
2478 ac_site_file1=$ac_default_prefix/share/config.site
2479 ac_site_file2=$ac_default_prefix/etc/config.site
2480fi
2481for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2482do
2483 test "x$ac_site_file" = xNONE && continue
2484 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2486$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2487 sed 's/^/| /' "$ac_site_file" >&5
2488 . "$ac_site_file" \
2489 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491as_fn_error $? "failed to load site script $ac_site_file
2492See \`config.log' for more details" "$LINENO" 5; }
2493 fi
2494done
2495
2496if test -r "$cache_file"; then
2497 # Some versions of bash will fail to source /dev/null (special files
2498 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2499 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2501$as_echo "$as_me: loading cache $cache_file" >&6;}
2502 case $cache_file in
2503 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2504 *) . "./$cache_file";;
2505 esac
2506 fi
2507else
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2509$as_echo "$as_me: creating cache $cache_file" >&6;}
2510 >$cache_file
2511fi
2512
2513as_fn_append ac_header_list " stdlib.h"
2514as_fn_append ac_header_list " unistd.h"
2515as_fn_append ac_header_list " sys/param.h"
2516# Check that the precious variables saved in the cache have kept the same
2517# value.
2518ac_cache_corrupted=false
2519for ac_var in $ac_precious_vars; do
2520 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2521 eval ac_new_set=\$ac_env_${ac_var}_set
2522 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2523 eval ac_new_val=\$ac_env_${ac_var}_value
2524 case $ac_old_set,$ac_new_set in
2525 set,)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2527$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2528 ac_cache_corrupted=: ;;
2529 ,set)
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2531$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2532 ac_cache_corrupted=: ;;
2533 ,);;
2534 *)
2535 if test "x$ac_old_val" != "x$ac_new_val"; then
2536 # differences in whitespace do not lead to failure.
2537 ac_old_val_w=`echo x $ac_old_val`
2538 ac_new_val_w=`echo x $ac_new_val`
2539 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2541$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2542 ac_cache_corrupted=:
2543 else
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2545$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2546 eval $ac_var=\$ac_old_val
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2549$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2551$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2552 fi;;
2553 esac
2554 # Pass precious variables to config.status.
2555 if test "$ac_new_set" = set; then
2556 case $ac_new_val in
2557 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2558 *) ac_arg=$ac_var=$ac_new_val ;;
2559 esac
2560 case " $ac_configure_args " in
2561 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2562 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2563 esac
2564 fi
2565done
2566if $ac_cache_corrupted; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2570$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2571 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2572fi
2573## -------------------- ##
2574## Main body of script. ##
2575## -------------------- ##
2576
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583
2584
2585
2586
2587
2588
2589ac_aux_dir=
2590for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2591 if test -f "$ac_dir/install-sh"; then
2592 ac_aux_dir=$ac_dir
2593 ac_install_sh="$ac_aux_dir/install-sh -c"
2594 break
2595 elif test -f "$ac_dir/install.sh"; then
2596 ac_aux_dir=$ac_dir
2597 ac_install_sh="$ac_aux_dir/install.sh -c"
2598 break
2599 elif test -f "$ac_dir/shtool"; then
2600 ac_aux_dir=$ac_dir
2601 ac_install_sh="$ac_aux_dir/shtool install -c"
2602 break
2603 fi
2604done
2605if test -z "$ac_aux_dir"; then
2606 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2607fi
2608
2609# These three variables are undocumented and unsupported,
2610# and are intended to be withdrawn in a future Autoconf release.
2611# They can cause serious problems if a builder's source tree is in a directory
2612# whose full name contains unusual characters.
2613ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2614ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2615ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2616
2617
2618# Make sure we can run config.sub.
2619$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2620 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2621
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2623$as_echo_n "checking build system type... " >&6; }
2624if ${ac_cv_build+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626else
2627 ac_build_alias=$build_alias
2628test "x$ac_build_alias" = x &&
2629 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2630test "x$ac_build_alias" = x &&
2631 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2632ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2633 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2634
2635fi
2636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2637$as_echo "$ac_cv_build" >&6; }
2638case $ac_cv_build in
2639*-*-*) ;;
2640*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2641esac
2642build=$ac_cv_build
2643ac_save_IFS=$IFS; IFS='-'
2644set x $ac_cv_build
2645shift
2646build_cpu=$1
2647build_vendor=$2
2648shift; shift
2649# Remember, the first character of IFS is used to create $*,
2650# except with old shells:
2651build_os=$*
2652IFS=$ac_save_IFS
2653case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2654
2655
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2657$as_echo_n "checking host system type... " >&6; }
2658if ${ac_cv_host+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660else
2661 if test "x$host_alias" = x; then
2662 ac_cv_host=$ac_cv_build
2663else
2664 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2666fi
2667
2668fi
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2670$as_echo "$ac_cv_host" >&6; }
2671case $ac_cv_host in
2672*-*-*) ;;
2673*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2674esac
2675host=$ac_cv_host
2676ac_save_IFS=$IFS; IFS='-'
2677set x $ac_cv_host
2678shift
2679host_cpu=$1
2680host_vendor=$2
2681shift; shift
2682# Remember, the first character of IFS is used to create $*,
2683# except with old shells:
2684host_os=$*
2685IFS=$ac_save_IFS
2686case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2687
2688
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2690$as_echo_n "checking target system type... " >&6; }
2691if ${ac_cv_target+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693else
2694 if test "x$target_alias" = x; then
2695 ac_cv_target=$ac_cv_host
2696else
2697 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2698 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2699fi
2700
2701fi
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2703$as_echo "$ac_cv_target" >&6; }
2704case $ac_cv_target in
2705*-*-*) ;;
2706*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2707esac
2708target=$ac_cv_target
2709ac_save_IFS=$IFS; IFS='-'
2710set x $ac_cv_target
2711shift
2712target_cpu=$1
2713target_vendor=$2
2714shift; shift
2715# Remember, the first character of IFS is used to create $*,
2716# except with old shells:
2717target_os=$*
2718IFS=$ac_save_IFS
2719case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2720
2721
2722# The aliases save the names the user supplied, while $host etc.
2723# will get canonicalized.
2724test -n "$target_alias" &&
2725 test "$program_prefix$program_suffix$program_transform_name" = \
2726 NONENONEs,x,x, &&
2727 program_prefix=${target_alias}-
2728# Expand $ac_aux_dir to an absolute path.
2729am_aux_dir=`cd "$ac_aux_dir" && pwd`
2730
2731ac_ext=c
2732ac_cpp='$CPP $CPPFLAGS'
2733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2738set dummy ${ac_tool_prefix}gcc; ac_word=$2
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740$as_echo_n "checking for $ac_word... " >&6; }
2741if ${ac_cv_prog_CC+:} false; then :
2742 $as_echo_n "(cached) " >&6
2743else
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2757 fi
2758done
2759 done
2760IFS=$as_save_IFS
2761
2762fi
2763fi
2764CC=$ac_cv_prog_CC
2765if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767$as_echo "$CC" >&6; }
2768else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770$as_echo "no" >&6; }
2771fi
2772
2773
2774fi
2775if test -z "$ac_cv_prog_CC"; then
2776 ac_ct_CC=$CC
2777 # Extract the first word of "gcc", so it can be a program name with args.
2778set dummy gcc; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if ${ac_cv_prog_ac_ct_CC+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783else
2784 if test -n "$ac_ct_CC"; then
2785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_ac_ct_CC="gcc"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799 done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805if test -n "$ac_ct_CC"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807$as_echo "$ac_ct_CC" >&6; }
2808else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813 if test "x$ac_ct_CC" = x; then
2814 CC=""
2815 else
2816 case $cross_compiling:$ac_tool_warned in
2817yes:)
2818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820ac_tool_warned=yes ;;
2821esac
2822 CC=$ac_ct_CC
2823 fi
2824else
2825 CC="$ac_cv_prog_CC"
2826fi
2827
2828if test -z "$CC"; then
2829 if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2831set dummy ${ac_tool_prefix}cc; ac_word=$2
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833$as_echo_n "checking for $ac_word... " >&6; }
2834if ${ac_cv_prog_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839else
2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841for as_dir in $PATH
2842do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC="${ac_tool_prefix}cc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851done
2852 done
2853IFS=$as_save_IFS
2854
2855fi
2856fi
2857CC=$ac_cv_prog_CC
2858if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860$as_echo "$CC" >&6; }
2861else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863$as_echo "no" >&6; }
2864fi
2865
2866
2867 fi
2868fi
2869if test -z "$CC"; then
2870 # Extract the first word of "cc", so it can be a program name with args.
2871set dummy cc; ac_word=$2
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873$as_echo_n "checking for $ac_word... " >&6; }
2874if ${ac_cv_prog_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879else
2880 ac_prog_rejected=no
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2889 ac_prog_rejected=yes
2890 continue
2891 fi
2892 ac_cv_prog_CC="cc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897 done
2898IFS=$as_save_IFS
2899
2900if test $ac_prog_rejected = yes; then
2901 # We found a bogon in the path, so make sure we never use it.
2902 set dummy $ac_cv_prog_CC
2903 shift
2904 if test $# != 0; then
2905 # We chose a different compiler from the bogus one.
2906 # However, it has the same basename, so the bogon will be chosen
2907 # first if we set CC to just the basename; use the full file name.
2908 shift
2909 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2910 fi
2911fi
2912fi
2913fi
2914CC=$ac_cv_prog_CC
2915if test -n "$CC"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917$as_echo "$CC" >&6; }
2918else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920$as_echo "no" >&6; }
2921fi
2922
2923
2924fi
2925if test -z "$CC"; then
2926 if test -n "$ac_tool_prefix"; then
2927 for ac_prog in cl.exe
2928 do
2929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950done
2951 done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956CC=$ac_cv_prog_CC
2957if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959$as_echo "$CC" >&6; }
2960else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966 test -n "$CC" && break
2967 done
2968fi
2969if test -z "$CC"; then
2970 ac_ct_CC=$CC
2971 for ac_prog in cl.exe
2972do
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974set dummy $ac_prog; ac_word=$2
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976$as_echo_n "checking for $ac_word... " >&6; }
2977if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979else
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982else
2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984for as_dir in $PATH
2985do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_ac_ct_CC="$ac_prog"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994done
2995 done
2996IFS=$as_save_IFS
2997
2998fi
2999fi
3000ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001if test -n "$ac_ct_CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003$as_echo "$ac_ct_CC" >&6; }
3004else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006$as_echo "no" >&6; }
3007fi
3008
3009
3010 test -n "$ac_ct_CC" && break
3011done
3012
3013 if test "x$ac_ct_CC" = x; then
3014 CC=""
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017yes:)
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020ac_tool_warned=yes ;;
3021esac
3022 CC=$ac_ct_CC
3023 fi
3024fi
3025
3026fi
3027
3028
3029test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031as_fn_error $? "no acceptable C compiler found in \$PATH
3032See \`config.log' for more details" "$LINENO" 5; }
3033
3034# Provide some information about the compiler.
3035$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3036set X $ac_compile
3037ac_compiler=$2
3038for ac_option in --version -v -V -qversion; do
3039 { { ac_try="$ac_compiler $ac_option >&5"
3040case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045$as_echo "$ac_try_echo"; } >&5
3046 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3047 ac_status=$?
3048 if test -s conftest.err; then
3049 sed '10a\
3050... rest of stderr output deleted ...
3051 10q' conftest.err >conftest.er1
3052 cat conftest.er1 >&5
3053 fi
3054 rm -f conftest.er1 conftest.err
3055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056 test $ac_status = 0; }
3057done
3058
3059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060/* end confdefs.h. */
3061
3062int
3063main ()
3064{
3065
3066 ;
3067 return 0;
3068}
3069_ACEOF
3070ac_clean_files_save=$ac_clean_files
3071ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3072# Try to create an executable without -o first, disregard a.out.
3073# It will help us diagnose broken compilers, and finding out an intuition
3074# of exeext.
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3076$as_echo_n "checking whether the C compiler works... " >&6; }
3077ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078
3079# The possible output files:
3080ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3081
3082ac_rmfiles=
3083for ac_file in $ac_files
3084do
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3088 esac
3089done
3090rm -f $ac_rmfiles
3091
3092if { { ac_try="$ac_link_default"
3093case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098$as_echo "$ac_try_echo"; } >&5
3099 (eval "$ac_link_default") 2>&5
3100 ac_status=$?
3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102 test $ac_status = 0; }; then :
3103 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105# in a Makefile. We should not override ac_cv_exeext if it was cached,
3106# so that the user can short-circuit this test for compilers unknown to
3107# Autoconf.
3108for ac_file in $ac_files ''
3109do
3110 test -f "$ac_file" || continue
3111 case $ac_file in
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3113 ;;
3114 [ab].out )
3115 # We found the default executable, but exeext='' is most
3116 # certainly right.
3117 break;;
3118 *.* )
3119 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120 then :; else
3121 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 fi
3123 # We set ac_cv_exeext here because the later test for it is not
3124 # safe: cross compilers may not add the suffix if given an `-o'
3125 # argument, so we may need to know it at that point already.
3126 # Even if this section looks crufty: it has the advantage of
3127 # actually working.
3128 break;;
3129 * )
3130 break;;
3131 esac
3132done
3133test "$ac_cv_exeext" = no && ac_cv_exeext=
3134
3135else
3136 ac_file=''
3137fi
3138if test -z "$ac_file"; then :
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141$as_echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146as_fn_error 77 "C compiler cannot create executables
3147See \`config.log' for more details" "$LINENO" 5; }
3148else
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150$as_echo "yes" >&6; }
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3153$as_echo_n "checking for C compiler default output file name... " >&6; }
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155$as_echo "$ac_file" >&6; }
3156ac_exeext=$ac_cv_exeext
3157
3158rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3159ac_clean_files=$ac_clean_files_save
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3161$as_echo_n "checking for suffix of executables... " >&6; }
3162if { { ac_try="$ac_link"
3163case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168$as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_link") 2>&5
3170 ac_status=$?
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }; then :
3173 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3174# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3175# work properly (i.e., refer to `conftest.exe'), while it won't with
3176# `rm'.
3177for ac_file in conftest.exe conftest conftest.*; do
3178 test -f "$ac_file" || continue
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182 break;;
3183 * ) break;;
3184 esac
3185done
3186else
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3190See \`config.log' for more details" "$LINENO" 5; }
3191fi
3192rm -f conftest conftest$ac_cv_exeext
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3194$as_echo "$ac_cv_exeext" >&6; }
3195
3196rm -f conftest.$ac_ext
3197EXEEXT=$ac_cv_exeext
3198ac_exeext=$EXEEXT
3199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200/* end confdefs.h. */
3201#include <stdio.h>
3202int
3203main ()
3204{
3205FILE *f = fopen ("conftest.out", "w");
3206 return ferror (f) || fclose (f) != 0;
3207
3208 ;
3209 return 0;
3210}
3211_ACEOF
3212ac_clean_files="$ac_clean_files conftest.out"
3213# Check that the compiler produces executables we can run. If not, either
3214# the compiler is broken, or we cross compile.
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3216$as_echo_n "checking whether we are cross compiling... " >&6; }
3217if test "$cross_compiling" != yes; then
3218 { { ac_try="$ac_link"
3219case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224$as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_link") 2>&5
3226 ac_status=$?
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3229 if { ac_try='./conftest$ac_cv_exeext'
3230 { { case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235$as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_try") 2>&5
3237 ac_status=$?
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; }; then
3240 cross_compiling=no
3241 else
3242 if test "$cross_compiling" = maybe; then
3243 cross_compiling=yes
3244 else
3245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247as_fn_error $? "cannot run C compiled programs.
3248If you meant to cross compile, use \`--host'.
3249See \`config.log' for more details" "$LINENO" 5; }
3250 fi
3251 fi
3252fi
3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3254$as_echo "$cross_compiling" >&6; }
3255
3256rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3257ac_clean_files=$ac_clean_files_save
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3259$as_echo_n "checking for suffix of object files... " >&6; }
3260if ${ac_cv_objext+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262else
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264/* end confdefs.h. */
3265
3266int
3267main ()
3268{
3269
3270 ;
3271 return 0;
3272}
3273_ACEOF
3274rm -f conftest.o conftest.obj
3275if { { ac_try="$ac_compile"
3276case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279esac
3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281$as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_compile") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; then :
3286 for ac_file in conftest.o conftest.obj conftest.*; do
3287 test -f "$ac_file" || continue;
3288 case $ac_file in
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291 break;;
3292 esac
3293done
3294else
3295 $as_echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300as_fn_error $? "cannot compute suffix of object files: cannot compile
3301See \`config.log' for more details" "$LINENO" 5; }
3302fi
3303rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3306$as_echo "$ac_cv_objext" >&6; }
3307OBJEXT=$ac_cv_objext
3308ac_objext=$OBJEXT
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3310$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3311if ${ac_cv_c_compiler_gnu+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313else
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315/* end confdefs.h. */
3316
3317int
3318main ()
3319{
3320#ifndef __GNUC__
3321 choke me
3322#endif
3323
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_compiler_gnu=yes
3330else
3331 ac_compiler_gnu=no
3332fi
3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334ac_cv_c_compiler_gnu=$ac_compiler_gnu
3335
3336fi
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3338$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3339if test $ac_compiler_gnu = yes; then
3340 GCC=yes
3341else
3342 GCC=
3343fi
3344ac_test_CFLAGS=${CFLAGS+set}
3345ac_save_CFLAGS=$CFLAGS
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3347$as_echo_n "checking whether $CC accepts -g... " >&6; }
3348if ${ac_cv_prog_cc_g+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350else
3351 ac_save_c_werror_flag=$ac_c_werror_flag
3352 ac_c_werror_flag=yes
3353 ac_cv_prog_cc_g=no
3354 CFLAGS="-g"
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356/* end confdefs.h. */
3357
3358int
3359main ()
3360{
3361
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366if ac_fn_c_try_compile "$LINENO"; then :
3367 ac_cv_prog_cc_g=yes
3368else
3369 CFLAGS=""
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h. */
3372
3373int
3374main ()
3375{
3376
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381if ac_fn_c_try_compile "$LINENO"; then :
3382
3383else
3384 ac_c_werror_flag=$ac_save_c_werror_flag
3385 CFLAGS="-g"
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387/* end confdefs.h. */
3388
3389int
3390main ()
3391{
3392
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397if ac_fn_c_try_compile "$LINENO"; then :
3398 ac_cv_prog_cc_g=yes
3399fi
3400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401fi
3402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 ac_c_werror_flag=$ac_save_c_werror_flag
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3408$as_echo "$ac_cv_prog_cc_g" >&6; }
3409if test "$ac_test_CFLAGS" = set; then
3410 CFLAGS=$ac_save_CFLAGS
3411elif test $ac_cv_prog_cc_g = yes; then
3412 if test "$GCC" = yes; then
3413 CFLAGS="-g -O2"
3414 else
3415 CFLAGS="-g"
3416 fi
3417else
3418 if test "$GCC" = yes; then
3419 CFLAGS="-O2"
3420 else
3421 CFLAGS=
3422 fi
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3425$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3426if ${ac_cv_prog_cc_c89+:} false; then :
3427 $as_echo_n "(cached) " >&6
3428else
3429 ac_cv_prog_cc_c89=no
3430ac_save_CC=$CC
3431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432/* end confdefs.h. */
3433#include <stdarg.h>
3434#include <stdio.h>
3435struct stat;
3436/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3437struct buf { int x; };
3438FILE * (*rcsopen) (struct buf *, struct stat *, int);
3439static char *e (p, i)
3440 char **p;
3441 int i;
3442{
3443 return p[i];
3444}
3445static char *f (char * (*g) (char **, int), char **p, ...)
3446{
3447 char *s;
3448 va_list v;
3449 va_start (v,p);
3450 s = g (p, va_arg (v,int));
3451 va_end (v);
3452 return s;
3453}
3454
3455/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3456 function prototypes and stuff, but not '\xHH' hex character constants.
3457 These don't provoke an error unfortunately, instead are silently treated
3458 as 'x'. The following induces an error, until -std is added to get
3459 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3460 array size at least. It's necessary to write '\x00'==0 to get something
3461 that's true only with -std. */
3462int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3463
3464/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3465 inside strings and character constants. */
3466#define FOO(x) 'x'
3467int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3468
3469int test (int i, double x);
3470struct s1 {int (*f) (int a);};
3471struct s2 {int (*f) (double a);};
3472int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3473int argc;
3474char **argv;
3475int
3476main ()
3477{
3478return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3479 ;
3480 return 0;
3481}
3482_ACEOF
3483for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3484 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3485do
3486 CC="$ac_save_CC $ac_arg"
3487 if ac_fn_c_try_compile "$LINENO"; then :
3488 ac_cv_prog_cc_c89=$ac_arg
3489fi
3490rm -f core conftest.err conftest.$ac_objext
3491 test "x$ac_cv_prog_cc_c89" != "xno" && break
3492done
3493rm -f conftest.$ac_ext
3494CC=$ac_save_CC
3495
3496fi
3497# AC_CACHE_VAL
3498case "x$ac_cv_prog_cc_c89" in
3499 x)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3501$as_echo "none needed" >&6; } ;;
3502 xno)
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3504$as_echo "unsupported" >&6; } ;;
3505 *)
3506 CC="$CC $ac_cv_prog_cc_c89"
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3508$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3509esac
3510if test "x$ac_cv_prog_cc_c89" != xno; then :
3511
3512fi
3513
3514ac_ext=c
3515ac_cpp='$CPP $CPPFLAGS'
3516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519
3520ac_ext=c
3521ac_cpp='$CPP $CPPFLAGS'
3522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3526$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3527if ${am_cv_prog_cc_c_o+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529else
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531/* end confdefs.h. */
3532
3533int
3534main ()
3535{
3536
3537 ;
3538 return 0;
3539}
3540_ACEOF
3541 # Make sure it works both with $CC and with simple cc.
3542 # Following AC_PROG_CC_C_O, we do the test twice because some
3543 # compilers refuse to overwrite an existing .o file with -o,
3544 # though they will create one.
3545 am_cv_prog_cc_c_o=yes
3546 for am_i in 1 2; do
3547 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3548 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); } \
3552 && test -f conftest2.$ac_objext; then
3553 : OK
3554 else
3555 am_cv_prog_cc_c_o=no
3556 break
3557 fi
3558 done
3559 rm -f core conftest*
3560 unset am_i
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3563$as_echo "$am_cv_prog_cc_c_o" >&6; }
3564if test "$am_cv_prog_cc_c_o" != yes; then
3565 # Losing compiler, so override with the script.
3566 # FIXME: It is wrong to rewrite CC.
3567 # But if we don't then we get into trouble of one sort or another.
3568 # A longer-term fix would be to have automake use am__CC in this case,
3569 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3570 CC="$am_aux_dir/compile $CC"
3571fi
3572ac_ext=c
3573ac_cpp='$CPP $CPPFLAGS'
3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578
3579
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3581$as_echo_n "checking for library containing strerror... " >&6; }
3582if ${ac_cv_search_strerror+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584else
3585 ac_func_search_save_LIBS=$LIBS
3586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587/* end confdefs.h. */
3588
3589/* Override any GCC internal prototype to avoid an error.
3590 Use char because int might match the return type of a GCC
3591 builtin and then its argument prototype would still apply. */
3592#ifdef __cplusplus
3593extern "C"
3594#endif
3595char strerror ();
3596int
3597main ()
3598{
3599return strerror ();
3600 ;
3601 return 0;
3602}
3603_ACEOF
3604for ac_lib in '' cposix; do
3605 if test -z "$ac_lib"; then
3606 ac_res="none required"
3607 else
3608 ac_res=-l$ac_lib
3609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3610 fi
3611 if ac_fn_c_try_link "$LINENO"; then :
3612 ac_cv_search_strerror=$ac_res
3613fi
3614rm -f core conftest.err conftest.$ac_objext \
3615 conftest$ac_exeext
3616 if ${ac_cv_search_strerror+:} false; then :
3617 break
3618fi
3619done
3620if ${ac_cv_search_strerror+:} false; then :
3621
3622else
3623 ac_cv_search_strerror=no
3624fi
3625rm conftest.$ac_ext
3626LIBS=$ac_func_search_save_LIBS
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3629$as_echo "$ac_cv_search_strerror" >&6; }
3630ac_res=$ac_cv_search_strerror
3631if test "$ac_res" != no; then :
3632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3633
3634fi
3635
3636
3637am__api_version='1.15'
3638
3639# Find a good install program. We prefer a C program (faster),
3640# so one script is as good as another. But avoid the broken or
3641# incompatible versions:
3642# SysV /etc/install, /usr/sbin/install
3643# SunOS /usr/etc/install
3644# IRIX /sbin/install
3645# AIX /bin/install
3646# AmigaOS /C/install, which installs bootblocks on floppy discs
3647# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3648# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3649# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3650# OS/2's system install, which has a completely different semantic
3651# ./install, which can be erroneously created by make from ./install.sh.
3652# Reject install programs that cannot install multiple files.
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3654$as_echo_n "checking for a BSD-compatible install... " >&6; }
3655if test -z "$INSTALL"; then
3656if ${ac_cv_path_install+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 # Account for people who put trailing slashes in PATH elements.
3665case $as_dir/ in #((
3666 ./ | .// | /[cC]/* | \
3667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3669 /usr/ucb/* ) ;;
3670 *)
3671 # OSF1 and SCO ODT 3.0 have their own names for install.
3672 # Don't use installbsd from OSF since it installs stuff as root
3673 # by default.
3674 for ac_prog in ginstall scoinst install; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3677 if test $ac_prog = install &&
3678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679 # AIX install. It has an incompatible calling convention.
3680 :
3681 elif test $ac_prog = install &&
3682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683 # program-specific install script used by HP pwplus--don't use.
3684 :
3685 else
3686 rm -rf conftest.one conftest.two conftest.dir
3687 echo one > conftest.one
3688 echo two > conftest.two
3689 mkdir conftest.dir
3690 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3691 test -s conftest.one && test -s conftest.two &&
3692 test -s conftest.dir/conftest.one &&
3693 test -s conftest.dir/conftest.two
3694 then
3695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3696 break 3
3697 fi
3698 fi
3699 fi
3700 done
3701 done
3702 ;;
3703esac
3704
3705 done
3706IFS=$as_save_IFS
3707
3708rm -rf conftest.one conftest.two conftest.dir
3709
3710fi
3711 if test "${ac_cv_path_install+set}" = set; then
3712 INSTALL=$ac_cv_path_install
3713 else
3714 # As a last resort, use the slow shell script. Don't cache a
3715 # value for INSTALL within a source directory, because that will
3716 # break other packages using the cache if that directory is
3717 # removed, or if the value is a relative name.
3718 INSTALL=$ac_install_sh
3719 fi
3720fi
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3722$as_echo "$INSTALL" >&6; }
3723
3724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3725# It thinks the first close brace ends the variable substitution.
3726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3727
3728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3729
3730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3731
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3733$as_echo_n "checking whether build environment is sane... " >&6; }
3734# Reject unsafe characters in $srcdir or the absolute working directory
3735# name. Accept space and tab only in the latter.
3736am_lf='
3737'
3738case `pwd` in
3739 *[\\\"\#\$\&\'\`$am_lf]*)
3740 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3741esac
3742case $srcdir in
3743 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3744 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3745esac
3746
3747# Do 'set' in a subshell so we don't clobber the current shell's
3748# arguments. Must try -L first in case configure is actually a
3749# symlink; some systems play weird games with the mod time of symlinks
3750# (eg FreeBSD returns the mod time of the symlink's containing
3751# directory).
3752if (
3753 am_has_slept=no
3754 for am_try in 1 2; do
3755 echo "timestamp, slept: $am_has_slept" > conftest.file
3756 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3757 if test "$*" = "X"; then
3758 # -L didn't work.
3759 set X `ls -t "$srcdir/configure" conftest.file`
3760 fi
3761 if test "$*" != "X $srcdir/configure conftest.file" \
3762 && test "$*" != "X conftest.file $srcdir/configure"; then
3763
3764 # If neither matched, then we have a broken ls. This can happen
3765 # if, for instance, CONFIG_SHELL is bash and it inherits a
3766 # broken ls alias from the environment. This has actually
3767 # happened. Such a system could not be considered "sane".
3768 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3769 alias in your environment" "$LINENO" 5
3770 fi
3771 if test "$2" = conftest.file || test $am_try -eq 2; then
3772 break
3773 fi
3774 # Just in case.
3775 sleep 1
3776 am_has_slept=yes
3777 done
3778 test "$2" = conftest.file
3779 )
3780then
3781 # Ok.
3782 :
3783else
3784 as_fn_error $? "newly created file is older than distributed files!
3785Check your system clock" "$LINENO" 5
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788$as_echo "yes" >&6; }
3789# If we didn't sleep, we still need to ensure time stamps of config.status and
3790# generated files are strictly newer.
3791am_sleep_pid=
3792if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3793 ( sleep 1 ) &
3794 am_sleep_pid=$!
3795fi
3796
3797rm -f conftest.file
3798
3799test "$program_prefix" != NONE &&
3800 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3801# Use a double $ so make ignores it.
3802test "$program_suffix" != NONE &&
3803 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3804# Double any \ or $.
3805# By default was `s,x,x', remove it if useless.
3806ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3807program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3808
3809if test x"${MISSING+set}" != xset; then
3810 case $am_aux_dir in
3811 *\ * | *\ *)
3812 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3813 *)
3814 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3815 esac
3816fi
3817# Use eval to expand $SHELL
3818if eval "$MISSING --is-lightweight"; then
3819 am_missing_run="$MISSING "
3820else
3821 am_missing_run=
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3823$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3824fi
3825
3826if test x"${install_sh+set}" != xset; then
3827 case $am_aux_dir in
3828 *\ * | *\ *)
3829 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3830 *)
3831 install_sh="\${SHELL} $am_aux_dir/install-sh"
3832 esac
3833fi
3834
3835# Installed binaries are usually stripped using 'strip' when the user
3836# run "make install-strip". However 'strip' might not be the right
3837# tool to use in cross-compilation environments, therefore Automake
3838# will honor the 'STRIP' environment variable to overrule this program.
3839if test "$cross_compiling" != no; then
3840 if test -n "$ac_tool_prefix"; then
3841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3842set dummy ${ac_tool_prefix}strip; ac_word=$2
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844$as_echo_n "checking for $ac_word... " >&6; }
3845if ${ac_cv_prog_STRIP+:} false; then :
3846 $as_echo_n "(cached) " >&6
3847else
3848 if test -n "$STRIP"; then
3849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3850else
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862done
3863 done
3864IFS=$as_save_IFS
3865
3866fi
3867fi
3868STRIP=$ac_cv_prog_STRIP
3869if test -n "$STRIP"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3871$as_echo "$STRIP" >&6; }
3872else
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874$as_echo "no" >&6; }
3875fi
3876
3877
3878fi
3879if test -z "$ac_cv_prog_STRIP"; then
3880 ac_ct_STRIP=$STRIP
3881 # Extract the first word of "strip", so it can be a program name with args.
3882set dummy strip; ac_word=$2
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884$as_echo_n "checking for $ac_word... " >&6; }
3885if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887else
3888 if test -n "$ac_ct_STRIP"; then
3889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3890else
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_STRIP="strip"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902done
3903 done
3904IFS=$as_save_IFS
3905
3906fi
3907fi
3908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3909if test -n "$ac_ct_STRIP"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3911$as_echo "$ac_ct_STRIP" >&6; }
3912else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914$as_echo "no" >&6; }
3915fi
3916
3917 if test "x$ac_ct_STRIP" = x; then
3918 STRIP=":"
3919 else
3920 case $cross_compiling:$ac_tool_warned in
3921yes:)
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3924ac_tool_warned=yes ;;
3925esac
3926 STRIP=$ac_ct_STRIP
3927 fi
3928else
3929 STRIP="$ac_cv_prog_STRIP"
3930fi
3931
3932fi
3933INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3934
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3936$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3937if test -z "$MKDIR_P"; then
3938 if ${ac_cv_path_mkdir+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_prog in mkdir gmkdir; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3949 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3950 'mkdir (GNU coreutils) '* | \
3951 'mkdir (coreutils) '* | \
3952 'mkdir (fileutils) '4.1*)
3953 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3954 break 3;;
3955 esac
3956 done
3957 done
3958 done
3959IFS=$as_save_IFS
3960
3961fi
3962
3963 test -d ./--version && rmdir ./--version
3964 if test "${ac_cv_path_mkdir+set}" = set; then
3965 MKDIR_P="$ac_cv_path_mkdir -p"
3966 else
3967 # As a last resort, use the slow shell script. Don't cache a
3968 # value for MKDIR_P within a source directory, because that will
3969 # break other packages using the cache if that directory is
3970 # removed, or if the value is a relative name.
3971 MKDIR_P="$ac_install_sh -d"
3972 fi
3973fi
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3975$as_echo "$MKDIR_P" >&6; }
3976
3977for ac_prog in gawk mawk nawk awk
3978do
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980set dummy $ac_prog; ac_word=$2
3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982$as_echo_n "checking for $ac_word... " >&6; }
3983if ${ac_cv_prog_AWK+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985else
3986 if test -n "$AWK"; then
3987 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3988else
3989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH
3991do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_AWK="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000done
4001 done
4002IFS=$as_save_IFS
4003
4004fi
4005fi
4006AWK=$ac_cv_prog_AWK
4007if test -n "$AWK"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4009$as_echo "$AWK" >&6; }
4010else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012$as_echo "no" >&6; }
4013fi
4014
4015
4016 test -n "$AWK" && break
4017done
4018
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4020$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4021set x ${MAKE-make}
4022ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4023if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4024 $as_echo_n "(cached) " >&6
4025else
4026 cat >conftest.make <<\_ACEOF
4027SHELL = /bin/sh
4028all:
4029 @echo '@@@%%%=$(MAKE)=@@@%%%'
4030_ACEOF
4031# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4032case `${MAKE-make} -f conftest.make 2>/dev/null` in
4033 *@@@%%%=?*=@@@%%%*)
4034 eval ac_cv_prog_make_${ac_make}_set=yes;;
4035 *)
4036 eval ac_cv_prog_make_${ac_make}_set=no;;
4037esac
4038rm -f conftest.make
4039fi
4040if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4042$as_echo "yes" >&6; }
4043 SET_MAKE=
4044else
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
4047 SET_MAKE="MAKE=${MAKE-make}"
4048fi
4049
4050rm -rf .tst 2>/dev/null
4051mkdir .tst 2>/dev/null
4052if test -d .tst; then
4053 am__leading_dot=.
4054else
4055 am__leading_dot=_
4056fi
4057rmdir .tst 2>/dev/null
4058
4059DEPDIR="${am__leading_dot}deps"
4060
4061ac_config_commands="$ac_config_commands depfiles"
4062
4063
4064am_make=${MAKE-make}
4065cat > confinc << 'END'
4066am__doit:
4067 @echo this is the am__doit target
4068.PHONY: am__doit
4069END
4070# If we don't find an include directive, just comment out the code.
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4072$as_echo_n "checking for style of include used by $am_make... " >&6; }
4073am__include="#"
4074am__quote=
4075_am_result=none
4076# First try GNU make style include.
4077echo "include confinc" > confmf
4078# Ignore all kinds of additional output from 'make'.
4079case `$am_make -s -f confmf 2> /dev/null` in #(
4080*the\ am__doit\ target*)
4081 am__include=include
4082 am__quote=
4083 _am_result=GNU
4084 ;;
4085esac
4086# Now try BSD make style include.
4087if test "$am__include" = "#"; then
4088 echo '.include "confinc"' > confmf
4089 case `$am_make -s -f confmf 2> /dev/null` in #(
4090 *the\ am__doit\ target*)
4091 am__include=.include
4092 am__quote="\""
4093 _am_result=BSD
4094 ;;
4095 esac
4096fi
4097
4098
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4100$as_echo "$_am_result" >&6; }
4101rm -f confinc confmf
4102
4103# Check whether --enable-dependency-tracking was given.
4104if test "${enable_dependency_tracking+set}" = set; then :
4105 enableval=$enable_dependency_tracking;
4106fi
4107
4108if test "x$enable_dependency_tracking" != xno; then
4109 am_depcomp="$ac_aux_dir/depcomp"
4110 AMDEPBACKSLASH='\'
4111 am__nodep='_no'
4112fi
4113 if test "x$enable_dependency_tracking" != xno; then
4114 AMDEP_TRUE=
4115 AMDEP_FALSE='#'
4116else
4117 AMDEP_TRUE='#'
4118 AMDEP_FALSE=
4119fi
4120
4121
4122# Check whether --enable-silent-rules was given.
4123if test "${enable_silent_rules+set}" = set; then :
4124 enableval=$enable_silent_rules;
4125fi
4126
4127case $enable_silent_rules in # (((
4128 yes) AM_DEFAULT_VERBOSITY=0;;
4129 no) AM_DEFAULT_VERBOSITY=1;;
4130 *) AM_DEFAULT_VERBOSITY=1;;
4131esac
4132am_make=${MAKE-make}
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4134$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4135if ${am_cv_make_support_nested_variables+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137else
4138 if $as_echo 'TRUE=$(BAR$(V))
4139BAR0=false
4140BAR1=true
4141V=1
4142am__doit:
4143 @$(TRUE)
4144.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4145 am_cv_make_support_nested_variables=yes
4146else
4147 am_cv_make_support_nested_variables=no
4148fi
4149fi
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4151$as_echo "$am_cv_make_support_nested_variables" >&6; }
4152if test $am_cv_make_support_nested_variables = yes; then
4153 AM_V='$(V)'
4154 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4155else
4156 AM_V=$AM_DEFAULT_VERBOSITY
4157 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4158fi
4159AM_BACKSLASH='\'
4160
4161if test "`cd $srcdir && pwd`" != "`pwd`"; then
4162 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4163 # is not polluted with repeated "-I."
4164 am__isrc=' -I$(srcdir)'
4165 # test to see if srcdir already configured
4166 if test -f $srcdir/config.status; then
4167 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4168 fi
4169fi
4170
4171# test whether we have cygpath
4172if test -z "$CYGPATH_W"; then
4173 if (cygpath --version) >/dev/null 2>/dev/null; then
4174 CYGPATH_W='cygpath -w'
4175 else
4176 CYGPATH_W=echo
4177 fi
4178fi
4179
4180
4181# Define the identity of the package.
4182 PACKAGE='binutils'
4183 VERSION='2.33.50'
4184
4185
4186cat >>confdefs.h <<_ACEOF
4187#define PACKAGE "$PACKAGE"
4188_ACEOF
4189
4190
4191cat >>confdefs.h <<_ACEOF
4192#define VERSION "$VERSION"
4193_ACEOF
4194
4195# Some tools Automake needs.
4196
4197ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4198
4199
4200AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4201
4202
4203AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4204
4205
4206AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4207
4208
4209MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4210
4211# For better backward compatibility. To be removed once Automake 1.9.x
4212# dies out for good. For more background, see:
4213# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4214# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4215mkdir_p='$(MKDIR_P)'
4216
4217# We need awk for the "check" target (and possibly the TAP driver). The
4218# system "awk" is bad on some platforms.
4219# Always define AMTAR for backward compatibility. Yes, it's still used
4220# in the wild :-( We should find a proper way to deprecate it ...
4221AMTAR='$${TAR-tar}'
4222
4223
4224# We'll loop over all known methods to create a tar archive until one works.
4225_am_tools='gnutar pax cpio none'
4226
4227am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4228
4229
4230
4231
4232
4233depcc="$CC" am_compiler_list=
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236$as_echo_n "checking dependency style of $depcc... " >&6; }
4237if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239else
4240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241 # We make a subdir and do the tests there. Otherwise we can end up
4242 # making bogus files that we don't know about and never remove. For
4243 # instance it was reported that on HP-UX the gcc test will end up
4244 # making a dummy file named 'D' -- because '-MD' means "put the output
4245 # in D".
4246 rm -rf conftest.dir
4247 mkdir conftest.dir
4248 # Copy depcomp to subdir because otherwise we won't find it if we're
4249 # using a relative directory.
4250 cp "$am_depcomp" conftest.dir
4251 cd conftest.dir
4252 # We will build objects and dependencies in a subdirectory because
4253 # it helps to detect inapplicable dependency modes. For instance
4254 # both Tru64's cc and ICC support -MD to output dependencies as a
4255 # side effect of compilation, but ICC will put the dependencies in
4256 # the current directory while Tru64 will put them in the object
4257 # directory.
4258 mkdir sub
4259
4260 am_cv_CC_dependencies_compiler_type=none
4261 if test "$am_compiler_list" = ""; then
4262 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4263 fi
4264 am__universal=false
4265 case " $depcc " in #(
4266 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4267 esac
4268
4269 for depmode in $am_compiler_list; do
4270 # Setup a source with many dependencies, because some compilers
4271 # like to wrap large dependency lists on column 80 (with \), and
4272 # we should not choose a depcomp mode which is confused by this.
4273 #
4274 # We need to recreate these files for each test, as the compiler may
4275 # overwrite some of them when testing with obscure command lines.
4276 # This happens at least with the AIX C compiler.
4277 : > sub/conftest.c
4278 for i in 1 2 3 4 5 6; do
4279 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4280 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4281 # Solaris 10 /bin/sh.
4282 echo '/* dummy */' > sub/conftst$i.h
4283 done
4284 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4285
4286 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4287 # mode. It turns out that the SunPro C++ compiler does not properly
4288 # handle '-M -o', and we need to detect this. Also, some Intel
4289 # versions had trouble with output in subdirs.
4290 am__obj=sub/conftest.${OBJEXT-o}
4291 am__minus_obj="-o $am__obj"
4292 case $depmode in
4293 gcc)
4294 # This depmode causes a compiler race in universal mode.
4295 test "$am__universal" = false || continue
4296 ;;
4297 nosideeffect)
4298 # After this tag, mechanisms are not by side-effect, so they'll
4299 # only be used when explicitly requested.
4300 if test "x$enable_dependency_tracking" = xyes; then
4301 continue
4302 else
4303 break
4304 fi
4305 ;;
4306 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4307 # This compiler won't grok '-c -o', but also, the minuso test has
4308 # not run yet. These depmodes are late enough in the game, and
4309 # so weak that their functioning should not be impacted.
4310 am__obj=conftest.${OBJEXT-o}
4311 am__minus_obj=
4312 ;;
4313 none) break ;;
4314 esac
4315 if depmode=$depmode \
4316 source=sub/conftest.c object=$am__obj \
4317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4318 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4319 >/dev/null 2>conftest.err &&
4320 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4321 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4322 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4323 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4324 # icc doesn't choke on unknown options, it will just issue warnings
4325 # or remarks (even with -Werror). So we grep stderr for any message
4326 # that says an option was ignored or not supported.
4327 # When given -MP, icc 7.0 and 7.1 complain thusly:
4328 # icc: Command line warning: ignoring option '-M'; no argument required
4329 # The diagnosis changed in icc 8.0:
4330 # icc: Command line remark: option '-MP' not supported
4331 if (grep 'ignoring option' conftest.err ||
4332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4333 am_cv_CC_dependencies_compiler_type=$depmode
4334 break
4335 fi
4336 fi
4337 done
4338
4339 cd ..
4340 rm -rf conftest.dir
4341else
4342 am_cv_CC_dependencies_compiler_type=none
4343fi
4344
4345fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4347$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4348CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4349
4350 if
4351 test "x$enable_dependency_tracking" != xno \
4352 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4353 am__fastdepCC_TRUE=
4354 am__fastdepCC_FALSE='#'
4355else
4356 am__fastdepCC_TRUE='#'
4357 am__fastdepCC_FALSE=
4358fi
4359
4360
4361
4362# POSIX will say in a future version that running "rm -f" with no argument
4363# is OK; and we want to be able to make that assumption in our Makefile
4364# recipes. So use an aggressive probe to check that the usage we want is
4365# actually supported "in the wild" to an acceptable degree.
4366# See automake bug#10828.
4367# To make any issue more visible, cause the running configure to be aborted
4368# by default if the 'rm' program in use doesn't match our expectations; the
4369# user can still override this though.
4370if rm -f && rm -fr && rm -rf; then : OK; else
4371 cat >&2 <<'END'
4372Oops!
4373
4374Your 'rm' program seems unable to run without file operands specified
4375on the command line, even when the '-f' option is present. This is contrary
4376to the behaviour of most rm programs out there, and not conforming with
4377the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4378
4379Please tell bug-automake@gnu.org about your system, including the value
4380of your $PATH and any error possibly output before this message. This
4381can help us improve future automake versions.
4382
4383END
4384 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4385 echo 'Configuration will proceed anyway, since you have set the' >&2
4386 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4387 echo >&2
4388 else
4389 cat >&2 <<'END'
4390Aborting the configuration process, to ensure you take notice of the issue.
4391
4392You can download and install GNU coreutils to get an 'rm' implementation
4393that behaves properly: <http://www.gnu.org/software/coreutils/>.
4394
4395If you want to complete the configuration process using your problematic
4396'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4397to "yes", and re-run configure.
4398
4399END
4400 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4401 fi
4402fi
4403
4404
4405ac_ext=c
4406ac_cpp='$CPP $CPPFLAGS'
4407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4412set dummy ${ac_tool_prefix}gcc; ac_word=$2
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414$as_echo_n "checking for $ac_word... " >&6; }
4415if ${ac_cv_prog_CC+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417else
4418 if test -n "$CC"; then
4419 ac_cv_prog_CC="$CC" # Let the user override the test.
4420else
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432done
4433 done
4434IFS=$as_save_IFS
4435
4436fi
4437fi
4438CC=$ac_cv_prog_CC
4439if test -n "$CC"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4441$as_echo "$CC" >&6; }
4442else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444$as_echo "no" >&6; }
4445fi
4446
4447
4448fi
4449if test -z "$ac_cv_prog_CC"; then
4450 ac_ct_CC=$CC
4451 # Extract the first word of "gcc", so it can be a program name with args.
4452set dummy gcc; ac_word=$2
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if ${ac_cv_prog_ac_ct_CC+:} false; then :
4456 $as_echo_n "(cached) " >&6
4457else
4458 if test -n "$ac_ct_CC"; then
4459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_ac_ct_CC="gcc"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472done
4473 done
4474IFS=$as_save_IFS
4475
4476fi
4477fi
4478ac_ct_CC=$ac_cv_prog_ac_ct_CC
4479if test -n "$ac_ct_CC"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4481$as_echo "$ac_ct_CC" >&6; }
4482else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486
4487 if test "x$ac_ct_CC" = x; then
4488 CC=""
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491yes:)
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494ac_tool_warned=yes ;;
4495esac
4496 CC=$ac_ct_CC
4497 fi
4498else
4499 CC="$ac_cv_prog_CC"
4500fi
4501
4502if test -z "$CC"; then
4503 if test -n "$ac_tool_prefix"; then
4504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4505set dummy ${ac_tool_prefix}cc; ac_word=$2
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507$as_echo_n "checking for $ac_word... " >&6; }
4508if ${ac_cv_prog_CC+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510else
4511 if test -n "$CC"; then
4512 ac_cv_prog_CC="$CC" # Let the user override the test.
4513else
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_CC="${ac_tool_prefix}cc"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525done
4526 done
4527IFS=$as_save_IFS
4528
4529fi
4530fi
4531CC=$ac_cv_prog_CC
4532if test -n "$CC"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4534$as_echo "$CC" >&6; }
4535else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537$as_echo "no" >&6; }
4538fi
4539
4540
4541 fi
4542fi
4543if test -z "$CC"; then
4544 # Extract the first word of "cc", so it can be a program name with args.
4545set dummy cc; ac_word=$2
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547$as_echo_n "checking for $ac_word... " >&6; }
4548if ${ac_cv_prog_CC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC="$CC" # Let the user override the test.
4553else
4554 ac_prog_rejected=no
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4563 ac_prog_rejected=yes
4564 continue
4565 fi
4566 ac_cv_prog_CC="cc"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4569 fi
4570done
4571 done
4572IFS=$as_save_IFS
4573
4574if test $ac_prog_rejected = yes; then
4575 # We found a bogon in the path, so make sure we never use it.
4576 set dummy $ac_cv_prog_CC
4577 shift
4578 if test $# != 0; then
4579 # We chose a different compiler from the bogus one.
4580 # However, it has the same basename, so the bogon will be chosen
4581 # first if we set CC to just the basename; use the full file name.
4582 shift
4583 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4584 fi
4585fi
4586fi
4587fi
4588CC=$ac_cv_prog_CC
4589if test -n "$CC"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4591$as_echo "$CC" >&6; }
4592else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594$as_echo "no" >&6; }
4595fi
4596
4597
4598fi
4599if test -z "$CC"; then
4600 if test -n "$ac_tool_prefix"; then
4601 for ac_prog in cl.exe
4602 do
4603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606$as_echo_n "checking for $ac_word... " >&6; }
4607if ${ac_cv_prog_CC+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609else
4610 if test -n "$CC"; then
4611 ac_cv_prog_CC="$CC" # Let the user override the test.
4612else
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624done
4625 done
4626IFS=$as_save_IFS
4627
4628fi
4629fi
4630CC=$ac_cv_prog_CC
4631if test -n "$CC"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4633$as_echo "$CC" >&6; }
4634else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636$as_echo "no" >&6; }
4637fi
4638
4639
4640 test -n "$CC" && break
4641 done
4642fi
4643if test -z "$CC"; then
4644 ac_ct_CC=$CC
4645 for ac_prog in cl.exe
4646do
4647 # Extract the first word of "$ac_prog", so it can be a program name with args.
4648set dummy $ac_prog; ac_word=$2
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if ${ac_cv_prog_ac_ct_CC+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653else
4654 if test -n "$ac_ct_CC"; then
4655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_ac_ct_CC="$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669 done
4670IFS=$as_save_IFS
4671
4672fi
4673fi
4674ac_ct_CC=$ac_cv_prog_ac_ct_CC
4675if test -n "$ac_ct_CC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4677$as_echo "$ac_ct_CC" >&6; }
4678else
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680$as_echo "no" >&6; }
4681fi
4682
4683
4684 test -n "$ac_ct_CC" && break
4685done
4686
4687 if test "x$ac_ct_CC" = x; then
4688 CC=""
4689 else
4690 case $cross_compiling:$ac_tool_warned in
4691yes:)
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4694ac_tool_warned=yes ;;
4695esac
4696 CC=$ac_ct_CC
4697 fi
4698fi
4699
4700fi
4701
4702
4703test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705as_fn_error $? "no acceptable C compiler found in \$PATH
4706See \`config.log' for more details" "$LINENO" 5; }
4707
4708# Provide some information about the compiler.
4709$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4710set X $ac_compile
4711ac_compiler=$2
4712for ac_option in --version -v -V -qversion; do
4713 { { ac_try="$ac_compiler $ac_option >&5"
4714case "(($ac_try" in
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4717esac
4718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4719$as_echo "$ac_try_echo"; } >&5
4720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4721 ac_status=$?
4722 if test -s conftest.err; then
4723 sed '10a\
4724... rest of stderr output deleted ...
4725 10q' conftest.err >conftest.er1
4726 cat conftest.er1 >&5
4727 fi
4728 rm -f conftest.er1 conftest.err
4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }
4731done
4732
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4734$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4735if ${ac_cv_c_compiler_gnu+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h. */
4740
4741int
4742main ()
4743{
4744#ifndef __GNUC__
4745 choke me
4746#endif
4747
4748 ;
4749 return 0;
4750}
4751_ACEOF
4752if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_compiler_gnu=yes
4754else
4755 ac_compiler_gnu=no
4756fi
4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758ac_cv_c_compiler_gnu=$ac_compiler_gnu
4759
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4762$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4763if test $ac_compiler_gnu = yes; then
4764 GCC=yes
4765else
4766 GCC=
4767fi
4768ac_test_CFLAGS=${CFLAGS+set}
4769ac_save_CFLAGS=$CFLAGS
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4771$as_echo_n "checking whether $CC accepts -g... " >&6; }
4772if ${ac_cv_prog_cc_g+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774else
4775 ac_save_c_werror_flag=$ac_c_werror_flag
4776 ac_c_werror_flag=yes
4777 ac_cv_prog_cc_g=no
4778 CFLAGS="-g"
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
4781
4782int
4783main ()
4784{
4785
4786 ;
4787 return 0;
4788}
4789_ACEOF
4790if ac_fn_c_try_compile "$LINENO"; then :
4791 ac_cv_prog_cc_g=yes
4792else
4793 CFLAGS=""
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h. */
4796
4797int
4798main ()
4799{
4800
4801 ;
4802 return 0;
4803}
4804_ACEOF
4805if ac_fn_c_try_compile "$LINENO"; then :
4806
4807else
4808 ac_c_werror_flag=$ac_save_c_werror_flag
4809 CFLAGS="-g"
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811/* end confdefs.h. */
4812
4813int
4814main ()
4815{
4816
4817 ;
4818 return 0;
4819}
4820_ACEOF
4821if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_cv_prog_cc_g=yes
4823fi
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825fi
4826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827fi
4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 ac_c_werror_flag=$ac_save_c_werror_flag
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4832$as_echo "$ac_cv_prog_cc_g" >&6; }
4833if test "$ac_test_CFLAGS" = set; then
4834 CFLAGS=$ac_save_CFLAGS
4835elif test $ac_cv_prog_cc_g = yes; then
4836 if test "$GCC" = yes; then
4837 CFLAGS="-g -O2"
4838 else
4839 CFLAGS="-g"
4840 fi
4841else
4842 if test "$GCC" = yes; then
4843 CFLAGS="-O2"
4844 else
4845 CFLAGS=
4846 fi
4847fi
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4849$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4850if ${ac_cv_prog_cc_c89+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852else
4853 ac_cv_prog_cc_c89=no
4854ac_save_CC=$CC
4855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h. */
4857#include <stdarg.h>
4858#include <stdio.h>
4859struct stat;
4860/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4861struct buf { int x; };
4862FILE * (*rcsopen) (struct buf *, struct stat *, int);
4863static char *e (p, i)
4864 char **p;
4865 int i;
4866{
4867 return p[i];
4868}
4869static char *f (char * (*g) (char **, int), char **p, ...)
4870{
4871 char *s;
4872 va_list v;
4873 va_start (v,p);
4874 s = g (p, va_arg (v,int));
4875 va_end (v);
4876 return s;
4877}
4878
4879/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4880 function prototypes and stuff, but not '\xHH' hex character constants.
4881 These don't provoke an error unfortunately, instead are silently treated
4882 as 'x'. The following induces an error, until -std is added to get
4883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4884 array size at least. It's necessary to write '\x00'==0 to get something
4885 that's true only with -std. */
4886int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4887
4888/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4889 inside strings and character constants. */
4890#define FOO(x) 'x'
4891int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4892
4893int test (int i, double x);
4894struct s1 {int (*f) (int a);};
4895struct s2 {int (*f) (double a);};
4896int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4897int argc;
4898char **argv;
4899int
4900main ()
4901{
4902return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4903 ;
4904 return 0;
4905}
4906_ACEOF
4907for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4909do
4910 CC="$ac_save_CC $ac_arg"
4911 if ac_fn_c_try_compile "$LINENO"; then :
4912 ac_cv_prog_cc_c89=$ac_arg
4913fi
4914rm -f core conftest.err conftest.$ac_objext
4915 test "x$ac_cv_prog_cc_c89" != "xno" && break
4916done
4917rm -f conftest.$ac_ext
4918CC=$ac_save_CC
4919
4920fi
4921# AC_CACHE_VAL
4922case "x$ac_cv_prog_cc_c89" in
4923 x)
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4925$as_echo "none needed" >&6; } ;;
4926 xno)
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4928$as_echo "unsupported" >&6; } ;;
4929 *)
4930 CC="$CC $ac_cv_prog_cc_c89"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4932$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4933esac
4934if test "x$ac_cv_prog_cc_c89" != xno; then :
4935
4936fi
4937
4938ac_ext=c
4939ac_cpp='$CPP $CPPFLAGS'
4940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
4944ac_ext=c
4945ac_cpp='$CPP $CPPFLAGS'
4946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948ac_compiler_gnu=$ac_cv_c_compiler_gnu
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4950$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4951if ${am_cv_prog_cc_c_o+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953else
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955/* end confdefs.h. */
4956
4957int
4958main ()
4959{
4960
4961 ;
4962 return 0;
4963}
4964_ACEOF
4965 # Make sure it works both with $CC and with simple cc.
4966 # Following AC_PROG_CC_C_O, we do the test twice because some
4967 # compilers refuse to overwrite an existing .o file with -o,
4968 # though they will create one.
4969 am_cv_prog_cc_c_o=yes
4970 for am_i in 1 2; do
4971 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4972 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } \
4976 && test -f conftest2.$ac_objext; then
4977 : OK
4978 else
4979 am_cv_prog_cc_c_o=no
4980 break
4981 fi
4982 done
4983 rm -f core conftest*
4984 unset am_i
4985fi
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4987$as_echo "$am_cv_prog_cc_c_o" >&6; }
4988if test "$am_cv_prog_cc_c_o" != yes; then
4989 # Losing compiler, so override with the script.
4990 # FIXME: It is wrong to rewrite CC.
4991 # But if we don't then we get into trouble of one sort or another.
4992 # A longer-term fix would be to have automake use am__CC in this case,
4993 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4994 CC="$am_aux_dir/compile $CC"
4995fi
4996ac_ext=c
4997ac_cpp='$CPP $CPPFLAGS'
4998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001
5002
5003ac_ext=c
5004ac_cpp='$CPP $CPPFLAGS'
5005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5009$as_echo_n "checking how to run the C preprocessor... " >&6; }
5010# On Suns, sometimes $CPP names a directory.
5011if test -n "$CPP" && test -d "$CPP"; then
5012 CPP=
5013fi
5014if test -z "$CPP"; then
5015 if ${ac_cv_prog_CPP+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017else
5018 # Double quotes because CPP needs to be expanded
5019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5020 do
5021 ac_preproc_ok=false
5022for ac_c_preproc_warn_flag in '' yes
5023do
5024 # Use a header file that comes with gcc, so configuring glibc
5025 # with a fresh cross-compiler works.
5026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027 # <limits.h> exists even on freestanding compilers.
5028 # On the NeXT, cc -E runs the code through the compiler's parser,
5029 # not just through cpp. "Syntax error" is here to catch this case.
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031/* end confdefs.h. */
5032#ifdef __STDC__
5033# include <limits.h>
5034#else
5035# include <assert.h>
5036#endif
5037 Syntax error
5038_ACEOF
5039if ac_fn_c_try_cpp "$LINENO"; then :
5040
5041else
5042 # Broken: fails on valid input.
5043continue
5044fi
5045rm -f conftest.err conftest.i conftest.$ac_ext
5046
5047 # OK, works on sane cases. Now check whether nonexistent headers
5048 # can be detected and how.
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050/* end confdefs.h. */
5051#include <ac_nonexistent.h>
5052_ACEOF
5053if ac_fn_c_try_cpp "$LINENO"; then :
5054 # Broken: success on invalid input.
5055continue
5056else
5057 # Passes both tests.
5058ac_preproc_ok=:
5059break
5060fi
5061rm -f conftest.err conftest.i conftest.$ac_ext
5062
5063done
5064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5065rm -f conftest.i conftest.err conftest.$ac_ext
5066if $ac_preproc_ok; then :
5067 break
5068fi
5069
5070 done
5071 ac_cv_prog_CPP=$CPP
5072
5073fi
5074 CPP=$ac_cv_prog_CPP
5075else
5076 ac_cv_prog_CPP=$CPP
5077fi
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5079$as_echo "$CPP" >&6; }
5080ac_preproc_ok=false
5081for ac_c_preproc_warn_flag in '' yes
5082do
5083 # Use a header file that comes with gcc, so configuring glibc
5084 # with a fresh cross-compiler works.
5085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5086 # <limits.h> exists even on freestanding compilers.
5087 # On the NeXT, cc -E runs the code through the compiler's parser,
5088 # not just through cpp. "Syntax error" is here to catch this case.
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090/* end confdefs.h. */
5091#ifdef __STDC__
5092# include <limits.h>
5093#else
5094# include <assert.h>
5095#endif
5096 Syntax error
5097_ACEOF
5098if ac_fn_c_try_cpp "$LINENO"; then :
5099
5100else
5101 # Broken: fails on valid input.
5102continue
5103fi
5104rm -f conftest.err conftest.i conftest.$ac_ext
5105
5106 # OK, works on sane cases. Now check whether nonexistent headers
5107 # can be detected and how.
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109/* end confdefs.h. */
5110#include <ac_nonexistent.h>
5111_ACEOF
5112if ac_fn_c_try_cpp "$LINENO"; then :
5113 # Broken: success on invalid input.
5114continue
5115else
5116 # Passes both tests.
5117ac_preproc_ok=:
5118break
5119fi
5120rm -f conftest.err conftest.i conftest.$ac_ext
5121
5122done
5123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124rm -f conftest.i conftest.err conftest.$ac_ext
5125if $ac_preproc_ok; then :
5126
5127else
5128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5130as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5131See \`config.log' for more details" "$LINENO" 5; }
5132fi
5133
5134ac_ext=c
5135ac_cpp='$CPP $CPPFLAGS'
5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5142$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5143if ${ac_cv_path_GREP+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145else
5146 if test -z "$GREP"; then
5147 ac_path_GREP_found=false
5148 # Loop through the user's path and test for each of PROGNAME-LIST
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_prog in grep ggrep; do
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5157 as_fn_executable_p "$ac_path_GREP" || continue
5158# Check for GNU ac_path_GREP and select it if it is found.
5159 # Check for GNU $ac_path_GREP
5160case `"$ac_path_GREP" --version 2>&1` in
5161*GNU*)
5162 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5163*)
5164 ac_count=0
5165 $as_echo_n 0123456789 >"conftest.in"
5166 while :
5167 do
5168 cat "conftest.in" "conftest.in" >"conftest.tmp"
5169 mv "conftest.tmp" "conftest.in"
5170 cp "conftest.in" "conftest.nl"
5171 $as_echo 'GREP' >> "conftest.nl"
5172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5174 as_fn_arith $ac_count + 1 && ac_count=$as_val
5175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5176 # Best one so far, save it but keep looking for a better one
5177 ac_cv_path_GREP="$ac_path_GREP"
5178 ac_path_GREP_max=$ac_count
5179 fi
5180 # 10*(2^10) chars as input seems more than enough
5181 test $ac_count -gt 10 && break
5182 done
5183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5184esac
5185
5186 $ac_path_GREP_found && break 3
5187 done
5188 done
5189 done
5190IFS=$as_save_IFS
5191 if test -z "$ac_cv_path_GREP"; then
5192 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5193 fi
5194else
5195 ac_cv_path_GREP=$GREP
5196fi
5197
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5200$as_echo "$ac_cv_path_GREP" >&6; }
5201 GREP="$ac_cv_path_GREP"
5202
5203
5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5205$as_echo_n "checking for egrep... " >&6; }
5206if ${ac_cv_path_EGREP+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208else
5209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5210 then ac_cv_path_EGREP="$GREP -E"
5211 else
5212 if test -z "$EGREP"; then
5213 ac_path_EGREP_found=false
5214 # Loop through the user's path and test for each of PROGNAME-LIST
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5217do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_prog in egrep; do
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5223 as_fn_executable_p "$ac_path_EGREP" || continue
5224# Check for GNU ac_path_EGREP and select it if it is found.
5225 # Check for GNU $ac_path_EGREP
5226case `"$ac_path_EGREP" --version 2>&1` in
5227*GNU*)
5228 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5229*)
5230 ac_count=0
5231 $as_echo_n 0123456789 >"conftest.in"
5232 while :
5233 do
5234 cat "conftest.in" "conftest.in" >"conftest.tmp"
5235 mv "conftest.tmp" "conftest.in"
5236 cp "conftest.in" "conftest.nl"
5237 $as_echo 'EGREP' >> "conftest.nl"
5238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240 as_fn_arith $ac_count + 1 && ac_count=$as_val
5241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5242 # Best one so far, save it but keep looking for a better one
5243 ac_cv_path_EGREP="$ac_path_EGREP"
5244 ac_path_EGREP_max=$ac_count
5245 fi
5246 # 10*(2^10) chars as input seems more than enough
5247 test $ac_count -gt 10 && break
5248 done
5249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250esac
5251
5252 $ac_path_EGREP_found && break 3
5253 done
5254 done
5255 done
5256IFS=$as_save_IFS
5257 if test -z "$ac_cv_path_EGREP"; then
5258 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5259 fi
5260else
5261 ac_cv_path_EGREP=$EGREP
5262fi
5263
5264 fi
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5267$as_echo "$ac_cv_path_EGREP" >&6; }
5268 EGREP="$ac_cv_path_EGREP"
5269
5270
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5272$as_echo_n "checking for ANSI C header files... " >&6; }
5273if ${ac_cv_header_stdc+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275else
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h. */
5278#include <stdlib.h>
5279#include <stdarg.h>
5280#include <string.h>
5281#include <float.h>
5282
5283int
5284main ()
5285{
5286
5287 ;
5288 return 0;
5289}
5290_ACEOF
5291if ac_fn_c_try_compile "$LINENO"; then :
5292 ac_cv_header_stdc=yes
5293else
5294 ac_cv_header_stdc=no
5295fi
5296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297
5298if test $ac_cv_header_stdc = yes; then
5299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301/* end confdefs.h. */
5302#include <string.h>
5303
5304_ACEOF
5305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5306 $EGREP "memchr" >/dev/null 2>&1; then :
5307
5308else
5309 ac_cv_header_stdc=no
5310fi
5311rm -f conftest*
5312
5313fi
5314
5315if test $ac_cv_header_stdc = yes; then
5316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h. */
5319#include <stdlib.h>
5320
5321_ACEOF
5322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "free" >/dev/null 2>&1; then :
5324
5325else
5326 ac_cv_header_stdc=no
5327fi
5328rm -f conftest*
5329
5330fi
5331
5332if test $ac_cv_header_stdc = yes; then
5333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5334 if test "$cross_compiling" = yes; then :
5335 :
5336else
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h. */
5339#include <ctype.h>
5340#include <stdlib.h>
5341#if ((' ' & 0x0FF) == 0x020)
5342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5344#else
5345# define ISLOWER(c) \
5346 (('a' <= (c) && (c) <= 'i') \
5347 || ('j' <= (c) && (c) <= 'r') \
5348 || ('s' <= (c) && (c) <= 'z'))
5349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5350#endif
5351
5352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5353int
5354main ()
5355{
5356 int i;
5357 for (i = 0; i < 256; i++)
5358 if (XOR (islower (i), ISLOWER (i))
5359 || toupper (i) != TOUPPER (i))
5360 return 2;
5361 return 0;
5362}
5363_ACEOF
5364if ac_fn_c_try_run "$LINENO"; then :
5365
5366else
5367 ac_cv_header_stdc=no
5368fi
5369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5370 conftest.$ac_objext conftest.beam conftest.$ac_ext
5371fi
5372
5373fi
5374fi
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5376$as_echo "$ac_cv_header_stdc" >&6; }
5377if test $ac_cv_header_stdc = yes; then
5378
5379$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5380
5381fi
5382
5383# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5384for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5385 inttypes.h stdint.h unistd.h
5386do :
5387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5388ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5389"
5390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5391 cat >>confdefs.h <<_ACEOF
5392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5393_ACEOF
5394
5395fi
5396
5397done
5398
5399
5400
5401 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5402if test "x$ac_cv_header_minix_config_h" = xyes; then :
5403 MINIX=yes
5404else
5405 MINIX=
5406fi
5407
5408
5409 if test "$MINIX" = yes; then
5410
5411$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5412
5413
5414$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5415
5416
5417$as_echo "#define _MINIX 1" >>confdefs.h
5418
5419 fi
5420
5421
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5423$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5424if ${ac_cv_safe_to_define___extensions__+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426else
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428/* end confdefs.h. */
5429
5430# define __EXTENSIONS__ 1
5431 $ac_includes_default
5432int
5433main ()
5434{
5435
5436 ;
5437 return 0;
5438}
5439_ACEOF
5440if ac_fn_c_try_compile "$LINENO"; then :
5441 ac_cv_safe_to_define___extensions__=yes
5442else
5443 ac_cv_safe_to_define___extensions__=no
5444fi
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446fi
5447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5448$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5449 test $ac_cv_safe_to_define___extensions__ = yes &&
5450 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5451
5452 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5453
5454 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5455
5456 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5457
5458 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5459
5460
5461
5462
5463
5464case `pwd` in
5465 *\ * | *\ *)
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5467$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5468esac
5469
5470
5471
5472macro_version='2.2.7a'
5473macro_revision='1.3134'
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487ltmain="$ac_aux_dir/ltmain.sh"
5488
5489# Backslashify metacharacters that are still active within
5490# double-quoted strings.
5491sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5492
5493# Same as above, but do not quote variable references.
5494double_quote_subst='s/\(["`\\]\)/\\\1/g'
5495
5496# Sed substitution to delay expansion of an escaped shell variable in a
5497# double_quote_subst'ed string.
5498delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5499
5500# Sed substitution to delay expansion of an escaped single quote.
5501delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5502
5503# Sed substitution to avoid accidental globbing in evaled expressions
5504no_glob_subst='s/\*/\\\*/g'
5505
5506ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5507ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5508ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5511$as_echo_n "checking how to print strings... " >&6; }
5512# Test print first, because it will be a builtin if present.
5513if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5514 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5515 ECHO='print -r --'
5516elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5517 ECHO='printf %s\n'
5518else
5519 # Use this function as a fallback that always works.
5520 func_fallback_echo ()
5521 {
5522 eval 'cat <<_LTECHO_EOF
5523$1
5524_LTECHO_EOF'
5525 }
5526 ECHO='func_fallback_echo'
5527fi
5528
5529# func_echo_all arg...
5530# Invoke $ECHO with all args, space-separated.
5531func_echo_all ()
5532{
5533 $ECHO ""
5534}
5535
5536case "$ECHO" in
5537 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5538$as_echo "printf" >&6; } ;;
5539 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5540$as_echo "print -r" >&6; } ;;
5541 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5542$as_echo "cat" >&6; } ;;
5543esac
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5559$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5560if ${ac_cv_path_SED+:} false; then :
5561 $as_echo_n "(cached) " >&6
5562else
5563 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5564 for ac_i in 1 2 3 4 5 6 7; do
5565 ac_script="$ac_script$as_nl$ac_script"
5566 done
5567 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5568 { ac_script=; unset ac_script;}
5569 if test -z "$SED"; then
5570 ac_path_SED_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH
5574do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_prog in sed gsed; do
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5580 as_fn_executable_p "$ac_path_SED" || continue
5581# Check for GNU ac_path_SED and select it if it is found.
5582 # Check for GNU $ac_path_SED
5583case `"$ac_path_SED" --version 2>&1` in
5584*GNU*)
5585 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5586*)
5587 ac_count=0
5588 $as_echo_n 0123456789 >"conftest.in"
5589 while :
5590 do
5591 cat "conftest.in" "conftest.in" >"conftest.tmp"
5592 mv "conftest.tmp" "conftest.in"
5593 cp "conftest.in" "conftest.nl"
5594 $as_echo '' >> "conftest.nl"
5595 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597 as_fn_arith $ac_count + 1 && ac_count=$as_val
5598 if test $ac_count -gt ${ac_path_SED_max-0}; then
5599 # Best one so far, save it but keep looking for a better one
5600 ac_cv_path_SED="$ac_path_SED"
5601 ac_path_SED_max=$ac_count
5602 fi
5603 # 10*(2^10) chars as input seems more than enough
5604 test $ac_count -gt 10 && break
5605 done
5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5607esac
5608
5609 $ac_path_SED_found && break 3
5610 done
5611 done
5612 done
5613IFS=$as_save_IFS
5614 if test -z "$ac_cv_path_SED"; then
5615 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5616 fi
5617else
5618 ac_cv_path_SED=$SED
5619fi
5620
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5623$as_echo "$ac_cv_path_SED" >&6; }
5624 SED="$ac_cv_path_SED"
5625 rm -f conftest.sed
5626
5627test -z "$SED" && SED=sed
5628Xsed="$SED -e 1s/^X//"
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5641$as_echo_n "checking for fgrep... " >&6; }
5642if ${ac_cv_path_FGREP+:} false; then :
5643 $as_echo_n "(cached) " >&6
5644else
5645 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5646 then ac_cv_path_FGREP="$GREP -F"
5647 else
5648 if test -z "$FGREP"; then
5649 ac_path_FGREP_found=false
5650 # Loop through the user's path and test for each of PROGNAME-LIST
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5653do
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_prog in fgrep; do
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5659 as_fn_executable_p "$ac_path_FGREP" || continue
5660# Check for GNU ac_path_FGREP and select it if it is found.
5661 # Check for GNU $ac_path_FGREP
5662case `"$ac_path_FGREP" --version 2>&1` in
5663*GNU*)
5664 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5665*)
5666 ac_count=0
5667 $as_echo_n 0123456789 >"conftest.in"
5668 while :
5669 do
5670 cat "conftest.in" "conftest.in" >"conftest.tmp"
5671 mv "conftest.tmp" "conftest.in"
5672 cp "conftest.in" "conftest.nl"
5673 $as_echo 'FGREP' >> "conftest.nl"
5674 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5676 as_fn_arith $ac_count + 1 && ac_count=$as_val
5677 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5678 # Best one so far, save it but keep looking for a better one
5679 ac_cv_path_FGREP="$ac_path_FGREP"
5680 ac_path_FGREP_max=$ac_count
5681 fi
5682 # 10*(2^10) chars as input seems more than enough
5683 test $ac_count -gt 10 && break
5684 done
5685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5686esac
5687
5688 $ac_path_FGREP_found && break 3
5689 done
5690 done
5691 done
5692IFS=$as_save_IFS
5693 if test -z "$ac_cv_path_FGREP"; then
5694 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5695 fi
5696else
5697 ac_cv_path_FGREP=$FGREP
5698fi
5699
5700 fi
5701fi
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5703$as_echo "$ac_cv_path_FGREP" >&6; }
5704 FGREP="$ac_cv_path_FGREP"
5705
5706
5707test -z "$GREP" && GREP=grep
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727# Check whether --with-gnu-ld was given.
5728if test "${with_gnu_ld+set}" = set; then :
5729 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5730else
5731 with_gnu_ld=no
5732fi
5733
5734ac_prog=ld
5735if test "$GCC" = yes; then
5736 # Check if gcc -print-prog-name=ld gives a path.
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5738$as_echo_n "checking for ld used by $CC... " >&6; }
5739 case $host in
5740 *-*-mingw*)
5741 # gcc leaves a trailing carriage return which upsets mingw
5742 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5743 *)
5744 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5745 esac
5746 case $ac_prog in
5747 # Accept absolute paths.
5748 [\\/]* | ?:[\\/]*)
5749 re_direlt='/[^/][^/]*/\.\./'
5750 # Canonicalize the pathname of ld
5751 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5752 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5753 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5754 done
5755 test -z "$LD" && LD="$ac_prog"
5756 ;;
5757 "")
5758 # If it fails, then pretend we aren't using GCC.
5759 ac_prog=ld
5760 ;;
5761 *)
5762 # If it is relative, then search for the first ld in PATH.
5763 with_gnu_ld=unknown
5764 ;;
5765 esac
5766elif test "$with_gnu_ld" = yes; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5768$as_echo_n "checking for GNU ld... " >&6; }
5769else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5771$as_echo_n "checking for non-GNU ld... " >&6; }
5772fi
5773if ${lt_cv_path_LD+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775else
5776 if test -z "$LD"; then
5777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5778 for ac_dir in $PATH; do
5779 IFS="$lt_save_ifs"
5780 test -z "$ac_dir" && ac_dir=.
5781 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5782 lt_cv_path_LD="$ac_dir/$ac_prog"
5783 # Check to see if the program is GNU ld. I'd rather use --version,
5784 # but apparently some variants of GNU ld only accept -v.
5785 # Break only if it was the GNU/non-GNU ld that we prefer.
5786 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5787 *GNU* | *'with BFD'*)
5788 test "$with_gnu_ld" != no && break
5789 ;;
5790 *)
5791 test "$with_gnu_ld" != yes && break
5792 ;;
5793 esac
5794 fi
5795 done
5796 IFS="$lt_save_ifs"
5797else
5798 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5799fi
5800fi
5801
5802LD="$lt_cv_path_LD"
5803if test -n "$LD"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5805$as_echo "$LD" >&6; }
5806else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5812$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5813if ${lt_cv_prog_gnu_ld+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815else
5816 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5817case `$LD -v 2>&1 </dev/null` in
5818*GNU* | *'with BFD'*)
5819 lt_cv_prog_gnu_ld=yes
5820 ;;
5821*)
5822 lt_cv_prog_gnu_ld=no
5823 ;;
5824esac
5825fi
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5827$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5828with_gnu_ld=$lt_cv_prog_gnu_ld
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5839$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5840if ${lt_cv_path_NM+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842else
5843 if test -n "$NM"; then
5844 # Let the user override the test.
5845 lt_cv_path_NM="$NM"
5846else
5847 lt_nm_to_check="${ac_tool_prefix}nm"
5848 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5849 lt_nm_to_check="$lt_nm_to_check nm"
5850 fi
5851 for lt_tmp_nm in $lt_nm_to_check; do
5852 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5853 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5854 IFS="$lt_save_ifs"
5855 test -z "$ac_dir" && ac_dir=.
5856 tmp_nm="$ac_dir/$lt_tmp_nm"
5857 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5858 # Check to see if the nm accepts a BSD-compat flag.
5859 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5860 # nm: unknown option "B" ignored
5861 # Tru64's nm complains that /dev/null is an invalid object file
5862 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5863 */dev/null* | *'Invalid file or object type'*)
5864 lt_cv_path_NM="$tmp_nm -B"
5865 break
5866 ;;
5867 *)
5868 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5869 */dev/null*)
5870 lt_cv_path_NM="$tmp_nm -p"
5871 break
5872 ;;
5873 *)
5874 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5875 continue # so that we can try to find one that supports BSD flags
5876 ;;
5877 esac
5878 ;;
5879 esac
5880 fi
5881 done
5882 IFS="$lt_save_ifs"
5883 done
5884 : ${lt_cv_path_NM=no}
5885fi
5886fi
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5888$as_echo "$lt_cv_path_NM" >&6; }
5889if test "$lt_cv_path_NM" != "no"; then
5890 NM="$lt_cv_path_NM"
5891else
5892 # Didn't find any BSD compatible name lister, look for dumpbin.
5893 if test -n "$DUMPBIN"; then :
5894 # Let the user override the test.
5895 else
5896 if test -n "$ac_tool_prefix"; then
5897 for ac_prog in dumpbin "link -dump"
5898 do
5899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5900set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902$as_echo_n "checking for $ac_word... " >&6; }
5903if ${ac_cv_prog_DUMPBIN+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905else
5906 if test -n "$DUMPBIN"; then
5907 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912 IFS=$as_save_IFS
5913 test -z "$as_dir" && as_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 break 2
5919 fi
5920done
5921 done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926DUMPBIN=$ac_cv_prog_DUMPBIN
5927if test -n "$DUMPBIN"; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5929$as_echo "$DUMPBIN" >&6; }
5930else
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932$as_echo "no" >&6; }
5933fi
5934
5935
5936 test -n "$DUMPBIN" && break
5937 done
5938fi
5939if test -z "$DUMPBIN"; then
5940 ac_ct_DUMPBIN=$DUMPBIN
5941 for ac_prog in dumpbin "link -dump"
5942do
5943 # Extract the first word of "$ac_prog", so it can be a program name with args.
5944set dummy $ac_prog; ac_word=$2
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946$as_echo_n "checking for $ac_word... " >&6; }
5947if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949else
5950 if test -n "$ac_ct_DUMPBIN"; then
5951 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5952else
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964done
5965 done
5966IFS=$as_save_IFS
5967
5968fi
5969fi
5970ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5971if test -n "$ac_ct_DUMPBIN"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5973$as_echo "$ac_ct_DUMPBIN" >&6; }
5974else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976$as_echo "no" >&6; }
5977fi
5978
5979
5980 test -n "$ac_ct_DUMPBIN" && break
5981done
5982
5983 if test "x$ac_ct_DUMPBIN" = x; then
5984 DUMPBIN=":"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987yes:)
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990ac_tool_warned=yes ;;
5991esac
5992 DUMPBIN=$ac_ct_DUMPBIN
5993 fi
5994fi
5995
5996 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5997 *COFF*)
5998 DUMPBIN="$DUMPBIN -symbols"
5999 ;;
6000 *)
6001 DUMPBIN=:
6002 ;;
6003 esac
6004 fi
6005
6006 if test "$DUMPBIN" != ":"; then
6007 NM="$DUMPBIN"
6008 fi
6009fi
6010test -z "$NM" && NM=nm
6011
6012
6013
6014
6015
6016
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6018$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6019if ${lt_cv_nm_interface+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021else
6022 lt_cv_nm_interface="BSD nm"
6023 echo "int some_variable = 0;" > conftest.$ac_ext
6024 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6025 (eval "$ac_compile" 2>conftest.err)
6026 cat conftest.err >&5
6027 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6028 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6029 cat conftest.err >&5
6030 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6031 cat conftest.out >&5
6032 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6033 lt_cv_nm_interface="MS dumpbin"
6034 fi
6035 rm -f conftest*
6036fi
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6038$as_echo "$lt_cv_nm_interface" >&6; }
6039
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6041$as_echo_n "checking whether ln -s works... " >&6; }
6042LN_S=$as_ln_s
6043if test "$LN_S" = "ln -s"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6045$as_echo "yes" >&6; }
6046else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6048$as_echo "no, using $LN_S" >&6; }
6049fi
6050
6051# find the maximum length of command line arguments
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6053$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6054if ${lt_cv_sys_max_cmd_len+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056else
6057 i=0
6058 teststring="ABCD"
6059
6060 case $build_os in
6061 msdosdjgpp*)
6062 # On DJGPP, this test can blow up pretty badly due to problems in libc
6063 # (any single argument exceeding 2000 bytes causes a buffer overrun
6064 # during glob expansion). Even if it were fixed, the result of this
6065 # check would be larger than it should be.
6066 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6067 ;;
6068
6069 gnu*)
6070 # Under GNU Hurd, this test is not required because there is
6071 # no limit to the length of command line arguments.
6072 # Libtool will interpret -1 as no limit whatsoever
6073 lt_cv_sys_max_cmd_len=-1;
6074 ;;
6075
6076 cygwin* | mingw* | cegcc*)
6077 # On Win9x/ME, this test blows up -- it succeeds, but takes
6078 # about 5 minutes as the teststring grows exponentially.
6079 # Worse, since 9x/ME are not pre-emptively multitasking,
6080 # you end up with a "frozen" computer, even though with patience
6081 # the test eventually succeeds (with a max line length of 256k).
6082 # Instead, let's just punt: use the minimum linelength reported by
6083 # all of the supported platforms: 8192 (on NT/2K/XP).
6084 lt_cv_sys_max_cmd_len=8192;
6085 ;;
6086
6087 mint*)
6088 # On MiNT this can take a long time and run out of memory.
6089 lt_cv_sys_max_cmd_len=8192;
6090 ;;
6091
6092 amigaos*)
6093 # On AmigaOS with pdksh, this test takes hours, literally.
6094 # So we just punt and use a minimum line length of 8192.
6095 lt_cv_sys_max_cmd_len=8192;
6096 ;;
6097
6098 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6099 # This has been around since 386BSD, at least. Likely further.
6100 if test -x /sbin/sysctl; then
6101 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6102 elif test -x /usr/sbin/sysctl; then
6103 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6104 else
6105 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6106 fi
6107 # And add a safety zone
6108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6110 ;;
6111
6112 interix*)
6113 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6114 lt_cv_sys_max_cmd_len=196608
6115 ;;
6116
6117 osf*)
6118 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6119 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6120 # nice to cause kernel panics so lets avoid the loop below.
6121 # First set a reasonable default.
6122 lt_cv_sys_max_cmd_len=16384
6123 #
6124 if test -x /sbin/sysconfig; then
6125 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6126 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6127 esac
6128 fi
6129 ;;
6130 sco3.2v5*)
6131 lt_cv_sys_max_cmd_len=102400
6132 ;;
6133 sysv5* | sco5v6* | sysv4.2uw2*)
6134 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6135 if test -n "$kargmax"; then
6136 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6137 else
6138 lt_cv_sys_max_cmd_len=32768
6139 fi
6140 ;;
6141 *)
6142 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6143 if test -n "$lt_cv_sys_max_cmd_len"; then
6144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6146 else
6147 # Make teststring a little bigger before we do anything with it.
6148 # a 1K string should be a reasonable start.
6149 for i in 1 2 3 4 5 6 7 8 ; do
6150 teststring=$teststring$teststring
6151 done
6152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6153 # If test is not a shell built-in, we'll probably end up computing a
6154 # maximum length that is only half of the actual maximum length, but
6155 # we can't tell.
6156 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6157 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6158 test $i != 17 # 1/2 MB should be enough
6159 do
6160 i=`expr $i + 1`
6161 teststring=$teststring$teststring
6162 done
6163 # Only check the string length outside the loop.
6164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6165 teststring=
6166 # Add a significant safety factor because C++ compilers can tack on
6167 # massive amounts of additional arguments before passing them to the
6168 # linker. It appears as though 1/2 is a usable value.
6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6170 fi
6171 ;;
6172 esac
6173
6174fi
6175
6176if test -n $lt_cv_sys_max_cmd_len ; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6178$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6179else
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6181$as_echo "none" >&6; }
6182fi
6183max_cmd_len=$lt_cv_sys_max_cmd_len
6184
6185
6186
6187
6188
6189
6190: ${CP="cp -f"}
6191: ${MV="mv -f"}
6192: ${RM="rm -f"}
6193
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6195$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6196# Try some XSI features
6197xsi_shell=no
6198( _lt_dummy="a/b/c"
6199 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6200 = c,a/b,, \
6201 && eval 'test $(( 1 + 1 )) -eq 2 \
6202 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6203 && xsi_shell=yes
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6205$as_echo "$xsi_shell" >&6; }
6206
6207
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6209$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6210lt_shell_append=no
6211( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6212 >/dev/null 2>&1 \
6213 && lt_shell_append=yes
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6215$as_echo "$lt_shell_append" >&6; }
6216
6217
6218if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6219 lt_unset=unset
6220else
6221 lt_unset=false
6222fi
6223
6224
6225
6226
6227
6228# test EBCDIC or ASCII
6229case `echo X|tr X '\101'` in
6230 A) # ASCII based system
6231 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6232 lt_SP2NL='tr \040 \012'
6233 lt_NL2SP='tr \015\012 \040\040'
6234 ;;
6235 *) # EBCDIC based system
6236 lt_SP2NL='tr \100 \n'
6237 lt_NL2SP='tr \r\n \100\100'
6238 ;;
6239esac
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6250$as_echo_n "checking for $LD option to reload object files... " >&6; }
6251if ${lt_cv_ld_reload_flag+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253else
6254 lt_cv_ld_reload_flag='-r'
6255fi
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6257$as_echo "$lt_cv_ld_reload_flag" >&6; }
6258reload_flag=$lt_cv_ld_reload_flag
6259case $reload_flag in
6260"" | " "*) ;;
6261*) reload_flag=" $reload_flag" ;;
6262esac
6263reload_cmds='$LD$reload_flag -o $output$reload_objs'
6264case $host_os in
6265 darwin*)
6266 if test "$GCC" = yes; then
6267 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6268 else
6269 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6270 fi
6271 ;;
6272esac
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282if test -n "$ac_tool_prefix"; then
6283 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6284set dummy ${ac_tool_prefix}objdump; ac_word=$2
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286$as_echo_n "checking for $ac_word... " >&6; }
6287if ${ac_cv_prog_OBJDUMP+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289else
6290 if test -n "$OBJDUMP"; then
6291 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304done
6305 done
6306IFS=$as_save_IFS
6307
6308fi
6309fi
6310OBJDUMP=$ac_cv_prog_OBJDUMP
6311if test -n "$OBJDUMP"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6313$as_echo "$OBJDUMP" >&6; }
6314else
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316$as_echo "no" >&6; }
6317fi
6318
6319
6320fi
6321if test -z "$ac_cv_prog_OBJDUMP"; then
6322 ac_ct_OBJDUMP=$OBJDUMP
6323 # Extract the first word of "objdump", so it can be a program name with args.
6324set dummy objdump; ac_word=$2
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326$as_echo_n "checking for $ac_word... " >&6; }
6327if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329else
6330 if test -n "$ac_ct_OBJDUMP"; then
6331 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6332else
6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334for as_dir in $PATH
6335do
6336 IFS=$as_save_IFS
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6340 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 break 2
6343 fi
6344done
6345 done
6346IFS=$as_save_IFS
6347
6348fi
6349fi
6350ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6351if test -n "$ac_ct_OBJDUMP"; then
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6353$as_echo "$ac_ct_OBJDUMP" >&6; }
6354else
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356$as_echo "no" >&6; }
6357fi
6358
6359 if test "x$ac_ct_OBJDUMP" = x; then
6360 OBJDUMP="false"
6361 else
6362 case $cross_compiling:$ac_tool_warned in
6363yes:)
6364{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366ac_tool_warned=yes ;;
6367esac
6368 OBJDUMP=$ac_ct_OBJDUMP
6369 fi
6370else
6371 OBJDUMP="$ac_cv_prog_OBJDUMP"
6372fi
6373
6374test -z "$OBJDUMP" && OBJDUMP=objdump
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6385$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6386if ${lt_cv_deplibs_check_method+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388else
6389 lt_cv_file_magic_cmd='$MAGIC_CMD'
6390lt_cv_file_magic_test_file=
6391lt_cv_deplibs_check_method='unknown'
6392# Need to set the preceding variable on all platforms that support
6393# interlibrary dependencies.
6394# 'none' -- dependencies not supported.
6395# `unknown' -- same as none, but documents that we really don't know.
6396# 'pass_all' -- all dependencies passed with no checks.
6397# 'test_compile' -- check by making test program.
6398# 'file_magic [[regex]]' -- check by looking for files in library path
6399# which responds to the $file_magic_cmd with a given extended regex.
6400# If you have `file' or equivalent on your system and you're not sure
6401# whether `pass_all' will *always* work, you probably want this one.
6402
6403case $host_os in
6404aix[4-9]*)
6405 lt_cv_deplibs_check_method=pass_all
6406 ;;
6407
6408beos*)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411
6412bsdi[45]*)
6413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6414 lt_cv_file_magic_cmd='/usr/bin/file -L'
6415 lt_cv_file_magic_test_file=/shlib/libc.so
6416 ;;
6417
6418cygwin*)
6419 # func_win32_libid is a shell function defined in ltmain.sh
6420 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6421 lt_cv_file_magic_cmd='func_win32_libid'
6422 ;;
6423
6424mingw* | pw32*)
6425 # Base MSYS/MinGW do not provide the 'file' command needed by
6426 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6427 # unless we find 'file', for example because we are cross-compiling.
6428 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6429 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6430 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6431 lt_cv_file_magic_cmd='func_win32_libid'
6432 else
6433 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6434 lt_cv_file_magic_cmd='$OBJDUMP -f'
6435 fi
6436 ;;
6437
6438cegcc*)
6439 # use the weaker test based on 'objdump'. See mingw*.
6440 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6441 lt_cv_file_magic_cmd='$OBJDUMP -f'
6442 ;;
6443
6444darwin* | rhapsody*)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447
6448freebsd* | dragonfly*)
6449 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6450 case $host_cpu in
6451 i*86 )
6452 # Not sure whether the presence of OpenBSD here was a mistake.
6453 # Let's accept both of them until this is cleared up.
6454 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6455 lt_cv_file_magic_cmd=/usr/bin/file
6456 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6457 ;;
6458 esac
6459 else
6460 lt_cv_deplibs_check_method=pass_all
6461 fi
6462 ;;
6463
6464gnu*)
6465 lt_cv_deplibs_check_method=pass_all
6466 ;;
6467
6468haiku*)
6469 lt_cv_deplibs_check_method=pass_all
6470 ;;
6471
6472hpux10.20* | hpux11*)
6473 lt_cv_file_magic_cmd=/usr/bin/file
6474 case $host_cpu in
6475 ia64*)
6476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6477 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6478 ;;
6479 hppa*64*)
6480 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]'
6481 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6482 ;;
6483 *)
6484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6485 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6486 ;;
6487 esac
6488 ;;
6489
6490interix[3-9]*)
6491 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6493 ;;
6494
6495irix5* | irix6* | nonstopux*)
6496 case $LD in
6497 *-32|*"-32 ") libmagic=32-bit;;
6498 *-n32|*"-n32 ") libmagic=N32;;
6499 *-64|*"-64 ") libmagic=64-bit;;
6500 *) libmagic=never-match;;
6501 esac
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505# This must be Linux ELF.
6506linux* | k*bsd*-gnu | kopensolaris*-gnu)
6507 lt_cv_deplibs_check_method=pass_all
6508 ;;
6509
6510netbsd*)
6511 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6513 else
6514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6515 fi
6516 ;;
6517
6518newos6*)
6519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6520 lt_cv_file_magic_cmd=/usr/bin/file
6521 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6522 ;;
6523
6524*nto* | *qnx*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528openbsd*)
6529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6531 else
6532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6533 fi
6534 ;;
6535
6536osf3* | osf4* | osf5*)
6537 lt_cv_deplibs_check_method=pass_all
6538 ;;
6539
6540rdos*)
6541 lt_cv_deplibs_check_method=pass_all
6542 ;;
6543
6544solaris*)
6545 lt_cv_deplibs_check_method=pass_all
6546 ;;
6547
6548sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6549 lt_cv_deplibs_check_method=pass_all
6550 ;;
6551
6552sysv4 | sysv4.3*)
6553 case $host_vendor in
6554 motorola)
6555 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]'
6556 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6557 ;;
6558 ncr)
6559 lt_cv_deplibs_check_method=pass_all
6560 ;;
6561 sequent)
6562 lt_cv_file_magic_cmd='/bin/file'
6563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6564 ;;
6565 sni)
6566 lt_cv_file_magic_cmd='/bin/file'
6567 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6568 lt_cv_file_magic_test_file=/lib/libc.so
6569 ;;
6570 siemens)
6571 lt_cv_deplibs_check_method=pass_all
6572 ;;
6573 pc)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576 esac
6577 ;;
6578
6579tpf*)
6580 lt_cv_deplibs_check_method=pass_all
6581 ;;
6582esac
6583
6584fi
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6586$as_echo "$lt_cv_deplibs_check_method" >&6; }
6587file_magic_cmd=$lt_cv_file_magic_cmd
6588deplibs_check_method=$lt_cv_deplibs_check_method
6589test -z "$deplibs_check_method" && deplibs_check_method=unknown
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6604set dummy ${ac_tool_prefix}ar; ac_word=$2
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606$as_echo_n "checking for $ac_word... " >&6; }
6607if ${ac_cv_prog_AR+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609else
6610 if test -n "$AR"; then
6611 ac_cv_prog_AR="$AR" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_AR="${ac_tool_prefix}ar"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624done
6625 done
6626IFS=$as_save_IFS
6627
6628fi
6629fi
6630AR=$ac_cv_prog_AR
6631if test -n "$AR"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6633$as_echo "$AR" >&6; }
6634else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636$as_echo "no" >&6; }
6637fi
6638
6639
6640fi
6641if test -z "$ac_cv_prog_AR"; then
6642 ac_ct_AR=$AR
6643 # Extract the first word of "ar", so it can be a program name with args.
6644set dummy ar; ac_word=$2
6645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646$as_echo_n "checking for $ac_word... " >&6; }
6647if ${ac_cv_prog_ac_ct_AR+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649else
6650 if test -n "$ac_ct_AR"; then
6651 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6652else
6653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_ac_ct_AR="ar"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6663 fi
6664done
6665 done
6666IFS=$as_save_IFS
6667
6668fi
6669fi
6670ac_ct_AR=$ac_cv_prog_ac_ct_AR
6671if test -n "$ac_ct_AR"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6673$as_echo "$ac_ct_AR" >&6; }
6674else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676$as_echo "no" >&6; }
6677fi
6678
6679 if test "x$ac_ct_AR" = x; then
6680 AR="false"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683yes:)
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686ac_tool_warned=yes ;;
6687esac
6688 AR=$ac_ct_AR
6689 fi
6690else
6691 AR="$ac_cv_prog_AR"
6692fi
6693
6694test -z "$AR" && AR=ar
6695test -z "$AR_FLAGS" && AR_FLAGS=cru
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707if test -n "$ac_tool_prefix"; then
6708 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6709set dummy ${ac_tool_prefix}strip; ac_word=$2
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711$as_echo_n "checking for $ac_word... " >&6; }
6712if ${ac_cv_prog_STRIP+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714else
6715 if test -n "$STRIP"; then
6716 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6717else
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729done
6730 done
6731IFS=$as_save_IFS
6732
6733fi
6734fi
6735STRIP=$ac_cv_prog_STRIP
6736if test -n "$STRIP"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6738$as_echo "$STRIP" >&6; }
6739else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741$as_echo "no" >&6; }
6742fi
6743
6744
6745fi
6746if test -z "$ac_cv_prog_STRIP"; then
6747 ac_ct_STRIP=$STRIP
6748 # Extract the first word of "strip", so it can be a program name with args.
6749set dummy strip; ac_word=$2
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751$as_echo_n "checking for $ac_word... " >&6; }
6752if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6753 $as_echo_n "(cached) " >&6
6754else
6755 if test -n "$ac_ct_STRIP"; then
6756 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765 ac_cv_prog_ac_ct_STRIP="strip"
6766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769done
6770 done
6771IFS=$as_save_IFS
6772
6773fi
6774fi
6775ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6776if test -n "$ac_ct_STRIP"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6778$as_echo "$ac_ct_STRIP" >&6; }
6779else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781$as_echo "no" >&6; }
6782fi
6783
6784 if test "x$ac_ct_STRIP" = x; then
6785 STRIP=":"
6786 else
6787 case $cross_compiling:$ac_tool_warned in
6788yes:)
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791ac_tool_warned=yes ;;
6792esac
6793 STRIP=$ac_ct_STRIP
6794 fi
6795else
6796 STRIP="$ac_cv_prog_STRIP"
6797fi
6798
6799test -z "$STRIP" && STRIP=:
6800
6801
6802
6803
6804
6805
6806if test -n "$ac_tool_prefix"; then
6807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6808set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810$as_echo_n "checking for $ac_word... " >&6; }
6811if ${ac_cv_prog_RANLIB+:} false; then :
6812 $as_echo_n "(cached) " >&6
6813else
6814 if test -n "$RANLIB"; then
6815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6816else
6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828done
6829 done
6830IFS=$as_save_IFS
6831
6832fi
6833fi
6834RANLIB=$ac_cv_prog_RANLIB
6835if test -n "$RANLIB"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6837$as_echo "$RANLIB" >&6; }
6838else
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840$as_echo "no" >&6; }
6841fi
6842
6843
6844fi
6845if test -z "$ac_cv_prog_RANLIB"; then
6846 ac_ct_RANLIB=$RANLIB
6847 # Extract the first word of "ranlib", so it can be a program name with args.
6848set dummy ranlib; ac_word=$2
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850$as_echo_n "checking for $ac_word... " >&6; }
6851if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6852 $as_echo_n "(cached) " >&6
6853else
6854 if test -n "$ac_ct_RANLIB"; then
6855 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6856else
6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858for as_dir in $PATH
6859do
6860 IFS=$as_save_IFS
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_ac_ct_RANLIB="ranlib"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 break 2
6867 fi
6868done
6869 done
6870IFS=$as_save_IFS
6871
6872fi
6873fi
6874ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6875if test -n "$ac_ct_RANLIB"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6877$as_echo "$ac_ct_RANLIB" >&6; }
6878else
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880$as_echo "no" >&6; }
6881fi
6882
6883 if test "x$ac_ct_RANLIB" = x; then
6884 RANLIB=":"
6885 else
6886 case $cross_compiling:$ac_tool_warned in
6887yes:)
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6890ac_tool_warned=yes ;;
6891esac
6892 RANLIB=$ac_ct_RANLIB
6893 fi
6894else
6895 RANLIB="$ac_cv_prog_RANLIB"
6896fi
6897
6898test -z "$RANLIB" && RANLIB=:
6899
6900
6901
6902
6903
6904
6905# Determine commands to create old-style static archives.
6906old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6907old_postinstall_cmds='chmod 644 $oldlib'
6908old_postuninstall_cmds=
6909
6910if test -n "$RANLIB"; then
6911 case $host_os in
6912 openbsd*)
6913 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6914 ;;
6915 *)
6916 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6917 ;;
6918 esac
6919 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6920fi
6921
6922case $host_os in
6923 darwin*)
6924 lock_old_archive_extraction=yes ;;
6925 *)
6926 lock_old_archive_extraction=no ;;
6927esac
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967# If no C compiler was specified, use CC.
6968LTCC=${LTCC-"$CC"}
6969
6970# If no C compiler flags were specified, use CFLAGS.
6971LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6972
6973# Allow CC to be a program name with arguments.
6974compiler=$CC
6975
6976
6977# Check for command to grab the raw symbol name followed by C symbol from nm.
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6979$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6980if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982else
6983
6984# These are sane defaults that work on at least a few old systems.
6985# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6986
6987# Character class describing NM global symbol codes.
6988symcode='[BCDEGRST]'
6989
6990# Regexp to match symbols that can be accessed directly from C.
6991sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6992
6993# Define system-specific variables.
6994case $host_os in
6995aix*)
6996 symcode='[BCDT]'
6997 ;;
6998cygwin* | mingw* | pw32* | cegcc*)
6999 symcode='[ABCDGISTW]'
7000 ;;
7001hpux*)
7002 if test "$host_cpu" = ia64; then
7003 symcode='[ABCDEGRST]'
7004 fi
7005 ;;
7006irix* | nonstopux*)
7007 symcode='[BCDEGRST]'
7008 ;;
7009osf*)
7010 symcode='[BCDEGQRST]'
7011 ;;
7012solaris*)
7013 symcode='[BDRT]'
7014 ;;
7015sco3.2v5*)
7016 symcode='[DT]'
7017 ;;
7018sysv4.2uw2*)
7019 symcode='[DT]'
7020 ;;
7021sysv5* | sco5v6* | unixware* | OpenUNIX*)
7022 symcode='[ABDT]'
7023 ;;
7024sysv4)
7025 symcode='[DFNSTU]'
7026 ;;
7027esac
7028
7029# If we're using GNU nm, then use its standard symbol codes.
7030case `$NM -V 2>&1` in
7031*GNU* | *'with BFD'*)
7032 symcode='[ABCDGIRSTW]' ;;
7033esac
7034
7035# Transform an extracted symbol line into a proper C declaration.
7036# Some systems (esp. on ia64) link data and code symbols differently,
7037# so use this general approach.
7038lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7039
7040# Transform an extracted symbol line into symbol name and symbol address
7041lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7042lt_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'"
7043
7044# Handle CRLF in mingw tool chain
7045opt_cr=
7046case $build_os in
7047mingw*)
7048 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7049 ;;
7050esac
7051
7052# Try without a prefix underscore, then with it.
7053for ac_symprfx in "" "_"; do
7054
7055 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7056 symxfrm="\\1 $ac_symprfx\\2 \\2"
7057
7058 # Write the raw and C identifiers.
7059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7060 # Fake it for dumpbin and say T for any non-static function
7061 # and D for any global variable.
7062 # Also find C++ and __fastcall symbols from MSVC++,
7063 # which start with @ or ?.
7064 lt_cv_sys_global_symbol_pipe="$AWK '"\
7065" {last_section=section; section=\$ 3};"\
7066" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7067" \$ 0!~/External *\|/{next};"\
7068" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7069" {if(hide[section]) next};"\
7070" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7071" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7072" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7073" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7074" ' prfx=^$ac_symprfx"
7075 else
7076 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7077 fi
7078
7079 # Check to see that the pipe works correctly.
7080 pipe_works=no
7081
7082 rm -f conftest*
7083 cat > conftest.$ac_ext <<_LT_EOF
7084#ifdef __cplusplus
7085extern "C" {
7086#endif
7087char nm_test_var;
7088void nm_test_func(void);
7089void nm_test_func(void){}
7090#ifdef __cplusplus
7091}
7092#endif
7093int main(){nm_test_var='a';nm_test_func();return(0);}
7094_LT_EOF
7095
7096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7097 (eval $ac_compile) 2>&5
7098 ac_status=$?
7099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7100 test $ac_status = 0; }; then
7101 # Now try to grab the symbols.
7102 nlist=conftest.nm
7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7104 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7105 ac_status=$?
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; } && test -s "$nlist"; then
7108 # Try sorting and uniquifying the output.
7109 if sort "$nlist" | uniq > "$nlist"T; then
7110 mv -f "$nlist"T "$nlist"
7111 else
7112 rm -f "$nlist"T
7113 fi
7114
7115 # Make sure that we snagged all the symbols we need.
7116 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7117 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7118 cat <<_LT_EOF > conftest.$ac_ext
7119#ifdef __cplusplus
7120extern "C" {
7121#endif
7122
7123_LT_EOF
7124 # Now generate the symbol file.
7125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7126
7127 cat <<_LT_EOF >> conftest.$ac_ext
7128
7129/* The mapping between symbol names and symbols. */
7130const struct {
7131 const char *name;
7132 void *address;
7133}
7134lt__PROGRAM__LTX_preloaded_symbols[] =
7135{
7136 { "@PROGRAM@", (void *) 0 },
7137_LT_EOF
7138 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139 cat <<\_LT_EOF >> conftest.$ac_ext
7140 {0, (void *) 0}
7141};
7142
7143/* This works around a problem in FreeBSD linker */
7144#ifdef FREEBSD_WORKAROUND
7145static const void *lt_preloaded_setup() {
7146 return lt__PROGRAM__LTX_preloaded_symbols;
7147}
7148#endif
7149
7150#ifdef __cplusplus
7151}
7152#endif
7153_LT_EOF
7154 # Now try linking the two files.
7155 mv conftest.$ac_objext conftstm.$ac_objext
7156 lt_save_LIBS="$LIBS"
7157 lt_save_CFLAGS="$CFLAGS"
7158 LIBS="conftstm.$ac_objext"
7159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7161 (eval $ac_link) 2>&5
7162 ac_status=$?
7163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7165 pipe_works=yes
7166 fi
7167 LIBS="$lt_save_LIBS"
7168 CFLAGS="$lt_save_CFLAGS"
7169 else
7170 echo "cannot find nm_test_func in $nlist" >&5
7171 fi
7172 else
7173 echo "cannot find nm_test_var in $nlist" >&5
7174 fi
7175 else
7176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7177 fi
7178 else
7179 echo "$progname: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 fi
7182 rm -rf conftest* conftst*
7183
7184 # Do not use the global_symbol_pipe unless it works.
7185 if test "$pipe_works" = yes; then
7186 break
7187 else
7188 lt_cv_sys_global_symbol_pipe=
7189 fi
7190done
7191
7192fi
7193
7194if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195 lt_cv_sys_global_symbol_to_cdecl=
7196fi
7197if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7199$as_echo "failed" >&6; }
7200else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7202$as_echo "ok" >&6; }
7203fi
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226# Check whether --enable-libtool-lock was given.
7227if test "${enable_libtool_lock+set}" = set; then :
7228 enableval=$enable_libtool_lock;
7229fi
7230
7231test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7232
7233# Some flags need to be propagated to the compiler or linker for good
7234# libtool support.
7235case $host in
7236ia64-*-hpux*)
7237 # Find out which ABI we are using.
7238 echo 'int i;' > conftest.$ac_ext
7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7240 (eval $ac_compile) 2>&5
7241 ac_status=$?
7242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7243 test $ac_status = 0; }; then
7244 case `/usr/bin/file conftest.$ac_objext` in
7245 *ELF-32*)
7246 HPUX_IA64_MODE="32"
7247 ;;
7248 *ELF-64*)
7249 HPUX_IA64_MODE="64"
7250 ;;
7251 esac
7252 fi
7253 rm -rf conftest*
7254 ;;
7255*-*-irix6*)
7256 # Find out which ABI we are using.
7257 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7259 (eval $ac_compile) 2>&5
7260 ac_status=$?
7261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262 test $ac_status = 0; }; then
7263 if test "$lt_cv_prog_gnu_ld" = yes; then
7264 case `/usr/bin/file conftest.$ac_objext` in
7265 *32-bit*)
7266 LD="${LD-ld} -melf32bsmip"
7267 ;;
7268 *N32*)
7269 LD="${LD-ld} -melf32bmipn32"
7270 ;;
7271 *64-bit*)
7272 LD="${LD-ld} -melf64bmip"
7273 ;;
7274 esac
7275 else
7276 case `/usr/bin/file conftest.$ac_objext` in
7277 *32-bit*)
7278 LD="${LD-ld} -32"
7279 ;;
7280 *N32*)
7281 LD="${LD-ld} -n32"
7282 ;;
7283 *64-bit*)
7284 LD="${LD-ld} -64"
7285 ;;
7286 esac
7287 fi
7288 fi
7289 rm -rf conftest*
7290 ;;
7291
7292x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7293s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7294 # Find out which ABI we are using.
7295 echo 'int i;' > conftest.$ac_ext
7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7297 (eval $ac_compile) 2>&5
7298 ac_status=$?
7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300 test $ac_status = 0; }; then
7301 case `/usr/bin/file conftest.o` in
7302 *32-bit*)
7303 case $host in
7304 x86_64-*kfreebsd*-gnu)
7305 LD="${LD-ld} -m elf_i386_fbsd"
7306 ;;
7307 x86_64-*linux*)
7308 case `/usr/bin/file conftest.o` in
7309 *x86-64*)
7310 LD="${LD-ld} -m elf32_x86_64"
7311 ;;
7312 *)
7313 LD="${LD-ld} -m elf_i386"
7314 ;;
7315 esac
7316 ;;
7317 powerpc64le-*linux*)
7318 LD="${LD-ld} -m elf32lppclinux"
7319 ;;
7320 powerpc64-*linux*)
7321 LD="${LD-ld} -m elf32ppclinux"
7322 ;;
7323 s390x-*linux*)
7324 LD="${LD-ld} -m elf_s390"
7325 ;;
7326 sparc64-*linux*)
7327 LD="${LD-ld} -m elf32_sparc"
7328 ;;
7329 esac
7330 ;;
7331 *64-bit*)
7332 case $host in
7333 x86_64-*kfreebsd*-gnu)
7334 LD="${LD-ld} -m elf_x86_64_fbsd"
7335 ;;
7336 x86_64-*linux*)
7337 LD="${LD-ld} -m elf_x86_64"
7338 ;;
7339 powerpcle-*linux*)
7340 LD="${LD-ld} -m elf64lppc"
7341 ;;
7342 powerpc-*linux*)
7343 LD="${LD-ld} -m elf64ppc"
7344 ;;
7345 s390*-*linux*|s390*-*tpf*)
7346 LD="${LD-ld} -m elf64_s390"
7347 ;;
7348 sparc*-*linux*)
7349 LD="${LD-ld} -m elf64_sparc"
7350 ;;
7351 esac
7352 ;;
7353 esac
7354 fi
7355 rm -rf conftest*
7356 ;;
7357
7358*-*-sco3.2v5*)
7359 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7360 SAVE_CFLAGS="$CFLAGS"
7361 CFLAGS="$CFLAGS -belf"
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7363$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7364if ${lt_cv_cc_needs_belf+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366else
7367 ac_ext=c
7368ac_cpp='$CPP $CPPFLAGS'
7369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371ac_compiler_gnu=$ac_cv_c_compiler_gnu
7372
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374/* end confdefs.h. */
7375
7376int
7377main ()
7378{
7379
7380 ;
7381 return 0;
7382}
7383_ACEOF
7384if ac_fn_c_try_link "$LINENO"; then :
7385 lt_cv_cc_needs_belf=yes
7386else
7387 lt_cv_cc_needs_belf=no
7388fi
7389rm -f core conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
7391 ac_ext=c
7392ac_cpp='$CPP $CPPFLAGS'
7393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7395ac_compiler_gnu=$ac_cv_c_compiler_gnu
7396
7397fi
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7399$as_echo "$lt_cv_cc_needs_belf" >&6; }
7400 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7401 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7402 CFLAGS="$SAVE_CFLAGS"
7403 fi
7404 ;;
7405sparc*-*solaris*)
7406 # Find out which ABI we are using.
7407 echo 'int i;' > conftest.$ac_ext
7408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7409 (eval $ac_compile) 2>&5
7410 ac_status=$?
7411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7412 test $ac_status = 0; }; then
7413 case `/usr/bin/file conftest.o` in
7414 *64-bit*)
7415 case $lt_cv_prog_gnu_ld in
7416 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7417 *)
7418 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7419 LD="${LD-ld} -64"
7420 fi
7421 ;;
7422 esac
7423 ;;
7424 esac
7425 fi
7426 rm -rf conftest*
7427 ;;
7428esac
7429
7430need_locks="$enable_libtool_lock"
7431
7432
7433 case $host_os in
7434 rhapsody* | darwin*)
7435 if test -n "$ac_tool_prefix"; then
7436 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7437set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439$as_echo_n "checking for $ac_word... " >&6; }
7440if ${ac_cv_prog_DSYMUTIL+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442else
7443 if test -n "$DSYMUTIL"; then
7444 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7445else
7446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH
7448do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7456 fi
7457done
7458 done
7459IFS=$as_save_IFS
7460
7461fi
7462fi
7463DSYMUTIL=$ac_cv_prog_DSYMUTIL
7464if test -n "$DSYMUTIL"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7466$as_echo "$DSYMUTIL" >&6; }
7467else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469$as_echo "no" >&6; }
7470fi
7471
7472
7473fi
7474if test -z "$ac_cv_prog_DSYMUTIL"; then
7475 ac_ct_DSYMUTIL=$DSYMUTIL
7476 # Extract the first word of "dsymutil", so it can be a program name with args.
7477set dummy dsymutil; ac_word=$2
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479$as_echo_n "checking for $ac_word... " >&6; }
7480if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482else
7483 if test -n "$ac_ct_DSYMUTIL"; then
7484 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497done
7498 done
7499IFS=$as_save_IFS
7500
7501fi
7502fi
7503ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7504if test -n "$ac_ct_DSYMUTIL"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7506$as_echo "$ac_ct_DSYMUTIL" >&6; }
7507else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509$as_echo "no" >&6; }
7510fi
7511
7512 if test "x$ac_ct_DSYMUTIL" = x; then
7513 DSYMUTIL=":"
7514 else
7515 case $cross_compiling:$ac_tool_warned in
7516yes:)
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7519ac_tool_warned=yes ;;
7520esac
7521 DSYMUTIL=$ac_ct_DSYMUTIL
7522 fi
7523else
7524 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7525fi
7526
7527 if test -n "$ac_tool_prefix"; then
7528 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7529set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531$as_echo_n "checking for $ac_word... " >&6; }
7532if ${ac_cv_prog_NMEDIT+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534else
7535 if test -n "$NMEDIT"; then
7536 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7537else
7538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539for as_dir in $PATH
7540do
7541 IFS=$as_save_IFS
7542 test -z "$as_dir" && as_dir=.
7543 for ac_exec_ext in '' $ac_executable_extensions; do
7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 break 2
7548 fi
7549done
7550 done
7551IFS=$as_save_IFS
7552
7553fi
7554fi
7555NMEDIT=$ac_cv_prog_NMEDIT
7556if test -n "$NMEDIT"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7558$as_echo "$NMEDIT" >&6; }
7559else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
7562fi
7563
7564
7565fi
7566if test -z "$ac_cv_prog_NMEDIT"; then
7567 ac_ct_NMEDIT=$NMEDIT
7568 # Extract the first word of "nmedit", so it can be a program name with args.
7569set dummy nmedit; ac_word=$2
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571$as_echo_n "checking for $ac_word... " >&6; }
7572if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574else
7575 if test -n "$ac_ct_NMEDIT"; then
7576 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7577else
7578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579for as_dir in $PATH
7580do
7581 IFS=$as_save_IFS
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 break 2
7588 fi
7589done
7590 done
7591IFS=$as_save_IFS
7592
7593fi
7594fi
7595ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7596if test -n "$ac_ct_NMEDIT"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7598$as_echo "$ac_ct_NMEDIT" >&6; }
7599else
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601$as_echo "no" >&6; }
7602fi
7603
7604 if test "x$ac_ct_NMEDIT" = x; then
7605 NMEDIT=":"
7606 else
7607 case $cross_compiling:$ac_tool_warned in
7608yes:)
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7611ac_tool_warned=yes ;;
7612esac
7613 NMEDIT=$ac_ct_NMEDIT
7614 fi
7615else
7616 NMEDIT="$ac_cv_prog_NMEDIT"
7617fi
7618
7619 if test -n "$ac_tool_prefix"; then
7620 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7621set dummy ${ac_tool_prefix}lipo; ac_word=$2
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623$as_echo_n "checking for $ac_word... " >&6; }
7624if ${ac_cv_prog_LIPO+:} false; then :
7625 $as_echo_n "(cached) " >&6
7626else
7627 if test -n "$LIPO"; then
7628 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7629else
7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631for as_dir in $PATH
7632do
7633 IFS=$as_save_IFS
7634 test -z "$as_dir" && as_dir=.
7635 for ac_exec_ext in '' $ac_executable_extensions; do
7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 break 2
7640 fi
7641done
7642 done
7643IFS=$as_save_IFS
7644
7645fi
7646fi
7647LIPO=$ac_cv_prog_LIPO
7648if test -n "$LIPO"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7650$as_echo "$LIPO" >&6; }
7651else
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653$as_echo "no" >&6; }
7654fi
7655
7656
7657fi
7658if test -z "$ac_cv_prog_LIPO"; then
7659 ac_ct_LIPO=$LIPO
7660 # Extract the first word of "lipo", so it can be a program name with args.
7661set dummy lipo; ac_word=$2
7662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663$as_echo_n "checking for $ac_word... " >&6; }
7664if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7665 $as_echo_n "(cached) " >&6
7666else
7667 if test -n "$ac_ct_LIPO"; then
7668 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7669else
7670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673 IFS=$as_save_IFS
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_ac_ct_LIPO="lipo"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 break 2
7680 fi
7681done
7682 done
7683IFS=$as_save_IFS
7684
7685fi
7686fi
7687ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7688if test -n "$ac_ct_LIPO"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7690$as_echo "$ac_ct_LIPO" >&6; }
7691else
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693$as_echo "no" >&6; }
7694fi
7695
7696 if test "x$ac_ct_LIPO" = x; then
7697 LIPO=":"
7698 else
7699 case $cross_compiling:$ac_tool_warned in
7700yes:)
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7703ac_tool_warned=yes ;;
7704esac
7705 LIPO=$ac_ct_LIPO
7706 fi
7707else
7708 LIPO="$ac_cv_prog_LIPO"
7709fi
7710
7711 if test -n "$ac_tool_prefix"; then
7712 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7713set dummy ${ac_tool_prefix}otool; ac_word=$2
7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715$as_echo_n "checking for $ac_word... " >&6; }
7716if ${ac_cv_prog_OTOOL+:} false; then :
7717 $as_echo_n "(cached) " >&6
7718else
7719 if test -n "$OTOOL"; then
7720 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7721else
7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723for as_dir in $PATH
7724do
7725 IFS=$as_save_IFS
7726 test -z "$as_dir" && as_dir=.
7727 for ac_exec_ext in '' $ac_executable_extensions; do
7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 break 2
7732 fi
7733done
7734 done
7735IFS=$as_save_IFS
7736
7737fi
7738fi
7739OTOOL=$ac_cv_prog_OTOOL
7740if test -n "$OTOOL"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7742$as_echo "$OTOOL" >&6; }
7743else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745$as_echo "no" >&6; }
7746fi
7747
7748
7749fi
7750if test -z "$ac_cv_prog_OTOOL"; then
7751 ac_ct_OTOOL=$OTOOL
7752 # Extract the first word of "otool", so it can be a program name with args.
7753set dummy otool; ac_word=$2
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755$as_echo_n "checking for $ac_word... " >&6; }
7756if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758else
7759 if test -n "$ac_ct_OTOOL"; then
7760 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765 IFS=$as_save_IFS
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_ac_ct_OTOOL="otool"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 break 2
7772 fi
7773done
7774 done
7775IFS=$as_save_IFS
7776
7777fi
7778fi
7779ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7780if test -n "$ac_ct_OTOOL"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7782$as_echo "$ac_ct_OTOOL" >&6; }
7783else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785$as_echo "no" >&6; }
7786fi
7787
7788 if test "x$ac_ct_OTOOL" = x; then
7789 OTOOL=":"
7790 else
7791 case $cross_compiling:$ac_tool_warned in
7792yes:)
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7795ac_tool_warned=yes ;;
7796esac
7797 OTOOL=$ac_ct_OTOOL
7798 fi
7799else
7800 OTOOL="$ac_cv_prog_OTOOL"
7801fi
7802
7803 if test -n "$ac_tool_prefix"; then
7804 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7805set dummy ${ac_tool_prefix}otool64; ac_word=$2
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807$as_echo_n "checking for $ac_word... " >&6; }
7808if ${ac_cv_prog_OTOOL64+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810else
7811 if test -n "$OTOOL64"; then
7812 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7813else
7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7815for as_dir in $PATH
7816do
7817 IFS=$as_save_IFS
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 break 2
7824 fi
7825done
7826 done
7827IFS=$as_save_IFS
7828
7829fi
7830fi
7831OTOOL64=$ac_cv_prog_OTOOL64
7832if test -n "$OTOOL64"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7834$as_echo "$OTOOL64" >&6; }
7835else
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837$as_echo "no" >&6; }
7838fi
7839
7840
7841fi
7842if test -z "$ac_cv_prog_OTOOL64"; then
7843 ac_ct_OTOOL64=$OTOOL64
7844 # Extract the first word of "otool64", so it can be a program name with args.
7845set dummy otool64; ac_word=$2
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7847$as_echo_n "checking for $ac_word... " >&6; }
7848if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850else
7851 if test -n "$ac_ct_OTOOL64"; then
7852 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7853else
7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857 IFS=$as_save_IFS
7858 test -z "$as_dir" && as_dir=.
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861 ac_cv_prog_ac_ct_OTOOL64="otool64"
7862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 break 2
7864 fi
7865done
7866 done
7867IFS=$as_save_IFS
7868
7869fi
7870fi
7871ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7872if test -n "$ac_ct_OTOOL64"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7874$as_echo "$ac_ct_OTOOL64" >&6; }
7875else
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877$as_echo "no" >&6; }
7878fi
7879
7880 if test "x$ac_ct_OTOOL64" = x; then
7881 OTOOL64=":"
7882 else
7883 case $cross_compiling:$ac_tool_warned in
7884yes:)
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7887ac_tool_warned=yes ;;
7888esac
7889 OTOOL64=$ac_ct_OTOOL64
7890 fi
7891else
7892 OTOOL64="$ac_cv_prog_OTOOL64"
7893fi
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7922$as_echo_n "checking for -single_module linker flag... " >&6; }
7923if ${lt_cv_apple_cc_single_mod+:} false; then :
7924 $as_echo_n "(cached) " >&6
7925else
7926 lt_cv_apple_cc_single_mod=no
7927 if test -z "${LT_MULTI_MODULE}"; then
7928 # By default we will add the -single_module flag. You can override
7929 # by either setting the environment variable LT_MULTI_MODULE
7930 # non-empty at configure time, or by adding -multi_module to the
7931 # link flags.
7932 rm -rf libconftest.dylib*
7933 echo "int foo(void){return 1;}" > conftest.c
7934 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7935-dynamiclib -Wl,-single_module conftest.c" >&5
7936 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7937 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7938 _lt_result=$?
7939 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7940 lt_cv_apple_cc_single_mod=yes
7941 else
7942 cat conftest.err >&5
7943 fi
7944 rm -rf libconftest.dylib*
7945 rm -f conftest.*
7946 fi
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7949$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7951$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7952if ${lt_cv_ld_exported_symbols_list+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954else
7955 lt_cv_ld_exported_symbols_list=no
7956 save_LDFLAGS=$LDFLAGS
7957 echo "_main" > conftest.sym
7958 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960/* end confdefs.h. */
7961
7962int
7963main ()
7964{
7965
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970if ac_fn_c_try_link "$LINENO"; then :
7971 lt_cv_ld_exported_symbols_list=yes
7972else
7973 lt_cv_ld_exported_symbols_list=no
7974fi
7975rm -f core conftest.err conftest.$ac_objext \
7976 conftest$ac_exeext conftest.$ac_ext
7977 LDFLAGS="$save_LDFLAGS"
7978
7979fi
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7981$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7983$as_echo_n "checking for -force_load linker flag... " >&6; }
7984if ${lt_cv_ld_force_load+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986else
7987 lt_cv_ld_force_load=no
7988 cat > conftest.c << _LT_EOF
7989int forced_loaded() { return 2;}
7990_LT_EOF
7991 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7992 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7993 echo "$AR cru libconftest.a conftest.o" >&5
7994 $AR cru libconftest.a conftest.o 2>&5
7995 cat > conftest.c << _LT_EOF
7996int main() { return 0;}
7997_LT_EOF
7998 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7999 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8000 _lt_result=$?
8001 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8002 lt_cv_ld_force_load=yes
8003 else
8004 cat conftest.err >&5
8005 fi
8006 rm -f conftest.err libconftest.a conftest conftest.c
8007 rm -rf conftest.dSYM
8008
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8011$as_echo "$lt_cv_ld_force_load" >&6; }
8012 case $host_os in
8013 rhapsody* | darwin1.[012])
8014 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8015 darwin1.*)
8016 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8017 darwin*) # darwin 5.x on
8018 # if running on 10.5 or later, the deployment target defaults
8019 # to the OS version, if on x86, and 10.4, the deployment
8020 # target defaults to 10.4. Don't you love it?
8021 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8022 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8023 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8024 10.[012][,.]*)
8025 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8026 10.*)
8027 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8028 esac
8029 ;;
8030 esac
8031 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8032 _lt_dar_single_mod='$single_module'
8033 fi
8034 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8035 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8036 else
8037 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8038 fi
8039 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8040 _lt_dsymutil='~$DSYMUTIL $lib || :'
8041 else
8042 _lt_dsymutil=
8043 fi
8044 ;;
8045 esac
8046
8047for ac_header in dlfcn.h
8048do :
8049 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8050"
8051if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8052 cat >>confdefs.h <<_ACEOF
8053#define HAVE_DLFCN_H 1
8054_ACEOF
8055
8056fi
8057
8058done
8059
8060
8061
8062
8063
8064# Set options
8065
8066
8067
8068 enable_dlopen=no
8069
8070
8071 enable_win32_dll=no
8072
8073
8074 # Check whether --enable-shared was given.
8075if test "${enable_shared+set}" = set; then :
8076 enableval=$enable_shared; p=${PACKAGE-default}
8077 case $enableval in
8078 yes) enable_shared=yes ;;
8079 no) enable_shared=no ;;
8080 *)
8081 enable_shared=no
8082 # Look at the argument we got. We use all the common list separators.
8083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8084 for pkg in $enableval; do
8085 IFS="$lt_save_ifs"
8086 if test "X$pkg" = "X$p"; then
8087 enable_shared=yes
8088 fi
8089 done
8090 IFS="$lt_save_ifs"
8091 ;;
8092 esac
8093else
8094 enable_shared=yes
8095fi
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105 # Check whether --enable-static was given.
8106if test "${enable_static+set}" = set; then :
8107 enableval=$enable_static; p=${PACKAGE-default}
8108 case $enableval in
8109 yes) enable_static=yes ;;
8110 no) enable_static=no ;;
8111 *)
8112 enable_static=no
8113 # Look at the argument we got. We use all the common list separators.
8114 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8115 for pkg in $enableval; do
8116 IFS="$lt_save_ifs"
8117 if test "X$pkg" = "X$p"; then
8118 enable_static=yes
8119 fi
8120 done
8121 IFS="$lt_save_ifs"
8122 ;;
8123 esac
8124else
8125 enable_static=yes
8126fi
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137# Check whether --with-pic was given.
8138if test "${with_pic+set}" = set; then :
8139 withval=$with_pic; pic_mode="$withval"
8140else
8141 pic_mode=default
8142fi
8143
8144
8145test -z "$pic_mode" && pic_mode=default
8146
8147
8148
8149
8150
8151
8152
8153 # Check whether --enable-fast-install was given.
8154if test "${enable_fast_install+set}" = set; then :
8155 enableval=$enable_fast_install; p=${PACKAGE-default}
8156 case $enableval in
8157 yes) enable_fast_install=yes ;;
8158 no) enable_fast_install=no ;;
8159 *)
8160 enable_fast_install=no
8161 # Look at the argument we got. We use all the common list separators.
8162 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8163 for pkg in $enableval; do
8164 IFS="$lt_save_ifs"
8165 if test "X$pkg" = "X$p"; then
8166 enable_fast_install=yes
8167 fi
8168 done
8169 IFS="$lt_save_ifs"
8170 ;;
8171 esac
8172else
8173 enable_fast_install=yes
8174fi
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186# This can be used to rebuild libtool when needed
8187LIBTOOL_DEPS="$ltmain"
8188
8189# Always use our own libtool.
8190LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217test -z "$LN_S" && LN_S="ln -s"
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232if test -n "${ZSH_VERSION+set}" ; then
8233 setopt NO_GLOB_SUBST
8234fi
8235
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8237$as_echo_n "checking for objdir... " >&6; }
8238if ${lt_cv_objdir+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240else
8241 rm -f .libs 2>/dev/null
8242mkdir .libs 2>/dev/null
8243if test -d .libs; then
8244 lt_cv_objdir=.libs
8245else
8246 # MS-DOS does not allow filenames that begin with a dot.
8247 lt_cv_objdir=_libs
8248fi
8249rmdir .libs 2>/dev/null
8250fi
8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8252$as_echo "$lt_cv_objdir" >&6; }
8253objdir=$lt_cv_objdir
8254
8255
8256
8257
8258
8259cat >>confdefs.h <<_ACEOF
8260#define LT_OBJDIR "$lt_cv_objdir/"
8261_ACEOF
8262
8263
8264
8265
8266case $host_os in
8267aix3*)
8268 # AIX sometimes has problems with the GCC collect2 program. For some
8269 # reason, if we set the COLLECT_NAMES environment variable, the problems
8270 # vanish in a puff of smoke.
8271 if test "X${COLLECT_NAMES+set}" != Xset; then
8272 COLLECT_NAMES=
8273 export COLLECT_NAMES
8274 fi
8275 ;;
8276esac
8277
8278# Global variables:
8279ofile=libtool
8280can_build_shared=yes
8281
8282# All known linkers require a `.a' archive for static linking (except MSVC,
8283# which needs '.lib').
8284libext=a
8285
8286with_gnu_ld="$lt_cv_prog_gnu_ld"
8287
8288old_CC="$CC"
8289old_CFLAGS="$CFLAGS"
8290
8291# Set sane defaults for various variables
8292test -z "$CC" && CC=cc
8293test -z "$LTCC" && LTCC=$CC
8294test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8295test -z "$LD" && LD=ld
8296test -z "$ac_objext" && ac_objext=o
8297
8298for cc_temp in $compiler""; do
8299 case $cc_temp in
8300 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8301 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8302 \-*) ;;
8303 *) break;;
8304 esac
8305done
8306cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8307
8308
8309# Only perform the check for file, if the check method requires it
8310test -z "$MAGIC_CMD" && MAGIC_CMD=file
8311case $deplibs_check_method in
8312file_magic*)
8313 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8315$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8316if ${lt_cv_path_MAGIC_CMD+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318else
8319 case $MAGIC_CMD in
8320[\\/*] | ?:[\\/]*)
8321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322 ;;
8323*)
8324 lt_save_MAGIC_CMD="$MAGIC_CMD"
8325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327 for ac_dir in $ac_dummy; do
8328 IFS="$lt_save_ifs"
8329 test -z "$ac_dir" && ac_dir=.
8330 if test -f $ac_dir/${ac_tool_prefix}file; then
8331 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8332 if test -n "$file_magic_test_file"; then
8333 case $deplibs_check_method in
8334 "file_magic "*)
8335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338 $EGREP "$file_magic_regex" > /dev/null; then
8339 :
8340 else
8341 cat <<_LT_EOF 1>&2
8342
8343*** Warning: the command libtool uses to detect shared libraries,
8344*** $file_magic_cmd, produces output that libtool cannot recognize.
8345*** The result is that libtool may fail to recognize shared libraries
8346*** as such. This will affect the creation of libtool libraries that
8347*** depend on shared libraries, but programs linked with such libtool
8348*** libraries will work regardless of this problem. Nevertheless, you
8349*** may want to report the problem to your system manager and/or to
8350*** bug-libtool@gnu.org
8351
8352_LT_EOF
8353 fi ;;
8354 esac
8355 fi
8356 break
8357 fi
8358 done
8359 IFS="$lt_save_ifs"
8360 MAGIC_CMD="$lt_save_MAGIC_CMD"
8361 ;;
8362esac
8363fi
8364
8365MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366if test -n "$MAGIC_CMD"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8368$as_echo "$MAGIC_CMD" >&6; }
8369else
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371$as_echo "no" >&6; }
8372fi
8373
8374
8375
8376
8377
8378if test -z "$lt_cv_path_MAGIC_CMD"; then
8379 if test -n "$ac_tool_prefix"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8381$as_echo_n "checking for file... " >&6; }
8382if ${lt_cv_path_MAGIC_CMD+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384else
8385 case $MAGIC_CMD in
8386[\\/*] | ?:[\\/]*)
8387 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8388 ;;
8389*)
8390 lt_save_MAGIC_CMD="$MAGIC_CMD"
8391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8392 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8393 for ac_dir in $ac_dummy; do
8394 IFS="$lt_save_ifs"
8395 test -z "$ac_dir" && ac_dir=.
8396 if test -f $ac_dir/file; then
8397 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8398 if test -n "$file_magic_test_file"; then
8399 case $deplibs_check_method in
8400 "file_magic "*)
8401 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8403 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8404 $EGREP "$file_magic_regex" > /dev/null; then
8405 :
8406 else
8407 cat <<_LT_EOF 1>&2
8408
8409*** Warning: the command libtool uses to detect shared libraries,
8410*** $file_magic_cmd, produces output that libtool cannot recognize.
8411*** The result is that libtool may fail to recognize shared libraries
8412*** as such. This will affect the creation of libtool libraries that
8413*** depend on shared libraries, but programs linked with such libtool
8414*** libraries will work regardless of this problem. Nevertheless, you
8415*** may want to report the problem to your system manager and/or to
8416*** bug-libtool@gnu.org
8417
8418_LT_EOF
8419 fi ;;
8420 esac
8421 fi
8422 break
8423 fi
8424 done
8425 IFS="$lt_save_ifs"
8426 MAGIC_CMD="$lt_save_MAGIC_CMD"
8427 ;;
8428esac
8429fi
8430
8431MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8432if test -n "$MAGIC_CMD"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8434$as_echo "$MAGIC_CMD" >&6; }
8435else
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437$as_echo "no" >&6; }
8438fi
8439
8440
8441 else
8442 MAGIC_CMD=:
8443 fi
8444fi
8445
8446 fi
8447 ;;
8448esac
8449
8450# Use C for the default configuration in the libtool script
8451
8452lt_save_CC="$CC"
8453ac_ext=c
8454ac_cpp='$CPP $CPPFLAGS'
8455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8457ac_compiler_gnu=$ac_cv_c_compiler_gnu
8458
8459
8460# Source file extension for C test sources.
8461ac_ext=c
8462
8463# Object file extension for compiled C test sources.
8464objext=o
8465objext=$objext
8466
8467# Code to be used in simple compile tests
8468lt_simple_compile_test_code="int some_variable = 0;"
8469
8470# Code to be used in simple link tests
8471lt_simple_link_test_code='int main(){return(0);}'
8472
8473
8474
8475
8476
8477
8478
8479# If no C compiler was specified, use CC.
8480LTCC=${LTCC-"$CC"}
8481
8482# If no C compiler flags were specified, use CFLAGS.
8483LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8484
8485# Allow CC to be a program name with arguments.
8486compiler=$CC
8487
8488# Save the default compiler, since it gets overwritten when the other
8489# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8490compiler_DEFAULT=$CC
8491
8492# save warnings/boilerplate of simple test code
8493ac_outfile=conftest.$ac_objext
8494echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8495eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8496_lt_compiler_boilerplate=`cat conftest.err`
8497$RM conftest*
8498
8499ac_outfile=conftest.$ac_objext
8500echo "$lt_simple_link_test_code" >conftest.$ac_ext
8501eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502_lt_linker_boilerplate=`cat conftest.err`
8503$RM -r conftest*
8504
8505
8506## CAVEAT EMPTOR:
8507## There is no encapsulation within the following macros, do not change
8508## the running order or otherwise move them around unless you know exactly
8509## what you are doing...
8510if test -n "$compiler"; then
8511
8512lt_prog_compiler_no_builtin_flag=
8513
8514if test "$GCC" = yes; then
8515 case $cc_basename in
8516 nvcc*)
8517 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8518 *)
8519 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8520 esac
8521
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8523$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8524if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526else
8527 lt_cv_prog_compiler_rtti_exceptions=no
8528 ac_outfile=conftest.$ac_objext
8529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8530 lt_compiler_flag="-fno-rtti -fno-exceptions"
8531 # Insert the option either (1) after the last *FLAGS variable, or
8532 # (2) before a word containing "conftest.", or (3) at the end.
8533 # Note that $ac_compile itself does not contain backslashes and begins
8534 # with a dollar sign (not a hyphen), so the echo should work correctly.
8535 # The option is referenced via a variable to avoid confusing sed.
8536 lt_compile=`echo "$ac_compile" | $SED \
8537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8539 -e 's:$: $lt_compiler_flag:'`
8540 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8541 (eval "$lt_compile" 2>conftest.err)
8542 ac_status=$?
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 if (exit $ac_status) && test -s "$ac_outfile"; then
8546 # The compiler can only warn and ignore the option if not recognized
8547 # So say no if there are warnings other than the usual output.
8548 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8550 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8551 lt_cv_prog_compiler_rtti_exceptions=yes
8552 fi
8553 fi
8554 $RM conftest*
8555
8556fi
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8558$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8559
8560if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8561 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8562else
8563 :
8564fi
8565
8566fi
8567
8568
8569
8570
8571
8572
8573 lt_prog_compiler_wl=
8574lt_prog_compiler_pic=
8575lt_prog_compiler_static=
8576
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8578$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8579
8580 if test "$GCC" = yes; then
8581 lt_prog_compiler_wl='-Wl,'
8582 lt_prog_compiler_static='-static'
8583
8584 case $host_os in
8585 aix*)
8586 # All AIX code is PIC.
8587 if test "$host_cpu" = ia64; then
8588 # AIX 5 now supports IA64 processor
8589 lt_prog_compiler_static='-Bstatic'
8590 fi
8591 lt_prog_compiler_pic='-fPIC'
8592 ;;
8593
8594 amigaos*)
8595 case $host_cpu in
8596 powerpc)
8597 # see comment about AmigaOS4 .so support
8598 lt_prog_compiler_pic='-fPIC'
8599 ;;
8600 m68k)
8601 # FIXME: we need at least 68020 code to build shared libraries, but
8602 # adding the `-m68020' flag to GCC prevents building anything better,
8603 # like `-m68040'.
8604 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8605 ;;
8606 esac
8607 ;;
8608
8609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8610 # PIC is the default for these OSes.
8611 ;;
8612
8613 mingw* | cygwin* | pw32* | os2* | cegcc*)
8614 # This hack is so that the source file can tell whether it is being
8615 # built for inclusion in a dll (and should export symbols for example).
8616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8617 # (--disable-auto-import) libraries
8618 lt_prog_compiler_pic='-DDLL_EXPORT'
8619 ;;
8620
8621 darwin* | rhapsody*)
8622 # PIC is the default on this platform
8623 # Common symbols not allowed in MH_DYLIB files
8624 lt_prog_compiler_pic='-fno-common'
8625 ;;
8626
8627 haiku*)
8628 # PIC is the default for Haiku.
8629 # The "-static" flag exists, but is broken.
8630 lt_prog_compiler_static=
8631 ;;
8632
8633 hpux*)
8634 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8635 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8636 # sets the default TLS model and affects inlining.
8637 case $host_cpu in
8638 hppa*64*)
8639 # +Z the default
8640 ;;
8641 *)
8642 lt_prog_compiler_pic='-fPIC'
8643 ;;
8644 esac
8645 ;;
8646
8647 interix[3-9]*)
8648 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8649 # Instead, we relocate shared libraries at runtime.
8650 ;;
8651
8652 msdosdjgpp*)
8653 # Just because we use GCC doesn't mean we suddenly get shared libraries
8654 # on systems that don't support them.
8655 lt_prog_compiler_can_build_shared=no
8656 enable_shared=no
8657 ;;
8658
8659 *nto* | *qnx*)
8660 # QNX uses GNU C++, but need to define -shared option too, otherwise
8661 # it will coredump.
8662 lt_prog_compiler_pic='-fPIC -shared'
8663 ;;
8664
8665 sysv4*MP*)
8666 if test -d /usr/nec; then
8667 lt_prog_compiler_pic=-Kconform_pic
8668 fi
8669 ;;
8670
8671 *)
8672 lt_prog_compiler_pic='-fPIC'
8673 ;;
8674 esac
8675
8676 case $cc_basename in
8677 nvcc*) # Cuda Compiler Driver 2.2
8678 lt_prog_compiler_wl='-Xlinker '
8679 lt_prog_compiler_pic='-Xcompiler -fPIC'
8680 ;;
8681 esac
8682 else
8683 # PORTME Check for flag to pass linker flags through the system compiler.
8684 case $host_os in
8685 aix*)
8686 lt_prog_compiler_wl='-Wl,'
8687 if test "$host_cpu" = ia64; then
8688 # AIX 5 now supports IA64 processor
8689 lt_prog_compiler_static='-Bstatic'
8690 else
8691 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8692 fi
8693 ;;
8694
8695 mingw* | cygwin* | pw32* | os2* | cegcc*)
8696 # This hack is so that the source file can tell whether it is being
8697 # built for inclusion in a dll (and should export symbols for example).
8698 lt_prog_compiler_pic='-DDLL_EXPORT'
8699 ;;
8700
8701 hpux9* | hpux10* | hpux11*)
8702 lt_prog_compiler_wl='-Wl,'
8703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8704 # not for PA HP-UX.
8705 case $host_cpu in
8706 hppa*64*|ia64*)
8707 # +Z the default
8708 ;;
8709 *)
8710 lt_prog_compiler_pic='+Z'
8711 ;;
8712 esac
8713 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8714 lt_prog_compiler_static='${wl}-a ${wl}archive'
8715 ;;
8716
8717 irix5* | irix6* | nonstopux*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # PIC (with -KPIC) is the default.
8720 lt_prog_compiler_static='-non_shared'
8721 ;;
8722
8723 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8724 case $cc_basename in
8725 # old Intel for x86_64 which still supported -KPIC.
8726 ecc*)
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-static'
8730 ;;
8731 # icc used to be incompatible with GCC.
8732 # ICC 10 doesn't accept -KPIC any more.
8733 icc* | ifort*)
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-fPIC'
8736 lt_prog_compiler_static='-static'
8737 ;;
8738 # Lahey Fortran 8.1.
8739 lf95*)
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='--shared'
8742 lt_prog_compiler_static='--static'
8743 ;;
8744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8745 # Portland Group compilers (*not* the Pentium gcc compiler,
8746 # which looks to be a dead project)
8747 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_pic='-fpic'
8749 lt_prog_compiler_static='-Bstatic'
8750 ;;
8751 ccc*)
8752 lt_prog_compiler_wl='-Wl,'
8753 # All Alpha code is PIC.
8754 lt_prog_compiler_static='-non_shared'
8755 ;;
8756 xl* | bgxl* | bgf* | mpixl*)
8757 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-qpic'
8760 lt_prog_compiler_static='-qstaticlink'
8761 ;;
8762 *)
8763 case `$CC -V 2>&1 | sed 5q` in
8764 *Sun\ F* | *Sun*Fortran*)
8765 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8766 lt_prog_compiler_pic='-KPIC'
8767 lt_prog_compiler_static='-Bstatic'
8768 lt_prog_compiler_wl=''
8769 ;;
8770 *Sun\ C*)
8771 # Sun C 5.9
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8774 lt_prog_compiler_wl='-Wl,'
8775 ;;
8776 esac
8777 ;;
8778 esac
8779 ;;
8780
8781 newsos6)
8782 lt_prog_compiler_pic='-KPIC'
8783 lt_prog_compiler_static='-Bstatic'
8784 ;;
8785
8786 *nto* | *qnx*)
8787 # QNX uses GNU C++, but need to define -shared option too, otherwise
8788 # it will coredump.
8789 lt_prog_compiler_pic='-fPIC -shared'
8790 ;;
8791
8792 osf3* | osf4* | osf5*)
8793 lt_prog_compiler_wl='-Wl,'
8794 # All OSF/1 code is PIC.
8795 lt_prog_compiler_static='-non_shared'
8796 ;;
8797
8798 rdos*)
8799 lt_prog_compiler_static='-non_shared'
8800 ;;
8801
8802 solaris*)
8803 lt_prog_compiler_pic='-KPIC'
8804 lt_prog_compiler_static='-Bstatic'
8805 case $cc_basename in
8806 f77* | f90* | f95*)
8807 lt_prog_compiler_wl='-Qoption ld ';;
8808 *)
8809 lt_prog_compiler_wl='-Wl,';;
8810 esac
8811 ;;
8812
8813 sunos4*)
8814 lt_prog_compiler_wl='-Qoption ld '
8815 lt_prog_compiler_pic='-PIC'
8816 lt_prog_compiler_static='-Bstatic'
8817 ;;
8818
8819 sysv4 | sysv4.2uw2* | sysv4.3*)
8820 lt_prog_compiler_wl='-Wl,'
8821 lt_prog_compiler_pic='-KPIC'
8822 lt_prog_compiler_static='-Bstatic'
8823 ;;
8824
8825 sysv4*MP*)
8826 if test -d /usr/nec ;then
8827 lt_prog_compiler_pic='-Kconform_pic'
8828 lt_prog_compiler_static='-Bstatic'
8829 fi
8830 ;;
8831
8832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8833 lt_prog_compiler_wl='-Wl,'
8834 lt_prog_compiler_pic='-KPIC'
8835 lt_prog_compiler_static='-Bstatic'
8836 ;;
8837
8838 unicos*)
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_can_build_shared=no
8841 ;;
8842
8843 uts4*)
8844 lt_prog_compiler_pic='-pic'
8845 lt_prog_compiler_static='-Bstatic'
8846 ;;
8847
8848 *)
8849 lt_prog_compiler_can_build_shared=no
8850 ;;
8851 esac
8852 fi
8853
8854case $host_os in
8855 # For platforms which do not support PIC, -DPIC is meaningless:
8856 *djgpp*)
8857 lt_prog_compiler_pic=
8858 ;;
8859 *)
8860 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8861 ;;
8862esac
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8864$as_echo "$lt_prog_compiler_pic" >&6; }
8865
8866
8867
8868
8869
8870
8871#
8872# Check to make sure the PIC flag actually works.
8873#
8874if test -n "$lt_prog_compiler_pic"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8876$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8877if ${lt_cv_prog_compiler_pic_works+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879else
8880 lt_cv_prog_compiler_pic_works=no
8881 ac_outfile=conftest.$ac_objext
8882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8884 # Insert the option either (1) after the last *FLAGS variable, or
8885 # (2) before a word containing "conftest.", or (3) at the end.
8886 # Note that $ac_compile itself does not contain backslashes and begins
8887 # with a dollar sign (not a hyphen), so the echo should work correctly.
8888 # The option is referenced via a variable to avoid confusing sed.
8889 lt_compile=`echo "$ac_compile" | $SED \
8890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892 -e 's:$: $lt_compiler_flag:'`
8893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8894 (eval "$lt_compile" 2>conftest.err)
8895 ac_status=$?
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 if (exit $ac_status) && test -s "$ac_outfile"; then
8899 # The compiler can only warn and ignore the option if not recognized
8900 # So say no if there are warnings other than the usual output.
8901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8902 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8903 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8904 lt_cv_prog_compiler_pic_works=yes
8905 fi
8906 fi
8907 $RM conftest*
8908
8909fi
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8911$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8912
8913if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8914 case $lt_prog_compiler_pic in
8915 "" | " "*) ;;
8916 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8917 esac
8918else
8919 lt_prog_compiler_pic=
8920 lt_prog_compiler_can_build_shared=no
8921fi
8922
8923fi
8924
8925
8926
8927
8928
8929
8930#
8931# Check to make sure the static flag actually works.
8932#
8933wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8935$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8936if ${lt_cv_prog_compiler_static_works+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938else
8939 lt_cv_prog_compiler_static_works=no
8940 save_LDFLAGS="$LDFLAGS"
8941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8942 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8944 # The linker can only warn and ignore the option if not recognized
8945 # So say no if there are warnings
8946 if test -s conftest.err; then
8947 # Append any errors to the config.log.
8948 cat conftest.err 1>&5
8949 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951 if diff conftest.exp conftest.er2 >/dev/null; then
8952 lt_cv_prog_compiler_static_works=yes
8953 fi
8954 else
8955 lt_cv_prog_compiler_static_works=yes
8956 fi
8957 fi
8958 $RM -r conftest*
8959 LDFLAGS="$save_LDFLAGS"
8960
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8963$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8964
8965if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8966 :
8967else
8968 lt_prog_compiler_static=
8969fi
8970
8971
8972
8973
8974
8975
8976
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8978$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8979if ${lt_cv_prog_compiler_c_o+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981else
8982 lt_cv_prog_compiler_c_o=no
8983 $RM -r conftest 2>/dev/null
8984 mkdir conftest
8985 cd conftest
8986 mkdir out
8987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988
8989 lt_compiler_flag="-o out/conftest2.$ac_objext"
8990 # Insert the option either (1) after the last *FLAGS variable, or
8991 # (2) before a word containing "conftest.", or (3) at the end.
8992 # Note that $ac_compile itself does not contain backslashes and begins
8993 # with a dollar sign (not a hyphen), so the echo should work correctly.
8994 lt_compile=`echo "$ac_compile" | $SED \
8995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997 -e 's:$: $lt_compiler_flag:'`
8998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999 (eval "$lt_compile" 2>out/conftest.err)
9000 ac_status=$?
9001 cat out/conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9004 then
9005 # The compiler can only warn and ignore the option if not recognized
9006 # So say no if there are warnings
9007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9010 lt_cv_prog_compiler_c_o=yes
9011 fi
9012 fi
9013 chmod u+w . 2>&5
9014 $RM conftest*
9015 # SGI C++ compiler will create directory out/ii_files/ for
9016 # template instantiation
9017 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9018 $RM out/* && rmdir out
9019 cd ..
9020 $RM -r conftest
9021 $RM conftest*
9022
9023fi
9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9025$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9026
9027
9028
9029
9030
9031
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9033$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9034if ${lt_cv_prog_compiler_c_o+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036else
9037 lt_cv_prog_compiler_c_o=no
9038 $RM -r conftest 2>/dev/null
9039 mkdir conftest
9040 cd conftest
9041 mkdir out
9042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9043
9044 lt_compiler_flag="-o out/conftest2.$ac_objext"
9045 # Insert the option either (1) after the last *FLAGS variable, or
9046 # (2) before a word containing "conftest.", or (3) at the end.
9047 # Note that $ac_compile itself does not contain backslashes and begins
9048 # with a dollar sign (not a hyphen), so the echo should work correctly.
9049 lt_compile=`echo "$ac_compile" | $SED \
9050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9052 -e 's:$: $lt_compiler_flag:'`
9053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9054 (eval "$lt_compile" 2>out/conftest.err)
9055 ac_status=$?
9056 cat out/conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9059 then
9060 # The compiler can only warn and ignore the option if not recognized
9061 # So say no if there are warnings
9062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9065 lt_cv_prog_compiler_c_o=yes
9066 fi
9067 fi
9068 chmod u+w . 2>&5
9069 $RM conftest*
9070 # SGI C++ compiler will create directory out/ii_files/ for
9071 # template instantiation
9072 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9073 $RM out/* && rmdir out
9074 cd ..
9075 $RM -r conftest
9076 $RM conftest*
9077
9078fi
9079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9080$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9081
9082
9083
9084
9085hard_links="nottested"
9086if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9087 # do not overwrite the value of need_locks provided by the user
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9089$as_echo_n "checking if we can lock with hard links... " >&6; }
9090 hard_links=yes
9091 $RM conftest*
9092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9093 touch conftest.a
9094 ln conftest.a conftest.b 2>&5 || hard_links=no
9095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9097$as_echo "$hard_links" >&6; }
9098 if test "$hard_links" = no; then
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9100$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9101 need_locks=warn
9102 fi
9103else
9104 need_locks=no
9105fi
9106
9107
9108
9109
9110
9111
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9113$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9114
9115 runpath_var=
9116 allow_undefined_flag=
9117 always_export_symbols=no
9118 archive_cmds=
9119 archive_expsym_cmds=
9120 compiler_needs_object=no
9121 enable_shared_with_static_runtimes=no
9122 export_dynamic_flag_spec=
9123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9124 hardcode_automatic=no
9125 hardcode_direct=no
9126 hardcode_direct_absolute=no
9127 hardcode_libdir_flag_spec=
9128 hardcode_libdir_flag_spec_ld=
9129 hardcode_libdir_separator=
9130 hardcode_minus_L=no
9131 hardcode_shlibpath_var=unsupported
9132 inherit_rpath=no
9133 link_all_deplibs=unknown
9134 module_cmds=
9135 module_expsym_cmds=
9136 old_archive_from_new_cmds=
9137 old_archive_from_expsyms_cmds=
9138 thread_safe_flag_spec=
9139 whole_archive_flag_spec=
9140 # include_expsyms should be a list of space-separated symbols to be *always*
9141 # included in the symbol list
9142 include_expsyms=
9143 # exclude_expsyms can be an extended regexp of symbols to exclude
9144 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9145 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9146 # as well as any symbol that contains `d'.
9147 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9148 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9149 # platforms (ab)use it in PIC code, but their linkers get confused if
9150 # the symbol is explicitly referenced. Since portable code cannot
9151 # rely on this symbol name, it's probably fine to never include it in
9152 # preloaded symbol tables.
9153 # Exclude shared library initialization/finalization symbols.
9154 extract_expsyms_cmds=
9155
9156 case $host_os in
9157 cygwin* | mingw* | pw32* | cegcc*)
9158 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9159 # When not using gcc, we currently assume that we are using
9160 # Microsoft Visual C++.
9161 if test "$GCC" != yes; then
9162 with_gnu_ld=no
9163 fi
9164 ;;
9165 interix*)
9166 # we just hope/assume this is gcc and not c89 (= MSVC++)
9167 with_gnu_ld=yes
9168 ;;
9169 openbsd*)
9170 with_gnu_ld=no
9171 ;;
9172 esac
9173
9174 ld_shlibs=yes
9175
9176 # On some targets, GNU ld is compatible enough with the native linker
9177 # that we're better off using the native interface for both.
9178 lt_use_gnu_ld_interface=no
9179 if test "$with_gnu_ld" = yes; then
9180 case $host_os in
9181 aix*)
9182 # The AIX port of GNU ld has always aspired to compatibility
9183 # with the native linker. However, as the warning in the GNU ld
9184 # block says, versions before 2.19.5* couldn't really create working
9185 # shared libraries, regardless of the interface used.
9186 case `$LD -v 2>&1` in
9187 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9188 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9189 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9190 *)
9191 lt_use_gnu_ld_interface=yes
9192 ;;
9193 esac
9194 ;;
9195 *)
9196 lt_use_gnu_ld_interface=yes
9197 ;;
9198 esac
9199 fi
9200
9201 if test "$lt_use_gnu_ld_interface" = yes; then
9202 # If archive_cmds runs LD, not CC, wlarc should be empty
9203 wlarc='${wl}'
9204
9205 # Set some defaults for GNU ld with shared library support. These
9206 # are reset later if shared libraries are not supported. Putting them
9207 # here allows them to be overridden if necessary.
9208 runpath_var=LD_RUN_PATH
9209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9210 export_dynamic_flag_spec='${wl}--export-dynamic'
9211 # ancient GNU ld didn't support --whole-archive et. al.
9212 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9213 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9214 else
9215 whole_archive_flag_spec=
9216 fi
9217 supports_anon_versioning=no
9218 case `$LD -v 2>&1` in
9219 *GNU\ gold*) supports_anon_versioning=yes ;;
9220 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9221 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9222 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9223 *\ 2.11.*) ;; # other 2.11 versions
9224 *) supports_anon_versioning=yes ;;
9225 esac
9226
9227 # See if GNU ld supports shared libraries.
9228 case $host_os in
9229 aix[3-9]*)
9230 # On AIX/PPC, the GNU linker is very broken
9231 if test "$host_cpu" != ia64; then
9232 ld_shlibs=no
9233 cat <<_LT_EOF 1>&2
9234
9235*** Warning: the GNU linker, at least up to release 2.19, is reported
9236*** to be unable to reliably create shared libraries on AIX.
9237*** Therefore, libtool is disabling shared libraries support. If you
9238*** really care for shared libraries, you may want to install binutils
9239*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9240*** You will then need to restart the configuration process.
9241
9242_LT_EOF
9243 fi
9244 ;;
9245
9246 amigaos*)
9247 case $host_cpu in
9248 powerpc)
9249 # see comment about AmigaOS4 .so support
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 archive_expsym_cmds=''
9252 ;;
9253 m68k)
9254 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)'
9255 hardcode_libdir_flag_spec='-L$libdir'
9256 hardcode_minus_L=yes
9257 ;;
9258 esac
9259 ;;
9260
9261 beos*)
9262 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9263 allow_undefined_flag=unsupported
9264 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9265 # support --undefined. This deserves some investigation. FIXME
9266 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267 else
9268 ld_shlibs=no
9269 fi
9270 ;;
9271
9272 cygwin* | mingw* | pw32* | cegcc*)
9273 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9274 # as there is no search path for DLLs.
9275 hardcode_libdir_flag_spec='-L$libdir'
9276 export_dynamic_flag_spec='${wl}--export-all-symbols'
9277 allow_undefined_flag=unsupported
9278 always_export_symbols=no
9279 enable_shared_with_static_runtimes=yes
9280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9281
9282 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9284 # If the export-symbols file already is a .def file (1st line
9285 # is EXPORTS), use it as is; otherwise, prepend...
9286 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9287 cp $export_symbols $output_objdir/$soname.def;
9288 else
9289 echo EXPORTS > $output_objdir/$soname.def;
9290 cat $export_symbols >> $output_objdir/$soname.def;
9291 fi~
9292 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9293 else
9294 ld_shlibs=no
9295 fi
9296 ;;
9297
9298 haiku*)
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 link_all_deplibs=yes
9301 ;;
9302
9303 interix[3-9]*)
9304 hardcode_direct=no
9305 hardcode_shlibpath_var=no
9306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9307 export_dynamic_flag_spec='${wl}-E'
9308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9309 # Instead, shared libraries are loaded at an image base (0x10000000 by
9310 # default) and relocated if they conflict, which is a slow very memory
9311 # consuming and fragmenting process. To avoid this, we pick a random,
9312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9313 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9315 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'
9316 ;;
9317
9318 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9319 tmp_diet=no
9320 if test "$host_os" = linux-dietlibc; then
9321 case $cc_basename in
9322 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9323 esac
9324 fi
9325 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9326 && test "$tmp_diet" = no
9327 then
9328 tmp_addflag=' $pic_flag'
9329 tmp_sharedflag='-shared'
9330 case $cc_basename,$host_cpu in
9331 pgcc*) # Portland Group C compiler
9332 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'
9333 tmp_addflag=' $pic_flag'
9334 ;;
9335 pgf77* | pgf90* | pgf95* | pgfortran*)
9336 # Portland Group f77 and f90 compilers
9337 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'
9338 tmp_addflag=' $pic_flag -Mnomain' ;;
9339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9340 tmp_addflag=' -i_dynamic' ;;
9341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9342 tmp_addflag=' -i_dynamic -nofor_main' ;;
9343 ifc* | ifort*) # Intel Fortran compiler
9344 tmp_addflag=' -nofor_main' ;;
9345 lf95*) # Lahey Fortran 8.1
9346 whole_archive_flag_spec=
9347 tmp_sharedflag='--shared' ;;
9348 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9349 tmp_sharedflag='-qmkshrobj'
9350 tmp_addflag= ;;
9351 nvcc*) # Cuda Compiler Driver 2.2
9352 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'
9353 compiler_needs_object=yes
9354 ;;
9355 esac
9356 case `$CC -V 2>&1 | sed 5q` in
9357 *Sun\ C*) # Sun C 5.9
9358 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'
9359 compiler_needs_object=yes
9360 tmp_sharedflag='-G' ;;
9361 *Sun\ F*) # Sun Fortran 8.3
9362 tmp_sharedflag='-G' ;;
9363 esac
9364 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9365
9366 if test "x$supports_anon_versioning" = xyes; then
9367 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9369 echo "local: *; };" >> $output_objdir/$libname.ver~
9370 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9371 fi
9372
9373 case $cc_basename in
9374 xlf* | bgf* | bgxlf* | mpixlf*)
9375 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9376 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9377 hardcode_libdir_flag_spec=
9378 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9379 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9380 if test "x$supports_anon_versioning" = xyes; then
9381 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9382 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9383 echo "local: *; };" >> $output_objdir/$libname.ver~
9384 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9385 fi
9386 ;;
9387 esac
9388 else
9389 ld_shlibs=no
9390 fi
9391 ;;
9392
9393 netbsd*)
9394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9395 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9396 wlarc=
9397 else
9398 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400 fi
9401 ;;
9402
9403 solaris*)
9404 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9405 ld_shlibs=no
9406 cat <<_LT_EOF 1>&2
9407
9408*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9409*** create shared libraries on Solaris systems. Therefore, libtool
9410*** is disabling shared libraries support. We urge you to upgrade GNU
9411*** binutils to release 2.9.1 or newer. Another option is to modify
9412*** your PATH or compiler configuration so that the native linker is
9413*** used, and then restart.
9414
9415_LT_EOF
9416 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419 else
9420 ld_shlibs=no
9421 fi
9422 ;;
9423
9424 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9425 case `$LD -v 2>&1` in
9426 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9427 ld_shlibs=no
9428 cat <<_LT_EOF 1>&2
9429
9430*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9431*** reliably create shared libraries on SCO systems. Therefore, libtool
9432*** is disabling shared libraries support. We urge you to upgrade GNU
9433*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9434*** your PATH or compiler configuration so that the native linker is
9435*** used, and then restart.
9436
9437_LT_EOF
9438 ;;
9439 *)
9440 # For security reasons, it is highly recommended that you always
9441 # use absolute paths for naming shared libraries, and exclude the
9442 # DT_RUNPATH tag from executables and libraries. But doing so
9443 # requires that you compile everything twice, which is a pain.
9444 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9448 else
9449 ld_shlibs=no
9450 fi
9451 ;;
9452 esac
9453 ;;
9454
9455 sunos4*)
9456 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9457 wlarc=
9458 hardcode_direct=yes
9459 hardcode_shlibpath_var=no
9460 ;;
9461
9462 *)
9463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9466 else
9467 ld_shlibs=no
9468 fi
9469 ;;
9470 esac
9471
9472 if test "$ld_shlibs" = no; then
9473 runpath_var=
9474 hardcode_libdir_flag_spec=
9475 export_dynamic_flag_spec=
9476 whole_archive_flag_spec=
9477 fi
9478 else
9479 # PORTME fill in a description of your system's linker (not GNU ld)
9480 case $host_os in
9481 aix3*)
9482 allow_undefined_flag=unsupported
9483 always_export_symbols=yes
9484 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'
9485 # Note: this linker hardcodes the directories in LIBPATH if there
9486 # are no directories specified by -L.
9487 hardcode_minus_L=yes
9488 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9489 # Neither direct hardcoding nor static linking is supported with a
9490 # broken collect2.
9491 hardcode_direct=unsupported
9492 fi
9493 ;;
9494
9495 aix[4-9]*)
9496 if test "$host_cpu" = ia64; then
9497 # On IA64, the linker does run time linking by default, so we don't
9498 # have to do anything special.
9499 aix_use_runtimelinking=no
9500 exp_sym_flag='-Bexport'
9501 no_entry_flag=""
9502 else
9503 # If we're using GNU nm, then we don't want the "-C" option.
9504 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9505 # Also, AIX nm treats weak defined symbols like other global
9506 # defined symbols, whereas GNU nm marks them as "W".
9507 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9508 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'
9509 else
9510 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9511 fi
9512 aix_use_runtimelinking=no
9513
9514 # Test if we are trying to use run time linking or normal
9515 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9516 # need to do runtime linking.
9517 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9518 for ld_flag in $LDFLAGS; do
9519 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9520 aix_use_runtimelinking=yes
9521 break
9522 fi
9523 done
9524 ;;
9525 esac
9526
9527 exp_sym_flag='-bexport'
9528 no_entry_flag='-bnoentry'
9529 fi
9530
9531 # When large executables or shared objects are built, AIX ld can
9532 # have problems creating the table of contents. If linking a library
9533 # or program results in "error TOC overflow" add -mminimal-toc to
9534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9536
9537 archive_cmds=''
9538 hardcode_direct=yes
9539 hardcode_direct_absolute=yes
9540 hardcode_libdir_separator=':'
9541 link_all_deplibs=yes
9542 file_list_spec='${wl}-f,'
9543
9544 if test "$GCC" = yes; then
9545 case $host_os in aix4.[012]|aix4.[012].*)
9546 # We only want to do this on AIX 4.2 and lower, the check
9547 # below for broken collect2 doesn't work under 4.3+
9548 collect2name=`${CC} -print-prog-name=collect2`
9549 if test -f "$collect2name" &&
9550 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9551 then
9552 # We have reworked collect2
9553 :
9554 else
9555 # We have old collect2
9556 hardcode_direct=unsupported
9557 # It fails to find uninstalled libraries when the uninstalled
9558 # path is not listed in the libpath. Setting hardcode_minus_L
9559 # to unsupported forces relinking
9560 hardcode_minus_L=yes
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_libdir_separator=
9563 fi
9564 ;;
9565 esac
9566 shared_flag='-shared'
9567 if test "$aix_use_runtimelinking" = yes; then
9568 shared_flag="$shared_flag "'${wl}-G'
9569 fi
9570 else
9571 # not using gcc
9572 if test "$host_cpu" = ia64; then
9573 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9574 # chokes on -Wl,-G. The following line is correct:
9575 shared_flag='-G'
9576 else
9577 if test "$aix_use_runtimelinking" = yes; then
9578 shared_flag='${wl}-G'
9579 else
9580 shared_flag='${wl}-bM:SRE'
9581 fi
9582 fi
9583 fi
9584
9585 export_dynamic_flag_spec='${wl}-bexpall'
9586 # It seems that -bexpall does not export symbols beginning with
9587 # underscore (_), so it is better to generate a list of symbols to export.
9588 always_export_symbols=yes
9589 if test "$aix_use_runtimelinking" = yes; then
9590 # Warning - without using the other runtime loading flags (-brtl),
9591 # -berok will link without error, but may produce a broken library.
9592 allow_undefined_flag='-berok'
9593 # Determine the default libpath from the value encoded in an
9594 # empty executable.
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h. */
9597
9598int
9599main ()
9600{
9601
9602 ;
9603 return 0;
9604}
9605_ACEOF
9606if ac_fn_c_try_link "$LINENO"; then :
9607
9608lt_aix_libpath_sed='
9609 /Import File Strings/,/^$/ {
9610 /^0/ {
9611 s/^0 *\(.*\)$/\1/
9612 p
9613 }
9614 }'
9615aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616# Check for a 64-bit object if we didn't find anything.
9617if test -z "$aix_libpath"; then
9618 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619fi
9620fi
9621rm -f core conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9624
9625 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9626 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"
9627 else
9628 if test "$host_cpu" = ia64; then
9629 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9630 allow_undefined_flag="-z nodefs"
9631 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"
9632 else
9633 # Determine the default libpath from the value encoded in an
9634 # empty executable.
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h. */
9637
9638int
9639main ()
9640{
9641
9642 ;
9643 return 0;
9644}
9645_ACEOF
9646if ac_fn_c_try_link "$LINENO"; then :
9647
9648lt_aix_libpath_sed='
9649 /Import File Strings/,/^$/ {
9650 /^0/ {
9651 s/^0 *\(.*\)$/\1/
9652 p
9653 }
9654 }'
9655aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9656# Check for a 64-bit object if we didn't find anything.
9657if test -z "$aix_libpath"; then
9658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659fi
9660fi
9661rm -f core conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9664
9665 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9666 # Warning - without using the other run time loading flags,
9667 # -berok will link without error, but may produce a broken library.
9668 no_undefined_flag=' ${wl}-bernotok'
9669 allow_undefined_flag=' ${wl}-berok'
9670 if test "$with_gnu_ld" = yes; then
9671 # We only use this code for GNU lds that support --whole-archive.
9672 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9673 else
9674 # Exported symbols can be pulled into shared objects from archives
9675 whole_archive_flag_spec='$convenience'
9676 fi
9677 archive_cmds_need_lc=yes
9678 # This is similar to how AIX traditionally builds its shared libraries.
9679 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'
9680 fi
9681 fi
9682 ;;
9683
9684 amigaos*)
9685 case $host_cpu in
9686 powerpc)
9687 # see comment about AmigaOS4 .so support
9688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9689 archive_expsym_cmds=''
9690 ;;
9691 m68k)
9692 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)'
9693 hardcode_libdir_flag_spec='-L$libdir'
9694 hardcode_minus_L=yes
9695 ;;
9696 esac
9697 ;;
9698
9699 bsdi[45]*)
9700 export_dynamic_flag_spec=-rdynamic
9701 ;;
9702
9703 cygwin* | mingw* | pw32* | cegcc*)
9704 # When not using gcc, we currently assume that we are using
9705 # Microsoft Visual C++.
9706 # hardcode_libdir_flag_spec is actually meaningless, as there is
9707 # no search path for DLLs.
9708 hardcode_libdir_flag_spec=' '
9709 allow_undefined_flag=unsupported
9710 # Tell ltmain to make .lib files, not .a files.
9711 libext=lib
9712 # Tell ltmain to make .dll files, not .so files.
9713 shrext_cmds=".dll"
9714 # FIXME: Setting linknames here is a bad hack.
9715 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9716 # The linker will automatically build a .lib file if we build a DLL.
9717 old_archive_from_new_cmds='true'
9718 # FIXME: Should let the user specify the lib program.
9719 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9720 fix_srcfile_path='`cygpath -w "$srcfile"`'
9721 enable_shared_with_static_runtimes=yes
9722 ;;
9723
9724 darwin* | rhapsody*)
9725
9726
9727 archive_cmds_need_lc=no
9728 hardcode_direct=no
9729 hardcode_automatic=yes
9730 hardcode_shlibpath_var=unsupported
9731 if test "$lt_cv_ld_force_load" = "yes"; then
9732 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\"`'
9733 else
9734 whole_archive_flag_spec=''
9735 fi
9736 link_all_deplibs=yes
9737 allow_undefined_flag="$_lt_dar_allow_undefined"
9738 case $cc_basename in
9739 ifort*) _lt_dar_can_shared=yes ;;
9740 *) _lt_dar_can_shared=$GCC ;;
9741 esac
9742 if test "$_lt_dar_can_shared" = "yes"; then
9743 output_verbose_link_cmd=func_echo_all
9744 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9745 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9746 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}"
9747 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}"
9748
9749 else
9750 ld_shlibs=no
9751 fi
9752
9753 ;;
9754
9755 dgux*)
9756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 hardcode_libdir_flag_spec='-L$libdir'
9758 hardcode_shlibpath_var=no
9759 ;;
9760
9761 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9762 # support. Future versions do this automatically, but an explicit c++rt0.o
9763 # does not break anything, and helps significantly (at the cost of a little
9764 # extra space).
9765 freebsd2.2*)
9766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9767 hardcode_libdir_flag_spec='-R$libdir'
9768 hardcode_direct=yes
9769 hardcode_shlibpath_var=no
9770 ;;
9771
9772 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9773 freebsd2.*)
9774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_direct=yes
9776 hardcode_minus_L=yes
9777 hardcode_shlibpath_var=no
9778 ;;
9779
9780 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9781 freebsd* | dragonfly*)
9782 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9783 hardcode_libdir_flag_spec='-R$libdir'
9784 hardcode_direct=yes
9785 hardcode_shlibpath_var=no
9786 ;;
9787
9788 hpux9*)
9789 if test "$GCC" = yes; then
9790 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'
9791 else
9792 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'
9793 fi
9794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9795 hardcode_libdir_separator=:
9796 hardcode_direct=yes
9797
9798 # hardcode_minus_L: Not really in the search PATH,
9799 # but as the default location of the library.
9800 hardcode_minus_L=yes
9801 export_dynamic_flag_spec='${wl}-E'
9802 ;;
9803
9804 hpux10*)
9805 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9806 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9807 else
9808 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9809 fi
9810 if test "$with_gnu_ld" = no; then
9811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9812 hardcode_libdir_flag_spec_ld='+b $libdir'
9813 hardcode_libdir_separator=:
9814 hardcode_direct=yes
9815 hardcode_direct_absolute=yes
9816 export_dynamic_flag_spec='${wl}-E'
9817 # hardcode_minus_L: Not really in the search PATH,
9818 # but as the default location of the library.
9819 hardcode_minus_L=yes
9820 fi
9821 ;;
9822
9823 hpux11*)
9824 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9825 case $host_cpu in
9826 hppa*64*)
9827 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9828 ;;
9829 ia64*)
9830 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9831 ;;
9832 *)
9833 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9834 ;;
9835 esac
9836 else
9837 case $host_cpu in
9838 hppa*64*)
9839 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9840 ;;
9841 ia64*)
9842 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9843 ;;
9844 *)
9845
9846 # Older versions of the 11.00 compiler do not understand -b yet
9847 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9849$as_echo_n "checking if $CC understands -b... " >&6; }
9850if ${lt_cv_prog_compiler__b+:} false; then :
9851 $as_echo_n "(cached) " >&6
9852else
9853 lt_cv_prog_compiler__b=no
9854 save_LDFLAGS="$LDFLAGS"
9855 LDFLAGS="$LDFLAGS -b"
9856 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9857 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9858 # The linker can only warn and ignore the option if not recognized
9859 # So say no if there are warnings
9860 if test -s conftest.err; then
9861 # Append any errors to the config.log.
9862 cat conftest.err 1>&5
9863 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9864 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9865 if diff conftest.exp conftest.er2 >/dev/null; then
9866 lt_cv_prog_compiler__b=yes
9867 fi
9868 else
9869 lt_cv_prog_compiler__b=yes
9870 fi
9871 fi
9872 $RM -r conftest*
9873 LDFLAGS="$save_LDFLAGS"
9874
9875fi
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9877$as_echo "$lt_cv_prog_compiler__b" >&6; }
9878
9879if test x"$lt_cv_prog_compiler__b" = xyes; then
9880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9881else
9882 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9883fi
9884
9885 ;;
9886 esac
9887 fi
9888 if test "$with_gnu_ld" = no; then
9889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9890 hardcode_libdir_separator=:
9891
9892 case $host_cpu in
9893 hppa*64*|ia64*)
9894 hardcode_direct=no
9895 hardcode_shlibpath_var=no
9896 ;;
9897 *)
9898 hardcode_direct=yes
9899 hardcode_direct_absolute=yes
9900 export_dynamic_flag_spec='${wl}-E'
9901
9902 # hardcode_minus_L: Not really in the search PATH,
9903 # but as the default location of the library.
9904 hardcode_minus_L=yes
9905 ;;
9906 esac
9907 fi
9908 ;;
9909
9910 irix5* | irix6* | nonstopux*)
9911 if test "$GCC" = yes; then
9912 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'
9913 # Try to use the -exported_symbol ld option, if it does not
9914 # work, assume that -exports_file does not work either and
9915 # implicitly export all symbols.
9916 save_LDFLAGS="$LDFLAGS"
9917 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919/* end confdefs.h. */
9920int foo(void) {}
9921_ACEOF
9922if ac_fn_c_try_link "$LINENO"; then :
9923 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'
9924
9925fi
9926rm -f core conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
9928 LDFLAGS="$save_LDFLAGS"
9929 else
9930 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'
9931 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'
9932 fi
9933 archive_cmds_need_lc='no'
9934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9935 hardcode_libdir_separator=:
9936 inherit_rpath=yes
9937 link_all_deplibs=yes
9938 ;;
9939
9940 netbsd*)
9941 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9943 else
9944 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9945 fi
9946 hardcode_libdir_flag_spec='-R$libdir'
9947 hardcode_direct=yes
9948 hardcode_shlibpath_var=no
9949 ;;
9950
9951 newsos6)
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_direct=yes
9954 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9955 hardcode_libdir_separator=:
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 *nto* | *qnx*)
9960 ;;
9961
9962 openbsd*)
9963 if test -f /usr/libexec/ld.so; then
9964 hardcode_direct=yes
9965 hardcode_shlibpath_var=no
9966 hardcode_direct_absolute=yes
9967 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9969 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9970 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9971 export_dynamic_flag_spec='${wl}-E'
9972 else
9973 case $host_os in
9974 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_libdir_flag_spec='-R$libdir'
9977 ;;
9978 *)
9979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9981 ;;
9982 esac
9983 fi
9984 else
9985 ld_shlibs=no
9986 fi
9987 ;;
9988
9989 os2*)
9990 hardcode_libdir_flag_spec='-L$libdir'
9991 hardcode_minus_L=yes
9992 allow_undefined_flag=unsupported
9993 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'
9994 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9995 ;;
9996
9997 osf3*)
9998 if test "$GCC" = yes; then
9999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10000 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'
10001 else
10002 allow_undefined_flag=' -expect_unresolved \*'
10003 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'
10004 fi
10005 archive_cmds_need_lc='no'
10006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10007 hardcode_libdir_separator=:
10008 ;;
10009
10010 osf4* | osf5*) # as osf3* with the addition of -msym flag
10011 if test "$GCC" = yes; then
10012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10013 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'
10014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10015 else
10016 allow_undefined_flag=' -expect_unresolved \*'
10017 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'
10018 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~
10019 $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'
10020
10021 # Both c and cxx compiler support -rpath directly
10022 hardcode_libdir_flag_spec='-rpath $libdir'
10023 fi
10024 archive_cmds_need_lc='no'
10025 hardcode_libdir_separator=:
10026 ;;
10027
10028 solaris*)
10029 no_undefined_flag=' -z defs'
10030 if test "$GCC" = yes; then
10031 wlarc='${wl}'
10032 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10034 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10035 else
10036 case `$CC -V 2>&1` in
10037 *"Compilers 5.0"*)
10038 wlarc=''
10039 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10041 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10042 ;;
10043 *)
10044 wlarc='${wl}'
10045 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10047 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10048 ;;
10049 esac
10050 fi
10051 hardcode_libdir_flag_spec='-R$libdir'
10052 hardcode_shlibpath_var=no
10053 case $host_os in
10054 solaris2.[0-5] | solaris2.[0-5].*) ;;
10055 *)
10056 # The compiler driver will combine and reorder linker options,
10057 # but understands `-z linker_flag'. GCC discards it without `$wl',
10058 # but is careful enough not to reorder.
10059 # Supported since Solaris 2.6 (maybe 2.5.1?)
10060 if test "$GCC" = yes; then
10061 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10062 else
10063 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10064 fi
10065 ;;
10066 esac
10067 link_all_deplibs=yes
10068 ;;
10069
10070 sunos4*)
10071 if test "x$host_vendor" = xsequent; then
10072 # Use $CC to link under sequent, because it throws in some extra .o
10073 # files that make .init and .fini sections work.
10074 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10075 else
10076 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10077 fi
10078 hardcode_libdir_flag_spec='-L$libdir'
10079 hardcode_direct=yes
10080 hardcode_minus_L=yes
10081 hardcode_shlibpath_var=no
10082 ;;
10083
10084 sysv4)
10085 case $host_vendor in
10086 sni)
10087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_direct=yes # is this really true???
10089 ;;
10090 siemens)
10091 ## LD is ld it makes a PLAMLIB
10092 ## CC just makes a GrossModule.
10093 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10094 reload_cmds='$CC -r -o $output$reload_objs'
10095 hardcode_direct=no
10096 ;;
10097 motorola)
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10100 ;;
10101 esac
10102 runpath_var='LD_RUN_PATH'
10103 hardcode_shlibpath_var=no
10104 ;;
10105
10106 sysv4.3*)
10107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_shlibpath_var=no
10109 export_dynamic_flag_spec='-Bexport'
10110 ;;
10111
10112 sysv4*MP*)
10113 if test -d /usr/nec; then
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_shlibpath_var=no
10116 runpath_var=LD_RUN_PATH
10117 hardcode_runpath_var=yes
10118 ld_shlibs=yes
10119 fi
10120 ;;
10121
10122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10123 no_undefined_flag='${wl}-z,text'
10124 archive_cmds_need_lc=no
10125 hardcode_shlibpath_var=no
10126 runpath_var='LD_RUN_PATH'
10127
10128 if test "$GCC" = yes; then
10129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10131 else
10132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10134 fi
10135 ;;
10136
10137 sysv5* | sco3.2v5* | sco5v6*)
10138 # Note: We can NOT use -z defs as we might desire, because we do not
10139 # link with -lc, and that would cause any symbols used from libc to
10140 # always be unresolved, which means just about no library would
10141 # ever link correctly. If we're not using GNU ld we use -z text
10142 # though, which does catch some bad symbols but isn't as heavy-handed
10143 # as -z defs.
10144 no_undefined_flag='${wl}-z,text'
10145 allow_undefined_flag='${wl}-z,nodefs'
10146 archive_cmds_need_lc=no
10147 hardcode_shlibpath_var=no
10148 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10149 hardcode_libdir_separator=':'
10150 link_all_deplibs=yes
10151 export_dynamic_flag_spec='${wl}-Bexport'
10152 runpath_var='LD_RUN_PATH'
10153
10154 if test "$GCC" = yes; then
10155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 else
10158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 fi
10161 ;;
10162
10163 uts4*)
10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165 hardcode_libdir_flag_spec='-L$libdir'
10166 hardcode_shlibpath_var=no
10167 ;;
10168
10169 *)
10170 ld_shlibs=no
10171 ;;
10172 esac
10173
10174 if test x$host_vendor = xsni; then
10175 case $host in
10176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10177 export_dynamic_flag_spec='${wl}-Blargedynsym'
10178 ;;
10179 esac
10180 fi
10181 fi
10182
10183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10184$as_echo "$ld_shlibs" >&6; }
10185test "$ld_shlibs" = no && can_build_shared=no
10186
10187with_gnu_ld=$with_gnu_ld
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203#
10204# Do we need to explicitly link libc?
10205#
10206case "x$archive_cmds_need_lc" in
10207x|xyes)
10208 # Assume -lc should be added
10209 archive_cmds_need_lc=yes
10210
10211 if test "$enable_shared" = yes && test "$GCC" = yes; then
10212 case $archive_cmds in
10213 *'~'*)
10214 # FIXME: we may have to deal with multi-command sequences.
10215 ;;
10216 '$CC '*)
10217 # Test whether the compiler implicitly links with -lc since on some
10218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10219 # to ld, don't add -lc before -lgcc.
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10221$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10222if ${lt_cv_archive_cmds_need_lc+:} false; then :
10223 $as_echo_n "(cached) " >&6
10224else
10225 $RM conftest*
10226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10227
10228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10229 (eval $ac_compile) 2>&5
10230 ac_status=$?
10231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10232 test $ac_status = 0; } 2>conftest.err; then
10233 soname=conftest
10234 lib=conftest
10235 libobjs=conftest.$ac_objext
10236 deplibs=
10237 wl=$lt_prog_compiler_wl
10238 pic_flag=$lt_prog_compiler_pic
10239 compiler_flags=-v
10240 linker_flags=-v
10241 verstring=
10242 output_objdir=.
10243 libname=conftest
10244 lt_save_allow_undefined_flag=$allow_undefined_flag
10245 allow_undefined_flag=
10246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10247 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10248 ac_status=$?
10249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10250 test $ac_status = 0; }
10251 then
10252 lt_cv_archive_cmds_need_lc=no
10253 else
10254 lt_cv_archive_cmds_need_lc=yes
10255 fi
10256 allow_undefined_flag=$lt_save_allow_undefined_flag
10257 else
10258 cat conftest.err 1>&5
10259 fi
10260 $RM conftest*
10261
10262fi
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10264$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10265 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10266 ;;
10267 esac
10268 fi
10269 ;;
10270esac
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
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10429$as_echo_n "checking dynamic linker characteristics... " >&6; }
10430
10431if test "$GCC" = yes; then
10432 case $host_os in
10433 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10434 *) lt_awk_arg="/^libraries:/" ;;
10435 esac
10436 case $host_os in
10437 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10438 *) lt_sed_strip_eq="s,=/,/,g" ;;
10439 esac
10440 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10441 case $lt_search_path_spec in
10442 *\;*)
10443 # if the path contains ";" then we assume it to be the separator
10444 # otherwise default to the standard path separator (i.e. ":") - it is
10445 # assumed that no part of a normal pathname contains ";" but that should
10446 # okay in the real world where ";" in dirpaths is itself problematic.
10447 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10448 ;;
10449 *)
10450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10451 ;;
10452 esac
10453 # Ok, now we have the path, separated by spaces, we can step through it
10454 # and add multilib dir if necessary.
10455 lt_tmp_lt_search_path_spec=
10456 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10457 for lt_sys_path in $lt_search_path_spec; do
10458 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10460 else
10461 test -d "$lt_sys_path" && \
10462 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10463 fi
10464 done
10465 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10466BEGIN {RS=" "; FS="/|\n";} {
10467 lt_foo="";
10468 lt_count=0;
10469 for (lt_i = NF; lt_i > 0; lt_i--) {
10470 if ($lt_i != "" && $lt_i != ".") {
10471 if ($lt_i == "..") {
10472 lt_count++;
10473 } else {
10474 if (lt_count == 0) {
10475 lt_foo="/" $lt_i lt_foo;
10476 } else {
10477 lt_count--;
10478 }
10479 }
10480 }
10481 }
10482 if (lt_foo != "") { lt_freq[lt_foo]++; }
10483 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10484}'`
10485 # AWK program above erroneously prepends '/' to C:/dos/paths
10486 # for these hosts.
10487 case $host_os in
10488 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10489 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10490 esac
10491 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10492else
10493 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10494fi
10495library_names_spec=
10496libname_spec='lib$name'
10497soname_spec=
10498shrext_cmds=".so"
10499postinstall_cmds=
10500postuninstall_cmds=
10501finish_cmds=
10502finish_eval=
10503shlibpath_var=
10504shlibpath_overrides_runpath=unknown
10505version_type=none
10506dynamic_linker="$host_os ld.so"
10507sys_lib_dlsearch_path_spec="/lib /usr/lib"
10508need_lib_prefix=unknown
10509hardcode_into_libs=no
10510
10511# when you set need_version to no, make sure it does not cause -set_version
10512# flags to be left without arguments
10513need_version=unknown
10514
10515case $host_os in
10516aix3*)
10517 version_type=linux
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10519 shlibpath_var=LIBPATH
10520
10521 # AIX 3 has no versioning support, so we append a major version to the name.
10522 soname_spec='${libname}${release}${shared_ext}$major'
10523 ;;
10524
10525aix[4-9]*)
10526 version_type=linux
10527 need_lib_prefix=no
10528 need_version=no
10529 hardcode_into_libs=yes
10530 if test "$host_cpu" = ia64; then
10531 # AIX 5 supports IA64
10532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 else
10535 # With GCC up to 2.95.x, collect2 would create an import file
10536 # for dependence libraries. The import file would start with
10537 # the line `#! .'. This would cause the generated library to
10538 # depend on `.', always an invalid library. This was fixed in
10539 # development snapshots of GCC prior to 3.0.
10540 case $host_os in
10541 aix4 | aix4.[01] | aix4.[01].*)
10542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10543 echo ' yes '
10544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10545 :
10546 else
10547 can_build_shared=no
10548 fi
10549 ;;
10550 esac
10551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10552 # soname into executable. Probably we can add versioning support to
10553 # collect2, so additional links can be useful in future.
10554 if test "$aix_use_runtimelinking" = yes; then
10555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10556 # instead of lib<name>.a to let people know that these are not
10557 # typical AIX shared libraries.
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 else
10560 # We preserve .a as extension for shared libraries through AIX4.2
10561 # and later when we are not doing run time linking.
10562 library_names_spec='${libname}${release}.a $libname.a'
10563 soname_spec='${libname}${release}${shared_ext}$major'
10564 fi
10565 shlibpath_var=LIBPATH
10566 fi
10567 ;;
10568
10569amigaos*)
10570 case $host_cpu in
10571 powerpc)
10572 # Since July 2007 AmigaOS4 officially supports .so libraries.
10573 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 ;;
10576 m68k)
10577 library_names_spec='$libname.ixlibrary $libname.a'
10578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10579 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'
10580 ;;
10581 esac
10582 ;;
10583
10584beos*)
10585 library_names_spec='${libname}${shared_ext}'
10586 dynamic_linker="$host_os ld.so"
10587 shlibpath_var=LIBRARY_PATH
10588 ;;
10589
10590bsdi[45]*)
10591 version_type=linux
10592 need_version=no
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10599 # the default ld.so.conf also contains /usr/contrib/lib and
10600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10601 # libtool to hard-code these into programs
10602 ;;
10603
10604cygwin* | mingw* | pw32* | cegcc*)
10605 version_type=windows
10606 shrext_cmds=".dll"
10607 need_version=no
10608 need_lib_prefix=no
10609
10610 case $GCC,$host_os in
10611 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10612 library_names_spec='$libname.dll.a'
10613 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10614 postinstall_cmds='base_file=`basename \${file}`~
10615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10616 dldir=$destdir/`dirname \$dlpath`~
10617 test -d \$dldir || mkdir -p \$dldir~
10618 $install_prog $dir/$dlname \$dldir/$dlname~
10619 chmod a+x \$dldir/$dlname~
10620 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10621 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10622 fi'
10623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10624 dlpath=$dir/\$dldll~
10625 $RM \$dlpath'
10626 shlibpath_overrides_runpath=yes
10627
10628 case $host_os in
10629 cygwin*)
10630 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10631 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10632
10633 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10634 ;;
10635 mingw* | cegcc*)
10636 # MinGW DLLs use traditional 'lib' prefix
10637 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10638 ;;
10639 pw32*)
10640 # pw32 DLLs use 'pw' prefix rather than 'lib'
10641 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10642 ;;
10643 esac
10644 ;;
10645
10646 *)
10647 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10648 ;;
10649 esac
10650 dynamic_linker='Win32 ld.exe'
10651 # FIXME: first we should search . and the directory the executable is in
10652 shlibpath_var=PATH
10653 ;;
10654
10655darwin* | rhapsody*)
10656 dynamic_linker="$host_os dyld"
10657 version_type=darwin
10658 need_lib_prefix=no
10659 need_version=no
10660 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10661 soname_spec='${libname}${release}${major}$shared_ext'
10662 shlibpath_overrides_runpath=yes
10663 shlibpath_var=DYLD_LIBRARY_PATH
10664 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10665
10666 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10667 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10668 ;;
10669
10670dgux*)
10671 version_type=linux
10672 need_lib_prefix=no
10673 need_version=no
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 shlibpath_var=LD_LIBRARY_PATH
10677 ;;
10678
10679freebsd* | dragonfly*)
10680 # DragonFly does not have aout. When/if they implement a new
10681 # versioning mechanism, adjust this.
10682 if test -x /usr/bin/objformat; then
10683 objformat=`/usr/bin/objformat`
10684 else
10685 case $host_os in
10686 freebsd[23].*) objformat=aout ;;
10687 *) objformat=elf ;;
10688 esac
10689 fi
10690 version_type=freebsd-$objformat
10691 case $version_type in
10692 freebsd-elf*)
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10694 need_version=no
10695 need_lib_prefix=no
10696 ;;
10697 freebsd-*)
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10699 need_version=yes
10700 ;;
10701 esac
10702 shlibpath_var=LD_LIBRARY_PATH
10703 case $host_os in
10704 freebsd2.*)
10705 shlibpath_overrides_runpath=yes
10706 ;;
10707 freebsd3.[01]* | freebsdelf3.[01]*)
10708 shlibpath_overrides_runpath=yes
10709 hardcode_into_libs=yes
10710 ;;
10711 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10712 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10713 shlibpath_overrides_runpath=no
10714 hardcode_into_libs=yes
10715 ;;
10716 *) # from 4.6 on, and DragonFly
10717 shlibpath_overrides_runpath=yes
10718 hardcode_into_libs=yes
10719 ;;
10720 esac
10721 ;;
10722
10723gnu*)
10724 version_type=linux
10725 need_lib_prefix=no
10726 need_version=no
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 hardcode_into_libs=yes
10731 ;;
10732
10733haiku*)
10734 version_type=linux
10735 need_lib_prefix=no
10736 need_version=no
10737 dynamic_linker="$host_os runtime_loader"
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 shlibpath_var=LIBRARY_PATH
10741 shlibpath_overrides_runpath=yes
10742 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10743 hardcode_into_libs=yes
10744 ;;
10745
10746hpux9* | hpux10* | hpux11*)
10747 # Give a soname corresponding to the major version so that dld.sl refuses to
10748 # link against other versions.
10749 version_type=sunos
10750 need_lib_prefix=no
10751 need_version=no
10752 case $host_cpu in
10753 ia64*)
10754 shrext_cmds='.so'
10755 hardcode_into_libs=yes
10756 dynamic_linker="$host_os dld.so"
10757 shlibpath_var=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 if test "X$HPUX_IA64_MODE" = X32; then
10762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10763 else
10764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10765 fi
10766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10767 ;;
10768 hppa*64*)
10769 shrext_cmds='.sl'
10770 hardcode_into_libs=yes
10771 dynamic_linker="$host_os dld.sl"
10772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 soname_spec='${libname}${release}${shared_ext}$major'
10776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10778 ;;
10779 *)
10780 shrext_cmds='.sl'
10781 dynamic_linker="$host_os dld.sl"
10782 shlibpath_var=SHLIB_PATH
10783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785 soname_spec='${libname}${release}${shared_ext}$major'
10786 ;;
10787 esac
10788 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10789 postinstall_cmds='chmod 555 $lib'
10790 # or fails outright, so override atomically:
10791 install_override_mode=555
10792 ;;
10793
10794interix[3-9]*)
10795 version_type=linux
10796 need_lib_prefix=no
10797 need_version=no
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=no
10803 hardcode_into_libs=yes
10804 ;;
10805
10806irix5* | irix6* | nonstopux*)
10807 case $host_os in
10808 nonstopux*) version_type=nonstopux ;;
10809 *)
10810 if test "$lt_cv_prog_gnu_ld" = yes; then
10811 version_type=linux
10812 else
10813 version_type=irix
10814 fi ;;
10815 esac
10816 need_lib_prefix=no
10817 need_version=no
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10820 case $host_os in
10821 irix5* | nonstopux*)
10822 libsuff= shlibsuff=
10823 ;;
10824 *)
10825 case $LD in # libtool.m4 will add one of these switches to LD
10826 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10827 libsuff= shlibsuff= libmagic=32-bit;;
10828 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10829 libsuff=32 shlibsuff=N32 libmagic=N32;;
10830 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10831 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10832 *) libsuff= shlibsuff= libmagic=never-match;;
10833 esac
10834 ;;
10835 esac
10836 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10837 shlibpath_overrides_runpath=no
10838 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10839 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10840 hardcode_into_libs=yes
10841 ;;
10842
10843# No shared lib support for Linux oldld, aout, or coff.
10844linux*oldld* | linux*aout* | linux*coff*)
10845 dynamic_linker=no
10846 ;;
10847
10848# This must be Linux ELF.
10849linux* | k*bsd*-gnu | kopensolaris*-gnu)
10850 version_type=linux
10851 need_lib_prefix=no
10852 need_version=no
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath=no
10858
10859 # Some binutils ld are patched to set DT_RUNPATH
10860 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10861 $as_echo_n "(cached) " >&6
10862else
10863 lt_cv_shlibpath_overrides_runpath=no
10864 save_LDFLAGS=$LDFLAGS
10865 save_libdir=$libdir
10866 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10867 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h. */
10870
10871int
10872main ()
10873{
10874
10875 ;
10876 return 0;
10877}
10878_ACEOF
10879if ac_fn_c_try_link "$LINENO"; then :
10880 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10881 lt_cv_shlibpath_overrides_runpath=yes
10882fi
10883fi
10884rm -f core conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 LDFLAGS=$save_LDFLAGS
10887 libdir=$save_libdir
10888
10889fi
10890
10891 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10892
10893 # This implies no fast_install, which is unacceptable.
10894 # Some rework will be needed to allow for fast_install
10895 # before this can be enabled.
10896 hardcode_into_libs=yes
10897
10898 # Append ld.so.conf contents to the search path
10899 if test -f /etc/ld.so.conf; then
10900 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' ' '`
10901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10902 fi
10903
10904 # We used to test for /lib/ld.so.1 and disable shared libraries on
10905 # powerpc, because MkLinux only supported shared libraries with the
10906 # GNU dynamic linker. Since this was broken with cross compilers,
10907 # most powerpc-linux boxes support dynamic linking these days and
10908 # people can always --disable-shared, the test was removed, and we
10909 # assume the GNU/Linux dynamic linker is in use.
10910 dynamic_linker='GNU/Linux ld.so'
10911 ;;
10912
10913netbsd*)
10914 version_type=sunos
10915 need_lib_prefix=no
10916 need_version=no
10917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10920 dynamic_linker='NetBSD (a.out) ld.so'
10921 else
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 dynamic_linker='NetBSD ld.elf_so'
10925 fi
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=yes
10928 hardcode_into_libs=yes
10929 ;;
10930
10931newsos6)
10932 version_type=linux
10933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes
10936 ;;
10937
10938*nto* | *qnx*)
10939 version_type=qnx
10940 need_lib_prefix=no
10941 need_version=no
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=no
10946 hardcode_into_libs=yes
10947 dynamic_linker='ldqnx.so'
10948 ;;
10949
10950openbsd*)
10951 version_type=sunos
10952 sys_lib_dlsearch_path_spec="/usr/lib"
10953 need_lib_prefix=no
10954 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10955 case $host_os in
10956 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10957 *) need_version=no ;;
10958 esac
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10963 case $host_os in
10964 openbsd2.[89] | openbsd2.[89].*)
10965 shlibpath_overrides_runpath=no
10966 ;;
10967 *)
10968 shlibpath_overrides_runpath=yes
10969 ;;
10970 esac
10971 else
10972 shlibpath_overrides_runpath=yes
10973 fi
10974 ;;
10975
10976os2*)
10977 libname_spec='$name'
10978 shrext_cmds=".dll"
10979 need_lib_prefix=no
10980 library_names_spec='$libname${shared_ext} $libname.a'
10981 dynamic_linker='OS/2 ld.exe'
10982 shlibpath_var=LIBPATH
10983 ;;
10984
10985osf3* | osf4* | osf5*)
10986 version_type=osf
10987 need_lib_prefix=no
10988 need_version=no
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10994 ;;
10995
10996rdos*)
10997 dynamic_linker=no
10998 ;;
10999
11000solaris*)
11001 version_type=linux
11002 need_lib_prefix=no
11003 need_version=no
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11005 soname_spec='${libname}${release}${shared_ext}$major'
11006 shlibpath_var=LD_LIBRARY_PATH
11007 shlibpath_overrides_runpath=yes
11008 hardcode_into_libs=yes
11009 # ldd complains unless libraries are executable
11010 postinstall_cmds='chmod +x $lib'
11011 ;;
11012
11013sunos4*)
11014 version_type=sunos
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=yes
11019 if test "$with_gnu_ld" = yes; then
11020 need_lib_prefix=no
11021 fi
11022 need_version=yes
11023 ;;
11024
11025sysv4 | sysv4.3*)
11026 version_type=linux
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 case $host_vendor in
11031 sni)
11032 shlibpath_overrides_runpath=no
11033 need_lib_prefix=no
11034 runpath_var=LD_RUN_PATH
11035 ;;
11036 siemens)
11037 need_lib_prefix=no
11038 ;;
11039 motorola)
11040 need_lib_prefix=no
11041 need_version=no
11042 shlibpath_overrides_runpath=no
11043 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11044 ;;
11045 esac
11046 ;;
11047
11048sysv4*MP*)
11049 if test -d /usr/nec ;then
11050 version_type=linux
11051 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11052 soname_spec='$libname${shared_ext}.$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 fi
11055 ;;
11056
11057sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11058 version_type=freebsd-elf
11059 need_lib_prefix=no
11060 need_version=no
11061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11062 soname_spec='${libname}${release}${shared_ext}$major'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=yes
11065 hardcode_into_libs=yes
11066 if test "$with_gnu_ld" = yes; then
11067 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11068 else
11069 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11070 case $host_os in
11071 sco3.2v5*)
11072 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11073 ;;
11074 esac
11075 fi
11076 sys_lib_dlsearch_path_spec='/usr/lib'
11077 ;;
11078
11079tpf*)
11080 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11081 version_type=linux
11082 need_lib_prefix=no
11083 need_version=no
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=no
11087 hardcode_into_libs=yes
11088 ;;
11089
11090uts4*)
11091 version_type=linux
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 ;;
11096
11097*)
11098 dynamic_linker=no
11099 ;;
11100esac
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11102$as_echo "$dynamic_linker" >&6; }
11103test "$dynamic_linker" = no && can_build_shared=no
11104
11105variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11106if test "$GCC" = yes; then
11107 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11108fi
11109
11110if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11111 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11112fi
11113if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11114 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11115fi
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
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11209$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11210hardcode_action=
11211if test -n "$hardcode_libdir_flag_spec" ||
11212 test -n "$runpath_var" ||
11213 test "X$hardcode_automatic" = "Xyes" ; then
11214
11215 # We can hardcode non-existent directories.
11216 if test "$hardcode_direct" != no &&
11217 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11218 # have to relink, otherwise we might link with an installed library
11219 # when we should be linking with a yet-to-be-installed one
11220 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11221 test "$hardcode_minus_L" != no; then
11222 # Linking always hardcodes the temporary library directory.
11223 hardcode_action=relink
11224 else
11225 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11226 hardcode_action=immediate
11227 fi
11228else
11229 # We cannot hardcode anything, or else we can only hardcode existing
11230 # directories.
11231 hardcode_action=unsupported
11232fi
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11234$as_echo "$hardcode_action" >&6; }
11235
11236if test "$hardcode_action" = relink ||
11237 test "$inherit_rpath" = yes; then
11238 # Fast installation is not supported
11239 enable_fast_install=no
11240elif test "$shlibpath_overrides_runpath" = yes ||
11241 test "$enable_shared" = no; then
11242 # Fast installation is not necessary
11243 enable_fast_install=needless
11244fi
11245
11246
11247
11248
11249
11250
11251 if test "x$enable_dlopen" != xyes; then
11252 enable_dlopen=unknown
11253 enable_dlopen_self=unknown
11254 enable_dlopen_self_static=unknown
11255else
11256 lt_cv_dlopen=no
11257 lt_cv_dlopen_libs=
11258
11259 case $host_os in
11260 beos*)
11261 lt_cv_dlopen="load_add_on"
11262 lt_cv_dlopen_libs=
11263 lt_cv_dlopen_self=yes
11264 ;;
11265
11266 mingw* | pw32* | cegcc*)
11267 lt_cv_dlopen="LoadLibrary"
11268 lt_cv_dlopen_libs=
11269 ;;
11270
11271 cygwin*)
11272 lt_cv_dlopen="dlopen"
11273 lt_cv_dlopen_libs=
11274 ;;
11275
11276 darwin*)
11277 # if libdl is installed we need to link against it
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11279$as_echo_n "checking for dlopen in -ldl... " >&6; }
11280if ${ac_cv_lib_dl_dlopen+:} false; then :
11281 $as_echo_n "(cached) " >&6
11282else
11283 ac_check_lib_save_LIBS=$LIBS
11284LIBS="-ldl $LIBS"
11285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286/* end confdefs.h. */
11287
11288/* Override any GCC internal prototype to avoid an error.
11289 Use char because int might match the return type of a GCC
11290 builtin and then its argument prototype would still apply. */
11291#ifdef __cplusplus
11292extern "C"
11293#endif
11294char dlopen ();
11295int
11296main ()
11297{
11298return dlopen ();
11299 ;
11300 return 0;
11301}
11302_ACEOF
11303if ac_fn_c_try_link "$LINENO"; then :
11304 ac_cv_lib_dl_dlopen=yes
11305else
11306 ac_cv_lib_dl_dlopen=no
11307fi
11308rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310LIBS=$ac_check_lib_save_LIBS
11311fi
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11313$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11314if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11316else
11317
11318 lt_cv_dlopen="dyld"
11319 lt_cv_dlopen_libs=
11320 lt_cv_dlopen_self=yes
11321
11322fi
11323
11324 ;;
11325
11326 *)
11327 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11328if test "x$ac_cv_func_shl_load" = xyes; then :
11329 lt_cv_dlopen="shl_load"
11330else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11332$as_echo_n "checking for shl_load in -ldld... " >&6; }
11333if ${ac_cv_lib_dld_shl_load+:} false; then :
11334 $as_echo_n "(cached) " >&6
11335else
11336 ac_check_lib_save_LIBS=$LIBS
11337LIBS="-ldld $LIBS"
11338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339/* end confdefs.h. */
11340
11341/* Override any GCC internal prototype to avoid an error.
11342 Use char because int might match the return type of a GCC
11343 builtin and then its argument prototype would still apply. */
11344#ifdef __cplusplus
11345extern "C"
11346#endif
11347char shl_load ();
11348int
11349main ()
11350{
11351return shl_load ();
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356if ac_fn_c_try_link "$LINENO"; then :
11357 ac_cv_lib_dld_shl_load=yes
11358else
11359 ac_cv_lib_dld_shl_load=no
11360fi
11361rm -f core conftest.err conftest.$ac_objext \
11362 conftest$ac_exeext conftest.$ac_ext
11363LIBS=$ac_check_lib_save_LIBS
11364fi
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11366$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11367if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11368 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11369else
11370 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11371if test "x$ac_cv_func_dlopen" = xyes; then :
11372 lt_cv_dlopen="dlopen"
11373else
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11375$as_echo_n "checking for dlopen in -ldl... " >&6; }
11376if ${ac_cv_lib_dl_dlopen+:} false; then :
11377 $as_echo_n "(cached) " >&6
11378else
11379 ac_check_lib_save_LIBS=$LIBS
11380LIBS="-ldl $LIBS"
11381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11382/* end confdefs.h. */
11383
11384/* Override any GCC internal prototype to avoid an error.
11385 Use char because int might match the return type of a GCC
11386 builtin and then its argument prototype would still apply. */
11387#ifdef __cplusplus
11388extern "C"
11389#endif
11390char dlopen ();
11391int
11392main ()
11393{
11394return dlopen ();
11395 ;
11396 return 0;
11397}
11398_ACEOF
11399if ac_fn_c_try_link "$LINENO"; then :
11400 ac_cv_lib_dl_dlopen=yes
11401else
11402 ac_cv_lib_dl_dlopen=no
11403fi
11404rm -f core conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext conftest.$ac_ext
11406LIBS=$ac_check_lib_save_LIBS
11407fi
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11409$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11410if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11412else
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11414$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11415if ${ac_cv_lib_svld_dlopen+:} false; then :
11416 $as_echo_n "(cached) " >&6
11417else
11418 ac_check_lib_save_LIBS=$LIBS
11419LIBS="-lsvld $LIBS"
11420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421/* end confdefs.h. */
11422
11423/* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426#ifdef __cplusplus
11427extern "C"
11428#endif
11429char dlopen ();
11430int
11431main ()
11432{
11433return dlopen ();
11434 ;
11435 return 0;
11436}
11437_ACEOF
11438if ac_fn_c_try_link "$LINENO"; then :
11439 ac_cv_lib_svld_dlopen=yes
11440else
11441 ac_cv_lib_svld_dlopen=no
11442fi
11443rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11445LIBS=$ac_check_lib_save_LIBS
11446fi
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11448$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11449if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11451else
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11453$as_echo_n "checking for dld_link in -ldld... " >&6; }
11454if ${ac_cv_lib_dld_dld_link+:} false; then :
11455 $as_echo_n "(cached) " >&6
11456else
11457 ac_check_lib_save_LIBS=$LIBS
11458LIBS="-ldld $LIBS"
11459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460/* end confdefs.h. */
11461
11462/* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11465#ifdef __cplusplus
11466extern "C"
11467#endif
11468char dld_link ();
11469int
11470main ()
11471{
11472return dld_link ();
11473 ;
11474 return 0;
11475}
11476_ACEOF
11477if ac_fn_c_try_link "$LINENO"; then :
11478 ac_cv_lib_dld_dld_link=yes
11479else
11480 ac_cv_lib_dld_dld_link=no
11481fi
11482rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484LIBS=$ac_check_lib_save_LIBS
11485fi
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11487$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11488if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11489 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11490fi
11491
11492
11493fi
11494
11495
11496fi
11497
11498
11499fi
11500
11501
11502fi
11503
11504
11505fi
11506
11507 ;;
11508 esac
11509
11510 if test "x$lt_cv_dlopen" != xno; then
11511 enable_dlopen=yes
11512 else
11513 enable_dlopen=no
11514 fi
11515
11516 case $lt_cv_dlopen in
11517 dlopen)
11518 save_CPPFLAGS="$CPPFLAGS"
11519 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11520
11521 save_LDFLAGS="$LDFLAGS"
11522 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11523
11524 save_LIBS="$LIBS"
11525 LIBS="$lt_cv_dlopen_libs $LIBS"
11526
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11528$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11529if ${lt_cv_dlopen_self+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531else
11532 if test "$cross_compiling" = yes; then :
11533 lt_cv_dlopen_self=cross
11534else
11535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11536 lt_status=$lt_dlunknown
11537 cat > conftest.$ac_ext <<_LT_EOF
11538#line 11538 "configure"
11539#include "confdefs.h"
11540
11541#if HAVE_DLFCN_H
11542#include <dlfcn.h>
11543#endif
11544
11545#include <stdio.h>
11546
11547#ifdef RTLD_GLOBAL
11548# define LT_DLGLOBAL RTLD_GLOBAL
11549#else
11550# ifdef DL_GLOBAL
11551# define LT_DLGLOBAL DL_GLOBAL
11552# else
11553# define LT_DLGLOBAL 0
11554# endif
11555#endif
11556
11557/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11558 find out it does not work in some platform. */
11559#ifndef LT_DLLAZY_OR_NOW
11560# ifdef RTLD_LAZY
11561# define LT_DLLAZY_OR_NOW RTLD_LAZY
11562# else
11563# ifdef DL_LAZY
11564# define LT_DLLAZY_OR_NOW DL_LAZY
11565# else
11566# ifdef RTLD_NOW
11567# define LT_DLLAZY_OR_NOW RTLD_NOW
11568# else
11569# ifdef DL_NOW
11570# define LT_DLLAZY_OR_NOW DL_NOW
11571# else
11572# define LT_DLLAZY_OR_NOW 0
11573# endif
11574# endif
11575# endif
11576# endif
11577#endif
11578
11579/* When -fvisbility=hidden is used, assume the code has been annotated
11580 correspondingly for the symbols needed. */
11581#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11582void fnord () __attribute__((visibility("default")));
11583#endif
11584
11585void fnord () { int i=42; }
11586int main ()
11587{
11588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11589 int status = $lt_dlunknown;
11590
11591 if (self)
11592 {
11593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11594 else
11595 {
11596 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11597 else puts (dlerror ());
11598 }
11599 /* dlclose (self); */
11600 }
11601 else
11602 puts (dlerror ());
11603
11604 return status;
11605}
11606_LT_EOF
11607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11608 (eval $ac_link) 2>&5
11609 ac_status=$?
11610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11611 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11612 (./conftest; exit; ) >&5 2>/dev/null
11613 lt_status=$?
11614 case x$lt_status in
11615 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11616 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11617 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11618 esac
11619 else :
11620 # compilation failed
11621 lt_cv_dlopen_self=no
11622 fi
11623fi
11624rm -fr conftest*
11625
11626
11627fi
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11629$as_echo "$lt_cv_dlopen_self" >&6; }
11630
11631 if test "x$lt_cv_dlopen_self" = xyes; then
11632 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11634$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11635if ${lt_cv_dlopen_self_static+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637else
11638 if test "$cross_compiling" = yes; then :
11639 lt_cv_dlopen_self_static=cross
11640else
11641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11642 lt_status=$lt_dlunknown
11643 cat > conftest.$ac_ext <<_LT_EOF
11644#line 11644 "configure"
11645#include "confdefs.h"
11646
11647#if HAVE_DLFCN_H
11648#include <dlfcn.h>
11649#endif
11650
11651#include <stdio.h>
11652
11653#ifdef RTLD_GLOBAL
11654# define LT_DLGLOBAL RTLD_GLOBAL
11655#else
11656# ifdef DL_GLOBAL
11657# define LT_DLGLOBAL DL_GLOBAL
11658# else
11659# define LT_DLGLOBAL 0
11660# endif
11661#endif
11662
11663/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11664 find out it does not work in some platform. */
11665#ifndef LT_DLLAZY_OR_NOW
11666# ifdef RTLD_LAZY
11667# define LT_DLLAZY_OR_NOW RTLD_LAZY
11668# else
11669# ifdef DL_LAZY
11670# define LT_DLLAZY_OR_NOW DL_LAZY
11671# else
11672# ifdef RTLD_NOW
11673# define LT_DLLAZY_OR_NOW RTLD_NOW
11674# else
11675# ifdef DL_NOW
11676# define LT_DLLAZY_OR_NOW DL_NOW
11677# else
11678# define LT_DLLAZY_OR_NOW 0
11679# endif
11680# endif
11681# endif
11682# endif
11683#endif
11684
11685/* When -fvisbility=hidden is used, assume the code has been annotated
11686 correspondingly for the symbols needed. */
11687#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11688void fnord () __attribute__((visibility("default")));
11689#endif
11690
11691void fnord () { int i=42; }
11692int main ()
11693{
11694 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11695 int status = $lt_dlunknown;
11696
11697 if (self)
11698 {
11699 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11700 else
11701 {
11702 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11703 else puts (dlerror ());
11704 }
11705 /* dlclose (self); */
11706 }
11707 else
11708 puts (dlerror ());
11709
11710 return status;
11711}
11712_LT_EOF
11713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11714 (eval $ac_link) 2>&5
11715 ac_status=$?
11716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11718 (./conftest; exit; ) >&5 2>/dev/null
11719 lt_status=$?
11720 case x$lt_status in
11721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11724 esac
11725 else :
11726 # compilation failed
11727 lt_cv_dlopen_self_static=no
11728 fi
11729fi
11730rm -fr conftest*
11731
11732
11733fi
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11735$as_echo "$lt_cv_dlopen_self_static" >&6; }
11736 fi
11737
11738 CPPFLAGS="$save_CPPFLAGS"
11739 LDFLAGS="$save_LDFLAGS"
11740 LIBS="$save_LIBS"
11741 ;;
11742 esac
11743
11744 case $lt_cv_dlopen_self in
11745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11746 *) enable_dlopen_self=unknown ;;
11747 esac
11748
11749 case $lt_cv_dlopen_self_static in
11750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11751 *) enable_dlopen_self_static=unknown ;;
11752 esac
11753fi
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771striplib=
11772old_striplib=
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11774$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11775if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11776 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11777 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11779$as_echo "yes" >&6; }
11780else
11781# FIXME - insert some real tests, host_os isn't really good enough
11782 case $host_os in
11783 darwin*)
11784 if test -n "$STRIP" ; then
11785 striplib="$STRIP -x"
11786 old_striplib="$STRIP -S"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788$as_echo "yes" >&6; }
11789 else
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791$as_echo "no" >&6; }
11792 fi
11793 ;;
11794 *)
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
11797 ;;
11798 esac
11799fi
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812 # Report which library types will actually be built
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11814$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11816$as_echo "$can_build_shared" >&6; }
11817
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11819$as_echo_n "checking whether to build shared libraries... " >&6; }
11820 test "$can_build_shared" = "no" && enable_shared=no
11821
11822 # On AIX, shared libraries and static libraries use the same namespace, and
11823 # are all built from PIC.
11824 case $host_os in
11825 aix3*)
11826 test "$enable_shared" = yes && enable_static=no
11827 if test -n "$RANLIB"; then
11828 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11829 postinstall_cmds='$RANLIB $lib'
11830 fi
11831 ;;
11832
11833 aix[4-9]*)
11834 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11835 test "$enable_shared" = yes && enable_static=no
11836 fi
11837 ;;
11838 esac
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11840$as_echo "$enable_shared" >&6; }
11841
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11843$as_echo_n "checking whether to build static libraries... " >&6; }
11844 # Make sure either enable_shared or enable_static is yes.
11845 test "$enable_shared" = yes || enable_static=yes
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11847$as_echo "$enable_static" >&6; }
11848
11849
11850
11851
11852fi
11853ac_ext=c
11854ac_cpp='$CPP $CPPFLAGS'
11855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11857ac_compiler_gnu=$ac_cv_c_compiler_gnu
11858
11859CC="$lt_save_CC"
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873 ac_config_commands="$ac_config_commands libtool"
11874
11875
11876
11877
11878# Only expand once:
11879
11880
11881
11882# The tests for host and target for $enable_largefile require
11883# canonical names.
11884
11885
11886
11887# As the $enable_largefile decision depends on --enable-plugins we must set it
11888# even in directories otherwise not depending on the $plugins option.
11889
11890
11891 maybe_plugins=no
11892 for ac_header in dlfcn.h
11893do :
11894 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11895"
11896if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11897 cat >>confdefs.h <<_ACEOF
11898#define HAVE_DLFCN_H 1
11899_ACEOF
11900 maybe_plugins=yes
11901fi
11902
11903done
11904
11905 for ac_header in windows.h
11906do :
11907 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11908"
11909if test "x$ac_cv_header_windows_h" = xyes; then :
11910 cat >>confdefs.h <<_ACEOF
11911#define HAVE_WINDOWS_H 1
11912_ACEOF
11913 maybe_plugins=yes
11914fi
11915
11916done
11917
11918
11919 # Check whether --enable-plugins was given.
11920if test "${enable_plugins+set}" = set; then :
11921 enableval=$enable_plugins; case "${enableval}" in
11922 no) plugins=no ;;
11923 *) plugins=yes
11924 if test "$maybe_plugins" != "yes" ; then
11925 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11926 fi ;;
11927 esac
11928else
11929 plugins=$maybe_plugins
11930
11931fi
11932
11933 if test "$plugins" = "yes"; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11935$as_echo_n "checking for library containing dlsym... " >&6; }
11936if ${ac_cv_search_dlsym+:} false; then :
11937 $as_echo_n "(cached) " >&6
11938else
11939 ac_func_search_save_LIBS=$LIBS
11940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941/* end confdefs.h. */
11942
11943/* Override any GCC internal prototype to avoid an error.
11944 Use char because int might match the return type of a GCC
11945 builtin and then its argument prototype would still apply. */
11946#ifdef __cplusplus
11947extern "C"
11948#endif
11949char dlsym ();
11950int
11951main ()
11952{
11953return dlsym ();
11954 ;
11955 return 0;
11956}
11957_ACEOF
11958for ac_lib in '' dl; do
11959 if test -z "$ac_lib"; then
11960 ac_res="none required"
11961 else
11962 ac_res=-l$ac_lib
11963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11964 fi
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 ac_cv_search_dlsym=$ac_res
11967fi
11968rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext
11970 if ${ac_cv_search_dlsym+:} false; then :
11971 break
11972fi
11973done
11974if ${ac_cv_search_dlsym+:} false; then :
11975
11976else
11977 ac_cv_search_dlsym=no
11978fi
11979rm conftest.$ac_ext
11980LIBS=$ac_func_search_save_LIBS
11981fi
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11983$as_echo "$ac_cv_search_dlsym" >&6; }
11984ac_res=$ac_cv_search_dlsym
11985if test "$ac_res" != no; then :
11986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11987
11988fi
11989
11990 fi
11991
11992
11993case "${host}" in
11994 sparc-*-solaris*|i[3-7]86-*-solaris*)
11995 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11996 # are mutually exclusive; and without procfs support, the bfd/ elf module
11997 # cannot provide certain routines such as elfcore_write_prpsinfo
11998 # or elfcore_write_prstatus. So unless the user explicitly requested
11999 # large-file support through the --enable-largefile switch, disable
12000 # large-file support in favor of procfs support.
12001 test "${target}" = "${host}" -a "x$plugins" = xno \
12002 && : ${enable_largefile="no"}
12003 ;;
12004esac
12005
12006# Check whether --enable-largefile was given.
12007if test "${enable_largefile+set}" = set; then :
12008 enableval=$enable_largefile;
12009fi
12010
12011if test "$enable_largefile" != no; then
12012
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12014$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12015if ${ac_cv_sys_largefile_CC+:} false; then :
12016 $as_echo_n "(cached) " >&6
12017else
12018 ac_cv_sys_largefile_CC=no
12019 if test "$GCC" != yes; then
12020 ac_save_CC=$CC
12021 while :; do
12022 # IRIX 6.2 and later do not support large files by default,
12023 # so use the C compiler's -n32 option if that helps.
12024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12025/* end confdefs.h. */
12026#include <sys/types.h>
12027 /* Check that off_t can represent 2**63 - 1 correctly.
12028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12029 since some C++ compilers masquerading as C compilers
12030 incorrectly reject 9223372036854775807. */
12031#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12033 && LARGE_OFF_T % 2147483647 == 1)
12034 ? 1 : -1];
12035int
12036main ()
12037{
12038
12039 ;
12040 return 0;
12041}
12042_ACEOF
12043 if ac_fn_c_try_compile "$LINENO"; then :
12044 break
12045fi
12046rm -f core conftest.err conftest.$ac_objext
12047 CC="$CC -n32"
12048 if ac_fn_c_try_compile "$LINENO"; then :
12049 ac_cv_sys_largefile_CC=' -n32'; break
12050fi
12051rm -f core conftest.err conftest.$ac_objext
12052 break
12053 done
12054 CC=$ac_save_CC
12055 rm -f conftest.$ac_ext
12056 fi
12057fi
12058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12059$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12060 if test "$ac_cv_sys_largefile_CC" != no; then
12061 CC=$CC$ac_cv_sys_largefile_CC
12062 fi
12063
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12065$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12066if ${ac_cv_sys_file_offset_bits+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068else
12069 while :; do
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071/* end confdefs.h. */
12072#include <sys/types.h>
12073 /* Check that off_t can represent 2**63 - 1 correctly.
12074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12075 since some C++ compilers masquerading as C compilers
12076 incorrectly reject 9223372036854775807. */
12077#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12079 && LARGE_OFF_T % 2147483647 == 1)
12080 ? 1 : -1];
12081int
12082main ()
12083{
12084
12085 ;
12086 return 0;
12087}
12088_ACEOF
12089if ac_fn_c_try_compile "$LINENO"; then :
12090 ac_cv_sys_file_offset_bits=no; break
12091fi
12092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094/* end confdefs.h. */
12095#define _FILE_OFFSET_BITS 64
12096#include <sys/types.h>
12097 /* Check that off_t can represent 2**63 - 1 correctly.
12098 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12099 since some C++ compilers masquerading as C compilers
12100 incorrectly reject 9223372036854775807. */
12101#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12103 && LARGE_OFF_T % 2147483647 == 1)
12104 ? 1 : -1];
12105int
12106main ()
12107{
12108
12109 ;
12110 return 0;
12111}
12112_ACEOF
12113if ac_fn_c_try_compile "$LINENO"; then :
12114 ac_cv_sys_file_offset_bits=64; break
12115fi
12116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 ac_cv_sys_file_offset_bits=unknown
12118 break
12119done
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12122$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12123case $ac_cv_sys_file_offset_bits in #(
12124 no | unknown) ;;
12125 *)
12126cat >>confdefs.h <<_ACEOF
12127#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12128_ACEOF
12129;;
12130esac
12131rm -rf conftest*
12132 if test $ac_cv_sys_file_offset_bits = unknown; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12134$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12135if ${ac_cv_sys_large_files+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137else
12138 while :; do
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140/* end confdefs.h. */
12141#include <sys/types.h>
12142 /* Check that off_t can represent 2**63 - 1 correctly.
12143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12144 since some C++ compilers masquerading as C compilers
12145 incorrectly reject 9223372036854775807. */
12146#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12148 && LARGE_OFF_T % 2147483647 == 1)
12149 ? 1 : -1];
12150int
12151main ()
12152{
12153
12154 ;
12155 return 0;
12156}
12157_ACEOF
12158if ac_fn_c_try_compile "$LINENO"; then :
12159 ac_cv_sys_large_files=no; break
12160fi
12161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163/* end confdefs.h. */
12164#define _LARGE_FILES 1
12165#include <sys/types.h>
12166 /* Check that off_t can represent 2**63 - 1 correctly.
12167 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12168 since some C++ compilers masquerading as C compilers
12169 incorrectly reject 9223372036854775807. */
12170#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12171 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12172 && LARGE_OFF_T % 2147483647 == 1)
12173 ? 1 : -1];
12174int
12175main ()
12176{
12177
12178 ;
12179 return 0;
12180}
12181_ACEOF
12182if ac_fn_c_try_compile "$LINENO"; then :
12183 ac_cv_sys_large_files=1; break
12184fi
12185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186 ac_cv_sys_large_files=unknown
12187 break
12188done
12189fi
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12191$as_echo "$ac_cv_sys_large_files" >&6; }
12192case $ac_cv_sys_large_files in #(
12193 no | unknown) ;;
12194 *)
12195cat >>confdefs.h <<_ACEOF
12196#define _LARGE_FILES $ac_cv_sys_large_files
12197_ACEOF
12198;;
12199esac
12200rm -rf conftest*
12201 fi
12202
12203
12204fi
12205
12206
12207
12208# Check whether --enable-targets was given.
12209if test "${enable_targets+set}" = set; then :
12210 enableval=$enable_targets; case "${enableval}" in
12211 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
12212 ;;
12213 no) enable_targets= ;;
12214 *) enable_targets=$enableval ;;
12215esac
12216fi
12217
12218# Check whether --enable-deterministic-archives was given.
12219if test "${enable_deterministic_archives+set}" = set; then :
12220 enableval=$enable_deterministic_archives;
12221if test "${enableval}" = no; then
12222 default_ar_deterministic=0
12223else
12224 default_ar_deterministic=1
12225fi
12226else
12227 default_ar_deterministic=0
12228fi
12229
12230
12231
12232cat >>confdefs.h <<_ACEOF
12233#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
12234_ACEOF
12235
12236
12237# Check whether --enable-default-strings-all was given.
12238if test "${enable_default_strings_all+set}" = set; then :
12239 enableval=$enable_default_strings_all;
12240if test "${enableval}" = no; then
12241 default_strings_all=0
12242else
12243 default_strings_all=1
12244fi
12245else
12246 default_strings_all=1
12247fi
12248
12249
12250
12251cat >>confdefs.h <<_ACEOF
12252#define DEFAULT_STRINGS_ALL $default_strings_all
12253_ACEOF
12254
12255
12256
12257# Set the 'development' global.
12258. $srcdir/../bfd/development.sh
12259
12260# Set acp_cpp_for_build variable
12261ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12262
12263# Default set of GCC warnings to enable.
12264GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12265GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12266
12267# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269/* end confdefs.h. */
12270__GNUC__
12271_ACEOF
12272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12273 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12274
12275else
12276 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12277fi
12278rm -f conftest*
12279
12280
12281# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283/* end confdefs.h. */
12284__GNUC__
12285_ACEOF
12286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12287 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12288
12289else
12290 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12291fi
12292rm -f conftest*
12293
12294
12295# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12296WARN_WRITE_STRINGS=""
12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298/* end confdefs.h. */
12299__GNUC__
12300_ACEOF
12301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12302 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12303
12304else
12305 WARN_WRITE_STRINGS="-Wwrite-strings"
12306fi
12307rm -f conftest*
12308
12309
12310# Verify CC_FOR_BUILD to be compatible with warning flags
12311
12312# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314/* end confdefs.h. */
12315__GNUC__
12316_ACEOF
12317if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12318 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12319
12320else
12321 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12322fi
12323rm -f conftest*
12324
12325
12326# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328/* end confdefs.h. */
12329__GNUC__
12330_ACEOF
12331if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12332 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12333
12334else
12335 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12336fi
12337rm -f conftest*
12338
12339
12340# Check whether --enable-werror was given.
12341if test "${enable_werror+set}" = set; then :
12342 enableval=$enable_werror; case "${enableval}" in
12343 yes | y) ERROR_ON_WARNING="yes" ;;
12344 no | n) ERROR_ON_WARNING="no" ;;
12345 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12346 esac
12347fi
12348
12349
12350# Disable -Wformat by default when using gcc on mingw
12351case "${host}" in
12352 *-*-mingw32*)
12353 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12354 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12355 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12356 fi
12357 ;;
12358 *) ;;
12359esac
12360
12361# Enable -Werror by default when using gcc. Turn it off for releases.
12362if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12363 ERROR_ON_WARNING=yes
12364fi
12365
12366NO_WERROR=
12367if test "${ERROR_ON_WARNING}" = yes ; then
12368 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12369 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12370 NO_WERROR="-Wno-error"
12371fi
12372
12373if test "${GCC}" = yes ; then
12374 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12375 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12376fi
12377
12378# Check whether --enable-build-warnings was given.
12379if test "${enable_build_warnings+set}" = set; then :
12380 enableval=$enable_build_warnings; case "${enableval}" in
12381 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12382 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12383 no) if test "${GCC}" = yes ; then
12384 WARN_CFLAGS="-w"
12385 WARN_CFLAGS_FOR_BUILD="-w"
12386 fi;;
12387 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12388 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12389 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12390 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12391 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12392 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12393 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12394 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12395esac
12396fi
12397
12398
12399if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12400 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12401fi
12402
12403
12404
12405
12406
12407
12408
12409ac_config_headers="$ac_config_headers config.h:config.in"
12410
12411
12412
12413
12414if test -z "$target" ; then
12415 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12416fi
12417if test -z "$host" ; then
12418 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12419fi
12420
12421for ac_prog in 'bison -y' byacc
12422do
12423 # Extract the first word of "$ac_prog", so it can be a program name with args.
12424set dummy $ac_prog; ac_word=$2
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426$as_echo_n "checking for $ac_word... " >&6; }
12427if ${ac_cv_prog_YACC+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429else
12430 if test -n "$YACC"; then
12431 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12432else
12433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434for as_dir in $PATH
12435do
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
12439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12440 ac_cv_prog_YACC="$ac_prog"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12443 fi
12444done
12445 done
12446IFS=$as_save_IFS
12447
12448fi
12449fi
12450YACC=$ac_cv_prog_YACC
12451if test -n "$YACC"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12453$as_echo "$YACC" >&6; }
12454else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456$as_echo "no" >&6; }
12457fi
12458
12459
12460 test -n "$YACC" && break
12461done
12462test -n "$YACC" || YACC="yacc"
12463
12464for ac_prog in flex lex
12465do
12466 # Extract the first word of "$ac_prog", so it can be a program name with args.
12467set dummy $ac_prog; ac_word=$2
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469$as_echo_n "checking for $ac_word... " >&6; }
12470if ${ac_cv_prog_LEX+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472else
12473 if test -n "$LEX"; then
12474 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12475else
12476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477for as_dir in $PATH
12478do
12479 IFS=$as_save_IFS
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_prog_LEX="$ac_prog"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485 break 2
12486 fi
12487done
12488 done
12489IFS=$as_save_IFS
12490
12491fi
12492fi
12493LEX=$ac_cv_prog_LEX
12494if test -n "$LEX"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12496$as_echo "$LEX" >&6; }
12497else
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499$as_echo "no" >&6; }
12500fi
12501
12502
12503 test -n "$LEX" && break
12504done
12505test -n "$LEX" || LEX=":"
12506
12507case "$LEX" in
12508 :|*"missing "*) ;;
12509 *) cat >conftest.l <<_ACEOF
12510%%
12511a { ECHO; }
12512b { REJECT; }
12513c { yymore (); }
12514d { yyless (1); }
12515e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12516 yyless ((input () != 0)); }
12517f { unput (yytext[0]); }
12518. { BEGIN INITIAL; }
12519%%
12520#ifdef YYTEXT_POINTER
12521extern char *yytext;
12522#endif
12523int
12524main (void)
12525{
12526 return ! yylex () + ! yywrap ();
12527}
12528_ACEOF
12529{ { ac_try="$LEX conftest.l"
12530case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533esac
12534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12535$as_echo "$ac_try_echo"; } >&5
12536 (eval "$LEX conftest.l") 2>&5
12537 ac_status=$?
12538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12539 test $ac_status = 0; }
12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12541$as_echo_n "checking lex output file root... " >&6; }
12542if ${ac_cv_prog_lex_root+:} false; then :
12543 $as_echo_n "(cached) " >&6
12544else
12545
12546if test -f lex.yy.c; then
12547 ac_cv_prog_lex_root=lex.yy
12548elif test -f lexyy.c; then
12549 ac_cv_prog_lex_root=lexyy
12550else
12551 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12552fi
12553fi
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12555$as_echo "$ac_cv_prog_lex_root" >&6; }
12556LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12557
12558if test -z "${LEXLIB+set}"; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12560$as_echo_n "checking lex library... " >&6; }
12561if ${ac_cv_lib_lex+:} false; then :
12562 $as_echo_n "(cached) " >&6
12563else
12564
12565 ac_save_LIBS=$LIBS
12566 ac_cv_lib_lex='none needed'
12567 for ac_lib in '' -lfl -ll; do
12568 LIBS="$ac_lib $ac_save_LIBS"
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570/* end confdefs.h. */
12571`cat $LEX_OUTPUT_ROOT.c`
12572_ACEOF
12573if ac_fn_c_try_link "$LINENO"; then :
12574 ac_cv_lib_lex=$ac_lib
12575fi
12576rm -f core conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12578 test "$ac_cv_lib_lex" != 'none needed' && break
12579 done
12580 LIBS=$ac_save_LIBS
12581
12582fi
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12584$as_echo "$ac_cv_lib_lex" >&6; }
12585 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12586fi
12587
12588
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12590$as_echo_n "checking whether yytext is a pointer... " >&6; }
12591if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12592 $as_echo_n "(cached) " >&6
12593else
12594 # POSIX says lex can declare yytext either as a pointer or an array; the
12595# default is implementation-dependent. Figure out which it is, since
12596# not all implementations provide the %pointer and %array declarations.
12597ac_cv_prog_lex_yytext_pointer=no
12598ac_save_LIBS=$LIBS
12599LIBS="$LEXLIB $ac_save_LIBS"
12600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601/* end confdefs.h. */
12602
12603 #define YYTEXT_POINTER 1
12604`cat $LEX_OUTPUT_ROOT.c`
12605_ACEOF
12606if ac_fn_c_try_link "$LINENO"; then :
12607 ac_cv_prog_lex_yytext_pointer=yes
12608fi
12609rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12611LIBS=$ac_save_LIBS
12612
12613fi
12614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12615$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12616if test $ac_cv_prog_lex_yytext_pointer = yes; then
12617
12618$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12619
12620fi
12621rm -f conftest.l $LEX_OUTPUT_ROOT.c
12622 ;;
12623esac
12624if test "$LEX" = :; then
12625 LEX=${am_missing_run}flex
12626fi
12627
12628ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
12629# If we haven't got the data from the intl directory,
12630# assume NLS is disabled.
12631USE_NLS=no
12632LIBINTL=
12633LIBINTL_DEP=
12634INCINTL=
12635XGETTEXT=
12636GMSGFMT=
12637POSUB=
12638
12639if test -f ../intl/config.intl; then
12640 . ../intl/config.intl
12641fi
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12643$as_echo_n "checking whether NLS is requested... " >&6; }
12644if test x"$USE_NLS" != xyes; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646$as_echo "no" >&6; }
12647else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649$as_echo "yes" >&6; }
12650
12651$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12652
12653
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12655$as_echo_n "checking for catalogs to be installed... " >&6; }
12656 # Look for .po and .gmo files in the source directory.
12657 CATALOGS=
12658 XLINGUAS=
12659 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12660 # If there aren't any .gmo files the shell will give us the
12661 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12662 # weeded out.
12663 case "$cat" in *\**)
12664 continue;;
12665 esac
12666 # The quadruple backslash is collapsed to a double backslash
12667 # by the backticks, then collapsed again by the double quotes,
12668 # leaving us with one backslash in the sed expression (right
12669 # before the dot that mustn't act as a wildcard).
12670 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12671 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12672 # The user is allowed to set LINGUAS to a list of languages to
12673 # install catalogs for. If it's empty that means "all of them."
12674 if test "x$LINGUAS" = x; then
12675 CATALOGS="$CATALOGS $cat"
12676 XLINGUAS="$XLINGUAS $lang"
12677 else
12678 case "$LINGUAS" in *$lang*)
12679 CATALOGS="$CATALOGS $cat"
12680 XLINGUAS="$XLINGUAS $lang"
12681 ;;
12682 esac
12683 fi
12684 done
12685 LINGUAS="$XLINGUAS"
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12687$as_echo "$LINGUAS" >&6; }
12688
12689
12690 DATADIRNAME=share
12691
12692 INSTOBJEXT=.mo
12693
12694 GENCAT=gencat
12695
12696 CATOBJEXT=.gmo
12697
12698fi
12699
12700 MKINSTALLDIRS=
12701 if test -n "$ac_aux_dir"; then
12702 case "$ac_aux_dir" in
12703 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12704 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12705 esac
12706 fi
12707 if test -z "$MKINSTALLDIRS"; then
12708 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12709 fi
12710
12711
12712
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12714$as_echo_n "checking whether NLS is requested... " >&6; }
12715 # Check whether --enable-nls was given.
12716if test "${enable_nls+set}" = set; then :
12717 enableval=$enable_nls; USE_NLS=$enableval
12718else
12719 USE_NLS=yes
12720fi
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12723$as_echo "$USE_NLS" >&6; }
12724
12725
12726
12727
12728
12729
12730# Prepare PATH_SEPARATOR.
12731# The user is always right.
12732if test "${PATH_SEPARATOR+set}" != set; then
12733 echo "#! /bin/sh" >conf$$.sh
12734 echo "exit 0" >>conf$$.sh
12735 chmod +x conf$$.sh
12736 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12737 PATH_SEPARATOR=';'
12738 else
12739 PATH_SEPARATOR=:
12740 fi
12741 rm -f conf$$.sh
12742fi
12743
12744# Find out how to test for executable files. Don't use a zero-byte file,
12745# as systems may use methods other than mode bits to determine executability.
12746cat >conf$$.file <<_ASEOF
12747#! /bin/sh
12748exit 0
12749_ASEOF
12750chmod +x conf$$.file
12751if test -x conf$$.file >/dev/null 2>&1; then
12752 ac_executable_p="test -x"
12753else
12754 ac_executable_p="test -f"
12755fi
12756rm -f conf$$.file
12757
12758# Extract the first word of "msgfmt", so it can be a program name with args.
12759set dummy msgfmt; ac_word=$2
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761$as_echo_n "checking for $ac_word... " >&6; }
12762if ${ac_cv_path_MSGFMT+:} false; then :
12763 $as_echo_n "(cached) " >&6
12764else
12765 case "$MSGFMT" in
12766 [\\/]* | ?:[\\/]*)
12767 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12768 ;;
12769 *)
12770 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12771 for ac_dir in $PATH; do
12772 IFS="$ac_save_IFS"
12773 test -z "$ac_dir" && ac_dir=.
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12776 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12777 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12778 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12779 break 2
12780 fi
12781 fi
12782 done
12783 done
12784 IFS="$ac_save_IFS"
12785 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12786 ;;
12787esac
12788fi
12789MSGFMT="$ac_cv_path_MSGFMT"
12790if test "$MSGFMT" != ":"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12792$as_echo "$MSGFMT" >&6; }
12793else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795$as_echo "no" >&6; }
12796fi
12797
12798 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12799set dummy gmsgfmt; ac_word=$2
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801$as_echo_n "checking for $ac_word... " >&6; }
12802if ${ac_cv_path_GMSGFMT+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804else
12805 case $GMSGFMT in
12806 [\\/]* | ?:[\\/]*)
12807 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12808 ;;
12809 *)
12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811for as_dir in $PATH
12812do
12813 IFS=$as_save_IFS
12814 test -z "$as_dir" && as_dir=.
12815 for ac_exec_ext in '' $ac_executable_extensions; do
12816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12817 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12819 break 2
12820 fi
12821done
12822 done
12823IFS=$as_save_IFS
12824
12825 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12826 ;;
12827esac
12828fi
12829GMSGFMT=$ac_cv_path_GMSGFMT
12830if test -n "$GMSGFMT"; then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12832$as_echo "$GMSGFMT" >&6; }
12833else
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835$as_echo "no" >&6; }
12836fi
12837
12838
12839
12840
12841# Prepare PATH_SEPARATOR.
12842# The user is always right.
12843if test "${PATH_SEPARATOR+set}" != set; then
12844 echo "#! /bin/sh" >conf$$.sh
12845 echo "exit 0" >>conf$$.sh
12846 chmod +x conf$$.sh
12847 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12848 PATH_SEPARATOR=';'
12849 else
12850 PATH_SEPARATOR=:
12851 fi
12852 rm -f conf$$.sh
12853fi
12854
12855# Find out how to test for executable files. Don't use a zero-byte file,
12856# as systems may use methods other than mode bits to determine executability.
12857cat >conf$$.file <<_ASEOF
12858#! /bin/sh
12859exit 0
12860_ASEOF
12861chmod +x conf$$.file
12862if test -x conf$$.file >/dev/null 2>&1; then
12863 ac_executable_p="test -x"
12864else
12865 ac_executable_p="test -f"
12866fi
12867rm -f conf$$.file
12868
12869# Extract the first word of "xgettext", so it can be a program name with args.
12870set dummy xgettext; ac_word=$2
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12872$as_echo_n "checking for $ac_word... " >&6; }
12873if ${ac_cv_path_XGETTEXT+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875else
12876 case "$XGETTEXT" in
12877 [\\/]* | ?:[\\/]*)
12878 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12879 ;;
12880 *)
12881 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12882 for ac_dir in $PATH; do
12883 IFS="$ac_save_IFS"
12884 test -z "$ac_dir" && ac_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12887 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12888 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12889 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12890 break 2
12891 fi
12892 fi
12893 done
12894 done
12895 IFS="$ac_save_IFS"
12896 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12897 ;;
12898esac
12899fi
12900XGETTEXT="$ac_cv_path_XGETTEXT"
12901if test "$XGETTEXT" != ":"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12903$as_echo "$XGETTEXT" >&6; }
12904else
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906$as_echo "no" >&6; }
12907fi
12908
12909 rm -f messages.po
12910
12911
12912# Prepare PATH_SEPARATOR.
12913# The user is always right.
12914if test "${PATH_SEPARATOR+set}" != set; then
12915 echo "#! /bin/sh" >conf$$.sh
12916 echo "exit 0" >>conf$$.sh
12917 chmod +x conf$$.sh
12918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12919 PATH_SEPARATOR=';'
12920 else
12921 PATH_SEPARATOR=:
12922 fi
12923 rm -f conf$$.sh
12924fi
12925
12926# Find out how to test for executable files. Don't use a zero-byte file,
12927# as systems may use methods other than mode bits to determine executability.
12928cat >conf$$.file <<_ASEOF
12929#! /bin/sh
12930exit 0
12931_ASEOF
12932chmod +x conf$$.file
12933if test -x conf$$.file >/dev/null 2>&1; then
12934 ac_executable_p="test -x"
12935else
12936 ac_executable_p="test -f"
12937fi
12938rm -f conf$$.file
12939
12940# Extract the first word of "msgmerge", so it can be a program name with args.
12941set dummy msgmerge; ac_word=$2
12942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943$as_echo_n "checking for $ac_word... " >&6; }
12944if ${ac_cv_path_MSGMERGE+:} false; then :
12945 $as_echo_n "(cached) " >&6
12946else
12947 case "$MSGMERGE" in
12948 [\\/]* | ?:[\\/]*)
12949 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12950 ;;
12951 *)
12952 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12953 for ac_dir in $PATH; do
12954 IFS="$ac_save_IFS"
12955 test -z "$ac_dir" && ac_dir=.
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12958 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12959 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12960 break 2
12961 fi
12962 fi
12963 done
12964 done
12965 IFS="$ac_save_IFS"
12966 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12967 ;;
12968esac
12969fi
12970MSGMERGE="$ac_cv_path_MSGMERGE"
12971if test "$MSGMERGE" != ":"; then
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12973$as_echo "$MSGMERGE" >&6; }
12974else
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976$as_echo "no" >&6; }
12977fi
12978
12979
12980 if test "$GMSGFMT" != ":"; then
12981 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12982 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12983 : ;
12984 else
12985 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12987$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12988 GMSGFMT=":"
12989 fi
12990 fi
12991
12992 if test "$XGETTEXT" != ":"; then
12993 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12994 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12995 : ;
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12998$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12999 XGETTEXT=":"
13000 fi
13001 rm -f messages.po
13002 fi
13003
13004 ac_config_commands="$ac_config_commands default-1"
13005
13006
13007
13008
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13010$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13011 # Check whether --enable-maintainer-mode was given.
13012if test "${enable_maintainer_mode+set}" = set; then :
13013 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13014else
13015 USE_MAINTAINER_MODE=no
13016fi
13017
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13019$as_echo "$USE_MAINTAINER_MODE" >&6; }
13020 if test $USE_MAINTAINER_MODE = yes; then
13021 MAINTAINER_MODE_TRUE=
13022 MAINTAINER_MODE_FALSE='#'
13023else
13024 MAINTAINER_MODE_TRUE='#'
13025 MAINTAINER_MODE_FALSE=
13026fi
13027
13028 MAINT=$MAINTAINER_MODE_TRUE
13029
13030
13031 if false; then
13032 GENINSRC_NEVER_TRUE=
13033 GENINSRC_NEVER_FALSE='#'
13034else
13035 GENINSRC_NEVER_TRUE='#'
13036 GENINSRC_NEVER_FALSE=
13037fi
13038
13039
13040if test -n "$EXEEXT"; then
13041
13042$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
13043
13044fi
13045
13046cat >>confdefs.h <<_ACEOF
13047#define EXECUTABLE_SUFFIX "${EXEEXT}"
13048_ACEOF
13049
13050
13051# host-specific stuff:
13052
13053HDEFINES=
13054
13055. ${srcdir}/../bfd/configure.host
13056
13057
13058AR=${AR-ar}
13059
13060if test -n "$ac_tool_prefix"; then
13061 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13062set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
13065if ${ac_cv_prog_RANLIB+:} false; then :
13066 $as_echo_n "(cached) " >&6
13067else
13068 if test -n "$RANLIB"; then
13069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13070else
13071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13078 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13081 fi
13082done
13083 done
13084IFS=$as_save_IFS
13085
13086fi
13087fi
13088RANLIB=$ac_cv_prog_RANLIB
13089if test -n "$RANLIB"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13091$as_echo "$RANLIB" >&6; }
13092else
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094$as_echo "no" >&6; }
13095fi
13096
13097
13098fi
13099if test -z "$ac_cv_prog_RANLIB"; then
13100 ac_ct_RANLIB=$RANLIB
13101 # Extract the first word of "ranlib", so it can be a program name with args.
13102set dummy ranlib; ac_word=$2
13103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13104$as_echo_n "checking for $ac_word... " >&6; }
13105if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107else
13108 if test -n "$ac_ct_RANLIB"; then
13109 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13110else
13111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13112for as_dir in $PATH
13113do
13114 IFS=$as_save_IFS
13115 test -z "$as_dir" && as_dir=.
13116 for ac_exec_ext in '' $ac_executable_extensions; do
13117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13118 ac_cv_prog_ac_ct_RANLIB="ranlib"
13119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13120 break 2
13121 fi
13122done
13123 done
13124IFS=$as_save_IFS
13125
13126fi
13127fi
13128ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13129if test -n "$ac_ct_RANLIB"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13131$as_echo "$ac_ct_RANLIB" >&6; }
13132else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13134$as_echo "no" >&6; }
13135fi
13136
13137 if test "x$ac_ct_RANLIB" = x; then
13138 RANLIB=":"
13139 else
13140 case $cross_compiling:$ac_tool_warned in
13141yes:)
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13144ac_tool_warned=yes ;;
13145esac
13146 RANLIB=$ac_ct_RANLIB
13147 fi
13148else
13149 RANLIB="$ac_cv_prog_RANLIB"
13150fi
13151
13152
13153
13154# Put a plausible default for CC_FOR_BUILD in Makefile.
13155if test -z "$CC_FOR_BUILD"; then
13156 if test "x$cross_compiling" = "xno"; then
13157 CC_FOR_BUILD='$(CC)'
13158 else
13159 CC_FOR_BUILD=gcc
13160 fi
13161fi
13162
13163# Also set EXEEXT_FOR_BUILD.
13164if test "x$cross_compiling" = "xno"; then
13165 EXEEXT_FOR_BUILD='$(EXEEXT)'
13166else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13168$as_echo_n "checking for build system executable suffix... " >&6; }
13169if ${bfd_cv_build_exeext+:} false; then :
13170 $as_echo_n "(cached) " >&6
13171else
13172 rm -f conftest*
13173 echo 'int main () { return 0; }' > conftest.c
13174 bfd_cv_build_exeext=
13175 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13176 for file in conftest.*; do
13177 case $file in
13178 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13179 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13180 esac
13181 done
13182 rm -f conftest*
13183 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13184fi
13185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13186$as_echo "$bfd_cv_build_exeext" >&6; }
13187 EXEEXT_FOR_BUILD=""
13188 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13189fi
13190
13191
13192DEMANGLER_NAME=c++filt
13193case "${host}" in
13194 *-*-go32* | *-*-msdos*)
13195 DEMANGLER_NAME=cxxfilt
13196esac
13197
13198
13199# The cast to long int works around a bug in the HP C Compiler
13200# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13201# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13202# This bug is HP SR number 8606223364.
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13204$as_echo_n "checking size of long... " >&6; }
13205if ${ac_cv_sizeof_long+:} false; then :
13206 $as_echo_n "(cached) " >&6
13207else
13208 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13209
13210else
13211 if test "$ac_cv_type_long" = yes; then
13212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13214as_fn_error 77 "cannot compute sizeof (long)
13215See \`config.log' for more details" "$LINENO" 5; }
13216 else
13217 ac_cv_sizeof_long=0
13218 fi
13219fi
13220
13221fi
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13223$as_echo "$ac_cv_sizeof_long" >&6; }
13224
13225
13226
13227cat >>confdefs.h <<_ACEOF
13228#define SIZEOF_LONG $ac_cv_sizeof_long
13229_ACEOF
13230
13231
13232ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13233if test "x$ac_cv_type_long_long" = xyes; then :
13234
13235cat >>confdefs.h <<_ACEOF
13236#define HAVE_LONG_LONG 1
13237_ACEOF
13238
13239# The cast to long int works around a bug in the HP C Compiler
13240# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13241# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13242# This bug is HP SR number 8606223364.
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13244$as_echo_n "checking size of long long... " >&6; }
13245if ${ac_cv_sizeof_long_long+:} false; then :
13246 $as_echo_n "(cached) " >&6
13247else
13248 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13249
13250else
13251 if test "$ac_cv_type_long_long" = yes; then
13252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13254as_fn_error 77 "cannot compute sizeof (long long)
13255See \`config.log' for more details" "$LINENO" 5; }
13256 else
13257 ac_cv_sizeof_long_long=0
13258 fi
13259fi
13260
13261fi
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13263$as_echo "$ac_cv_sizeof_long_long" >&6; }
13264
13265
13266
13267cat >>confdefs.h <<_ACEOF
13268#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13269_ACEOF
13270
13271
13272fi
13273
13274
13275for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h
13276do :
13277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13278ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13280 cat >>confdefs.h <<_ACEOF
13281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13282_ACEOF
13283
13284fi
13285
13286done
13287
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13289$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13290if ${ac_cv_header_sys_wait_h+:} false; then :
13291 $as_echo_n "(cached) " >&6
13292else
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294/* end confdefs.h. */
13295#include <sys/types.h>
13296#include <sys/wait.h>
13297#ifndef WEXITSTATUS
13298# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13299#endif
13300#ifndef WIFEXITED
13301# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13302#endif
13303
13304int
13305main ()
13306{
13307 int s;
13308 wait (&s);
13309 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13310 ;
13311 return 0;
13312}
13313_ACEOF
13314if ac_fn_c_try_compile "$LINENO"; then :
13315 ac_cv_header_sys_wait_h=yes
13316else
13317 ac_cv_header_sys_wait_h=no
13318fi
13319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320fi
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13322$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13323if test $ac_cv_header_sys_wait_h = yes; then
13324
13325$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13326
13327fi
13328
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13330$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13331if ${gcc_cv_header_string+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333else
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335/* end confdefs.h. */
13336#include <string.h>
13337#include <strings.h>
13338int
13339main ()
13340{
13341
13342 ;
13343 return 0;
13344}
13345_ACEOF
13346if ac_fn_c_try_compile "$LINENO"; then :
13347 gcc_cv_header_string=yes
13348else
13349 gcc_cv_header_string=no
13350fi
13351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352fi
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13354$as_echo "$gcc_cv_header_string" >&6; }
13355if test $gcc_cv_header_string = yes; then
13356
13357$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13358
13359fi
13360
13361ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13362if test "x$ac_cv_type_size_t" = xyes; then :
13363
13364else
13365
13366cat >>confdefs.h <<_ACEOF
13367#define size_t unsigned int
13368_ACEOF
13369
13370fi
13371
13372# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13373# for constant arguments. Useless!
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13375$as_echo_n "checking for working alloca.h... " >&6; }
13376if ${ac_cv_working_alloca_h+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378else
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380/* end confdefs.h. */
13381#include <alloca.h>
13382int
13383main ()
13384{
13385char *p = (char *) alloca (2 * sizeof (int));
13386 if (p) return 0;
13387 ;
13388 return 0;
13389}
13390_ACEOF
13391if ac_fn_c_try_link "$LINENO"; then :
13392 ac_cv_working_alloca_h=yes
13393else
13394 ac_cv_working_alloca_h=no
13395fi
13396rm -f core conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13398fi
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13400$as_echo "$ac_cv_working_alloca_h" >&6; }
13401if test $ac_cv_working_alloca_h = yes; then
13402
13403$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13404
13405fi
13406
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13408$as_echo_n "checking for alloca... " >&6; }
13409if ${ac_cv_func_alloca_works+:} false; then :
13410 $as_echo_n "(cached) " >&6
13411else
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413/* end confdefs.h. */
13414#ifdef __GNUC__
13415# define alloca __builtin_alloca
13416#else
13417# ifdef _MSC_VER
13418# include <malloc.h>
13419# define alloca _alloca
13420# else
13421# ifdef HAVE_ALLOCA_H
13422# include <alloca.h>
13423# else
13424# ifdef _AIX
13425 #pragma alloca
13426# else
13427# ifndef alloca /* predefined by HP cc +Olibcalls */
13428void *alloca (size_t);
13429# endif
13430# endif
13431# endif
13432# endif
13433#endif
13434
13435int
13436main ()
13437{
13438char *p = (char *) alloca (1);
13439 if (p) return 0;
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444if ac_fn_c_try_link "$LINENO"; then :
13445 ac_cv_func_alloca_works=yes
13446else
13447 ac_cv_func_alloca_works=no
13448fi
13449rm -f core conftest.err conftest.$ac_objext \
13450 conftest$ac_exeext conftest.$ac_ext
13451fi
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13453$as_echo "$ac_cv_func_alloca_works" >&6; }
13454
13455if test $ac_cv_func_alloca_works = yes; then
13456
13457$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13458
13459else
13460 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13461# that cause trouble. Some versions do not even contain alloca or
13462# contain a buggy version. If you still want to use their alloca,
13463# use ar to extract alloca.o from them instead of compiling alloca.c.
13464
13465ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13466
13467$as_echo "#define C_ALLOCA 1" >>confdefs.h
13468
13469
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13471$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13472if ${ac_cv_os_cray+:} false; then :
13473 $as_echo_n "(cached) " >&6
13474else
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476/* end confdefs.h. */
13477#if defined CRAY && ! defined CRAY2
13478webecray
13479#else
13480wenotbecray
13481#endif
13482
13483_ACEOF
13484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13485 $EGREP "webecray" >/dev/null 2>&1; then :
13486 ac_cv_os_cray=yes
13487else
13488 ac_cv_os_cray=no
13489fi
13490rm -f conftest*
13491
13492fi
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13494$as_echo "$ac_cv_os_cray" >&6; }
13495if test $ac_cv_os_cray = yes; then
13496 for ac_func in _getb67 GETB67 getb67; do
13497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13498ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13499if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13500
13501cat >>confdefs.h <<_ACEOF
13502#define CRAY_STACKSEG_END $ac_func
13503_ACEOF
13504
13505 break
13506fi
13507
13508 done
13509fi
13510
13511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13512$as_echo_n "checking stack direction for C alloca... " >&6; }
13513if ${ac_cv_c_stack_direction+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515else
13516 if test "$cross_compiling" = yes; then :
13517 ac_cv_c_stack_direction=0
13518else
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520/* end confdefs.h. */
13521$ac_includes_default
13522int
13523find_stack_direction (int *addr, int depth)
13524{
13525 int dir, dummy = 0;
13526 if (! addr)
13527 addr = &dummy;
13528 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13529 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13530 return dir + dummy;
13531}
13532
13533int
13534main (int argc, char **argv)
13535{
13536 return find_stack_direction (0, argc + !argv + 20) < 0;
13537}
13538_ACEOF
13539if ac_fn_c_try_run "$LINENO"; then :
13540 ac_cv_c_stack_direction=1
13541else
13542 ac_cv_c_stack_direction=-1
13543fi
13544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13545 conftest.$ac_objext conftest.beam conftest.$ac_ext
13546fi
13547
13548fi
13549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13550$as_echo "$ac_cv_c_stack_direction" >&6; }
13551cat >>confdefs.h <<_ACEOF
13552#define STACK_DIRECTION $ac_cv_c_stack_direction
13553_ACEOF
13554
13555
13556fi
13557
13558
13559
13560
13561 for ac_header in $ac_header_list
13562do :
13563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13564ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13565"
13566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13567 cat >>confdefs.h <<_ACEOF
13568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13569_ACEOF
13570
13571fi
13572
13573done
13574
13575
13576
13577
13578
13579
13580
13581
13582for ac_func in getpagesize
13583do :
13584 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13585if test "x$ac_cv_func_getpagesize" = xyes; then :
13586 cat >>confdefs.h <<_ACEOF
13587#define HAVE_GETPAGESIZE 1
13588_ACEOF
13589
13590fi
13591done
13592
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13594$as_echo_n "checking for working mmap... " >&6; }
13595if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13596 $as_echo_n "(cached) " >&6
13597else
13598 if test "$cross_compiling" = yes; then :
13599 ac_cv_func_mmap_fixed_mapped=no
13600else
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602/* end confdefs.h. */
13603$ac_includes_default
13604/* malloc might have been renamed as rpl_malloc. */
13605#undef malloc
13606
13607/* Thanks to Mike Haertel and Jim Avera for this test.
13608 Here is a matrix of mmap possibilities:
13609 mmap private not fixed
13610 mmap private fixed at somewhere currently unmapped
13611 mmap private fixed at somewhere already mapped
13612 mmap shared not fixed
13613 mmap shared fixed at somewhere currently unmapped
13614 mmap shared fixed at somewhere already mapped
13615 For private mappings, we should verify that changes cannot be read()
13616 back from the file, nor mmap's back from the file at a different
13617 address. (There have been systems where private was not correctly
13618 implemented like the infamous i386 svr4.0, and systems where the
13619 VM page cache was not coherent with the file system buffer cache
13620 like early versions of FreeBSD and possibly contemporary NetBSD.)
13621 For shared mappings, we should conversely verify that changes get
13622 propagated back to all the places they're supposed to be.
13623
13624 Grep wants private fixed already mapped.
13625 The main things grep needs to know about mmap are:
13626 * does it exist and is it safe to write into the mmap'd area
13627 * how to use it (BSD variants) */
13628
13629#include <fcntl.h>
13630#include <sys/mman.h>
13631
13632#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13633char *malloc ();
13634#endif
13635
13636/* This mess was copied from the GNU getpagesize.h. */
13637#ifndef HAVE_GETPAGESIZE
13638# ifdef _SC_PAGESIZE
13639# define getpagesize() sysconf(_SC_PAGESIZE)
13640# else /* no _SC_PAGESIZE */
13641# ifdef HAVE_SYS_PARAM_H
13642# include <sys/param.h>
13643# ifdef EXEC_PAGESIZE
13644# define getpagesize() EXEC_PAGESIZE
13645# else /* no EXEC_PAGESIZE */
13646# ifdef NBPG
13647# define getpagesize() NBPG * CLSIZE
13648# ifndef CLSIZE
13649# define CLSIZE 1
13650# endif /* no CLSIZE */
13651# else /* no NBPG */
13652# ifdef NBPC
13653# define getpagesize() NBPC
13654# else /* no NBPC */
13655# ifdef PAGESIZE
13656# define getpagesize() PAGESIZE
13657# endif /* PAGESIZE */
13658# endif /* no NBPC */
13659# endif /* no NBPG */
13660# endif /* no EXEC_PAGESIZE */
13661# else /* no HAVE_SYS_PARAM_H */
13662# define getpagesize() 8192 /* punt totally */
13663# endif /* no HAVE_SYS_PARAM_H */
13664# endif /* no _SC_PAGESIZE */
13665
13666#endif /* no HAVE_GETPAGESIZE */
13667
13668int
13669main ()
13670{
13671 char *data, *data2, *data3;
13672 const char *cdata2;
13673 int i, pagesize;
13674 int fd, fd2;
13675
13676 pagesize = getpagesize ();
13677
13678 /* First, make a file with some known garbage in it. */
13679 data = (char *) malloc (pagesize);
13680 if (!data)
13681 return 1;
13682 for (i = 0; i < pagesize; ++i)
13683 *(data + i) = rand ();
13684 umask (0);
13685 fd = creat ("conftest.mmap", 0600);
13686 if (fd < 0)
13687 return 2;
13688 if (write (fd, data, pagesize) != pagesize)
13689 return 3;
13690 close (fd);
13691
13692 /* Next, check that the tail of a page is zero-filled. File must have
13693 non-zero length, otherwise we risk SIGBUS for entire page. */
13694 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13695 if (fd2 < 0)
13696 return 4;
13697 cdata2 = "";
13698 if (write (fd2, cdata2, 1) != 1)
13699 return 5;
13700 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13701 if (data2 == MAP_FAILED)
13702 return 6;
13703 for (i = 0; i < pagesize; ++i)
13704 if (*(data2 + i))
13705 return 7;
13706 close (fd2);
13707 if (munmap (data2, pagesize))
13708 return 8;
13709
13710 /* Next, try to mmap the file at a fixed address which already has
13711 something else allocated at it. If we can, also make sure that
13712 we see the same garbage. */
13713 fd = open ("conftest.mmap", O_RDWR);
13714 if (fd < 0)
13715 return 9;
13716 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13717 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13718 return 10;
13719 for (i = 0; i < pagesize; ++i)
13720 if (*(data + i) != *(data2 + i))
13721 return 11;
13722
13723 /* Finally, make sure that changes to the mapped area do not
13724 percolate back to the file as seen by read(). (This is a bug on
13725 some variants of i386 svr4.0.) */
13726 for (i = 0; i < pagesize; ++i)
13727 *(data2 + i) = *(data2 + i) + 1;
13728 data3 = (char *) malloc (pagesize);
13729 if (!data3)
13730 return 12;
13731 if (read (fd, data3, pagesize) != pagesize)
13732 return 13;
13733 for (i = 0; i < pagesize; ++i)
13734 if (*(data + i) != *(data3 + i))
13735 return 14;
13736 close (fd);
13737 free (data);
13738 free (data3);
13739 return 0;
13740}
13741_ACEOF
13742if ac_fn_c_try_run "$LINENO"; then :
13743 ac_cv_func_mmap_fixed_mapped=yes
13744else
13745 ac_cv_func_mmap_fixed_mapped=no
13746fi
13747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13748 conftest.$ac_objext conftest.beam conftest.$ac_ext
13749fi
13750
13751fi
13752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13753$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13754if test $ac_cv_func_mmap_fixed_mapped = yes; then
13755
13756$as_echo "#define HAVE_MMAP 1" >>confdefs.h
13757
13758fi
13759rm -f conftest.mmap conftest.txt
13760
13761for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
13762do :
13763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13764ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13765if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13766 cat >>confdefs.h <<_ACEOF
13767#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13768_ACEOF
13769
13770fi
13771done
13772
13773ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13774if test "x$ac_cv_func_mkstemp" = xyes; then :
13775
13776$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13777
13778fi
13779
13780ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13781if test "x$ac_cv_func_mkdtemp" = xyes; then :
13782
13783$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13784
13785fi
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13788$as_echo_n "checking for mbstate_t... " >&6; }
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790/* end confdefs.h. */
13791#include <wchar.h>
13792int
13793main ()
13794{
13795mbstate_t teststate;
13796 ;
13797 return 0;
13798}
13799_ACEOF
13800if ac_fn_c_try_compile "$LINENO"; then :
13801 have_mbstate_t=yes
13802else
13803 have_mbstate_t=no
13804fi
13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13807$as_echo "$have_mbstate_t" >&6; }
13808 if test x"$have_mbstate_t" = xyes; then
13809
13810$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13811
13812 fi
13813
13814# Some systems have frexp only in -lm, not in -lc.
13815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13816$as_echo_n "checking for library containing frexp... " >&6; }
13817if ${ac_cv_search_frexp+:} false; then :
13818 $as_echo_n "(cached) " >&6
13819else
13820 ac_func_search_save_LIBS=$LIBS
13821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822/* end confdefs.h. */
13823
13824/* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
13827#ifdef __cplusplus
13828extern "C"
13829#endif
13830char frexp ();
13831int
13832main ()
13833{
13834return frexp ();
13835 ;
13836 return 0;
13837}
13838_ACEOF
13839for ac_lib in '' m; do
13840 if test -z "$ac_lib"; then
13841 ac_res="none required"
13842 else
13843 ac_res=-l$ac_lib
13844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13845 fi
13846 if ac_fn_c_try_link "$LINENO"; then :
13847 ac_cv_search_frexp=$ac_res
13848fi
13849rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext
13851 if ${ac_cv_search_frexp+:} false; then :
13852 break
13853fi
13854done
13855if ${ac_cv_search_frexp+:} false; then :
13856
13857else
13858 ac_cv_search_frexp=no
13859fi
13860rm conftest.$ac_ext
13861LIBS=$ac_func_search_save_LIBS
13862fi
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13864$as_echo "$ac_cv_search_frexp" >&6; }
13865ac_res=$ac_cv_search_frexp
13866if test "$ac_res" != no; then :
13867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13868
13869fi
13870
13871
13872
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13874$as_echo_n "checking for LC_MESSAGES... " >&6; }
13875if ${am_cv_val_LC_MESSAGES+:} false; then :
13876 $as_echo_n "(cached) " >&6
13877else
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879/* end confdefs.h. */
13880#include <locale.h>
13881int
13882main ()
13883{
13884return LC_MESSAGES
13885 ;
13886 return 0;
13887}
13888_ACEOF
13889if ac_fn_c_try_link "$LINENO"; then :
13890 am_cv_val_LC_MESSAGES=yes
13891else
13892 am_cv_val_LC_MESSAGES=no
13893fi
13894rm -f core conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
13896fi
13897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13898$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13899 if test $am_cv_val_LC_MESSAGES = yes; then
13900
13901$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13902
13903 fi
13904
13905
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13907$as_echo_n "checking for time_t in time.h... " >&6; }
13908if ${bu_cv_decl_time_t_time_h+:} false; then :
13909 $as_echo_n "(cached) " >&6
13910else
13911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13912/* end confdefs.h. */
13913#include <time.h>
13914int
13915main ()
13916{
13917time_t i;
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922if ac_fn_c_try_compile "$LINENO"; then :
13923 bu_cv_decl_time_t_time_h=yes
13924else
13925 bu_cv_decl_time_t_time_h=no
13926fi
13927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928fi
13929
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13931$as_echo "$bu_cv_decl_time_t_time_h" >&6; }
13932if test $bu_cv_decl_time_t_time_h = yes; then
13933
13934$as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
13935
13936fi
13937
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13939$as_echo_n "checking for time_t in sys/types.h... " >&6; }
13940if ${bu_cv_decl_time_t_types_h+:} false; then :
13941 $as_echo_n "(cached) " >&6
13942else
13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13944/* end confdefs.h. */
13945#include <sys/types.h>
13946int
13947main ()
13948{
13949time_t i;
13950 ;
13951 return 0;
13952}
13953_ACEOF
13954if ac_fn_c_try_compile "$LINENO"; then :
13955 bu_cv_decl_time_t_types_h=yes
13956else
13957 bu_cv_decl_time_t_types_h=no
13958fi
13959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960fi
13961
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13963$as_echo "$bu_cv_decl_time_t_types_h" >&6; }
13964if test $bu_cv_decl_time_t_types_h = yes; then
13965
13966$as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
13967
13968fi
13969
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13971$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13972if ${bu_cv_decl_getopt_unistd_h+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974else
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976/* end confdefs.h. */
13977#include <unistd.h>
13978int
13979main ()
13980{
13981extern int getopt (int, char *const*, const char *);
13982 ;
13983 return 0;
13984}
13985_ACEOF
13986if ac_fn_c_try_compile "$LINENO"; then :
13987 bu_cv_decl_getopt_unistd_h=yes
13988else
13989 bu_cv_decl_getopt_unistd_h=no
13990fi
13991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992fi
13993
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13995$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13996if test $bu_cv_decl_getopt_unistd_h = yes; then
13997
13998$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13999
14000fi
14001
14002# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
14003# by default.
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
14005$as_echo_n "checking for utime.h... " >&6; }
14006if ${bu_cv_header_utime_h+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008else
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010/* end confdefs.h. */
14011#include <sys/types.h>
14012#ifdef HAVE_TIME_H
14013#include <time.h>
14014#endif
14015#include <utime.h>
14016int
14017main ()
14018{
14019struct utimbuf s;
14020 ;
14021 return 0;
14022}
14023_ACEOF
14024if ac_fn_c_try_compile "$LINENO"; then :
14025 bu_cv_header_utime_h=yes
14026else
14027 bu_cv_header_utime_h=no
14028fi
14029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030fi
14031
14032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
14033$as_echo "$bu_cv_header_utime_h" >&6; }
14034if test $bu_cv_header_utime_h = yes; then
14035
14036$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
14037
14038fi
14039
14040ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14041if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14042 ac_have_decl=1
14043else
14044 ac_have_decl=0
14045fi
14046
14047cat >>confdefs.h <<_ACEOF
14048#define HAVE_DECL_ASPRINTF $ac_have_decl
14049_ACEOF
14050ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
14051if test "x$ac_cv_have_decl_environ" = xyes; then :
14052 ac_have_decl=1
14053else
14054 ac_have_decl=0
14055fi
14056
14057cat >>confdefs.h <<_ACEOF
14058#define HAVE_DECL_ENVIRON $ac_have_decl
14059_ACEOF
14060ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
14061if test "x$ac_cv_have_decl_fprintf" = xyes; then :
14062 ac_have_decl=1
14063else
14064 ac_have_decl=0
14065fi
14066
14067cat >>confdefs.h <<_ACEOF
14068#define HAVE_DECL_FPRINTF $ac_have_decl
14069_ACEOF
14070ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
14071if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
14072 ac_have_decl=1
14073else
14074 ac_have_decl=0
14075fi
14076
14077cat >>confdefs.h <<_ACEOF
14078#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
14079_ACEOF
14080ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14081if test "x$ac_cv_have_decl_getenv" = xyes; then :
14082 ac_have_decl=1
14083else
14084 ac_have_decl=0
14085fi
14086
14087cat >>confdefs.h <<_ACEOF
14088#define HAVE_DECL_GETENV $ac_have_decl
14089_ACEOF
14090ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
14091if test "x$ac_cv_have_decl_sbrk" = xyes; then :
14092 ac_have_decl=1
14093else
14094 ac_have_decl=0
14095fi
14096
14097cat >>confdefs.h <<_ACEOF
14098#define HAVE_DECL_SBRK $ac_have_decl
14099_ACEOF
14100ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
14101if test "x$ac_cv_have_decl_snprintf" = xyes; then :
14102 ac_have_decl=1
14103else
14104 ac_have_decl=0
14105fi
14106
14107cat >>confdefs.h <<_ACEOF
14108#define HAVE_DECL_SNPRINTF $ac_have_decl
14109_ACEOF
14110ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14111if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14112 ac_have_decl=1
14113else
14114 ac_have_decl=0
14115fi
14116
14117cat >>confdefs.h <<_ACEOF
14118#define HAVE_DECL_STPCPY $ac_have_decl
14119_ACEOF
14120ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14121if test "x$ac_cv_have_decl_strnlen" = xyes; then :
14122 ac_have_decl=1
14123else
14124 ac_have_decl=0
14125fi
14126
14127cat >>confdefs.h <<_ACEOF
14128#define HAVE_DECL_STRNLEN $ac_have_decl
14129_ACEOF
14130ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14131if test "x$ac_cv_have_decl_strstr" = xyes; then :
14132 ac_have_decl=1
14133else
14134 ac_have_decl=0
14135fi
14136
14137cat >>confdefs.h <<_ACEOF
14138#define HAVE_DECL_STRSTR $ac_have_decl
14139_ACEOF
14140ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14141if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
14142 ac_have_decl=1
14143else
14144 ac_have_decl=0
14145fi
14146
14147cat >>confdefs.h <<_ACEOF
14148#define HAVE_DECL_VSNPRINTF $ac_have_decl
14149_ACEOF
14150
14151
14152# Link in zlib if we can. This allows us to read compressed debug
14153# sections. This is used only by readelf.c (objdump uses bfd for
14154# reading compressed sections).
14155
14156 # Use the system's zlib library.
14157 zlibdir="-L\$(top_builddir)/../zlib"
14158 zlibinc="-I\$(top_srcdir)/../zlib"
14159
14160# Check whether --with-system-zlib was given.
14161if test "${with_system_zlib+set}" = set; then :
14162 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14163 zlibdir=
14164 zlibinc=
14165 fi
14166
14167fi
14168
14169
14170
14171
14172
14173
14174case "${host}" in
14175*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14176
14177$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14178 ;;
14179esac
14180
14181# target-specific stuff:
14182
14183# Canonicalize the secondary target names.
14184if test -n "$enable_targets"; then
14185 for targ in `echo $enable_targets | sed 's/,/ /g'`
14186 do
14187 result=`$ac_config_sub $targ 2>/dev/null`
14188 if test -n "$result"; then
14189 canon_targets="$canon_targets $result"
14190 else
14191 # Allow targets that config.sub doesn't recognize, like "all".
14192 canon_targets="$canon_targets $targ"
14193 fi
14194 done
14195fi
14196
14197ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14198if test "x$ac_cv_header_iconv_h" = xyes; then :
14199
14200fi
14201
14202
14203
14204 if test "X$prefix" = "XNONE"; then
14205 acl_final_prefix="$ac_default_prefix"
14206 else
14207 acl_final_prefix="$prefix"
14208 fi
14209 if test "X$exec_prefix" = "XNONE"; then
14210 acl_final_exec_prefix='${prefix}'
14211 else
14212 acl_final_exec_prefix="$exec_prefix"
14213 fi
14214 acl_save_prefix="$prefix"
14215 prefix="$acl_final_prefix"
14216 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14217 prefix="$acl_save_prefix"
14218
14219
14220# Check whether --with-gnu-ld was given.
14221if test "${with_gnu_ld+set}" = set; then :
14222 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14223else
14224 with_gnu_ld=no
14225fi
14226
14227# Prepare PATH_SEPARATOR.
14228# The user is always right.
14229if test "${PATH_SEPARATOR+set}" != set; then
14230 echo "#! /bin/sh" >conf$$.sh
14231 echo "exit 0" >>conf$$.sh
14232 chmod +x conf$$.sh
14233 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14234 PATH_SEPARATOR=';'
14235 else
14236 PATH_SEPARATOR=:
14237 fi
14238 rm -f conf$$.sh
14239fi
14240ac_prog=ld
14241if test "$GCC" = yes; then
14242 # Check if gcc -print-prog-name=ld gives a path.
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14244$as_echo_n "checking for ld used by GCC... " >&6; }
14245 case $host in
14246 *-*-mingw*)
14247 # gcc leaves a trailing carriage return which upsets mingw
14248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14249 *)
14250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14251 esac
14252 case $ac_prog in
14253 # Accept absolute paths.
14254 [\\/]* | [A-Za-z]:[\\/]*)
14255 re_direlt='/[^/][^/]*/\.\./'
14256 # Canonicalize the path of ld
14257 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14258 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14259 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14260 done
14261 test -z "$LD" && LD="$ac_prog"
14262 ;;
14263 "")
14264 # If it fails, then pretend we aren't using GCC.
14265 ac_prog=ld
14266 ;;
14267 *)
14268 # If it is relative, then search for the first ld in PATH.
14269 with_gnu_ld=unknown
14270 ;;
14271 esac
14272elif test "$with_gnu_ld" = yes; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14274$as_echo_n "checking for GNU ld... " >&6; }
14275else
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14277$as_echo_n "checking for non-GNU ld... " >&6; }
14278fi
14279if ${acl_cv_path_LD+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281else
14282 if test -z "$LD"; then
14283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14284 for ac_dir in $PATH; do
14285 test -z "$ac_dir" && ac_dir=.
14286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14287 acl_cv_path_LD="$ac_dir/$ac_prog"
14288 # Check to see if the program is GNU ld. I'd rather use --version,
14289 # but apparently some GNU ld's only accept -v.
14290 # Break only if it was the GNU/non-GNU ld that we prefer.
14291 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14292 test "$with_gnu_ld" != no && break
14293 else
14294 test "$with_gnu_ld" != yes && break
14295 fi
14296 fi
14297 done
14298 IFS="$ac_save_ifs"
14299else
14300 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14301fi
14302fi
14303
14304LD="$acl_cv_path_LD"
14305if test -n "$LD"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14307$as_echo "$LD" >&6; }
14308else
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310$as_echo "no" >&6; }
14311fi
14312test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14314$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14315if ${acl_cv_prog_gnu_ld+:} false; then :
14316 $as_echo_n "(cached) " >&6
14317else
14318 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14319if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14320 acl_cv_prog_gnu_ld=yes
14321else
14322 acl_cv_prog_gnu_ld=no
14323fi
14324fi
14325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14326$as_echo "$acl_cv_prog_gnu_ld" >&6; }
14327with_gnu_ld=$acl_cv_prog_gnu_ld
14328
14329
14330
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14332$as_echo_n "checking for shared library run path origin... " >&6; }
14333if ${acl_cv_rpath+:} false; then :
14334 $as_echo_n "(cached) " >&6
14335else
14336
14337 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14338 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14339 . ./conftest.sh
14340 rm -f ./conftest.sh
14341 acl_cv_rpath=done
14342
14343fi
14344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14345$as_echo "$acl_cv_rpath" >&6; }
14346 wl="$acl_cv_wl"
14347 libext="$acl_cv_libext"
14348 shlibext="$acl_cv_shlibext"
14349 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14350 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14351 hardcode_direct="$acl_cv_hardcode_direct"
14352 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14353 # Check whether --enable-rpath was given.
14354if test "${enable_rpath+set}" = set; then :
14355 enableval=$enable_rpath; :
14356else
14357 enable_rpath=yes
14358fi
14359
14360
14361
14362
14363
14364
14365
14366
14367 use_additional=yes
14368
14369 acl_save_prefix="$prefix"
14370 prefix="$acl_final_prefix"
14371 acl_save_exec_prefix="$exec_prefix"
14372 exec_prefix="$acl_final_exec_prefix"
14373
14374 eval additional_includedir=\"$includedir\"
14375 eval additional_libdir=\"$libdir\"
14376
14377 exec_prefix="$acl_save_exec_prefix"
14378 prefix="$acl_save_prefix"
14379
14380
14381# Check whether --with-libiconv-prefix was given.
14382if test "${with_libiconv_prefix+set}" = set; then :
14383 withval=$with_libiconv_prefix;
14384 if test "X$withval" = "Xno"; then
14385 use_additional=no
14386 else
14387 if test "X$withval" = "X"; then
14388
14389 acl_save_prefix="$prefix"
14390 prefix="$acl_final_prefix"
14391 acl_save_exec_prefix="$exec_prefix"
14392 exec_prefix="$acl_final_exec_prefix"
14393
14394 eval additional_includedir=\"$includedir\"
14395 eval additional_libdir=\"$libdir\"
14396
14397 exec_prefix="$acl_save_exec_prefix"
14398 prefix="$acl_save_prefix"
14399
14400 else
14401 additional_includedir="$withval/include"
14402 additional_libdir="$withval/lib"
14403 fi
14404 fi
14405
14406fi
14407
14408 LIBICONV=
14409 LTLIBICONV=
14410 INCICONV=
14411 rpathdirs=
14412 ltrpathdirs=
14413 names_already_handled=
14414 names_next_round='iconv '
14415 while test -n "$names_next_round"; do
14416 names_this_round="$names_next_round"
14417 names_next_round=
14418 for name in $names_this_round; do
14419 already_handled=
14420 for n in $names_already_handled; do
14421 if test "$n" = "$name"; then
14422 already_handled=yes
14423 break
14424 fi
14425 done
14426 if test -z "$already_handled"; then
14427 names_already_handled="$names_already_handled $name"
14428 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14429 eval value=\"\$HAVE_LIB$uppername\"
14430 if test -n "$value"; then
14431 if test "$value" = yes; then
14432 eval value=\"\$LIB$uppername\"
14433 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14434 eval value=\"\$LTLIB$uppername\"
14435 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14436 else
14437 :
14438 fi
14439 else
14440 found_dir=
14441 found_la=
14442 found_so=
14443 found_a=
14444 if test $use_additional = yes; then
14445 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14446 found_dir="$additional_libdir"
14447 found_so="$additional_libdir/lib$name.$shlibext"
14448 if test -f "$additional_libdir/lib$name.la"; then
14449 found_la="$additional_libdir/lib$name.la"
14450 fi
14451 else
14452 if test -f "$additional_libdir/lib$name.$libext"; then
14453 found_dir="$additional_libdir"
14454 found_a="$additional_libdir/lib$name.$libext"
14455 if test -f "$additional_libdir/lib$name.la"; then
14456 found_la="$additional_libdir/lib$name.la"
14457 fi
14458 fi
14459 fi
14460 fi
14461 if test "X$found_dir" = "X"; then
14462 for x in $LDFLAGS $LTLIBICONV; do
14463
14464 acl_save_prefix="$prefix"
14465 prefix="$acl_final_prefix"
14466 acl_save_exec_prefix="$exec_prefix"
14467 exec_prefix="$acl_final_exec_prefix"
14468 eval x=\"$x\"
14469 exec_prefix="$acl_save_exec_prefix"
14470 prefix="$acl_save_prefix"
14471
14472 case "$x" in
14473 -L*)
14474 dir=`echo "X$x" | sed -e 's/^X-L//'`
14475 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14476 found_dir="$dir"
14477 found_so="$dir/lib$name.$shlibext"
14478 if test -f "$dir/lib$name.la"; then
14479 found_la="$dir/lib$name.la"
14480 fi
14481 else
14482 if test -f "$dir/lib$name.$libext"; then
14483 found_dir="$dir"
14484 found_a="$dir/lib$name.$libext"
14485 if test -f "$dir/lib$name.la"; then
14486 found_la="$dir/lib$name.la"
14487 fi
14488 fi
14489 fi
14490 ;;
14491 esac
14492 if test "X$found_dir" != "X"; then
14493 break
14494 fi
14495 done
14496 fi
14497 if test "X$found_dir" != "X"; then
14498 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14499 if test "X$found_so" != "X"; then
14500 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14501 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14502 else
14503 haveit=
14504 for x in $ltrpathdirs; do
14505 if test "X$x" = "X$found_dir"; then
14506 haveit=yes
14507 break
14508 fi
14509 done
14510 if test -z "$haveit"; then
14511 ltrpathdirs="$ltrpathdirs $found_dir"
14512 fi
14513 if test "$hardcode_direct" = yes; then
14514 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14515 else
14516 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14517 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14518 haveit=
14519 for x in $rpathdirs; do
14520 if test "X$x" = "X$found_dir"; then
14521 haveit=yes
14522 break
14523 fi
14524 done
14525 if test -z "$haveit"; then
14526 rpathdirs="$rpathdirs $found_dir"
14527 fi
14528 else
14529 haveit=
14530 for x in $LDFLAGS $LIBICONV; do
14531
14532 acl_save_prefix="$prefix"
14533 prefix="$acl_final_prefix"
14534 acl_save_exec_prefix="$exec_prefix"
14535 exec_prefix="$acl_final_exec_prefix"
14536 eval x=\"$x\"
14537 exec_prefix="$acl_save_exec_prefix"
14538 prefix="$acl_save_prefix"
14539
14540 if test "X$x" = "X-L$found_dir"; then
14541 haveit=yes
14542 break
14543 fi
14544 done
14545 if test -z "$haveit"; then
14546 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14547 fi
14548 if test "$hardcode_minus_L" != no; then
14549 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14550 else
14551 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14552 fi
14553 fi
14554 fi
14555 fi
14556 else
14557 if test "X$found_a" != "X"; then
14558 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14559 else
14560 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14561 fi
14562 fi
14563 additional_includedir=
14564 case "$found_dir" in
14565 */lib | */lib/)
14566 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14567 additional_includedir="$basedir/include"
14568 ;;
14569 esac
14570 if test "X$additional_includedir" != "X"; then
14571 if test "X$additional_includedir" != "X/usr/include"; then
14572 haveit=
14573 if test "X$additional_includedir" = "X/usr/local/include"; then
14574 if test -n "$GCC"; then
14575 case $host_os in
14576 linux*) haveit=yes;;
14577 esac
14578 fi
14579 fi
14580 if test -z "$haveit"; then
14581 for x in $CPPFLAGS $INCICONV; do
14582
14583 acl_save_prefix="$prefix"
14584 prefix="$acl_final_prefix"
14585 acl_save_exec_prefix="$exec_prefix"
14586 exec_prefix="$acl_final_exec_prefix"
14587 eval x=\"$x\"
14588 exec_prefix="$acl_save_exec_prefix"
14589 prefix="$acl_save_prefix"
14590
14591 if test "X$x" = "X-I$additional_includedir"; then
14592 haveit=yes
14593 break
14594 fi
14595 done
14596 if test -z "$haveit"; then
14597 if test -d "$additional_includedir"; then
14598 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14599 fi
14600 fi
14601 fi
14602 fi
14603 fi
14604 if test -n "$found_la"; then
14605 save_libdir="$libdir"
14606 case "$found_la" in
14607 */* | *\\*) . "$found_la" ;;
14608 *) . "./$found_la" ;;
14609 esac
14610 libdir="$save_libdir"
14611 for dep in $dependency_libs; do
14612 case "$dep" in
14613 -L*)
14614 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14615 if test "X$additional_libdir" != "X/usr/lib"; then
14616 haveit=
14617 if test "X$additional_libdir" = "X/usr/local/lib"; then
14618 if test -n "$GCC"; then
14619 case $host_os in
14620 linux*) haveit=yes;;
14621 esac
14622 fi
14623 fi
14624 if test -z "$haveit"; then
14625 haveit=
14626 for x in $LDFLAGS $LIBICONV; do
14627
14628 acl_save_prefix="$prefix"
14629 prefix="$acl_final_prefix"
14630 acl_save_exec_prefix="$exec_prefix"
14631 exec_prefix="$acl_final_exec_prefix"
14632 eval x=\"$x\"
14633 exec_prefix="$acl_save_exec_prefix"
14634 prefix="$acl_save_prefix"
14635
14636 if test "X$x" = "X-L$additional_libdir"; then
14637 haveit=yes
14638 break
14639 fi
14640 done
14641 if test -z "$haveit"; then
14642 if test -d "$additional_libdir"; then
14643 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14644 fi
14645 fi
14646 haveit=
14647 for x in $LDFLAGS $LTLIBICONV; do
14648
14649 acl_save_prefix="$prefix"
14650 prefix="$acl_final_prefix"
14651 acl_save_exec_prefix="$exec_prefix"
14652 exec_prefix="$acl_final_exec_prefix"
14653 eval x=\"$x\"
14654 exec_prefix="$acl_save_exec_prefix"
14655 prefix="$acl_save_prefix"
14656
14657 if test "X$x" = "X-L$additional_libdir"; then
14658 haveit=yes
14659 break
14660 fi
14661 done
14662 if test -z "$haveit"; then
14663 if test -d "$additional_libdir"; then
14664 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14665 fi
14666 fi
14667 fi
14668 fi
14669 ;;
14670 -R*)
14671 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14672 if test "$enable_rpath" != no; then
14673 haveit=
14674 for x in $rpathdirs; do
14675 if test "X$x" = "X$dir"; then
14676 haveit=yes
14677 break
14678 fi
14679 done
14680 if test -z "$haveit"; then
14681 rpathdirs="$rpathdirs $dir"
14682 fi
14683 haveit=
14684 for x in $ltrpathdirs; do
14685 if test "X$x" = "X$dir"; then
14686 haveit=yes
14687 break
14688 fi
14689 done
14690 if test -z "$haveit"; then
14691 ltrpathdirs="$ltrpathdirs $dir"
14692 fi
14693 fi
14694 ;;
14695 -l*)
14696 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14697 ;;
14698 *.la)
14699 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14700 ;;
14701 *)
14702 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14703 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14704 ;;
14705 esac
14706 done
14707 fi
14708 else
14709 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14710 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14711 fi
14712 fi
14713 fi
14714 done
14715 done
14716 if test "X$rpathdirs" != "X"; then
14717 if test -n "$hardcode_libdir_separator"; then
14718 alldirs=
14719 for found_dir in $rpathdirs; do
14720 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14721 done
14722 acl_save_libdir="$libdir"
14723 libdir="$alldirs"
14724 eval flag=\"$hardcode_libdir_flag_spec\"
14725 libdir="$acl_save_libdir"
14726 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14727 else
14728 for found_dir in $rpathdirs; do
14729 acl_save_libdir="$libdir"
14730 libdir="$found_dir"
14731 eval flag=\"$hardcode_libdir_flag_spec\"
14732 libdir="$acl_save_libdir"
14733 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14734 done
14735 fi
14736 fi
14737 if test "X$ltrpathdirs" != "X"; then
14738 for found_dir in $ltrpathdirs; do
14739 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14740 done
14741 fi
14742
14743
14744
14745
14746
14747
14748
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14750$as_echo_n "checking for iconv... " >&6; }
14751if ${am_cv_func_iconv+:} false; then :
14752 $as_echo_n "(cached) " >&6
14753else
14754
14755 am_cv_func_iconv="no, consider installing GNU libiconv"
14756 am_cv_lib_iconv=no
14757 am_save_CPPFLAGS="$CPPFLAGS"
14758 CPPFLAGS="$CPPFLAGS $INCICONV"
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760/* end confdefs.h. */
14761#include <stdlib.h>
14762#include <iconv.h>
14763int
14764main ()
14765{
14766iconv_t cd = iconv_open("","");
14767 iconv(cd,NULL,NULL,NULL,NULL);
14768 iconv_close(cd);
14769 ;
14770 return 0;
14771}
14772_ACEOF
14773if ac_fn_c_try_link "$LINENO"; then :
14774 am_cv_func_iconv=yes
14775fi
14776rm -f core conftest.err conftest.$ac_objext \
14777 conftest$ac_exeext conftest.$ac_ext
14778 CPPFLAGS="$am_save_CPPFLAGS"
14779
14780 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14781 for _libs in .libs _libs; do
14782 am_save_CPPFLAGS="$CPPFLAGS"
14783 am_save_LIBS="$LIBS"
14784 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14785 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787/* end confdefs.h. */
14788#include <stdlib.h>
14789#include <iconv.h>
14790int
14791main ()
14792{
14793iconv_t cd = iconv_open("","");
14794 iconv(cd,NULL,NULL,NULL,NULL);
14795 iconv_close(cd);
14796 ;
14797 return 0;
14798}
14799_ACEOF
14800if ac_fn_c_try_link "$LINENO"; then :
14801 INCICONV="-I../libiconv/include"
14802 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14803 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14804 am_cv_lib_iconv=yes
14805 am_cv_func_iconv=yes
14806fi
14807rm -f core conftest.err conftest.$ac_objext \
14808 conftest$ac_exeext conftest.$ac_ext
14809 CPPFLAGS="$am_save_CPPFLAGS"
14810 LIBS="$am_save_LIBS"
14811 if test "$am_cv_func_iconv" = "yes"; then
14812 break
14813 fi
14814 done
14815 fi
14816
14817 if test "$am_cv_func_iconv" != yes; then
14818 am_save_CPPFLAGS="$CPPFLAGS"
14819 am_save_LIBS="$LIBS"
14820 CPPFLAGS="$CPPFLAGS $INCICONV"
14821 LIBS="$LIBS $LIBICONV"
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823/* end confdefs.h. */
14824#include <stdlib.h>
14825#include <iconv.h>
14826int
14827main ()
14828{
14829iconv_t cd = iconv_open("","");
14830 iconv(cd,NULL,NULL,NULL,NULL);
14831 iconv_close(cd);
14832 ;
14833 return 0;
14834}
14835_ACEOF
14836if ac_fn_c_try_link "$LINENO"; then :
14837 am_cv_lib_iconv=yes
14838 am_cv_func_iconv=yes
14839fi
14840rm -f core conftest.err conftest.$ac_objext \
14841 conftest$ac_exeext conftest.$ac_ext
14842 CPPFLAGS="$am_save_CPPFLAGS"
14843 LIBS="$am_save_LIBS"
14844 fi
14845
14846fi
14847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14848$as_echo "$am_cv_func_iconv" >&6; }
14849 if test "$am_cv_func_iconv" = yes; then
14850
14851$as_echo "#define HAVE_ICONV 1" >>confdefs.h
14852
14853 fi
14854 if test "$am_cv_lib_iconv" = yes; then
14855
14856 for element in $INCICONV; do
14857 haveit=
14858 for x in $CPPFLAGS; do
14859
14860 acl_save_prefix="$prefix"
14861 prefix="$acl_final_prefix"
14862 acl_save_exec_prefix="$exec_prefix"
14863 exec_prefix="$acl_final_exec_prefix"
14864 eval x=\"$x\"
14865 exec_prefix="$acl_save_exec_prefix"
14866 prefix="$acl_save_prefix"
14867
14868 if test "X$x" = "X$element"; then
14869 haveit=yes
14870 break
14871 fi
14872 done
14873 if test -z "$haveit"; then
14874 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14875 fi
14876 done
14877
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14879$as_echo_n "checking how to link with libiconv... " >&6; }
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14881$as_echo "$LIBICONV" >&6; }
14882 else
14883 LIBICONV=
14884 LTLIBICONV=
14885 fi
14886
14887
14888
14889 if test "$am_cv_func_iconv" = yes; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14891$as_echo_n "checking for iconv declaration... " >&6; }
14892 if ${am_cv_proto_iconv+:} false; then :
14893 $as_echo_n "(cached) " >&6
14894else
14895
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897/* end confdefs.h. */
14898
14899#include <stdlib.h>
14900#include <iconv.h>
14901extern
14902#ifdef __cplusplus
14903"C"
14904#endif
14905#if defined(__STDC__) || defined(__cplusplus)
14906size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14907#else
14908size_t iconv();
14909#endif
14910
14911int
14912main ()
14913{
14914
14915 ;
14916 return 0;
14917}
14918_ACEOF
14919if ac_fn_c_try_compile "$LINENO"; then :
14920 am_cv_proto_iconv_arg1=""
14921else
14922 am_cv_proto_iconv_arg1="const"
14923fi
14924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14926fi
14927
14928 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14930 }$am_cv_proto_iconv" >&5
14931$as_echo "${ac_t:-
14932 }$am_cv_proto_iconv" >&6; }
14933
14934cat >>confdefs.h <<_ACEOF
14935#define ICONV_CONST $am_cv_proto_iconv_arg1
14936_ACEOF
14937
14938 fi
14939
14940
14941all_targets=false
14942BUILD_SRCONV=
14943BUILD_DLLTOOL=
14944DLLTOOL_DEFS=
14945DLLTOOL_DEFAULT=
14946BUILD_WINDRES=
14947BUILD_WINDMC=
14948BUILD_DLLWRAP=
14949BUILD_MISC=
14950BUILD_INSTALL_MISC=
14951OBJDUMP_DEFS=
14952OBJDUMP_PRIVATE_VECTORS=
14953OBJDUMP_PRIVATE_OFILES=
14954od_vectors=
14955
14956for targ in $target $canon_targets
14957do
14958 if test "x$targ" = "xall"; then
14959 all_targets=true
14960 BUILD_SRCONV='$(SRCONV_PROG)'
14961 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14962 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14963 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14964 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14965 if test -z "$DLLTOOL_DEFAULT"; then
14966 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14967 fi
14968 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14969 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14970 od_vectors="$od_vectors objdump_private_desc_xcoff"
14971 else
14972 case $targ in
14973 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14974 esac
14975
14976 case $targ in
14977 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14978 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14979 if test -z "$DLLTOOL_DEFAULT"; then
14980 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14981 fi
14982 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14983 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14984 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14985 ;;
14986 arm-*-pe*)
14987 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14988 if test -z "$DLLTOOL_DEFAULT"; then
14989 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14990 fi
14991 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14992 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14993 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14994 ;;
14995 x86_64-*-mingw* | x86_64-*-cygwin*)
14996 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14997 if test -z "$DLLTOOL_DEFAULT"; then
14998 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14999 fi
15000 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
15001 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15002 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15003 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15004 ;;
15005 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
15006 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15007 if test -z "$DLLTOOL_DEFAULT"; then
15008 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15009 fi
15010 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15011 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15012 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15013 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
15014 ;;
15015 i[3-7]86-*-interix)
15016 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
15017 if test -z "$DLLTOOL_DEFAULT"; then
15018 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
15019 fi
15020 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
15021 ;;
15022 powerpc*-aix5.[01])
15023 ;;
15024 powerpc*-aix[5-9].*)
15025 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
15026 ;;
15027 powerpc*-*-pe* | powerpc*-*-cygwin*)
15028 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15029 if test -z "$DLLTOOL_DEFAULT"; then
15030 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
15031 fi
15032 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
15033 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15034 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15035 ;;
15036 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
15037 case "$BUILD_INSTALL_MISC" in
15038 *embedspu*) ;;
15039 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
15040 esac
15041 ;;
15042 sh*-*-pe)
15043 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15044 if test -z "$DLLTOOL_DEFAULT"; then
15045 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
15046 fi
15047 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
15048 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15049 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15050 ;;
15051 spu-*-*)
15052 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
15053 ;;
15054 mips*-*-pe)
15055 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15056 if test -z "$DLLTOOL_DEFAULT"; then
15057 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
15058 fi
15059 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
15060 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15061 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15062 ;;
15063 mcore-*-pe)
15064 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15065 if test -z "$DLLTOOL_DEFAULT"; then
15066 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
15067 fi
15068 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
15069 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15070 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15071 ;;
15072 mcore-*-elf)
15073 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
15074 if test -z "$DLLTOOL_DEFAULT"; then
15075 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
15076 fi
15077 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
15078 ;;
15079 mep-*)
15080 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
15081 ;;
15082 esac
15083
15084 # Add objdump private vectors.
15085 case $targ in
15086 avr-*-*)
15087 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
15088 ;;
15089 powerpc*-*-aix* | rs6000-*-aix*)
15090 od_vectors="$od_vectors objdump_private_desc_xcoff"
15091 ;;
15092 *-*-darwin*)
15093 od_vectors="$od_vectors objdump_private_desc_mach_o"
15094 ;;
15095 esac
15096 fi
15097done
15098
15099# Uniq objdump private vector, build objdump target ofiles.
15100od_files=
15101f=""
15102for i in $od_vectors ; do
15103 case " $f " in
15104 *" $i "*) ;;
15105 *)
15106 f="$f $i"
15107 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
15108 case $i in
15109 objdump_private_desc_elf32_avr)
15110 od_files="$od_files od-elf32_avr" ;;
15111 objdump_private_desc_xcoff)
15112 od_files="$od_files od-xcoff" ;;
15113 objdump_private_desc_mach_o)
15114 od_files="$od_files od-macho" ;;
15115 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
15116 esac
15117 ;;
15118 esac
15119done
15120
15121# Uniq objdump target ofiles
15122f=""
15123for i in $od_files ; do
15124 case " $f " in
15125 *" $i "*) ;;
15126 *)
15127 f="$f $i"
15128 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
15129 ;;
15130 esac
15131done
15132
15133DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
15134
15135if test "${with_windres+set}" = set; then
15136 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
15137fi
15138
15139if test "${with_windmc+set}" = set; then
15140 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
15141fi
15142
15143OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157cat >>confdefs.h <<_ACEOF
15158#define TARGET "${target}"
15159_ACEOF
15160
15161
15162targ=$target
15163. $srcdir/../bfd/config.bfd
15164if test "x$targ_underscore" = "xyes"; then
15165 UNDERSCORE=1
15166else
15167 UNDERSCORE=0
15168fi
15169
15170cat >>confdefs.h <<_ACEOF
15171#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
15172_ACEOF
15173
15174
15175# Emulation
15176targ=$target
15177. ${srcdir}/configure.tgt
15178EMULATION=$targ_emul
15179EMULATION_VECTOR=$targ_emul_vector
15180
15181
15182
15183
15184# Required for html and install-html
15185
15186
15187
15188
15189
15190ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
15191
15192cat >confcache <<\_ACEOF
15193# This file is a shell script that caches the results of configure
15194# tests run on this system so they can be shared between configure
15195# scripts and configure runs, see configure's option --config-cache.
15196# It is not useful on other systems. If it contains results you don't
15197# want to keep, you may remove or edit it.
15198#
15199# config.status only pays attention to the cache file if you give it
15200# the --recheck option to rerun configure.
15201#
15202# `ac_cv_env_foo' variables (set or unset) will be overridden when
15203# loading this file, other *unset* `ac_cv_foo' will be assigned the
15204# following values.
15205
15206_ACEOF
15207
15208# The following way of writing the cache mishandles newlines in values,
15209# but we know of no workaround that is simple, portable, and efficient.
15210# So, we kill variables containing newlines.
15211# Ultrix sh set writes to stderr and can't be redirected directly,
15212# and sets the high bit in the cache file unless we assign to the vars.
15213(
15214 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15215 eval ac_val=\$$ac_var
15216 case $ac_val in #(
15217 *${as_nl}*)
15218 case $ac_var in #(
15219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15220$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15221 esac
15222 case $ac_var in #(
15223 _ | IFS | as_nl) ;; #(
15224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15225 *) { eval $ac_var=; unset $ac_var;} ;;
15226 esac ;;
15227 esac
15228 done
15229
15230 (set) 2>&1 |
15231 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15232 *${as_nl}ac_space=\ *)
15233 # `set' does not quote correctly, so add quotes: double-quote
15234 # substitution turns \\\\ into \\, and sed turns \\ into \.
15235 sed -n \
15236 "s/'/'\\\\''/g;
15237 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15238 ;; #(
15239 *)
15240 # `set' quotes correctly as required by POSIX, so do not add quotes.
15241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15242 ;;
15243 esac |
15244 sort
15245) |
15246 sed '
15247 /^ac_cv_env_/b end
15248 t clear
15249 :clear
15250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15251 t end
15252 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15253 :end' >>confcache
15254if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15255 if test -w "$cache_file"; then
15256 if test "x$cache_file" != "x/dev/null"; then
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15258$as_echo "$as_me: updating cache $cache_file" >&6;}
15259 if test ! -f "$cache_file" || test -h "$cache_file"; then
15260 cat confcache >"$cache_file"
15261 else
15262 case $cache_file in #(
15263 */* | ?:*)
15264 mv -f confcache "$cache_file"$$ &&
15265 mv -f "$cache_file"$$ "$cache_file" ;; #(
15266 *)
15267 mv -f confcache "$cache_file" ;;
15268 esac
15269 fi
15270 fi
15271 else
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15273$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15274 fi
15275fi
15276rm -f confcache
15277
15278test "x$prefix" = xNONE && prefix=$ac_default_prefix
15279# Let make expand exec_prefix.
15280test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15281
15282DEFS=-DHAVE_CONFIG_H
15283
15284ac_libobjs=
15285ac_ltlibobjs=
15286U=
15287for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15288 # 1. Remove the extension, and $U if already installed.
15289 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15290 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15291 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15292 # will be set to the directory where LIBOBJS objects are built.
15293 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15294 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15295done
15296LIBOBJS=$ac_libobjs
15297
15298LTLIBOBJS=$ac_ltlibobjs
15299
15300
15301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15302$as_echo_n "checking that generated files are newer than configure... " >&6; }
15303 if test -n "$am_sleep_pid"; then
15304 # Hide warnings about reused PIDs.
15305 wait $am_sleep_pid 2>/dev/null
15306 fi
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15308$as_echo "done" >&6; }
15309if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15310 as_fn_error $? "conditional \"AMDEP\" was never defined.
15311Usually this means the macro was only invoked conditionally." "$LINENO" 5
15312fi
15313if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15314 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15315Usually this means the macro was only invoked conditionally." "$LINENO" 5
15316fi
15317 if test -n "$EXEEXT"; then
15318 am__EXEEXT_TRUE=
15319 am__EXEEXT_FALSE='#'
15320else
15321 am__EXEEXT_TRUE='#'
15322 am__EXEEXT_FALSE=
15323fi
15324
15325if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15326 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15327Usually this means the macro was only invoked conditionally." "$LINENO" 5
15328fi
15329if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15330 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15331Usually this means the macro was only invoked conditionally." "$LINENO" 5
15332fi
15333
15334: "${CONFIG_STATUS=./config.status}"
15335ac_write_fail=0
15336ac_clean_files_save=$ac_clean_files
15337ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15338{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15339$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15340as_write_fail=0
15341cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15342#! $SHELL
15343# Generated by $as_me.
15344# Run this file to recreate the current configuration.
15345# Compiler output produced by configure, useful for debugging
15346# configure, is in config.log if it exists.
15347
15348debug=false
15349ac_cs_recheck=false
15350ac_cs_silent=false
15351
15352SHELL=\${CONFIG_SHELL-$SHELL}
15353export SHELL
15354_ASEOF
15355cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15356## -------------------- ##
15357## M4sh Initialization. ##
15358## -------------------- ##
15359
15360# Be more Bourne compatible
15361DUALCASE=1; export DUALCASE # for MKS sh
15362if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15363 emulate sh
15364 NULLCMD=:
15365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15366 # is contrary to our usage. Disable this feature.
15367 alias -g '${1+"$@"}'='"$@"'
15368 setopt NO_GLOB_SUBST
15369else
15370 case `(set -o) 2>/dev/null` in #(
15371 *posix*) :
15372 set -o posix ;; #(
15373 *) :
15374 ;;
15375esac
15376fi
15377
15378
15379as_nl='
15380'
15381export as_nl
15382# Printing a long string crashes Solaris 7 /usr/bin/printf.
15383as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15384as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15385as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15386# Prefer a ksh shell builtin over an external printf program on Solaris,
15387# but without wasting forks for bash or zsh.
15388if test -z "$BASH_VERSION$ZSH_VERSION" \
15389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15390 as_echo='print -r --'
15391 as_echo_n='print -rn --'
15392elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15393 as_echo='printf %s\n'
15394 as_echo_n='printf %s'
15395else
15396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15398 as_echo_n='/usr/ucb/echo -n'
15399 else
15400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15401 as_echo_n_body='eval
15402 arg=$1;
15403 case $arg in #(
15404 *"$as_nl"*)
15405 expr "X$arg" : "X\\(.*\\)$as_nl";
15406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15407 esac;
15408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15409 '
15410 export as_echo_n_body
15411 as_echo_n='sh -c $as_echo_n_body as_echo'
15412 fi
15413 export as_echo_body
15414 as_echo='sh -c $as_echo_body as_echo'
15415fi
15416
15417# The user is always right.
15418if test "${PATH_SEPARATOR+set}" != set; then
15419 PATH_SEPARATOR=:
15420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15422 PATH_SEPARATOR=';'
15423 }
15424fi
15425
15426
15427# IFS
15428# We need space, tab and new line, in precisely that order. Quoting is
15429# there to prevent editors from complaining about space-tab.
15430# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15431# splitting by setting IFS to empty value.)
15432IFS=" "" $as_nl"
15433
15434# Find who we are. Look in the path if we contain no directory separator.
15435as_myself=
15436case $0 in #((
15437 *[\\/]* ) as_myself=$0 ;;
15438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15439for as_dir in $PATH
15440do
15441 IFS=$as_save_IFS
15442 test -z "$as_dir" && as_dir=.
15443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15444 done
15445IFS=$as_save_IFS
15446
15447 ;;
15448esac
15449# We did not find ourselves, most probably we were run as `sh COMMAND'
15450# in which case we are not to be found in the path.
15451if test "x$as_myself" = x; then
15452 as_myself=$0
15453fi
15454if test ! -f "$as_myself"; then
15455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15456 exit 1
15457fi
15458
15459# Unset variables that we do not need and which cause bugs (e.g. in
15460# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15461# suppresses any "Segmentation fault" message there. '((' could
15462# trigger a bug in pdksh 5.2.14.
15463for as_var in BASH_ENV ENV MAIL MAILPATH
15464do eval test x\${$as_var+set} = xset \
15465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15466done
15467PS1='$ '
15468PS2='> '
15469PS4='+ '
15470
15471# NLS nuisances.
15472LC_ALL=C
15473export LC_ALL
15474LANGUAGE=C
15475export LANGUAGE
15476
15477# CDPATH.
15478(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15479
15480
15481# as_fn_error STATUS ERROR [LINENO LOG_FD]
15482# ----------------------------------------
15483# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15484# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15485# script with STATUS, using 1 if that was 0.
15486as_fn_error ()
15487{
15488 as_status=$1; test $as_status -eq 0 && as_status=1
15489 if test "$4"; then
15490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15492 fi
15493 $as_echo "$as_me: error: $2" >&2
15494 as_fn_exit $as_status
15495} # as_fn_error
15496
15497
15498# as_fn_set_status STATUS
15499# -----------------------
15500# Set $? to STATUS, without forking.
15501as_fn_set_status ()
15502{
15503 return $1
15504} # as_fn_set_status
15505
15506# as_fn_exit STATUS
15507# -----------------
15508# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15509as_fn_exit ()
15510{
15511 set +e
15512 as_fn_set_status $1
15513 exit $1
15514} # as_fn_exit
15515
15516# as_fn_unset VAR
15517# ---------------
15518# Portably unset VAR.
15519as_fn_unset ()
15520{
15521 { eval $1=; unset $1;}
15522}
15523as_unset=as_fn_unset
15524# as_fn_append VAR VALUE
15525# ----------------------
15526# Append the text in VALUE to the end of the definition contained in VAR. Take
15527# advantage of any shell optimizations that allow amortized linear growth over
15528# repeated appends, instead of the typical quadratic growth present in naive
15529# implementations.
15530if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15531 eval 'as_fn_append ()
15532 {
15533 eval $1+=\$2
15534 }'
15535else
15536 as_fn_append ()
15537 {
15538 eval $1=\$$1\$2
15539 }
15540fi # as_fn_append
15541
15542# as_fn_arith ARG...
15543# ------------------
15544# Perform arithmetic evaluation on the ARGs, and store the result in the
15545# global $as_val. Take advantage of shells that can avoid forks. The arguments
15546# must be portable across $(()) and expr.
15547if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15548 eval 'as_fn_arith ()
15549 {
15550 as_val=$(( $* ))
15551 }'
15552else
15553 as_fn_arith ()
15554 {
15555 as_val=`expr "$@" || test $? -eq 1`
15556 }
15557fi # as_fn_arith
15558
15559
15560if expr a : '\(a\)' >/dev/null 2>&1 &&
15561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15562 as_expr=expr
15563else
15564 as_expr=false
15565fi
15566
15567if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15568 as_basename=basename
15569else
15570 as_basename=false
15571fi
15572
15573if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15574 as_dirname=dirname
15575else
15576 as_dirname=false
15577fi
15578
15579as_me=`$as_basename -- "$0" ||
15580$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15581 X"$0" : 'X\(//\)$' \| \
15582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15583$as_echo X/"$0" |
15584 sed '/^.*\/\([^/][^/]*\)\/*$/{
15585 s//\1/
15586 q
15587 }
15588 /^X\/\(\/\/\)$/{
15589 s//\1/
15590 q
15591 }
15592 /^X\/\(\/\).*/{
15593 s//\1/
15594 q
15595 }
15596 s/.*/./; q'`
15597
15598# Avoid depending upon Character Ranges.
15599as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15600as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15601as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15602as_cr_digits='0123456789'
15603as_cr_alnum=$as_cr_Letters$as_cr_digits
15604
15605ECHO_C= ECHO_N= ECHO_T=
15606case `echo -n x` in #(((((
15607-n*)
15608 case `echo 'xy\c'` in
15609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15610 xy) ECHO_C='\c';;
15611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15612 ECHO_T=' ';;
15613 esac;;
15614*)
15615 ECHO_N='-n';;
15616esac
15617
15618rm -f conf$$ conf$$.exe conf$$.file
15619if test -d conf$$.dir; then
15620 rm -f conf$$.dir/conf$$.file
15621else
15622 rm -f conf$$.dir
15623 mkdir conf$$.dir 2>/dev/null
15624fi
15625if (echo >conf$$.file) 2>/dev/null; then
15626 if ln -s conf$$.file conf$$ 2>/dev/null; then
15627 as_ln_s='ln -s'
15628 # ... but there are two gotchas:
15629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15631 # In both cases, we have to default to `cp -pR'.
15632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15633 as_ln_s='cp -pR'
15634 elif ln conf$$.file conf$$ 2>/dev/null; then
15635 as_ln_s=ln
15636 else
15637 as_ln_s='cp -pR'
15638 fi
15639else
15640 as_ln_s='cp -pR'
15641fi
15642rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15643rmdir conf$$.dir 2>/dev/null
15644
15645
15646# as_fn_mkdir_p
15647# -------------
15648# Create "$as_dir" as a directory, including parents if necessary.
15649as_fn_mkdir_p ()
15650{
15651
15652 case $as_dir in #(
15653 -*) as_dir=./$as_dir;;
15654 esac
15655 test -d "$as_dir" || eval $as_mkdir_p || {
15656 as_dirs=
15657 while :; do
15658 case $as_dir in #(
15659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15660 *) as_qdir=$as_dir;;
15661 esac
15662 as_dirs="'$as_qdir' $as_dirs"
15663 as_dir=`$as_dirname -- "$as_dir" ||
15664$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15665 X"$as_dir" : 'X\(//\)[^/]' \| \
15666 X"$as_dir" : 'X\(//\)$' \| \
15667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15668$as_echo X"$as_dir" |
15669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15670 s//\1/
15671 q
15672 }
15673 /^X\(\/\/\)[^/].*/{
15674 s//\1/
15675 q
15676 }
15677 /^X\(\/\/\)$/{
15678 s//\1/
15679 q
15680 }
15681 /^X\(\/\).*/{
15682 s//\1/
15683 q
15684 }
15685 s/.*/./; q'`
15686 test -d "$as_dir" && break
15687 done
15688 test -z "$as_dirs" || eval "mkdir $as_dirs"
15689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15690
15691
15692} # as_fn_mkdir_p
15693if mkdir -p . 2>/dev/null; then
15694 as_mkdir_p='mkdir -p "$as_dir"'
15695else
15696 test -d ./-p && rmdir ./-p
15697 as_mkdir_p=false
15698fi
15699
15700
15701# as_fn_executable_p FILE
15702# -----------------------
15703# Test if FILE is an executable regular file.
15704as_fn_executable_p ()
15705{
15706 test -f "$1" && test -x "$1"
15707} # as_fn_executable_p
15708as_test_x='test -x'
15709as_executable_p=as_fn_executable_p
15710
15711# Sed expression to map a string onto a valid CPP name.
15712as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15713
15714# Sed expression to map a string onto a valid variable name.
15715as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15716
15717
15718exec 6>&1
15719## ----------------------------------- ##
15720## Main body of $CONFIG_STATUS script. ##
15721## ----------------------------------- ##
15722_ASEOF
15723test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15724
15725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15726# Save the log message, to keep $0 and so on meaningful, and to
15727# report actual input values of CONFIG_FILES etc. instead of their
15728# values after options handling.
15729ac_log="
15730This file was extended by binutils $as_me 2.33.50, which was
15731generated by GNU Autoconf 2.69. Invocation command line was
15732
15733 CONFIG_FILES = $CONFIG_FILES
15734 CONFIG_HEADERS = $CONFIG_HEADERS
15735 CONFIG_LINKS = $CONFIG_LINKS
15736 CONFIG_COMMANDS = $CONFIG_COMMANDS
15737 $ $0 $@
15738
15739on `(hostname || uname -n) 2>/dev/null | sed 1q`
15740"
15741
15742_ACEOF
15743
15744case $ac_config_files in *"
15745"*) set x $ac_config_files; shift; ac_config_files=$*;;
15746esac
15747
15748case $ac_config_headers in *"
15749"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15750esac
15751
15752
15753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15754# Files that config.status was made for.
15755config_files="$ac_config_files"
15756config_headers="$ac_config_headers"
15757config_commands="$ac_config_commands"
15758
15759_ACEOF
15760
15761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762ac_cs_usage="\
15763\`$as_me' instantiates files and other configuration actions
15764from templates according to the current configuration. Unless the files
15765and actions are specified as TAGs, all are instantiated by default.
15766
15767Usage: $0 [OPTION]... [TAG]...
15768
15769 -h, --help print this help, then exit
15770 -V, --version print version number and configuration settings, then exit
15771 --config print configuration, then exit
15772 -q, --quiet, --silent
15773 do not print progress messages
15774 -d, --debug don't remove temporary files
15775 --recheck update $as_me by reconfiguring in the same conditions
15776 --file=FILE[:TEMPLATE]
15777 instantiate the configuration file FILE
15778 --header=FILE[:TEMPLATE]
15779 instantiate the configuration header FILE
15780
15781Configuration files:
15782$config_files
15783
15784Configuration headers:
15785$config_headers
15786
15787Configuration commands:
15788$config_commands
15789
15790Report bugs to the package provider."
15791
15792_ACEOF
15793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15794ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15795ac_cs_version="\\
15796binutils config.status 2.33.50
15797configured by $0, generated by GNU Autoconf 2.69,
15798 with options \\"\$ac_cs_config\\"
15799
15800Copyright (C) 2012 Free Software Foundation, Inc.
15801This config.status script is free software; the Free Software Foundation
15802gives unlimited permission to copy, distribute and modify it."
15803
15804ac_pwd='$ac_pwd'
15805srcdir='$srcdir'
15806INSTALL='$INSTALL'
15807MKDIR_P='$MKDIR_P'
15808AWK='$AWK'
15809test -n "\$AWK" || AWK=awk
15810_ACEOF
15811
15812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15813# The default lists apply if the user does not specify any file.
15814ac_need_defaults=:
15815while test $# != 0
15816do
15817 case $1 in
15818 --*=?*)
15819 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15820 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15821 ac_shift=:
15822 ;;
15823 --*=)
15824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15825 ac_optarg=
15826 ac_shift=:
15827 ;;
15828 *)
15829 ac_option=$1
15830 ac_optarg=$2
15831 ac_shift=shift
15832 ;;
15833 esac
15834
15835 case $ac_option in
15836 # Handling of the options.
15837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15838 ac_cs_recheck=: ;;
15839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15840 $as_echo "$ac_cs_version"; exit ;;
15841 --config | --confi | --conf | --con | --co | --c )
15842 $as_echo "$ac_cs_config"; exit ;;
15843 --debug | --debu | --deb | --de | --d | -d )
15844 debug=: ;;
15845 --file | --fil | --fi | --f )
15846 $ac_shift
15847 case $ac_optarg in
15848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15849 '') as_fn_error $? "missing file argument" ;;
15850 esac
15851 as_fn_append CONFIG_FILES " '$ac_optarg'"
15852 ac_need_defaults=false;;
15853 --header | --heade | --head | --hea )
15854 $ac_shift
15855 case $ac_optarg in
15856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15857 esac
15858 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15859 ac_need_defaults=false;;
15860 --he | --h)
15861 # Conflict between --help and --header
15862 as_fn_error $? "ambiguous option: \`$1'
15863Try \`$0 --help' for more information.";;
15864 --help | --hel | -h )
15865 $as_echo "$ac_cs_usage"; exit ;;
15866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15868 ac_cs_silent=: ;;
15869
15870 # This is an error.
15871 -*) as_fn_error $? "unrecognized option: \`$1'
15872Try \`$0 --help' for more information." ;;
15873
15874 *) as_fn_append ac_config_targets " $1"
15875 ac_need_defaults=false ;;
15876
15877 esac
15878 shift
15879done
15880
15881ac_configure_extra_args=
15882
15883if $ac_cs_silent; then
15884 exec 6>/dev/null
15885 ac_configure_extra_args="$ac_configure_extra_args --silent"
15886fi
15887
15888_ACEOF
15889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15890if \$ac_cs_recheck; then
15891 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15892 shift
15893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15894 CONFIG_SHELL='$SHELL'
15895 export CONFIG_SHELL
15896 exec "\$@"
15897fi
15898
15899_ACEOF
15900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15901exec 5>>config.log
15902{
15903 echo
15904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15905## Running $as_me. ##
15906_ASBOX
15907 $as_echo "$ac_log"
15908} >&5
15909
15910_ACEOF
15911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15912#
15913# INIT-COMMANDS
15914#
15915AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15916
15917
15918# The HP-UX ksh and POSIX shell print the target directory to stdout
15919# if CDPATH is set.
15920(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15921
15922sed_quote_subst='$sed_quote_subst'
15923double_quote_subst='$double_quote_subst'
15924delay_variable_subst='$delay_variable_subst'
15925macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15926macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15927enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15928enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15929pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15930enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15931SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15932ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15933host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15934host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15935host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15936build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15937build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15938build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15939SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15940Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15941GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15942EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15943FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15944LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15945NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15946LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15947max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15948ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15949exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15950lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15951lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15952lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15953reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15954reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15955OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15956deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15957file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15958AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15959AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15960STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15961RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15962old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15963old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15964old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15965lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15966CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15967CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15968compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15969GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15970lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15971lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15972lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15973lt_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"`'
15974objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15975MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15976lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15977lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15978lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15979lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15980lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15981need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15982DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15983NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15984LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15985OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15986OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15987libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15988shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15989extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15990archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15991enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15992export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15993whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15994compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15995old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15996old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15997archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15998archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15999module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16000module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16001with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16002allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16003no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16004hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16005hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16006hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16007hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16008hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16009hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16010hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16011hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16012inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16013link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16014fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16015always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16016export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16017exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16018include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16019prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16020file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16021variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16022need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16023need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16024version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16025runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16026shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16027shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16028libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16029library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16030soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16031install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16032postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16033postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16034finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16035finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16036hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16037sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16038sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16039hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16040enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16041enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16042enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16043old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16044striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16045
16046LTCC='$LTCC'
16047LTCFLAGS='$LTCFLAGS'
16048compiler='$compiler_DEFAULT'
16049
16050# A function that is used when there is no print builtin or printf.
16051func_fallback_echo ()
16052{
16053 eval 'cat <<_LTECHO_EOF
16054\$1
16055_LTECHO_EOF'
16056}
16057
16058# Quote evaled strings.
16059for var in SHELL \
16060ECHO \
16061SED \
16062GREP \
16063EGREP \
16064FGREP \
16065LD \
16066NM \
16067LN_S \
16068lt_SP2NL \
16069lt_NL2SP \
16070reload_flag \
16071OBJDUMP \
16072deplibs_check_method \
16073file_magic_cmd \
16074AR \
16075AR_FLAGS \
16076STRIP \
16077RANLIB \
16078CC \
16079CFLAGS \
16080compiler \
16081lt_cv_sys_global_symbol_pipe \
16082lt_cv_sys_global_symbol_to_cdecl \
16083lt_cv_sys_global_symbol_to_c_name_address \
16084lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16085lt_prog_compiler_no_builtin_flag \
16086lt_prog_compiler_wl \
16087lt_prog_compiler_pic \
16088lt_prog_compiler_static \
16089lt_cv_prog_compiler_c_o \
16090need_locks \
16091DSYMUTIL \
16092NMEDIT \
16093LIPO \
16094OTOOL \
16095OTOOL64 \
16096shrext_cmds \
16097export_dynamic_flag_spec \
16098whole_archive_flag_spec \
16099compiler_needs_object \
16100with_gnu_ld \
16101allow_undefined_flag \
16102no_undefined_flag \
16103hardcode_libdir_flag_spec \
16104hardcode_libdir_flag_spec_ld \
16105hardcode_libdir_separator \
16106fix_srcfile_path \
16107exclude_expsyms \
16108include_expsyms \
16109file_list_spec \
16110variables_saved_for_relink \
16111libname_spec \
16112library_names_spec \
16113soname_spec \
16114install_override_mode \
16115finish_eval \
16116old_striplib \
16117striplib; do
16118 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16119 *[\\\\\\\`\\"\\\$]*)
16120 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16121 ;;
16122 *)
16123 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16124 ;;
16125 esac
16126done
16127
16128# Double-quote double-evaled strings.
16129for var in reload_cmds \
16130old_postinstall_cmds \
16131old_postuninstall_cmds \
16132old_archive_cmds \
16133extract_expsyms_cmds \
16134old_archive_from_new_cmds \
16135old_archive_from_expsyms_cmds \
16136archive_cmds \
16137archive_expsym_cmds \
16138module_cmds \
16139module_expsym_cmds \
16140export_symbols_cmds \
16141prelink_cmds \
16142postinstall_cmds \
16143postuninstall_cmds \
16144finish_cmds \
16145sys_lib_search_path_spec \
16146sys_lib_dlsearch_path_spec; do
16147 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16148 *[\\\\\\\`\\"\\\$]*)
16149 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16150 ;;
16151 *)
16152 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16153 ;;
16154 esac
16155done
16156
16157ac_aux_dir='$ac_aux_dir'
16158xsi_shell='$xsi_shell'
16159lt_shell_append='$lt_shell_append'
16160
16161# See if we are running on zsh, and set the options which allow our
16162# commands through without removal of \ escapes INIT.
16163if test -n "\${ZSH_VERSION+set}" ; then
16164 setopt NO_GLOB_SUBST
16165fi
16166
16167
16168 PACKAGE='$PACKAGE'
16169 VERSION='$VERSION'
16170 TIMESTAMP='$TIMESTAMP'
16171 RM='$RM'
16172 ofile='$ofile'
16173
16174
16175
16176# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16177 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16178 # from automake.
16179 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16180 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16181 LINGUAS="${LINGUAS-%UNSET%}"
16182
16183
16184_ACEOF
16185
16186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187
16188# Handling of arguments.
16189for ac_config_target in $ac_config_targets
16190do
16191 case $ac_config_target in
16192 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16193 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16194 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16195 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16196 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16197 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16198 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16199
16200 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16201 esac
16202done
16203
16204
16205# If the user did not use the arguments to specify the items to instantiate,
16206# then the envvar interface is used. Set only those that are not.
16207# We use the long form for the default assignment because of an extremely
16208# bizarre bug on SunOS 4.1.3.
16209if $ac_need_defaults; then
16210 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16211 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16212 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16213fi
16214
16215# Have a temporary directory for convenience. Make it in the build tree
16216# simply because there is no reason against having it here, and in addition,
16217# creating and moving files from /tmp can sometimes cause problems.
16218# Hook for its removal unless debugging.
16219# Note that there is a small window in which the directory will not be cleaned:
16220# after its creation but before its name has been assigned to `$tmp'.
16221$debug ||
16222{
16223 tmp= ac_tmp=
16224 trap 'exit_status=$?
16225 : "${ac_tmp:=$tmp}"
16226 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16227' 0
16228 trap 'as_fn_exit 1' 1 2 13 15
16229}
16230# Create a (secure) tmp directory for tmp files.
16231
16232{
16233 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16234 test -d "$tmp"
16235} ||
16236{
16237 tmp=./conf$$-$RANDOM
16238 (umask 077 && mkdir "$tmp")
16239} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16240ac_tmp=$tmp
16241
16242# Set up the scripts for CONFIG_FILES section.
16243# No need to generate them if there are no CONFIG_FILES.
16244# This happens for instance with `./config.status config.h'.
16245if test -n "$CONFIG_FILES"; then
16246
16247
16248ac_cr=`echo X | tr X '\015'`
16249# On cygwin, bash can eat \r inside `` if the user requested igncr.
16250# But we know of no other shell where ac_cr would be empty at this
16251# point, so we can use a bashism as a fallback.
16252if test "x$ac_cr" = x; then
16253 eval ac_cr=\$\'\\r\'
16254fi
16255ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16256if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16257 ac_cs_awk_cr='\\r'
16258else
16259 ac_cs_awk_cr=$ac_cr
16260fi
16261
16262echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16263_ACEOF
16264
16265
16266{
16267 echo "cat >conf$$subs.awk <<_ACEOF" &&
16268 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16269 echo "_ACEOF"
16270} >conf$$subs.sh ||
16271 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16272ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16273ac_delim='%!_!# '
16274for ac_last_try in false false false false false :; do
16275 . ./conf$$subs.sh ||
16276 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16277
16278 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16279 if test $ac_delim_n = $ac_delim_num; then
16280 break
16281 elif $ac_last_try; then
16282 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16283 else
16284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16285 fi
16286done
16287rm -f conf$$subs.sh
16288
16289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16291_ACEOF
16292sed -n '
16293h
16294s/^/S["/; s/!.*/"]=/
16295p
16296g
16297s/^[^!]*!//
16298:repl
16299t repl
16300s/'"$ac_delim"'$//
16301t delim
16302:nl
16303h
16304s/\(.\{148\}\)..*/\1/
16305t more1
16306s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16307p
16308n
16309b repl
16310:more1
16311s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16312p
16313g
16314s/.\{148\}//
16315t nl
16316:delim
16317h
16318s/\(.\{148\}\)..*/\1/
16319t more2
16320s/["\\]/\\&/g; s/^/"/; s/$/"/
16321p
16322b
16323:more2
16324s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16325p
16326g
16327s/.\{148\}//
16328t delim
16329' <conf$$subs.awk | sed '
16330/^[^""]/{
16331 N
16332 s/\n//
16333}
16334' >>$CONFIG_STATUS || ac_write_fail=1
16335rm -f conf$$subs.awk
16336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337_ACAWK
16338cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16339 for (key in S) S_is_set[key] = 1
16340 FS = "\a"
16341
16342}
16343{
16344 line = $ 0
16345 nfields = split(line, field, "@")
16346 substed = 0
16347 len = length(field[1])
16348 for (i = 2; i < nfields; i++) {
16349 key = field[i]
16350 keylen = length(key)
16351 if (S_is_set[key]) {
16352 value = S[key]
16353 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16354 len += length(value) + length(field[++i])
16355 substed = 1
16356 } else
16357 len += 1 + keylen
16358 }
16359
16360 print line
16361}
16362
16363_ACAWK
16364_ACEOF
16365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16366if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16367 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16368else
16369 cat
16370fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16371 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16372_ACEOF
16373
16374# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16375# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16376# trailing colons and then remove the whole line if VPATH becomes empty
16377# (actually we leave an empty line to preserve line numbers).
16378if test "x$srcdir" = x.; then
16379 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16380h
16381s///
16382s/^/:/
16383s/[ ]*$/:/
16384s/:\$(srcdir):/:/g
16385s/:\${srcdir}:/:/g
16386s/:@srcdir@:/:/g
16387s/^:*//
16388s/:*$//
16389x
16390s/\(=[ ]*\).*/\1/
16391G
16392s/\n//
16393s/^[^=]*=[ ]*$//
16394}'
16395fi
16396
16397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398fi # test -n "$CONFIG_FILES"
16399
16400# Set up the scripts for CONFIG_HEADERS section.
16401# No need to generate them if there are no CONFIG_HEADERS.
16402# This happens for instance with `./config.status Makefile'.
16403if test -n "$CONFIG_HEADERS"; then
16404cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16405BEGIN {
16406_ACEOF
16407
16408# Transform confdefs.h into an awk script `defines.awk', embedded as
16409# here-document in config.status, that substitutes the proper values into
16410# config.h.in to produce config.h.
16411
16412# Create a delimiter string that does not exist in confdefs.h, to ease
16413# handling of long lines.
16414ac_delim='%!_!# '
16415for ac_last_try in false false :; do
16416 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16417 if test -z "$ac_tt"; then
16418 break
16419 elif $ac_last_try; then
16420 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16421 else
16422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16423 fi
16424done
16425
16426# For the awk script, D is an array of macro values keyed by name,
16427# likewise P contains macro parameters if any. Preserve backslash
16428# newline sequences.
16429
16430ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16431sed -n '
16432s/.\{148\}/&'"$ac_delim"'/g
16433t rset
16434:rset
16435s/^[ ]*#[ ]*define[ ][ ]*/ /
16436t def
16437d
16438:def
16439s/\\$//
16440t bsnl
16441s/["\\]/\\&/g
16442s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16443D["\1"]=" \3"/p
16444s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16445d
16446:bsnl
16447s/["\\]/\\&/g
16448s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16449D["\1"]=" \3\\\\\\n"\\/p
16450t cont
16451s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16452t cont
16453d
16454:cont
16455n
16456s/.\{148\}/&'"$ac_delim"'/g
16457t clear
16458:clear
16459s/\\$//
16460t bsnlc
16461s/["\\]/\\&/g; s/^/"/; s/$/"/p
16462d
16463:bsnlc
16464s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16465b cont
16466' <confdefs.h | sed '
16467s/'"$ac_delim"'/"\\\
16468"/g' >>$CONFIG_STATUS || ac_write_fail=1
16469
16470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16471 for (key in D) D_is_set[key] = 1
16472 FS = "\a"
16473}
16474/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16475 line = \$ 0
16476 split(line, arg, " ")
16477 if (arg[1] == "#") {
16478 defundef = arg[2]
16479 mac1 = arg[3]
16480 } else {
16481 defundef = substr(arg[1], 2)
16482 mac1 = arg[2]
16483 }
16484 split(mac1, mac2, "(") #)
16485 macro = mac2[1]
16486 prefix = substr(line, 1, index(line, defundef) - 1)
16487 if (D_is_set[macro]) {
16488 # Preserve the white space surrounding the "#".
16489 print prefix "define", macro P[macro] D[macro]
16490 next
16491 } else {
16492 # Replace #undef with comments. This is necessary, for example,
16493 # in the case of _POSIX_SOURCE, which is predefined and required
16494 # on some systems where configure will not decide to define it.
16495 if (defundef == "undef") {
16496 print "/*", prefix defundef, macro, "*/"
16497 next
16498 }
16499 }
16500}
16501{ print }
16502_ACAWK
16503_ACEOF
16504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16506fi # test -n "$CONFIG_HEADERS"
16507
16508
16509eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16510shift
16511for ac_tag
16512do
16513 case $ac_tag in
16514 :[FHLC]) ac_mode=$ac_tag; continue;;
16515 esac
16516 case $ac_mode$ac_tag in
16517 :[FHL]*:*);;
16518 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16519 :[FH]-) ac_tag=-:-;;
16520 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16521 esac
16522 ac_save_IFS=$IFS
16523 IFS=:
16524 set x $ac_tag
16525 IFS=$ac_save_IFS
16526 shift
16527 ac_file=$1
16528 shift
16529
16530 case $ac_mode in
16531 :L) ac_source=$1;;
16532 :[FH])
16533 ac_file_inputs=
16534 for ac_f
16535 do
16536 case $ac_f in
16537 -) ac_f="$ac_tmp/stdin";;
16538 *) # Look for the file first in the build tree, then in the source tree
16539 # (if the path is not absolute). The absolute path cannot be DOS-style,
16540 # because $ac_f cannot contain `:'.
16541 test -f "$ac_f" ||
16542 case $ac_f in
16543 [\\/$]*) false;;
16544 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16545 esac ||
16546 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16547 esac
16548 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16549 as_fn_append ac_file_inputs " '$ac_f'"
16550 done
16551
16552 # Let's still pretend it is `configure' which instantiates (i.e., don't
16553 # use $as_me), people would be surprised to read:
16554 # /* config.h. Generated by config.status. */
16555 configure_input='Generated from '`
16556 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16557 `' by configure.'
16558 if test x"$ac_file" != x-; then
16559 configure_input="$ac_file. $configure_input"
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16561$as_echo "$as_me: creating $ac_file" >&6;}
16562 fi
16563 # Neutralize special characters interpreted by sed in replacement strings.
16564 case $configure_input in #(
16565 *\&* | *\|* | *\\* )
16566 ac_sed_conf_input=`$as_echo "$configure_input" |
16567 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16568 *) ac_sed_conf_input=$configure_input;;
16569 esac
16570
16571 case $ac_tag in
16572 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16574 esac
16575 ;;
16576 esac
16577
16578 ac_dir=`$as_dirname -- "$ac_file" ||
16579$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16580 X"$ac_file" : 'X\(//\)[^/]' \| \
16581 X"$ac_file" : 'X\(//\)$' \| \
16582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16583$as_echo X"$ac_file" |
16584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16585 s//\1/
16586 q
16587 }
16588 /^X\(\/\/\)[^/].*/{
16589 s//\1/
16590 q
16591 }
16592 /^X\(\/\/\)$/{
16593 s//\1/
16594 q
16595 }
16596 /^X\(\/\).*/{
16597 s//\1/
16598 q
16599 }
16600 s/.*/./; q'`
16601 as_dir="$ac_dir"; as_fn_mkdir_p
16602 ac_builddir=.
16603
16604case "$ac_dir" in
16605.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16606*)
16607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16608 # A ".." for each directory in $ac_dir_suffix.
16609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16610 case $ac_top_builddir_sub in
16611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16613 esac ;;
16614esac
16615ac_abs_top_builddir=$ac_pwd
16616ac_abs_builddir=$ac_pwd$ac_dir_suffix
16617# for backward compatibility:
16618ac_top_builddir=$ac_top_build_prefix
16619
16620case $srcdir in
16621 .) # We are building in place.
16622 ac_srcdir=.
16623 ac_top_srcdir=$ac_top_builddir_sub
16624 ac_abs_top_srcdir=$ac_pwd ;;
16625 [\\/]* | ?:[\\/]* ) # Absolute name.
16626 ac_srcdir=$srcdir$ac_dir_suffix;
16627 ac_top_srcdir=$srcdir
16628 ac_abs_top_srcdir=$srcdir ;;
16629 *) # Relative name.
16630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16631 ac_top_srcdir=$ac_top_build_prefix$srcdir
16632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16633esac
16634ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16635
16636
16637 case $ac_mode in
16638 :F)
16639 #
16640 # CONFIG_FILE
16641 #
16642
16643 case $INSTALL in
16644 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16645 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16646 esac
16647 ac_MKDIR_P=$MKDIR_P
16648 case $MKDIR_P in
16649 [\\/$]* | ?:[\\/]* ) ;;
16650 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16651 esac
16652_ACEOF
16653
16654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16655# If the template does not know about datarootdir, expand it.
16656# FIXME: This hack should be removed a few years after 2.60.
16657ac_datarootdir_hack=; ac_datarootdir_seen=
16658ac_sed_dataroot='
16659/datarootdir/ {
16660 p
16661 q
16662}
16663/@datadir@/p
16664/@docdir@/p
16665/@infodir@/p
16666/@localedir@/p
16667/@mandir@/p'
16668case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16669*datarootdir*) ac_datarootdir_seen=yes;;
16670*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16672$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16673_ACEOF
16674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16675 ac_datarootdir_hack='
16676 s&@datadir@&$datadir&g
16677 s&@docdir@&$docdir&g
16678 s&@infodir@&$infodir&g
16679 s&@localedir@&$localedir&g
16680 s&@mandir@&$mandir&g
16681 s&\\\${datarootdir}&$datarootdir&g' ;;
16682esac
16683_ACEOF
16684
16685# Neutralize VPATH when `$srcdir' = `.'.
16686# Shell code in configure.ac might set extrasub.
16687# FIXME: do we really want to maintain this feature?
16688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16689ac_sed_extra="$ac_vpsub
16690$extrasub
16691_ACEOF
16692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16693:t
16694/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16695s|@configure_input@|$ac_sed_conf_input|;t t
16696s&@top_builddir@&$ac_top_builddir_sub&;t t
16697s&@top_build_prefix@&$ac_top_build_prefix&;t t
16698s&@srcdir@&$ac_srcdir&;t t
16699s&@abs_srcdir@&$ac_abs_srcdir&;t t
16700s&@top_srcdir@&$ac_top_srcdir&;t t
16701s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16702s&@builddir@&$ac_builddir&;t t
16703s&@abs_builddir@&$ac_abs_builddir&;t t
16704s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16705s&@INSTALL@&$ac_INSTALL&;t t
16706s&@MKDIR_P@&$ac_MKDIR_P&;t t
16707$ac_datarootdir_hack
16708"
16709eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16710 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16711
16712test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16713 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16714 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16715 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16717which seems to be undefined. Please make sure it is defined" >&5
16718$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16719which seems to be undefined. Please make sure it is defined" >&2;}
16720
16721 rm -f "$ac_tmp/stdin"
16722 case $ac_file in
16723 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16724 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16725 esac \
16726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16727 ;;
16728 :H)
16729 #
16730 # CONFIG_HEADER
16731 #
16732 if test x"$ac_file" != x-; then
16733 {
16734 $as_echo "/* $configure_input */" \
16735 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16736 } >"$ac_tmp/config.h" \
16737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16738 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16740$as_echo "$as_me: $ac_file is unchanged" >&6;}
16741 else
16742 rm -f "$ac_file"
16743 mv "$ac_tmp/config.h" "$ac_file" \
16744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16745 fi
16746 else
16747 $as_echo "/* $configure_input */" \
16748 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16749 || as_fn_error $? "could not create -" "$LINENO" 5
16750 fi
16751# Compute "$ac_file"'s index in $config_headers.
16752_am_arg="$ac_file"
16753_am_stamp_count=1
16754for _am_header in $config_headers :; do
16755 case $_am_header in
16756 $_am_arg | $_am_arg:* )
16757 break ;;
16758 * )
16759 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16760 esac
16761done
16762echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16763$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16764 X"$_am_arg" : 'X\(//\)[^/]' \| \
16765 X"$_am_arg" : 'X\(//\)$' \| \
16766 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16767$as_echo X"$_am_arg" |
16768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16769 s//\1/
16770 q
16771 }
16772 /^X\(\/\/\)[^/].*/{
16773 s//\1/
16774 q
16775 }
16776 /^X\(\/\/\)$/{
16777 s//\1/
16778 q
16779 }
16780 /^X\(\/\).*/{
16781 s//\1/
16782 q
16783 }
16784 s/.*/./; q'`/stamp-h$_am_stamp_count
16785 ;;
16786
16787 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16788$as_echo "$as_me: executing $ac_file commands" >&6;}
16789 ;;
16790 esac
16791
16792
16793 case $ac_file$ac_mode in
16794 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16795 # Older Autoconf quotes --file arguments for eval, but not when files
16796 # are listed without --file. Let's play safe and only enable the eval
16797 # if we detect the quoting.
16798 case $CONFIG_FILES in
16799 *\'*) eval set x "$CONFIG_FILES" ;;
16800 *) set x $CONFIG_FILES ;;
16801 esac
16802 shift
16803 for mf
16804 do
16805 # Strip MF so we end up with the name of the file.
16806 mf=`echo "$mf" | sed -e 's/:.*$//'`
16807 # Check whether this is an Automake generated Makefile or not.
16808 # We used to match only the files named 'Makefile.in', but
16809 # some people rename them; so instead we look at the file content.
16810 # Grep'ing the first line is not enough: some people post-process
16811 # each Makefile.in and add a new line on top of each file to say so.
16812 # Grep'ing the whole file is not good either: AIX grep has a line
16813 # limit of 2048, but all sed's we know have understand at least 4000.
16814 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16815 dirpart=`$as_dirname -- "$mf" ||
16816$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16817 X"$mf" : 'X\(//\)[^/]' \| \
16818 X"$mf" : 'X\(//\)$' \| \
16819 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16820$as_echo X"$mf" |
16821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16822 s//\1/
16823 q
16824 }
16825 /^X\(\/\/\)[^/].*/{
16826 s//\1/
16827 q
16828 }
16829 /^X\(\/\/\)$/{
16830 s//\1/
16831 q
16832 }
16833 /^X\(\/\).*/{
16834 s//\1/
16835 q
16836 }
16837 s/.*/./; q'`
16838 else
16839 continue
16840 fi
16841 # Extract the definition of DEPDIR, am__include, and am__quote
16842 # from the Makefile without running 'make'.
16843 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16844 test -z "$DEPDIR" && continue
16845 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16846 test -z "$am__include" && continue
16847 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16848 # Find all dependency output files, they are included files with
16849 # $(DEPDIR) in their names. We invoke sed twice because it is the
16850 # simplest approach to changing $(DEPDIR) to its actual value in the
16851 # expansion.
16852 for file in `sed -n "
16853 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16854 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16855 # Make sure the directory exists.
16856 test -f "$dirpart/$file" && continue
16857 fdir=`$as_dirname -- "$file" ||
16858$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16859 X"$file" : 'X\(//\)[^/]' \| \
16860 X"$file" : 'X\(//\)$' \| \
16861 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16862$as_echo X"$file" |
16863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16864 s//\1/
16865 q
16866 }
16867 /^X\(\/\/\)[^/].*/{
16868 s//\1/
16869 q
16870 }
16871 /^X\(\/\/\)$/{
16872 s//\1/
16873 q
16874 }
16875 /^X\(\/\).*/{
16876 s//\1/
16877 q
16878 }
16879 s/.*/./; q'`
16880 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16881 # echo "creating $dirpart/$file"
16882 echo '# dummy' > "$dirpart/$file"
16883 done
16884 done
16885}
16886 ;;
16887 "libtool":C)
16888
16889 # See if we are running on zsh, and set the options which allow our
16890 # commands through without removal of \ escapes.
16891 if test -n "${ZSH_VERSION+set}" ; then
16892 setopt NO_GLOB_SUBST
16893 fi
16894
16895 cfgfile="${ofile}T"
16896 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16897 $RM "$cfgfile"
16898
16899 cat <<_LT_EOF >> "$cfgfile"
16900#! $SHELL
16901
16902# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16903# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16904# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16905# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16906#
16907# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16908# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16909# Written by Gordon Matzigkeit, 1996
16910#
16911# This file is part of GNU Libtool.
16912#
16913# GNU Libtool is free software; you can redistribute it and/or
16914# modify it under the terms of the GNU General Public License as
16915# published by the Free Software Foundation; either version 2 of
16916# the License, or (at your option) any later version.
16917#
16918# As a special exception to the GNU General Public License,
16919# if you distribute this file as part of a program or library that
16920# is built using GNU Libtool, you may include this file under the
16921# same distribution terms that you use for the rest of that program.
16922#
16923# GNU Libtool is distributed in the hope that it will be useful,
16924# but WITHOUT ANY WARRANTY; without even the implied warranty of
16925# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16926# GNU General Public License for more details.
16927#
16928# You should have received a copy of the GNU General Public License
16929# along with GNU Libtool; see the file COPYING. If not, a copy
16930# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16931# obtained by writing to the Free Software Foundation, Inc.,
16932# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16933
16934
16935# The names of the tagged configurations supported by this script.
16936available_tags=""
16937
16938# ### BEGIN LIBTOOL CONFIG
16939
16940# Which release of libtool.m4 was used?
16941macro_version=$macro_version
16942macro_revision=$macro_revision
16943
16944# Whether or not to build shared libraries.
16945build_libtool_libs=$enable_shared
16946
16947# Whether or not to build static libraries.
16948build_old_libs=$enable_static
16949
16950# What type of objects to build.
16951pic_mode=$pic_mode
16952
16953# Whether or not to optimize for fast installation.
16954fast_install=$enable_fast_install
16955
16956# Shell to use when invoking shell scripts.
16957SHELL=$lt_SHELL
16958
16959# An echo program that protects backslashes.
16960ECHO=$lt_ECHO
16961
16962# The host system.
16963host_alias=$host_alias
16964host=$host
16965host_os=$host_os
16966
16967# The build system.
16968build_alias=$build_alias
16969build=$build
16970build_os=$build_os
16971
16972# A sed program that does not truncate output.
16973SED=$lt_SED
16974
16975# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16976Xsed="\$SED -e 1s/^X//"
16977
16978# A grep program that handles long lines.
16979GREP=$lt_GREP
16980
16981# An ERE matcher.
16982EGREP=$lt_EGREP
16983
16984# A literal string matcher.
16985FGREP=$lt_FGREP
16986
16987# A BSD- or MS-compatible name lister.
16988NM=$lt_NM
16989
16990# Whether we need soft or hard links.
16991LN_S=$lt_LN_S
16992
16993# What is the maximum length of a command?
16994max_cmd_len=$max_cmd_len
16995
16996# Object file suffix (normally "o").
16997objext=$ac_objext
16998
16999# Executable file suffix (normally "").
17000exeext=$exeext
17001
17002# whether the shell understands "unset".
17003lt_unset=$lt_unset
17004
17005# turn spaces into newlines.
17006SP2NL=$lt_lt_SP2NL
17007
17008# turn newlines into spaces.
17009NL2SP=$lt_lt_NL2SP
17010
17011# An object symbol dumper.
17012OBJDUMP=$lt_OBJDUMP
17013
17014# Method to check whether dependent libraries are shared objects.
17015deplibs_check_method=$lt_deplibs_check_method
17016
17017# Command to use when deplibs_check_method == "file_magic".
17018file_magic_cmd=$lt_file_magic_cmd
17019
17020# The archiver.
17021AR=$lt_AR
17022AR_FLAGS=$lt_AR_FLAGS
17023
17024# A symbol stripping program.
17025STRIP=$lt_STRIP
17026
17027# Commands used to install an old-style archive.
17028RANLIB=$lt_RANLIB
17029old_postinstall_cmds=$lt_old_postinstall_cmds
17030old_postuninstall_cmds=$lt_old_postuninstall_cmds
17031
17032# Whether to use a lock for old archive extraction.
17033lock_old_archive_extraction=$lock_old_archive_extraction
17034
17035# A C compiler.
17036LTCC=$lt_CC
17037
17038# LTCC compiler flags.
17039LTCFLAGS=$lt_CFLAGS
17040
17041# Take the output of nm and produce a listing of raw symbols and C names.
17042global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17043
17044# Transform the output of nm in a proper C declaration.
17045global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17046
17047# Transform the output of nm in a C name address pair.
17048global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17049
17050# Transform the output of nm in a C name address pair when lib prefix is needed.
17051global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17052
17053# The name of the directory that contains temporary libtool files.
17054objdir=$objdir
17055
17056# Used to examine libraries when file_magic_cmd begins with "file".
17057MAGIC_CMD=$MAGIC_CMD
17058
17059# Must we lock files when doing compilation?
17060need_locks=$lt_need_locks
17061
17062# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17063DSYMUTIL=$lt_DSYMUTIL
17064
17065# Tool to change global to local symbols on Mac OS X.
17066NMEDIT=$lt_NMEDIT
17067
17068# Tool to manipulate fat objects and archives on Mac OS X.
17069LIPO=$lt_LIPO
17070
17071# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17072OTOOL=$lt_OTOOL
17073
17074# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17075OTOOL64=$lt_OTOOL64
17076
17077# Old archive suffix (normally "a").
17078libext=$libext
17079
17080# Shared library suffix (normally ".so").
17081shrext_cmds=$lt_shrext_cmds
17082
17083# The commands to extract the exported symbol list from a shared archive.
17084extract_expsyms_cmds=$lt_extract_expsyms_cmds
17085
17086# Variables whose values should be saved in libtool wrapper scripts and
17087# restored at link time.
17088variables_saved_for_relink=$lt_variables_saved_for_relink
17089
17090# Do we need the "lib" prefix for modules?
17091need_lib_prefix=$need_lib_prefix
17092
17093# Do we need a version for libraries?
17094need_version=$need_version
17095
17096# Library versioning type.
17097version_type=$version_type
17098
17099# Shared library runtime path variable.
17100runpath_var=$runpath_var
17101
17102# Shared library path variable.
17103shlibpath_var=$shlibpath_var
17104
17105# Is shlibpath searched before the hard-coded library search path?
17106shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17107
17108# Format of library name prefix.
17109libname_spec=$lt_libname_spec
17110
17111# List of archive names. First name is the real one, the rest are links.
17112# The last name is the one that the linker finds with -lNAME
17113library_names_spec=$lt_library_names_spec
17114
17115# The coded name of the library, if different from the real name.
17116soname_spec=$lt_soname_spec
17117
17118# Permission mode override for installation of shared libraries.
17119install_override_mode=$lt_install_override_mode
17120
17121# Command to use after installation of a shared archive.
17122postinstall_cmds=$lt_postinstall_cmds
17123
17124# Command to use after uninstallation of a shared archive.
17125postuninstall_cmds=$lt_postuninstall_cmds
17126
17127# Commands used to finish a libtool library installation in a directory.
17128finish_cmds=$lt_finish_cmds
17129
17130# As "finish_cmds", except a single script fragment to be evaled but
17131# not shown.
17132finish_eval=$lt_finish_eval
17133
17134# Whether we should hardcode library paths into libraries.
17135hardcode_into_libs=$hardcode_into_libs
17136
17137# Compile-time system search path for libraries.
17138sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17139
17140# Run-time system search path for libraries.
17141sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17142
17143# Whether dlopen is supported.
17144dlopen_support=$enable_dlopen
17145
17146# Whether dlopen of programs is supported.
17147dlopen_self=$enable_dlopen_self
17148
17149# Whether dlopen of statically linked programs is supported.
17150dlopen_self_static=$enable_dlopen_self_static
17151
17152# Commands to strip libraries.
17153old_striplib=$lt_old_striplib
17154striplib=$lt_striplib
17155
17156
17157# The linker used to build libraries.
17158LD=$lt_LD
17159
17160# How to create reloadable object files.
17161reload_flag=$lt_reload_flag
17162reload_cmds=$lt_reload_cmds
17163
17164# Commands used to build an old-style archive.
17165old_archive_cmds=$lt_old_archive_cmds
17166
17167# A language specific compiler.
17168CC=$lt_compiler
17169
17170# Is the compiler the GNU compiler?
17171with_gcc=$GCC
17172
17173# Compiler flag to turn off builtin functions.
17174no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17175
17176# How to pass a linker flag through the compiler.
17177wl=$lt_lt_prog_compiler_wl
17178
17179# Additional compiler flags for building library objects.
17180pic_flag=$lt_lt_prog_compiler_pic
17181
17182# Compiler flag to prevent dynamic linking.
17183link_static_flag=$lt_lt_prog_compiler_static
17184
17185# Does compiler simultaneously support -c and -o options?
17186compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17187
17188# Whether or not to add -lc for building shared libraries.
17189build_libtool_need_lc=$archive_cmds_need_lc
17190
17191# Whether or not to disallow shared libs when runtime libs are static.
17192allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17193
17194# Compiler flag to allow reflexive dlopens.
17195export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17196
17197# Compiler flag to generate shared objects directly from archives.
17198whole_archive_flag_spec=$lt_whole_archive_flag_spec
17199
17200# Whether the compiler copes with passing no objects directly.
17201compiler_needs_object=$lt_compiler_needs_object
17202
17203# Create an old-style archive from a shared archive.
17204old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17205
17206# Create a temporary old-style archive to link instead of a shared archive.
17207old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17208
17209# Commands used to build a shared archive.
17210archive_cmds=$lt_archive_cmds
17211archive_expsym_cmds=$lt_archive_expsym_cmds
17212
17213# Commands used to build a loadable module if different from building
17214# a shared archive.
17215module_cmds=$lt_module_cmds
17216module_expsym_cmds=$lt_module_expsym_cmds
17217
17218# Whether we are building with GNU ld or not.
17219with_gnu_ld=$lt_with_gnu_ld
17220
17221# Flag that allows shared libraries with undefined symbols to be built.
17222allow_undefined_flag=$lt_allow_undefined_flag
17223
17224# Flag that enforces no undefined symbols.
17225no_undefined_flag=$lt_no_undefined_flag
17226
17227# Flag to hardcode \$libdir into a binary during linking.
17228# This must work even if \$libdir does not exist
17229hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17230
17231# If ld is used when linking, flag to hardcode \$libdir into a binary
17232# during linking. This must work even if \$libdir does not exist.
17233hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17234
17235# Whether we need a single "-rpath" flag with a separated argument.
17236hardcode_libdir_separator=$lt_hardcode_libdir_separator
17237
17238# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17239# DIR into the resulting binary.
17240hardcode_direct=$hardcode_direct
17241
17242# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17243# DIR into the resulting binary and the resulting library dependency is
17244# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17245# library is relocated.
17246hardcode_direct_absolute=$hardcode_direct_absolute
17247
17248# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17249# into the resulting binary.
17250hardcode_minus_L=$hardcode_minus_L
17251
17252# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17253# into the resulting binary.
17254hardcode_shlibpath_var=$hardcode_shlibpath_var
17255
17256# Set to "yes" if building a shared library automatically hardcodes DIR
17257# into the library and all subsequent libraries and executables linked
17258# against it.
17259hardcode_automatic=$hardcode_automatic
17260
17261# Set to yes if linker adds runtime paths of dependent libraries
17262# to runtime path list.
17263inherit_rpath=$inherit_rpath
17264
17265# Whether libtool must link a program against all its dependency libraries.
17266link_all_deplibs=$link_all_deplibs
17267
17268# Fix the shell variable \$srcfile for the compiler.
17269fix_srcfile_path=$lt_fix_srcfile_path
17270
17271# Set to "yes" if exported symbols are required.
17272always_export_symbols=$always_export_symbols
17273
17274# The commands to list exported symbols.
17275export_symbols_cmds=$lt_export_symbols_cmds
17276
17277# Symbols that should not be listed in the preloaded symbols.
17278exclude_expsyms=$lt_exclude_expsyms
17279
17280# Symbols that must always be exported.
17281include_expsyms=$lt_include_expsyms
17282
17283# Commands necessary for linking programs (against libraries) with templates.
17284prelink_cmds=$lt_prelink_cmds
17285
17286# Specify filename containing input files.
17287file_list_spec=$lt_file_list_spec
17288
17289# How to hardcode a shared library path into an executable.
17290hardcode_action=$hardcode_action
17291
17292# ### END LIBTOOL CONFIG
17293
17294_LT_EOF
17295
17296 case $host_os in
17297 aix3*)
17298 cat <<\_LT_EOF >> "$cfgfile"
17299# AIX sometimes has problems with the GCC collect2 program. For some
17300# reason, if we set the COLLECT_NAMES environment variable, the problems
17301# vanish in a puff of smoke.
17302if test "X${COLLECT_NAMES+set}" != Xset; then
17303 COLLECT_NAMES=
17304 export COLLECT_NAMES
17305fi
17306_LT_EOF
17307 ;;
17308 esac
17309
17310
17311ltmain="$ac_aux_dir/ltmain.sh"
17312
17313
17314 # We use sed instead of cat because bash on DJGPP gets confused if
17315 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17316 # text mode, it properly converts lines to CR/LF. This bash problem
17317 # is reportedly fixed, but why not run on old versions too?
17318 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17319 || (rm -f "$cfgfile"; exit 1)
17320
17321 case $xsi_shell in
17322 yes)
17323 cat << \_LT_EOF >> "$cfgfile"
17324
17325# func_dirname file append nondir_replacement
17326# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17327# otherwise set result to NONDIR_REPLACEMENT.
17328func_dirname ()
17329{
17330 case ${1} in
17331 */*) func_dirname_result="${1%/*}${2}" ;;
17332 * ) func_dirname_result="${3}" ;;
17333 esac
17334}
17335
17336# func_basename file
17337func_basename ()
17338{
17339 func_basename_result="${1##*/}"
17340}
17341
17342# func_dirname_and_basename file append nondir_replacement
17343# perform func_basename and func_dirname in a single function
17344# call:
17345# dirname: Compute the dirname of FILE. If nonempty,
17346# add APPEND to the result, otherwise set result
17347# to NONDIR_REPLACEMENT.
17348# value returned in "$func_dirname_result"
17349# basename: Compute filename of FILE.
17350# value retuned in "$func_basename_result"
17351# Implementation must be kept synchronized with func_dirname
17352# and func_basename. For efficiency, we do not delegate to
17353# those functions but instead duplicate the functionality here.
17354func_dirname_and_basename ()
17355{
17356 case ${1} in
17357 */*) func_dirname_result="${1%/*}${2}" ;;
17358 * ) func_dirname_result="${3}" ;;
17359 esac
17360 func_basename_result="${1##*/}"
17361}
17362
17363# func_stripname prefix suffix name
17364# strip PREFIX and SUFFIX off of NAME.
17365# PREFIX and SUFFIX must not contain globbing or regex special
17366# characters, hashes, percent signs, but SUFFIX may contain a leading
17367# dot (in which case that matches only a dot).
17368func_stripname ()
17369{
17370 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17371 # positional parameters, so assign one to ordinary parameter first.
17372 func_stripname_result=${3}
17373 func_stripname_result=${func_stripname_result#"${1}"}
17374 func_stripname_result=${func_stripname_result%"${2}"}
17375}
17376
17377# func_opt_split
17378func_opt_split ()
17379{
17380 func_opt_split_opt=${1%%=*}
17381 func_opt_split_arg=${1#*=}
17382}
17383
17384# func_lo2o object
17385func_lo2o ()
17386{
17387 case ${1} in
17388 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17389 *) func_lo2o_result=${1} ;;
17390 esac
17391}
17392
17393# func_xform libobj-or-source
17394func_xform ()
17395{
17396 func_xform_result=${1%.*}.lo
17397}
17398
17399# func_arith arithmetic-term...
17400func_arith ()
17401{
17402 func_arith_result=$(( $* ))
17403}
17404
17405# func_len string
17406# STRING may not start with a hyphen.
17407func_len ()
17408{
17409 func_len_result=${#1}
17410}
17411
17412_LT_EOF
17413 ;;
17414 *) # Bourne compatible functions.
17415 cat << \_LT_EOF >> "$cfgfile"
17416
17417# func_dirname file append nondir_replacement
17418# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17419# otherwise set result to NONDIR_REPLACEMENT.
17420func_dirname ()
17421{
17422 # Extract subdirectory from the argument.
17423 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17424 if test "X$func_dirname_result" = "X${1}"; then
17425 func_dirname_result="${3}"
17426 else
17427 func_dirname_result="$func_dirname_result${2}"
17428 fi
17429}
17430
17431# func_basename file
17432func_basename ()
17433{
17434 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17435}
17436
17437
17438# func_stripname prefix suffix name
17439# strip PREFIX and SUFFIX off of NAME.
17440# PREFIX and SUFFIX must not contain globbing or regex special
17441# characters, hashes, percent signs, but SUFFIX may contain a leading
17442# dot (in which case that matches only a dot).
17443# func_strip_suffix prefix name
17444func_stripname ()
17445{
17446 case ${2} in
17447 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17448 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17449 esac
17450}
17451
17452# sed scripts:
17453my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17454my_sed_long_arg='1s/^-[^=]*=//'
17455
17456# func_opt_split
17457func_opt_split ()
17458{
17459 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17460 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17461}
17462
17463# func_lo2o object
17464func_lo2o ()
17465{
17466 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17467}
17468
17469# func_xform libobj-or-source
17470func_xform ()
17471{
17472 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17473}
17474
17475# func_arith arithmetic-term...
17476func_arith ()
17477{
17478 func_arith_result=`expr "$@"`
17479}
17480
17481# func_len string
17482# STRING may not start with a hyphen.
17483func_len ()
17484{
17485 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17486}
17487
17488_LT_EOF
17489esac
17490
17491case $lt_shell_append in
17492 yes)
17493 cat << \_LT_EOF >> "$cfgfile"
17494
17495# func_append var value
17496# Append VALUE to the end of shell variable VAR.
17497func_append ()
17498{
17499 eval "$1+=\$2"
17500}
17501_LT_EOF
17502 ;;
17503 *)
17504 cat << \_LT_EOF >> "$cfgfile"
17505
17506# func_append var value
17507# Append VALUE to the end of shell variable VAR.
17508func_append ()
17509{
17510 eval "$1=\$$1\$2"
17511}
17512
17513_LT_EOF
17514 ;;
17515 esac
17516
17517
17518 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17519 || (rm -f "$cfgfile"; exit 1)
17520
17521 mv -f "$cfgfile" "$ofile" ||
17522 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17523 chmod +x "$ofile"
17524
17525 ;;
17526 "default-1":C)
17527 for ac_file in $CONFIG_FILES; do
17528 # Support "outfile[:infile[:infile...]]"
17529 case "$ac_file" in
17530 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17531 esac
17532 # PO directories have a Makefile.in generated from Makefile.in.in.
17533 case "$ac_file" in */Makefile.in)
17534 # Adjust a relative srcdir.
17535 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17536 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17537 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17538 # In autoconf-2.13 it is called $ac_given_srcdir.
17539 # In autoconf-2.50 it is called $srcdir.
17540 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17541 case "$ac_given_srcdir" in
17542 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17543 /*) top_srcdir="$ac_given_srcdir" ;;
17544 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17545 esac
17546 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17547 rm -f "$ac_dir/POTFILES"
17548 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17549 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17550 POMAKEFILEDEPS="POTFILES.in"
17551 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17552 # on $ac_dir but don't depend on user-specified configuration
17553 # parameters.
17554 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17555 # The LINGUAS file contains the set of available languages.
17556 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17557 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17558 fi
17559 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17560 # Hide the ALL_LINGUAS assigment from automake.
17561 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17562 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17563 else
17564 # The set of available languages was given in configure.ac.
17565 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17566 fi
17567 case "$ac_given_srcdir" in
17568 .) srcdirpre= ;;
17569 *) srcdirpre='$(srcdir)/' ;;
17570 esac
17571 POFILES=
17572 GMOFILES=
17573 UPDATEPOFILES=
17574 DUMMYPOFILES=
17575 for lang in $ALL_LINGUAS; do
17576 POFILES="$POFILES $srcdirpre$lang.po"
17577 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17578 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17579 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17580 done
17581 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17582 # environment variable.
17583 INST_LINGUAS=
17584 if test -n "$ALL_LINGUAS"; then
17585 for presentlang in $ALL_LINGUAS; do
17586 useit=no
17587 if test "%UNSET%" != "$LINGUAS"; then
17588 desiredlanguages="$LINGUAS"
17589 else
17590 desiredlanguages="$ALL_LINGUAS"
17591 fi
17592 for desiredlang in $desiredlanguages; do
17593 # Use the presentlang catalog if desiredlang is
17594 # a. equal to presentlang, or
17595 # b. a variant of presentlang (because in this case,
17596 # presentlang can be used as a fallback for messages
17597 # which are not translated in the desiredlang catalog).
17598 case "$desiredlang" in
17599 "$presentlang"*) useit=yes;;
17600 esac
17601 done
17602 if test $useit = yes; then
17603 INST_LINGUAS="$INST_LINGUAS $presentlang"
17604 fi
17605 done
17606 fi
17607 CATALOGS=
17608 if test -n "$INST_LINGUAS"; then
17609 for lang in $INST_LINGUAS; do
17610 CATALOGS="$CATALOGS $lang.gmo"
17611 done
17612 fi
17613 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17614 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17615 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17616 if test -f "$f"; then
17617 case "$f" in
17618 *.orig | *.bak | *~) ;;
17619 *) cat "$f" >> "$ac_dir/Makefile" ;;
17620 esac
17621 fi
17622 done
17623 fi
17624 ;;
17625 esac
17626 done ;;
17627
17628 esac
17629done # for ac_tag
17630
17631
17632as_fn_exit 0
17633_ACEOF
17634ac_clean_files=$ac_clean_files_save
17635
17636test $ac_write_fail = 0 ||
17637 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17638
17639
17640# configure is writing to config.log, and then calls config.status.
17641# config.status does its own redirection, appending to config.log.
17642# Unfortunately, on DOS this fails, as config.log is still kept open
17643# by configure, so config.status won't be able to write to it; its
17644# output is simply discarded. So we exec the FD to /dev/null,
17645# effectively closing config.log, so it can be properly (re)opened and
17646# appended to by config.status. When coming back to configure, we
17647# need to make the FD available again.
17648if test "$no_create" != yes; then
17649 ac_cs_success=:
17650 ac_config_status_args=
17651 test "$silent" = yes &&
17652 ac_config_status_args="$ac_config_status_args --quiet"
17653 exec 5>/dev/null
17654 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17655 exec 5>>config.log
17656 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17657 # would make configure fail if this is the last instruction.
17658 $ac_cs_success || as_fn_exit 1
17659fi
17660if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17662$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17663fi
17664
This page took 0.093268 seconds and 4 git commands to generate.