Debian Codegraph @

bfd/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bfd 2.45.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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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'
70 fi
71
72 # The user is always right.
73 if 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 }
79 fi
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.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
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
100 IFS=$as_save_IFS
101
102 ;;
103 esac
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.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export 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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $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
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if 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
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -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
199 test \$(( 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
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
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
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
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
242 fi; }
243 IFS=$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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $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
265 exit 255
266 fi
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 [email protected] 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
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_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.
313 as_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.
323 as_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.
371 as_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.
381 if (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 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # 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.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # 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.
416 as_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
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_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.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_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
508 ECHO_C= ECHO_N= ECHO_T=
509 case `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';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (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
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_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.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 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.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='bfd'
589 PACKAGE_TARNAME='bfd'
590 PACKAGE_VERSION='2.45.50'
591 PACKAGE_STRING='bfd 2.45.50'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libbfd.c"
596 # Factoring default headers for most tests.
597 ac_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
632 gt_needs=
633 ac_header_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 bfd_ufile_ptr
639 bfd_file_ptr
640 lt_cv_dlopen_libs
641 supports_plugins
642 COREFLAG
643 COREFILE
644 havevecs
645 tdefaults
646 bfd_default_target_size
647 bfd_machines
648 bfd_backends
649 all_backends
650 bfd64_libs
651 wordsize
652 TDEFINES
653 SHARED_LIBADD
654 SHARED_LDFLAGS
655 LIBM
656 ZSTD_LIBS
657 ZSTD_CFLAGS
658 PKG_CONFIG_LIBDIR
659 PKG_CONFIG_PATH
660 PKG_CONFIG
661 zlibinc
662 zlibdir
663 EXEEXT_FOR_BUILD
664 CC_FOR_BUILD
665 HDEFINES
666 CATOBJEXT
667 GENCAT
668 INSTOBJEXT
669 DATADIRNAME
670 CATALOGS
671 INCINTL
672 LIBINTL_DEP
673 POSUB
674 LTLIBINTL
675 LIBINTL
676 INTLLIBS
677 LTLIBICONV
678 LIBICONV
679 INTL_MACOSX_LIBS
680 MSGMERGE
681 XGETTEXT
682 GMSGFMT
683 MSGFMT
684 USE_NLS
685 MKINSTALLDIRS
686 bfdincludedir
687 bfdlibdir
688 target_noncanonical
689 host_noncanonical
690 INSTALL_LIBBFD_FALSE
691 INSTALL_LIBBFD_TRUE
692 GENINSRC_NEVER_FALSE
693 GENINSRC_NEVER_TRUE
694 MAINT
695 MAINTAINER_MODE_FALSE
696 MAINTAINER_MODE_TRUE
697 WARN_WRITE_STRINGS
698 NO_WERROR
699 WARN_CFLAGS_FOR_BUILD
700 WARN_CFLAGS
701 REPORT_BUGS_TEXI
702 REPORT_BUGS_TO
703 PKGVERSION
704 DEBUGDIR
705 PLUGINS_FALSE
706 PLUGINS_TRUE
707 LARGEFILE_CPPFLAGS
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
713 OBJDUMP
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 SED
721 LIBTOOL
722 EGREP
723 GREP
724 CPP
725 am__fastdepCC_FALSE
726 am__fastdepCC_TRUE
727 CCDEPMODE
728 am__nodep
729 AMDEPBACKSLASH
730 AMDEP_FALSE
731 AMDEP_TRUE
732 am__quote
733 am__include
734 DEPDIR
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 RANLIB
743 AR
744 AM_BACKSLASH
745 AM_DEFAULT_VERBOSITY
746 AM_DEFAULT_V
747 AM_V
748 am__untar
749 am__tar
750 AMTAR
751 am__leading_dot
752 SET_MAKE
753 AWK
754 mkdir_p
755 MKDIR_P
756 INSTALL_STRIP_PROGRAM
757 STRIP
758 install_sh
759 MAKEINFO
760 AUTOHEADER
761 AUTOMAKE
762 AUTOCONF
763 ACLOCAL
764 VERSION
765 PACKAGE
766 CYGPATH_W
767 am__isrc
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 target_os
772 target_vendor
773 target_cpu
774 target
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 target_alias
784 host_alias
785 build_alias
786 LIBS
787 ECHO_T
788 ECHO_N
789 ECHO_C
790 DEFS
791 mandir
792 localedir
793 libdir
794 psdir
795 pdfdir
796 dvidir
797 htmldir
798 infodir
799 docdir
800 oldincludedir
801 includedir
802 localstatedir
803 sharedstatedir
804 sysconfdir
805 datadir
806 datarootdir
807 libexecdir
808 sbindir
809 bindir
810 program_transform_name
811 prefix
812 exec_prefix
813 PACKAGE_URL
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 enable_silent_rules
825 enable_shared
826 enable_dependency_tracking
827 enable_static
828 with_pic
829 enable_fast_install
830 with_gnu_ld
831 enable_libtool_lock
832 enable_plugins
833 enable_largefile
834 enable_checking
835 enable_64_bit_bfd
836 enable_targets
837 enable_64_bit_archive
838 with_mmap
839 enable_secureplt
840 enable_separate_code
841 enable_leading_mingw64_underscores
842 with_separate_debug_dir
843 with_pkgversion
844 with_bugurl
845 enable_werror
846 enable_build_warnings
847 enable_maintainer_mode
848 enable_install_libbfd
849 enable_nls
850 enable_rpath
851 with_libiconv_prefix
852 with_libiconv_type
853 with_libintl_prefix
854 with_libintl_type
855 with_system_zlib
856 with_zstd
857 '
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CPP
867 PKG_CONFIG
868 PKG_CONFIG_PATH
869 PKG_CONFIG_LIBDIR
870 ZSTD_CFLAGS
871 ZSTD_LIBS'
872
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
929 ac_prev=
930 continue
931 fi
932
933 case $ac_option in
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 *=) ac_optarg= ;;
936 *) ac_optarg=yes ;;
937 esac
938
939 # Accept the important Cygnus configure options, so we can diagnose typos.
940
941 case $ac_dashdash$ac_option in
942 --)
943 ac_dashdash=yes ;;
944
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
946 ac_prev=bindir ;;
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948 bindir=$ac_optarg ;;
949
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
954
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
961
962 --config-cache | -C)
963 cache_file=config.cache ;;
964
965 -datadir | --datadir | --datadi | --datad)
966 ac_prev=datadir ;;
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
969
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
976
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=no ;;
992
993 -docdir | --docdir | --docdi | --doc | --do)
994 ac_prev=docdir ;;
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996 docdir=$ac_optarg ;;
997
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 ac_prev=dvidir ;;
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1002
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1027
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1030 with_gas=yes ;;
1031
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1038
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1043
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045 ac_prev=htmldir ;;
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047 | --ht=*)
1048 htmldir=$ac_optarg ;;
1049
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1056
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1058 ac_prev=infodir ;;
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1061
1062 -libdir | --libdir | --libdi | --libd)
1063 ac_prev=libdir ;;
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1066
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1073
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1078
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1085
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087 ac_prev=mandir ;;
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1090
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1093 with_fp=no ;;
1094
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1097 no_create=yes ;;
1098
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 no_recursion=yes ;;
1102
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1111
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113 ac_prev=prefix ;;
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1116
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1123
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1130
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1147
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149 ac_prev=pdfdir ;;
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1152
1153 -psdir | --psdir | --psdi | --psd | --ps)
1154 ac_prev=psdir ;;
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 psdir=$ac_optarg ;;
1157
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1160 silent=yes ;;
1161
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163 ac_prev=sbindir ;;
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165 | --sbi=* | --sb=*)
1166 sbindir=$ac_optarg ;;
1167
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1171 | --sha | --sh)
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176 | --sha=* | --sh=*)
1177 sharedstatedir=$ac_optarg ;;
1178
1179 -site | --site | --sit)
1180 ac_prev=site ;;
1181 -site=* | --site=* | --sit=*)
1182 site=$ac_optarg ;;
1183
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185 ac_prev=srcdir ;;
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1188
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1195
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1200
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 verbose=yes ;;
1203
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1206
1207 -with-* | --with-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1215 *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1220 esac
1221 eval with_$ac_useropt=\$ac_optarg ;;
1222
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1231 *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=no ;;
1238
1239 --x)
1240 # Obsolete; use --with-x.
1241 with_x=yes ;;
1242
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1249
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1256
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1259 ;;
1260
1261 *=*)
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267 esac
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1270
1271 *)
1272 # FIXME: should be removed in autoconf 3.0.
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277 ;;
1278
1279 esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1289 no) ;;
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1300 do
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
1309 case $ac_val in
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312 esac
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1328 cross_compiling=yes
1329 fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
1373 srcdir=$ac_confdir
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 srcdir=..
1376 fi
1377 else
1378 ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387 pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1411 cat <<_ACEOF
1412 \`configure' configures bfd 2.45.50 to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1465 _ACEOF
1466
1467 cat <<\_ACEOF
1468
1469 Program names:
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 --target=TARGET configure for building compilers for TARGET [HOST]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482 case $ac_init_help in
1483 short | recursive ) echo "Configuration of bfd 2.45.50:";;
1484 esac
1485 cat <<\_ACEOF
1486
1487 Optional Features:
1488 --disable-option-checking ignore unrecognized --enable/--with options
1489 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1490 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1491 --enable-silent-rules less verbose build output (undo: "make V=1")
1492 --disable-silent-rules verbose build output (undo: "make V=0")
1493 --enable-shared[=PKGS] build shared libraries [default=no]
1494 --enable-dependency-tracking
1495 do not reject slow dependency extractors
1496 --disable-dependency-tracking
1497 speeds up one-time build
1498 --enable-static[=PKGS] build static libraries [default=yes]
1499 --enable-fast-install[=PKGS]
1500 optimize for fast installation [default=yes]
1501 --disable-libtool-lock avoid locking (might break parallel builds)
1502 --enable-plugins Enable support for plugins
1503 --disable-largefile omit support for large files
1504 --enable-checking enable run-time checks
1505 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1506 --enable-targets alternative target configurations
1507 --enable-64-bit-archive force 64-bit archives
1508 --enable-secureplt Default to creating read-only plt entries
1509 --enable-separate-code enable -z separate-code in ELF linker by default
1510 --enable-leading-mingw64-underscores
1511 Enable leading underscores on 64 bit mingw targets
1512 --enable-werror treat compile warnings as errors
1513 --enable-build-warnings enable build-time compiler warnings
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful (and
1516 sometimes confusing) to the casual installer
1517 --enable-install-libbfd controls installation of libbfd and related headers
1518 --disable-nls do not use Native Language Support
1519 --disable-rpath do not hardcode runtime library paths
1520
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-pic try to use only PIC/non-PIC objects [default=use
1525 both]
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-mmap try using mmap for BFD input files if available
1528 --with-separate-debug-dir=DIR
1529 Look for global separate debug info in DIR
1530 [[default=LIBDIR/debug]]
1531 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1532 Binutils"
1533 --with-bugurl=URL Direct users to URL to report a bug
1534 --with-gnu-ld assume the C compiler uses GNU ld default=no
1535 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1536 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1537 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1538 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1539 --without-libintl-prefix don't search for libintl in includedir and libdir
1540 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1541 --with-system-zlib use installed libz
1542 --with-zstd support zstd compressed debug sections
1543 (default=auto)
1544
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1553 CPP C preprocessor
1554 PKG_CONFIG path to pkg-config utility
1555 PKG_CONFIG_PATH
1556 directories to add to pkg-config's search path
1557 PKG_CONFIG_LIBDIR
1558 path overriding pkg-config's built-in search path
1559 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1560 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1561
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1564
1565 Report bugs to the package provider.
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" ||
1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575 continue
1576 ac_builddir=.
1577
1578 case "$ac_dir" in
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *)
1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582 # A ".." for each directory in $ac_dir_suffix.
1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584 case $ac_top_builddir_sub in
1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 esac ;;
1588 esac
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1593
1594 case $srcdir in
1595 .) # We are building in place.
1596 ac_srcdir=.
1597 ac_top_srcdir=$ac_top_builddir_sub
1598 ac_abs_top_srcdir=$ac_pwd ;;
1599 [\\/]* | ?:[\\/]* ) # Absolute name.
1600 ac_srcdir=$srcdir$ac_dir_suffix;
1601 ac_top_srcdir=$srcdir
1602 ac_abs_top_srcdir=$srcdir ;;
1603 *) # Relative name.
1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605 ac_top_srcdir=$ac_top_build_prefix$srcdir
1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 esac
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610 cd "$ac_dir" || { ac_status=$?; continue; }
1611 # Check for guested configure.
1612 if test -f "$ac_srcdir/configure.gnu"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615 elif test -f "$ac_srcdir/configure"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure" --help=recursive
1618 else
1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 fi || ac_status=$?
1621 cd "$ac_pwd" || { ac_status=$?; break; }
1622 done
1623 fi
1624
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1627 cat <<\_ACEOF
1628 bfd configure 2.45.50
1629 generated by GNU Autoconf 2.69
1630
1631 Copyright (C) 2012 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635 exit
1636 fi
1637
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1641
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674 fi
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_compile
1679
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } > conftest.i && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_cpp
1716
1717 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1720 # the include files in INCLUDES and setting the cache variable VAR
1721 # accordingly.
1722 ac_fn_c_check_header_mongrel ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if eval \${$3+:} false; then :
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1730 fi
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 else
1735 # Is the header compilable?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1737 $as_echo_n "checking $2 usability... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744 ac_header_compiler=yes
1745 else
1746 ac_header_compiler=no
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1750 $as_echo "$ac_header_compiler" >&6; }
1751
1752 # Is the header present?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1754 $as_echo_n "checking $2 presence... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_cpp "$LINENO"; then :
1760 ac_header_preproc=yes
1761 else
1762 ac_header_preproc=no
1763 fi
1764 rm -f conftest.err conftest.i conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1766 $as_echo "$ac_header_preproc" >&6; }
1767
1768 # So? What about this header?
1769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1770 yes:no: )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1772 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1775 ;;
1776 no:yes:* )
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1778 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1780 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1782 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1784 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 ;;
1788 esac
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 eval "$3=\$ac_header_compiler"
1795 fi
1796 eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 fi
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802 } # ac_fn_c_check_header_mongrel
1803
1804 # ac_fn_c_try_run LINENO
1805 # ----------------------
1806 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1807 # that executables *can* be run.
1808 ac_fn_c_try_run ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if { { ac_try="$ac_link"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>&5
1819 ac_status=$?
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1822 { { case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_try") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; }; }; then :
1832 ac_retval=0
1833 else
1834 $as_echo "$as_me: program exited with status $ac_status" >&5
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=$ac_status
1839 fi
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1843
1844 } # ac_fn_c_try_run
1845
1846 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists and can be compiled using the include files in
1849 # INCLUDES, setting the cache variable VAR accordingly.
1850 ac_fn_c_check_header_compile ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $4
1861 #include <$2>
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 eval "$3=yes"
1865 else
1866 eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 fi
1870 eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874
1875 } # ac_fn_c_check_header_compile
1876
1877 # ac_fn_c_try_link LINENO
1878 # -----------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_c_try_link ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 rm -f conftest.$ac_objext conftest$ac_exeext
1884 if { { ac_try="$ac_link"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1897 fi
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest$ac_exeext && {
1903 test "$cross_compiling" = yes ||
1904 test -x conftest$ac_exeext
1905 }; then :
1906 ac_retval=0
1907 else
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911 ac_retval=1
1912 fi
1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915 # interfere with the next link command; also delete a directory that is
1916 # left behind by Apple's compiler. We do this before executing the actions.
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1920
1921 } # ac_fn_c_try_link
1922
1923 # ac_fn_c_check_func LINENO FUNC VAR
1924 # ----------------------------------
1925 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1926 ac_fn_c_check_func ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1933 else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1936 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1938 #define $2 innocuous_$2
1939
1940 /* System header to define __stub macros and hopefully few prototypes,
1941 which can conflict with char $2 (); below.
1942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1943 <limits.h> exists even on freestanding compilers. */
1944
1945 #ifdef __STDC__
1946 # include <limits.h>
1947 #else
1948 # include <assert.h>
1949 #endif
1950
1951 #undef $2
1952
1953 /* Override any GCC internal prototype to avoid an error.
1954 Use char because int might match the return type of a GCC
1955 builtin and then its argument prototype would still apply. */
1956 #ifdef __cplusplus
1957 extern "C"
1958 #endif
1959 char $2 ();
1960 /* The GNU C library defines this for functions which it implements
1961 to always fail with ENOSYS. Some functions are actually named
1962 something starting with __ and the normal name is an alias. */
1963 #if defined __stub_$2 || defined __stub___$2
1964 choke me
1965 #endif
1966
1967 int
1968 main ()
1969 {
1970 return $2 ();
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_link "$LINENO"; then :
1976 eval "$3=yes"
1977 else
1978 eval "$3=no"
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext \
1981 conftest$ac_exeext conftest.$ac_ext
1982 fi
1983 eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988 } # ac_fn_c_check_func
1989
1990 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1991 # --------------------------------------------
1992 # Tries to find the compile-time value of EXPR in a program that includes
1993 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1994 # computed
1995 ac_fn_c_compute_int ()
1996 {
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if test "$cross_compiling" = yes; then
1999 # Depending upon the size, compute the lo and hi bounds.
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) >= 0)];
2007 test_array [0] = 0;
2008 return test_array [0];
2009
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_lo=0 ac_mid=0
2016 while :; do
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2024 test_array [0] = 0;
2025 return test_array [0];
2026
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=$ac_mid; break
2033 else
2034 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2035 if test $ac_lo -le $ac_mid; then
2036 ac_lo= ac_hi=
2037 break
2038 fi
2039 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 $4
2047 int
2048 main ()
2049 {
2050 static int test_array [1 - 2 * !(($2) < 0)];
2051 test_array [0] = 0;
2052 return test_array [0];
2053
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_hi=-1 ac_mid=-1
2060 while :; do
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2068 test_array [0] = 0;
2069 return test_array [0];
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_lo=$ac_mid; break
2077 else
2078 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2079 if test $ac_mid -le $ac_hi; then
2080 ac_lo= ac_hi=
2081 break
2082 fi
2083 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 done
2087 else
2088 ac_lo= ac_hi=
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 # Binary search between lo and hi bounds.
2094 while test "x$ac_lo" != "x$ac_hi"; do
2095 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2098 $4
2099 int
2100 main ()
2101 {
2102 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2103 test_array [0] = 0;
2104 return test_array [0];
2105
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_hi=$ac_mid
2112 else
2113 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117 case $ac_lo in #((
2118 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2119 '') ac_retval=1 ;;
2120 esac
2121 else
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2124 $4
2125 static long int longval () { return $2; }
2126 static unsigned long int ulongval () { return $2; }
2127 #include <stdio.h>
2128 #include <stdlib.h>
2129 int
2130 main ()
2131 {
2132
2133 FILE *f = fopen ("conftest.val", "w");
2134 if (! f)
2135 return 1;
2136 if (($2) < 0)
2137 {
2138 long int i = longval ();
2139 if (i != ($2))
2140 return 1;
2141 fprintf (f, "%ld", i);
2142 }
2143 else
2144 {
2145 unsigned long int i = ulongval ();
2146 if (i != ($2))
2147 return 1;
2148 fprintf (f, "%lu", i);
2149 }
2150 /* Do not output a trailing newline, as this causes \r\n confusion
2151 on some platforms. */
2152 return ferror (f) || fclose (f) != 0;
2153
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_run "$LINENO"; then :
2159 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2160 else
2161 ac_retval=1
2162 fi
2163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2164 conftest.$ac_objext conftest.beam conftest.$ac_ext
2165 rm -f conftest.val
2166
2167 fi
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 as_fn_set_status $ac_retval
2170
2171 } # ac_fn_c_compute_int
2172
2173 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2174 # ---------------------------------------------
2175 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2176 # accordingly.
2177 ac_fn_c_check_decl ()
2178 {
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 as_decl_name=`echo $2|sed 's/ *(.*//'`
2181 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2183 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2184 if eval \${$3+:} false; then :
2185 $as_echo_n "(cached) " >&6
2186 else
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2189 $4
2190 int
2191 main ()
2192 {
2193 #ifndef $as_decl_name
2194 #ifdef __cplusplus
2195 (void) $as_decl_use;
2196 #else
2197 (void) $as_decl_name;
2198 #endif
2199 #endif
2200
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 eval "$3=yes"
2207 else
2208 eval "$3=no"
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 fi
2212 eval ac_res=\$$3
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217 } # ac_fn_c_check_decl
2218 cat >config.log <<_ACEOF
2219 This file contains any messages produced by compilers while
2220 running configure, to aid debugging if configure makes a mistake.
2221
2222 It was created by bfd $as_me 2.45.50, which was
2223 generated by GNU Autoconf 2.69. Invocation command line was
2224
2225 $ $0 $@
2226
2227 _ACEOF
2228 exec 5>>config.log
2229 {
2230 cat <<_ASUNAME
2231 ## --------- ##
2232 ## Platform. ##
2233 ## --------- ##
2234
2235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2240
2241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2243
2244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2247 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2251
2252 _ASUNAME
2253
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 $as_echo "PATH: $as_dir"
2260 done
2261 IFS=$as_save_IFS
2262
2263 } >&5
2264
2265 cat >&5 <<_ACEOF
2266
2267
2268 ## ----------- ##
2269 ## Core tests. ##
2270 ## ----------- ##
2271
2272 _ACEOF
2273
2274
2275 # Keep a trace of the command line.
2276 # Strip out --no-create and --no-recursion so they do not pile up.
2277 # Strip out --silent because we don't want to record it for future runs.
2278 # Also quote any args containing shell meta-characters.
2279 # Make two passes to allow for proper duplicate-argument suppression.
2280 ac_configure_args=
2281 ac_configure_args0=
2282 ac_configure_args1=
2283 ac_must_keep_next=false
2284 for ac_pass in 1 2
2285 do
2286 for ac_arg
2287 do
2288 case $ac_arg in
2289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2291 | -silent | --silent | --silen | --sile | --sil)
2292 continue ;;
2293 *\'*)
2294 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 esac
2296 case $ac_pass in
2297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2298 2)
2299 as_fn_append ac_configure_args1 " '$ac_arg'"
2300 if test $ac_must_keep_next = true; then
2301 ac_must_keep_next=false # Got value, back to normal.
2302 else
2303 case $ac_arg in
2304 *=* | --config-cache | -C | -disable-* | --disable-* \
2305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2307 | -with-* | --with-* | -without-* | --without-* | --x)
2308 case "$ac_configure_args0 " in
2309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2310 esac
2311 ;;
2312 -* ) ac_must_keep_next=true ;;
2313 esac
2314 fi
2315 as_fn_append ac_configure_args " '$ac_arg'"
2316 ;;
2317 esac
2318 done
2319 done
2320 { ac_configure_args0=; unset ac_configure_args0;}
2321 { ac_configure_args1=; unset ac_configure_args1;}
2322
2323 # When interrupted or exit'd, cleanup temporary files, and complete
2324 # config.log. We remove comments because anyway the quotes in there
2325 # would cause problems or look ugly.
2326 # WARNING: Use '\'' to represent an apostrophe within the trap.
2327 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2328 trap 'exit_status=$?
2329 # Save into config.log some information that might help in debugging.
2330 {
2331 echo
2332
2333 $as_echo "## ---------------- ##
2334 ## Cache variables. ##
2335 ## ---------------- ##"
2336 echo
2337 # The following way of writing the cache mishandles newlines in values,
2338 (
2339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in #(
2342 *${as_nl}*)
2343 case $ac_var in #(
2344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2346 esac
2347 case $ac_var in #(
2348 _ | IFS | as_nl) ;; #(
2349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2350 *) { eval $ac_var=; unset $ac_var;} ;;
2351 esac ;;
2352 esac
2353 done
2354 (set) 2>&1 |
2355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2356 *${as_nl}ac_space=\ *)
2357 sed -n \
2358 "s/'\''/'\''\\\\'\'''\''/g;
2359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2360 ;; #(
2361 *)
2362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2363 ;;
2364 esac |
2365 sort
2366 )
2367 echo
2368
2369 $as_echo "## ----------------- ##
2370 ## Output variables. ##
2371 ## ----------------- ##"
2372 echo
2373 for ac_var in $ac_subst_vars
2374 do
2375 eval ac_val=\$$ac_var
2376 case $ac_val in
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378 esac
2379 $as_echo "$ac_var='\''$ac_val'\''"
2380 done | sort
2381 echo
2382
2383 if test -n "$ac_subst_files"; then
2384 $as_echo "## ------------------- ##
2385 ## File substitutions. ##
2386 ## ------------------- ##"
2387 echo
2388 for ac_var in $ac_subst_files
2389 do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in
2392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393 esac
2394 $as_echo "$ac_var='\''$ac_val'\''"
2395 done | sort
2396 echo
2397 fi
2398
2399 if test -s confdefs.h; then
2400 $as_echo "## ----------- ##
2401 ## confdefs.h. ##
2402 ## ----------- ##"
2403 echo
2404 cat confdefs.h
2405 echo
2406 fi
2407 test "$ac_signal" != 0 &&
2408 $as_echo "$as_me: caught signal $ac_signal"
2409 $as_echo "$as_me: exit $exit_status"
2410 } >&5
2411 rm -f core *.core core.conftest.* &&
2412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2413 exit $exit_status
2414 ' 0
2415 for ac_signal in 1 2 13 15; do
2416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2417 done
2418 ac_signal=0
2419
2420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2421 rm -f -r conftest* confdefs.h
2422
2423 $as_echo "/* confdefs.h */" > confdefs.h
2424
2425 # Predefined preprocessor variables.
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_NAME "$PACKAGE_NAME"
2429 _ACEOF
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2433 _ACEOF
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2437 _ACEOF
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_STRING "$PACKAGE_STRING"
2441 _ACEOF
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_URL "$PACKAGE_URL"
2449 _ACEOF
2450
2451
2452 # Let the site file select an alternate cache file if it wants to.
2453 # Prefer an explicitly selected file to automatically selected ones.
2454 ac_site_file1=NONE
2455 ac_site_file2=NONE
2456 if test -n "$CONFIG_SITE"; then
2457 # We do not want a PATH search for config.site.
2458 case $CONFIG_SITE in #((
2459 -*) ac_site_file1=./$CONFIG_SITE;;
2460 */*) ac_site_file1=$CONFIG_SITE;;
2461 *) ac_site_file1=./$CONFIG_SITE;;
2462 esac
2463 elif test "x$prefix" != xNONE; then
2464 ac_site_file1=$prefix/share/config.site
2465 ac_site_file2=$prefix/etc/config.site
2466 else
2467 ac_site_file1=$ac_default_prefix/share/config.site
2468 ac_site_file2=$ac_default_prefix/etc/config.site
2469 fi
2470 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2471 do
2472 test "x$ac_site_file" = xNONE && continue
2473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476 sed 's/^/| /' "$ac_site_file" >&5
2477 . "$ac_site_file" \
2478 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 as_fn_error $? "failed to load site script $ac_site_file
2481 See \`config.log' for more details" "$LINENO" 5; }
2482 fi
2483 done
2484
2485 if test -r "$cache_file"; then
2486 # Some versions of bash will fail to source /dev/null (special files
2487 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2488 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2490 $as_echo "$as_me: loading cache $cache_file" >&6;}
2491 case $cache_file in
2492 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493 *) . "./$cache_file";;
2494 esac
2495 fi
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2498 $as_echo "$as_me: creating cache $cache_file" >&6;}
2499 >$cache_file
2500 fi
2501
2502 gt_needs="$gt_needs "
2503 as_fn_append ac_header_list " stdlib.h"
2504 as_fn_append ac_header_list " unistd.h"
2505 as_fn_append ac_header_list " sys/param.h"
2506 # Check that the precious variables saved in the cache have kept the same
2507 # value.
2508 ac_cache_corrupted=false
2509 for ac_var in $ac_precious_vars; do
2510 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2511 eval ac_new_set=\$ac_env_${ac_var}_set
2512 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2513 eval ac_new_val=\$ac_env_${ac_var}_value
2514 case $ac_old_set,$ac_new_set in
2515 set,)
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2517 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2518 ac_cache_corrupted=: ;;
2519 ,set)
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2521 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2522 ac_cache_corrupted=: ;;
2523 ,);;
2524 *)
2525 if test "x$ac_old_val" != "x$ac_new_val"; then
2526 # differences in whitespace do not lead to failure.
2527 ac_old_val_w=`echo x $ac_old_val`
2528 ac_new_val_w=`echo x $ac_new_val`
2529 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2531 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2532 ac_cache_corrupted=:
2533 else
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2535 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2536 eval $ac_var=\$ac_old_val
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2539 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2541 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2542 fi;;
2543 esac
2544 # Pass precious variables to config.status.
2545 if test "$ac_new_set" = set; then
2546 case $ac_new_val in
2547 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2548 *) ac_arg=$ac_var=$ac_new_val ;;
2549 esac
2550 case " $ac_configure_args " in
2551 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2552 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2553 esac
2554 fi
2555 done
2556 if $ac_cache_corrupted; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2560 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2561 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2562 fi
2563 ## -------------------- ##
2564 ## Main body of script. ##
2565 ## -------------------- ##
2566
2567 ac_ext=c
2568 ac_cpp='$CPP $CPPFLAGS'
2569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572
2573
2574
2575
2576
2577
2578
2579 ac_aux_dir=
2580 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2581 if test -f "$ac_dir/install-sh"; then
2582 ac_aux_dir=$ac_dir
2583 ac_install_sh="$ac_aux_dir/install-sh -c"
2584 break
2585 elif test -f "$ac_dir/install.sh"; then
2586 ac_aux_dir=$ac_dir
2587 ac_install_sh="$ac_aux_dir/install.sh -c"
2588 break
2589 elif test -f "$ac_dir/shtool"; then
2590 ac_aux_dir=$ac_dir
2591 ac_install_sh="$ac_aux_dir/shtool install -c"
2592 break
2593 fi
2594 done
2595 if test -z "$ac_aux_dir"; then
2596 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2597 fi
2598
2599 # These three variables are undocumented and unsupported,
2600 # and are intended to be withdrawn in a future Autoconf release.
2601 # They can cause serious problems if a builder's source tree is in a directory
2602 # whose full name contains unusual characters.
2603 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2604 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2605 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606
2607
2608 # Make sure we can run config.sub.
2609 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2610 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2613 $as_echo_n "checking build system type... " >&6; }
2614 if ${ac_cv_build+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 ac_build_alias=$build_alias
2618 test "x$ac_build_alias" = x &&
2619 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2620 test "x$ac_build_alias" = x &&
2621 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2622 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2623 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2624
2625 fi
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2627 $as_echo "$ac_cv_build" >&6; }
2628 case $ac_cv_build in
2629 *-*-*) ;;
2630 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2631 esac
2632 build=$ac_cv_build
2633 ac_save_IFS=$IFS; IFS='-'
2634 set x $ac_cv_build
2635 shift
2636 build_cpu=$1
2637 build_vendor=$2
2638 shift; shift
2639 # Remember, the first character of IFS is used to create $*,
2640 # except with old shells:
2641 build_os=$*
2642 IFS=$ac_save_IFS
2643 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2644
2645
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2647 $as_echo_n "checking host system type... " >&6; }
2648 if ${ac_cv_host+:} false; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test "x$host_alias" = x; then
2652 ac_cv_host=$ac_cv_build
2653 else
2654 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2656 fi
2657
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2660 $as_echo "$ac_cv_host" >&6; }
2661 case $ac_cv_host in
2662 *-*-*) ;;
2663 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2664 esac
2665 host=$ac_cv_host
2666 ac_save_IFS=$IFS; IFS='-'
2667 set x $ac_cv_host
2668 shift
2669 host_cpu=$1
2670 host_vendor=$2
2671 shift; shift
2672 # Remember, the first character of IFS is used to create $*,
2673 # except with old shells:
2674 host_os=$*
2675 IFS=$ac_save_IFS
2676 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2677
2678
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2680 $as_echo_n "checking target system type... " >&6; }
2681 if ${ac_cv_target+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test "x$target_alias" = x; then
2685 ac_cv_target=$ac_cv_host
2686 else
2687 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2688 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2689 fi
2690
2691 fi
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2693 $as_echo "$ac_cv_target" >&6; }
2694 case $ac_cv_target in
2695 *-*-*) ;;
2696 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2697 esac
2698 target=$ac_cv_target
2699 ac_save_IFS=$IFS; IFS='-'
2700 set x $ac_cv_target
2701 shift
2702 target_cpu=$1
2703 target_vendor=$2
2704 shift; shift
2705 # Remember, the first character of IFS is used to create $*,
2706 # except with old shells:
2707 target_os=$*
2708 IFS=$ac_save_IFS
2709 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2710
2711
2712 # The aliases save the names the user supplied, while $host etc.
2713 # will get canonicalized.
2714 test -n "$target_alias" &&
2715 test "$program_prefix$program_suffix$program_transform_name" = \
2716 NONENONEs,x,x, &&
2717 program_prefix=${target_alias}-
2718
2719 am__api_version='1.15'
2720
2721 # Find a good install program. We prefer a C program (faster),
2722 # so one script is as good as another. But avoid the broken or
2723 # incompatible versions:
2724 # SysV /etc/install, /usr/sbin/install
2725 # SunOS /usr/etc/install
2726 # IRIX /sbin/install
2727 # AIX /bin/install
2728 # AmigaOS /C/install, which installs bootblocks on floppy discs
2729 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2730 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2731 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2732 # OS/2's system install, which has a completely different semantic
2733 # ./install, which can be erroneously created by make from ./install.sh.
2734 # Reject install programs that cannot install multiple files.
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2736 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2737 if test -z "$INSTALL"; then
2738 if ${ac_cv_path_install+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2743 do
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 # Account for people who put trailing slashes in PATH elements.
2747 case $as_dir/ in #((
2748 ./ | .// | /[cC]/* | \
2749 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2750 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2751 /usr/ucb/* ) ;;
2752 *)
2753 # OSF1 and SCO ODT 3.0 have their own names for install.
2754 # Don't use installbsd from OSF since it installs stuff as root
2755 # by default.
2756 for ac_prog in ginstall scoinst install; do
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2759 if test $ac_prog = install &&
2760 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2761 # AIX install. It has an incompatible calling convention.
2762 :
2763 elif test $ac_prog = install &&
2764 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2765 # program-specific install script used by HP pwplus--don't use.
2766 :
2767 else
2768 rm -rf conftest.one conftest.two conftest.dir
2769 echo one > conftest.one
2770 echo two > conftest.two
2771 mkdir conftest.dir
2772 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2773 test -s conftest.one && test -s conftest.two &&
2774 test -s conftest.dir/conftest.one &&
2775 test -s conftest.dir/conftest.two
2776 then
2777 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2778 break 3
2779 fi
2780 fi
2781 fi
2782 done
2783 done
2784 ;;
2785 esac
2786
2787 done
2788 IFS=$as_save_IFS
2789
2790 rm -rf conftest.one conftest.two conftest.dir
2791
2792 fi
2793 if test "${ac_cv_path_install+set}" = set; then
2794 INSTALL=$ac_cv_path_install
2795 else
2796 # As a last resort, use the slow shell script. Don't cache a
2797 # value for INSTALL within a source directory, because that will
2798 # break other packages using the cache if that directory is
2799 # removed, or if the value is a relative name.
2800 INSTALL=$ac_install_sh
2801 fi
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2804 $as_echo "$INSTALL" >&6; }
2805
2806 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2807 # It thinks the first close brace ends the variable substitution.
2808 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2809
2810 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2811
2812 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2813
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2815 $as_echo_n "checking whether build environment is sane... " >&6; }
2816 # Reject unsafe characters in $srcdir or the absolute working directory
2817 # name. Accept space and tab only in the latter.
2818 am_lf='
2819 '
2820 case `pwd` in
2821 *[\\\"\#\$\&\'\`$am_lf]*)
2822 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2823 esac
2824 case $srcdir in
2825 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2826 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2827 esac
2828
2829 # Do 'set' in a subshell so we don't clobber the current shell's
2830 # arguments. Must try -L first in case configure is actually a
2831 # symlink; some systems play weird games with the mod time of symlinks
2832 # (eg FreeBSD returns the mod time of the symlink's containing
2833 # directory).
2834 if (
2835 am_has_slept=no
2836 for am_try in 1 2; do
2837 echo "timestamp, slept: $am_has_slept" > conftest.file
2838 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2839 if test "$*" = "X"; then
2840 # -L didn't work.
2841 set X `ls -t "$srcdir/configure" conftest.file`
2842 fi
2843 if test "$*" != "X $srcdir/configure conftest.file" \
2844 && test "$*" != "X conftest.file $srcdir/configure"; then
2845
2846 # If neither matched, then we have a broken ls. This can happen
2847 # if, for instance, CONFIG_SHELL is bash and it inherits a
2848 # broken ls alias from the environment. This has actually
2849 # happened. Such a system could not be considered "sane".
2850 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2851 alias in your environment" "$LINENO" 5
2852 fi
2853 if test "$2" = conftest.file || test $am_try -eq 2; then
2854 break
2855 fi
2856 # Just in case.
2857 sleep 1
2858 am_has_slept=yes
2859 done
2860 test "$2" = conftest.file
2861 )
2862 then
2863 # Ok.
2864 :
2865 else
2866 as_fn_error $? "newly created file is older than distributed files!
2867 Check your system clock" "$LINENO" 5
2868 fi
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2870 $as_echo "yes" >&6; }
2871 # If we didn't sleep, we still need to ensure time stamps of config.status and
2872 # generated files are strictly newer.
2873 am_sleep_pid=
2874 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2875 ( sleep 1 ) &
2876 am_sleep_pid=$!
2877 fi
2878
2879 rm -f conftest.file
2880
2881 test "$program_prefix" != NONE &&
2882 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2883 # Use a double $ so make ignores it.
2884 test "$program_suffix" != NONE &&
2885 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2886 # Double any \ or $.
2887 # By default was `s,x,x', remove it if useless.
2888 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2889 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2890
2891 # Expand $ac_aux_dir to an absolute path.
2892 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2893
2894 if test x"${MISSING+set}" != xset; then
2895 case $am_aux_dir in
2896 *\ * | *\ *)
2897 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2898 *)
2899 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2900 esac
2901 fi
2902 # Use eval to expand $SHELL
2903 if eval "$MISSING --is-lightweight"; then
2904 am_missing_run="$MISSING "
2905 else
2906 am_missing_run=
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2908 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2909 fi
2910
2911 if test x"${install_sh+set}" != xset; then
2912 case $am_aux_dir in
2913 *\ * | *\ *)
2914 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2915 *)
2916 install_sh="\${SHELL} $am_aux_dir/install-sh"
2917 esac
2918 fi
2919
2920 # Installed binaries are usually stripped using 'strip' when the user
2921 # run "make install-strip". However 'strip' might not be the right
2922 # tool to use in cross-compilation environments, therefore Automake
2923 # will honor the 'STRIP' environment variable to overrule this program.
2924 if test "$cross_compiling" != no; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2927 set dummy ${ac_tool_prefix}strip; ac_word=$2
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2929 $as_echo_n "checking for $ac_word... " >&6; }
2930 if ${ac_cv_prog_STRIP+:} false; then :
2931 $as_echo_n "(cached) " >&6
2932 else
2933 if test -n "$STRIP"; then
2934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2935 else
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 for as_dir in $PATH
2938 do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947 done
2948 done
2949 IFS=$as_save_IFS
2950
2951 fi
2952 fi
2953 STRIP=$ac_cv_prog_STRIP
2954 if test -n "$STRIP"; then
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2956 $as_echo "$STRIP" >&6; }
2957 else
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$ac_cv_prog_STRIP"; then
2965 ac_ct_STRIP=$STRIP
2966 # Extract the first word of "strip", so it can be a program name with args.
2967 set dummy strip; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$ac_ct_STRIP"; then
2974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2978 do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_ac_ct_STRIP="strip"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi
2992 fi
2993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2994 if test -n "$ac_ct_STRIP"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2996 $as_echo "$ac_ct_STRIP" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 fi
3001
3002 if test "x$ac_ct_STRIP" = x; then
3003 STRIP=":"
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009 ac_tool_warned=yes ;;
3010 esac
3011 STRIP=$ac_ct_STRIP
3012 fi
3013 else
3014 STRIP="$ac_cv_prog_STRIP"
3015 fi
3016
3017 fi
3018 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3021 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3022 if test -z "$MKDIR_P"; then
3023 if ${ac_cv_path_mkdir+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3028 do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_prog in mkdir gmkdir; do
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3034 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3035 'mkdir (GNU coreutils) '* | \
3036 'mkdir (coreutils) '* | \
3037 'mkdir (fileutils) '4.1*)
3038 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3039 break 3;;
3040 esac
3041 done
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047
3048 test -d ./--version && rmdir ./--version
3049 if test "${ac_cv_path_mkdir+set}" = set; then
3050 MKDIR_P="$ac_cv_path_mkdir -p"
3051 else
3052 # As a last resort, use the slow shell script. Don't cache a
3053 # value for MKDIR_P within a source directory, because that will
3054 # break other packages using the cache if that directory is
3055 # removed, or if the value is a relative name.
3056 MKDIR_P="$ac_install_sh -d"
3057 fi
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3060 $as_echo "$MKDIR_P" >&6; }
3061
3062 for ac_prog in gawk mawk nawk awk
3063 do
3064 # Extract the first word of "$ac_prog", so it can be a program name with args.
3065 set dummy $ac_prog; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_AWK+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$AWK"; then
3072 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3081 ac_cv_prog_AWK="$ac_prog"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090 fi
3091 AWK=$ac_cv_prog_AWK
3092 if test -n "$AWK"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3094 $as_echo "$AWK" >&6; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 fi
3099
3100
3101 test -n "$AWK" && break
3102 done
3103
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3105 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3106 set x ${MAKE-make}
3107 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3108 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 cat >conftest.make <<\_ACEOF
3112 SHELL = /bin/sh
3113 all:
3114 @echo '@@@%%%=$(MAKE)=@@@%%%'
3115 _ACEOF
3116 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3117 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3118 *@@@%%%=?*=@@@%%%*)
3119 eval ac_cv_prog_make_${ac_make}_set=yes;;
3120 *)
3121 eval ac_cv_prog_make_${ac_make}_set=no;;
3122 esac
3123 rm -f conftest.make
3124 fi
3125 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3127 $as_echo "yes" >&6; }
3128 SET_MAKE=
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 SET_MAKE="MAKE=${MAKE-make}"
3133 fi
3134
3135 rm -rf .tst 2>/dev/null
3136 mkdir .tst 2>/dev/null
3137 if test -d .tst; then
3138 am__leading_dot=.
3139 else
3140 am__leading_dot=_
3141 fi
3142 rmdir .tst 2>/dev/null
3143
3144 # Check whether --enable-silent-rules was given.
3145 if test "${enable_silent_rules+set}" = set; then :
3146 enableval=$enable_silent_rules;
3147 fi
3148
3149 case $enable_silent_rules in # (((
3150 yes) AM_DEFAULT_VERBOSITY=0;;
3151 no) AM_DEFAULT_VERBOSITY=1;;
3152 *) AM_DEFAULT_VERBOSITY=1;;
3153 esac
3154 am_make=${MAKE-make}
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3156 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3157 if ${am_cv_make_support_nested_variables+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 if $as_echo 'TRUE=$(BAR$(V))
3161 BAR0=false
3162 BAR1=true
3163 V=1
3164 am__doit:
3165 @$(TRUE)
3166 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3167 am_cv_make_support_nested_variables=yes
3168 else
3169 am_cv_make_support_nested_variables=no
3170 fi
3171 fi
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3173 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3174 if test $am_cv_make_support_nested_variables = yes; then
3175 AM_V='$(V)'
3176 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3177 else
3178 AM_V=$AM_DEFAULT_VERBOSITY
3179 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3180 fi
3181 AM_BACKSLASH='\'
3182
3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185 # is not polluted with repeated "-I."
3186 am__isrc=' -I$(srcdir)'
3187 # test to see if srcdir already configured
3188 if test -f $srcdir/config.status; then
3189 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3190 fi
3191 fi
3192
3193 # test whether we have cygpath
3194 if test -z "$CYGPATH_W"; then
3195 if (cygpath --version) >/dev/null 2>/dev/null; then
3196 CYGPATH_W='cygpath -w'
3197 else
3198 CYGPATH_W=echo
3199 fi
3200 fi
3201
3202
3203 # Define the identity of the package.
3204 PACKAGE='bfd'
3205 VERSION='2.45.50'
3206
3207
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE "$PACKAGE"
3210 _ACEOF
3211
3212
3213 cat >>confdefs.h <<_ACEOF
3214 #define VERSION "$VERSION"
3215 _ACEOF
3216
3217 # Some tools Automake needs.
3218
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220
3221
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3223
3224
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226
3227
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3229
3230
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3232
3233 # For better backward compatibility. To be removed once Automake 1.9.x
3234 # dies out for good. For more background, see:
3235 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3236 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3237 mkdir_p='$(MKDIR_P)'
3238
3239 # We need awk for the "check" target (and possibly the TAP driver). The
3240 # system "awk" is bad on some platforms.
3241 # Always define AMTAR for backward compatibility. Yes, it's still used
3242 # in the wild :-( We should find a proper way to deprecate it ...
3243 AMTAR='$${TAR-tar}'
3244
3245
3246 # We'll loop over all known methods to create a tar archive until one works.
3247 _am_tools='gnutar pax cpio none'
3248
3249 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3250
3251
3252
3253
3254
3255
3256 # POSIX will say in a future version that running "rm -f" with no argument
3257 # is OK; and we want to be able to make that assumption in our Makefile
3258 # recipes. So use an aggressive probe to check that the usage we want is
3259 # actually supported "in the wild" to an acceptable degree.
3260 # See automake bug#10828.
3261 # To make any issue more visible, cause the running configure to be aborted
3262 # by default if the 'rm' program in use doesn't match our expectations; the
3263 # user can still override this though.
3264 if rm -f && rm -fr && rm -rf; then : OK; else
3265 cat >&2 <<'END'
3266 Oops!
3267
3268 Your 'rm' program seems unable to run without file operands specified
3269 on the command line, even when the '-f' option is present. This is contrary
3270 to the behaviour of most rm programs out there, and not conforming with
3271 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3272
3273 Please tell [email protected] about your system, including the value
3274 of your $PATH and any error possibly output before this message. This
3275 can help us improve future automake versions.
3276
3277 END
3278 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3279 echo 'Configuration will proceed anyway, since you have set the' >&2
3280 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3281 echo >&2
3282 else
3283 cat >&2 <<'END'
3284 Aborting the configuration process, to ensure you take notice of the issue.
3285
3286 You can download and install GNU coreutils to get an 'rm' implementation
3287 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3288
3289 If you want to complete the configuration process using your problematic
3290 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3291 to "yes", and re-run configure.
3292
3293 END
3294 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3295 fi
3296 fi
3297
3298 # Check whether --enable-silent-rules was given.
3299 if test "${enable_silent_rules+set}" = set; then :
3300 enableval=$enable_silent_rules;
3301 fi
3302
3303 case $enable_silent_rules in # (((
3304 yes) AM_DEFAULT_VERBOSITY=0;;
3305 no) AM_DEFAULT_VERBOSITY=1;;
3306 *) AM_DEFAULT_VERBOSITY=0;;
3307 esac
3308 am_make=${MAKE-make}
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3310 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3311 if ${am_cv_make_support_nested_variables+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 if $as_echo 'TRUE=$(BAR$(V))
3315 BAR0=false
3316 BAR1=true
3317 V=1
3318 am__doit:
3319 @$(TRUE)
3320 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3321 am_cv_make_support_nested_variables=yes
3322 else
3323 am_cv_make_support_nested_variables=no
3324 fi
3325 fi
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3327 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3328 if test $am_cv_make_support_nested_variables = yes; then
3329 AM_V='$(V)'
3330 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3331 else
3332 AM_V=$AM_DEFAULT_VERBOSITY
3333 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3334 fi
3335 AM_BACKSLASH='\'
3336
3337
3338 if test -n "$ac_tool_prefix"; then
3339 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}ar; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_AR+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 if test -n "$AR"; then
3347 ac_cv_prog_AR="$AR" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_AR="${ac_tool_prefix}ar"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 break 2
3359 fi
3360 done
3361 done
3362 IFS=$as_save_IFS
3363
3364 fi
3365 fi
3366 AR=$ac_cv_prog_AR
3367 if test -n "$AR"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3369 $as_echo "$AR" >&6; }
3370 else
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375
3376 fi
3377 if test -z "$ac_cv_prog_AR"; then
3378 ac_ct_AR=$AR
3379 # Extract the first word of "ar", so it can be a program name with args.
3380 set dummy ar; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test -n "$ac_ct_AR"; then
3387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 ac_cv_prog_ac_ct_AR="ar"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400 done
3401 done
3402 IFS=$as_save_IFS
3403
3404 fi
3405 fi
3406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3407 if test -n "$ac_ct_AR"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3409 $as_echo "$ac_ct_AR" >&6; }
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 fi
3414
3415 if test "x$ac_ct_AR" = x; then
3416 AR=""
3417 else
3418 case $cross_compiling:$ac_tool_warned in
3419 yes:)
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422 ac_tool_warned=yes ;;
3423 esac
3424 AR=$ac_ct_AR
3425 fi
3426 else
3427 AR="$ac_cv_prog_AR"
3428 fi
3429
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_RANLIB+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$RANLIB"; then
3439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 RANLIB=$ac_cv_prog_RANLIB
3459 if test -n "$RANLIB"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3461 $as_echo "$RANLIB" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467
3468 fi
3469 if test -z "$ac_cv_prog_RANLIB"; then
3470 ac_ct_RANLIB=$RANLIB
3471 # Extract the first word of "ranlib", so it can be a program name with args.
3472 set dummy ranlib; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 if test -n "$ac_ct_RANLIB"; then
3479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_ac_ct_RANLIB="ranlib"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3491 fi
3492 done
3493 done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3499 if test -n "$ac_ct_RANLIB"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3501 $as_echo "$ac_ct_RANLIB" >&6; }
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507 if test "x$ac_ct_RANLIB" = x; then
3508 RANLIB=":"
3509 else
3510 case $cross_compiling:$ac_tool_warned in
3511 yes:)
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514 ac_tool_warned=yes ;;
3515 esac
3516 RANLIB=$ac_ct_RANLIB
3517 fi
3518 else
3519 RANLIB="$ac_cv_prog_RANLIB"
3520 fi
3521
3522
3523 # Check whether --enable-shared was given.
3524 if test "${enable_shared+set}" = set; then :
3525 enableval=$enable_shared; p=${PACKAGE-default}
3526 case $enableval in
3527 yes) enable_shared=yes ;;
3528 no) enable_shared=no ;;
3529 *)
3530 enable_shared=no
3531 # Look at the argument we got. We use all the common list separators.
3532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3533 for pkg in $enableval; do
3534 IFS="$lt_save_ifs"
3535 if test "X$pkg" = "X$p"; then
3536 enable_shared=yes
3537 fi
3538 done
3539 IFS="$lt_save_ifs"
3540 ;;
3541 esac
3542 else
3543 enable_shared=no
3544 fi
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555 ac_ext=c
3556 ac_cpp='$CPP $CPPFLAGS'
3557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582 done
3583 done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598 fi
3599 if test -z "$ac_cv_prog_CC"; then
3600 ac_ct_CC=$CC
3601 # Extract the first word of "gcc", so it can be a program name with args.
3602 set dummy gcc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$ac_ct_CC"; then
3609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3613 do
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_ac_ct_CC="gcc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3621 fi
3622 done
3623 done
3624 IFS=$as_save_IFS
3625
3626 fi
3627 fi
3628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3629 if test -n "$ac_ct_CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3631 $as_echo "$ac_ct_CC" >&6; }
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 fi
3636
3637 if test "x$ac_ct_CC" = x; then
3638 CC=""
3639 else
3640 case $cross_compiling:$ac_tool_warned in
3641 yes:)
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644 ac_tool_warned=yes ;;
3645 esac
3646 CC=$ac_ct_CC
3647 fi
3648 else
3649 CC="$ac_cv_prog_CC"
3650 fi
3651
3652 if test -z "$CC"; then
3653 if test -n "$ac_tool_prefix"; then
3654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3655 set dummy ${ac_tool_prefix}cc; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if ${ac_cv_prog_CC+:} false; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 if test -n "$CC"; then
3662 ac_cv_prog_CC="$CC" # Let the user override the test.
3663 else
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH
3666 do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3671 ac_cv_prog_CC="${ac_tool_prefix}cc"
3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 break 2
3674 fi
3675 done
3676 done
3677 IFS=$as_save_IFS
3678
3679 fi
3680 fi
3681 CC=$ac_cv_prog_CC
3682 if test -n "$CC"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 $as_echo "$CC" >&6; }
3685 else
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3688 fi
3689
3690
3691 fi
3692 fi
3693 if test -z "$CC"; then
3694 # Extract the first word of "cc", so it can be a program name with args.
3695 set dummy cc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if ${ac_cv_prog_CC+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 if test -n "$CC"; then
3702 ac_cv_prog_CC="$CC" # Let the user override the test.
3703 else
3704 ac_prog_rejected=no
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3713 ac_prog_rejected=yes
3714 continue
3715 fi
3716 ac_cv_prog_CC="cc"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3719 fi
3720 done
3721 done
3722 IFS=$as_save_IFS
3723
3724 if test $ac_prog_rejected = yes; then
3725 # We found a bogon in the path, so make sure we never use it.
3726 set dummy $ac_cv_prog_CC
3727 shift
3728 if test $# != 0; then
3729 # We chose a different compiler from the bogus one.
3730 # However, it has the same basename, so the bogon will be chosen
3731 # first if we set CC to just the basename; use the full file name.
3732 shift
3733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3734 fi
3735 fi
3736 fi
3737 fi
3738 CC=$ac_cv_prog_CC
3739 if test -n "$CC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3741 $as_echo "$CC" >&6; }
3742 else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3745 fi
3746
3747
3748 fi
3749 if test -z "$CC"; then
3750 if test -n "$ac_tool_prefix"; then
3751 for ac_prog in cl.exe
3752 do
3753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_CC+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774 done
3775 done
3776 IFS=$as_save_IFS
3777
3778 fi
3779 fi
3780 CC=$ac_cv_prog_CC
3781 if test -n "$CC"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783 $as_echo "$CC" >&6; }
3784 else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3787 fi
3788
3789
3790 test -n "$CC" && break
3791 done
3792 fi
3793 if test -z "$CC"; then
3794 ac_ct_CC=$CC
3795 for ac_prog in cl.exe
3796 do
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 if test -n "$ac_ct_CC"; then
3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_ac_ct_CC="$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818 done
3819 done
3820 IFS=$as_save_IFS
3821
3822 fi
3823 fi
3824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825 if test -n "$ac_ct_CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827 $as_echo "$ac_ct_CC" >&6; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3831 fi
3832
3833
3834 test -n "$ac_ct_CC" && break
3835 done
3836
3837 if test "x$ac_ct_CC" = x; then
3838 CC=""
3839 else
3840 case $cross_compiling:$ac_tool_warned in
3841 yes:)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3845 esac
3846 CC=$ac_ct_CC
3847 fi
3848 fi
3849
3850 fi
3851
3852
3853 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3855 as_fn_error $? "no acceptable C compiler found in \$PATH
3856 See \`config.log' for more details" "$LINENO" 5; }
3857
3858 # Provide some information about the compiler.
3859 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3860 set X $ac_compile
3861 ac_compiler=$2
3862 for ac_option in --version -v -V -qversion; do
3863 { { ac_try="$ac_compiler $ac_option >&5"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3871 ac_status=$?
3872 if test -s conftest.err; then
3873 sed '10a\
3874 ... rest of stderr output deleted ...
3875 10q' conftest.err >conftest.er1
3876 cat conftest.er1 >&5
3877 fi
3878 rm -f conftest.er1 conftest.err
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }
3881 done
3882
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3885
3886 int
3887 main ()
3888 {
3889
3890 ;
3891 return 0;
3892 }
3893 _ACEOF
3894 ac_clean_files_save=$ac_clean_files
3895 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3896 # Try to create an executable without -o first, disregard a.out.
3897 # It will help us diagnose broken compilers, and finding out an intuition
3898 # of exeext.
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3900 $as_echo_n "checking whether the C compiler works... " >&6; }
3901 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3902
3903 # The possible output files:
3904 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3905
3906 ac_rmfiles=
3907 for ac_file in $ac_files
3908 do
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3911 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3912 esac
3913 done
3914 rm -f $ac_rmfiles
3915
3916 if { { ac_try="$ac_link_default"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_link_default") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3928 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3929 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3930 # so that the user can short-circuit this test for compilers unknown to
3931 # Autoconf.
3932 for ac_file in $ac_files ''
3933 do
3934 test -f "$ac_file" || continue
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3937 ;;
3938 [ab].out )
3939 # We found the default executable, but exeext='' is most
3940 # certainly right.
3941 break;;
3942 *.* )
3943 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3944 then :; else
3945 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3946 fi
3947 # We set ac_cv_exeext here because the later test for it is not
3948 # safe: cross compilers may not add the suffix if given an `-o'
3949 # argument, so we may need to know it at that point already.
3950 # Even if this section looks crufty: it has the advantage of
3951 # actually working.
3952 break;;
3953 * )
3954 break;;
3955 esac
3956 done
3957 test "$ac_cv_exeext" = no && ac_cv_exeext=
3958
3959 else
3960 ac_file=''
3961 fi
3962 if test -z "$ac_file"; then :
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3965 $as_echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error 77 "C compiler cannot create executables
3971 See \`config.log' for more details" "$LINENO" 5; }
3972 else
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3974 $as_echo "yes" >&6; }
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3977 $as_echo_n "checking for C compiler default output file name... " >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3979 $as_echo "$ac_file" >&6; }
3980 ac_exeext=$ac_cv_exeext
3981
3982 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3983 ac_clean_files=$ac_clean_files_save
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3985 $as_echo_n "checking for suffix of executables... " >&6; }
3986 if { { ac_try="$ac_link"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_link") 2>&5
3994 ac_status=$?
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; then :
3997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3998 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3999 # work properly (i.e., refer to `conftest.exe'), while it won't with
4000 # `rm'.
4001 for ac_file in conftest.exe conftest conftest.*; do
4002 test -f "$ac_file" || continue
4003 case $ac_file in
4004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4006 break;;
4007 * ) break;;
4008 esac
4009 done
4010 else
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4014 See \`config.log' for more details" "$LINENO" 5; }
4015 fi
4016 rm -f conftest conftest$ac_cv_exeext
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4018 $as_echo "$ac_cv_exeext" >&6; }
4019
4020 rm -f conftest.$ac_ext
4021 EXEEXT=$ac_cv_exeext
4022 ac_exeext=$EXEEXT
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 #include <stdio.h>
4026 int
4027 main ()
4028 {
4029 FILE *f = fopen ("conftest.out", "w");
4030 return ferror (f) || fclose (f) != 0;
4031
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 ac_clean_files="$ac_clean_files conftest.out"
4037 # Check that the compiler produces executables we can run. If not, either
4038 # the compiler is broken, or we cross compile.
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4040 $as_echo_n "checking whether we are cross compiling... " >&6; }
4041 if test "$cross_compiling" != yes; then
4042 { { ac_try="$ac_link"
4043 case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046 esac
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_link") 2>&5
4050 ac_status=$?
4051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052 test $ac_status = 0; }
4053 if { ac_try='./conftest$ac_cv_exeext'
4054 { { case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060 (eval "$ac_try") 2>&5
4061 ac_status=$?
4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063 test $ac_status = 0; }; }; then
4064 cross_compiling=no
4065 else
4066 if test "$cross_compiling" = maybe; then
4067 cross_compiling=yes
4068 else
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "cannot run C compiled programs.
4072 If you meant to cross compile, use \`--host'.
4073 See \`config.log' for more details" "$LINENO" 5; }
4074 fi
4075 fi
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4078 $as_echo "$cross_compiling" >&6; }
4079
4080 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4081 ac_clean_files=$ac_clean_files_save
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4083 $as_echo_n "checking for suffix of object files... " >&6; }
4084 if ${ac_cv_objext+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main ()
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 rm -f conftest.o conftest.obj
4099 if { { ac_try="$ac_compile"
4100 case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106 (eval "$ac_compile") 2>&5
4107 ac_status=$?
4108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; }; then :
4110 for ac_file in conftest.o conftest.obj conftest.*; do
4111 test -f "$ac_file" || continue;
4112 case $ac_file in
4113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4114 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4115 break;;
4116 esac
4117 done
4118 else
4119 $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124 as_fn_error $? "cannot compute suffix of object files: cannot compile
4125 See \`config.log' for more details" "$LINENO" 5; }
4126 fi
4127 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4130 $as_echo "$ac_cv_objext" >&6; }
4131 OBJEXT=$ac_cv_objext
4132 ac_objext=$OBJEXT
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4135 if ${ac_cv_c_compiler_gnu+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140
4141 int
4142 main ()
4143 {
4144 #ifndef __GNUC__
4145 choke me
4146 #endif
4147
4148 ;
4149 return 0;
4150 }
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_compiler_gnu=yes
4154 else
4155 ac_compiler_gnu=no
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4159
4160 fi
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4163 if test $ac_compiler_gnu = yes; then
4164 GCC=yes
4165 else
4166 GCC=
4167 fi
4168 ac_test_CFLAGS=${CFLAGS+set}
4169 ac_save_CFLAGS=$CFLAGS
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4172 if ${ac_cv_prog_cc_g+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 ac_save_c_werror_flag=$ac_c_werror_flag
4176 ac_c_werror_flag=yes
4177 ac_cv_prog_cc_g=no
4178 CFLAGS="-g"
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181
4182 int
4183 main ()
4184 {
4185
4186 ;
4187 return 0;
4188 }
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_prog_cc_g=yes
4192 else
4193 CFLAGS=""
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196
4197 int
4198 main ()
4199 {
4200
4201 ;
4202 return 0;
4203 }
4204 _ACEOF
4205 if ac_fn_c_try_compile "$LINENO"; then :
4206
4207 else
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4209 CFLAGS="-g"
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212
4213 int
4214 main ()
4215 {
4216
4217 ;
4218 return 0;
4219 }
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_g=yes
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 fi
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 ac_c_werror_flag=$ac_save_c_werror_flag
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4232 $as_echo "$ac_cv_prog_cc_g" >&6; }
4233 if test "$ac_test_CFLAGS" = set; then
4234 CFLAGS=$ac_save_CFLAGS
4235 elif test $ac_cv_prog_cc_g = yes; then
4236 if test "$GCC" = yes; then
4237 CFLAGS="-g -O2"
4238 else
4239 CFLAGS="-g"
4240 fi
4241 else
4242 if test "$GCC" = yes; then
4243 CFLAGS="-O2"
4244 else
4245 CFLAGS=
4246 fi
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4250 if ${ac_cv_prog_cc_c89+:} false; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 ac_cv_prog_cc_c89=no
4254 ac_save_CC=$CC
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <stdarg.h>
4258 #include <stdio.h>
4259 struct stat;
4260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4261 struct buf { int x; };
4262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4263 static char *e (p, i)
4264 char **p;
4265 int i;
4266 {
4267 return p[i];
4268 }
4269 static char *f (char * (*g) (char **, int), char **p, ...)
4270 {
4271 char *s;
4272 va_list v;
4273 va_start (v,p);
4274 s = g (p, va_arg (v,int));
4275 va_end (v);
4276 return s;
4277 }
4278
4279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4280 function prototypes and stuff, but not '\xHH' hex character constants.
4281 These don't provoke an error unfortunately, instead are silently treated
4282 as 'x'. The following induces an error, until -std is added to get
4283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4284 array size at least. It's necessary to write '\x00'==0 to get something
4285 that's true only with -std. */
4286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4287
4288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4289 inside strings and character constants. */
4290 #define FOO(x) 'x'
4291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4292
4293 int test (int i, double x);
4294 struct s1 {int (*f) (int a);};
4295 struct s2 {int (*f) (double a);};
4296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4297 int argc;
4298 char **argv;
4299 int
4300 main ()
4301 {
4302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4303 ;
4304 return 0;
4305 }
4306 _ACEOF
4307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4309 do
4310 CC="$ac_save_CC $ac_arg"
4311 if ac_fn_c_try_compile "$LINENO"; then :
4312 ac_cv_prog_cc_c89=$ac_arg
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext
4315 test "x$ac_cv_prog_cc_c89" != "xno" && break
4316 done
4317 rm -f conftest.$ac_ext
4318 CC=$ac_save_CC
4319
4320 fi
4321 # AC_CACHE_VAL
4322 case "x$ac_cv_prog_cc_c89" in
4323 x)
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4325 $as_echo "none needed" >&6; } ;;
4326 xno)
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 $as_echo "unsupported" >&6; } ;;
4329 *)
4330 CC="$CC $ac_cv_prog_cc_c89"
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4333 esac
4334 if test "x$ac_cv_prog_cc_c89" != xno; then :
4335
4336 fi
4337
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343
4344 ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4350 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4351 if ${am_cv_prog_cc_c_o+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356
4357 int
4358 main ()
4359 {
4360
4361 ;
4362 return 0;
4363 }
4364 _ACEOF
4365 # Make sure it works both with $CC and with simple cc.
4366 # Following AC_PROG_CC_C_O, we do the test twice because some
4367 # compilers refuse to overwrite an existing .o file with -o,
4368 # though they will create one.
4369 am_cv_prog_cc_c_o=yes
4370 for am_i in 1 2; do
4371 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4372 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } \
4376 && test -f conftest2.$ac_objext; then
4377 : OK
4378 else
4379 am_cv_prog_cc_c_o=no
4380 break
4381 fi
4382 done
4383 rm -f core conftest*
4384 unset am_i
4385 fi
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4387 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4388 if test "$am_cv_prog_cc_c_o" != yes; then
4389 # Losing compiler, so override with the script.
4390 # FIXME: It is wrong to rewrite CC.
4391 # But if we don't then we get into trouble of one sort or another.
4392 # A longer-term fix would be to have automake use am__CC in this case,
4393 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4394 CC="$am_aux_dir/compile $CC"
4395 fi
4396 ac_ext=c
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4401
4402 DEPDIR="${am__leading_dot}deps"
4403
4404 ac_config_commands="$ac_config_commands depfiles"
4405
4406
4407 am_make=${MAKE-make}
4408 cat > confinc << 'END'
4409 am__doit:
4410 @echo this is the am__doit target
4411 .PHONY: am__doit
4412 END
4413 # If we don't find an include directive, just comment out the code.
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4416 am__include="#"
4417 am__quote=
4418 _am_result=none
4419 # First try GNU make style include.
4420 echo "include confinc" > confmf
4421 # Ignore all kinds of additional output from 'make'.
4422 case `$am_make -s -f confmf 2> /dev/null` in #(
4423 *the\ am__doit\ target*)
4424 am__include=include
4425 am__quote=
4426 _am_result=GNU
4427 ;;
4428 esac
4429 # Now try BSD make style include.
4430 if test "$am__include" = "#"; then
4431 echo '.include "confinc"' > confmf
4432 case `$am_make -s -f confmf 2> /dev/null` in #(
4433 *the\ am__doit\ target*)
4434 am__include=.include
4435 am__quote="\""
4436 _am_result=BSD
4437 ;;
4438 esac
4439 fi
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4443 $as_echo "$_am_result" >&6; }
4444 rm -f confinc confmf
4445
4446 # Check whether --enable-dependency-tracking was given.
4447 if test "${enable_dependency_tracking+set}" = set; then :
4448 enableval=$enable_dependency_tracking;
4449 fi
4450
4451 if test "x$enable_dependency_tracking" != xno; then
4452 am_depcomp="$ac_aux_dir/depcomp"
4453 AMDEPBACKSLASH='\'
4454 am__nodep='_no'
4455 fi
4456 if test "x$enable_dependency_tracking" != xno; then
4457 AMDEP_TRUE=
4458 AMDEP_FALSE='#'
4459 else
4460 AMDEP_TRUE='#'
4461 AMDEP_FALSE=
4462 fi
4463
4464
4465
4466 depcc="$CC" am_compiler_list=
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4469 $as_echo_n "checking dependency style of $depcc... " >&6; }
4470 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4474 # We make a subdir and do the tests there. Otherwise we can end up
4475 # making bogus files that we don't know about and never remove. For
4476 # instance it was reported that on HP-UX the gcc test will end up
4477 # making a dummy file named 'D' -- because '-MD' means "put the output
4478 # in D".
4479 rm -rf conftest.dir
4480 mkdir conftest.dir
4481 # Copy depcomp to subdir because otherwise we won't find it if we're
4482 # using a relative directory.
4483 cp "$am_depcomp" conftest.dir
4484 cd conftest.dir
4485 # We will build objects and dependencies in a subdirectory because
4486 # it helps to detect inapplicable dependency modes. For instance
4487 # both Tru64's cc and ICC support -MD to output dependencies as a
4488 # side effect of compilation, but ICC will put the dependencies in
4489 # the current directory while Tru64 will put them in the object
4490 # directory.
4491 mkdir sub
4492
4493 am_cv_CC_dependencies_compiler_type=none
4494 if test "$am_compiler_list" = ""; then
4495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4496 fi
4497 am__universal=false
4498 case " $depcc " in #(
4499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4500 esac
4501
4502 for depmode in $am_compiler_list; do
4503 # Setup a source with many dependencies, because some compilers
4504 # like to wrap large dependency lists on column 80 (with \), and
4505 # we should not choose a depcomp mode which is confused by this.
4506 #
4507 # We need to recreate these files for each test, as the compiler may
4508 # overwrite some of them when testing with obscure command lines.
4509 # This happens at least with the AIX C compiler.
4510 : > sub/conftest.c
4511 for i in 1 2 3 4 5 6; do
4512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4513 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4514 # Solaris 10 /bin/sh.
4515 echo '/* dummy */' > sub/conftst$i.h
4516 done
4517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4518
4519 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4520 # mode. It turns out that the SunPro C++ compiler does not properly
4521 # handle '-M -o', and we need to detect this. Also, some Intel
4522 # versions had trouble with output in subdirs.
4523 am__obj=sub/conftest.${OBJEXT-o}
4524 am__minus_obj="-o $am__obj"
4525 case $depmode in
4526 gcc)
4527 # This depmode causes a compiler race in universal mode.
4528 test "$am__universal" = false || continue
4529 ;;
4530 nosideeffect)
4531 # After this tag, mechanisms are not by side-effect, so they'll
4532 # only be used when explicitly requested.
4533 if test "x$enable_dependency_tracking" = xyes; then
4534 continue
4535 else
4536 break
4537 fi
4538 ;;
4539 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4540 # This compiler won't grok '-c -o', but also, the minuso test has
4541 # not run yet. These depmodes are late enough in the game, and
4542 # so weak that their functioning should not be impacted.
4543 am__obj=conftest.${OBJEXT-o}
4544 am__minus_obj=
4545 ;;
4546 none) break ;;
4547 esac
4548 if depmode=$depmode \
4549 source=sub/conftest.c object=$am__obj \
4550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4552 >/dev/null 2>conftest.err &&
4553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4557 # icc doesn't choke on unknown options, it will just issue warnings
4558 # or remarks (even with -Werror). So we grep stderr for any message
4559 # that says an option was ignored or not supported.
4560 # When given -MP, icc 7.0 and 7.1 complain thusly:
4561 # icc: Command line warning: ignoring option '-M'; no argument required
4562 # The diagnosis changed in icc 8.0:
4563 # icc: Command line remark: option '-MP' not supported
4564 if (grep 'ignoring option' conftest.err ||
4565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4566 am_cv_CC_dependencies_compiler_type=$depmode
4567 break
4568 fi
4569 fi
4570 done
4571
4572 cd ..
4573 rm -rf conftest.dir
4574 else
4575 am_cv_CC_dependencies_compiler_type=none
4576 fi
4577
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4580 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4582
4583 if
4584 test "x$enable_dependency_tracking" != xno \
4585 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4586 am__fastdepCC_TRUE=
4587 am__fastdepCC_FALSE='#'
4588 else
4589 am__fastdepCC_TRUE='#'
4590 am__fastdepCC_FALSE=
4591 fi
4592
4593
4594
4595 ac_ext=c
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4601 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4602 # On Suns, sometimes $CPP names a directory.
4603 if test -n "$CPP" && test -d "$CPP"; then
4604 CPP=
4605 fi
4606 if test -z "$CPP"; then
4607 if ${ac_cv_prog_CPP+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 # Double quotes because CPP needs to be expanded
4611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4612 do
4613 ac_preproc_ok=false
4614 for ac_c_preproc_warn_flag in '' yes
4615 do
4616 # Use a header file that comes with gcc, so configuring glibc
4617 # with a fresh cross-compiler works.
4618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4619 # <limits.h> exists even on freestanding compilers.
4620 # On the NeXT, cc -E runs the code through the compiler's parser,
4621 # not just through cpp. "Syntax error" is here to catch this case.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #ifdef __STDC__
4625 # include <limits.h>
4626 #else
4627 # include <assert.h>
4628 #endif
4629 Syntax error
4630 _ACEOF
4631 if ac_fn_c_try_cpp "$LINENO"; then :
4632
4633 else
4634 # Broken: fails on valid input.
4635 continue
4636 fi
4637 rm -f conftest.err conftest.i conftest.$ac_ext
4638
4639 # OK, works on sane cases. Now check whether nonexistent headers
4640 # can be detected and how.
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <ac_nonexistent.h>
4644 _ACEOF
4645 if ac_fn_c_try_cpp "$LINENO"; then :
4646 # Broken: success on invalid input.
4647 continue
4648 else
4649 # Passes both tests.
4650 ac_preproc_ok=:
4651 break
4652 fi
4653 rm -f conftest.err conftest.i conftest.$ac_ext
4654
4655 done
4656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4657 rm -f conftest.i conftest.err conftest.$ac_ext
4658 if $ac_preproc_ok; then :
4659 break
4660 fi
4661
4662 done
4663 ac_cv_prog_CPP=$CPP
4664
4665 fi
4666 CPP=$ac_cv_prog_CPP
4667 else
4668 ac_cv_prog_CPP=$CPP
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4671 $as_echo "$CPP" >&6; }
4672 ac_preproc_ok=false
4673 for ac_c_preproc_warn_flag in '' yes
4674 do
4675 # Use a header file that comes with gcc, so configuring glibc
4676 # with a fresh cross-compiler works.
4677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4678 # <limits.h> exists even on freestanding compilers.
4679 # On the NeXT, cc -E runs the code through the compiler's parser,
4680 # not just through cpp. "Syntax error" is here to catch this case.
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4683 #ifdef __STDC__
4684 # include <limits.h>
4685 #else
4686 # include <assert.h>
4687 #endif
4688 Syntax error
4689 _ACEOF
4690 if ac_fn_c_try_cpp "$LINENO"; then :
4691
4692 else
4693 # Broken: fails on valid input.
4694 continue
4695 fi
4696 rm -f conftest.err conftest.i conftest.$ac_ext
4697
4698 # OK, works on sane cases. Now check whether nonexistent headers
4699 # can be detected and how.
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <ac_nonexistent.h>
4703 _ACEOF
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4705 # Broken: success on invalid input.
4706 continue
4707 else
4708 # Passes both tests.
4709 ac_preproc_ok=:
4710 break
4711 fi
4712 rm -f conftest.err conftest.i conftest.$ac_ext
4713
4714 done
4715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4716 rm -f conftest.i conftest.err conftest.$ac_ext
4717 if $ac_preproc_ok; then :
4718
4719 else
4720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4722 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4723 See \`config.log' for more details" "$LINENO" 5; }
4724 fi
4725
4726 ac_ext=c
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4734 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4735 if ${ac_cv_path_GREP+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -z "$GREP"; then
4739 ac_path_GREP_found=false
4740 # Loop through the user's path and test for each of PROGNAME-LIST
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4743 do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_prog in grep ggrep; do
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4749 as_fn_executable_p "$ac_path_GREP" || continue
4750 # Check for GNU ac_path_GREP and select it if it is found.
4751 # Check for GNU $ac_path_GREP
4752 case `"$ac_path_GREP" --version 2>&1` in
4753 *GNU*)
4754 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4755 *)
4756 ac_count=0
4757 $as_echo_n 0123456789 >"conftest.in"
4758 while :
4759 do
4760 cat "conftest.in" "conftest.in" >"conftest.tmp"
4761 mv "conftest.tmp" "conftest.in"
4762 cp "conftest.in" "conftest.nl"
4763 $as_echo 'GREP' >> "conftest.nl"
4764 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4766 as_fn_arith $ac_count + 1 && ac_count=$as_val
4767 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4768 # Best one so far, save it but keep looking for a better one
4769 ac_cv_path_GREP="$ac_path_GREP"
4770 ac_path_GREP_max=$ac_count
4771 fi
4772 # 10*(2^10) chars as input seems more than enough
4773 test $ac_count -gt 10 && break
4774 done
4775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4776 esac
4777
4778 $ac_path_GREP_found && break 3
4779 done
4780 done
4781 done
4782 IFS=$as_save_IFS
4783 if test -z "$ac_cv_path_GREP"; then
4784 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4785 fi
4786 else
4787 ac_cv_path_GREP=$GREP
4788 fi
4789
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4792 $as_echo "$ac_cv_path_GREP" >&6; }
4793 GREP="$ac_cv_path_GREP"
4794
4795
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4797 $as_echo_n "checking for egrep... " >&6; }
4798 if ${ac_cv_path_EGREP+:} false; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4802 then ac_cv_path_EGREP="$GREP -E"
4803 else
4804 if test -z "$EGREP"; then
4805 ac_path_EGREP_found=false
4806 # Loop through the user's path and test for each of PROGNAME-LIST
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4809 do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_prog in egrep; do
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4815 as_fn_executable_p "$ac_path_EGREP" || continue
4816 # Check for GNU ac_path_EGREP and select it if it is found.
4817 # Check for GNU $ac_path_EGREP
4818 case `"$ac_path_EGREP" --version 2>&1` in
4819 *GNU*)
4820 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4821 *)
4822 ac_count=0
4823 $as_echo_n 0123456789 >"conftest.in"
4824 while :
4825 do
4826 cat "conftest.in" "conftest.in" >"conftest.tmp"
4827 mv "conftest.tmp" "conftest.in"
4828 cp "conftest.in" "conftest.nl"
4829 $as_echo 'EGREP' >> "conftest.nl"
4830 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4832 as_fn_arith $ac_count + 1 && ac_count=$as_val
4833 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4834 # Best one so far, save it but keep looking for a better one
4835 ac_cv_path_EGREP="$ac_path_EGREP"
4836 ac_path_EGREP_max=$ac_count
4837 fi
4838 # 10*(2^10) chars as input seems more than enough
4839 test $ac_count -gt 10 && break
4840 done
4841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4842 esac
4843
4844 $ac_path_EGREP_found && break 3
4845 done
4846 done
4847 done
4848 IFS=$as_save_IFS
4849 if test -z "$ac_cv_path_EGREP"; then
4850 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4851 fi
4852 else
4853 ac_cv_path_EGREP=$EGREP
4854 fi
4855
4856 fi
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4859 $as_echo "$ac_cv_path_EGREP" >&6; }
4860 EGREP="$ac_cv_path_EGREP"
4861
4862
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4864 $as_echo_n "checking for ANSI C header files... " >&6; }
4865 if ${ac_cv_header_stdc+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #include <stdlib.h>
4871 #include <stdarg.h>
4872 #include <string.h>
4873 #include <float.h>
4874
4875 int
4876 main ()
4877 {
4878
4879 ;
4880 return 0;
4881 }
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 ac_cv_header_stdc=yes
4885 else
4886 ac_cv_header_stdc=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889
4890 if test $ac_cv_header_stdc = yes; then
4891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #include <string.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "memchr" >/dev/null 2>&1; then :
4899
4900 else
4901 ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
4907 if test $ac_cv_header_stdc = yes; then
4908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #include <stdlib.h>
4912
4913 _ACEOF
4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915 $EGREP "free" >/dev/null 2>&1; then :
4916
4917 else
4918 ac_cv_header_stdc=no
4919 fi
4920 rm -f conftest*
4921
4922 fi
4923
4924 if test $ac_cv_header_stdc = yes; then
4925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4926 if test "$cross_compiling" = yes; then :
4927 :
4928 else
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 #include <ctype.h>
4932 #include <stdlib.h>
4933 #if ((' ' & 0x0FF) == 0x020)
4934 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4935 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4936 #else
4937 # define ISLOWER(c) \
4938 (('a' <= (c) && (c) <= 'i') \
4939 || ('j' <= (c) && (c) <= 'r') \
4940 || ('s' <= (c) && (c) <= 'z'))
4941 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4942 #endif
4943
4944 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4945 int
4946 main ()
4947 {
4948 int i;
4949 for (i = 0; i < 256; i++)
4950 if (XOR (islower (i), ISLOWER (i))
4951 || toupper (i) != TOUPPER (i))
4952 return 2;
4953 return 0;
4954 }
4955 _ACEOF
4956 if ac_fn_c_try_run "$LINENO"; then :
4957
4958 else
4959 ac_cv_header_stdc=no
4960 fi
4961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4962 conftest.$ac_objext conftest.beam conftest.$ac_ext
4963 fi
4964
4965 fi
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4968 $as_echo "$ac_cv_header_stdc" >&6; }
4969 if test $ac_cv_header_stdc = yes; then
4970
4971 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4972
4973 fi
4974
4975 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4977 inttypes.h stdint.h unistd.h
4978 do :
4979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4981 "
4982 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4983 cat >>confdefs.h <<_ACEOF
4984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4985 _ACEOF
4986
4987 fi
4988
4989 done
4990
4991
4992
4993 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4994 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4995 MINIX=yes
4996 else
4997 MINIX=
4998 fi
4999
5000
5001 if test "$MINIX" = yes; then
5002
5003 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5004
5005
5006 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5007
5008
5009 $as_echo "#define _MINIX 1" >>confdefs.h
5010
5011 fi
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5015 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5016 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018 else
5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5021
5022 # define __EXTENSIONS__ 1
5023 $ac_includes_default
5024 int
5025 main ()
5026 {
5027
5028 ;
5029 return 0;
5030 }
5031 _ACEOF
5032 if ac_fn_c_try_compile "$LINENO"; then :
5033 ac_cv_safe_to_define___extensions__=yes
5034 else
5035 ac_cv_safe_to_define___extensions__=no
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5040 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5041 test $ac_cv_safe_to_define___extensions__ = yes &&
5042 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5043
5044 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5045
5046 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5047
5048 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5049
5050 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5051
5052
5053
5054 case `pwd` in
5055 *\ * | *\ *)
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5057 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5058 esac
5059
5060
5061
5062 macro_version='2.2.7a'
5063 macro_revision='1.3134'
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077 ltmain="$ac_aux_dir/ltmain.sh"
5078
5079 # Backslashify metacharacters that are still active within
5080 # double-quoted strings.
5081 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5082
5083 # Same as above, but do not quote variable references.
5084 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5085
5086 # Sed substitution to delay expansion of an escaped shell variable in a
5087 # double_quote_subst'ed string.
5088 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5089
5090 # Sed substitution to delay expansion of an escaped single quote.
5091 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5092
5093 # Sed substitution to avoid accidental globbing in evaled expressions
5094 no_glob_subst='s/\*/\\\*/g'
5095
5096 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5097 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5098 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5101 $as_echo_n "checking how to print strings... " >&6; }
5102 # Test print first, because it will be a builtin if present.
5103 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5104 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5105 ECHO='print -r --'
5106 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5107 ECHO='printf %s\n'
5108 else
5109 # Use this function as a fallback that always works.
5110 func_fallback_echo ()
5111 {
5112 eval 'cat <<_LTECHO_EOF
5113 $1
5114 _LTECHO_EOF'
5115 }
5116 ECHO='func_fallback_echo'
5117 fi
5118
5119 # func_echo_all arg...
5120 # Invoke $ECHO with all args, space-separated.
5121 func_echo_all ()
5122 {
5123 $ECHO ""
5124 }
5125
5126 case "$ECHO" in
5127 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5128 $as_echo "printf" >&6; } ;;
5129 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5130 $as_echo "print -r" >&6; } ;;
5131 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5132 $as_echo "cat" >&6; } ;;
5133 esac
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5149 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5150 if ${ac_cv_path_SED+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5154 for ac_i in 1 2 3 4 5 6 7; do
5155 ac_script="$ac_script$as_nl$ac_script"
5156 done
5157 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5158 { ac_script=; unset ac_script;}
5159 if test -z "$SED"; then
5160 ac_path_SED_found=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_prog in sed gsed; do
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5170 as_fn_executable_p "$ac_path_SED" || continue
5171 # Check for GNU ac_path_SED and select it if it is found.
5172 # Check for GNU $ac_path_SED
5173 case `"$ac_path_SED" --version 2>&1` in
5174 *GNU*)
5175 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5176 *)
5177 ac_count=0
5178 $as_echo_n 0123456789 >"conftest.in"
5179 while :
5180 do
5181 cat "conftest.in" "conftest.in" >"conftest.tmp"
5182 mv "conftest.tmp" "conftest.in"
5183 cp "conftest.in" "conftest.nl"
5184 $as_echo '' >> "conftest.nl"
5185 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5186 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5187 as_fn_arith $ac_count + 1 && ac_count=$as_val
5188 if test $ac_count -gt ${ac_path_SED_max-0}; then
5189 # Best one so far, save it but keep looking for a better one
5190 ac_cv_path_SED="$ac_path_SED"
5191 ac_path_SED_max=$ac_count
5192 fi
5193 # 10*(2^10) chars as input seems more than enough
5194 test $ac_count -gt 10 && break
5195 done
5196 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5197 esac
5198
5199 $ac_path_SED_found && break 3
5200 done
5201 done
5202 done
5203 IFS=$as_save_IFS
5204 if test -z "$ac_cv_path_SED"; then
5205 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5206 fi
5207 else
5208 ac_cv_path_SED=$SED
5209 fi
5210
5211 fi
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5213 $as_echo "$ac_cv_path_SED" >&6; }
5214 SED="$ac_cv_path_SED"
5215 rm -f conftest.sed
5216
5217 test -z "$SED" && SED=sed
5218 Xsed="$SED -e 1s/^X//"
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5231 $as_echo_n "checking for fgrep... " >&6; }
5232 if ${ac_cv_path_FGREP+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5236 then ac_cv_path_FGREP="$GREP -F"
5237 else
5238 if test -z "$FGREP"; then
5239 ac_path_FGREP_found=false
5240 # Loop through the user's path and test for each of PROGNAME-LIST
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5243 do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_prog in fgrep; do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5249 as_fn_executable_p "$ac_path_FGREP" || continue
5250 # Check for GNU ac_path_FGREP and select it if it is found.
5251 # Check for GNU $ac_path_FGREP
5252 case `"$ac_path_FGREP" --version 2>&1` in
5253 *GNU*)
5254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5255 *)
5256 ac_count=0
5257 $as_echo_n 0123456789 >"conftest.in"
5258 while :
5259 do
5260 cat "conftest.in" "conftest.in" >"conftest.tmp"
5261 mv "conftest.tmp" "conftest.in"
5262 cp "conftest.in" "conftest.nl"
5263 $as_echo 'FGREP' >> "conftest.nl"
5264 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266 as_fn_arith $ac_count + 1 && ac_count=$as_val
5267 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5268 # Best one so far, save it but keep looking for a better one
5269 ac_cv_path_FGREP="$ac_path_FGREP"
5270 ac_path_FGREP_max=$ac_count
5271 fi
5272 # 10*(2^10) chars as input seems more than enough
5273 test $ac_count -gt 10 && break
5274 done
5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5276 esac
5277
5278 $ac_path_FGREP_found && break 3
5279 done
5280 done
5281 done
5282 IFS=$as_save_IFS
5283 if test -z "$ac_cv_path_FGREP"; then
5284 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5285 fi
5286 else
5287 ac_cv_path_FGREP=$FGREP
5288 fi
5289
5290 fi
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5293 $as_echo "$ac_cv_path_FGREP" >&6; }
5294 FGREP="$ac_cv_path_FGREP"
5295
5296
5297 test -z "$GREP" && GREP=grep
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317 # Check whether --with-gnu-ld was given.
5318 if test "${with_gnu_ld+set}" = set; then :
5319 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5320 else
5321 with_gnu_ld=no
5322 fi
5323
5324 ac_prog=ld
5325 if test "$GCC" = yes; then
5326 # Check if gcc -print-prog-name=ld gives a path.
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5328 $as_echo_n "checking for ld used by $CC... " >&6; }
5329 case $host in
5330 *-*-mingw*)
5331 # gcc leaves a trailing carriage return which upsets mingw
5332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5333 *)
5334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5335 esac
5336 case $ac_prog in
5337 # Accept absolute paths.
5338 [\\/]* | ?:[\\/]*)
5339 re_direlt='/[^/][^/]*/\.\./'
5340 # Canonicalize the pathname of ld
5341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5344 done
5345 test -z "$LD" && LD="$ac_prog"
5346 ;;
5347 "")
5348 # If it fails, then pretend we aren't using GCC.
5349 ac_prog=ld
5350 ;;
5351 *)
5352 # If it is relative, then search for the first ld in PATH.
5353 with_gnu_ld=unknown
5354 ;;
5355 esac
5356 elif test "$with_gnu_ld" = yes; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5358 $as_echo_n "checking for GNU ld... " >&6; }
5359 else
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5361 $as_echo_n "checking for non-GNU ld... " >&6; }
5362 fi
5363 if ${lt_cv_path_LD+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test -z "$LD"; then
5367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5368 for ac_dir in $PATH; do
5369 IFS="$lt_save_ifs"
5370 test -z "$ac_dir" && ac_dir=.
5371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5372 lt_cv_path_LD="$ac_dir/$ac_prog"
5373 # Check to see if the program is GNU ld. I'd rather use --version,
5374 # but apparently some variants of GNU ld only accept -v.
5375 # Break only if it was the GNU/non-GNU ld that we prefer.
5376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5377 *GNU* | *'with BFD'*)
5378 test "$with_gnu_ld" != no && break
5379 ;;
5380 *)
5381 test "$with_gnu_ld" != yes && break
5382 ;;
5383 esac
5384 fi
5385 done
5386 IFS="$lt_save_ifs"
5387 else
5388 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5389 fi
5390 fi
5391
5392 LD="$lt_cv_path_LD"
5393 if test -n "$LD"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5395 $as_echo "$LD" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5399 fi
5400 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5402 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5403 if ${lt_cv_prog_gnu_ld+:} false; then :
5404 $as_echo_n "(cached) " >&6
5405 else
5406 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5407 case `$LD -v 2>&1 </dev/null` in
5408 *GNU* | *'with BFD'*)
5409 lt_cv_prog_gnu_ld=yes
5410 ;;
5411 *)
5412 lt_cv_prog_gnu_ld=no
5413 ;;
5414 esac
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5417 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5418 with_gnu_ld=$lt_cv_prog_gnu_ld
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5429 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5430 if ${lt_cv_path_NM+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 if test -n "$NM"; then
5434 # Let the user override the nm to test.
5435 lt_nm_to_check="$NM"
5436 else
5437 lt_nm_to_check="${ac_tool_prefix}nm"
5438 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5439 lt_nm_to_check="$lt_nm_to_check nm"
5440 fi
5441 fi
5442 for lt_tmp_nm in "$lt_nm_to_check"; do
5443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5444 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5445 IFS="$lt_save_ifs"
5446 test -z "$ac_dir" && ac_dir=.
5447 # Strip out any user-provided options from the nm to test twice,
5448 # the first time to test to see if nm (rather than its options) has
5449 # an explicit path, the second time to yield a file which can be
5450 # nm'ed itself.
5451 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5452 case "$tmp_nm_path" in
5453 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5454 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5455 esac
5456 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5457 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5458 # Check to see if the nm accepts a BSD-compat flag.
5459 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5460 # nm: unknown option "B" ignored
5461 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5462 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5463 break
5464 ;;
5465 *)
5466 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5467 *$tmp_nm*)
5468 lt_cv_path_NM="$tmp_nm -p"
5469 break
5470 ;;
5471 *)
5472 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5473 continue # so that we can try to find one that supports BSD flags
5474 ;;
5475 esac
5476 ;;
5477 esac
5478 fi
5479 done
5480 IFS="$lt_save_ifs"
5481 done
5482 : ${lt_cv_path_NM=no}
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5485 $as_echo "$lt_cv_path_NM" >&6; }
5486 if test "$lt_cv_path_NM" != "no"; then
5487 NM="$lt_cv_path_NM"
5488 else
5489 # Didn't find any BSD compatible name lister, look for dumpbin.
5490 if test -n "$DUMPBIN"; then :
5491 # Let the user override the test.
5492 else
5493 if test -n "$ac_tool_prefix"; then
5494 for ac_prog in dumpbin "link -dump"
5495 do
5496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_prog_DUMPBIN+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$DUMPBIN"; then
5504 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5505 else
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517 done
5518 done
5519 IFS=$as_save_IFS
5520
5521 fi
5522 fi
5523 DUMPBIN=$ac_cv_prog_DUMPBIN
5524 if test -n "$DUMPBIN"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5526 $as_echo "$DUMPBIN" >&6; }
5527 else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 fi
5531
5532
5533 test -n "$DUMPBIN" && break
5534 done
5535 fi
5536 if test -z "$DUMPBIN"; then
5537 ac_ct_DUMPBIN=$DUMPBIN
5538 for ac_prog in dumpbin "link -dump"
5539 do
5540 # Extract the first word of "$ac_prog", so it can be a program name with args.
5541 set dummy $ac_prog; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$ac_ct_DUMPBIN"; then
5548 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5560 fi
5561 done
5562 done
5563 IFS=$as_save_IFS
5564
5565 fi
5566 fi
5567 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5568 if test -n "$ac_ct_DUMPBIN"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5570 $as_echo "$ac_ct_DUMPBIN" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 fi
5575
5576
5577 test -n "$ac_ct_DUMPBIN" && break
5578 done
5579
5580 if test "x$ac_ct_DUMPBIN" = x; then
5581 DUMPBIN=":"
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584 yes:)
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589 DUMPBIN=$ac_ct_DUMPBIN
5590 fi
5591 fi
5592
5593 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5594 *COFF*)
5595 DUMPBIN="$DUMPBIN -symbols"
5596 ;;
5597 *)
5598 DUMPBIN=:
5599 ;;
5600 esac
5601 fi
5602
5603 if test "$DUMPBIN" != ":"; then
5604 NM="$DUMPBIN"
5605 fi
5606 fi
5607 test -z "$NM" && NM=nm
5608
5609
5610
5611
5612
5613
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5615 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5616 if ${lt_cv_nm_interface+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 lt_cv_nm_interface="BSD nm"
5620 echo "int some_variable = 0;" > conftest.$ac_ext
5621 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5622 (eval "$ac_compile" 2>conftest.err)
5623 cat conftest.err >&5
5624 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5625 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5626 cat conftest.err >&5
5627 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5628 cat conftest.out >&5
5629 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5630 lt_cv_nm_interface="MS dumpbin"
5631 fi
5632 rm -f conftest*
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5635 $as_echo "$lt_cv_nm_interface" >&6; }
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5638 $as_echo_n "checking whether ln -s works... " >&6; }
5639 LN_S=$as_ln_s
5640 if test "$LN_S" = "ln -s"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5642 $as_echo "yes" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5645 $as_echo "no, using $LN_S" >&6; }
5646 fi
5647
5648 # find the maximum length of command line arguments
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5650 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5651 if ${lt_cv_sys_max_cmd_len+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 i=0
5655 teststring="ABCD"
5656
5657 case $build_os in
5658 msdosdjgpp*)
5659 # On DJGPP, this test can blow up pretty badly due to problems in libc
5660 # (any single argument exceeding 2000 bytes causes a buffer overrun
5661 # during glob expansion). Even if it were fixed, the result of this
5662 # check would be larger than it should be.
5663 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5664 ;;
5665
5666 gnu*)
5667 # Under GNU Hurd, this test is not required because there is
5668 # no limit to the length of command line arguments.
5669 # Libtool will interpret -1 as no limit whatsoever
5670 lt_cv_sys_max_cmd_len=-1;
5671 ;;
5672
5673 cygwin* | mingw* | cegcc*)
5674 # On Win9x/ME, this test blows up -- it succeeds, but takes
5675 # about 5 minutes as the teststring grows exponentially.
5676 # Worse, since 9x/ME are not pre-emptively multitasking,
5677 # you end up with a "frozen" computer, even though with patience
5678 # the test eventually succeeds (with a max line length of 256k).
5679 # Instead, let's just punt: use the minimum linelength reported by
5680 # all of the supported platforms: 8192 (on NT/2K/XP).
5681 lt_cv_sys_max_cmd_len=8192;
5682 ;;
5683
5684 mint*)
5685 # On MiNT this can take a long time and run out of memory.
5686 lt_cv_sys_max_cmd_len=8192;
5687 ;;
5688
5689 amigaos*)
5690 # On AmigaOS with pdksh, this test takes hours, literally.
5691 # So we just punt and use a minimum line length of 8192.
5692 lt_cv_sys_max_cmd_len=8192;
5693 ;;
5694
5695 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5696 # This has been around since 386BSD, at least. Likely further.
5697 if test -x /sbin/sysctl; then
5698 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5699 elif test -x /usr/sbin/sysctl; then
5700 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5701 else
5702 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5703 fi
5704 # And add a safety zone
5705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5707 ;;
5708
5709 interix*)
5710 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5711 lt_cv_sys_max_cmd_len=196608
5712 ;;
5713
5714 osf*)
5715 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5716 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5717 # nice to cause kernel panics so lets avoid the loop below.
5718 # First set a reasonable default.
5719 lt_cv_sys_max_cmd_len=16384
5720 #
5721 if test -x /sbin/sysconfig; then
5722 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5723 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5724 esac
5725 fi
5726 ;;
5727 sco3.2v5*)
5728 lt_cv_sys_max_cmd_len=102400
5729 ;;
5730 sysv5* | sco5v6* | sysv4.2uw2*)
5731 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5732 if test -n "$kargmax"; then
5733 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5734 else
5735 lt_cv_sys_max_cmd_len=32768
5736 fi
5737 ;;
5738 *)
5739 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5740 if test -n "$lt_cv_sys_max_cmd_len"; then
5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5743 else
5744 # Make teststring a little bigger before we do anything with it.
5745 # a 1K string should be a reasonable start.
5746 for i in 1 2 3 4 5 6 7 8 ; do
5747 teststring=$teststring$teststring
5748 done
5749 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5750 # If test is not a shell built-in, we'll probably end up computing a
5751 # maximum length that is only half of the actual maximum length, but
5752 # we can't tell.
5753 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5754 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5755 test $i != 17 # 1/2 MB should be enough
5756 do
5757 i=`expr $i + 1`
5758 teststring=$teststring$teststring
5759 done
5760 # Only check the string length outside the loop.
5761 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5762 teststring=
5763 # Add a significant safety factor because C++ compilers can tack on
5764 # massive amounts of additional arguments before passing them to the
5765 # linker. It appears as though 1/2 is a usable value.
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5767 fi
5768 ;;
5769 esac
5770
5771 fi
5772
5773 if test -n $lt_cv_sys_max_cmd_len ; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5775 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5778 $as_echo "none" >&6; }
5779 fi
5780 max_cmd_len=$lt_cv_sys_max_cmd_len
5781
5782
5783
5784
5785
5786
5787 : ${CP="cp -f"}
5788 : ${MV="mv -f"}
5789 : ${RM="rm -f"}
5790
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5792 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5793 # Try some XSI features
5794 xsi_shell=no
5795 ( _lt_dummy="a/b/c"
5796 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5797 = c,a/b,, \
5798 && eval 'test $(( 1 + 1 )) -eq 2 \
5799 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5800 && xsi_shell=yes
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5802 $as_echo "$xsi_shell" >&6; }
5803
5804
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5806 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5807 lt_shell_append=no
5808 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5809 >/dev/null 2>&1 \
5810 && lt_shell_append=yes
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5812 $as_echo "$lt_shell_append" >&6; }
5813
5814
5815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5816 lt_unset=unset
5817 else
5818 lt_unset=false
5819 fi
5820
5821
5822
5823
5824
5825 # test EBCDIC or ASCII
5826 case `echo X|tr X '\101'` in
5827 A) # ASCII based system
5828 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5829 lt_SP2NL='tr \040 \012'
5830 lt_NL2SP='tr \015\012 \040\040'
5831 ;;
5832 *) # EBCDIC based system
5833 lt_SP2NL='tr \100 \n'
5834 lt_NL2SP='tr \r\n \100\100'
5835 ;;
5836 esac
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5847 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5848 if ${lt_cv_ld_reload_flag+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 lt_cv_ld_reload_flag='-r'
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5854 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5855 reload_flag=$lt_cv_ld_reload_flag
5856 case $reload_flag in
5857 "" | " "*) ;;
5858 *) reload_flag=" $reload_flag" ;;
5859 esac
5860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5861 case $host_os in
5862 darwin*)
5863 if test "$GCC" = yes; then
5864 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5865 else
5866 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5867 fi
5868 ;;
5869 esac
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 if test -n "$ac_tool_prefix"; then
5880 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5881 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_OBJDUMP+:} false; then :
5885 $as_echo_n "(cached) " >&6
5886 else
5887 if test -n "$OBJDUMP"; then
5888 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893 IFS=$as_save_IFS
5894 test -z "$as_dir" && as_dir=.
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 break 2
5900 fi
5901 done
5902 done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 OBJDUMP=$ac_cv_prog_OBJDUMP
5908 if test -n "$OBJDUMP"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5910 $as_echo "$OBJDUMP" >&6; }
5911 else
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916
5917 fi
5918 if test -z "$ac_cv_prog_OBJDUMP"; then
5919 ac_ct_OBJDUMP=$OBJDUMP
5920 # Extract the first word of "objdump", so it can be a program name with args.
5921 set dummy objdump; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$ac_ct_OBJDUMP"; then
5928 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5948 if test -n "$ac_ct_OBJDUMP"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5950 $as_echo "$ac_ct_OBJDUMP" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956 if test "x$ac_ct_OBJDUMP" = x; then
5957 OBJDUMP="false"
5958 else
5959 case $cross_compiling:$ac_tool_warned in
5960 yes:)
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned=yes ;;
5964 esac
5965 OBJDUMP=$ac_ct_OBJDUMP
5966 fi
5967 else
5968 OBJDUMP="$ac_cv_prog_OBJDUMP"
5969 fi
5970
5971 test -z "$OBJDUMP" && OBJDUMP=objdump
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5982 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5983 if ${lt_cv_deplibs_check_method+:} false; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 lt_cv_file_magic_cmd='$MAGIC_CMD'
5987 lt_cv_file_magic_test_file=
5988 lt_cv_deplibs_check_method='unknown'
5989 # Need to set the preceding variable on all platforms that support
5990 # interlibrary dependencies.
5991 # 'none' -- dependencies not supported.
5992 # `unknown' -- same as none, but documents that we really don't know.
5993 # 'pass_all' -- all dependencies passed with no checks.
5994 # 'test_compile' -- check by making test program.
5995 # 'file_magic [[regex]]' -- check by looking for files in library path
5996 # which responds to the $file_magic_cmd with a given extended regex.
5997 # If you have `file' or equivalent on your system and you're not sure
5998 # whether `pass_all' will *always* work, you probably want this one.
5999
6000 case $host_os in
6001 aix[4-9]*)
6002 lt_cv_deplibs_check_method=pass_all
6003 ;;
6004
6005 beos*)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008
6009 bsdi[45]*)
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6011 lt_cv_file_magic_cmd='/usr/bin/file -L'
6012 lt_cv_file_magic_test_file=/shlib/libc.so
6013 ;;
6014
6015 cygwin*)
6016 # func_win32_libid is a shell function defined in ltmain.sh
6017 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6018 lt_cv_file_magic_cmd='func_win32_libid'
6019 ;;
6020
6021 mingw* | pw32*)
6022 # Base MSYS/MinGW do not provide the 'file' command needed by
6023 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6024 # unless we find 'file', for example because we are cross-compiling.
6025 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6026 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6027 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6028 lt_cv_file_magic_cmd='func_win32_libid'
6029 else
6030 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6031 lt_cv_file_magic_cmd='$OBJDUMP -f'
6032 fi
6033 ;;
6034
6035 cegcc*)
6036 # use the weaker test based on 'objdump'. See mingw*.
6037 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6038 lt_cv_file_magic_cmd='$OBJDUMP -f'
6039 ;;
6040
6041 darwin* | rhapsody*)
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
6044
6045 freebsd* | dragonfly*)
6046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6047 case $host_cpu in
6048 i*86 )
6049 # Not sure whether the presence of OpenBSD here was a mistake.
6050 # Let's accept both of them until this is cleared up.
6051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6052 lt_cv_file_magic_cmd=/usr/bin/file
6053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6054 ;;
6055 esac
6056 else
6057 lt_cv_deplibs_check_method=pass_all
6058 fi
6059 ;;
6060
6061 gnu*)
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
6064
6065 haiku*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
6069 hpux10.20* | hpux11*)
6070 lt_cv_file_magic_cmd=/usr/bin/file
6071 case $host_cpu in
6072 ia64*)
6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6075 ;;
6076 hppa*64*)
6077 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]'
6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6079 ;;
6080 *)
6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6083 ;;
6084 esac
6085 ;;
6086
6087 interix[3-9]*)
6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6090 ;;
6091
6092 irix5* | irix6* | nonstopux*)
6093 case $LD in
6094 *-32|*"-32 ") libmagic=32-bit;;
6095 *-n32|*"-n32 ") libmagic=N32;;
6096 *-64|*"-64 ") libmagic=64-bit;;
6097 *) libmagic=never-match;;
6098 esac
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101
6102 # This must be Linux ELF.
6103 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 netbsd*)
6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6110 else
6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6112 fi
6113 ;;
6114
6115 newos6*)
6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6117 lt_cv_file_magic_cmd=/usr/bin/file
6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6119 ;;
6120
6121 *nto* | *qnx*)
6122 lt_cv_deplibs_check_method=pass_all
6123 ;;
6124
6125 openbsd*)
6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6128 else
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6130 fi
6131 ;;
6132
6133 osf3* | osf4* | osf5*)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136
6137 rdos*)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140
6141 solaris*)
6142 lt_cv_deplibs_check_method=pass_all
6143 ;;
6144
6145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 sysv4 | sysv4.3*)
6150 case $host_vendor in
6151 motorola)
6152 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]'
6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6154 ;;
6155 ncr)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158 sequent)
6159 lt_cv_file_magic_cmd='/bin/file'
6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6161 ;;
6162 sni)
6163 lt_cv_file_magic_cmd='/bin/file'
6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6165 lt_cv_file_magic_test_file=/lib/libc.so
6166 ;;
6167 siemens)
6168 lt_cv_deplibs_check_method=pass_all
6169 ;;
6170 pc)
6171 lt_cv_deplibs_check_method=pass_all
6172 ;;
6173 esac
6174 ;;
6175
6176 tpf*)
6177 lt_cv_deplibs_check_method=pass_all
6178 ;;
6179 vxworks*)
6180 # Assume VxWorks cross toolchains are built on Linux, possibly
6181 # as canadian for Windows hosts.
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
6184 esac
6185
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6188 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6189 file_magic_cmd=$lt_cv_file_magic_cmd
6190 deplibs_check_method=$lt_cv_deplibs_check_method
6191 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 plugin_option=
6205 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6206 for plugin in $plugin_names; do
6207 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6208 if test x$plugin_so = x$plugin; then
6209 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6210 fi
6211 if test x$plugin_so != x$plugin; then
6212 plugin_option="--plugin $plugin_so"
6213 break
6214 fi
6215 done
6216
6217 if test -n "$ac_tool_prefix"; then
6218 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6219 set dummy ${ac_tool_prefix}ar; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if ${ac_cv_prog_AR+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 if test -n "$AR"; then
6226 ac_cv_prog_AR="$AR" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235 ac_cv_prog_AR="${ac_tool_prefix}ar"
6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6238 fi
6239 done
6240 done
6241 IFS=$as_save_IFS
6242
6243 fi
6244 fi
6245 AR=$ac_cv_prog_AR
6246 if test -n "$AR"; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6248 $as_echo "$AR" >&6; }
6249 else
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251 $as_echo "no" >&6; }
6252 fi
6253
6254
6255 fi
6256 if test -z "$ac_cv_prog_AR"; then
6257 ac_ct_AR=$AR
6258 # Extract the first word of "ar", so it can be a program name with args.
6259 set dummy ar; ac_word=$2
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 if test -n "$ac_ct_AR"; then
6266 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271 IFS=$as_save_IFS
6272 test -z "$as_dir" && as_dir=.
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6275 ac_cv_prog_ac_ct_AR="ar"
6276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 break 2
6278 fi
6279 done
6280 done
6281 IFS=$as_save_IFS
6282
6283 fi
6284 fi
6285 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6286 if test -n "$ac_ct_AR"; then
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6288 $as_echo "$ac_ct_AR" >&6; }
6289 else
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6292 fi
6293
6294 if test "x$ac_ct_AR" = x; then
6295 AR="false"
6296 else
6297 case $cross_compiling:$ac_tool_warned in
6298 yes:)
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301 ac_tool_warned=yes ;;
6302 esac
6303 AR=$ac_ct_AR
6304 fi
6305 else
6306 AR="$ac_cv_prog_AR"
6307 fi
6308
6309 test -z "$AR" && AR=ar
6310 if test -n "$plugin_option"; then
6311 if $AR --help 2>&1 | grep -q "\--plugin"; then
6312 touch conftest.c
6313 $AR $plugin_option rc conftest.a conftest.c
6314 if test "$?" != 0; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6316 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6317 else
6318 AR="$AR $plugin_option"
6319 fi
6320 rm -f conftest.*
6321 fi
6322 fi
6323 test -z "$AR_FLAGS" && AR_FLAGS=cru
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6337 set dummy ${ac_tool_prefix}strip; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_STRIP+:} false; then :
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$STRIP"; then
6344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 STRIP=$ac_cv_prog_STRIP
6364 if test -n "$STRIP"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6366 $as_echo "$STRIP" >&6; }
6367 else
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372
6373 fi
6374 if test -z "$ac_cv_prog_STRIP"; then
6375 ac_ct_STRIP=$STRIP
6376 # Extract the first word of "strip", so it can be a program name with args.
6377 set dummy strip; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$ac_ct_STRIP"; then
6384 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_ac_ct_STRIP="strip"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6404 if test -n "$ac_ct_STRIP"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6406 $as_echo "$ac_ct_STRIP" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412 if test "x$ac_ct_STRIP" = x; then
6413 STRIP=":"
6414 else
6415 case $cross_compiling:$ac_tool_warned in
6416 yes:)
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421 STRIP=$ac_ct_STRIP
6422 fi
6423 else
6424 STRIP="$ac_cv_prog_STRIP"
6425 fi
6426
6427 test -z "$STRIP" && STRIP=:
6428
6429
6430
6431
6432
6433
6434 if test -n "$ac_tool_prefix"; then
6435 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_prog_RANLIB+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 if test -n "$RANLIB"; then
6443 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6452 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 fi
6461 fi
6462 RANLIB=$ac_cv_prog_RANLIB
6463 if test -n "$RANLIB"; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6465 $as_echo "$RANLIB" >&6; }
6466 else
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 $as_echo "no" >&6; }
6469 fi
6470
6471
6472 fi
6473 if test -z "$ac_cv_prog_RANLIB"; then
6474 ac_ct_RANLIB=$RANLIB
6475 # Extract the first word of "ranlib", so it can be a program name with args.
6476 set dummy ranlib; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6480 $as_echo_n "(cached) " >&6
6481 else
6482 if test -n "$ac_ct_RANLIB"; then
6483 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6484 else
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_ac_ct_RANLIB="ranlib"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
6496 done
6497 done
6498 IFS=$as_save_IFS
6499
6500 fi
6501 fi
6502 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6503 if test -n "$ac_ct_RANLIB"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6505 $as_echo "$ac_ct_RANLIB" >&6; }
6506 else
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6509 fi
6510
6511 if test "x$ac_ct_RANLIB" = x; then
6512 RANLIB=":"
6513 else
6514 case $cross_compiling:$ac_tool_warned in
6515 yes:)
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6518 ac_tool_warned=yes ;;
6519 esac
6520 RANLIB=$ac_ct_RANLIB
6521 fi
6522 else
6523 RANLIB="$ac_cv_prog_RANLIB"
6524 fi
6525
6526 test -z "$RANLIB" && RANLIB=:
6527 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6528 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6529 RANLIB="$RANLIB $plugin_option"
6530 fi
6531 fi
6532
6533
6534
6535
6536
6537
6538 # Determine commands to create old-style static archives.
6539 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6540 old_postinstall_cmds='chmod 644 $oldlib'
6541 old_postuninstall_cmds=
6542
6543 if test -n "$RANLIB"; then
6544 case $host_os in
6545 openbsd*)
6546 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6547 ;;
6548 *)
6549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6550 ;;
6551 esac
6552 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6553 fi
6554
6555 case $host_os in
6556 darwin*)
6557 lock_old_archive_extraction=yes ;;
6558 *)
6559 lock_old_archive_extraction=no ;;
6560 esac
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600 # If no C compiler was specified, use CC.
6601 LTCC=${LTCC-"$CC"}
6602
6603 # If no C compiler flags were specified, use CFLAGS.
6604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6605
6606 # Allow CC to be a program name with arguments.
6607 compiler=$CC
6608
6609
6610 # Check for command to grab the raw symbol name followed by C symbol from nm.
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6612 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6613 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616
6617 # These are sane defaults that work on at least a few old systems.
6618 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6619
6620 # Character class describing NM global symbol codes.
6621 symcode='[BCDEGRST]'
6622
6623 # Regexp to match symbols that can be accessed directly from C.
6624 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6625
6626 # Define system-specific variables.
6627 case $host_os in
6628 aix*)
6629 symcode='[BCDT]'
6630 ;;
6631 cygwin* | mingw* | pw32* | cegcc*)
6632 symcode='[ABCDGISTW]'
6633 ;;
6634 hpux*)
6635 if test "$host_cpu" = ia64; then
6636 symcode='[ABCDEGRST]'
6637 fi
6638 ;;
6639 irix* | nonstopux*)
6640 symcode='[BCDEGRST]'
6641 ;;
6642 osf*)
6643 symcode='[BCDEGQRST]'
6644 ;;
6645 solaris*)
6646 symcode='[BCDRT]'
6647 ;;
6648 sco3.2v5*)
6649 symcode='[DT]'
6650 ;;
6651 sysv4.2uw2*)
6652 symcode='[DT]'
6653 ;;
6654 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6655 symcode='[ABDT]'
6656 ;;
6657 sysv4)
6658 symcode='[DFNSTU]'
6659 ;;
6660 esac
6661
6662 # If we're using GNU nm, then use its standard symbol codes.
6663 case `$NM -V 2>&1` in
6664 *GNU* | *'with BFD'*)
6665 symcode='[ABCDGIRSTW]' ;;
6666 esac
6667
6668 # Transform an extracted symbol line into a proper C declaration.
6669 # Some systems (esp. on ia64) link data and code symbols differently,
6670 # so use this general approach.
6671 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6672
6673 # Transform an extracted symbol line into symbol name and symbol address
6674 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6675 lt_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'"
6676
6677 # Handle CRLF in mingw tool chain
6678 opt_cr=
6679 case $build_os in
6680 mingw*)
6681 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6682 ;;
6683 esac
6684
6685 # Try without a prefix underscore, then with it.
6686 for ac_symprfx in "" "_"; do
6687
6688 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6689 symxfrm="\\1 $ac_symprfx\\2 \\2"
6690
6691 # Write the raw and C identifiers.
6692 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6693 # Fake it for dumpbin and say T for any non-static function
6694 # and D for any global variable.
6695 # Also find C++ and __fastcall symbols from MSVC++,
6696 # which start with @ or ?.
6697 lt_cv_sys_global_symbol_pipe="$AWK '"\
6698 " {last_section=section; section=\$ 3};"\
6699 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6700 " \$ 0!~/External *\|/{next};"\
6701 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6702 " {if(hide[section]) next};"\
6703 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6704 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6705 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6706 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6707 " ' prfx=^$ac_symprfx"
6708 else
6709 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6710 fi
6711
6712 # Check to see that the pipe works correctly.
6713 pipe_works=no
6714
6715 rm -f conftest*
6716 cat > conftest.$ac_ext <<_LT_EOF
6717 #ifdef __cplusplus
6718 extern "C" {
6719 #endif
6720 char nm_test_var;
6721 void nm_test_func(void);
6722 void nm_test_func(void){}
6723 #ifdef __cplusplus
6724 }
6725 #endif
6726 int main(){nm_test_var='a';nm_test_func();return(0);}
6727 _LT_EOF
6728
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 # Now try to grab the symbols.
6735 nlist=conftest.nm
6736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6737 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6738 ac_status=$?
6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6740 test $ac_status = 0; } && test -s "$nlist"; then
6741 # Try sorting and uniquifying the output.
6742 if sort "$nlist" | uniq > "$nlist"T; then
6743 mv -f "$nlist"T "$nlist"
6744 else
6745 rm -f "$nlist"T
6746 fi
6747
6748 # Make sure that we snagged all the symbols we need.
6749 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6750 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6751 cat <<_LT_EOF > conftest.$ac_ext
6752 #ifdef __cplusplus
6753 extern "C" {
6754 #endif
6755
6756 _LT_EOF
6757 # Now generate the symbol file.
6758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6759
6760 cat <<_LT_EOF >> conftest.$ac_ext
6761
6762 /* The mapping between symbol names and symbols. */
6763 const struct {
6764 const char *name;
6765 void *address;
6766 }
6767 lt__PROGRAM__LTX_preloaded_symbols[] =
6768 {
6769 { "@PROGRAM@", (void *) 0 },
6770 _LT_EOF
6771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6772 cat <<\_LT_EOF >> conftest.$ac_ext
6773 {0, (void *) 0}
6774 };
6775
6776 /* This works around a problem in FreeBSD linker */
6777 #ifdef FREEBSD_WORKAROUND
6778 static const void *lt_preloaded_setup() {
6779 return lt__PROGRAM__LTX_preloaded_symbols;
6780 }
6781 #endif
6782
6783 #ifdef __cplusplus
6784 }
6785 #endif
6786 _LT_EOF
6787 # Now try linking the two files.
6788 mv conftest.$ac_objext conftstm.$ac_objext
6789 lt_save_LIBS="$LIBS"
6790 lt_save_CFLAGS="$CFLAGS"
6791 LIBS="conftstm.$ac_objext"
6792 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6794 (eval $ac_link) 2>&5
6795 ac_status=$?
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6798 pipe_works=yes
6799 fi
6800 LIBS="$lt_save_LIBS"
6801 CFLAGS="$lt_save_CFLAGS"
6802 else
6803 echo "cannot find nm_test_func in $nlist" >&5
6804 fi
6805 else
6806 echo "cannot find nm_test_var in $nlist" >&5
6807 fi
6808 else
6809 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6810 fi
6811 else
6812 echo "$progname: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6814 fi
6815 rm -rf conftest* conftst*
6816
6817 # Do not use the global_symbol_pipe unless it works.
6818 if test "$pipe_works" = yes; then
6819 break
6820 else
6821 lt_cv_sys_global_symbol_pipe=
6822 fi
6823 done
6824
6825 fi
6826
6827 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6828 lt_cv_sys_global_symbol_to_cdecl=
6829 fi
6830 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6832 $as_echo "failed" >&6; }
6833 else
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6835 $as_echo "ok" >&6; }
6836 fi
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859 # Check whether --enable-libtool-lock was given.
6860 if test "${enable_libtool_lock+set}" = set; then :
6861 enableval=$enable_libtool_lock;
6862 fi
6863
6864 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6865
6866 # Some flags need to be propagated to the compiler or linker for good
6867 # libtool support.
6868 case $host in
6869 ia64-*-hpux*)
6870 # Find out which ABI we are using.
6871 echo 'int i;' > conftest.$ac_ext
6872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6873 (eval $ac_compile) 2>&5
6874 ac_status=$?
6875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876 test $ac_status = 0; }; then
6877 case `/usr/bin/file conftest.$ac_objext` in
6878 *ELF-32*)
6879 HPUX_IA64_MODE="32"
6880 ;;
6881 *ELF-64*)
6882 HPUX_IA64_MODE="64"
6883 ;;
6884 esac
6885 fi
6886 rm -rf conftest*
6887 ;;
6888 *-*-irix6*)
6889 # Find out which ABI we are using.
6890 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892 (eval $ac_compile) 2>&5
6893 ac_status=$?
6894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895 test $ac_status = 0; }; then
6896 if test "$lt_cv_prog_gnu_ld" = yes; then
6897 case `/usr/bin/file conftest.$ac_objext` in
6898 *32-bit*)
6899 LD="${LD-ld} -melf32bsmip"
6900 ;;
6901 *N32*)
6902 LD="${LD-ld} -melf32bmipn32"
6903 ;;
6904 *64-bit*)
6905 LD="${LD-ld} -melf64bmip"
6906 ;;
6907 esac
6908 else
6909 case `/usr/bin/file conftest.$ac_objext` in
6910 *32-bit*)
6911 LD="${LD-ld} -32"
6912 ;;
6913 *N32*)
6914 LD="${LD-ld} -n32"
6915 ;;
6916 *64-bit*)
6917 LD="${LD-ld} -64"
6918 ;;
6919 esac
6920 fi
6921 fi
6922 rm -rf conftest*
6923 ;;
6924
6925 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6926 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6927 # Find out which ABI we are using.
6928 echo 'int i;' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 case `/usr/bin/file conftest.o` in
6935 *32-bit*)
6936 case $host in
6937 x86_64-*kfreebsd*-gnu)
6938 LD="${LD-ld} -m elf_i386_fbsd"
6939 ;;
6940 x86_64-*linux*)
6941 case `/usr/bin/file conftest.o` in
6942 *x86-64*)
6943 LD="${LD-ld} -m elf32_x86_64"
6944 ;;
6945 *)
6946 LD="${LD-ld} -m elf_i386"
6947 ;;
6948 esac
6949 ;;
6950 powerpc64le-*linux*)
6951 LD="${LD-ld} -m elf32lppclinux"
6952 ;;
6953 powerpc64-*linux*)
6954 LD="${LD-ld} -m elf32ppclinux"
6955 ;;
6956 s390x-*linux*)
6957 LD="${LD-ld} -m elf_s390"
6958 ;;
6959 sparc64-*linux*)
6960 LD="${LD-ld} -m elf32_sparc"
6961 ;;
6962 esac
6963 ;;
6964 *64-bit*)
6965 case $host in
6966 x86_64-*kfreebsd*-gnu)
6967 LD="${LD-ld} -m elf_x86_64_fbsd"
6968 ;;
6969 x86_64-*linux*)
6970 LD="${LD-ld} -m elf_x86_64"
6971 ;;
6972 powerpcle-*linux*)
6973 LD="${LD-ld} -m elf64lppc"
6974 ;;
6975 powerpc-*linux*)
6976 LD="${LD-ld} -m elf64ppc"
6977 ;;
6978 s390*-*linux*|s390*-*tpf*)
6979 LD="${LD-ld} -m elf64_s390"
6980 ;;
6981 sparc*-*linux*)
6982 LD="${LD-ld} -m elf64_sparc"
6983 ;;
6984 esac
6985 ;;
6986 esac
6987 fi
6988 rm -rf conftest*
6989 ;;
6990
6991 *-*-sco3.2v5*)
6992 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6993 SAVE_CFLAGS="$CFLAGS"
6994 CFLAGS="$CFLAGS -belf"
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6996 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6997 if ${lt_cv_cc_needs_belf+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 ac_ext=c
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008
7009 int
7010 main ()
7011 {
7012
7013 ;
7014 return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_link "$LINENO"; then :
7018 lt_cv_cc_needs_belf=yes
7019 else
7020 lt_cv_cc_needs_belf=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024 ac_ext=c
7025 ac_cpp='$CPP $CPPFLAGS'
7026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7029
7030 fi
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7032 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7033 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7034 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7035 CFLAGS="$SAVE_CFLAGS"
7036 fi
7037 ;;
7038 sparc*-*solaris*)
7039 # Find out which ABI we are using.
7040 echo 'int i;' > conftest.$ac_ext
7041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7042 (eval $ac_compile) 2>&5
7043 ac_status=$?
7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045 test $ac_status = 0; }; then
7046 case `/usr/bin/file conftest.o` in
7047 *64-bit*)
7048 case $lt_cv_prog_gnu_ld in
7049 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7050 *)
7051 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7052 LD="${LD-ld} -64"
7053 fi
7054 ;;
7055 esac
7056 ;;
7057 esac
7058 fi
7059 rm -rf conftest*
7060 ;;
7061 esac
7062
7063 need_locks="$enable_libtool_lock"
7064
7065
7066 case $host_os in
7067 rhapsody* | darwin*)
7068 if test -n "$ac_tool_prefix"; then
7069 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7070 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$DSYMUTIL"; then
7077 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7097 if test -n "$DSYMUTIL"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7099 $as_echo "$DSYMUTIL" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103 fi
7104
7105
7106 fi
7107 if test -z "$ac_cv_prog_DSYMUTIL"; then
7108 ac_ct_DSYMUTIL=$DSYMUTIL
7109 # Extract the first word of "dsymutil", so it can be a program name with args.
7110 set dummy dsymutil; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 if test -n "$ac_ct_DSYMUTIL"; then
7117 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130 done
7131 done
7132 IFS=$as_save_IFS
7133
7134 fi
7135 fi
7136 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7137 if test -n "$ac_ct_DSYMUTIL"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7139 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143 fi
7144
7145 if test "x$ac_ct_DSYMUTIL" = x; then
7146 DSYMUTIL=":"
7147 else
7148 case $cross_compiling:$ac_tool_warned in
7149 yes:)
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7152 ac_tool_warned=yes ;;
7153 esac
7154 DSYMUTIL=$ac_ct_DSYMUTIL
7155 fi
7156 else
7157 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7158 fi
7159
7160 if test -n "$ac_tool_prefix"; then
7161 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7162 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_NMEDIT+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 if test -n "$NMEDIT"; then
7169 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 NMEDIT=$ac_cv_prog_NMEDIT
7189 if test -n "$NMEDIT"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7191 $as_echo "$NMEDIT" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197
7198 fi
7199 if test -z "$ac_cv_prog_NMEDIT"; then
7200 ac_ct_NMEDIT=$NMEDIT
7201 # Extract the first word of "nmedit", so it can be a program name with args.
7202 set dummy nmedit; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 if test -n "$ac_ct_NMEDIT"; then
7209 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214 IFS=$as_save_IFS
7215 test -z "$as_dir" && as_dir=.
7216 for ac_exec_ext in '' $ac_executable_extensions; do
7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 break 2
7221 fi
7222 done
7223 done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7229 if test -n "$ac_ct_NMEDIT"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7231 $as_echo "$ac_ct_NMEDIT" >&6; }
7232 else
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237 if test "x$ac_ct_NMEDIT" = x; then
7238 NMEDIT=":"
7239 else
7240 case $cross_compiling:$ac_tool_warned in
7241 yes:)
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned=yes ;;
7245 esac
7246 NMEDIT=$ac_ct_NMEDIT
7247 fi
7248 else
7249 NMEDIT="$ac_cv_prog_NMEDIT"
7250 fi
7251
7252 if test -n "$ac_tool_prefix"; then
7253 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7254 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_LIPO+:} false; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 if test -n "$LIPO"; then
7261 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7262 else
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 break 2
7273 fi
7274 done
7275 done
7276 IFS=$as_save_IFS
7277
7278 fi
7279 fi
7280 LIPO=$ac_cv_prog_LIPO
7281 if test -n "$LIPO"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7283 $as_echo "$LIPO" >&6; }
7284 else
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7287 fi
7288
7289
7290 fi
7291 if test -z "$ac_cv_prog_LIPO"; then
7292 ac_ct_LIPO=$LIPO
7293 # Extract the first word of "lipo", so it can be a program name with args.
7294 set dummy lipo; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7298 $as_echo_n "(cached) " >&6
7299 else
7300 if test -n "$ac_ct_LIPO"; then
7301 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310 ac_cv_prog_ac_ct_LIPO="lipo"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 break 2
7313 fi
7314 done
7315 done
7316 IFS=$as_save_IFS
7317
7318 fi
7319 fi
7320 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7321 if test -n "$ac_ct_LIPO"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7323 $as_echo "$ac_ct_LIPO" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 fi
7328
7329 if test "x$ac_ct_LIPO" = x; then
7330 LIPO=":"
7331 else
7332 case $cross_compiling:$ac_tool_warned in
7333 yes:)
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336 ac_tool_warned=yes ;;
7337 esac
7338 LIPO=$ac_ct_LIPO
7339 fi
7340 else
7341 LIPO="$ac_cv_prog_LIPO"
7342 fi
7343
7344 if test -n "$ac_tool_prefix"; then
7345 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7346 set dummy ${ac_tool_prefix}otool; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_OTOOL+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 if test -n "$OTOOL"; then
7353 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 OTOOL=$ac_cv_prog_OTOOL
7373 if test -n "$OTOOL"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7375 $as_echo "$OTOOL" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381
7382 fi
7383 if test -z "$ac_cv_prog_OTOOL"; then
7384 ac_ct_OTOOL=$OTOOL
7385 # Extract the first word of "otool", so it can be a program name with args.
7386 set dummy otool; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 if test -n "$ac_ct_OTOOL"; then
7393 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398 IFS=$as_save_IFS
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_ac_ct_OTOOL="otool"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 break 2
7405 fi
7406 done
7407 done
7408 IFS=$as_save_IFS
7409
7410 fi
7411 fi
7412 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7413 if test -n "$ac_ct_OTOOL"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7415 $as_echo "$ac_ct_OTOOL" >&6; }
7416 else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7419 fi
7420
7421 if test "x$ac_ct_OTOOL" = x; then
7422 OTOOL=":"
7423 else
7424 case $cross_compiling:$ac_tool_warned in
7425 yes:)
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7428 ac_tool_warned=yes ;;
7429 esac
7430 OTOOL=$ac_ct_OTOOL
7431 fi
7432 else
7433 OTOOL="$ac_cv_prog_OTOOL"
7434 fi
7435
7436 if test -n "$ac_tool_prefix"; then
7437 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7438 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_OTOOL64+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 if test -n "$OTOOL64"; then
7445 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 OTOOL64=$ac_cv_prog_OTOOL64
7465 if test -n "$OTOOL64"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7467 $as_echo "$OTOOL64" >&6; }
7468 else
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471 fi
7472
7473
7474 fi
7475 if test -z "$ac_cv_prog_OTOOL64"; then
7476 ac_ct_OTOOL64=$OTOOL64
7477 # Extract the first word of "otool64", so it can be a program name with args.
7478 set dummy otool64; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 if test -n "$ac_ct_OTOOL64"; then
7485 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7486 else
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490 IFS=$as_save_IFS
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494 ac_cv_prog_ac_ct_OTOOL64="otool64"
7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 break 2
7497 fi
7498 done
7499 done
7500 IFS=$as_save_IFS
7501
7502 fi
7503 fi
7504 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7505 if test -n "$ac_ct_OTOOL64"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7507 $as_echo "$ac_ct_OTOOL64" >&6; }
7508 else
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7511 fi
7512
7513 if test "x$ac_ct_OTOOL64" = x; then
7514 OTOOL64=":"
7515 else
7516 case $cross_compiling:$ac_tool_warned in
7517 yes:)
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520 ac_tool_warned=yes ;;
7521 esac
7522 OTOOL64=$ac_ct_OTOOL64
7523 fi
7524 else
7525 OTOOL64="$ac_cv_prog_OTOOL64"
7526 fi
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7555 $as_echo_n "checking for -single_module linker flag... " >&6; }
7556 if ${lt_cv_apple_cc_single_mod+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 lt_cv_apple_cc_single_mod=no
7560 if test -z "${LT_MULTI_MODULE}"; then
7561 # By default we will add the -single_module flag. You can override
7562 # by either setting the environment variable LT_MULTI_MODULE
7563 # non-empty at configure time, or by adding -multi_module to the
7564 # link flags.
7565 rm -rf libconftest.dylib*
7566 echo "int foo(void){return 1;}" > conftest.c
7567 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7568 -dynamiclib -Wl,-single_module conftest.c" >&5
7569 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7570 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7571 _lt_result=$?
7572 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7573 lt_cv_apple_cc_single_mod=yes
7574 else
7575 cat conftest.err >&5
7576 fi
7577 rm -rf libconftest.dylib*
7578 rm -f conftest.*
7579 fi
7580 fi
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7582 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7584 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7585 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 lt_cv_ld_exported_symbols_list=no
7589 save_LDFLAGS=$LDFLAGS
7590 echo "_main" > conftest.sym
7591 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594
7595 int
7596 main ()
7597 {
7598
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 if ac_fn_c_try_link "$LINENO"; then :
7604 lt_cv_ld_exported_symbols_list=yes
7605 else
7606 lt_cv_ld_exported_symbols_list=no
7607 fi
7608 rm -f core conftest.err conftest.$ac_objext \
7609 conftest$ac_exeext conftest.$ac_ext
7610 LDFLAGS="$save_LDFLAGS"
7611
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7614 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7616 $as_echo_n "checking for -force_load linker flag... " >&6; }
7617 if ${lt_cv_ld_force_load+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 lt_cv_ld_force_load=no
7621 cat > conftest.c << _LT_EOF
7622 int forced_loaded() { return 2;}
7623 _LT_EOF
7624 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7625 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7626 echo "$AR cru libconftest.a conftest.o" >&5
7627 $AR cru libconftest.a conftest.o 2>&5
7628 cat > conftest.c << _LT_EOF
7629 int main() { return 0;}
7630 _LT_EOF
7631 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7632 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7633 _lt_result=$?
7634 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7635 lt_cv_ld_force_load=yes
7636 else
7637 cat conftest.err >&5
7638 fi
7639 rm -f conftest.err libconftest.a conftest conftest.c
7640 rm -rf conftest.dSYM
7641
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7644 $as_echo "$lt_cv_ld_force_load" >&6; }
7645 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7646 # build without first building modern cctools / linker.
7647 case $host_cpu-$host_os in
7648 *-rhapsody* | *-darwin1.[012])
7649 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7650 *-darwin1.*)
7651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7652 *-darwin*)
7653 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7654 # deployment target is forced to an earlier version.
7655 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7656 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7657 ;;
7658 10.[012][,.]*)
7659 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7660 ;;
7661 *)
7662 ;;
7663 esac
7664 ;;
7665 esac
7666 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7667 _lt_dar_single_mod='$single_module'
7668 fi
7669 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7670 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7671 else
7672 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7673 fi
7674 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7675 _lt_dsymutil='~$DSYMUTIL $lib || :'
7676 else
7677 _lt_dsymutil=
7678 fi
7679 ;;
7680 esac
7681
7682 for ac_header in dlfcn.h
7683 do :
7684 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7685 "
7686 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7687 cat >>confdefs.h <<_ACEOF
7688 #define HAVE_DLFCN_H 1
7689 _ACEOF
7690
7691 fi
7692
7693 done
7694
7695
7696
7697
7698
7699 # Set options
7700 enable_dlopen=yes
7701
7702
7703
7704
7705 enable_win32_dll=no
7706
7707
7708
7709 # Check whether --enable-static was given.
7710 if test "${enable_static+set}" = set; then :
7711 enableval=$enable_static; p=${PACKAGE-default}
7712 case $enableval in
7713 yes) enable_static=yes ;;
7714 no) enable_static=no ;;
7715 *)
7716 enable_static=no
7717 # Look at the argument we got. We use all the common list separators.
7718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7719 for pkg in $enableval; do
7720 IFS="$lt_save_ifs"
7721 if test "X$pkg" = "X$p"; then
7722 enable_static=yes
7723 fi
7724 done
7725 IFS="$lt_save_ifs"
7726 ;;
7727 esac
7728 else
7729 enable_static=yes
7730 fi
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741 # Check whether --with-pic was given.
7742 if test "${with_pic+set}" = set; then :
7743 withval=$with_pic; pic_mode="$withval"
7744 else
7745 pic_mode=default
7746 fi
7747
7748
7749 test -z "$pic_mode" && pic_mode=default
7750
7751
7752
7753
7754
7755
7756
7757 # Check whether --enable-fast-install was given.
7758 if test "${enable_fast_install+set}" = set; then :
7759 enableval=$enable_fast_install; p=${PACKAGE-default}
7760 case $enableval in
7761 yes) enable_fast_install=yes ;;
7762 no) enable_fast_install=no ;;
7763 *)
7764 enable_fast_install=no
7765 # Look at the argument we got. We use all the common list separators.
7766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7767 for pkg in $enableval; do
7768 IFS="$lt_save_ifs"
7769 if test "X$pkg" = "X$p"; then
7770 enable_fast_install=yes
7771 fi
7772 done
7773 IFS="$lt_save_ifs"
7774 ;;
7775 esac
7776 else
7777 enable_fast_install=yes
7778 fi
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790 # This can be used to rebuild libtool when needed
7791 LIBTOOL_DEPS="$ltmain"
7792
7793 # Always use our own libtool.
7794 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821 test -z "$LN_S" && LN_S="ln -s"
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836 if test -n "${ZSH_VERSION+set}" ; then
7837 setopt NO_GLOB_SUBST
7838 fi
7839
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7841 $as_echo_n "checking for objdir... " >&6; }
7842 if ${lt_cv_objdir+:} false; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 rm -f .libs 2>/dev/null
7846 mkdir .libs 2>/dev/null
7847 if test -d .libs; then
7848 lt_cv_objdir=.libs
7849 else
7850 # MS-DOS does not allow filenames that begin with a dot.
7851 lt_cv_objdir=_libs
7852 fi
7853 rmdir .libs 2>/dev/null
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7856 $as_echo "$lt_cv_objdir" >&6; }
7857 objdir=$lt_cv_objdir
7858
7859
7860
7861
7862
7863 cat >>confdefs.h <<_ACEOF
7864 #define LT_OBJDIR "$lt_cv_objdir/"
7865 _ACEOF
7866
7867
7868
7869
7870 case $host_os in
7871 aix3*)
7872 # AIX sometimes has problems with the GCC collect2 program. For some
7873 # reason, if we set the COLLECT_NAMES environment variable, the problems
7874 # vanish in a puff of smoke.
7875 if test "X${COLLECT_NAMES+set}" != Xset; then
7876 COLLECT_NAMES=
7877 export COLLECT_NAMES
7878 fi
7879 ;;
7880 esac
7881
7882 # Global variables:
7883 ofile=libtool
7884 can_build_shared=yes
7885
7886 # All known linkers require a `.a' archive for static linking (except MSVC,
7887 # which needs '.lib').
7888 libext=a
7889
7890 with_gnu_ld="$lt_cv_prog_gnu_ld"
7891
7892 old_CC="$CC"
7893 old_CFLAGS="$CFLAGS"
7894
7895 # Set sane defaults for various variables
7896 test -z "$CC" && CC=cc
7897 test -z "$LTCC" && LTCC=$CC
7898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7899 test -z "$LD" && LD=ld
7900 test -z "$ac_objext" && ac_objext=o
7901
7902 for cc_temp in $compiler""; do
7903 case $cc_temp in
7904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7906 \-*) ;;
7907 *) break;;
7908 esac
7909 done
7910 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7911
7912
7913 # Only perform the check for file, if the check method requires it
7914 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7915 case $deplibs_check_method in
7916 file_magic*)
7917 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7919 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7920 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7921 $as_echo_n "(cached) " >&6
7922 else
7923 case $MAGIC_CMD in
7924 [\\/*] | ?:[\\/]*)
7925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7926 ;;
7927 *)
7928 lt_save_MAGIC_CMD="$MAGIC_CMD"
7929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7931 for ac_dir in $ac_dummy; do
7932 IFS="$lt_save_ifs"
7933 test -z "$ac_dir" && ac_dir=.
7934 if test -f $ac_dir/${ac_tool_prefix}file; then
7935 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7936 if test -n "$file_magic_test_file"; then
7937 case $deplibs_check_method in
7938 "file_magic "*)
7939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7942 $EGREP "$file_magic_regex" > /dev/null; then
7943 :
7944 else
7945 cat <<_LT_EOF 1>&2
7946
7947 *** Warning: the command libtool uses to detect shared libraries,
7948 *** $file_magic_cmd, produces output that libtool cannot recognize.
7949 *** The result is that libtool may fail to recognize shared libraries
7950 *** as such. This will affect the creation of libtool libraries that
7951 *** depend on shared libraries, but programs linked with such libtool
7952 *** libraries will work regardless of this problem. Nevertheless, you
7953 *** may want to report the problem to your system manager and/or to
7954 *** [email protected]
7955
7956 _LT_EOF
7957 fi ;;
7958 esac
7959 fi
7960 break
7961 fi
7962 done
7963 IFS="$lt_save_ifs"
7964 MAGIC_CMD="$lt_save_MAGIC_CMD"
7965 ;;
7966 esac
7967 fi
7968
7969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7970 if test -n "$MAGIC_CMD"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7972 $as_echo "$MAGIC_CMD" >&6; }
7973 else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7976 fi
7977
7978
7979
7980
7981
7982 if test -z "$lt_cv_path_MAGIC_CMD"; then
7983 if test -n "$ac_tool_prefix"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7985 $as_echo_n "checking for file... " >&6; }
7986 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 case $MAGIC_CMD in
7990 [\\/*] | ?:[\\/]*)
7991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7992 ;;
7993 *)
7994 lt_save_MAGIC_CMD="$MAGIC_CMD"
7995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7997 for ac_dir in $ac_dummy; do
7998 IFS="$lt_save_ifs"
7999 test -z "$ac_dir" && ac_dir=.
8000 if test -f $ac_dir/file; then
8001 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8002 if test -n "$file_magic_test_file"; then
8003 case $deplibs_check_method in
8004 "file_magic "*)
8005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8008 $EGREP "$file_magic_regex" > /dev/null; then
8009 :
8010 else
8011 cat <<_LT_EOF 1>&2
8012
8013 *** Warning: the command libtool uses to detect shared libraries,
8014 *** $file_magic_cmd, produces output that libtool cannot recognize.
8015 *** The result is that libtool may fail to recognize shared libraries
8016 *** as such. This will affect the creation of libtool libraries that
8017 *** depend on shared libraries, but programs linked with such libtool
8018 *** libraries will work regardless of this problem. Nevertheless, you
8019 *** may want to report the problem to your system manager and/or to
8020 *** [email protected]
8021
8022 _LT_EOF
8023 fi ;;
8024 esac
8025 fi
8026 break
8027 fi
8028 done
8029 IFS="$lt_save_ifs"
8030 MAGIC_CMD="$lt_save_MAGIC_CMD"
8031 ;;
8032 esac
8033 fi
8034
8035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8036 if test -n "$MAGIC_CMD"; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8038 $as_echo "$MAGIC_CMD" >&6; }
8039 else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041 $as_echo "no" >&6; }
8042 fi
8043
8044
8045 else
8046 MAGIC_CMD=:
8047 fi
8048 fi
8049
8050 fi
8051 ;;
8052 esac
8053
8054 # Use C for the default configuration in the libtool script
8055
8056 lt_save_CC="$CC"
8057 ac_ext=c
8058 ac_cpp='$CPP $CPPFLAGS'
8059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8062
8063
8064 # Source file extension for C test sources.
8065 ac_ext=c
8066
8067 # Object file extension for compiled C test sources.
8068 objext=o
8069 objext=$objext
8070
8071 # Code to be used in simple compile tests
8072 lt_simple_compile_test_code="int some_variable = 0;"
8073
8074 # Code to be used in simple link tests
8075 lt_simple_link_test_code='int main(){return(0);}'
8076
8077
8078
8079
8080
8081
8082
8083 # If no C compiler was specified, use CC.
8084 LTCC=${LTCC-"$CC"}
8085
8086 # If no C compiler flags were specified, use CFLAGS.
8087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8088
8089 # Allow CC to be a program name with arguments.
8090 compiler=$CC
8091
8092 # Save the default compiler, since it gets overwritten when the other
8093 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8094 compiler_DEFAULT=$CC
8095
8096 # save warnings/boilerplate of simple test code
8097 ac_outfile=conftest.$ac_objext
8098 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8100 _lt_compiler_boilerplate=`cat conftest.err`
8101 $RM conftest*
8102
8103 ac_outfile=conftest.$ac_objext
8104 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8106 _lt_linker_boilerplate=`cat conftest.err`
8107 $RM -r conftest*
8108
8109
8110 ## CAVEAT EMPTOR:
8111 ## There is no encapsulation within the following macros, do not change
8112 ## the running order or otherwise move them around unless you know exactly
8113 ## what you are doing...
8114 if test -n "$compiler"; then
8115
8116 lt_prog_compiler_no_builtin_flag=
8117
8118 if test "$GCC" = yes; then
8119 case $cc_basename in
8120 nvcc*)
8121 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8122 *)
8123 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8124 esac
8125
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8127 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8128 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 lt_cv_prog_compiler_rtti_exceptions=no
8132 ac_outfile=conftest.$ac_objext
8133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8134 lt_compiler_flag="-fno-rtti -fno-exceptions"
8135 # Insert the option either (1) after the last *FLAGS variable, or
8136 # (2) before a word containing "conftest.", or (3) at the end.
8137 # Note that $ac_compile itself does not contain backslashes and begins
8138 # with a dollar sign (not a hyphen), so the echo should work correctly.
8139 # The option is referenced via a variable to avoid confusing sed.
8140 lt_compile=`echo "$ac_compile" | $SED \
8141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8143 -e 's:$: $lt_compiler_flag:'`
8144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8145 (eval "$lt_compile" 2>conftest.err)
8146 ac_status=$?
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 if (exit $ac_status) && test -s "$ac_outfile"; then
8150 # The compiler can only warn and ignore the option if not recognized
8151 # So say no if there are warnings other than the usual output.
8152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8155 lt_cv_prog_compiler_rtti_exceptions=yes
8156 fi
8157 fi
8158 $RM conftest*
8159
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8162 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8163
8164 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8165 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8166 else
8167 :
8168 fi
8169
8170 fi
8171
8172
8173
8174
8175
8176
8177 lt_prog_compiler_wl=
8178 lt_prog_compiler_pic=
8179 lt_prog_compiler_static=
8180
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8182 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8183
8184 if test "$GCC" = yes; then
8185 lt_prog_compiler_wl='-Wl,'
8186 lt_prog_compiler_static='-static'
8187
8188 case $host_os in
8189 aix*)
8190 # All AIX code is PIC.
8191 if test "$host_cpu" = ia64; then
8192 # AIX 5 now supports IA64 processor
8193 lt_prog_compiler_static='-Bstatic'
8194 fi
8195 lt_prog_compiler_pic='-fPIC'
8196 ;;
8197
8198 amigaos*)
8199 case $host_cpu in
8200 powerpc)
8201 # see comment about AmigaOS4 .so support
8202 lt_prog_compiler_pic='-fPIC'
8203 ;;
8204 m68k)
8205 # FIXME: we need at least 68020 code to build shared libraries, but
8206 # adding the `-m68020' flag to GCC prevents building anything better,
8207 # like `-m68040'.
8208 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8209 ;;
8210 esac
8211 ;;
8212
8213 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8214 # PIC is the default for these OSes.
8215 ;;
8216
8217 mingw* | cygwin* | pw32* | os2* | cegcc*)
8218 # This hack is so that the source file can tell whether it is being
8219 # built for inclusion in a dll (and should export symbols for example).
8220 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8221 # (--disable-auto-import) libraries
8222 lt_prog_compiler_pic='-DDLL_EXPORT'
8223 ;;
8224
8225 darwin* | rhapsody*)
8226 # PIC is the default on this platform
8227 # Common symbols not allowed in MH_DYLIB files
8228 lt_prog_compiler_pic='-fno-common'
8229 ;;
8230
8231 haiku*)
8232 # PIC is the default for Haiku.
8233 # The "-static" flag exists, but is broken.
8234 lt_prog_compiler_static=
8235 ;;
8236
8237 hpux*)
8238 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8239 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8240 # sets the default TLS model and affects inlining.
8241 case $host_cpu in
8242 hppa*64*)
8243 # +Z the default
8244 ;;
8245 *)
8246 lt_prog_compiler_pic='-fPIC'
8247 ;;
8248 esac
8249 ;;
8250
8251 interix[3-9]*)
8252 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8253 # Instead, we relocate shared libraries at runtime.
8254 ;;
8255
8256 msdosdjgpp*)
8257 # Just because we use GCC doesn't mean we suddenly get shared libraries
8258 # on systems that don't support them.
8259 lt_prog_compiler_can_build_shared=no
8260 enable_shared=no
8261 ;;
8262
8263 *nto* | *qnx*)
8264 # QNX uses GNU C++, but need to define -shared option too, otherwise
8265 # it will coredump.
8266 lt_prog_compiler_pic='-fPIC -shared'
8267 ;;
8268
8269 sysv4*MP*)
8270 if test -d /usr/nec; then
8271 lt_prog_compiler_pic=-Kconform_pic
8272 fi
8273 ;;
8274
8275 *)
8276 lt_prog_compiler_pic='-fPIC'
8277 ;;
8278 esac
8279
8280 case $cc_basename in
8281 nvcc*) # Cuda Compiler Driver 2.2
8282 lt_prog_compiler_wl='-Xlinker '
8283 lt_prog_compiler_pic='-Xcompiler -fPIC'
8284 ;;
8285 esac
8286 else
8287 # PORTME Check for flag to pass linker flags through the system compiler.
8288 case $host_os in
8289 aix*)
8290 lt_prog_compiler_wl='-Wl,'
8291 if test "$host_cpu" = ia64; then
8292 # AIX 5 now supports IA64 processor
8293 lt_prog_compiler_static='-Bstatic'
8294 else
8295 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8296 fi
8297 ;;
8298
8299 mingw* | cygwin* | pw32* | os2* | cegcc*)
8300 # This hack is so that the source file can tell whether it is being
8301 # built for inclusion in a dll (and should export symbols for example).
8302 lt_prog_compiler_pic='-DDLL_EXPORT'
8303 ;;
8304
8305 hpux9* | hpux10* | hpux11*)
8306 lt_prog_compiler_wl='-Wl,'
8307 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8308 # not for PA HP-UX.
8309 case $host_cpu in
8310 hppa*64*|ia64*)
8311 # +Z the default
8312 ;;
8313 *)
8314 lt_prog_compiler_pic='+Z'
8315 ;;
8316 esac
8317 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8318 lt_prog_compiler_static='${wl}-a ${wl}archive'
8319 ;;
8320
8321 irix5* | irix6* | nonstopux*)
8322 lt_prog_compiler_wl='-Wl,'
8323 # PIC (with -KPIC) is the default.
8324 lt_prog_compiler_static='-non_shared'
8325 ;;
8326
8327 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8328 case $cc_basename in
8329 # old Intel for x86_64 which still supported -KPIC.
8330 ecc*)
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_pic='-KPIC'
8333 lt_prog_compiler_static='-static'
8334 ;;
8335 # icc used to be incompatible with GCC.
8336 # ICC 10 doesn't accept -KPIC any more.
8337 icc* | ifort*)
8338 lt_prog_compiler_wl='-Wl,'
8339 lt_prog_compiler_pic='-fPIC'
8340 lt_prog_compiler_static='-static'
8341 ;;
8342 # Lahey Fortran 8.1.
8343 lf95*)
8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='--shared'
8346 lt_prog_compiler_static='--static'
8347 ;;
8348 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8349 # Portland Group compilers (*not* the Pentium gcc compiler,
8350 # which looks to be a dead project)
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-fpic'
8353 lt_prog_compiler_static='-Bstatic'
8354 ;;
8355 ccc*)
8356 lt_prog_compiler_wl='-Wl,'
8357 # All Alpha code is PIC.
8358 lt_prog_compiler_static='-non_shared'
8359 ;;
8360 xl* | bgxl* | bgf* | mpixl*)
8361 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8362 lt_prog_compiler_wl='-Wl,'
8363 lt_prog_compiler_pic='-qpic'
8364 lt_prog_compiler_static='-qstaticlink'
8365 ;;
8366 *)
8367 case `$CC -V 2>&1 | sed 5q` in
8368 *Sun\ F* | *Sun*Fortran*)
8369 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8370 lt_prog_compiler_pic='-KPIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 lt_prog_compiler_wl=''
8373 ;;
8374 *Sun\ C*)
8375 # Sun C 5.9
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 lt_prog_compiler_wl='-Wl,'
8379 ;;
8380 esac
8381 ;;
8382 esac
8383 ;;
8384
8385 newsos6)
8386 lt_prog_compiler_pic='-KPIC'
8387 lt_prog_compiler_static='-Bstatic'
8388 ;;
8389
8390 *nto* | *qnx*)
8391 # QNX uses GNU C++, but need to define -shared option too, otherwise
8392 # it will coredump.
8393 lt_prog_compiler_pic='-fPIC -shared'
8394 ;;
8395
8396 osf3* | osf4* | osf5*)
8397 lt_prog_compiler_wl='-Wl,'
8398 # All OSF/1 code is PIC.
8399 lt_prog_compiler_static='-non_shared'
8400 ;;
8401
8402 rdos*)
8403 lt_prog_compiler_static='-non_shared'
8404 ;;
8405
8406 solaris*)
8407 lt_prog_compiler_pic='-KPIC'
8408 lt_prog_compiler_static='-Bstatic'
8409 case $cc_basename in
8410 f77* | f90* | f95*)
8411 lt_prog_compiler_wl='-Qoption ld ';;
8412 *)
8413 lt_prog_compiler_wl='-Wl,';;
8414 esac
8415 ;;
8416
8417 sunos4*)
8418 lt_prog_compiler_wl='-Qoption ld '
8419 lt_prog_compiler_pic='-PIC'
8420 lt_prog_compiler_static='-Bstatic'
8421 ;;
8422
8423 sysv4 | sysv4.2uw2* | sysv4.3*)
8424 lt_prog_compiler_wl='-Wl,'
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 ;;
8428
8429 sysv4*MP*)
8430 if test -d /usr/nec ;then
8431 lt_prog_compiler_pic='-Kconform_pic'
8432 lt_prog_compiler_static='-Bstatic'
8433 fi
8434 ;;
8435
8436 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8437 lt_prog_compiler_wl='-Wl,'
8438 lt_prog_compiler_pic='-KPIC'
8439 lt_prog_compiler_static='-Bstatic'
8440 ;;
8441
8442 unicos*)
8443 lt_prog_compiler_wl='-Wl,'
8444 lt_prog_compiler_can_build_shared=no
8445 ;;
8446
8447 uts4*)
8448 lt_prog_compiler_pic='-pic'
8449 lt_prog_compiler_static='-Bstatic'
8450 ;;
8451
8452 *)
8453 lt_prog_compiler_can_build_shared=no
8454 ;;
8455 esac
8456 fi
8457
8458 case $host_os in
8459 # For platforms which do not support PIC, -DPIC is meaningless:
8460 *djgpp*)
8461 lt_prog_compiler_pic=
8462 ;;
8463 *)
8464 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8465 ;;
8466 esac
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8468 $as_echo "$lt_prog_compiler_pic" >&6; }
8469
8470
8471
8472
8473
8474
8475 #
8476 # Check to make sure the PIC flag actually works.
8477 #
8478 if test -n "$lt_prog_compiler_pic"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8480 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8481 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 lt_cv_prog_compiler_pic_works=no
8485 ac_outfile=conftest.$ac_objext
8486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8487 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 # The option is referenced via a variable to avoid confusing sed.
8493 lt_compile=`echo "$ac_compile" | $SED \
8494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8496 -e 's:$: $lt_compiler_flag:'`
8497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8498 (eval "$lt_compile" 2>conftest.err)
8499 ac_status=$?
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 if (exit $ac_status) && test -s "$ac_outfile"; then
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings other than the usual output.
8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_pic_works=yes
8509 fi
8510 fi
8511 $RM conftest*
8512
8513 fi
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8515 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8516
8517 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8518 case $lt_prog_compiler_pic in
8519 "" | " "*) ;;
8520 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8521 esac
8522 else
8523 lt_prog_compiler_pic=
8524 lt_prog_compiler_can_build_shared=no
8525 fi
8526
8527 fi
8528
8529
8530
8531
8532
8533
8534 #
8535 # Check to make sure the static flag actually works.
8536 #
8537 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8539 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8540 if ${lt_cv_prog_compiler_static_works+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 lt_cv_prog_compiler_static_works=no
8544 save_LDFLAGS="$LDFLAGS"
8545 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8546 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8548 # The linker can only warn and ignore the option if not recognized
8549 # So say no if there are warnings
8550 if test -s conftest.err; then
8551 # Append any errors to the config.log.
8552 cat conftest.err 1>&5
8553 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8555 if diff conftest.exp conftest.er2 >/dev/null; then
8556 lt_cv_prog_compiler_static_works=yes
8557 fi
8558 else
8559 lt_cv_prog_compiler_static_works=yes
8560 fi
8561 fi
8562 $RM -r conftest*
8563 LDFLAGS="$save_LDFLAGS"
8564
8565 fi
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8567 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8568
8569 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8570 :
8571 else
8572 lt_prog_compiler_static=
8573 fi
8574
8575
8576
8577
8578
8579
8580
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8583 if ${lt_cv_prog_compiler_c_o+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 lt_cv_prog_compiler_c_o=no
8587 $RM -r conftest 2>/dev/null
8588 mkdir conftest
8589 cd conftest
8590 mkdir out
8591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8592
8593 lt_compiler_flag="-o out/conftest2.$ac_objext"
8594 # Insert the option either (1) after the last *FLAGS variable, or
8595 # (2) before a word containing "conftest.", or (3) at the end.
8596 # Note that $ac_compile itself does not contain backslashes and begins
8597 # with a dollar sign (not a hyphen), so the echo should work correctly.
8598 lt_compile=`echo "$ac_compile" | $SED \
8599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8601 -e 's:$: $lt_compiler_flag:'`
8602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8603 (eval "$lt_compile" 2>out/conftest.err)
8604 ac_status=$?
8605 cat out/conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8608 then
8609 # The compiler can only warn and ignore the option if not recognized
8610 # So say no if there are warnings
8611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8614 lt_cv_prog_compiler_c_o=yes
8615 fi
8616 fi
8617 chmod u+w . 2>&5
8618 $RM conftest*
8619 # SGI C++ compiler will create directory out/ii_files/ for
8620 # template instantiation
8621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8622 $RM out/* && rmdir out
8623 cd ..
8624 $RM -r conftest
8625 $RM conftest*
8626
8627 fi
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8629 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8630
8631
8632
8633
8634
8635
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8637 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8638 if ${lt_cv_prog_compiler_c_o+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 lt_cv_prog_compiler_c_o=no
8642 $RM -r conftest 2>/dev/null
8643 mkdir conftest
8644 cd conftest
8645 mkdir out
8646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8647
8648 lt_compiler_flag="-o out/conftest2.$ac_objext"
8649 # Insert the option either (1) after the last *FLAGS variable, or
8650 # (2) before a word containing "conftest.", or (3) at the end.
8651 # Note that $ac_compile itself does not contain backslashes and begins
8652 # with a dollar sign (not a hyphen), so the echo should work correctly.
8653 lt_compile=`echo "$ac_compile" | $SED \
8654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8656 -e 's:$: $lt_compiler_flag:'`
8657 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8658 (eval "$lt_compile" 2>out/conftest.err)
8659 ac_status=$?
8660 cat out/conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8663 then
8664 # The compiler can only warn and ignore the option if not recognized
8665 # So say no if there are warnings
8666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8669 lt_cv_prog_compiler_c_o=yes
8670 fi
8671 fi
8672 chmod u+w . 2>&5
8673 $RM conftest*
8674 # SGI C++ compiler will create directory out/ii_files/ for
8675 # template instantiation
8676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8677 $RM out/* && rmdir out
8678 cd ..
8679 $RM -r conftest
8680 $RM conftest*
8681
8682 fi
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8684 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8685
8686
8687
8688
8689 hard_links="nottested"
8690 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8691 # do not overwrite the value of need_locks provided by the user
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8693 $as_echo_n "checking if we can lock with hard links... " >&6; }
8694 hard_links=yes
8695 $RM conftest*
8696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8697 touch conftest.a
8698 ln conftest.a conftest.b 2>&5 || hard_links=no
8699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8701 $as_echo "$hard_links" >&6; }
8702 if test "$hard_links" = no; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8704 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8705 need_locks=warn
8706 fi
8707 else
8708 need_locks=no
8709 fi
8710
8711
8712
8713
8714
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8717 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8718
8719 runpath_var=
8720 allow_undefined_flag=
8721 always_export_symbols=no
8722 archive_cmds=
8723 archive_expsym_cmds=
8724 compiler_needs_object=no
8725 enable_shared_with_static_runtimes=no
8726 export_dynamic_flag_spec=
8727 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8728 hardcode_automatic=no
8729 hardcode_direct=no
8730 hardcode_direct_absolute=no
8731 hardcode_libdir_flag_spec=
8732 hardcode_libdir_flag_spec_ld=
8733 hardcode_libdir_separator=
8734 hardcode_minus_L=no
8735 hardcode_shlibpath_var=unsupported
8736 inherit_rpath=no
8737 link_all_deplibs=unknown
8738 module_cmds=
8739 module_expsym_cmds=
8740 old_archive_from_new_cmds=
8741 old_archive_from_expsyms_cmds=
8742 thread_safe_flag_spec=
8743 whole_archive_flag_spec=
8744 # include_expsyms should be a list of space-separated symbols to be *always*
8745 # included in the symbol list
8746 include_expsyms=
8747 # exclude_expsyms can be an extended regexp of symbols to exclude
8748 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8749 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8750 # as well as any symbol that contains `d'.
8751 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8752 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8753 # platforms (ab)use it in PIC code, but their linkers get confused if
8754 # the symbol is explicitly referenced. Since portable code cannot
8755 # rely on this symbol name, it's probably fine to never include it in
8756 # preloaded symbol tables.
8757 # Exclude shared library initialization/finalization symbols.
8758 extract_expsyms_cmds=
8759
8760 case $host_os in
8761 cygwin* | mingw* | pw32* | cegcc*)
8762 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8763 # When not using gcc, we currently assume that we are using
8764 # Microsoft Visual C++.
8765 if test "$GCC" != yes; then
8766 with_gnu_ld=no
8767 fi
8768 ;;
8769 interix*)
8770 # we just hope/assume this is gcc and not c89 (= MSVC++)
8771 with_gnu_ld=yes
8772 ;;
8773 openbsd*)
8774 with_gnu_ld=no
8775 ;;
8776 esac
8777
8778 ld_shlibs=yes
8779
8780 # On some targets, GNU ld is compatible enough with the native linker
8781 # that we're better off using the native interface for both.
8782 lt_use_gnu_ld_interface=no
8783 if test "$with_gnu_ld" = yes; then
8784 case $host_os in
8785 aix*)
8786 # The AIX port of GNU ld has always aspired to compatibility
8787 # with the native linker. However, as the warning in the GNU ld
8788 # block says, versions before 2.19.5* couldn't really create working
8789 # shared libraries, regardless of the interface used.
8790 case `$LD -v 2>&1` in
8791 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8792 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8793 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8794 *)
8795 lt_use_gnu_ld_interface=yes
8796 ;;
8797 esac
8798 ;;
8799 *)
8800 lt_use_gnu_ld_interface=yes
8801 ;;
8802 esac
8803 fi
8804
8805 if test "$lt_use_gnu_ld_interface" = yes; then
8806 # If archive_cmds runs LD, not CC, wlarc should be empty
8807 wlarc='${wl}'
8808
8809 # Set some defaults for GNU ld with shared library support. These
8810 # are reset later if shared libraries are not supported. Putting them
8811 # here allows them to be overridden if necessary.
8812 runpath_var=LD_RUN_PATH
8813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8814 export_dynamic_flag_spec='${wl}--export-dynamic'
8815 # ancient GNU ld didn't support --whole-archive et. al.
8816 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8817 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8818 else
8819 whole_archive_flag_spec=
8820 fi
8821 supports_anon_versioning=no
8822 case `$LD -v 2>&1` in
8823 *GNU\ gold*) supports_anon_versioning=yes ;;
8824 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8825 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8826 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8827 *\ 2.11.*) ;; # other 2.11 versions
8828 *) supports_anon_versioning=yes ;;
8829 esac
8830
8831 # See if GNU ld supports shared libraries.
8832 case $host_os in
8833 aix[3-9]*)
8834 # On AIX/PPC, the GNU linker is very broken
8835 if test "$host_cpu" != ia64; then
8836 ld_shlibs=no
8837 cat <<_LT_EOF 1>&2
8838
8839 *** Warning: the GNU linker, at least up to release 2.19, is reported
8840 *** to be unable to reliably create shared libraries on AIX.
8841 *** Therefore, libtool is disabling shared libraries support. If you
8842 *** really care for shared libraries, you may want to install binutils
8843 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8844 *** You will then need to restart the configuration process.
8845
8846 _LT_EOF
8847 fi
8848 ;;
8849
8850 amigaos*)
8851 case $host_cpu in
8852 powerpc)
8853 # see comment about AmigaOS4 .so support
8854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855 archive_expsym_cmds=''
8856 ;;
8857 m68k)
8858 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)'
8859 hardcode_libdir_flag_spec='-L$libdir'
8860 hardcode_minus_L=yes
8861 ;;
8862 esac
8863 ;;
8864
8865 beos*)
8866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8867 allow_undefined_flag=unsupported
8868 # Joseph Beckenbach <[email protected]> says some releases of gcc
8869 # support --undefined. This deserves some investigation. FIXME
8870 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 else
8872 ld_shlibs=no
8873 fi
8874 ;;
8875
8876 cygwin* | mingw* | pw32* | cegcc*)
8877 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8878 # as there is no search path for DLLs.
8879 hardcode_libdir_flag_spec='-L$libdir'
8880 export_dynamic_flag_spec='${wl}--export-all-symbols'
8881 allow_undefined_flag=unsupported
8882 always_export_symbols=no
8883 enable_shared_with_static_runtimes=yes
8884 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8885
8886 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8888 # If the export-symbols file already is a .def file (1st line
8889 # is EXPORTS), use it as is; otherwise, prepend...
8890 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8891 cp $export_symbols $output_objdir/$soname.def;
8892 else
8893 echo EXPORTS > $output_objdir/$soname.def;
8894 cat $export_symbols >> $output_objdir/$soname.def;
8895 fi~
8896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8897 else
8898 ld_shlibs=no
8899 fi
8900 ;;
8901
8902 haiku*)
8903 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8904 link_all_deplibs=yes
8905 ;;
8906
8907 interix[3-9]*)
8908 hardcode_direct=no
8909 hardcode_shlibpath_var=no
8910 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8911 export_dynamic_flag_spec='${wl}-E'
8912 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8913 # Instead, shared libraries are loaded at an image base (0x10000000 by
8914 # default) and relocated if they conflict, which is a slow very memory
8915 # consuming and fragmenting process. To avoid this, we pick a random,
8916 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8917 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8918 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8919 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'
8920 ;;
8921
8922 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8923 tmp_diet=no
8924 if test "$host_os" = linux-dietlibc; then
8925 case $cc_basename in
8926 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8927 esac
8928 fi
8929 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8930 && test "$tmp_diet" = no
8931 then
8932 tmp_addflag=' $pic_flag'
8933 tmp_sharedflag='-shared'
8934 case $cc_basename,$host_cpu in
8935 pgcc*) # Portland Group C compiler
8936 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'
8937 tmp_addflag=' $pic_flag'
8938 ;;
8939 pgf77* | pgf90* | pgf95* | pgfortran*)
8940 # Portland Group f77 and f90 compilers
8941 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'
8942 tmp_addflag=' $pic_flag -Mnomain' ;;
8943 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8944 tmp_addflag=' -i_dynamic' ;;
8945 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8946 tmp_addflag=' -i_dynamic -nofor_main' ;;
8947 ifc* | ifort*) # Intel Fortran compiler
8948 tmp_addflag=' -nofor_main' ;;
8949 lf95*) # Lahey Fortran 8.1
8950 whole_archive_flag_spec=
8951 tmp_sharedflag='--shared' ;;
8952 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8953 tmp_sharedflag='-qmkshrobj'
8954 tmp_addflag= ;;
8955 nvcc*) # Cuda Compiler Driver 2.2
8956 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'
8957 compiler_needs_object=yes
8958 ;;
8959 esac
8960 case `$CC -V 2>&1 | sed 5q` in
8961 *Sun\ C*) # Sun C 5.9
8962 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'
8963 compiler_needs_object=yes
8964 tmp_sharedflag='-G' ;;
8965 *Sun\ F*) # Sun Fortran 8.3
8966 tmp_sharedflag='-G' ;;
8967 esac
8968 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969
8970 if test "x$supports_anon_versioning" = xyes; then
8971 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8972 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8973 echo "local: *; };" >> $output_objdir/$libname.ver~
8974 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8975 fi
8976
8977 case $cc_basename in
8978 xlf* | bgf* | bgxlf* | mpixlf*)
8979 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8980 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8981 hardcode_libdir_flag_spec=
8982 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8983 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8984 if test "x$supports_anon_versioning" = xyes; then
8985 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8987 echo "local: *; };" >> $output_objdir/$libname.ver~
8988 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8989 fi
8990 ;;
8991 esac
8992 else
8993 ld_shlibs=no
8994 fi
8995 ;;
8996
8997 netbsd*)
8998 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8999 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9000 wlarc=
9001 else
9002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004 fi
9005 ;;
9006
9007 solaris*)
9008 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9009 ld_shlibs=no
9010 cat <<_LT_EOF 1>&2
9011
9012 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9013 *** create shared libraries on Solaris systems. Therefore, libtool
9014 *** is disabling shared libraries support. We urge you to upgrade GNU
9015 *** binutils to release 2.9.1 or newer. Another option is to modify
9016 *** your PATH or compiler configuration so that the native linker is
9017 *** used, and then restart.
9018
9019 _LT_EOF
9020 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9023 else
9024 ld_shlibs=no
9025 fi
9026 ;;
9027
9028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9029 case `$LD -v 2>&1` in
9030 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9031 ld_shlibs=no
9032 cat <<_LT_EOF 1>&2
9033
9034 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9035 *** reliably create shared libraries on SCO systems. Therefore, libtool
9036 *** is disabling shared libraries support. We urge you to upgrade GNU
9037 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9038 *** your PATH or compiler configuration so that the native linker is
9039 *** used, and then restart.
9040
9041 _LT_EOF
9042 ;;
9043 *)
9044 # For security reasons, it is highly recommended that you always
9045 # use absolute paths for naming shared libraries, and exclude the
9046 # DT_RUNPATH tag from executables and libraries. But doing so
9047 # requires that you compile everything twice, which is a pain.
9048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9052 else
9053 ld_shlibs=no
9054 fi
9055 ;;
9056 esac
9057 ;;
9058
9059 sunos4*)
9060 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9061 wlarc=
9062 hardcode_direct=yes
9063 hardcode_shlibpath_var=no
9064 ;;
9065
9066 *)
9067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9070 else
9071 ld_shlibs=no
9072 fi
9073 ;;
9074 esac
9075
9076 if test "$ld_shlibs" = no; then
9077 runpath_var=
9078 hardcode_libdir_flag_spec=
9079 export_dynamic_flag_spec=
9080 whole_archive_flag_spec=
9081 fi
9082 else
9083 # PORTME fill in a description of your system's linker (not GNU ld)
9084 case $host_os in
9085 aix3*)
9086 allow_undefined_flag=unsupported
9087 always_export_symbols=yes
9088 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'
9089 # Note: this linker hardcodes the directories in LIBPATH if there
9090 # are no directories specified by -L.
9091 hardcode_minus_L=yes
9092 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9093 # Neither direct hardcoding nor static linking is supported with a
9094 # broken collect2.
9095 hardcode_direct=unsupported
9096 fi
9097 ;;
9098
9099 aix[4-9]*)
9100 if test "$host_cpu" = ia64; then
9101 # On IA64, the linker does run time linking by default, so we don't
9102 # have to do anything special.
9103 aix_use_runtimelinking=no
9104 exp_sym_flag='-Bexport'
9105 no_entry_flag=""
9106 else
9107 # If we're using GNU nm, then we don't want the "-C" option.
9108 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9109 # Also, AIX nm treats weak defined symbols like other global
9110 # defined symbols, whereas GNU nm marks them as "W".
9111 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9112 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'
9113 else
9114 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'
9115 fi
9116 aix_use_runtimelinking=no
9117
9118 # Test if we are trying to use run time linking or normal
9119 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9120 # need to do runtime linking.
9121 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9122 for ld_flag in $LDFLAGS; do
9123 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9124 aix_use_runtimelinking=yes
9125 break
9126 fi
9127 done
9128 ;;
9129 esac
9130
9131 exp_sym_flag='-bexport'
9132 no_entry_flag='-bnoentry'
9133 fi
9134
9135 # When large executables or shared objects are built, AIX ld can
9136 # have problems creating the table of contents. If linking a library
9137 # or program results in "error TOC overflow" add -mminimal-toc to
9138 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9139 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9140
9141 archive_cmds=''
9142 hardcode_direct=yes
9143 hardcode_direct_absolute=yes
9144 hardcode_libdir_separator=':'
9145 link_all_deplibs=yes
9146 file_list_spec='${wl}-f,'
9147
9148 if test "$GCC" = yes; then
9149 case $host_os in aix4.[012]|aix4.[012].*)
9150 # We only want to do this on AIX 4.2 and lower, the check
9151 # below for broken collect2 doesn't work under 4.3+
9152 collect2name=`${CC} -print-prog-name=collect2`
9153 if test -f "$collect2name" &&
9154 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9155 then
9156 # We have reworked collect2
9157 :
9158 else
9159 # We have old collect2
9160 hardcode_direct=unsupported
9161 # It fails to find uninstalled libraries when the uninstalled
9162 # path is not listed in the libpath. Setting hardcode_minus_L
9163 # to unsupported forces relinking
9164 hardcode_minus_L=yes
9165 hardcode_libdir_flag_spec='-L$libdir'
9166 hardcode_libdir_separator=
9167 fi
9168 ;;
9169 esac
9170 shared_flag='-shared'
9171 if test "$aix_use_runtimelinking" = yes; then
9172 shared_flag="$shared_flag "'${wl}-G'
9173 fi
9174 else
9175 # not using gcc
9176 if test "$host_cpu" = ia64; then
9177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9178 # chokes on -Wl,-G. The following line is correct:
9179 shared_flag='-G'
9180 else
9181 if test "$aix_use_runtimelinking" = yes; then
9182 shared_flag='${wl}-G'
9183 else
9184 shared_flag='${wl}-bM:SRE'
9185 fi
9186 fi
9187 fi
9188
9189 export_dynamic_flag_spec='${wl}-bexpall'
9190 # It seems that -bexpall does not export symbols beginning with
9191 # underscore (_), so it is better to generate a list of symbols to export.
9192 always_export_symbols=yes
9193 if test "$aix_use_runtimelinking" = yes; then
9194 # Warning - without using the other runtime loading flags (-brtl),
9195 # -berok will link without error, but may produce a broken library.
9196 allow_undefined_flag='-berok'
9197 # Determine the default libpath from the value encoded in an
9198 # empty executable.
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9201
9202 int
9203 main ()
9204 {
9205
9206 ;
9207 return 0;
9208 }
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211
9212 lt_aix_libpath_sed='
9213 /Import File Strings/,/^$/ {
9214 /^0/ {
9215 s/^0 *\(.*\)$/\1/
9216 p
9217 }
9218 }'
9219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9220 # Check for a 64-bit object if we didn't find anything.
9221 if test -z "$aix_libpath"; then
9222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9223 fi
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9228
9229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9230 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"
9231 else
9232 if test "$host_cpu" = ia64; then
9233 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9234 allow_undefined_flag="-z nodefs"
9235 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"
9236 else
9237 # Determine the default libpath from the value encoded in an
9238 # empty executable.
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241
9242 int
9243 main ()
9244 {
9245
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9251
9252 lt_aix_libpath_sed='
9253 /Import File Strings/,/^$/ {
9254 /^0/ {
9255 s/^0 *\(.*\)$/\1/
9256 p
9257 }
9258 }'
9259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9260 # Check for a 64-bit object if we didn't find anything.
9261 if test -z "$aix_libpath"; then
9262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9263 fi
9264 fi
9265 rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9268
9269 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9270 # Warning - without using the other run time loading flags,
9271 # -berok will link without error, but may produce a broken library.
9272 no_undefined_flag=' ${wl}-bernotok'
9273 allow_undefined_flag=' ${wl}-berok'
9274 if test "$with_gnu_ld" = yes; then
9275 # We only use this code for GNU lds that support --whole-archive.
9276 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9277 else
9278 # Exported symbols can be pulled into shared objects from archives
9279 whole_archive_flag_spec='$convenience'
9280 fi
9281 archive_cmds_need_lc=yes
9282 # This is similar to how AIX traditionally builds its shared libraries.
9283 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'
9284 fi
9285 fi
9286 ;;
9287
9288 amigaos*)
9289 case $host_cpu in
9290 powerpc)
9291 # see comment about AmigaOS4 .so support
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds=''
9294 ;;
9295 m68k)
9296 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)'
9297 hardcode_libdir_flag_spec='-L$libdir'
9298 hardcode_minus_L=yes
9299 ;;
9300 esac
9301 ;;
9302
9303 bsdi[45]*)
9304 export_dynamic_flag_spec=-rdynamic
9305 ;;
9306
9307 cygwin* | mingw* | pw32* | cegcc*)
9308 # When not using gcc, we currently assume that we are using
9309 # Microsoft Visual C++.
9310 # hardcode_libdir_flag_spec is actually meaningless, as there is
9311 # no search path for DLLs.
9312 hardcode_libdir_flag_spec=' '
9313 allow_undefined_flag=unsupported
9314 # Tell ltmain to make .lib files, not .a files.
9315 libext=lib
9316 # Tell ltmain to make .dll files, not .so files.
9317 shrext_cmds=".dll"
9318 # FIXME: Setting linknames here is a bad hack.
9319 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9320 # The linker will automatically build a .lib file if we build a DLL.
9321 old_archive_from_new_cmds='true'
9322 # FIXME: Should let the user specify the lib program.
9323 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9324 fix_srcfile_path='`cygpath -w "$srcfile"`'
9325 enable_shared_with_static_runtimes=yes
9326 ;;
9327
9328 darwin* | rhapsody*)
9329
9330
9331 archive_cmds_need_lc=no
9332 hardcode_direct=no
9333 hardcode_automatic=yes
9334 hardcode_shlibpath_var=unsupported
9335 if test "$lt_cv_ld_force_load" = "yes"; then
9336 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\"`'
9337 else
9338 whole_archive_flag_spec=''
9339 fi
9340 link_all_deplibs=yes
9341 allow_undefined_flag="$_lt_dar_allow_undefined"
9342 case $cc_basename in
9343 ifort*) _lt_dar_can_shared=yes ;;
9344 *) _lt_dar_can_shared=$GCC ;;
9345 esac
9346 if test "$_lt_dar_can_shared" = "yes"; then
9347 output_verbose_link_cmd=func_echo_all
9348 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9349 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9350 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}"
9351 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}"
9352
9353 else
9354 ld_shlibs=no
9355 fi
9356
9357 ;;
9358
9359 dgux*)
9360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9361 hardcode_libdir_flag_spec='-L$libdir'
9362 hardcode_shlibpath_var=no
9363 ;;
9364
9365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9366 # support. Future versions do this automatically, but an explicit c++rt0.o
9367 # does not break anything, and helps significantly (at the cost of a little
9368 # extra space).
9369 freebsd2.2*)
9370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9371 hardcode_libdir_flag_spec='-R$libdir'
9372 hardcode_direct=yes
9373 hardcode_shlibpath_var=no
9374 ;;
9375
9376 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9377 freebsd2.*)
9378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9379 hardcode_direct=yes
9380 hardcode_minus_L=yes
9381 hardcode_shlibpath_var=no
9382 ;;
9383
9384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9385 freebsd* | dragonfly*)
9386 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9387 hardcode_libdir_flag_spec='-R$libdir'
9388 hardcode_direct=yes
9389 hardcode_shlibpath_var=no
9390 ;;
9391
9392 hpux9*)
9393 if test "$GCC" = yes; then
9394 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'
9395 else
9396 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'
9397 fi
9398 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9399 hardcode_libdir_separator=:
9400 hardcode_direct=yes
9401
9402 # hardcode_minus_L: Not really in the search PATH,
9403 # but as the default location of the library.
9404 hardcode_minus_L=yes
9405 export_dynamic_flag_spec='${wl}-E'
9406 ;;
9407
9408 hpux10*)
9409 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9410 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9411 else
9412 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9413 fi
9414 if test "$with_gnu_ld" = no; then
9415 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9416 hardcode_libdir_flag_spec_ld='+b $libdir'
9417 hardcode_libdir_separator=:
9418 hardcode_direct=yes
9419 hardcode_direct_absolute=yes
9420 export_dynamic_flag_spec='${wl}-E'
9421 # hardcode_minus_L: Not really in the search PATH,
9422 # but as the default location of the library.
9423 hardcode_minus_L=yes
9424 fi
9425 ;;
9426
9427 hpux11*)
9428 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9429 case $host_cpu in
9430 hppa*64*)
9431 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9432 ;;
9433 ia64*)
9434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9435 ;;
9436 *)
9437 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9438 ;;
9439 esac
9440 else
9441 case $host_cpu in
9442 hppa*64*)
9443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9444 ;;
9445 ia64*)
9446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9447 ;;
9448 *)
9449
9450 # Older versions of the 11.00 compiler do not understand -b yet
9451 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9453 $as_echo_n "checking if $CC understands -b... " >&6; }
9454 if ${lt_cv_prog_compiler__b+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456 else
9457 lt_cv_prog_compiler__b=no
9458 save_LDFLAGS="$LDFLAGS"
9459 LDFLAGS="$LDFLAGS -b"
9460 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9462 # The linker can only warn and ignore the option if not recognized
9463 # So say no if there are warnings
9464 if test -s conftest.err; then
9465 # Append any errors to the config.log.
9466 cat conftest.err 1>&5
9467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9469 if diff conftest.exp conftest.er2 >/dev/null; then
9470 lt_cv_prog_compiler__b=yes
9471 fi
9472 else
9473 lt_cv_prog_compiler__b=yes
9474 fi
9475 fi
9476 $RM -r conftest*
9477 LDFLAGS="$save_LDFLAGS"
9478
9479 fi
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9481 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9482
9483 if test x"$lt_cv_prog_compiler__b" = xyes; then
9484 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9485 else
9486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9487 fi
9488
9489 ;;
9490 esac
9491 fi
9492 if test "$with_gnu_ld" = no; then
9493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9494 hardcode_libdir_separator=:
9495
9496 case $host_cpu in
9497 hppa*64*|ia64*)
9498 hardcode_direct=no
9499 hardcode_shlibpath_var=no
9500 ;;
9501 *)
9502 hardcode_direct=yes
9503 hardcode_direct_absolute=yes
9504 export_dynamic_flag_spec='${wl}-E'
9505
9506 # hardcode_minus_L: Not really in the search PATH,
9507 # but as the default location of the library.
9508 hardcode_minus_L=yes
9509 ;;
9510 esac
9511 fi
9512 ;;
9513
9514 irix5* | irix6* | nonstopux*)
9515 if test "$GCC" = yes; then
9516 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'
9517 # Try to use the -exported_symbol ld option, if it does not
9518 # work, assume that -exports_file does not work either and
9519 # implicitly export all symbols.
9520 save_LDFLAGS="$LDFLAGS"
9521 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h. */
9524 int foo(void) {}
9525 _ACEOF
9526 if ac_fn_c_try_link "$LINENO"; then :
9527 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'
9528
9529 fi
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LDFLAGS="$save_LDFLAGS"
9533 else
9534 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'
9535 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'
9536 fi
9537 archive_cmds_need_lc='no'
9538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9539 hardcode_libdir_separator=:
9540 inherit_rpath=yes
9541 link_all_deplibs=yes
9542 ;;
9543
9544 netbsd*)
9545 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9547 else
9548 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9549 fi
9550 hardcode_libdir_flag_spec='-R$libdir'
9551 hardcode_direct=yes
9552 hardcode_shlibpath_var=no
9553 ;;
9554
9555 newsos6)
9556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9557 hardcode_direct=yes
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 hardcode_libdir_separator=:
9560 hardcode_shlibpath_var=no
9561 ;;
9562
9563 *nto* | *qnx*)
9564 ;;
9565
9566 openbsd*)
9567 if test -f /usr/libexec/ld.so; then
9568 hardcode_direct=yes
9569 hardcode_shlibpath_var=no
9570 hardcode_direct_absolute=yes
9571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9573 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9575 export_dynamic_flag_spec='${wl}-E'
9576 else
9577 case $host_os in
9578 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_libdir_flag_spec='-R$libdir'
9581 ;;
9582 *)
9583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9584 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9585 ;;
9586 esac
9587 fi
9588 else
9589 ld_shlibs=no
9590 fi
9591 ;;
9592
9593 os2*)
9594 hardcode_libdir_flag_spec='-L$libdir'
9595 hardcode_minus_L=yes
9596 allow_undefined_flag=unsupported
9597 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'
9598 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9599 ;;
9600
9601 osf3*)
9602 if test "$GCC" = yes; then
9603 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9604 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'
9605 else
9606 allow_undefined_flag=' -expect_unresolved \*'
9607 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'
9608 fi
9609 archive_cmds_need_lc='no'
9610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9611 hardcode_libdir_separator=:
9612 ;;
9613
9614 osf4* | osf5*) # as osf3* with the addition of -msym flag
9615 if test "$GCC" = yes; then
9616 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9617 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'
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 else
9620 allow_undefined_flag=' -expect_unresolved \*'
9621 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'
9622 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~
9623 $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'
9624
9625 # Both c and cxx compiler support -rpath directly
9626 hardcode_libdir_flag_spec='-rpath $libdir'
9627 fi
9628 archive_cmds_need_lc='no'
9629 hardcode_libdir_separator=:
9630 ;;
9631
9632 solaris*)
9633 no_undefined_flag=' -z defs'
9634 if test "$GCC" = yes; then
9635 wlarc='${wl}'
9636 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9639 else
9640 case `$CC -V 2>&1` in
9641 *"Compilers 5.0"*)
9642 wlarc=''
9643 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9645 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9646 ;;
9647 *)
9648 wlarc='${wl}'
9649 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9651 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9652 ;;
9653 esac
9654 fi
9655 hardcode_libdir_flag_spec='-R$libdir'
9656 hardcode_shlibpath_var=no
9657 case $host_os in
9658 solaris2.[0-5] | solaris2.[0-5].*) ;;
9659 *)
9660 # The compiler driver will combine and reorder linker options,
9661 # but understands `-z linker_flag'. GCC discards it without `$wl',
9662 # but is careful enough not to reorder.
9663 # Supported since Solaris 2.6 (maybe 2.5.1?)
9664 if test "$GCC" = yes; then
9665 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9666 else
9667 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9668 fi
9669 ;;
9670 esac
9671 link_all_deplibs=yes
9672 ;;
9673
9674 sunos4*)
9675 if test "x$host_vendor" = xsequent; then
9676 # Use $CC to link under sequent, because it throws in some extra .o
9677 # files that make .init and .fini sections work.
9678 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9679 else
9680 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9681 fi
9682 hardcode_libdir_flag_spec='-L$libdir'
9683 hardcode_direct=yes
9684 hardcode_minus_L=yes
9685 hardcode_shlibpath_var=no
9686 ;;
9687
9688 sysv4)
9689 case $host_vendor in
9690 sni)
9691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9692 hardcode_direct=yes # is this really true???
9693 ;;
9694 siemens)
9695 ## LD is ld it makes a PLAMLIB
9696 ## CC just makes a GrossModule.
9697 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9698 reload_cmds='$CC -r -o $output$reload_objs'
9699 hardcode_direct=no
9700 ;;
9701 motorola)
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9704 ;;
9705 esac
9706 runpath_var='LD_RUN_PATH'
9707 hardcode_shlibpath_var=no
9708 ;;
9709
9710 sysv4.3*)
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_shlibpath_var=no
9713 export_dynamic_flag_spec='-Bexport'
9714 ;;
9715
9716 sysv4*MP*)
9717 if test -d /usr/nec; then
9718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_shlibpath_var=no
9720 runpath_var=LD_RUN_PATH
9721 hardcode_runpath_var=yes
9722 ld_shlibs=yes
9723 fi
9724 ;;
9725
9726 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9727 no_undefined_flag='${wl}-z,text'
9728 archive_cmds_need_lc=no
9729 hardcode_shlibpath_var=no
9730 runpath_var='LD_RUN_PATH'
9731
9732 if test "$GCC" = yes; then
9733 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 else
9736 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9737 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 fi
9739 ;;
9740
9741 sysv5* | sco3.2v5* | sco5v6*)
9742 # Note: We can NOT use -z defs as we might desire, because we do not
9743 # link with -lc, and that would cause any symbols used from libc to
9744 # always be unresolved, which means just about no library would
9745 # ever link correctly. If we're not using GNU ld we use -z text
9746 # though, which does catch some bad symbols but isn't as heavy-handed
9747 # as -z defs.
9748 no_undefined_flag='${wl}-z,text'
9749 allow_undefined_flag='${wl}-z,nodefs'
9750 archive_cmds_need_lc=no
9751 hardcode_shlibpath_var=no
9752 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9753 hardcode_libdir_separator=':'
9754 link_all_deplibs=yes
9755 export_dynamic_flag_spec='${wl}-Bexport'
9756 runpath_var='LD_RUN_PATH'
9757
9758 if test "$GCC" = yes; then
9759 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 else
9762 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9763 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 fi
9765 ;;
9766
9767 uts4*)
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_libdir_flag_spec='-L$libdir'
9770 hardcode_shlibpath_var=no
9771 ;;
9772
9773 *)
9774 ld_shlibs=no
9775 ;;
9776 esac
9777
9778 if test x$host_vendor = xsni; then
9779 case $host in
9780 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9781 export_dynamic_flag_spec='${wl}-Blargedynsym'
9782 ;;
9783 esac
9784 fi
9785 fi
9786
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9788 $as_echo "$ld_shlibs" >&6; }
9789 test "$ld_shlibs" = no && can_build_shared=no
9790
9791 with_gnu_ld=$with_gnu_ld
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807 #
9808 # Do we need to explicitly link libc?
9809 #
9810 case "x$archive_cmds_need_lc" in
9811 x|xyes)
9812 # Assume -lc should be added
9813 archive_cmds_need_lc=yes
9814
9815 if test "$enable_shared" = yes && test "$GCC" = yes; then
9816 case $archive_cmds in
9817 *'~'*)
9818 # FIXME: we may have to deal with multi-command sequences.
9819 ;;
9820 '$CC '*)
9821 # Test whether the compiler implicitly links with -lc since on some
9822 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9823 # to ld, don't add -lc before -lgcc.
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9825 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9826 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 $RM conftest*
9830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9831
9832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9833 (eval $ac_compile) 2>&5
9834 ac_status=$?
9835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9836 test $ac_status = 0; } 2>conftest.err; then
9837 soname=conftest
9838 lib=conftest
9839 libobjs=conftest.$ac_objext
9840 deplibs=
9841 wl=$lt_prog_compiler_wl
9842 pic_flag=$lt_prog_compiler_pic
9843 compiler_flags=-v
9844 linker_flags=-v
9845 verstring=
9846 output_objdir=.
9847 libname=conftest
9848 lt_save_allow_undefined_flag=$allow_undefined_flag
9849 allow_undefined_flag=
9850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9851 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9852 ac_status=$?
9853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9854 test $ac_status = 0; }
9855 then
9856 lt_cv_archive_cmds_need_lc=no
9857 else
9858 lt_cv_archive_cmds_need_lc=yes
9859 fi
9860 allow_undefined_flag=$lt_save_allow_undefined_flag
9861 else
9862 cat conftest.err 1>&5
9863 fi
9864 $RM conftest*
9865
9866 fi
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9868 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9869 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9870 ;;
9871 esac
9872 fi
9873 ;;
9874 esac
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10033 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10034
10035 if test "$GCC" = yes; then
10036 case $host_os in
10037 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10038 *) lt_awk_arg="/^libraries:/" ;;
10039 esac
10040 case $host_os in
10041 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10042 *) lt_sed_strip_eq="s,=/,/,g" ;;
10043 esac
10044 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10045 case $lt_search_path_spec in
10046 *\;*)
10047 # if the path contains ";" then we assume it to be the separator
10048 # otherwise default to the standard path separator (i.e. ":") - it is
10049 # assumed that no part of a normal pathname contains ";" but that should
10050 # okay in the real world where ";" in dirpaths is itself problematic.
10051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10052 ;;
10053 *)
10054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10055 ;;
10056 esac
10057 # Ok, now we have the path, separated by spaces, we can step through it
10058 # and add multilib dir if necessary.
10059 lt_tmp_lt_search_path_spec=
10060 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10061 for lt_sys_path in $lt_search_path_spec; do
10062 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10064 else
10065 test -d "$lt_sys_path" && \
10066 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10067 fi
10068 done
10069 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10070 BEGIN {RS=" "; FS="/|\n";} {
10071 lt_foo="";
10072 lt_count=0;
10073 for (lt_i = NF; lt_i > 0; lt_i--) {
10074 if ($lt_i != "" && $lt_i != ".") {
10075 if ($lt_i == "..") {
10076 lt_count++;
10077 } else {
10078 if (lt_count == 0) {
10079 lt_foo="/" $lt_i lt_foo;
10080 } else {
10081 lt_count--;
10082 }
10083 }
10084 }
10085 }
10086 if (lt_foo != "") { lt_freq[lt_foo]++; }
10087 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10088 }'`
10089 # AWK program above erroneously prepends '/' to C:/dos/paths
10090 # for these hosts.
10091 case $host_os in
10092 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10093 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10094 esac
10095 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10096 else
10097 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10098 fi
10099 library_names_spec=
10100 libname_spec='lib$name'
10101 soname_spec=
10102 shrext_cmds=".so"
10103 postinstall_cmds=
10104 postuninstall_cmds=
10105 finish_cmds=
10106 finish_eval=
10107 shlibpath_var=
10108 shlibpath_overrides_runpath=unknown
10109 version_type=none
10110 dynamic_linker="$host_os ld.so"
10111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10112 need_lib_prefix=unknown
10113 hardcode_into_libs=no
10114
10115 # when you set need_version to no, make sure it does not cause -set_version
10116 # flags to be left without arguments
10117 need_version=unknown
10118
10119 case $host_os in
10120 aix3*)
10121 version_type=linux
10122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10123 shlibpath_var=LIBPATH
10124
10125 # AIX 3 has no versioning support, so we append a major version to the name.
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 ;;
10128
10129 aix[4-9]*)
10130 version_type=linux
10131 need_lib_prefix=no
10132 need_version=no
10133 hardcode_into_libs=yes
10134 if test "$host_cpu" = ia64; then
10135 # AIX 5 supports IA64
10136 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 else
10139 # With GCC up to 2.95.x, collect2 would create an import file
10140 # for dependence libraries. The import file would start with
10141 # the line `#! .'. This would cause the generated library to
10142 # depend on `.', always an invalid library. This was fixed in
10143 # development snapshots of GCC prior to 3.0.
10144 case $host_os in
10145 aix4 | aix4.[01] | aix4.[01].*)
10146 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10147 echo ' yes '
10148 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10149 :
10150 else
10151 can_build_shared=no
10152 fi
10153 ;;
10154 esac
10155 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10156 # soname into executable. Probably we can add versioning support to
10157 # collect2, so additional links can be useful in future.
10158 if test "$aix_use_runtimelinking" = yes; then
10159 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10160 # instead of lib<name>.a to let people know that these are not
10161 # typical AIX shared libraries.
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 else
10164 # We preserve .a as extension for shared libraries through AIX4.2
10165 # and later when we are not doing run time linking.
10166 library_names_spec='${libname}${release}.a $libname.a'
10167 soname_spec='${libname}${release}${shared_ext}$major'
10168 fi
10169 shlibpath_var=LIBPATH
10170 fi
10171 ;;
10172
10173 amigaos*)
10174 case $host_cpu in
10175 powerpc)
10176 # Since July 2007 AmigaOS4 officially supports .so libraries.
10177 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10179 ;;
10180 m68k)
10181 library_names_spec='$libname.ixlibrary $libname.a'
10182 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10183 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'
10184 ;;
10185 esac
10186 ;;
10187
10188 beos*)
10189 library_names_spec='${libname}${shared_ext}'
10190 dynamic_linker="$host_os ld.so"
10191 shlibpath_var=LIBRARY_PATH
10192 ;;
10193
10194 bsdi[45]*)
10195 version_type=linux
10196 need_version=no
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10202 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10203 # the default ld.so.conf also contains /usr/contrib/lib and
10204 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10205 # libtool to hard-code these into programs
10206 ;;
10207
10208 cygwin* | mingw* | pw32* | cegcc*)
10209 version_type=windows
10210 shrext_cmds=".dll"
10211 need_version=no
10212 need_lib_prefix=no
10213
10214 case $GCC,$host_os in
10215 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10216 library_names_spec='$libname.dll.a'
10217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10218 postinstall_cmds='base_file=`basename \${file}`~
10219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10220 dldir=$destdir/`dirname \$dlpath`~
10221 test -d \$dldir || mkdir -p \$dldir~
10222 $install_prog $dir/$dlname \$dldir/$dlname~
10223 chmod a+x \$dldir/$dlname~
10224 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10225 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10226 fi'
10227 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10228 dlpath=$dir/\$dldll~
10229 $RM \$dlpath'
10230 shlibpath_overrides_runpath=yes
10231
10232 case $host_os in
10233 cygwin*)
10234 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10235 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10236
10237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10238 ;;
10239 mingw* | cegcc*)
10240 # MinGW DLLs use traditional 'lib' prefix
10241 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242 ;;
10243 pw32*)
10244 # pw32 DLLs use 'pw' prefix rather than 'lib'
10245 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10246 ;;
10247 esac
10248 ;;
10249
10250 *)
10251 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10252 ;;
10253 esac
10254 dynamic_linker='Win32 ld.exe'
10255 # FIXME: first we should search . and the directory the executable is in
10256 shlibpath_var=PATH
10257 ;;
10258
10259 darwin* | rhapsody*)
10260 dynamic_linker="$host_os dyld"
10261 version_type=darwin
10262 need_lib_prefix=no
10263 need_version=no
10264 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10265 soname_spec='${libname}${release}${major}$shared_ext'
10266 shlibpath_overrides_runpath=yes
10267 shlibpath_var=DYLD_LIBRARY_PATH
10268 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10269
10270 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10271 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10272 ;;
10273
10274 dgux*)
10275 version_type=linux
10276 need_lib_prefix=no
10277 need_version=no
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10279 soname_spec='${libname}${release}${shared_ext}$major'
10280 shlibpath_var=LD_LIBRARY_PATH
10281 ;;
10282
10283 freebsd* | dragonfly*)
10284 # DragonFly does not have aout. When/if they implement a new
10285 # versioning mechanism, adjust this.
10286 if test -x /usr/bin/objformat; then
10287 objformat=`/usr/bin/objformat`
10288 else
10289 case $host_os in
10290 freebsd[23].*) objformat=aout ;;
10291 *) objformat=elf ;;
10292 esac
10293 fi
10294 version_type=freebsd-$objformat
10295 case $version_type in
10296 freebsd-elf*)
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10298 need_version=no
10299 need_lib_prefix=no
10300 ;;
10301 freebsd-*)
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10303 need_version=yes
10304 ;;
10305 esac
10306 shlibpath_var=LD_LIBRARY_PATH
10307 case $host_os in
10308 freebsd2.*)
10309 shlibpath_overrides_runpath=yes
10310 ;;
10311 freebsd3.[01]* | freebsdelf3.[01]*)
10312 shlibpath_overrides_runpath=yes
10313 hardcode_into_libs=yes
10314 ;;
10315 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10316 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10317 shlibpath_overrides_runpath=no
10318 hardcode_into_libs=yes
10319 ;;
10320 *) # from 4.6 on, and DragonFly
10321 shlibpath_overrides_runpath=yes
10322 hardcode_into_libs=yes
10323 ;;
10324 esac
10325 ;;
10326
10327 haiku*)
10328 version_type=linux
10329 need_lib_prefix=no
10330 need_version=no
10331 dynamic_linker="$host_os runtime_loader"
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes
10336 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10337 hardcode_into_libs=yes
10338 ;;
10339
10340 hpux9* | hpux10* | hpux11*)
10341 # Give a soname corresponding to the major version so that dld.sl refuses to
10342 # link against other versions.
10343 version_type=sunos
10344 need_lib_prefix=no
10345 need_version=no
10346 case $host_cpu in
10347 ia64*)
10348 shrext_cmds='.so'
10349 hardcode_into_libs=yes
10350 dynamic_linker="$host_os dld.so"
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 if test "X$HPUX_IA64_MODE" = X32; then
10356 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10357 else
10358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10359 fi
10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10361 ;;
10362 hppa*64*)
10363 shrext_cmds='.sl'
10364 hardcode_into_libs=yes
10365 dynamic_linker="$host_os dld.sl"
10366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10372 ;;
10373 *)
10374 shrext_cmds='.sl'
10375 dynamic_linker="$host_os dld.sl"
10376 shlibpath_var=SHLIB_PATH
10377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 ;;
10381 esac
10382 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10383 postinstall_cmds='chmod 555 $lib'
10384 # or fails outright, so override atomically:
10385 install_override_mode=555
10386 ;;
10387
10388 interix[3-9]*)
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 shlibpath_overrides_runpath=no
10397 hardcode_into_libs=yes
10398 ;;
10399
10400 irix5* | irix6* | nonstopux*)
10401 case $host_os in
10402 nonstopux*) version_type=nonstopux ;;
10403 *)
10404 if test "$lt_cv_prog_gnu_ld" = yes; then
10405 version_type=linux
10406 else
10407 version_type=irix
10408 fi ;;
10409 esac
10410 need_lib_prefix=no
10411 need_version=no
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10414 case $host_os in
10415 irix5* | nonstopux*)
10416 libsuff= shlibsuff=
10417 ;;
10418 *)
10419 case $LD in # libtool.m4 will add one of these switches to LD
10420 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10421 libsuff= shlibsuff= libmagic=32-bit;;
10422 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10423 libsuff=32 shlibsuff=N32 libmagic=N32;;
10424 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10425 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10426 *) libsuff= shlibsuff= libmagic=never-match;;
10427 esac
10428 ;;
10429 esac
10430 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10431 shlibpath_overrides_runpath=no
10432 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10433 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10434 hardcode_into_libs=yes
10435 ;;
10436
10437 # No shared lib support for Linux oldld, aout, or coff.
10438 linux*oldld* | linux*aout* | linux*coff*)
10439 dynamic_linker=no
10440 ;;
10441
10442 # This must be Linux ELF.
10443
10444 # uclinux* changes (here and below) have been submitted to the libtool
10445 # project, but have not yet been accepted: they are GCC-local changes
10446 # for the time being. (See
10447 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10448 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10449 version_type=linux
10450 need_lib_prefix=no
10451 need_version=no
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 soname_spec='${libname}${release}${shared_ext}$major'
10454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10455 shlibpath_var=LD_LIBRARY_PATH
10456 shlibpath_overrides_runpath=no
10457
10458 # Some binutils ld are patched to set DT_RUNPATH
10459 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 lt_cv_shlibpath_overrides_runpath=no
10463 save_LDFLAGS=$LDFLAGS
10464 save_libdir=$libdir
10465 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10466 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469
10470 int
10471 main ()
10472 {
10473
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_c_try_link "$LINENO"; then :
10479 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10480 lt_cv_shlibpath_overrides_runpath=yes
10481 fi
10482 fi
10483 rm -f core conftest.err conftest.$ac_objext \
10484 conftest$ac_exeext conftest.$ac_ext
10485 LDFLAGS=$save_LDFLAGS
10486 libdir=$save_libdir
10487
10488 fi
10489
10490 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10491
10492 # This implies no fast_install, which is unacceptable.
10493 # Some rework will be needed to allow for fast_install
10494 # before this can be enabled.
10495 hardcode_into_libs=yes
10496
10497 # Append ld.so.conf contents to the search path
10498 if test -f /etc/ld.so.conf; then
10499 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' ' '`
10500 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10501 fi
10502
10503 # We used to test for /lib/ld.so.1 and disable shared libraries on
10504 # powerpc, because MkLinux only supported shared libraries with the
10505 # GNU dynamic linker. Since this was broken with cross compilers,
10506 # most powerpc-linux boxes support dynamic linking these days and
10507 # people can always --disable-shared, the test was removed, and we
10508 # assume the GNU/Linux dynamic linker is in use.
10509 dynamic_linker='GNU/Linux ld.so'
10510 ;;
10511
10512 netbsd*)
10513 version_type=sunos
10514 need_lib_prefix=no
10515 need_version=no
10516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10519 dynamic_linker='NetBSD (a.out) ld.so'
10520 else
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10522 soname_spec='${libname}${release}${shared_ext}$major'
10523 dynamic_linker='NetBSD ld.elf_so'
10524 fi
10525 shlibpath_var=LD_LIBRARY_PATH
10526 shlibpath_overrides_runpath=yes
10527 hardcode_into_libs=yes
10528 ;;
10529
10530 newsos6)
10531 version_type=linux
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 shlibpath_overrides_runpath=yes
10535 ;;
10536
10537 *nto* | *qnx*)
10538 version_type=qnx
10539 need_lib_prefix=no
10540 need_version=no
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 shlibpath_overrides_runpath=no
10545 hardcode_into_libs=yes
10546 dynamic_linker='ldqnx.so'
10547 ;;
10548
10549 openbsd*)
10550 version_type=sunos
10551 sys_lib_dlsearch_path_spec="/usr/lib"
10552 need_lib_prefix=no
10553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10554 case $host_os in
10555 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10556 *) need_version=no ;;
10557 esac
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10562 case $host_os in
10563 openbsd2.[89] | openbsd2.[89].*)
10564 shlibpath_overrides_runpath=no
10565 ;;
10566 *)
10567 shlibpath_overrides_runpath=yes
10568 ;;
10569 esac
10570 else
10571 shlibpath_overrides_runpath=yes
10572 fi
10573 ;;
10574
10575 os2*)
10576 libname_spec='$name'
10577 shrext_cmds=".dll"
10578 need_lib_prefix=no
10579 library_names_spec='$libname${shared_ext} $libname.a'
10580 dynamic_linker='OS/2 ld.exe'
10581 shlibpath_var=LIBPATH
10582 ;;
10583
10584 osf3* | osf4* | osf5*)
10585 version_type=osf
10586 need_lib_prefix=no
10587 need_version=no
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10593 ;;
10594
10595 rdos*)
10596 dynamic_linker=no
10597 ;;
10598
10599 solaris*)
10600 version_type=linux
10601 need_lib_prefix=no
10602 need_version=no
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=yes
10607 hardcode_into_libs=yes
10608 # ldd complains unless libraries are executable
10609 postinstall_cmds='chmod +x $lib'
10610 ;;
10611
10612 sunos4*)
10613 version_type=sunos
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 if test "$with_gnu_ld" = yes; then
10619 need_lib_prefix=no
10620 fi
10621 need_version=yes
10622 ;;
10623
10624 sysv4 | sysv4.3*)
10625 version_type=linux
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 case $host_vendor in
10630 sni)
10631 shlibpath_overrides_runpath=no
10632 need_lib_prefix=no
10633 runpath_var=LD_RUN_PATH
10634 ;;
10635 siemens)
10636 need_lib_prefix=no
10637 ;;
10638 motorola)
10639 need_lib_prefix=no
10640 need_version=no
10641 shlibpath_overrides_runpath=no
10642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10643 ;;
10644 esac
10645 ;;
10646
10647 sysv4*MP*)
10648 if test -d /usr/nec ;then
10649 version_type=linux
10650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10651 soname_spec='$libname${shared_ext}.$major'
10652 shlibpath_var=LD_LIBRARY_PATH
10653 fi
10654 ;;
10655
10656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10657 version_type=freebsd-elf
10658 need_lib_prefix=no
10659 need_version=no
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=yes
10664 hardcode_into_libs=yes
10665 if test "$with_gnu_ld" = yes; then
10666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10667 else
10668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10669 case $host_os in
10670 sco3.2v5*)
10671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10672 ;;
10673 esac
10674 fi
10675 sys_lib_dlsearch_path_spec='/usr/lib'
10676 ;;
10677
10678 tpf*)
10679 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10680 version_type=linux
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684 shlibpath_var=LD_LIBRARY_PATH
10685 shlibpath_overrides_runpath=no
10686 hardcode_into_libs=yes
10687 ;;
10688
10689 uts4*)
10690 version_type=linux
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 ;;
10695
10696 # Shared libraries for VwWorks, >= 7 only at this stage
10697 # and (fpic) still incompatible with "large" code models
10698 # in a few configurations. Only for RTP mode in any case,
10699 # and upon explicit request at configure time.
10700 vxworks7*)
10701 dynamic_linker=no
10702 case ${with_multisubdir}-${enable_shared} in
10703 *large*)
10704 ;;
10705 *mrtp*-yes)
10706 version_type=linux
10707 need_lib_prefix=no
10708 need_version=no
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 dynamic_linker="$host_os module_loader"
10712 ;;
10713 esac
10714 ;;
10715 *)
10716 dynamic_linker=no
10717 ;;
10718 esac
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10720 $as_echo "$dynamic_linker" >&6; }
10721 test "$dynamic_linker" = no && can_build_shared=no
10722
10723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10724 if test "$GCC" = yes; then
10725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10726 fi
10727
10728 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10729 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10730 fi
10731 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10732 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10733 fi
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10827 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10828 hardcode_action=
10829 if test -n "$hardcode_libdir_flag_spec" ||
10830 test -n "$runpath_var" ||
10831 test "X$hardcode_automatic" = "Xyes" ; then
10832
10833 # We can hardcode non-existent directories.
10834 if test "$hardcode_direct" != no &&
10835 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10836 # have to relink, otherwise we might link with an installed library
10837 # when we should be linking with a yet-to-be-installed one
10838 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10839 test "$hardcode_minus_L" != no; then
10840 # Linking always hardcodes the temporary library directory.
10841 hardcode_action=relink
10842 else
10843 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10844 hardcode_action=immediate
10845 fi
10846 else
10847 # We cannot hardcode anything, or else we can only hardcode existing
10848 # directories.
10849 hardcode_action=unsupported
10850 fi
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10852 $as_echo "$hardcode_action" >&6; }
10853
10854 if test "$hardcode_action" = relink ||
10855 test "$inherit_rpath" = yes; then
10856 # Fast installation is not supported
10857 enable_fast_install=no
10858 elif test "$shlibpath_overrides_runpath" = yes ||
10859 test "$enable_shared" = no; then
10860 # Fast installation is not necessary
10861 enable_fast_install=needless
10862 fi
10863
10864
10865
10866
10867
10868
10869 if test "x$enable_dlopen" != xyes; then
10870 enable_dlopen=unknown
10871 enable_dlopen_self=unknown
10872 enable_dlopen_self_static=unknown
10873 else
10874 lt_cv_dlopen=no
10875 lt_cv_dlopen_libs=
10876
10877 case $host_os in
10878 beos*)
10879 lt_cv_dlopen="load_add_on"
10880 lt_cv_dlopen_libs=
10881 lt_cv_dlopen_self=yes
10882 ;;
10883
10884 mingw* | pw32* | cegcc*)
10885 lt_cv_dlopen="LoadLibrary"
10886 lt_cv_dlopen_libs=
10887 ;;
10888
10889 cygwin*)
10890 lt_cv_dlopen="dlopen"
10891 lt_cv_dlopen_libs=
10892 ;;
10893
10894 darwin*)
10895 # if libdl is installed we need to link against it
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10897 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10898 if ${ac_cv_lib_dl_dlopen+:} false; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-ldl $LIBS"
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905
10906 /* Override any GCC internal prototype to avoid an error.
10907 Use char because int might match the return type of a GCC
10908 builtin and then its argument prototype would still apply. */
10909 #ifdef __cplusplus
10910 extern "C"
10911 #endif
10912 char dlopen ();
10913 int
10914 main ()
10915 {
10916 return dlopen ();
10917 ;
10918 return 0;
10919 }
10920 _ACEOF
10921 if ac_fn_c_try_link "$LINENO"; then :
10922 ac_cv_lib_dl_dlopen=yes
10923 else
10924 ac_cv_lib_dl_dlopen=no
10925 fi
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10928 LIBS=$ac_check_lib_save_LIBS
10929 fi
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10932 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10934 else
10935
10936 lt_cv_dlopen="dyld"
10937 lt_cv_dlopen_libs=
10938 lt_cv_dlopen_self=yes
10939
10940 fi
10941
10942 ;;
10943
10944 *)
10945 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10946 if test "x$ac_cv_func_shl_load" = xyes; then :
10947 lt_cv_dlopen="shl_load"
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10950 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10951 if ${ac_cv_lib_dld_shl_load+:} false; then :
10952 $as_echo_n "(cached) " >&6
10953 else
10954 ac_check_lib_save_LIBS=$LIBS
10955 LIBS="-ldld $LIBS"
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958
10959 /* Override any GCC internal prototype to avoid an error.
10960 Use char because int might match the return type of a GCC
10961 builtin and then its argument prototype would still apply. */
10962 #ifdef __cplusplus
10963 extern "C"
10964 #endif
10965 char shl_load ();
10966 int
10967 main ()
10968 {
10969 return shl_load ();
10970 ;
10971 return 0;
10972 }
10973 _ACEOF
10974 if ac_fn_c_try_link "$LINENO"; then :
10975 ac_cv_lib_dld_shl_load=yes
10976 else
10977 ac_cv_lib_dld_shl_load=no
10978 fi
10979 rm -f core conftest.err conftest.$ac_objext \
10980 conftest$ac_exeext conftest.$ac_ext
10981 LIBS=$ac_check_lib_save_LIBS
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10984 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10985 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10986 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10987 else
10988 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10989 if test "x$ac_cv_func_dlopen" = xyes; then :
10990 lt_cv_dlopen="dlopen"
10991 else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10993 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10994 if ${ac_cv_lib_dl_dlopen+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 ac_check_lib_save_LIBS=$LIBS
10998 LIBS="-ldl $LIBS"
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11001
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char dlopen ();
11009 int
11010 main ()
11011 {
11012 return dlopen ();
11013 ;
11014 return 0;
11015 }
11016 _ACEOF
11017 if ac_fn_c_try_link "$LINENO"; then :
11018 ac_cv_lib_dl_dlopen=yes
11019 else
11020 ac_cv_lib_dl_dlopen=no
11021 fi
11022 rm -f core conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11024 LIBS=$ac_check_lib_save_LIBS
11025 fi
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11027 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11028 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11029 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11030 else
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11032 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11033 if ${ac_cv_lib_svld_dlopen+:} false; then :
11034 $as_echo_n "(cached) " >&6
11035 else
11036 ac_check_lib_save_LIBS=$LIBS
11037 LIBS="-lsvld $LIBS"
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h. */
11040
11041 /* Override any GCC internal prototype to avoid an error.
11042 Use char because int might match the return type of a GCC
11043 builtin and then its argument prototype would still apply. */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 char dlopen ();
11048 int
11049 main ()
11050 {
11051 return dlopen ();
11052 ;
11053 return 0;
11054 }
11055 _ACEOF
11056 if ac_fn_c_try_link "$LINENO"; then :
11057 ac_cv_lib_svld_dlopen=yes
11058 else
11059 ac_cv_lib_svld_dlopen=no
11060 fi
11061 rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063 LIBS=$ac_check_lib_save_LIBS
11064 fi
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11066 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11067 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11069 else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11071 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11072 if ${ac_cv_lib_dld_dld_link+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 ac_check_lib_save_LIBS=$LIBS
11076 LIBS="-ldld $LIBS"
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 char dld_link ();
11087 int
11088 main ()
11089 {
11090 return dld_link ();
11091 ;
11092 return 0;
11093 }
11094 _ACEOF
11095 if ac_fn_c_try_link "$LINENO"; then :
11096 ac_cv_lib_dld_dld_link=yes
11097 else
11098 ac_cv_lib_dld_dld_link=no
11099 fi
11100 rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11105 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11106 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11107 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11108 fi
11109
11110
11111 fi
11112
11113
11114 fi
11115
11116
11117 fi
11118
11119
11120 fi
11121
11122
11123 fi
11124
11125 ;;
11126 esac
11127
11128 if test "x$lt_cv_dlopen" != xno; then
11129 enable_dlopen=yes
11130 else
11131 enable_dlopen=no
11132 fi
11133
11134 case $lt_cv_dlopen in
11135 dlopen)
11136 save_CPPFLAGS="$CPPFLAGS"
11137 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11138
11139 save_LDFLAGS="$LDFLAGS"
11140 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11141
11142 save_LIBS="$LIBS"
11143 LIBS="$lt_cv_dlopen_libs $LIBS"
11144
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11146 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11147 if ${lt_cv_dlopen_self+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 if test "$cross_compiling" = yes; then :
11151 lt_cv_dlopen_self=cross
11152 else
11153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11154 lt_status=$lt_dlunknown
11155 cat > conftest.$ac_ext <<_LT_EOF
11156 #line 11156 "configure"
11157 #include "confdefs.h"
11158
11159 #if HAVE_DLFCN_H
11160 #include <dlfcn.h>
11161 #endif
11162
11163 #include <stdio.h>
11164
11165 #ifdef RTLD_GLOBAL
11166 # define LT_DLGLOBAL RTLD_GLOBAL
11167 #else
11168 # ifdef DL_GLOBAL
11169 # define LT_DLGLOBAL DL_GLOBAL
11170 # else
11171 # define LT_DLGLOBAL 0
11172 # endif
11173 #endif
11174
11175 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11176 find out it does not work in some platform. */
11177 #ifndef LT_DLLAZY_OR_NOW
11178 # ifdef RTLD_LAZY
11179 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11180 # else
11181 # ifdef DL_LAZY
11182 # define LT_DLLAZY_OR_NOW DL_LAZY
11183 # else
11184 # ifdef RTLD_NOW
11185 # define LT_DLLAZY_OR_NOW RTLD_NOW
11186 # else
11187 # ifdef DL_NOW
11188 # define LT_DLLAZY_OR_NOW DL_NOW
11189 # else
11190 # define LT_DLLAZY_OR_NOW 0
11191 # endif
11192 # endif
11193 # endif
11194 # endif
11195 #endif
11196
11197 /* When -fvisbility=hidden is used, assume the code has been annotated
11198 correspondingly for the symbols needed. */
11199 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11200 void fnord () __attribute__((visibility("default")));
11201 #endif
11202
11203 void fnord () { int i=42; }
11204 int main ()
11205 {
11206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11207 int status = $lt_dlunknown;
11208
11209 if (self)
11210 {
11211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11212 else
11213 {
11214 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11215 else puts (dlerror ());
11216 }
11217 /* dlclose (self); */
11218 }
11219 else
11220 puts (dlerror ());
11221
11222 return status;
11223 }
11224 _LT_EOF
11225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11226 (eval $ac_link) 2>&5
11227 ac_status=$?
11228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11229 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11230 (./conftest; exit; ) >&5 2>/dev/null
11231 lt_status=$?
11232 case x$lt_status in
11233 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11234 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11235 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11236 esac
11237 else :
11238 # compilation failed
11239 lt_cv_dlopen_self=no
11240 fi
11241 fi
11242 rm -fr conftest*
11243
11244
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11247 $as_echo "$lt_cv_dlopen_self" >&6; }
11248
11249 if test "x$lt_cv_dlopen_self" = xyes; then
11250 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11252 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11253 if ${lt_cv_dlopen_self_static+:} false; then :
11254 $as_echo_n "(cached) " >&6
11255 else
11256 if test "$cross_compiling" = yes; then :
11257 lt_cv_dlopen_self_static=cross
11258 else
11259 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11260 lt_status=$lt_dlunknown
11261 cat > conftest.$ac_ext <<_LT_EOF
11262 #line 11262 "configure"
11263 #include "confdefs.h"
11264
11265 #if HAVE_DLFCN_H
11266 #include <dlfcn.h>
11267 #endif
11268
11269 #include <stdio.h>
11270
11271 #ifdef RTLD_GLOBAL
11272 # define LT_DLGLOBAL RTLD_GLOBAL
11273 #else
11274 # ifdef DL_GLOBAL
11275 # define LT_DLGLOBAL DL_GLOBAL
11276 # else
11277 # define LT_DLGLOBAL 0
11278 # endif
11279 #endif
11280
11281 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11282 find out it does not work in some platform. */
11283 #ifndef LT_DLLAZY_OR_NOW
11284 # ifdef RTLD_LAZY
11285 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11286 # else
11287 # ifdef DL_LAZY
11288 # define LT_DLLAZY_OR_NOW DL_LAZY
11289 # else
11290 # ifdef RTLD_NOW
11291 # define LT_DLLAZY_OR_NOW RTLD_NOW
11292 # else
11293 # ifdef DL_NOW
11294 # define LT_DLLAZY_OR_NOW DL_NOW
11295 # else
11296 # define LT_DLLAZY_OR_NOW 0
11297 # endif
11298 # endif
11299 # endif
11300 # endif
11301 #endif
11302
11303 /* When -fvisbility=hidden is used, assume the code has been annotated
11304 correspondingly for the symbols needed. */
11305 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11306 void fnord () __attribute__((visibility("default")));
11307 #endif
11308
11309 void fnord () { int i=42; }
11310 int main ()
11311 {
11312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11313 int status = $lt_dlunknown;
11314
11315 if (self)
11316 {
11317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11318 else
11319 {
11320 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11321 else puts (dlerror ());
11322 }
11323 /* dlclose (self); */
11324 }
11325 else
11326 puts (dlerror ());
11327
11328 return status;
11329 }
11330 _LT_EOF
11331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11332 (eval $ac_link) 2>&5
11333 ac_status=$?
11334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11335 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11336 (./conftest; exit; ) >&5 2>/dev/null
11337 lt_status=$?
11338 case x$lt_status in
11339 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11340 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11341 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11342 esac
11343 else :
11344 # compilation failed
11345 lt_cv_dlopen_self_static=no
11346 fi
11347 fi
11348 rm -fr conftest*
11349
11350
11351 fi
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11353 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11354 fi
11355
11356 CPPFLAGS="$save_CPPFLAGS"
11357 LDFLAGS="$save_LDFLAGS"
11358 LIBS="$save_LIBS"
11359 ;;
11360 esac
11361
11362 case $lt_cv_dlopen_self in
11363 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11364 *) enable_dlopen_self=unknown ;;
11365 esac
11366
11367 case $lt_cv_dlopen_self_static in
11368 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11369 *) enable_dlopen_self_static=unknown ;;
11370 esac
11371 fi
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389 striplib=
11390 old_striplib=
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11392 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11393 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11394 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11395 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11397 $as_echo "yes" >&6; }
11398 else
11399 # FIXME - insert some real tests, host_os isn't really good enough
11400 case $host_os in
11401 darwin*)
11402 if test -n "$STRIP" ; then
11403 striplib="$STRIP -x"
11404 old_striplib="$STRIP -S"
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11406 $as_echo "yes" >&6; }
11407 else
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11409 $as_echo "no" >&6; }
11410 fi
11411 ;;
11412 *)
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 ;;
11416 esac
11417 fi
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430 # Report which library types will actually be built
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11432 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11434 $as_echo "$can_build_shared" >&6; }
11435
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11437 $as_echo_n "checking whether to build shared libraries... " >&6; }
11438 test "$can_build_shared" = "no" && enable_shared=no
11439
11440 # On AIX, shared libraries and static libraries use the same namespace, and
11441 # are all built from PIC.
11442 case $host_os in
11443 aix3*)
11444 test "$enable_shared" = yes && enable_static=no
11445 if test -n "$RANLIB"; then
11446 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11447 postinstall_cmds='$RANLIB $lib'
11448 fi
11449 ;;
11450
11451 aix[4-9]*)
11452 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11453 test "$enable_shared" = yes && enable_static=no
11454 fi
11455 ;;
11456 esac
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11458 $as_echo "$enable_shared" >&6; }
11459
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11461 $as_echo_n "checking whether to build static libraries... " >&6; }
11462 # Make sure either enable_shared or enable_static is yes.
11463 test "$enable_shared" = yes || enable_static=yes
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11465 $as_echo "$enable_static" >&6; }
11466
11467
11468
11469
11470 fi
11471 ac_ext=c
11472 ac_cpp='$CPP $CPPFLAGS'
11473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11476
11477 CC="$lt_save_CC"
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491 ac_config_commands="$ac_config_commands libtool"
11492
11493
11494
11495
11496 # Only expand once:
11497
11498
11499
11500 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11501
11502 # The tests for host and target for $enable_largefile require
11503 # canonical names.
11504
11505
11506
11507 # As the $enable_largefile decision depends on --enable-plugins we must set it
11508 # even in directories otherwise not depending on the $plugins option.
11509
11510
11511 maybe_plugins=no
11512 for ac_header in dlfcn.h
11513 do :
11514 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11515 "
11516 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11517 cat >>confdefs.h <<_ACEOF
11518 #define HAVE_DLFCN_H 1
11519 _ACEOF
11520 maybe_plugins=yes
11521 fi
11522
11523 done
11524
11525 for ac_header in windows.h
11526 do :
11527 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11528 "
11529 if test "x$ac_cv_header_windows_h" = xyes; then :
11530 cat >>confdefs.h <<_ACEOF
11531 #define HAVE_WINDOWS_H 1
11532 _ACEOF
11533 maybe_plugins=yes
11534 fi
11535
11536 done
11537
11538
11539 # Check whether --enable-plugins was given.
11540 if test "${enable_plugins+set}" = set; then :
11541 enableval=$enable_plugins; case "${enableval}" in
11542 no) plugins=no ;;
11543 *) plugins=yes
11544 if test "$maybe_plugins" != "yes" ; then
11545 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11546 fi ;;
11547 esac
11548 else
11549 plugins=$maybe_plugins
11550
11551 fi
11552
11553 if test "$plugins" = "yes"; then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11555 $as_echo_n "checking for library containing dlsym... " >&6; }
11556 if ${ac_cv_search_dlsym+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 ac_func_search_save_LIBS=$LIBS
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562
11563 /* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char dlsym ();
11570 int
11571 main ()
11572 {
11573 return dlsym ();
11574 ;
11575 return 0;
11576 }
11577 _ACEOF
11578 for ac_lib in '' dl; do
11579 if test -z "$ac_lib"; then
11580 ac_res="none required"
11581 else
11582 ac_res=-l$ac_lib
11583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11584 fi
11585 if ac_fn_c_try_link "$LINENO"; then :
11586 ac_cv_search_dlsym=$ac_res
11587 fi
11588 rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext
11590 if ${ac_cv_search_dlsym+:} false; then :
11591 break
11592 fi
11593 done
11594 if ${ac_cv_search_dlsym+:} false; then :
11595
11596 else
11597 ac_cv_search_dlsym=no
11598 fi
11599 rm conftest.$ac_ext
11600 LIBS=$ac_func_search_save_LIBS
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11603 $as_echo "$ac_cv_search_dlsym" >&6; }
11604 ac_res=$ac_cv_search_dlsym
11605 if test "$ac_res" != no; then :
11606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11607
11608 fi
11609
11610 fi
11611
11612
11613 case "${host}" in
11614 sparc-*-solaris*|i?86-*-solaris*)
11615 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11616 # were mutually exclusive until Solaris 11.3. Without procfs support,
11617 # the bfd/ elf module cannot provide certain routines such as
11618 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11619 # explicitly requested large-file support through the
11620 # --enable-largefile switch, disable large-file support in favor of
11621 # procfs support.
11622 #
11623 # Check if <sys/procfs.h> is incompatible with large-file support.
11624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625 /* end confdefs.h. */
11626 #define _FILE_OFFSET_BITS 64
11627 #define _STRUCTURED_PROC 1
11628 #include <sys/procfs.h>
11629 int
11630 main ()
11631 {
11632
11633 ;
11634 return 0;
11635 }
11636 _ACEOF
11637 if ac_fn_c_try_compile "$LINENO"; then :
11638 acx_cv_procfs_lfs=yes
11639 else
11640 acx_cv_procfs_lfs=no
11641 fi
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 #
11644 # Forcefully disable large-file support only if necessary, gdb is in
11645 # tree and enabled.
11646 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11647 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11648 : ${enable_largefile="no"}
11649 if test "$plugins" = yes; then
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11651 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11652 $as_echo "$as_me: WARNING:
11653 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11654 plugins=no
11655 fi
11656 fi
11657 #
11658 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11659 # benefit of g++ 9+ which predefines it on Solaris.
11660 if test "$enable_largefile" = no; then
11661 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11662
11663 fi
11664 ;;
11665 esac
11666
11667 # Check whether --enable-largefile was given.
11668 if test "${enable_largefile+set}" = set; then :
11669 enableval=$enable_largefile;
11670 fi
11671
11672 if test "$enable_largefile" != no; then
11673
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11675 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11676 if ${ac_cv_sys_largefile_CC+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 ac_cv_sys_largefile_CC=no
11680 if test "$GCC" != yes; then
11681 ac_save_CC=$CC
11682 while :; do
11683 # IRIX 6.2 and later do not support large files by default,
11684 # so use the C compiler's -n32 option if that helps.
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687 #include <sys/types.h>
11688 /* Check that off_t can represent 2**63 - 1 correctly.
11689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11690 since some C++ compilers masquerading as C compilers
11691 incorrectly reject 9223372036854775807. */
11692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11694 && LARGE_OFF_T % 2147483647 == 1)
11695 ? 1 : -1];
11696 int
11697 main ()
11698 {
11699
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 if ac_fn_c_try_compile "$LINENO"; then :
11705 break
11706 fi
11707 rm -f core conftest.err conftest.$ac_objext
11708 CC="$CC -n32"
11709 if ac_fn_c_try_compile "$LINENO"; then :
11710 ac_cv_sys_largefile_CC=' -n32'; break
11711 fi
11712 rm -f core conftest.err conftest.$ac_objext
11713 break
11714 done
11715 CC=$ac_save_CC
11716 rm -f conftest.$ac_ext
11717 fi
11718 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11720 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11721 if test "$ac_cv_sys_largefile_CC" != no; then
11722 CC=$CC$ac_cv_sys_largefile_CC
11723 fi
11724
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11726 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11727 if ${ac_cv_sys_file_offset_bits+:} false; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 while :; do
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733 #include <sys/types.h>
11734 /* Check that off_t can represent 2**63 - 1 correctly.
11735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11736 since some C++ compilers masquerading as C compilers
11737 incorrectly reject 9223372036854775807. */
11738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11740 && LARGE_OFF_T % 2147483647 == 1)
11741 ? 1 : -1];
11742 int
11743 main ()
11744 {
11745
11746 ;
11747 return 0;
11748 }
11749 _ACEOF
11750 if ac_fn_c_try_compile "$LINENO"; then :
11751 ac_cv_sys_file_offset_bits=no; break
11752 fi
11753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 #define _FILE_OFFSET_BITS 64
11757 #include <sys/types.h>
11758 /* Check that off_t can represent 2**63 - 1 correctly.
11759 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11760 since some C++ compilers masquerading as C compilers
11761 incorrectly reject 9223372036854775807. */
11762 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11763 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11764 && LARGE_OFF_T % 2147483647 == 1)
11765 ? 1 : -1];
11766 int
11767 main ()
11768 {
11769
11770 ;
11771 return 0;
11772 }
11773 _ACEOF
11774 if ac_fn_c_try_compile "$LINENO"; then :
11775 ac_cv_sys_file_offset_bits=64; break
11776 fi
11777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11778 ac_cv_sys_file_offset_bits=unknown
11779 break
11780 done
11781 fi
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11783 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11784 case $ac_cv_sys_file_offset_bits in #(
11785 no | unknown) ;;
11786 *)
11787 cat >>confdefs.h <<_ACEOF
11788 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11789 _ACEOF
11790 ;;
11791 esac
11792 rm -rf conftest*
11793 if test $ac_cv_sys_file_offset_bits = unknown; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11795 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11796 if ${ac_cv_sys_large_files+:} false; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 while :; do
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11802 #include <sys/types.h>
11803 /* Check that off_t can represent 2**63 - 1 correctly.
11804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11805 since some C++ compilers masquerading as C compilers
11806 incorrectly reject 9223372036854775807. */
11807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11809 && LARGE_OFF_T % 2147483647 == 1)
11810 ? 1 : -1];
11811 int
11812 main ()
11813 {
11814
11815 ;
11816 return 0;
11817 }
11818 _ACEOF
11819 if ac_fn_c_try_compile "$LINENO"; then :
11820 ac_cv_sys_large_files=no; break
11821 fi
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825 #define _LARGE_FILES 1
11826 #include <sys/types.h>
11827 /* Check that off_t can represent 2**63 - 1 correctly.
11828 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11829 since some C++ compilers masquerading as C compilers
11830 incorrectly reject 9223372036854775807. */
11831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11833 && LARGE_OFF_T % 2147483647 == 1)
11834 ? 1 : -1];
11835 int
11836 main ()
11837 {
11838
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 if ac_fn_c_try_compile "$LINENO"; then :
11844 ac_cv_sys_large_files=1; break
11845 fi
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 ac_cv_sys_large_files=unknown
11848 break
11849 done
11850 fi
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11852 $as_echo "$ac_cv_sys_large_files" >&6; }
11853 case $ac_cv_sys_large_files in #(
11854 no | unknown) ;;
11855 *)
11856 cat >>confdefs.h <<_ACEOF
11857 #define _LARGE_FILES $ac_cv_sys_large_files
11858 _ACEOF
11859 ;;
11860 esac
11861 rm -rf conftest*
11862 fi
11863
11864
11865 fi
11866
11867
11868
11869 case "${target}" in
11870 *-*-*aout*| i[3-7]86-*-msdos* | ns32k-*-* | pdp11-*-*)
11871 if test "$plugins" = "yes"; then
11872 if test "${enable_plugins+set}" = set; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins for AOUT is experimental" >&5
11874 $as_echo "$as_me: WARNING: Enabling plugins for AOUT is experimental" >&2;}
11875 else
11876 plugins=no
11877 fi
11878 fi ;;
11879 esac
11880
11881 if test "$plugins" = "yes"; then
11882 PLUGINS_TRUE=
11883 PLUGINS_FALSE='#'
11884 else
11885 PLUGINS_TRUE='#'
11886 PLUGINS_FALSE=
11887 fi
11888
11889
11890 ac_checking=
11891 . ${srcdir}/development.sh
11892 test "$development" = true && ac_checking=yes
11893 # Check whether --enable-checking was given.
11894 if test "${enable_checking+set}" = set; then :
11895 enableval=$enable_checking; case "${enableval}" in
11896 no|none) ac_checking= ;;
11897 *) ac_checking=yes ;;
11898 esac
11899 fi
11900 if test x$ac_checking != x ; then
11901
11902 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11903
11904 fi
11905
11906 # Check whether --enable-64-bit-bfd was given.
11907 if test "${enable_64_bit_bfd+set}" = set; then :
11908 enableval=$enable_64_bit_bfd; case $enableval in #(
11909 yes|no) :
11910 ;; #(
11911 *) :
11912 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
11913 *) :
11914 ;;
11915 esac
11916 else
11917 enable_64_bit_bfd=no
11918 fi
11919
11920 if test $enable_64_bit_bfd = yes ; then
11921 want64=true
11922 else
11923 want64=false
11924 fi
11925
11926 # Check whether --enable-targets was given.
11927 if test "${enable_targets+set}" = set; then :
11928 enableval=$enable_targets; case "${enableval}" in
11929 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11930 ;;
11931 no) enable_targets= ;;
11932 *) enable_targets=$enableval ;;
11933 esac
11934 fi
11935
11936 # Check whether --enable-64_bit_archive was given.
11937 if test "${enable_64_bit_archive+set}" = set; then :
11938 enableval=$enable_64_bit_archive; case "${enableval}" in
11939 yes) want_64_bit_archive=true ;;
11940 no) want_64_bit_archive=false ;;
11941 *) as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
11942 esac
11943 else
11944 want_64_bit_archive=unset
11945 fi
11946
11947
11948 # Check whether --with-mmap was given.
11949 if test "${with_mmap+set}" = set; then :
11950 withval=$with_mmap; case "${withval}" in
11951 yes) want_mmap=true ;;
11952 no) want_mmap=false ;;
11953 *) as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
11954 esac
11955 else
11956 want_mmap=true
11957 fi
11958
11959 # Check whether --enable-secureplt was given.
11960 if test "${enable_secureplt+set}" = set; then :
11961 enableval=$enable_secureplt; case "${enableval}" in
11962 yes) use_secureplt=true ;;
11963 no) use_secureplt=false ;;
11964 *) as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
11965 esac
11966 else
11967 use_secureplt=true
11968 fi
11969 if test $use_secureplt = true; then
11970
11971 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
11972
11973 fi
11974
11975 # Decide if -z separate-code should be enabled in ELF linker by default.
11976 ac_default_ld_z_separate_code=unset
11977 # Check whether --enable-separate-code was given.
11978 if test "${enable_separate_code+set}" = set; then :
11979 enableval=$enable_separate_code; case "${enableval}" in
11980 yes) ac_default_ld_z_separate_code=1 ;;
11981 no) ac_default_ld_z_separate_code=0 ;;
11982 esac
11983 fi
11984
11985 # Enable -z separate-code by default for Linux/x86.
11986 case "${target}" in
11987 i[3-7]86-*-linux-* | x86_64-*-linux-*)
11988 if test ${ac_default_ld_z_separate_code} = unset; then
11989 ac_default_ld_z_separate_code=1
11990 fi
11991 ;;
11992 esac
11993 if test "${ac_default_ld_z_separate_code}" = unset; then
11994 ac_default_ld_z_separate_code=0
11995 fi
11996
11997 cat >>confdefs.h <<_ACEOF
11998 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
11999 _ACEOF
12000
12001
12002 # Check whether --enable-leading-mingw64-underscores was given.
12003 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12004 enableval=$enable_leading_mingw64_underscores;
12005 fi
12006
12007 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12008
12009 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12010
12011 fi
12012
12013 DEBUGDIR=${libdir}/debug
12014
12015 # Check whether --with-separate-debug-dir was given.
12016 if test "${with_separate_debug_dir+set}" = set; then :
12017 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12018 fi
12019
12020
12021
12022
12023
12024 # Check whether --with-pkgversion was given.
12025 if test "${with_pkgversion+set}" = set; then :
12026 withval=$with_pkgversion; case "$withval" in
12027 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
12028 no) PKGVERSION= ;;
12029 *) PKGVERSION="($withval) " ;;
12030 esac
12031 else
12032 PKGVERSION="(GNU Binutils) "
12033
12034 fi
12035
12036
12037
12038
12039
12040 # Check whether --with-bugurl was given.
12041 if test "${with_bugurl+set}" = set; then :
12042 withval=$with_bugurl; case "$withval" in
12043 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
12044 no) BUGURL=
12045 ;;
12046 *) BUGURL="$withval"
12047 ;;
12048 esac
12049 else
12050 BUGURL="https://sourceware.org/bugzilla/"
12051
12052 fi
12053
12054 case ${BUGURL} in
12055 "")
12056 REPORT_BUGS_TO=
12057 REPORT_BUGS_TEXI=
12058 ;;
12059 *)
12060 REPORT_BUGS_TO="<$BUGURL>"
12061 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12062 ;;
12063 esac;
12064
12065
12066
12067
12068
12069 # Set the 'development' global.
12070 . $srcdir/../bfd/development.sh
12071
12072 # Set acp_cpp_for_build variable
12073 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12074
12075 # Default set of GCC warnings to enable.
12076 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12077 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12078
12079 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 __GNUC__
12083 _ACEOF
12084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12085 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12086
12087 else
12088 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12089 fi
12090 rm -f conftest*
12091
12092
12093 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 __GNUC__
12097 _ACEOF
12098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12099 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12100
12101 else
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104 __clang__
12105 _ACEOF
12106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12107 $EGREP "^__clang__$" >/dev/null 2>&1; then :
12108 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12109 fi
12110 rm -f conftest*
12111
12112 fi
12113 rm -f conftest*
12114
12115
12116 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12117 WARN_WRITE_STRINGS=""
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120 __GNUC__
12121 _ACEOF
12122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12123 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12124
12125 else
12126 WARN_WRITE_STRINGS="-Wwrite-strings"
12127 fi
12128 rm -f conftest*
12129
12130
12131 # Verify CC_FOR_BUILD to be compatible with warning flags
12132
12133 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 __GNUC__
12137 _ACEOF
12138 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12139 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12140
12141 else
12142 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12143 fi
12144 rm -f conftest*
12145
12146
12147 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 __GNUC__
12151 _ACEOF
12152 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12153 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12154
12155 else
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158 __clang__
12159 _ACEOF
12160 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12161 $EGREP "^__clang__$" >/dev/null 2>&1; then :
12162 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12163 fi
12164 rm -f conftest*
12165
12166 fi
12167 rm -f conftest*
12168
12169
12170 # Check whether --enable-werror was given.
12171 if test "${enable_werror+set}" = set; then :
12172 enableval=$enable_werror; case "${enableval}" in
12173 yes | y) ERROR_ON_WARNING="yes" ;;
12174 no | n) ERROR_ON_WARNING="no" ;;
12175 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12176 esac
12177 fi
12178
12179
12180 # Disable -Wformat by default when using gcc on mingw
12181 case "${host}" in
12182 *-*-mingw32*)
12183 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12184 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12185 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12186 fi
12187 ;;
12188 *) ;;
12189 esac
12190
12191 # Enable -Werror by default when using gcc. Turn it off for releases.
12192 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12193 ERROR_ON_WARNING=yes
12194 fi
12195
12196 NO_WERROR=
12197 if test "${ERROR_ON_WARNING}" = yes ; then
12198 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12199 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12200 NO_WERROR="-Wno-error"
12201 fi
12202
12203 if test "${GCC}" = yes ; then
12204 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12205 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12206 fi
12207
12208 # Check whether --enable-build-warnings was given.
12209 if test "${enable_build_warnings+set}" = set; then :
12210 enableval=$enable_build_warnings; case "${enableval}" in
12211 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12212 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12213 no) if test "${GCC}" = yes ; then
12214 WARN_CFLAGS="-w"
12215 WARN_CFLAGS_FOR_BUILD="-w"
12216 fi;;
12217 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12218 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12219 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12220 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12221 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12222 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12223 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12224 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12225 esac
12226 fi
12227
12228
12229 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12230 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12231 fi
12232
12233
12234
12235
12236
12237
12238
12239 ac_config_headers="$ac_config_headers config.h:config.in"
12240
12241
12242 # PR 14072
12243
12244
12245 if test -z "$target" ; then
12246 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12247 fi
12248
12249
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12251 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12252 # Check whether --enable-maintainer-mode was given.
12253 if test "${enable_maintainer_mode+set}" = set; then :
12254 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12255 else
12256 USE_MAINTAINER_MODE=no
12257 fi
12258
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12260 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12261 if test $USE_MAINTAINER_MODE = yes; then
12262 MAINTAINER_MODE_TRUE=
12263 MAINTAINER_MODE_FALSE='#'
12264 else
12265 MAINTAINER_MODE_TRUE='#'
12266 MAINTAINER_MODE_FALSE=
12267 fi
12268
12269 MAINT=$MAINTAINER_MODE_TRUE
12270
12271
12272 if false; then
12273 GENINSRC_NEVER_TRUE=
12274 GENINSRC_NEVER_FALSE='#'
12275 else
12276 GENINSRC_NEVER_TRUE='#'
12277 GENINSRC_NEVER_FALSE=
12278 fi
12279
12280 case ${build_alias} in
12281 "") build_noncanonical=${build} ;;
12282 *) build_noncanonical=${build_alias} ;;
12283 esac
12284
12285 case ${host_alias} in
12286 "") host_noncanonical=${build_noncanonical} ;;
12287 *) host_noncanonical=${host_alias} ;;
12288 esac
12289
12290 case ${target_alias} in
12291 "") target_noncanonical=${host_noncanonical} ;;
12292 *) target_noncanonical=${target_alias} ;;
12293 esac
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12296 $as_echo_n "checking whether to install libbfd... " >&6; }
12297 # Check whether --enable-install-libbfd was given.
12298 if test "${enable_install_libbfd+set}" = set; then :
12299 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12300 else
12301 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12302 install_libbfd_p=yes
12303 else
12304 install_libbfd_p=no
12305 fi
12306 fi
12307
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12309 $as_echo "$install_libbfd_p" >&6; }
12310 if test $install_libbfd_p = yes; then
12311 INSTALL_LIBBFD_TRUE=
12312 INSTALL_LIBBFD_FALSE='#'
12313 else
12314 INSTALL_LIBBFD_TRUE='#'
12315 INSTALL_LIBBFD_FALSE=
12316 fi
12317
12318 # Need _noncanonical variables for this.
12319
12320
12321
12322
12323 # libbfd.a is a host library containing target dependent code
12324 bfdlibdir='$(libdir)'
12325 bfdincludedir='$(includedir)'
12326 if test "${host}" != "${target}"; then
12327 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12328 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12329 fi
12330
12331
12332
12333
12334
12335
12336
12337
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12339 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12340 if ${ac_cv_c_bigendian+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 ac_cv_c_bigendian=unknown
12344 # See if we're dealing with a universal compiler.
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12347 #ifndef __APPLE_CC__
12348 not a universal capable compiler
12349 #endif
12350 typedef int dummy;
12351
12352 _ACEOF
12353 if ac_fn_c_try_compile "$LINENO"; then :
12354
12355 # Check for potential -arch flags. It is not universal unless
12356 # there are at least two -arch flags with different values.
12357 ac_arch=
12358 ac_prev=
12359 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12360 if test -n "$ac_prev"; then
12361 case $ac_word in
12362 i?86 | x86_64 | ppc | ppc64)
12363 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12364 ac_arch=$ac_word
12365 else
12366 ac_cv_c_bigendian=universal
12367 break
12368 fi
12369 ;;
12370 esac
12371 ac_prev=
12372 elif test "x$ac_word" = "x-arch"; then
12373 ac_prev=arch
12374 fi
12375 done
12376 fi
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378 if test $ac_cv_c_bigendian = unknown; then
12379 # See if sys/param.h defines the BYTE_ORDER macro.
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12382 #include <sys/types.h>
12383 #include <sys/param.h>
12384
12385 int
12386 main ()
12387 {
12388 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12389 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12390 && LITTLE_ENDIAN)
12391 bogus endian macros
12392 #endif
12393
12394 ;
12395 return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_compile "$LINENO"; then :
12399 # It does; now see whether it defined to BIG_ENDIAN or not.
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402 #include <sys/types.h>
12403 #include <sys/param.h>
12404
12405 int
12406 main ()
12407 {
12408 #if BYTE_ORDER != BIG_ENDIAN
12409 not big endian
12410 #endif
12411
12412 ;
12413 return 0;
12414 }
12415 _ACEOF
12416 if ac_fn_c_try_compile "$LINENO"; then :
12417 ac_cv_c_bigendian=yes
12418 else
12419 ac_cv_c_bigendian=no
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422 fi
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 fi
12425 if test $ac_cv_c_bigendian = unknown; then
12426 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429 #include <limits.h>
12430
12431 int
12432 main ()
12433 {
12434 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12435 bogus endian macros
12436 #endif
12437
12438 ;
12439 return 0;
12440 }
12441 _ACEOF
12442 if ac_fn_c_try_compile "$LINENO"; then :
12443 # It does; now see whether it defined to _BIG_ENDIAN or not.
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446 #include <limits.h>
12447
12448 int
12449 main ()
12450 {
12451 #ifndef _BIG_ENDIAN
12452 not big endian
12453 #endif
12454
12455 ;
12456 return 0;
12457 }
12458 _ACEOF
12459 if ac_fn_c_try_compile "$LINENO"; then :
12460 ac_cv_c_bigendian=yes
12461 else
12462 ac_cv_c_bigendian=no
12463 fi
12464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12465 fi
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 fi
12468 if test $ac_cv_c_bigendian = unknown; then
12469 # Compile a test program.
12470 if test "$cross_compiling" = yes; then :
12471 # Try to guess by grepping values from an object file.
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12474 short int ascii_mm[] =
12475 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12476 short int ascii_ii[] =
12477 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12478 int use_ascii (int i) {
12479 return ascii_mm[i] + ascii_ii[i];
12480 }
12481 short int ebcdic_ii[] =
12482 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12483 short int ebcdic_mm[] =
12484 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12485 int use_ebcdic (int i) {
12486 return ebcdic_mm[i] + ebcdic_ii[i];
12487 }
12488 extern int foo;
12489
12490 int
12491 main ()
12492 {
12493 return use_ascii (foo) == use_ebcdic (foo);
12494 ;
12495 return 0;
12496 }
12497 _ACEOF
12498 if ac_fn_c_try_compile "$LINENO"; then :
12499 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12500 ac_cv_c_bigendian=yes
12501 fi
12502 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12503 if test "$ac_cv_c_bigendian" = unknown; then
12504 ac_cv_c_bigendian=no
12505 else
12506 # finding both strings is unlikely to happen, but who knows?
12507 ac_cv_c_bigendian=unknown
12508 fi
12509 fi
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 $ac_includes_default
12516 int
12517 main ()
12518 {
12519
12520 /* Are we little or big endian? From Harbison&Steele. */
12521 union
12522 {
12523 long int l;
12524 char c[sizeof (long int)];
12525 } u;
12526 u.l = 1;
12527 return u.c[sizeof (long int) - 1] == 1;
12528
12529 ;
12530 return 0;
12531 }
12532 _ACEOF
12533 if ac_fn_c_try_run "$LINENO"; then :
12534 ac_cv_c_bigendian=no
12535 else
12536 ac_cv_c_bigendian=yes
12537 fi
12538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12539 conftest.$ac_objext conftest.beam conftest.$ac_ext
12540 fi
12541
12542 fi
12543 fi
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12545 $as_echo "$ac_cv_c_bigendian" >&6; }
12546 case $ac_cv_c_bigendian in #(
12547 yes)
12548 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12549 ;; #(
12550 no)
12551 ;; #(
12552 universal)
12553
12554 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12555
12556 ;; #(
12557 *)
12558 as_fn_error $? "unknown endianness
12559 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12560 esac
12561
12562
12563 host64=false
12564 target64=false
12565 bfd_default_target_size=32
12566
12567 # host stuff:
12568
12569 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
12570
12571 MKINSTALLDIRS=
12572 if test -n "$ac_aux_dir"; then
12573 case "$ac_aux_dir" in
12574 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12575 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12576 esac
12577 fi
12578 if test -z "$MKINSTALLDIRS"; then
12579 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12580 fi
12581
12582
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12585 $as_echo_n "checking whether NLS is requested... " >&6; }
12586 # Check whether --enable-nls was given.
12587 if test "${enable_nls+set}" = set; then :
12588 enableval=$enable_nls; USE_NLS=$enableval
12589 else
12590 USE_NLS=yes
12591 fi
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12594 $as_echo "$USE_NLS" >&6; }
12595
12596
12597
12598
12599
12600
12601 # Prepare PATH_SEPARATOR.
12602 # The user is always right.
12603 if test "${PATH_SEPARATOR+set}" != set; then
12604 echo "#! /bin/sh" >conf$$.sh
12605 echo "exit 0" >>conf$$.sh
12606 chmod +x conf$$.sh
12607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12608 PATH_SEPARATOR=';'
12609 else
12610 PATH_SEPARATOR=:
12611 fi
12612 rm -f conf$$.sh
12613 fi
12614
12615 # Find out how to test for executable files. Don't use a zero-byte file,
12616 # as systems may use methods other than mode bits to determine executability.
12617 cat >conf$$.file <<_ASEOF
12618 #! /bin/sh
12619 exit 0
12620 _ASEOF
12621 chmod +x conf$$.file
12622 if test -x conf$$.file >/dev/null 2>&1; then
12623 ac_executable_p="test -x"
12624 else
12625 ac_executable_p="test -f"
12626 fi
12627 rm -f conf$$.file
12628
12629 # Extract the first word of "msgfmt", so it can be a program name with args.
12630 set dummy msgfmt; ac_word=$2
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 $as_echo_n "checking for $ac_word... " >&6; }
12633 if ${ac_cv_path_MSGFMT+:} false; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12636 case "$MSGFMT" in
12637 [\\/]* | ?:[\\/]*)
12638 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12639 ;;
12640 *)
12641 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12642 for ac_dir in $PATH; do
12643 IFS="$ac_save_IFS"
12644 test -z "$ac_dir" && ac_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12647 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12648 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12649 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12650 break 2
12651 fi
12652 fi
12653 done
12654 done
12655 IFS="$ac_save_IFS"
12656 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12657 ;;
12658 esac
12659 fi
12660 MSGFMT="$ac_cv_path_MSGFMT"
12661 if test "$MSGFMT" != ":"; then
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12663 $as_echo "$MSGFMT" >&6; }
12664 else
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 $as_echo "no" >&6; }
12667 fi
12668
12669 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12670 set dummy gmsgfmt; ac_word=$2
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if ${ac_cv_path_GMSGFMT+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 case $GMSGFMT in
12677 [\\/]* | ?:[\\/]*)
12678 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12679 ;;
12680 *)
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in $PATH
12683 do
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12688 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 break 2
12691 fi
12692 done
12693 done
12694 IFS=$as_save_IFS
12695
12696 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12697 ;;
12698 esac
12699 fi
12700 GMSGFMT=$ac_cv_path_GMSGFMT
12701 if test -n "$GMSGFMT"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12703 $as_echo "$GMSGFMT" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12707 fi
12708
12709
12710
12711
12712 # Prepare PATH_SEPARATOR.
12713 # The user is always right.
12714 if test "${PATH_SEPARATOR+set}" != set; then
12715 echo "#! /bin/sh" >conf$$.sh
12716 echo "exit 0" >>conf$$.sh
12717 chmod +x conf$$.sh
12718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12719 PATH_SEPARATOR=';'
12720 else
12721 PATH_SEPARATOR=:
12722 fi
12723 rm -f conf$$.sh
12724 fi
12725
12726 # Find out how to test for executable files. Don't use a zero-byte file,
12727 # as systems may use methods other than mode bits to determine executability.
12728 cat >conf$$.file <<_ASEOF
12729 #! /bin/sh
12730 exit 0
12731 _ASEOF
12732 chmod +x conf$$.file
12733 if test -x conf$$.file >/dev/null 2>&1; then
12734 ac_executable_p="test -x"
12735 else
12736 ac_executable_p="test -f"
12737 fi
12738 rm -f conf$$.file
12739
12740 # Extract the first word of "xgettext", so it can be a program name with args.
12741 set dummy xgettext; ac_word=$2
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743 $as_echo_n "checking for $ac_word... " >&6; }
12744 if ${ac_cv_path_XGETTEXT+:} false; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 case "$XGETTEXT" in
12748 [\\/]* | ?:[\\/]*)
12749 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12750 ;;
12751 *)
12752 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12753 for ac_dir in $PATH; do
12754 IFS="$ac_save_IFS"
12755 test -z "$ac_dir" && ac_dir=.
12756 for ac_exec_ext in '' $ac_executable_extensions; do
12757 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12758 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12759 (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
12760 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12761 break 2
12762 fi
12763 fi
12764 done
12765 done
12766 IFS="$ac_save_IFS"
12767 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12768 ;;
12769 esac
12770 fi
12771 XGETTEXT="$ac_cv_path_XGETTEXT"
12772 if test "$XGETTEXT" != ":"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12774 $as_echo "$XGETTEXT" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 fi
12779
12780 rm -f messages.po
12781
12782
12783 # Prepare PATH_SEPARATOR.
12784 # The user is always right.
12785 if test "${PATH_SEPARATOR+set}" != set; then
12786 echo "#! /bin/sh" >conf$$.sh
12787 echo "exit 0" >>conf$$.sh
12788 chmod +x conf$$.sh
12789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12790 PATH_SEPARATOR=';'
12791 else
12792 PATH_SEPARATOR=:
12793 fi
12794 rm -f conf$$.sh
12795 fi
12796
12797 # Find out how to test for executable files. Don't use a zero-byte file,
12798 # as systems may use methods other than mode bits to determine executability.
12799 cat >conf$$.file <<_ASEOF
12800 #! /bin/sh
12801 exit 0
12802 _ASEOF
12803 chmod +x conf$$.file
12804 if test -x conf$$.file >/dev/null 2>&1; then
12805 ac_executable_p="test -x"
12806 else
12807 ac_executable_p="test -f"
12808 fi
12809 rm -f conf$$.file
12810
12811 # Extract the first word of "msgmerge", so it can be a program name with args.
12812 set dummy msgmerge; ac_word=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if ${ac_cv_path_MSGMERGE+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 case "$MSGMERGE" in
12819 [\\/]* | ?:[\\/]*)
12820 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12821 ;;
12822 *)
12823 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12824 for ac_dir in $PATH; do
12825 IFS="$ac_save_IFS"
12826 test -z "$ac_dir" && ac_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12829 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12830 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12831 break 2
12832 fi
12833 fi
12834 done
12835 done
12836 IFS="$ac_save_IFS"
12837 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12838 ;;
12839 esac
12840 fi
12841 MSGMERGE="$ac_cv_path_MSGMERGE"
12842 if test "$MSGMERGE" != ":"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12844 $as_echo "$MSGMERGE" >&6; }
12845 else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12848 fi
12849
12850
12851 if test "$GMSGFMT" != ":"; then
12852 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12853 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12854 : ;
12855 else
12856 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12858 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12859 GMSGFMT=":"
12860 fi
12861 fi
12862
12863 if test "$XGETTEXT" != ":"; then
12864 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12865 (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
12866 : ;
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12869 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12870 XGETTEXT=":"
12871 fi
12872 rm -f messages.po
12873 fi
12874
12875 ac_config_commands="$ac_config_commands default-1"
12876
12877
12878
12879 if test "X$prefix" = "XNONE"; then
12880 acl_final_prefix="$ac_default_prefix"
12881 else
12882 acl_final_prefix="$prefix"
12883 fi
12884 if test "X$exec_prefix" = "XNONE"; then
12885 acl_final_exec_prefix='${prefix}'
12886 else
12887 acl_final_exec_prefix="$exec_prefix"
12888 fi
12889 acl_save_prefix="$prefix"
12890 prefix="$acl_final_prefix"
12891 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12892 prefix="$acl_save_prefix"
12893
12894
12895 # Check whether --with-gnu-ld was given.
12896 if test "${with_gnu_ld+set}" = set; then :
12897 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12898 else
12899 with_gnu_ld=no
12900 fi
12901
12902 # Prepare PATH_SEPARATOR.
12903 # The user is always right.
12904 if test "${PATH_SEPARATOR+set}" != set; then
12905 echo "#! /bin/sh" >conf$$.sh
12906 echo "exit 0" >>conf$$.sh
12907 chmod +x conf$$.sh
12908 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12909 PATH_SEPARATOR=';'
12910 else
12911 PATH_SEPARATOR=:
12912 fi
12913 rm -f conf$$.sh
12914 fi
12915 ac_prog=ld
12916 if test "$GCC" = yes; then
12917 # Check if gcc -print-prog-name=ld gives a path.
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12919 $as_echo_n "checking for ld used by GCC... " >&6; }
12920 case $host in
12921 *-*-mingw*)
12922 # gcc leaves a trailing carriage return which upsets mingw
12923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12924 *)
12925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12926 esac
12927 case $ac_prog in
12928 # Accept absolute paths.
12929 [\\/]* | [A-Za-z]:[\\/]*)
12930 re_direlt='/[^/][^/]*/\.\./'
12931 # Canonicalize the path of ld
12932 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12933 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12934 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12935 done
12936 test -z "$LD" && LD="$ac_prog"
12937 ;;
12938 "")
12939 # If it fails, then pretend we aren't using GCC.
12940 ac_prog=ld
12941 ;;
12942 *)
12943 # If it is relative, then search for the first ld in PATH.
12944 with_gnu_ld=unknown
12945 ;;
12946 esac
12947 elif test "$with_gnu_ld" = yes; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12949 $as_echo_n "checking for GNU ld... " >&6; }
12950 else
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12952 $as_echo_n "checking for non-GNU ld... " >&6; }
12953 fi
12954 if ${acl_cv_path_LD+:} false; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 if test -z "$LD"; then
12958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12959 for ac_dir in $PATH; do
12960 test -z "$ac_dir" && ac_dir=.
12961 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12962 acl_cv_path_LD="$ac_dir/$ac_prog"
12963 # Check to see if the program is GNU ld. I'd rather use --version,
12964 # but apparently some GNU ld's only accept -v.
12965 # Break only if it was the GNU/non-GNU ld that we prefer.
12966 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
12967 test "$with_gnu_ld" != no && break
12968 else
12969 test "$with_gnu_ld" != yes && break
12970 fi
12971 fi
12972 done
12973 IFS="$ac_save_ifs"
12974 else
12975 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12976 fi
12977 fi
12978
12979 LD="$acl_cv_path_LD"
12980 if test -n "$LD"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12982 $as_echo "$LD" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12986 fi
12987 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12989 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12990 if ${acl_cv_prog_gnu_ld+:} false; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12994 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
12995 acl_cv_prog_gnu_ld=yes
12996 else
12997 acl_cv_prog_gnu_ld=no
12998 fi
12999 fi
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13001 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13002 with_gnu_ld=$acl_cv_prog_gnu_ld
13003
13004
13005
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13007 $as_echo_n "checking for shared library run path origin... " >&6; }
13008 if ${acl_cv_rpath+:} false; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011
13012 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13013 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13014 . ./conftest.sh
13015 rm -f ./conftest.sh
13016 acl_cv_rpath=done
13017
13018 fi
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13020 $as_echo "$acl_cv_rpath" >&6; }
13021 wl="$acl_cv_wl"
13022 libext="$acl_cv_libext"
13023 shlibext="$acl_cv_shlibext"
13024 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13025 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13026 hardcode_direct="$acl_cv_hardcode_direct"
13027 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13028 # Check whether --enable-rpath was given.
13029 if test "${enable_rpath+set}" = set; then :
13030 enableval=$enable_rpath; :
13031 else
13032 enable_rpath=yes
13033 fi
13034
13035
13036
13037
13038
13039
13040
13041
13042 use_additional=yes
13043
13044 acl_save_prefix="$prefix"
13045 prefix="$acl_final_prefix"
13046 acl_save_exec_prefix="$exec_prefix"
13047 exec_prefix="$acl_final_exec_prefix"
13048
13049 eval additional_includedir=\"$includedir\"
13050 eval additional_libdir=\"$libdir\"
13051
13052 exec_prefix="$acl_save_exec_prefix"
13053 prefix="$acl_save_prefix"
13054
13055
13056 # Check whether --with-libiconv-prefix was given.
13057 if test "${with_libiconv_prefix+set}" = set; then :
13058 withval=$with_libiconv_prefix;
13059 if test "X$withval" = "Xno"; then
13060 use_additional=no
13061 else
13062 if test "X$withval" = "X"; then
13063
13064 acl_save_prefix="$prefix"
13065 prefix="$acl_final_prefix"
13066 acl_save_exec_prefix="$exec_prefix"
13067 exec_prefix="$acl_final_exec_prefix"
13068
13069 eval additional_includedir=\"$includedir\"
13070 eval additional_libdir=\"$libdir\"
13071
13072 exec_prefix="$acl_save_exec_prefix"
13073 prefix="$acl_save_prefix"
13074
13075 else
13076 additional_includedir="$withval/include"
13077 additional_libdir="$withval/lib"
13078 fi
13079 fi
13080
13081 fi
13082
13083
13084 # Check whether --with-libiconv-type was given.
13085 if test "${with_libiconv_type+set}" = set; then :
13086 withval=$with_libiconv_type; with_libiconv_type=$withval
13087 else
13088 with_libiconv_type=auto
13089 fi
13090
13091 lib_type=`eval echo \$with_libiconv_type`
13092
13093 LIBICONV=
13094 LTLIBICONV=
13095 INCICONV=
13096 rpathdirs=
13097 ltrpathdirs=
13098 names_already_handled=
13099 names_next_round='iconv '
13100 while test -n "$names_next_round"; do
13101 names_this_round="$names_next_round"
13102 names_next_round=
13103 for name in $names_this_round; do
13104 already_handled=
13105 for n in $names_already_handled; do
13106 if test "$n" = "$name"; then
13107 already_handled=yes
13108 break
13109 fi
13110 done
13111 if test -z "$already_handled"; then
13112 names_already_handled="$names_already_handled $name"
13113 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13114 eval value=\"\$HAVE_LIB$uppername\"
13115 if test -n "$value"; then
13116 if test "$value" = yes; then
13117 eval value=\"\$LIB$uppername\"
13118 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13119 eval value=\"\$LTLIB$uppername\"
13120 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13121 else
13122 :
13123 fi
13124 else
13125 found_dir=
13126 found_la=
13127 found_so=
13128 found_a=
13129 if test $use_additional = yes; then
13130 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13131 found_dir="$additional_libdir"
13132 found_so="$additional_libdir/lib$name.$shlibext"
13133 if test -f "$additional_libdir/lib$name.la"; then
13134 found_la="$additional_libdir/lib$name.la"
13135 fi
13136 elif test x$lib_type != xshared; then
13137 if test -f "$additional_libdir/lib$name.$libext"; then
13138 found_dir="$additional_libdir"
13139 found_a="$additional_libdir/lib$name.$libext"
13140 if test -f "$additional_libdir/lib$name.la"; then
13141 found_la="$additional_libdir/lib$name.la"
13142 fi
13143 fi
13144 fi
13145 fi
13146 if test "X$found_dir" = "X"; then
13147 for x in $LDFLAGS $LTLIBICONV; do
13148
13149 acl_save_prefix="$prefix"
13150 prefix="$acl_final_prefix"
13151 acl_save_exec_prefix="$exec_prefix"
13152 exec_prefix="$acl_final_exec_prefix"
13153 eval x=\"$x\"
13154 exec_prefix="$acl_save_exec_prefix"
13155 prefix="$acl_save_prefix"
13156
13157 case "$x" in
13158 -L*)
13159 dir=`echo "X$x" | sed -e 's/^X-L//'`
13160 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13161 found_dir="$dir"
13162 found_so="$dir/lib$name.$shlibext"
13163 if test -f "$dir/lib$name.la"; then
13164 found_la="$dir/lib$name.la"
13165 fi
13166 elif test x$lib_type != xshared; then
13167 if test -f "$dir/lib$name.$libext"; then
13168 found_dir="$dir"
13169 found_a="$dir/lib$name.$libext"
13170 if test -f "$dir/lib$name.la"; then
13171 found_la="$dir/lib$name.la"
13172 fi
13173 fi
13174 fi
13175 ;;
13176 esac
13177 if test "X$found_dir" != "X"; then
13178 break
13179 fi
13180 done
13181 fi
13182 if test "X$found_dir" != "X"; then
13183 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13184 if test "X$found_so" != "X"; then
13185 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13186 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13187 else
13188 haveit=
13189 for x in $ltrpathdirs; do
13190 if test "X$x" = "X$found_dir"; then
13191 haveit=yes
13192 break
13193 fi
13194 done
13195 if test -z "$haveit"; then
13196 ltrpathdirs="$ltrpathdirs $found_dir"
13197 fi
13198 if test "$hardcode_direct" = yes; then
13199 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13200 else
13201 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13202 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13203 haveit=
13204 for x in $rpathdirs; do
13205 if test "X$x" = "X$found_dir"; then
13206 haveit=yes
13207 break
13208 fi
13209 done
13210 if test -z "$haveit"; then
13211 rpathdirs="$rpathdirs $found_dir"
13212 fi
13213 else
13214 haveit=
13215 for x in $LDFLAGS $LIBICONV; do
13216
13217 acl_save_prefix="$prefix"
13218 prefix="$acl_final_prefix"
13219 acl_save_exec_prefix="$exec_prefix"
13220 exec_prefix="$acl_final_exec_prefix"
13221 eval x=\"$x\"
13222 exec_prefix="$acl_save_exec_prefix"
13223 prefix="$acl_save_prefix"
13224
13225 if test "X$x" = "X-L$found_dir"; then
13226 haveit=yes
13227 break
13228 fi
13229 done
13230 if test -z "$haveit"; then
13231 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13232 fi
13233 if test "$hardcode_minus_L" != no; then
13234 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13235 else
13236 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13237 fi
13238 fi
13239 fi
13240 fi
13241 else
13242 if test "X$found_a" != "X"; then
13243 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13244 else
13245 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13246 fi
13247 fi
13248 additional_includedir=
13249 case "$found_dir" in
13250 */lib | */lib/)
13251 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13252 additional_includedir="$basedir/include"
13253 ;;
13254 esac
13255 if test "X$additional_includedir" != "X"; then
13256 if test "X$additional_includedir" != "X/usr/include"; then
13257 haveit=
13258 if test "X$additional_includedir" = "X/usr/local/include"; then
13259 if test -n "$GCC"; then
13260 case $host_os in
13261 linux*) haveit=yes;;
13262 esac
13263 fi
13264 fi
13265 if test -z "$haveit"; then
13266 for x in $CPPFLAGS $INCICONV; do
13267
13268 acl_save_prefix="$prefix"
13269 prefix="$acl_final_prefix"
13270 acl_save_exec_prefix="$exec_prefix"
13271 exec_prefix="$acl_final_exec_prefix"
13272 eval x=\"$x\"
13273 exec_prefix="$acl_save_exec_prefix"
13274 prefix="$acl_save_prefix"
13275
13276 if test "X$x" = "X-I$additional_includedir"; then
13277 haveit=yes
13278 break
13279 fi
13280 done
13281 if test -z "$haveit"; then
13282 if test -d "$additional_includedir"; then
13283 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13284 fi
13285 fi
13286 fi
13287 fi
13288 fi
13289 if test -n "$found_la"; then
13290 save_libdir="$libdir"
13291 case "$found_la" in
13292 */* | *\\*) . "$found_la" ;;
13293 *) . "./$found_la" ;;
13294 esac
13295 libdir="$save_libdir"
13296 for dep in $dependency_libs; do
13297 case "$dep" in
13298 -L*)
13299 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13300 if test "X$additional_libdir" != "X/usr/lib"; then
13301 haveit=
13302 if test "X$additional_libdir" = "X/usr/local/lib"; then
13303 if test -n "$GCC"; then
13304 case $host_os in
13305 linux*) haveit=yes;;
13306 esac
13307 fi
13308 fi
13309 if test -z "$haveit"; then
13310 haveit=
13311 for x in $LDFLAGS $LIBICONV; do
13312
13313 acl_save_prefix="$prefix"
13314 prefix="$acl_final_prefix"
13315 acl_save_exec_prefix="$exec_prefix"
13316 exec_prefix="$acl_final_exec_prefix"
13317 eval x=\"$x\"
13318 exec_prefix="$acl_save_exec_prefix"
13319 prefix="$acl_save_prefix"
13320
13321 if test "X$x" = "X-L$additional_libdir"; then
13322 haveit=yes
13323 break
13324 fi
13325 done
13326 if test -z "$haveit"; then
13327 if test -d "$additional_libdir"; then
13328 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13329 fi
13330 fi
13331 haveit=
13332 for x in $LDFLAGS $LTLIBICONV; do
13333
13334 acl_save_prefix="$prefix"
13335 prefix="$acl_final_prefix"
13336 acl_save_exec_prefix="$exec_prefix"
13337 exec_prefix="$acl_final_exec_prefix"
13338 eval x=\"$x\"
13339 exec_prefix="$acl_save_exec_prefix"
13340 prefix="$acl_save_prefix"
13341
13342 if test "X$x" = "X-L$additional_libdir"; then
13343 haveit=yes
13344 break
13345 fi
13346 done
13347 if test -z "$haveit"; then
13348 if test -d "$additional_libdir"; then
13349 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13350 fi
13351 fi
13352 fi
13353 fi
13354 ;;
13355 -R*)
13356 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13357 if test "$enable_rpath" != no; then
13358 haveit=
13359 for x in $rpathdirs; do
13360 if test "X$x" = "X$dir"; then
13361 haveit=yes
13362 break
13363 fi
13364 done
13365 if test -z "$haveit"; then
13366 rpathdirs="$rpathdirs $dir"
13367 fi
13368 haveit=
13369 for x in $ltrpathdirs; do
13370 if test "X$x" = "X$dir"; then
13371 haveit=yes
13372 break
13373 fi
13374 done
13375 if test -z "$haveit"; then
13376 ltrpathdirs="$ltrpathdirs $dir"
13377 fi
13378 fi
13379 ;;
13380 -l*)
13381 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13382 ;;
13383 *.la)
13384 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13385 ;;
13386 *)
13387 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13388 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13389 ;;
13390 esac
13391 done
13392 fi
13393 else
13394 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
13395 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13396 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13397 else
13398 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
13399 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
13400 fi
13401 fi
13402 fi
13403 fi
13404 done
13405 done
13406 if test "X$rpathdirs" != "X"; then
13407 if test -n "$hardcode_libdir_separator"; then
13408 alldirs=
13409 for found_dir in $rpathdirs; do
13410 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13411 done
13412 acl_save_libdir="$libdir"
13413 libdir="$alldirs"
13414 eval flag=\"$hardcode_libdir_flag_spec\"
13415 libdir="$acl_save_libdir"
13416 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13417 else
13418 for found_dir in $rpathdirs; do
13419 acl_save_libdir="$libdir"
13420 libdir="$found_dir"
13421 eval flag=\"$hardcode_libdir_flag_spec\"
13422 libdir="$acl_save_libdir"
13423 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13424 done
13425 fi
13426 fi
13427 if test "X$ltrpathdirs" != "X"; then
13428 for found_dir in $ltrpathdirs; do
13429 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13430 done
13431 fi
13432
13433
13434
13435
13436
13437 if test -f ../gettext/uninstalled-config.sh; then
13438 relative_builddir='$(top_builddir)/../gettext'
13439 . ../gettext/uninstalled-config.sh
13440 else
13441 # The sister gettext directory doesn't exist and won't collect information on
13442 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13467 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13468 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 gt_save_LIBS="$LIBS"
13472 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13475 #include <CoreFoundation/CFPreferences.h>
13476 int
13477 main ()
13478 {
13479 CFPreferencesCopyAppValue(NULL, NULL)
13480 ;
13481 return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"; then :
13485 gt_cv_func_CFPreferencesCopyAppValue=yes
13486 else
13487 gt_cv_func_CFPreferencesCopyAppValue=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext \
13490 conftest$ac_exeext conftest.$ac_ext
13491 LIBS="$gt_save_LIBS"
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13494 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13495 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13496
13497 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13498
13499 fi
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
13501 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
13502 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
13503 $as_echo_n "(cached) " >&6
13504 else
13505 gt_save_LIBS="$LIBS"
13506 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13509 #include <CoreFoundation/CFLocale.h>
13510 int
13511 main ()
13512 {
13513 CFLocaleCopyPreferredLanguages();
13514 ;
13515 return 0;
13516 }
13517 _ACEOF
13518 if ac_fn_c_try_link "$LINENO"; then :
13519 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
13520 else
13521 gt_cv_func_CFLocaleCopyPreferredLanguages=no
13522 fi
13523 rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
13525 LIBS="$gt_save_LIBS"
13526 fi
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
13528 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
13529 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13530
13531 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
13532
13533 fi
13534 INTL_MACOSX_LIBS=
13535 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
13536 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
13537 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
13538 fi
13539
13540
13541
13542
13543
13544
13545 LIBINTL=
13546 LTLIBINTL=
13547 POSUB=
13548
13549 case " $gt_needs " in
13550 *" need-formatstring-macros "*) gt_api_version=3 ;;
13551 *" need-ngettext "*) gt_api_version=2 ;;
13552 *) gt_api_version=1 ;;
13553 esac
13554 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13555 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13556
13557 if test "$USE_NLS" = "yes"; then
13558 gt_use_preinstalled_gnugettext=no
13559
13560
13561 if test $gt_api_version -ge 3; then
13562 gt_revision_test_code='
13563 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13564 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13565 #endif
13566 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13567 '
13568 else
13569 gt_revision_test_code=
13570 fi
13571 if test $gt_api_version -ge 2; then
13572 gt_expression_test_code=' + * ngettext ("", "", 0)'
13573 else
13574 gt_expression_test_code=
13575 fi
13576
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13578 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13579 if eval \${$gt_func_gnugettext_libc+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584
13585 #include <libintl.h>
13586 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13587 extern int _nl_msg_cat_cntr;
13588 extern int *_nl_domain_bindings;
13589 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
13590 #else
13591 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13592 #endif
13593 $gt_revision_test_code
13594
13595 int
13596 main ()
13597 {
13598
13599 bindtextdomain ("", "");
13600 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13601
13602 ;
13603 return 0;
13604 }
13605 _ACEOF
13606 if ac_fn_c_try_link "$LINENO"; then :
13607 eval "$gt_func_gnugettext_libc=yes"
13608 else
13609 eval "$gt_func_gnugettext_libc=no"
13610 fi
13611 rm -f core conftest.err conftest.$ac_objext \
13612 conftest$ac_exeext conftest.$ac_ext
13613 fi
13614 eval ac_res=\$$gt_func_gnugettext_libc
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13616 $as_echo "$ac_res" >&6; }
13617
13618 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13619
13620
13621
13622
13623
13624 am_save_CPPFLAGS="$CPPFLAGS"
13625
13626 for element in $INCICONV; do
13627 haveit=
13628 for x in $CPPFLAGS; do
13629
13630 acl_save_prefix="$prefix"
13631 prefix="$acl_final_prefix"
13632 acl_save_exec_prefix="$exec_prefix"
13633 exec_prefix="$acl_final_exec_prefix"
13634 eval x=\"$x\"
13635 exec_prefix="$acl_save_exec_prefix"
13636 prefix="$acl_save_prefix"
13637
13638 if test "X$x" = "X$element"; then
13639 haveit=yes
13640 break
13641 fi
13642 done
13643 if test -z "$haveit"; then
13644 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13645 fi
13646 done
13647
13648
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13650 $as_echo_n "checking for iconv... " >&6; }
13651 if ${am_cv_func_iconv+:} false; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654
13655 am_cv_func_iconv="no, consider installing GNU libiconv"
13656 am_cv_lib_iconv=no
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659
13660 #include <stdlib.h>
13661 #include <iconv.h>
13662
13663 int
13664 main ()
13665 {
13666 iconv_t cd = iconv_open("","");
13667 iconv(cd,NULL,NULL,NULL,NULL);
13668 iconv_close(cd);
13669 ;
13670 return 0;
13671 }
13672 _ACEOF
13673 if ac_fn_c_try_link "$LINENO"; then :
13674 am_cv_func_iconv=yes
13675 fi
13676 rm -f core conftest.err conftest.$ac_objext \
13677 conftest$ac_exeext conftest.$ac_ext
13678 if test "$am_cv_func_iconv" != yes; then
13679 am_save_LIBS="$LIBS"
13680 LIBS="$LIBS $LIBICONV"
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683
13684 #include <stdlib.h>
13685 #include <iconv.h>
13686
13687 int
13688 main ()
13689 {
13690 iconv_t cd = iconv_open("","");
13691 iconv(cd,NULL,NULL,NULL,NULL);
13692 iconv_close(cd);
13693 ;
13694 return 0;
13695 }
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"; then :
13698 am_cv_lib_iconv=yes
13699 am_cv_func_iconv=yes
13700 fi
13701 rm -f core conftest.err conftest.$ac_objext \
13702 conftest$ac_exeext conftest.$ac_ext
13703 LIBS="$am_save_LIBS"
13704 fi
13705
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13708 $as_echo "$am_cv_func_iconv" >&6; }
13709 if test "$am_cv_func_iconv" = yes; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13711 $as_echo_n "checking for working iconv... " >&6; }
13712 if ${am_cv_func_iconv_works+:} false; then :
13713 $as_echo_n "(cached) " >&6
13714 else
13715
13716 am_save_LIBS="$LIBS"
13717 if test $am_cv_lib_iconv = yes; then
13718 LIBS="$LIBS $LIBICONV"
13719 fi
13720 am_cv_func_iconv_works=no
13721 for ac_iconv_const in '' 'const'; do
13722 if test "$cross_compiling" = yes; then :
13723 case "$host_os" in
13724 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13725 *) am_cv_func_iconv_works="guessing yes" ;;
13726 esac
13727 else
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730
13731 #include <iconv.h>
13732 #include <string.h>
13733
13734 #ifndef ICONV_CONST
13735 # define ICONV_CONST $ac_iconv_const
13736 #endif
13737
13738 int
13739 main ()
13740 {
13741 int result = 0;
13742 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
13743 successful returns. This is even documented in
13744 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
13745 {
13746 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13747 if (cd_utf8_to_88591 != (iconv_t)(-1))
13748 {
13749 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13750 char buf[10];
13751 ICONV_CONST char *inptr = input;
13752 size_t inbytesleft = strlen (input);
13753 char *outptr = buf;
13754 size_t outbytesleft = sizeof (buf);
13755 size_t res = iconv (cd_utf8_to_88591,
13756 &inptr, &inbytesleft,
13757 &outptr, &outbytesleft);
13758 if (res == 0)
13759 result |= 1;
13760 iconv_close (cd_utf8_to_88591);
13761 }
13762 }
13763 /* Test against Solaris 10 bug: Failures are not distinguishable from
13764 successful returns. */
13765 {
13766 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13767 if (cd_ascii_to_88591 != (iconv_t)(-1))
13768 {
13769 static ICONV_CONST char input[] = "\263";
13770 char buf[10];
13771 ICONV_CONST char *inptr = input;
13772 size_t inbytesleft = strlen (input);
13773 char *outptr = buf;
13774 size_t outbytesleft = sizeof (buf);
13775 size_t res = iconv (cd_ascii_to_88591,
13776 &inptr, &inbytesleft,
13777 &outptr, &outbytesleft);
13778 if (res == 0)
13779 result |= 2;
13780 iconv_close (cd_ascii_to_88591);
13781 }
13782 }
13783 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13784 {
13785 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13786 if (cd_88591_to_utf8 != (iconv_t)(-1))
13787 {
13788 static ICONV_CONST char input[] = "\304";
13789 static char buf[2] = { (char)0xDE, (char)0xAD };
13790 ICONV_CONST char *inptr = input;
13791 size_t inbytesleft = 1;
13792 char *outptr = buf;
13793 size_t outbytesleft = 1;
13794 size_t res = iconv (cd_88591_to_utf8,
13795 &inptr, &inbytesleft,
13796 &outptr, &outbytesleft);
13797 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13798 result |= 4;
13799 iconv_close (cd_88591_to_utf8);
13800 }
13801 }
13802 #if 0 /* This bug could be worked around by the caller. */
13803 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13804 {
13805 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13806 if (cd_88591_to_utf8 != (iconv_t)(-1))
13807 {
13808 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13809 char buf[50];
13810 ICONV_CONST char *inptr = input;
13811 size_t inbytesleft = strlen (input);
13812 char *outptr = buf;
13813 size_t outbytesleft = sizeof (buf);
13814 size_t res = iconv (cd_88591_to_utf8,
13815 &inptr, &inbytesleft,
13816 &outptr, &outbytesleft);
13817 if ((int)res > 0)
13818 result |= 8;
13819 iconv_close (cd_88591_to_utf8);
13820 }
13821 }
13822 #endif
13823 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13824 provided. */
13825 {
13826 /* Try standardized names. */
13827 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
13828 /* Try IRIX, OSF/1 names. */
13829 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
13830 /* Try AIX names. */
13831 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
13832 /* Try HP-UX names. */
13833 iconv_t cd4 = iconv_open ("utf8", "eucJP");
13834 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
13835 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
13836 result |= 16;
13837 if (cd1 != (iconv_t)(-1))
13838 iconv_close (cd1);
13839 if (cd2 != (iconv_t)(-1))
13840 iconv_close (cd2);
13841 if (cd3 != (iconv_t)(-1))
13842 iconv_close (cd3);
13843 if (cd4 != (iconv_t)(-1))
13844 iconv_close (cd4);
13845 }
13846 return result;
13847
13848 ;
13849 return 0;
13850 }
13851 _ACEOF
13852 if ac_fn_c_try_run "$LINENO"; then :
13853 am_cv_func_iconv_works=yes
13854 fi
13855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13856 conftest.$ac_objext conftest.beam conftest.$ac_ext
13857 fi
13858
13859 test "$am_cv_func_iconv_works" = no || break
13860 done
13861 LIBS="$am_save_LIBS"
13862
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13865 $as_echo "$am_cv_func_iconv_works" >&6; }
13866 case "$am_cv_func_iconv_works" in
13867 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13868 *) am_func_iconv=yes ;;
13869 esac
13870 else
13871 am_func_iconv=no am_cv_lib_iconv=no
13872 fi
13873 if test "$am_func_iconv" = yes; then
13874
13875 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13876
13877 fi
13878 if test "$am_cv_lib_iconv" = yes; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13880 $as_echo_n "checking how to link with libiconv... " >&6; }
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13882 $as_echo "$LIBICONV" >&6; }
13883 else
13884 CPPFLAGS="$am_save_CPPFLAGS"
13885 LIBICONV=
13886 LTLIBICONV=
13887 fi
13888
13889
13890
13891
13892
13893
13894 use_additional=yes
13895
13896 acl_save_prefix="$prefix"
13897 prefix="$acl_final_prefix"
13898 acl_save_exec_prefix="$exec_prefix"
13899 exec_prefix="$acl_final_exec_prefix"
13900
13901 eval additional_includedir=\"$includedir\"
13902 eval additional_libdir=\"$libdir\"
13903
13904 exec_prefix="$acl_save_exec_prefix"
13905 prefix="$acl_save_prefix"
13906
13907
13908 # Check whether --with-libintl-prefix was given.
13909 if test "${with_libintl_prefix+set}" = set; then :
13910 withval=$with_libintl_prefix;
13911 if test "X$withval" = "Xno"; then
13912 use_additional=no
13913 else
13914 if test "X$withval" = "X"; then
13915
13916 acl_save_prefix="$prefix"
13917 prefix="$acl_final_prefix"
13918 acl_save_exec_prefix="$exec_prefix"
13919 exec_prefix="$acl_final_exec_prefix"
13920
13921 eval additional_includedir=\"$includedir\"
13922 eval additional_libdir=\"$libdir\"
13923
13924 exec_prefix="$acl_save_exec_prefix"
13925 prefix="$acl_save_prefix"
13926
13927 else
13928 additional_includedir="$withval/include"
13929 additional_libdir="$withval/lib"
13930 fi
13931 fi
13932
13933 fi
13934
13935
13936 # Check whether --with-libintl-type was given.
13937 if test "${with_libintl_type+set}" = set; then :
13938 withval=$with_libintl_type; with_libintl_type=$withval
13939 else
13940 with_libintl_type=auto
13941 fi
13942
13943 lib_type=`eval echo \$with_libintl_type`
13944
13945 LIBINTL=
13946 LTLIBINTL=
13947 INCINTL=
13948 rpathdirs=
13949 ltrpathdirs=
13950 names_already_handled=
13951 names_next_round='intl '
13952 while test -n "$names_next_round"; do
13953 names_this_round="$names_next_round"
13954 names_next_round=
13955 for name in $names_this_round; do
13956 already_handled=
13957 for n in $names_already_handled; do
13958 if test "$n" = "$name"; then
13959 already_handled=yes
13960 break
13961 fi
13962 done
13963 if test -z "$already_handled"; then
13964 names_already_handled="$names_already_handled $name"
13965 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13966 eval value=\"\$HAVE_LIB$uppername\"
13967 if test -n "$value"; then
13968 if test "$value" = yes; then
13969 eval value=\"\$LIB$uppername\"
13970 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13971 eval value=\"\$LTLIB$uppername\"
13972 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13973 else
13974 :
13975 fi
13976 else
13977 found_dir=
13978 found_la=
13979 found_so=
13980 found_a=
13981 if test $use_additional = yes; then
13982 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
13983 found_dir="$additional_libdir"
13984 found_so="$additional_libdir/lib$name.$shlibext"
13985 if test -f "$additional_libdir/lib$name.la"; then
13986 found_la="$additional_libdir/lib$name.la"
13987 fi
13988 elif test x$lib_type != xshared; then
13989 if test -f "$additional_libdir/lib$name.$libext"; then
13990 found_dir="$additional_libdir"
13991 found_a="$additional_libdir/lib$name.$libext"
13992 if test -f "$additional_libdir/lib$name.la"; then
13993 found_la="$additional_libdir/lib$name.la"
13994 fi
13995 fi
13996 fi
13997 fi
13998 if test "X$found_dir" = "X"; then
13999 for x in $LDFLAGS $LTLIBINTL; do
14000
14001 acl_save_prefix="$prefix"
14002 prefix="$acl_final_prefix"
14003 acl_save_exec_prefix="$exec_prefix"
14004 exec_prefix="$acl_final_exec_prefix"
14005 eval x=\"$x\"
14006 exec_prefix="$acl_save_exec_prefix"
14007 prefix="$acl_save_prefix"
14008
14009 case "$x" in
14010 -L*)
14011 dir=`echo "X$x" | sed -e 's/^X-L//'`
14012 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
14013 found_dir="$dir"
14014 found_so="$dir/lib$name.$shlibext"
14015 if test -f "$dir/lib$name.la"; then
14016 found_la="$dir/lib$name.la"
14017 fi
14018 elif test x$lib_type != xshared; then
14019 if test -f "$dir/lib$name.$libext"; then
14020 found_dir="$dir"
14021 found_a="$dir/lib$name.$libext"
14022 if test -f "$dir/lib$name.la"; then
14023 found_la="$dir/lib$name.la"
14024 fi
14025 fi
14026 fi
14027 ;;
14028 esac
14029 if test "X$found_dir" != "X"; then
14030 break
14031 fi
14032 done
14033 fi
14034 if test "X$found_dir" != "X"; then
14035 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14036 if test "X$found_so" != "X"; then
14037 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14038 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14039 else
14040 haveit=
14041 for x in $ltrpathdirs; do
14042 if test "X$x" = "X$found_dir"; then
14043 haveit=yes
14044 break
14045 fi
14046 done
14047 if test -z "$haveit"; then
14048 ltrpathdirs="$ltrpathdirs $found_dir"
14049 fi
14050 if test "$hardcode_direct" = yes; then
14051 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14052 else
14053 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14054 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14055 haveit=
14056 for x in $rpathdirs; do
14057 if test "X$x" = "X$found_dir"; then
14058 haveit=yes
14059 break
14060 fi
14061 done
14062 if test -z "$haveit"; then
14063 rpathdirs="$rpathdirs $found_dir"
14064 fi
14065 else
14066 haveit=
14067 for x in $LDFLAGS $LIBINTL; do
14068
14069 acl_save_prefix="$prefix"
14070 prefix="$acl_final_prefix"
14071 acl_save_exec_prefix="$exec_prefix"
14072 exec_prefix="$acl_final_exec_prefix"
14073 eval x=\"$x\"
14074 exec_prefix="$acl_save_exec_prefix"
14075 prefix="$acl_save_prefix"
14076
14077 if test "X$x" = "X-L$found_dir"; then
14078 haveit=yes
14079 break
14080 fi
14081 done
14082 if test -z "$haveit"; then
14083 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14084 fi
14085 if test "$hardcode_minus_L" != no; then
14086 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14087 else
14088 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14089 fi
14090 fi
14091 fi
14092 fi
14093 else
14094 if test "X$found_a" != "X"; then
14095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14096 else
14097 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14098 fi
14099 fi
14100 additional_includedir=
14101 case "$found_dir" in
14102 */lib | */lib/)
14103 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14104 additional_includedir="$basedir/include"
14105 ;;
14106 esac
14107 if test "X$additional_includedir" != "X"; then
14108 if test "X$additional_includedir" != "X/usr/include"; then
14109 haveit=
14110 if test "X$additional_includedir" = "X/usr/local/include"; then
14111 if test -n "$GCC"; then
14112 case $host_os in
14113 linux*) haveit=yes;;
14114 esac
14115 fi
14116 fi
14117 if test -z "$haveit"; then
14118 for x in $CPPFLAGS $INCINTL; do
14119
14120 acl_save_prefix="$prefix"
14121 prefix="$acl_final_prefix"
14122 acl_save_exec_prefix="$exec_prefix"
14123 exec_prefix="$acl_final_exec_prefix"
14124 eval x=\"$x\"
14125 exec_prefix="$acl_save_exec_prefix"
14126 prefix="$acl_save_prefix"
14127
14128 if test "X$x" = "X-I$additional_includedir"; then
14129 haveit=yes
14130 break
14131 fi
14132 done
14133 if test -z "$haveit"; then
14134 if test -d "$additional_includedir"; then
14135 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14136 fi
14137 fi
14138 fi
14139 fi
14140 fi
14141 if test -n "$found_la"; then
14142 save_libdir="$libdir"
14143 case "$found_la" in
14144 */* | *\\*) . "$found_la" ;;
14145 *) . "./$found_la" ;;
14146 esac
14147 libdir="$save_libdir"
14148 for dep in $dependency_libs; do
14149 case "$dep" in
14150 -L*)
14151 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14152 if test "X$additional_libdir" != "X/usr/lib"; then
14153 haveit=
14154 if test "X$additional_libdir" = "X/usr/local/lib"; then
14155 if test -n "$GCC"; then
14156 case $host_os in
14157 linux*) haveit=yes;;
14158 esac
14159 fi
14160 fi
14161 if test -z "$haveit"; then
14162 haveit=
14163 for x in $LDFLAGS $LIBINTL; do
14164
14165 acl_save_prefix="$prefix"
14166 prefix="$acl_final_prefix"
14167 acl_save_exec_prefix="$exec_prefix"
14168 exec_prefix="$acl_final_exec_prefix"
14169 eval x=\"$x\"
14170 exec_prefix="$acl_save_exec_prefix"
14171 prefix="$acl_save_prefix"
14172
14173 if test "X$x" = "X-L$additional_libdir"; then
14174 haveit=yes
14175 break
14176 fi
14177 done
14178 if test -z "$haveit"; then
14179 if test -d "$additional_libdir"; then
14180 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14181 fi
14182 fi
14183 haveit=
14184 for x in $LDFLAGS $LTLIBINTL; do
14185
14186 acl_save_prefix="$prefix"
14187 prefix="$acl_final_prefix"
14188 acl_save_exec_prefix="$exec_prefix"
14189 exec_prefix="$acl_final_exec_prefix"
14190 eval x=\"$x\"
14191 exec_prefix="$acl_save_exec_prefix"
14192 prefix="$acl_save_prefix"
14193
14194 if test "X$x" = "X-L$additional_libdir"; then
14195 haveit=yes
14196 break
14197 fi
14198 done
14199 if test -z "$haveit"; then
14200 if test -d "$additional_libdir"; then
14201 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14202 fi
14203 fi
14204 fi
14205 fi
14206 ;;
14207 -R*)
14208 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14209 if test "$enable_rpath" != no; then
14210 haveit=
14211 for x in $rpathdirs; do
14212 if test "X$x" = "X$dir"; then
14213 haveit=yes
14214 break
14215 fi
14216 done
14217 if test -z "$haveit"; then
14218 rpathdirs="$rpathdirs $dir"
14219 fi
14220 haveit=
14221 for x in $ltrpathdirs; do
14222 if test "X$x" = "X$dir"; then
14223 haveit=yes
14224 break
14225 fi
14226 done
14227 if test -z "$haveit"; then
14228 ltrpathdirs="$ltrpathdirs $dir"
14229 fi
14230 fi
14231 ;;
14232 -l*)
14233 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14234 ;;
14235 *.la)
14236 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14237 ;;
14238 *)
14239 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14241 ;;
14242 esac
14243 done
14244 fi
14245 else
14246 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
14247 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14248 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14249 else
14250 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
14251 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
14252 fi
14253 fi
14254 fi
14255 fi
14256 done
14257 done
14258 if test "X$rpathdirs" != "X"; then
14259 if test -n "$hardcode_libdir_separator"; then
14260 alldirs=
14261 for found_dir in $rpathdirs; do
14262 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14263 done
14264 acl_save_libdir="$libdir"
14265 libdir="$alldirs"
14266 eval flag=\"$hardcode_libdir_flag_spec\"
14267 libdir="$acl_save_libdir"
14268 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14269 else
14270 for found_dir in $rpathdirs; do
14271 acl_save_libdir="$libdir"
14272 libdir="$found_dir"
14273 eval flag=\"$hardcode_libdir_flag_spec\"
14274 libdir="$acl_save_libdir"
14275 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14276 done
14277 fi
14278 fi
14279 if test "X$ltrpathdirs" != "X"; then
14280 for found_dir in $ltrpathdirs; do
14281 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14282 done
14283 fi
14284
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14286 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14287 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14288 $as_echo_n "(cached) " >&6
14289 else
14290 gt_save_CPPFLAGS="$CPPFLAGS"
14291 CPPFLAGS="$CPPFLAGS $INCINTL"
14292 gt_save_LIBS="$LIBS"
14293 LIBS="$LIBS $LIBINTL"
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14296
14297 #include <libintl.h>
14298 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14299 extern int _nl_msg_cat_cntr;
14300 extern
14301 #ifdef __cplusplus
14302 "C"
14303 #endif
14304 const char *_nl_expand_alias (const char *);
14305 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14306 #else
14307 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14308 #endif
14309 $gt_revision_test_code
14310
14311 int
14312 main ()
14313 {
14314
14315 bindtextdomain ("", "");
14316 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14317
14318 ;
14319 return 0;
14320 }
14321 _ACEOF
14322 if ac_fn_c_try_link "$LINENO"; then :
14323 eval "$gt_func_gnugettext_libintl=yes"
14324 else
14325 eval "$gt_func_gnugettext_libintl=no"
14326 fi
14327 rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14329 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14330 LIBS="$LIBS $LIBICONV"
14331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332 /* end confdefs.h. */
14333
14334 #include <libintl.h>
14335 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14336 extern int _nl_msg_cat_cntr;
14337 extern
14338 #ifdef __cplusplus
14339 "C"
14340 #endif
14341 const char *_nl_expand_alias (const char *);
14342 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
14343 #else
14344 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
14345 #endif
14346 $gt_revision_test_code
14347
14348 int
14349 main ()
14350 {
14351
14352 bindtextdomain ("", "");
14353 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
14354
14355 ;
14356 return 0;
14357 }
14358 _ACEOF
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 LIBINTL="$LIBINTL $LIBICONV"
14361 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14362 eval "$gt_func_gnugettext_libintl=yes"
14363
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext \
14366 conftest$ac_exeext conftest.$ac_ext
14367 fi
14368 CPPFLAGS="$gt_save_CPPFLAGS"
14369 LIBS="$gt_save_LIBS"
14370 fi
14371 eval ac_res=\$$gt_func_gnugettext_libintl
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14373 $as_echo "$ac_res" >&6; }
14374 fi
14375
14376 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14377 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14378 && test "$PACKAGE" != gettext-runtime \
14379 && test "$PACKAGE" != gettext-tools; }; then
14380 gt_use_preinstalled_gnugettext=yes
14381 else
14382 LIBINTL=
14383 LTLIBINTL=
14384 INCINTL=
14385 fi
14386
14387
14388
14389 if test -n "$INTL_MACOSX_LIBS"; then
14390 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14391 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14392 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14393 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14394 fi
14395 fi
14396
14397 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14398 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14399
14400 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14401
14402 else
14403 USE_NLS=no
14404 fi
14405 fi
14406
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14408 $as_echo_n "checking whether to use NLS... " >&6; }
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14410 $as_echo "$USE_NLS" >&6; }
14411 if test "$USE_NLS" = "yes"; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14413 $as_echo_n "checking where the gettext function comes from... " >&6; }
14414 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14415 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14416 gt_source="external libintl"
14417 else
14418 gt_source="libc"
14419 fi
14420 else
14421 gt_source="included intl directory"
14422 fi
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14424 $as_echo "$gt_source" >&6; }
14425 fi
14426
14427 if test "$USE_NLS" = "yes"; then
14428
14429 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14430 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14432 $as_echo_n "checking how to link with libintl... " >&6; }
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14434 $as_echo "$LIBINTL" >&6; }
14435
14436 for element in $INCINTL; do
14437 haveit=
14438 for x in $CPPFLAGS; do
14439
14440 acl_save_prefix="$prefix"
14441 prefix="$acl_final_prefix"
14442 acl_save_exec_prefix="$exec_prefix"
14443 exec_prefix="$acl_final_exec_prefix"
14444 eval x=\"$x\"
14445 exec_prefix="$acl_save_exec_prefix"
14446 prefix="$acl_save_prefix"
14447
14448 if test "X$x" = "X$element"; then
14449 haveit=yes
14450 break
14451 fi
14452 done
14453 if test -z "$haveit"; then
14454 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14455 fi
14456 done
14457
14458 fi
14459
14460
14461 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14462
14463
14464 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14465
14466 fi
14467
14468 POSUB=po
14469 fi
14470
14471
14472
14473 INTLLIBS="$LIBINTL"
14474
14475
14476
14477
14478
14479
14480 fi
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14493 $as_echo_n "checking whether NLS is requested... " >&6; }
14494 if test x"$USE_NLS" != xyes; then
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496 $as_echo "no" >&6; }
14497 else
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14499 $as_echo "yes" >&6; }
14500
14501 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14502
14503
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
14505 $as_echo_n "checking for catalogs to be installed... " >&6; }
14506 # Look for .po and .gmo files in the source directory.
14507 CATALOGS=
14508 XLINGUAS=
14509 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
14510 # If there aren't any .gmo files the shell will give us the
14511 # literal string "../path/to/srcdir/po/*.gmo" which has to be
14512 # weeded out.
14513 case "$cat" in *\**)
14514 continue;;
14515 esac
14516 # The quadruple backslash is collapsed to a double backslash
14517 # by the backticks, then collapsed again by the double quotes,
14518 # leaving us with one backslash in the sed expression (right
14519 # before the dot that mustn't act as a wildcard).
14520 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
14521 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
14522 # The user is allowed to set LINGUAS to a list of languages to
14523 # install catalogs for. If it's empty that means "all of them."
14524 if test "x$LINGUAS" = x; then
14525 CATALOGS="$CATALOGS $cat"
14526 XLINGUAS="$XLINGUAS $lang"
14527 else
14528 case "$LINGUAS" in *$lang*)
14529 CATALOGS="$CATALOGS $cat"
14530 XLINGUAS="$XLINGUAS $lang"
14531 ;;
14532 esac
14533 fi
14534 done
14535 LINGUAS="$XLINGUAS"
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
14537 $as_echo "$LINGUAS" >&6; }
14538
14539
14540 DATADIRNAME=share
14541
14542 INSTOBJEXT=.mo
14543
14544 GENCAT=gencat
14545
14546 CATOBJEXT=.gmo
14547
14548 fi
14549
14550 # Permit host specific settings.
14551 . ${srcdir}/configure.host
14552
14553
14554
14555
14556 # The cast to long int works around a bug in the HP C Compiler
14557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14559 # This bug is HP SR number 8606223364.
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14561 $as_echo_n "checking size of long long... " >&6; }
14562 if ${ac_cv_sizeof_long_long+:} false; then :
14563 $as_echo_n "(cached) " >&6
14564 else
14565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14566
14567 else
14568 if test "$ac_cv_type_long_long" = yes; then
14569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14571 as_fn_error 77 "cannot compute sizeof (long long)
14572 See \`config.log' for more details" "$LINENO" 5; }
14573 else
14574 ac_cv_sizeof_long_long=0
14575 fi
14576 fi
14577
14578 fi
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14580 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14581
14582
14583
14584 cat >>confdefs.h <<_ACEOF
14585 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14586 _ACEOF
14587
14588
14589 # The cast to long int works around a bug in the HP C Compiler
14590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14592 # This bug is HP SR number 8606223364.
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14594 $as_echo_n "checking size of void *... " >&6; }
14595 if ${ac_cv_sizeof_void_p+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14599
14600 else
14601 if test "$ac_cv_type_void_p" = yes; then
14602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14604 as_fn_error 77 "cannot compute sizeof (void *)
14605 See \`config.log' for more details" "$LINENO" 5; }
14606 else
14607 ac_cv_sizeof_void_p=0
14608 fi
14609 fi
14610
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14613 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14614
14615
14616
14617 cat >>confdefs.h <<_ACEOF
14618 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14619 _ACEOF
14620
14621
14622 # The cast to long int works around a bug in the HP C Compiler
14623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14625 # This bug is HP SR number 8606223364.
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14627 $as_echo_n "checking size of long... " >&6; }
14628 if ${ac_cv_sizeof_long+:} false; then :
14629 $as_echo_n "(cached) " >&6
14630 else
14631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14632
14633 else
14634 if test "$ac_cv_type_long" = yes; then
14635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14637 as_fn_error 77 "cannot compute sizeof (long)
14638 See \`config.log' for more details" "$LINENO" 5; }
14639 else
14640 ac_cv_sizeof_long=0
14641 fi
14642 fi
14643
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14646 $as_echo "$ac_cv_sizeof_long" >&6; }
14647
14648
14649
14650 cat >>confdefs.h <<_ACEOF
14651 #define SIZEOF_LONG $ac_cv_sizeof_long
14652 _ACEOF
14653
14654
14655 # The cast to long int works around a bug in the HP C Compiler
14656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14658 # This bug is HP SR number 8606223364.
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14660 $as_echo_n "checking size of int... " >&6; }
14661 if ${ac_cv_sizeof_int+:} false; then :
14662 $as_echo_n "(cached) " >&6
14663 else
14664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14665
14666 else
14667 if test "$ac_cv_type_int" = yes; then
14668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14670 as_fn_error 77 "cannot compute sizeof (int)
14671 See \`config.log' for more details" "$LINENO" 5; }
14672 else
14673 ac_cv_sizeof_int=0
14674 fi
14675 fi
14676
14677 fi
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14679 $as_echo "$ac_cv_sizeof_int" >&6; }
14680
14681
14682
14683 cat >>confdefs.h <<_ACEOF
14684 #define SIZEOF_INT $ac_cv_sizeof_int
14685 _ACEOF
14686
14687
14688
14689 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
14690 host64=true
14691 fi
14692
14693 # Put a plausible default for CC_FOR_BUILD in Makefile.
14694 if test -z "$CC_FOR_BUILD"; then
14695 if test "x$cross_compiling" = "xno"; then
14696 CC_FOR_BUILD='$(CC)'
14697 else
14698 CC_FOR_BUILD=gcc
14699 fi
14700 fi
14701
14702 # Also set EXEEXT_FOR_BUILD.
14703 if test "x$cross_compiling" = "xno"; then
14704 EXEEXT_FOR_BUILD='$(EXEEXT)'
14705 else
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
14707 $as_echo_n "checking for build system executable suffix... " >&6; }
14708 if ${bfd_cv_build_exeext+:} false; then :
14709 $as_echo_n "(cached) " >&6
14710 else
14711 rm -f conftest*
14712 echo 'int main () { return 0; }' > conftest.c
14713 bfd_cv_build_exeext=
14714 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
14715 for file in conftest.*; do
14716 case $file in
14717 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
14718 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
14719 esac
14720 done
14721 rm -f conftest*
14722 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
14723 fi
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
14725 $as_echo "$bfd_cv_build_exeext" >&6; }
14726 EXEEXT_FOR_BUILD=""
14727 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
14728 fi
14729
14730
14731 for ac_header in fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \
14732 unistd.h
14733 do :
14734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14735 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14737 cat >>confdefs.h <<_ACEOF
14738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14739 _ACEOF
14740
14741 fi
14742
14743 done
14744
14745
14746 for ac_func in fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \
14747 sysconf
14748 do :
14749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14750 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14751 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14752 cat >>confdefs.h <<_ACEOF
14753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14754 _ACEOF
14755
14756 fi
14757 done
14758
14759
14760 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
14761 if test "x$ac_cv_have_decl_basename" = xyes; then :
14762 ac_have_decl=1
14763 else
14764 ac_have_decl=0
14765 fi
14766
14767 cat >>confdefs.h <<_ACEOF
14768 #define HAVE_DECL_BASENAME $ac_have_decl
14769 _ACEOF
14770 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
14771 if test "x$ac_cv_have_decl_ffs" = xyes; then :
14772 ac_have_decl=1
14773 else
14774 ac_have_decl=0
14775 fi
14776
14777 cat >>confdefs.h <<_ACEOF
14778 #define HAVE_DECL_FFS $ac_have_decl
14779 _ACEOF
14780 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14781 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14782 ac_have_decl=1
14783 else
14784 ac_have_decl=0
14785 fi
14786
14787 cat >>confdefs.h <<_ACEOF
14788 #define HAVE_DECL_STPCPY $ac_have_decl
14789 _ACEOF
14790 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14791 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14792 ac_have_decl=1
14793 else
14794 ac_have_decl=0
14795 fi
14796
14797 cat >>confdefs.h <<_ACEOF
14798 #define HAVE_DECL_ASPRINTF $ac_have_decl
14799 _ACEOF
14800 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
14801 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
14802 ac_have_decl=1
14803 else
14804 ac_have_decl=0
14805 fi
14806
14807 cat >>confdefs.h <<_ACEOF
14808 #define HAVE_DECL_VASPRINTF $ac_have_decl
14809 _ACEOF
14810 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14811 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
14812 ac_have_decl=1
14813 else
14814 ac_have_decl=0
14815 fi
14816
14817 cat >>confdefs.h <<_ACEOF
14818 #define HAVE_DECL_STRNLEN $ac_have_decl
14819 _ACEOF
14820
14821 ac_fn_c_check_decl "$LINENO" "___lc_codepage_func" "ac_cv_have_decl____lc_codepage_func" "#include <locale.h>
14822 "
14823 if test "x$ac_cv_have_decl____lc_codepage_func" = xyes; then :
14824 ac_have_decl=1
14825 else
14826 ac_have_decl=0
14827 fi
14828
14829 cat >>confdefs.h <<_ACEOF
14830 #define HAVE_DECL____LC_CODEPAGE_FUNC $ac_have_decl
14831 _ACEOF
14832
14833
14834
14835 case "${host}" in
14836 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14837
14838 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14839 ;;
14840 esac
14841
14842
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
14844 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
14845 if ${ac_cv_tls+:} false; then :
14846 $as_echo_n "(cached) " >&6
14847 else
14848 for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do
14849 case $ax_tls_keyword in #(
14850 none) :
14851 ac_cv_tls=none ; break ;; #(
14852 *) :
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h. */
14855 #include <stdlib.h>
14856 int
14857 main ()
14858 {
14859 static $ax_tls_keyword int bar;
14860
14861 ;
14862 return 0;
14863 }
14864 _ACEOF
14865 if ac_fn_c_try_compile "$LINENO"; then :
14866 ac_cv_tls=$ax_tls_keyword ; break
14867 else
14868 ac_cv_tls=none
14869
14870 fi
14871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14872 ;;
14873 esac
14874 done
14875
14876 fi
14877
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
14879 $as_echo "$ac_cv_tls" >&6; }
14880
14881 if test "$ac_cv_tls" != "none"; then :
14882
14883 cat >>confdefs.h <<_ACEOF
14884 #define TLS $ac_cv_tls
14885 _ACEOF
14886
14887 :
14888 else
14889 :
14890 fi
14891
14892
14893 # Link in zlib/zstd if we can. This allows us to read compressed debug sections.
14894 # This is used only by compress.c.
14895
14896 # Use the system's zlib library.
14897 zlibdir="-L\$(top_builddir)/../zlib"
14898 zlibinc="-I\$(top_srcdir)/../zlib"
14899
14900 # Check whether --with-system-zlib was given.
14901 if test "${with_system_zlib+set}" = set; then :
14902 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14903 zlibdir=
14904 zlibinc=
14905 fi
14906
14907 fi
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14920 if test -n "$ac_tool_prefix"; then
14921 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14922 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14924 $as_echo_n "checking for $ac_word... " >&6; }
14925 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14926 $as_echo_n "(cached) " >&6
14927 else
14928 case $PKG_CONFIG in
14929 [\\/]* | ?:[\\/]*)
14930 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14931 ;;
14932 *)
14933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14934 for as_dir in $PATH
14935 do
14936 IFS=$as_save_IFS
14937 test -z "$as_dir" && as_dir=.
14938 for ac_exec_ext in '' $ac_executable_extensions; do
14939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14940 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14942 break 2
14943 fi
14944 done
14945 done
14946 IFS=$as_save_IFS
14947
14948 ;;
14949 esac
14950 fi
14951 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14952 if test -n "$PKG_CONFIG"; then
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14954 $as_echo "$PKG_CONFIG" >&6; }
14955 else
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14957 $as_echo "no" >&6; }
14958 fi
14959
14960
14961 fi
14962 if test -z "$ac_cv_path_PKG_CONFIG"; then
14963 ac_pt_PKG_CONFIG=$PKG_CONFIG
14964 # Extract the first word of "pkg-config", so it can be a program name with args.
14965 set dummy pkg-config; ac_word=$2
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14967 $as_echo_n "checking for $ac_word... " >&6; }
14968 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14969 $as_echo_n "(cached) " >&6
14970 else
14971 case $ac_pt_PKG_CONFIG in
14972 [\\/]* | ?:[\\/]*)
14973 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14974 ;;
14975 *)
14976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977 for as_dir in $PATH
14978 do
14979 IFS=$as_save_IFS
14980 test -z "$as_dir" && as_dir=.
14981 for ac_exec_ext in '' $ac_executable_extensions; do
14982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14983 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14985 break 2
14986 fi
14987 done
14988 done
14989 IFS=$as_save_IFS
14990
14991 ;;
14992 esac
14993 fi
14994 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14995 if test -n "$ac_pt_PKG_CONFIG"; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14997 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14998 else
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000 $as_echo "no" >&6; }
15001 fi
15002
15003 if test "x$ac_pt_PKG_CONFIG" = x; then
15004 PKG_CONFIG=""
15005 else
15006 case $cross_compiling:$ac_tool_warned in
15007 yes:)
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15010 ac_tool_warned=yes ;;
15011 esac
15012 PKG_CONFIG=$ac_pt_PKG_CONFIG
15013 fi
15014 else
15015 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15016 fi
15017
15018 fi
15019 if test -n "$PKG_CONFIG"; then
15020 _pkg_min_version=0.9.0
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15022 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15023 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15025 $as_echo "yes" >&6; }
15026 else
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15028 $as_echo "no" >&6; }
15029 PKG_CONFIG=""
15030 fi
15031 fi
15032
15033
15034 # Check whether --with-zstd was given.
15035 if test "${with_zstd+set}" = set; then :
15036 withval=$with_zstd;
15037 else
15038 with_zstd=auto
15039 fi
15040
15041
15042 if test "$with_zstd" != no; then :
15043
15044 pkg_failed=no
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
15046 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
15047
15048 if test -n "$ZSTD_CFLAGS"; then
15049 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
15050 elif test -n "$PKG_CONFIG"; then
15051 if test -n "$PKG_CONFIG" && \
15052 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15053 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15054 ac_status=$?
15055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15056 test $ac_status = 0; }; then
15057 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
15058 test "x$?" != "x0" && pkg_failed=yes
15059 else
15060 pkg_failed=yes
15061 fi
15062 else
15063 pkg_failed=untried
15064 fi
15065 if test -n "$ZSTD_LIBS"; then
15066 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
15067 elif test -n "$PKG_CONFIG"; then
15068 if test -n "$PKG_CONFIG" && \
15069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
15070 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
15071 ac_status=$?
15072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15073 test $ac_status = 0; }; then
15074 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
15075 test "x$?" != "x0" && pkg_failed=yes
15076 else
15077 pkg_failed=yes
15078 fi
15079 else
15080 pkg_failed=untried
15081 fi
15082
15083 if test $pkg_failed = no; then
15084 pkg_save_LDFLAGS="$LDFLAGS"
15085 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15088
15089 int
15090 main ()
15091 {
15092
15093 ;
15094 return 0;
15095 }
15096 _ACEOF
15097 if ac_fn_c_try_link "$LINENO"; then :
15098
15099 else
15100 pkg_failed=yes
15101 fi
15102 rm -f core conftest.err conftest.$ac_objext \
15103 conftest$ac_exeext conftest.$ac_ext
15104 LDFLAGS=$pkg_save_LDFLAGS
15105 fi
15106
15107
15108
15109 if test $pkg_failed = yes; then
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111 $as_echo "no" >&6; }
15112
15113 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15114 _pkg_short_errors_supported=yes
15115 else
15116 _pkg_short_errors_supported=no
15117 fi
15118 if test $_pkg_short_errors_supported = yes; then
15119 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15120 else
15121 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
15122 fi
15123 # Put the nasty error message in config.log where it belongs
15124 echo "$ZSTD_PKG_ERRORS" >&5
15125
15126
15127 if test "$with_zstd" = yes; then
15128 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15129 fi
15130
15131 elif test $pkg_failed = untried; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15133 $as_echo "no" >&6; }
15134
15135 if test "$with_zstd" = yes; then
15136 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
15137 fi
15138
15139 else
15140 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
15141 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15143 $as_echo "yes" >&6; }
15144
15145
15146 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
15147
15148
15149 fi
15150
15151 fi
15152
15153
15154 save_CFLAGS="$CFLAGS"
15155 CFLAGS="$CFLAGS -Werror"
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5
15157 $as_echo_n "checking compiler support for hidden visibility... " >&6; }
15158 if ${bfd_cv_hidden+:} false; then :
15159 $as_echo_n "(cached) " >&6
15160 else
15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15163
15164 const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
15165 extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));
15166 int
15167 main ()
15168 {
15169 print (hw);
15170 ;
15171 return 0;
15172 }
15173 _ACEOF
15174 if ac_fn_c_try_compile "$LINENO"; then :
15175 bfd_cv_hidden=yes
15176 else
15177 bfd_cv_hidden=no
15178 fi
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 fi
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5
15182 $as_echo "$bfd_cv_hidden" >&6; }
15183 CFLAGS="$save_CFLAGS"
15184 if test $bfd_cv_hidden = yes; then
15185
15186 $as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
15187
15188 fi
15189
15190 # Check if linker supports --as-needed and --no-as-needed options
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
15192 $as_echo_n "checking linker --as-needed support... " >&6; }
15193 if ${bfd_cv_ld_as_needed+:} false; then :
15194 $as_echo_n "(cached) " >&6
15195 else
15196 bfd_cv_ld_as_needed=no
15197 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
15198 bfd_cv_ld_as_needed=yes
15199 fi
15200
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
15203 $as_echo "$bfd_cv_ld_as_needed" >&6; }
15204
15205 LIBM=
15206 case $host in
15207 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
15208 # These system don't have libm, or don't need it
15209 ;;
15210 *-ncr-sysv4.3*)
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
15212 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
15213 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215 else
15216 ac_check_lib_save_LIBS=$LIBS
15217 LIBS="-lmw $LIBS"
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220
15221 /* Override any GCC internal prototype to avoid an error.
15222 Use char because int might match the return type of a GCC
15223 builtin and then its argument prototype would still apply. */
15224 #ifdef __cplusplus
15225 extern "C"
15226 #endif
15227 char _mwvalidcheckl ();
15228 int
15229 main ()
15230 {
15231 return _mwvalidcheckl ();
15232 ;
15233 return 0;
15234 }
15235 _ACEOF
15236 if ac_fn_c_try_link "$LINENO"; then :
15237 ac_cv_lib_mw__mwvalidcheckl=yes
15238 else
15239 ac_cv_lib_mw__mwvalidcheckl=no
15240 fi
15241 rm -f core conftest.err conftest.$ac_objext \
15242 conftest$ac_exeext conftest.$ac_ext
15243 LIBS=$ac_check_lib_save_LIBS
15244 fi
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
15246 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
15247 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
15248 LIBM="-lmw"
15249 fi
15250
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15252 $as_echo_n "checking for cos in -lm... " >&6; }
15253 if ${ac_cv_lib_m_cos+:} false; then :
15254 $as_echo_n "(cached) " >&6
15255 else
15256 ac_check_lib_save_LIBS=$LIBS
15257 LIBS="-lm $LIBS"
15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15259 /* end confdefs.h. */
15260
15261 /* Override any GCC internal prototype to avoid an error.
15262 Use char because int might match the return type of a GCC
15263 builtin and then its argument prototype would still apply. */
15264 #ifdef __cplusplus
15265 extern "C"
15266 #endif
15267 char cos ();
15268 int
15269 main ()
15270 {
15271 return cos ();
15272 ;
15273 return 0;
15274 }
15275 _ACEOF
15276 if ac_fn_c_try_link "$LINENO"; then :
15277 ac_cv_lib_m_cos=yes
15278 else
15279 ac_cv_lib_m_cos=no
15280 fi
15281 rm -f core conftest.err conftest.$ac_objext \
15282 conftest$ac_exeext conftest.$ac_ext
15283 LIBS=$ac_check_lib_save_LIBS
15284 fi
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15286 $as_echo "$ac_cv_lib_m_cos" >&6; }
15287 if test "x$ac_cv_lib_m_cos" = xyes; then :
15288 LIBM="$LIBM -lm"
15289 fi
15290
15291 ;;
15292 *)
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
15294 $as_echo_n "checking for cos in -lm... " >&6; }
15295 if ${ac_cv_lib_m_cos+:} false; then :
15296 $as_echo_n "(cached) " >&6
15297 else
15298 ac_check_lib_save_LIBS=$LIBS
15299 LIBS="-lm $LIBS"
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15302
15303 /* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15306 #ifdef __cplusplus
15307 extern "C"
15308 #endif
15309 char cos ();
15310 int
15311 main ()
15312 {
15313 return cos ();
15314 ;
15315 return 0;
15316 }
15317 _ACEOF
15318 if ac_fn_c_try_link "$LINENO"; then :
15319 ac_cv_lib_m_cos=yes
15320 else
15321 ac_cv_lib_m_cos=no
15322 fi
15323 rm -f core conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
15325 LIBS=$ac_check_lib_save_LIBS
15326 fi
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
15328 $as_echo "$ac_cv_lib_m_cos" >&6; }
15329 if test "x$ac_cv_lib_m_cos" = xyes; then :
15330 LIBM="-lm"
15331 fi
15332
15333 ;;
15334 esac
15335
15336
15337
15338 # When building a shared libbfd, link against the pic version of libiberty
15339 # so that apps that use libbfd won't need libiberty just to satisfy any
15340 # libbfd references.
15341 # We can't do that if a pic libiberty is unavailable since including non-pic
15342 # code would insert text relocations into libbfd.
15343 SHARED_LIBADD=
15344 SHARED_LDFLAGS=
15345 if test "$enable_shared" = "yes"; then
15346 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
15347 if test -n "$x"; then
15348 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
15349 fi
15350 fi
15351
15352 SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL"
15353
15354 if test "$enable_shared" = "yes"; then
15355 case "${host}" in
15356 # More hacks to build DLLs on Windows.
15357 *-*-cygwin*)
15358 SHARED_LDFLAGS="-no-undefined"
15359 SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32"
15360 ;;
15361 esac
15362
15363 if test -n "$SHARED_LIBADD"; then
15364 if test -n "$LIBM"; then
15365 if test x"$bfd_cv_ld_as_needed" = xyes; then
15366 # Link against libm only when needed. Put -lc, -lm inside -Wl
15367 # to stop libtool reordering these options.
15368 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
15369 else
15370 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
15371 fi
15372 fi
15373 fi
15374 fi
15375
15376
15377
15378 # target stuff:
15379
15380 # Canonicalize the secondary target names.
15381 if test -n "$enable_targets" ; then
15382 for targ in `echo $enable_targets | sed 's/,/ /g'`
15383 do
15384 result=`$ac_config_sub $targ 2>/dev/null`
15385 if test -n "$result" ; then
15386 canon_targets="$canon_targets $result"
15387 else
15388 # Allow targets that config.sub doesn't recognize, like "all".
15389 canon_targets="$canon_targets $targ"
15390 fi
15391 done
15392 fi
15393
15394 all_targets=false
15395 defvec=
15396 selvecs=
15397 assocvecs=
15398 selarchs=
15399 TDEFINES=
15400 for targ in $target $canon_targets
15401 do
15402 if test $targ = all; then
15403 all_targets=true
15404 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
15405 elif test $targ != plugin; then
15406 . $srcdir/config.bfd
15407 if test $targ = $target; then
15408 defvec=$targ_defvec
15409 fi
15410 selvecs="$selvecs $targ_defvec $targ_selvecs"
15411 selarchs="$selarchs $targ_archs"
15412 TDEFINES="$TDEFINES $targ_cflags"
15413 fi
15414 done
15415
15416
15417 # This processing still needs to be done if we're to decide properly whether
15418 # 64-bit support needs to be compiled in. Currently, it will be included if
15419 # the default or any other explicitly requested target requires it; it
15420 # will not be included on a 32-bit host if no 64-bit target is requested, and
15421 # no "--enable-64-bit-bfd" option is given, even if "--enable-targets=all" is
15422 # used.
15423
15424 # uniq the default and selected vectors in all the configured targets.
15425 f=""
15426 for i in $selvecs ; do
15427 case " $f " in
15428 *" $i "*) ;;
15429 *) f="$f $i" ;;
15430 esac
15431 done
15432 selvecs="$f"
15433
15434
15435 # uniq the associated vectors in all the configured targets.
15436 f=""
15437 for i in $assocvecs ; do
15438 case " $f " in
15439 *" $i "*) ;;
15440 *) f="$f $i" ;;
15441 esac
15442 done
15443 assocvecs="$f"
15444
15445
15446 # uniq the architectures in all the configured targets.
15447 f=""
15448 for i in $selarchs ; do
15449 case " $f " in
15450 *" $i "*) ;;
15451 *) f="$f $i" ;;
15452 esac
15453 done
15454 selarchs="$f"
15455
15456 # Target backend .o files.
15457 tb=
15458
15459 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
15460 elf-sframe.lo dwarf1.lo dwarf2.lo"
15461 coffgen="coffgen.lo dwarf2.lo"
15462 coff="cofflink.lo $coffgen"
15463 ecoff="ecofflink.lo $coffgen"
15464 xcoff="xcofflink.lo $coffgen"
15465
15466 elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo"
15467 for vec in $selvecs
15468 do
15469 target_size=32
15470 case "$vec" in
15471 # This list is alphabetized to make it easy to compare
15472 # with the two vector lists in targets.c. For the same reason,
15473 # use one entry per line, even though this leads to long lines.
15474 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
15475 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
15476 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15477 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15478 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
15479 aarch64_pei_le_vec) tb="$tb pei-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
15480 aarch64_pe_le_vec) tb="$tb pe-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
15481 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
15482 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15483 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15484 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
15485 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
15486 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
15487 amdgcn_elf64_le_vec) tb="$tb elf64-amdgcn.lo elf64.lo $elf"; target_size=64 ;;
15488 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
15489 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
15490 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
15491 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15492 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15493 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15494 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15495 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15496 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15497 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15498 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15499 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
15500 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
15501 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
15502 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
15503 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
15504 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
15505 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
15506 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
15507 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
15508 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
15509 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15510 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15511 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
15512 cris_aout_vec) tb="$tb aout-cris.lo" ;;
15513 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15514 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15515 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
15516 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
15517 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
15518 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
15519 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
15520 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
15521 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15522 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15523 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15524 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15525 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
15526 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
15527 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
15528 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
15529 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15530 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15531 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
15532 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
15533 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15534 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15535 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15536 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15537 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15538 hppa_som_vec) tb="$tb som.lo" ;;
15539 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
15540 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
15541 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
15542 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
15543 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
15544 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
15545 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
15546 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15547 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15548 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15549 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15550 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
15551 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
15552 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
15553 i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
15554 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
15555 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
15556 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
15557 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
15558 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
15559 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
15560 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
15561 ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
15562 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
15563 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
15564 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
15565 kvx_elf32_vec) tb="$tb elf32-kvx.lo elfxx-kvx.lo elf32.lo $elf $ipa" ;;
15566 kvx_elf64_vec) tb="$tb elf64-kvx.lo elfxx-kvx.lo elf64.lo $elf $ipa"; target_size=64 ;;
15567 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15568 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15569 loongarch_elf32_vec) tb="$tb elf32-loongarch.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf" ;;
15570 loongarch_elf64_vec) tb="$tb elf64-loongarch.lo elf64.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf"; target_size=64 ;;
15571 loongarch64_pei_vec) tb="$tb pei-loongarch64.lo pe-loongarch64igen.lo $coff"; target_size=64 ;;
15572 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
15573 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15574 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15575 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15576 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15577 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15578 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15579 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
15580 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
15581 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
15582 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
15583 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
15584 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15585 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15586 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
15587 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
15588 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
15589 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
15590 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15591 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15592 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
15593 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
15594 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
15595 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
15596 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
15597 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
15598 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15599 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15600 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15601 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15602 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15603 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15604 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15605 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15606 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15607 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15608 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15609 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15610 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15611 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
15612 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15613 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15614 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15615 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15616 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15617 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
15618 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
15619 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
15620 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
15621 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
15622 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
15623 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
15624 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
15625 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
15626 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
15627 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
15628 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
15629 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
15630 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
15631 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
15632 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15633 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15634 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
15635 pdb_vec) tb="$tb pdb.lo" ;;
15636 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
15637 pef_vec) tb="$tb pef.lo" ;;
15638 pef_xlib_vec) tb="$tb pef.lo" ;;
15639 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
15640 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
15641 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
15642 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15643 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15644 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15645 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15646 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15647 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15648 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15649 powerpc_elf64_fbsd_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15650 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
15651 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
15652 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
15653 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
15654 riscv_elf32_be_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
15655 riscv_elf64_be_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
15656 riscv64_pei_vec) tb="$tb pei-riscv64.lo pe-riscv64igen.lo $coff"; target_size=64 ;;
15657 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
15658 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
15659 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
15660 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
15661 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15662 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15663 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15664 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15665 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
15666 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
15667 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
15668 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
15669 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
15670 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
15671 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
15672 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
15673 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15674 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15675 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15676 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15677 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15678 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15679 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15680 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15681 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15682 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
15683 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
15684 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
15685 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15686 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15687 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15688 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15689 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15690 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15691 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
15692 sym_vec) tb="$tb xsym.lo" ;;
15693 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
15694 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
15695 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
15696 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
15697 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
15698 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
15699 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
15700 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
15701 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
15702 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
15703 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
15704 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
15705 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
15706 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15707 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15708 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15709 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15710 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15711 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15712 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
15713 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
15714 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
15715 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
15716 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
15717 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
15718 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
15719 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
15720 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
15721 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
15722 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
15723 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
15724 wasm_vec) tb="$tb wasm-module.lo" ;;
15725 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
15726 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
15727 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
15728 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
15729 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
15730 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
15731 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
15732 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
15733 x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
15734 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
15735 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
15736 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
15737 xtensa_elf32_be_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15738 xtensa_elf32_le_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15739 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
15740 z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;;
15741 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
15742
15743 # These appear out of order in targets.c
15744 srec_vec) tb="$tb srec.lo" ;;
15745 symbolsrec_vec) tb="$tb srec.lo" ;;
15746 tekhex_vec) tb="$tb tekhex.lo" ;;
15747 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
15748 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
15749
15750 "") ;;
15751 *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;;
15752 esac
15753
15754 if test ${target_size} = 64; then
15755 target64=true
15756 fi
15757 if test x"${vec}" = x"${defvec}"; then
15758 bfd_default_target_size=${target_size}
15759 fi
15760 done
15761
15762 if test "$plugins" = "yes"; then
15763 tb="$tb plugin.lo"
15764 fi
15765
15766 # Target architecture .o files.
15767 # A couple of CPUs use shorter file names to avoid problems on DOS
15768 # filesystems.
15769 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
15770
15771 # Weed out duplicate .o files.
15772 f=""
15773 for i in $tb ; do
15774 case " $f " in
15775 *" $i "*) ;;
15776 *) f="$f $i" ;;
15777 esac
15778 done
15779 tb="$f"
15780
15781 f=""
15782 for i in $ta ; do
15783 case " $f " in
15784 *" $i "*) ;;
15785 *) f="$f $i" ;;
15786 esac
15787 done
15788 ta="$f"
15789
15790 bfd_backends="$tb"
15791 bfd_machines="$ta"
15792
15793 if test x${all_targets} = xtrue ; then
15794 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15795 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15796 selvecs=
15797 havevecs=-DHAVE_all_vecs
15798 selarchs=
15799 test -n "$assocvecs" &&
15800 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15801 else # all_targets is true
15802 # Only set these if they will be nonempty, for the clever echo.
15803 havevecs=
15804 assocvecs=
15805 test -n "$selvecs" &&
15806 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15807 test -n "$selvecs" &&
15808 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15809 test -n "$selarchs" &&
15810 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15811 fi # all_targets is true
15812
15813 # 64-bit archives need a 64-bit bfd_vma.
15814 if test "x$want_64_bit_archive" = xtrue; then
15815 want64=true
15816
15817 $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
15818
15819 fi
15820
15821 case ${host64}-${target64}-${want64} in
15822 *true*)
15823 wordsize=64
15824 bfd64_libs='$(BFD64_LIBS)'
15825 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15826 if test -n "$GCC" ; then
15827 bad_64bit_gcc=no;
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15829 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15830 # Add more tests for gcc versions with non-working 64-bit support here.
15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h. */
15833 :__GNUC__:__GNUC_MINOR__:__i386__:
15834 _ACEOF
15835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15836 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15837 bad_64bit_gcc=yes;
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15839 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
15840 else
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15842 $as_echo "no" >&6; }
15843 fi
15844 rm -f conftest*
15845
15846 if test $bad_64bit_gcc = yes ; then
15847 as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15848 fi
15849 fi
15850 ;;
15851 false-false-false)
15852 wordsize=32
15853 all_backends='$(BFD32_BACKENDS)'
15854 ;;
15855 esac
15856
15857 tdefaults=""
15858 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15859 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15860 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15861 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872 # If we are configured native, pick a core file support file.
15873 COREFILE=
15874 COREFLAG=
15875 CORE_HEADER=
15876 TRAD_HEADER=
15877 if test "${target}" = "${host}"; then
15878 case "${host}" in
15879 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
15880 COREFILE=''
15881 ;;
15882 alpha*-*-linux-*)
15883 COREFILE=trad-core.lo
15884 TRAD_HEADER='"hosts/alphalinux.h"'
15885 ;;
15886 alpha*-*-netbsd* | alpha*-*-openbsd*)
15887 COREFILE=netbsd-core.lo
15888 ;;
15889 alpha*-*-*)
15890 COREFILE=osf-core.lo
15891 ;;
15892 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
15893 COREFILE='' ;;
15894 arm*-*-netbsd* | arm-*-openbsd*)
15895 COREFILE=netbsd-core.lo
15896 ;;
15897 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
15898 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
15899 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
15900 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
15901 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
15902 hppa*-*-netbsd* | hppa*-*-openbsd*)
15903 COREFILE=netbsd-core.lo
15904 ;;
15905
15906 i[3-7]86-*-bsdi)
15907 COREFILE=
15908 ;;
15909 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.*)
15910 COREFILE=trad-core.lo
15911 TRAD_HEADER='"hosts/i386bsd.h"'
15912 ;;
15913 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
15914 COREFILE=''
15915 TRAD_HEADER='"hosts/i386bsd.h"'
15916 ;;
15917 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
15918 COREFILE=netbsd-core.lo
15919 ;;
15920 i[3-7]86-esix-sysv3*)
15921 COREFILE=trad-core.lo
15922 TRAD_HEADER='"hosts/esix.h"'
15923 ;;
15924 i[3-7]86-*-mach3*)
15925 COREFILE=trad-core.lo
15926 TRAD_HEADER='"hosts/i386mach3.h"'
15927 ;;
15928 i[3-7]86-*-linux-*)
15929 COREFILE=trad-core.lo
15930 TRAD_HEADER='"hosts/i386linux.h"'
15931 case "$enable_targets"-"$want64" in
15932 *x86_64-*linux*|*-true)
15933 CORE_HEADER='"hosts/x86-64linux.h"'
15934 esac
15935 ;;
15936 mips*-*-netbsd* | mips*-*-openbsd*)
15937 COREFILE=netbsd-core.lo
15938 ;;
15939 mips-*-irix*)
15940 COREFILE=irix-core.lo
15941 ;;
15942 m68*-*-linux-*)
15943 COREFILE=trad-core.lo
15944 TRAD_HEADER='"hosts/m68klinux.h"'
15945 ;;
15946 m68*-*-netbsd*)
15947 COREFILE=netbsd-core.lo
15948 ;;
15949 ns32k-pc532-mach)
15950 COREFILE=trad-core.lo
15951 TRAD_HEADER='"hosts/pc532mach.h"'
15952 ;;
15953 ns32k-*-netbsd* | ns32k-*-openbsd*)
15954 COREFILE=netbsd-core.lo
15955 ;;
15956 rs6000-*-lynx*)
15957 COREFILE=lynx-core.lo
15958 ;;
15959 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
15960 COREFILE=rs6000-core.lo
15961 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
15962 ;;
15963 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
15964 COREFILE=rs6000-core.lo
15965 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
15966 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
15967 # have c_impl as a member of struct core_dumpx
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
15969 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15972 #include <core.h>
15973 int
15974 main ()
15975 {
15976 struct core_dumpx c; c.c_impl = 0;
15977 ;
15978 return 0;
15979 }
15980 _ACEOF
15981 if ac_fn_c_try_compile "$LINENO"; then :
15982
15983 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
15984
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15986 $as_echo "yes" >&6; }
15987 else
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15989 $as_echo "no" >&6; }
15990 fi
15991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15992 ;;
15993 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
15994 rs6000-*-*) COREFILE=rs6000-core.lo ;;
15995 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
15996 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
15997 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
15998 powerpc-*-beos*) ;;
15999 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
16000 COREFILE='' ;;
16001 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
16002 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
16003 s390*-*-*) COREFILE=trad-core.lo ;;
16004 sh*-*-netbsd* | sh*-*-openbsd*)
16005 COREFILE=netbsd-core.lo
16006 ;;
16007 sparc-*-netbsd* | sparc*-*-openbsd*)
16008 COREFILE=netbsd-core.lo
16009 ;;
16010 vax-*-netbsd* | vax-*-openbsd*)
16011 COREFILE=netbsd-core.lo
16012 ;;
16013 vax-*-linux-*)
16014 COREFILE=trad-core.lo
16015 TRAD_HEADER='"hosts/vaxlinux.h"'
16016 ;;
16017 vax-*-*)
16018 COREFILE=trad-core.lo
16019 TRAD_HEADER='"hosts/vaxbsd.h"'
16020 ;;
16021 x86_64-*-linux*)
16022 CORE_HEADER='"hosts/x86-64linux.h"'
16023 ;;
16024 x86_64-*-netbsd* | x86_64-*-openbsd*)
16025 COREFILE=netbsd-core.lo
16026 ;;
16027 esac
16028
16029 case "$COREFILE" in
16030 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
16031 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
16032 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
16033 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
16034 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
16035 osf-core.lo) COREFLAG=-DOSF_CORE ;;
16036 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
16037 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
16038 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
16039 esac
16040
16041 # ELF corefile support has several flavors, but all of
16042 # them use something called <sys/procfs.h>
16043
16044 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
16045
16046 for ac_header in sys/procfs.h
16047 do :
16048 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
16049 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
16050 cat >>confdefs.h <<_ACEOF
16051 #define HAVE_SYS_PROCFS_H 1
16052 _ACEOF
16053
16054 fi
16055
16056 done
16057
16058 if test "$ac_cv_header_sys_procfs_h" = yes; then
16059
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
16061 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
16062 if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then :
16063 $as_echo_n "(cached) " >&6
16064 else
16065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16067
16068 #define _SYSCALL32
16069 #include <sys/procfs.h>
16070 int
16071 main ()
16072 {
16073 prstatus_t avar
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 if ac_fn_c_try_compile "$LINENO"; then :
16079 bfd_cv_have_sys_procfs_type_prstatus_t=yes
16080 else
16081 bfd_cv_have_sys_procfs_type_prstatus_t=no
16082
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085 fi
16086
16087 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
16088
16089 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
16090
16091 fi
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
16093 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
16094
16095
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
16097 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
16098 if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then :
16099 $as_echo_n "(cached) " >&6
16100 else
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16103
16104 #define _SYSCALL32
16105 #include <sys/procfs.h>
16106 int
16107 main ()
16108 {
16109 prstatus32_t avar
16110 ;
16111 return 0;
16112 }
16113 _ACEOF
16114 if ac_fn_c_try_compile "$LINENO"; then :
16115 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
16116 else
16117 bfd_cv_have_sys_procfs_type_prstatus32_t=no
16118
16119 fi
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121 fi
16122
16123 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
16124
16125 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
16126
16127 fi
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
16129 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
16130
16131
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
16133 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
16134 if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then :
16135 $as_echo_n "(cached) " >&6
16136 else
16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h. */
16139
16140 #define _SYSCALL32
16141 #include <sys/procfs.h>
16142 int
16143 main ()
16144 {
16145 prstatus_t avar; void* aref = (void*) &avar.pr_who
16146 ;
16147 return 0;
16148 }
16149 _ACEOF
16150 if ac_fn_c_try_compile "$LINENO"; then :
16151 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
16152 else
16153 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
16154
16155 fi
16156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157 fi
16158
16159 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
16160
16161 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
16162
16163 fi
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
16165 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
16166
16167
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
16169 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
16170 if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then :
16171 $as_echo_n "(cached) " >&6
16172 else
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16175
16176 #define _SYSCALL32
16177 #include <sys/procfs.h>
16178 int
16179 main ()
16180 {
16181 prstatus32_t avar; void* aref = (void*) &avar.pr_who
16182 ;
16183 return 0;
16184 }
16185 _ACEOF
16186 if ac_fn_c_try_compile "$LINENO"; then :
16187 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
16188 else
16189 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
16190
16191 fi
16192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16193 fi
16194
16195 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
16196
16197 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
16198
16199 fi
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
16201 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
16202
16203
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
16205 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
16206 if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then :
16207 $as_echo_n "(cached) " >&6
16208 else
16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210 /* end confdefs.h. */
16211
16212 #define _SYSCALL32
16213 #include <sys/procfs.h>
16214 int
16215 main ()
16216 {
16217 pstatus_t avar
16218 ;
16219 return 0;
16220 }
16221 _ACEOF
16222 if ac_fn_c_try_compile "$LINENO"; then :
16223 bfd_cv_have_sys_procfs_type_pstatus_t=yes
16224 else
16225 bfd_cv_have_sys_procfs_type_pstatus_t=no
16226
16227 fi
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 fi
16230
16231 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
16232
16233 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
16234
16235 fi
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
16237 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
16238
16239
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
16241 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
16242 if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then :
16243 $as_echo_n "(cached) " >&6
16244 else
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247
16248 #define _SYSCALL32
16249 #include <sys/procfs.h>
16250 int
16251 main ()
16252 {
16253 pxstatus_t avar
16254 ;
16255 return 0;
16256 }
16257 _ACEOF
16258 if ac_fn_c_try_compile "$LINENO"; then :
16259 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
16260 else
16261 bfd_cv_have_sys_procfs_type_pxstatus_t=no
16262
16263 fi
16264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265 fi
16266
16267 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
16268
16269 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
16270
16271 fi
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
16273 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
16274
16275
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
16277 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
16278 if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then :
16279 $as_echo_n "(cached) " >&6
16280 else
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283
16284 #define _SYSCALL32
16285 #include <sys/procfs.h>
16286 int
16287 main ()
16288 {
16289 pstatus32_t avar
16290 ;
16291 return 0;
16292 }
16293 _ACEOF
16294 if ac_fn_c_try_compile "$LINENO"; then :
16295 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
16296 else
16297 bfd_cv_have_sys_procfs_type_pstatus32_t=no
16298
16299 fi
16300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16301 fi
16302
16303 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
16304
16305 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
16306
16307 fi
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
16309 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
16310
16311
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
16313 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
16314 if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then :
16315 $as_echo_n "(cached) " >&6
16316 else
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319
16320 #define _SYSCALL32
16321 #include <sys/procfs.h>
16322 int
16323 main ()
16324 {
16325 prpsinfo_t avar
16326 ;
16327 return 0;
16328 }
16329 _ACEOF
16330 if ac_fn_c_try_compile "$LINENO"; then :
16331 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
16332 else
16333 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
16334
16335 fi
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337 fi
16338
16339 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
16340
16341 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
16342
16343 fi
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
16345 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
16346
16347
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
16349 $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
16350 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then :
16351 $as_echo_n "(cached) " >&6
16352 else
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16355
16356 #define _SYSCALL32
16357 #include <sys/procfs.h>
16358 int
16359 main ()
16360 {
16361 prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
16362 ;
16363 return 0;
16364 }
16365 _ACEOF
16366 if ac_fn_c_try_compile "$LINENO"; then :
16367 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
16368 else
16369 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
16370
16371 fi
16372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 fi
16374
16375 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
16376
16377 $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
16378
16379 fi
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
16381 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
16382
16383
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
16385 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
16386 if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then :
16387 $as_echo_n "(cached) " >&6
16388 else
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h. */
16391
16392 #define _SYSCALL32
16393 #include <sys/procfs.h>
16394 int
16395 main ()
16396 {
16397 prpsinfo32_t avar
16398 ;
16399 return 0;
16400 }
16401 _ACEOF
16402 if ac_fn_c_try_compile "$LINENO"; then :
16403 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
16404 else
16405 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
16406
16407 fi
16408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16409 fi
16410
16411 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
16412
16413 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
16414
16415 fi
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
16417 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
16418
16419
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
16421 $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
16422 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then :
16423 $as_echo_n "(cached) " >&6
16424 else
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16427
16428 #define _SYSCALL32
16429 #include <sys/procfs.h>
16430 int
16431 main ()
16432 {
16433 prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
16434 ;
16435 return 0;
16436 }
16437 _ACEOF
16438 if ac_fn_c_try_compile "$LINENO"; then :
16439 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
16440 else
16441 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
16442
16443 fi
16444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445 fi
16446
16447 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
16448
16449 $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
16450
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
16453 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
16454
16455
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
16457 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
16458 if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then :
16459 $as_echo_n "(cached) " >&6
16460 else
16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16463
16464 #define _SYSCALL32
16465 #include <sys/procfs.h>
16466 int
16467 main ()
16468 {
16469 psinfo_t avar
16470 ;
16471 return 0;
16472 }
16473 _ACEOF
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475 bfd_cv_have_sys_procfs_type_psinfo_t=yes
16476 else
16477 bfd_cv_have_sys_procfs_type_psinfo_t=no
16478
16479 fi
16480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481 fi
16482
16483 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
16484
16485 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
16486
16487 fi
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
16489 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
16490
16491
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
16493 $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
16494 if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then :
16495 $as_echo_n "(cached) " >&6
16496 else
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16499
16500 #define _SYSCALL32
16501 #include <sys/procfs.h>
16502 int
16503 main ()
16504 {
16505 psinfo_t avar; void* aref = (void*) &avar.pr_pid
16506 ;
16507 return 0;
16508 }
16509 _ACEOF
16510 if ac_fn_c_try_compile "$LINENO"; then :
16511 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
16512 else
16513 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
16514
16515 fi
16516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16517 fi
16518
16519 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
16520
16521 $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
16522
16523 fi
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
16525 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
16526
16527
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
16529 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
16530 if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then :
16531 $as_echo_n "(cached) " >&6
16532 else
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16535
16536 #define _SYSCALL32
16537 #include <sys/procfs.h>
16538 int
16539 main ()
16540 {
16541 psinfo32_t avar
16542 ;
16543 return 0;
16544 }
16545 _ACEOF
16546 if ac_fn_c_try_compile "$LINENO"; then :
16547 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
16548 else
16549 bfd_cv_have_sys_procfs_type_psinfo32_t=no
16550
16551 fi
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 fi
16554
16555 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
16556
16557 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
16558
16559 fi
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
16561 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
16562
16563
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
16565 $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
16566 if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then :
16567 $as_echo_n "(cached) " >&6
16568 else
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16571
16572 #define _SYSCALL32
16573 #include <sys/procfs.h>
16574 int
16575 main ()
16576 {
16577 psinfo32_t avar; void* aref = (void*) &avar.pr_pid
16578 ;
16579 return 0;
16580 }
16581 _ACEOF
16582 if ac_fn_c_try_compile "$LINENO"; then :
16583 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
16584 else
16585 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
16586
16587 fi
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589 fi
16590
16591 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
16592
16593 $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
16594
16595 fi
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
16597 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
16598
16599
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
16601 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
16602 if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then :
16603 $as_echo_n "(cached) " >&6
16604 else
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16607
16608 #define _SYSCALL32
16609 #include <sys/procfs.h>
16610 int
16611 main ()
16612 {
16613 lwpstatus_t avar
16614 ;
16615 return 0;
16616 }
16617 _ACEOF
16618 if ac_fn_c_try_compile "$LINENO"; then :
16619 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
16620 else
16621 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
16622
16623 fi
16624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625 fi
16626
16627 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
16628
16629 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
16630
16631 fi
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
16633 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
16634
16635
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
16637 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
16638 if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then :
16639 $as_echo_n "(cached) " >&6
16640 else
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16643
16644 #define _SYSCALL32
16645 #include <sys/procfs.h>
16646 int
16647 main ()
16648 {
16649 lwpxstatus_t avar
16650 ;
16651 return 0;
16652 }
16653 _ACEOF
16654 if ac_fn_c_try_compile "$LINENO"; then :
16655 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
16656 else
16657 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
16658
16659 fi
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 fi
16662
16663 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
16664
16665 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
16666
16667 fi
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
16669 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
16670
16671
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
16673 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
16674 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then :
16675 $as_echo_n "(cached) " >&6
16676 else
16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16678 /* end confdefs.h. */
16679
16680 #define _SYSCALL32
16681 #include <sys/procfs.h>
16682 int
16683 main ()
16684 {
16685 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
16686 ;
16687 return 0;
16688 }
16689 _ACEOF
16690 if ac_fn_c_try_compile "$LINENO"; then :
16691 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
16692 else
16693 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
16694
16695 fi
16696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16697 fi
16698
16699 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
16700
16701 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
16702
16703 fi
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
16705 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
16706
16707
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
16709 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
16710 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h. */
16715
16716 #define _SYSCALL32
16717 #include <sys/procfs.h>
16718 int
16719 main ()
16720 {
16721 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
16722 ;
16723 return 0;
16724 }
16725 _ACEOF
16726 if ac_fn_c_try_compile "$LINENO"; then :
16727 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
16728 else
16729 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
16730
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733 fi
16734
16735 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
16736
16737 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
16738
16739 fi
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
16741 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
16742
16743
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
16745 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
16746 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then :
16747 $as_echo_n "(cached) " >&6
16748 else
16749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750 /* end confdefs.h. */
16751
16752 #define _SYSCALL32
16753 #include <sys/procfs.h>
16754 int
16755 main ()
16756 {
16757 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
16758 ;
16759 return 0;
16760 }
16761 _ACEOF
16762 if ac_fn_c_try_compile "$LINENO"; then :
16763 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
16764 else
16765 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
16766
16767 fi
16768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16769 fi
16770
16771 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
16772
16773 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
16774
16775 fi
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
16777 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
16778
16779
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
16781 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
16782 if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then :
16783 $as_echo_n "(cached) " >&6
16784 else
16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16787
16788 #define _SYSCALL32
16789 #include <sys/procfs.h>
16790 int
16791 main ()
16792 {
16793 win32_pstatus_t avar
16794 ;
16795 return 0;
16796 }
16797 _ACEOF
16798 if ac_fn_c_try_compile "$LINENO"; then :
16799 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
16800 else
16801 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
16802
16803 fi
16804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16805 fi
16806
16807 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
16808
16809 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
16810
16811 fi
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
16813 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
16814
16815 fi
16816 fi
16817
16818
16819 if test -n "$CORE_HEADER"; then
16820
16821 cat >>confdefs.h <<_ACEOF
16822 #define CORE_HEADER $CORE_HEADER
16823 _ACEOF
16824
16825 fi
16826 if test -n "$TRAD_HEADER"; then
16827
16828 cat >>confdefs.h <<_ACEOF
16829 #define TRAD_HEADER $TRAD_HEADER
16830 _ACEOF
16831
16832 fi
16833
16834 if test "$plugins" = "yes"; then
16835 supports_plugins=1
16836 else
16837 supports_plugins=0
16838 fi
16839
16840
16841
16842 # Determine the host dependent file_ptr a.k.a. off_t type. In order
16843 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
16844 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
16845 # Hopefully a reasonable assumption since fseeko et.al. should be
16846 # upward compatible.
16847 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
16848 do :
16849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16850 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16851 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16852 cat >>confdefs.h <<_ACEOF
16853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16854 _ACEOF
16855
16856 fi
16857 done
16858
16859 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
16860 if test "x$ac_cv_have_decl_ftello" = xyes; then :
16861 ac_have_decl=1
16862 else
16863 ac_have_decl=0
16864 fi
16865
16866 cat >>confdefs.h <<_ACEOF
16867 #define HAVE_DECL_FTELLO $ac_have_decl
16868 _ACEOF
16869 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
16870 if test "x$ac_cv_have_decl_ftello64" = xyes; then :
16871 ac_have_decl=1
16872 else
16873 ac_have_decl=0
16874 fi
16875
16876 cat >>confdefs.h <<_ACEOF
16877 #define HAVE_DECL_FTELLO64 $ac_have_decl
16878 _ACEOF
16879 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
16880 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
16881 ac_have_decl=1
16882 else
16883 ac_have_decl=0
16884 fi
16885
16886 cat >>confdefs.h <<_ACEOF
16887 #define HAVE_DECL_FSEEKO $ac_have_decl
16888 _ACEOF
16889 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
16890 if test "x$ac_cv_have_decl_fseeko64" = xyes; then :
16891 ac_have_decl=1
16892 else
16893 ac_have_decl=0
16894 fi
16895
16896 cat >>confdefs.h <<_ACEOF
16897 #define HAVE_DECL_FSEEKO64 $ac_have_decl
16898 _ACEOF
16899 ac_fn_c_check_decl "$LINENO" "fopen64" "ac_cv_have_decl_fopen64" "$ac_includes_default"
16900 if test "x$ac_cv_have_decl_fopen64" = xyes; then :
16901 ac_have_decl=1
16902 else
16903 ac_have_decl=0
16904 fi
16905
16906 cat >>confdefs.h <<_ACEOF
16907 #define HAVE_DECL_FOPEN64 $ac_have_decl
16908 _ACEOF
16909
16910 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
16911 # The cast to long int works around a bug in the HP C Compiler
16912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16914 # This bug is HP SR number 8606223364.
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16916 $as_echo_n "checking size of off_t... " >&6; }
16917 if ${ac_cv_sizeof_off_t+:} false; then :
16918 $as_echo_n "(cached) " >&6
16919 else
16920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
16921
16922 else
16923 if test "$ac_cv_type_off_t" = yes; then
16924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16926 as_fn_error 77 "cannot compute sizeof (off_t)
16927 See \`config.log' for more details" "$LINENO" 5; }
16928 else
16929 ac_cv_sizeof_off_t=0
16930 fi
16931 fi
16932
16933 fi
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16935 $as_echo "$ac_cv_sizeof_off_t" >&6; }
16936
16937
16938
16939 cat >>confdefs.h <<_ACEOF
16940 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16941 _ACEOF
16942
16943
16944 fi
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
16946 $as_echo_n "checking file_ptr type... " >&6; }
16947 bfd_file_ptr="long"
16948 bfd_ufile_ptr="unsigned long"
16949 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
16950 -o x"${ac_cv_sizeof_off_t}" = x8; then
16951 bfd_file_ptr=int64_t
16952 bfd_ufile_ptr=uint64_t
16953 fi
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
16955 $as_echo "$bfd_file_ptr" >&6; }
16956
16957
16958
16959
16960
16961
16962 for ac_header in $ac_header_list
16963 do :
16964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16965 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16966 "
16967 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16968 cat >>confdefs.h <<_ACEOF
16969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16970 _ACEOF
16971
16972 fi
16973
16974 done
16975
16976
16977
16978
16979
16980
16981
16982 save_ASAN_OPTIONS="$ASAN_OPTIONS"
16983 ASAN_OPTIONS=detect_leaks=0
16984 export ASAN_OPTIONS
16985
16986 for ac_func in getpagesize
16987 do :
16988 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16989 if test "x$ac_cv_func_getpagesize" = xyes; then :
16990 cat >>confdefs.h <<_ACEOF
16991 #define HAVE_GETPAGESIZE 1
16992 _ACEOF
16993
16994 fi
16995 done
16996
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16998 $as_echo_n "checking for working mmap... " >&6; }
16999 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
17000 $as_echo_n "(cached) " >&6
17001 else
17002 if test "$cross_compiling" = yes; then :
17003 ac_cv_func_mmap_fixed_mapped=no
17004 else
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006 /* end confdefs.h. */
17007 $ac_includes_default
17008 /* malloc might have been renamed as rpl_malloc. */
17009 #undef malloc
17010
17011 /* Thanks to Mike Haertel and Jim Avera for this test.
17012 Here is a matrix of mmap possibilities:
17013 mmap private not fixed
17014 mmap private fixed at somewhere currently unmapped
17015 mmap private fixed at somewhere already mapped
17016 mmap shared not fixed
17017 mmap shared fixed at somewhere currently unmapped
17018 mmap shared fixed at somewhere already mapped
17019 For private mappings, we should verify that changes cannot be read()
17020 back from the file, nor mmap's back from the file at a different
17021 address. (There have been systems where private was not correctly
17022 implemented like the infamous i386 svr4.0, and systems where the
17023 VM page cache was not coherent with the file system buffer cache
17024 like early versions of FreeBSD and possibly contemporary NetBSD.)
17025 For shared mappings, we should conversely verify that changes get
17026 propagated back to all the places they're supposed to be.
17027
17028 Grep wants private fixed already mapped.
17029 The main things grep needs to know about mmap are:
17030 * does it exist and is it safe to write into the mmap'd area
17031 * how to use it (BSD variants) */
17032
17033 #include <fcntl.h>
17034 #include <sys/mman.h>
17035
17036 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17037 char *malloc ();
17038 #endif
17039
17040 /* This mess was copied from the GNU getpagesize.h. */
17041 #ifndef HAVE_GETPAGESIZE
17042 # ifdef _SC_PAGESIZE
17043 # define getpagesize() sysconf(_SC_PAGESIZE)
17044 # else /* no _SC_PAGESIZE */
17045 # ifdef HAVE_SYS_PARAM_H
17046 # include <sys/param.h>
17047 # ifdef EXEC_PAGESIZE
17048 # define getpagesize() EXEC_PAGESIZE
17049 # else /* no EXEC_PAGESIZE */
17050 # ifdef NBPG
17051 # define getpagesize() NBPG * CLSIZE
17052 # ifndef CLSIZE
17053 # define CLSIZE 1
17054 # endif /* no CLSIZE */
17055 # else /* no NBPG */
17056 # ifdef NBPC
17057 # define getpagesize() NBPC
17058 # else /* no NBPC */
17059 # ifdef PAGESIZE
17060 # define getpagesize() PAGESIZE
17061 # endif /* PAGESIZE */
17062 # endif /* no NBPC */
17063 # endif /* no NBPG */
17064 # endif /* no EXEC_PAGESIZE */
17065 # else /* no HAVE_SYS_PARAM_H */
17066 # define getpagesize() 8192 /* punt totally */
17067 # endif /* no HAVE_SYS_PARAM_H */
17068 # endif /* no _SC_PAGESIZE */
17069
17070 #endif /* no HAVE_GETPAGESIZE */
17071
17072 int
17073 main ()
17074 {
17075 char *data, *data2, *data3;
17076 const char *cdata2;
17077 int i, pagesize;
17078 int fd, fd2;
17079
17080 pagesize = getpagesize ();
17081
17082 /* First, make a file with some known garbage in it. */
17083 data = (char *) malloc (pagesize);
17084 if (!data)
17085 return 1;
17086 for (i = 0; i < pagesize; ++i)
17087 *(data + i) = rand ();
17088 umask (0);
17089 fd = creat ("conftest.mmap", 0600);
17090 if (fd < 0)
17091 return 2;
17092 if (write (fd, data, pagesize) != pagesize)
17093 return 3;
17094 close (fd);
17095
17096 /* Next, check that the tail of a page is zero-filled. File must have
17097 non-zero length, otherwise we risk SIGBUS for entire page. */
17098 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17099 if (fd2 < 0)
17100 return 4;
17101 cdata2 = "";
17102 if (write (fd2, cdata2, 1) != 1)
17103 return 5;
17104 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17105 if (data2 == MAP_FAILED)
17106 return 6;
17107 for (i = 0; i < pagesize; ++i)
17108 if (*(data2 + i))
17109 return 7;
17110 close (fd2);
17111 if (munmap (data2, pagesize))
17112 return 8;
17113
17114 /* Next, try to mmap the file at a fixed address which already has
17115 something else allocated at it. If we can, also make sure that
17116 we see the same garbage. */
17117 fd = open ("conftest.mmap", O_RDWR);
17118 if (fd < 0)
17119 return 9;
17120 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17121 MAP_PRIVATE | MAP_FIXED, fd, 0L))
17122 return 10;
17123 for (i = 0; i < pagesize; ++i)
17124 if (*(data + i) != *(data2 + i))
17125 return 11;
17126
17127 /* Finally, make sure that changes to the mapped area do not
17128 percolate back to the file as seen by read(). (This is a bug on
17129 some variants of i386 svr4.0.) */
17130 for (i = 0; i < pagesize; ++i)
17131 *(data2 + i) = *(data2 + i) + 1;
17132 data3 = (char *) malloc (pagesize);
17133 if (!data3)
17134 return 12;
17135 if (read (fd, data3, pagesize) != pagesize)
17136 return 13;
17137 for (i = 0; i < pagesize; ++i)
17138 if (*(data + i) != *(data3 + i))
17139 return 14;
17140 close (fd);
17141 return 0;
17142 }
17143 _ACEOF
17144 if ac_fn_c_try_run "$LINENO"; then :
17145 ac_cv_func_mmap_fixed_mapped=yes
17146 else
17147 ac_cv_func_mmap_fixed_mapped=no
17148 fi
17149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17150 conftest.$ac_objext conftest.beam conftest.$ac_ext
17151 fi
17152
17153 fi
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17155 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17156 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17157
17158 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
17159
17160 fi
17161 rm -f conftest.mmap conftest.txt
17162
17163 ASAN_OPTIONS="$save_ASAN_OPTIONS"
17164
17165 for ac_func in madvise mprotect
17166 do :
17167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17169 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17170 cat >>confdefs.h <<_ACEOF
17171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17172 _ACEOF
17173
17174 fi
17175 done
17176
17177 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
17178 true+yes )
17179 $as_echo "#define USE_MMAP 1" >>confdefs.h
17180 ;;
17181 esac
17182
17183 ac_config_files="$ac_config_files Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
17184
17185
17186 ac_config_commands="$ac_config_commands default"
17187
17188
17189
17190
17191
17192
17193
17194 cat >confcache <<\_ACEOF
17195 # This file is a shell script that caches the results of configure
17196 # tests run on this system so they can be shared between configure
17197 # scripts and configure runs, see configure's option --config-cache.
17198 # It is not useful on other systems. If it contains results you don't
17199 # want to keep, you may remove or edit it.
17200 #
17201 # config.status only pays attention to the cache file if you give it
17202 # the --recheck option to rerun configure.
17203 #
17204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17206 # following values.
17207
17208 _ACEOF
17209
17210 # The following way of writing the cache mishandles newlines in values,
17211 # but we know of no workaround that is simple, portable, and efficient.
17212 # So, we kill variables containing newlines.
17213 # Ultrix sh set writes to stderr and can't be redirected directly,
17214 # and sets the high bit in the cache file unless we assign to the vars.
17215 (
17216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17217 eval ac_val=\$$ac_var
17218 case $ac_val in #(
17219 *${as_nl}*)
17220 case $ac_var in #(
17221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17223 esac
17224 case $ac_var in #(
17225 _ | IFS | as_nl) ;; #(
17226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17227 *) { eval $ac_var=; unset $ac_var;} ;;
17228 esac ;;
17229 esac
17230 done
17231
17232 (set) 2>&1 |
17233 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17234 *${as_nl}ac_space=\ *)
17235 # `set' does not quote correctly, so add quotes: double-quote
17236 # substitution turns \\\\ into \\, and sed turns \\ into \.
17237 sed -n \
17238 "s/'/'\\\\''/g;
17239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17240 ;; #(
17241 *)
17242 # `set' quotes correctly as required by POSIX, so do not add quotes.
17243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17244 ;;
17245 esac |
17246 sort
17247 ) |
17248 sed '
17249 /^ac_cv_env_/b end
17250 t clear
17251 :clear
17252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17253 t end
17254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17255 :end' >>confcache
17256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17257 if test -w "$cache_file"; then
17258 if test "x$cache_file" != "x/dev/null"; then
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17260 $as_echo "$as_me: updating cache $cache_file" >&6;}
17261 if test ! -f "$cache_file" || test -h "$cache_file"; then
17262 cat confcache >"$cache_file"
17263 else
17264 case $cache_file in #(
17265 */* | ?:*)
17266 mv -f confcache "$cache_file"$$ &&
17267 mv -f "$cache_file"$$ "$cache_file" ;; #(
17268 *)
17269 mv -f confcache "$cache_file" ;;
17270 esac
17271 fi
17272 fi
17273 else
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17275 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17276 fi
17277 fi
17278 rm -f confcache
17279
17280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17281 # Let make expand exec_prefix.
17282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17283
17284 DEFS=-DHAVE_CONFIG_H
17285
17286 ac_libobjs=
17287 ac_ltlibobjs=
17288 U=
17289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17290 # 1. Remove the extension, and $U if already installed.
17291 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17292 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17293 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17294 # will be set to the directory where LIBOBJS objects are built.
17295 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17296 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17297 done
17298 LIBOBJS=$ac_libobjs
17299
17300 LTLIBOBJS=$ac_ltlibobjs
17301
17302
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17304 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17305 if test -n "$am_sleep_pid"; then
17306 # Hide warnings about reused PIDs.
17307 wait $am_sleep_pid 2>/dev/null
17308 fi
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17310 $as_echo "done" >&6; }
17311 if test -n "$EXEEXT"; then
17312 am__EXEEXT_TRUE=
17313 am__EXEEXT_FALSE='#'
17314 else
17315 am__EXEEXT_TRUE='#'
17316 am__EXEEXT_FALSE=
17317 fi
17318
17319 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17320 as_fn_error $? "conditional \"AMDEP\" was never defined.
17321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17322 fi
17323 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17324 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17326 fi
17327 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
17328 as_fn_error $? "conditional \"PLUGINS\" was never defined.
17329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17330 fi
17331 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17332 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17334 fi
17335 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17336 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
17337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17338 fi
17339 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
17340 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
17341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17342 fi
17343
17344
17345 : "${CONFIG_STATUS=./config.status}"
17346 ac_write_fail=0
17347 ac_clean_files_save=$ac_clean_files
17348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17351 as_write_fail=0
17352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17353 #! $SHELL
17354 # Generated by $as_me.
17355 # Run this file to recreate the current configuration.
17356 # Compiler output produced by configure, useful for debugging
17357 # configure, is in config.log if it exists.
17358
17359 debug=false
17360 ac_cs_recheck=false
17361 ac_cs_silent=false
17362
17363 SHELL=\${CONFIG_SHELL-$SHELL}
17364 export SHELL
17365 _ASEOF
17366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17367 ## -------------------- ##
17368 ## M4sh Initialization. ##
17369 ## -------------------- ##
17370
17371 # Be more Bourne compatible
17372 DUALCASE=1; export DUALCASE # for MKS sh
17373 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17374 emulate sh
17375 NULLCMD=:
17376 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17377 # is contrary to our usage. Disable this feature.
17378 alias -g '${1+"$@"}'='"$@"'
17379 setopt NO_GLOB_SUBST
17380 else
17381 case `(set -o) 2>/dev/null` in #(
17382 *posix*) :
17383 set -o posix ;; #(
17384 *) :
17385 ;;
17386 esac
17387 fi
17388
17389
17390 as_nl='
17391 '
17392 export as_nl
17393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17394 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17397 # Prefer a ksh shell builtin over an external printf program on Solaris,
17398 # but without wasting forks for bash or zsh.
17399 if test -z "$BASH_VERSION$ZSH_VERSION" \
17400 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17401 as_echo='print -r --'
17402 as_echo_n='print -rn --'
17403 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17404 as_echo='printf %s\n'
17405 as_echo_n='printf %s'
17406 else
17407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17408 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17409 as_echo_n='/usr/ucb/echo -n'
17410 else
17411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17412 as_echo_n_body='eval
17413 arg=$1;
17414 case $arg in #(
17415 *"$as_nl"*)
17416 expr "X$arg" : "X\\(.*\\)$as_nl";
17417 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17418 esac;
17419 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17420 '
17421 export as_echo_n_body
17422 as_echo_n='sh -c $as_echo_n_body as_echo'
17423 fi
17424 export as_echo_body
17425 as_echo='sh -c $as_echo_body as_echo'
17426 fi
17427
17428 # The user is always right.
17429 if test "${PATH_SEPARATOR+set}" != set; then
17430 PATH_SEPARATOR=:
17431 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17432 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17433 PATH_SEPARATOR=';'
17434 }
17435 fi
17436
17437
17438 # IFS
17439 # We need space, tab and new line, in precisely that order. Quoting is
17440 # there to prevent editors from complaining about space-tab.
17441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17442 # splitting by setting IFS to empty value.)
17443 IFS=" "" $as_nl"
17444
17445 # Find who we are. Look in the path if we contain no directory separator.
17446 as_myself=
17447 case $0 in #((
17448 *[\\/]* ) as_myself=$0 ;;
17449 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17450 for as_dir in $PATH
17451 do
17452 IFS=$as_save_IFS
17453 test -z "$as_dir" && as_dir=.
17454 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17455 done
17456 IFS=$as_save_IFS
17457
17458 ;;
17459 esac
17460 # We did not find ourselves, most probably we were run as `sh COMMAND'
17461 # in which case we are not to be found in the path.
17462 if test "x$as_myself" = x; then
17463 as_myself=$0
17464 fi
17465 if test ! -f "$as_myself"; then
17466 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17467 exit 1
17468 fi
17469
17470 # Unset variables that we do not need and which cause bugs (e.g. in
17471 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17472 # suppresses any "Segmentation fault" message there. '((' could
17473 # trigger a bug in pdksh 5.2.14.
17474 for as_var in BASH_ENV ENV MAIL MAILPATH
17475 do eval test x\${$as_var+set} = xset \
17476 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17477 done
17478 PS1='$ '
17479 PS2='> '
17480 PS4='+ '
17481
17482 # NLS nuisances.
17483 LC_ALL=C
17484 export LC_ALL
17485 LANGUAGE=C
17486 export LANGUAGE
17487
17488 # CDPATH.
17489 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17490
17491
17492 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17493 # ----------------------------------------
17494 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17495 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17496 # script with STATUS, using 1 if that was 0.
17497 as_fn_error ()
17498 {
17499 as_status=$1; test $as_status -eq 0 && as_status=1
17500 if test "$4"; then
17501 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17502 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17503 fi
17504 $as_echo "$as_me: error: $2" >&2
17505 as_fn_exit $as_status
17506 } # as_fn_error
17507
17508
17509 # as_fn_set_status STATUS
17510 # -----------------------
17511 # Set $? to STATUS, without forking.
17512 as_fn_set_status ()
17513 {
17514 return $1
17515 } # as_fn_set_status
17516
17517 # as_fn_exit STATUS
17518 # -----------------
17519 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17520 as_fn_exit ()
17521 {
17522 set +e
17523 as_fn_set_status $1
17524 exit $1
17525 } # as_fn_exit
17526
17527 # as_fn_unset VAR
17528 # ---------------
17529 # Portably unset VAR.
17530 as_fn_unset ()
17531 {
17532 { eval $1=; unset $1;}
17533 }
17534 as_unset=as_fn_unset
17535 # as_fn_append VAR VALUE
17536 # ----------------------
17537 # Append the text in VALUE to the end of the definition contained in VAR. Take
17538 # advantage of any shell optimizations that allow amortized linear growth over
17539 # repeated appends, instead of the typical quadratic growth present in naive
17540 # implementations.
17541 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17542 eval 'as_fn_append ()
17543 {
17544 eval $1+=\$2
17545 }'
17546 else
17547 as_fn_append ()
17548 {
17549 eval $1=\$$1\$2
17550 }
17551 fi # as_fn_append
17552
17553 # as_fn_arith ARG...
17554 # ------------------
17555 # Perform arithmetic evaluation on the ARGs, and store the result in the
17556 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17557 # must be portable across $(()) and expr.
17558 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17559 eval 'as_fn_arith ()
17560 {
17561 as_val=$(( $* ))
17562 }'
17563 else
17564 as_fn_arith ()
17565 {
17566 as_val=`expr "$@" || test $? -eq 1`
17567 }
17568 fi # as_fn_arith
17569
17570
17571 if expr a : '\(a\)' >/dev/null 2>&1 &&
17572 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17573 as_expr=expr
17574 else
17575 as_expr=false
17576 fi
17577
17578 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17579 as_basename=basename
17580 else
17581 as_basename=false
17582 fi
17583
17584 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17585 as_dirname=dirname
17586 else
17587 as_dirname=false
17588 fi
17589
17590 as_me=`$as_basename -- "$0" ||
17591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17592 X"$0" : 'X\(//\)$' \| \
17593 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17594 $as_echo X/"$0" |
17595 sed '/^.*\/\([^/][^/]*\)\/*$/{
17596 s//\1/
17597 q
17598 }
17599 /^X\/\(\/\/\)$/{
17600 s//\1/
17601 q
17602 }
17603 /^X\/\(\/\).*/{
17604 s//\1/
17605 q
17606 }
17607 s/.*/./; q'`
17608
17609 # Avoid depending upon Character Ranges.
17610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17613 as_cr_digits='0123456789'
17614 as_cr_alnum=$as_cr_Letters$as_cr_digits
17615
17616 ECHO_C= ECHO_N= ECHO_T=
17617 case `echo -n x` in #(((((
17618 -n*)
17619 case `echo 'xy\c'` in
17620 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17621 xy) ECHO_C='\c';;
17622 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17623 ECHO_T=' ';;
17624 esac;;
17625 *)
17626 ECHO_N='-n';;
17627 esac
17628
17629 rm -f conf$$ conf$$.exe conf$$.file
17630 if test -d conf$$.dir; then
17631 rm -f conf$$.dir/conf$$.file
17632 else
17633 rm -f conf$$.dir
17634 mkdir conf$$.dir 2>/dev/null
17635 fi
17636 if (echo >conf$$.file) 2>/dev/null; then
17637 if ln -s conf$$.file conf$$ 2>/dev/null; then
17638 as_ln_s='ln -s'
17639 # ... but there are two gotchas:
17640 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17641 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17642 # In both cases, we have to default to `cp -pR'.
17643 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17644 as_ln_s='cp -pR'
17645 elif ln conf$$.file conf$$ 2>/dev/null; then
17646 as_ln_s=ln
17647 else
17648 as_ln_s='cp -pR'
17649 fi
17650 else
17651 as_ln_s='cp -pR'
17652 fi
17653 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17654 rmdir conf$$.dir 2>/dev/null
17655
17656
17657 # as_fn_mkdir_p
17658 # -------------
17659 # Create "$as_dir" as a directory, including parents if necessary.
17660 as_fn_mkdir_p ()
17661 {
17662
17663 case $as_dir in #(
17664 -*) as_dir=./$as_dir;;
17665 esac
17666 test -d "$as_dir" || eval $as_mkdir_p || {
17667 as_dirs=
17668 while :; do
17669 case $as_dir in #(
17670 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17671 *) as_qdir=$as_dir;;
17672 esac
17673 as_dirs="'$as_qdir' $as_dirs"
17674 as_dir=`$as_dirname -- "$as_dir" ||
17675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17676 X"$as_dir" : 'X\(//\)[^/]' \| \
17677 X"$as_dir" : 'X\(//\)$' \| \
17678 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17679 $as_echo X"$as_dir" |
17680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17681 s//\1/
17682 q
17683 }
17684 /^X\(\/\/\)[^/].*/{
17685 s//\1/
17686 q
17687 }
17688 /^X\(\/\/\)$/{
17689 s//\1/
17690 q
17691 }
17692 /^X\(\/\).*/{
17693 s//\1/
17694 q
17695 }
17696 s/.*/./; q'`
17697 test -d "$as_dir" && break
17698 done
17699 test -z "$as_dirs" || eval "mkdir $as_dirs"
17700 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17701
17702
17703 } # as_fn_mkdir_p
17704 if mkdir -p . 2>/dev/null; then
17705 as_mkdir_p='mkdir -p "$as_dir"'
17706 else
17707 test -d ./-p && rmdir ./-p
17708 as_mkdir_p=false
17709 fi
17710
17711
17712 # as_fn_executable_p FILE
17713 # -----------------------
17714 # Test if FILE is an executable regular file.
17715 as_fn_executable_p ()
17716 {
17717 test -f "$1" && test -x "$1"
17718 } # as_fn_executable_p
17719 as_test_x='test -x'
17720 as_executable_p=as_fn_executable_p
17721
17722 # Sed expression to map a string onto a valid CPP name.
17723 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17724
17725 # Sed expression to map a string onto a valid variable name.
17726 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17727
17728
17729 exec 6>&1
17730 ## ----------------------------------- ##
17731 ## Main body of $CONFIG_STATUS script. ##
17732 ## ----------------------------------- ##
17733 _ASEOF
17734 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17735
17736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17737 # Save the log message, to keep $0 and so on meaningful, and to
17738 # report actual input values of CONFIG_FILES etc. instead of their
17739 # values after options handling.
17740 ac_log="
17741 This file was extended by bfd $as_me 2.45.50, which was
17742 generated by GNU Autoconf 2.69. Invocation command line was
17743
17744 CONFIG_FILES = $CONFIG_FILES
17745 CONFIG_HEADERS = $CONFIG_HEADERS
17746 CONFIG_LINKS = $CONFIG_LINKS
17747 CONFIG_COMMANDS = $CONFIG_COMMANDS
17748 $ $0 $@
17749
17750 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17751 "
17752
17753 _ACEOF
17754
17755 case $ac_config_files in *"
17756 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17757 esac
17758
17759 case $ac_config_headers in *"
17760 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17761 esac
17762
17763
17764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17765 # Files that config.status was made for.
17766 config_files="$ac_config_files"
17767 config_headers="$ac_config_headers"
17768 config_commands="$ac_config_commands"
17769
17770 _ACEOF
17771
17772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17773 ac_cs_usage="\
17774 \`$as_me' instantiates files and other configuration actions
17775 from templates according to the current configuration. Unless the files
17776 and actions are specified as TAGs, all are instantiated by default.
17777
17778 Usage: $0 [OPTION]... [TAG]...
17779
17780 -h, --help print this help, then exit
17781 -V, --version print version number and configuration settings, then exit
17782 --config print configuration, then exit
17783 -q, --quiet, --silent
17784 do not print progress messages
17785 -d, --debug don't remove temporary files
17786 --recheck update $as_me by reconfiguring in the same conditions
17787 --file=FILE[:TEMPLATE]
17788 instantiate the configuration file FILE
17789 --header=FILE[:TEMPLATE]
17790 instantiate the configuration header FILE
17791
17792 Configuration files:
17793 $config_files
17794
17795 Configuration headers:
17796 $config_headers
17797
17798 Configuration commands:
17799 $config_commands
17800
17801 Report bugs to the package provider."
17802
17803 _ACEOF
17804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17805 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17806 ac_cs_version="\\
17807 bfd config.status 2.45.50
17808 configured by $0, generated by GNU Autoconf 2.69,
17809 with options \\"\$ac_cs_config\\"
17810
17811 Copyright (C) 2012 Free Software Foundation, Inc.
17812 This config.status script is free software; the Free Software Foundation
17813 gives unlimited permission to copy, distribute and modify it."
17814
17815 ac_pwd='$ac_pwd'
17816 srcdir='$srcdir'
17817 INSTALL='$INSTALL'
17818 MKDIR_P='$MKDIR_P'
17819 AWK='$AWK'
17820 test -n "\$AWK" || AWK=awk
17821 _ACEOF
17822
17823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17824 # The default lists apply if the user does not specify any file.
17825 ac_need_defaults=:
17826 while test $# != 0
17827 do
17828 case $1 in
17829 --*=?*)
17830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17832 ac_shift=:
17833 ;;
17834 --*=)
17835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17836 ac_optarg=
17837 ac_shift=:
17838 ;;
17839 *)
17840 ac_option=$1
17841 ac_optarg=$2
17842 ac_shift=shift
17843 ;;
17844 esac
17845
17846 case $ac_option in
17847 # Handling of the options.
17848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17849 ac_cs_recheck=: ;;
17850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17851 $as_echo "$ac_cs_version"; exit ;;
17852 --config | --confi | --conf | --con | --co | --c )
17853 $as_echo "$ac_cs_config"; exit ;;
17854 --debug | --debu | --deb | --de | --d | -d )
17855 debug=: ;;
17856 --file | --fil | --fi | --f )
17857 $ac_shift
17858 case $ac_optarg in
17859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17860 '') as_fn_error $? "missing file argument" ;;
17861 esac
17862 as_fn_append CONFIG_FILES " '$ac_optarg'"
17863 ac_need_defaults=false;;
17864 --header | --heade | --head | --hea )
17865 $ac_shift
17866 case $ac_optarg in
17867 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17868 esac
17869 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17870 ac_need_defaults=false;;
17871 --he | --h)
17872 # Conflict between --help and --header
17873 as_fn_error $? "ambiguous option: \`$1'
17874 Try \`$0 --help' for more information.";;
17875 --help | --hel | -h )
17876 $as_echo "$ac_cs_usage"; exit ;;
17877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17879 ac_cs_silent=: ;;
17880
17881 # This is an error.
17882 -*) as_fn_error $? "unrecognized option: \`$1'
17883 Try \`$0 --help' for more information." ;;
17884
17885 *) as_fn_append ac_config_targets " $1"
17886 ac_need_defaults=false ;;
17887
17888 esac
17889 shift
17890 done
17891
17892 ac_configure_extra_args=
17893
17894 if $ac_cs_silent; then
17895 exec 6>/dev/null
17896 ac_configure_extra_args="$ac_configure_extra_args --silent"
17897 fi
17898
17899 _ACEOF
17900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17901 if \$ac_cs_recheck; then
17902 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17903 shift
17904 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17905 CONFIG_SHELL='$SHELL'
17906 export CONFIG_SHELL
17907 exec "\$@"
17908 fi
17909
17910 _ACEOF
17911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17912 exec 5>>config.log
17913 {
17914 echo
17915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17916 ## Running $as_me. ##
17917 _ASBOX
17918 $as_echo "$ac_log"
17919 } >&5
17920
17921 _ACEOF
17922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17923 #
17924 # INIT-COMMANDS
17925 #
17926 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17927
17928
17929 # The HP-UX ksh and POSIX shell print the target directory to stdout
17930 # if CDPATH is set.
17931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17932
17933 sed_quote_subst='$sed_quote_subst'
17934 double_quote_subst='$double_quote_subst'
17935 delay_variable_subst='$delay_variable_subst'
17936 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17937 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17938 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17939 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17940 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17941 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17942 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17943 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17944 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17945 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17946 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17947 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17948 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17949 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17950 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17951 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17952 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17953 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17954 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17955 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17956 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17957 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17958 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17959 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17960 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17961 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17962 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17963 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17964 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17965 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17966 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17967 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17968 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17969 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17970 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17971 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17972 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17973 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17974 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17975 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17976 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17977 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17978 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17979 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17980 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17981 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17982 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17983 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17984 lt_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"`'
17985 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17986 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17987 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17988 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17989 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17990 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17991 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17992 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17993 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17994 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17995 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17996 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17997 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17998 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17999 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18000 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18001 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18002 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18003 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18004 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18005 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18006 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18007 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18008 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18009 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18010 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18011 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18012 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18013 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18014 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18015 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18016 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18017 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18018 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18019 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18020 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18021 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18022 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18023 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18024 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18025 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18026 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18027 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18028 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18029 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18030 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18031 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18032 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18033 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18034 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18035 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18036 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18037 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18038 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18039 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18040 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18041 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18042 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18043 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18044 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18045 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18046 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18047 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18048 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18049 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18050 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18051 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18052 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18053 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18054 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18055 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18056
18057 LTCC='$LTCC'
18058 LTCFLAGS='$LTCFLAGS'
18059 compiler='$compiler_DEFAULT'
18060
18061 # A function that is used when there is no print builtin or printf.
18062 func_fallback_echo ()
18063 {
18064 eval 'cat <<_LTECHO_EOF
18065 \$1
18066 _LTECHO_EOF'
18067 }
18068
18069 # Quote evaled strings.
18070 for var in SHELL \
18071 ECHO \
18072 SED \
18073 GREP \
18074 EGREP \
18075 FGREP \
18076 LD \
18077 NM \
18078 LN_S \
18079 lt_SP2NL \
18080 lt_NL2SP \
18081 reload_flag \
18082 OBJDUMP \
18083 deplibs_check_method \
18084 file_magic_cmd \
18085 AR \
18086 AR_FLAGS \
18087 STRIP \
18088 RANLIB \
18089 CC \
18090 CFLAGS \
18091 compiler \
18092 lt_cv_sys_global_symbol_pipe \
18093 lt_cv_sys_global_symbol_to_cdecl \
18094 lt_cv_sys_global_symbol_to_c_name_address \
18095 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18096 lt_prog_compiler_no_builtin_flag \
18097 lt_prog_compiler_wl \
18098 lt_prog_compiler_pic \
18099 lt_prog_compiler_static \
18100 lt_cv_prog_compiler_c_o \
18101 need_locks \
18102 DSYMUTIL \
18103 NMEDIT \
18104 LIPO \
18105 OTOOL \
18106 OTOOL64 \
18107 shrext_cmds \
18108 export_dynamic_flag_spec \
18109 whole_archive_flag_spec \
18110 compiler_needs_object \
18111 with_gnu_ld \
18112 allow_undefined_flag \
18113 no_undefined_flag \
18114 hardcode_libdir_flag_spec \
18115 hardcode_libdir_flag_spec_ld \
18116 hardcode_libdir_separator \
18117 fix_srcfile_path \
18118 exclude_expsyms \
18119 include_expsyms \
18120 file_list_spec \
18121 variables_saved_for_relink \
18122 libname_spec \
18123 library_names_spec \
18124 soname_spec \
18125 install_override_mode \
18126 finish_eval \
18127 old_striplib \
18128 striplib; do
18129 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18130 *[\\\\\\\`\\"\\\$]*)
18131 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18132 ;;
18133 *)
18134 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18135 ;;
18136 esac
18137 done
18138
18139 # Double-quote double-evaled strings.
18140 for var in reload_cmds \
18141 old_postinstall_cmds \
18142 old_postuninstall_cmds \
18143 old_archive_cmds \
18144 extract_expsyms_cmds \
18145 old_archive_from_new_cmds \
18146 old_archive_from_expsyms_cmds \
18147 archive_cmds \
18148 archive_expsym_cmds \
18149 module_cmds \
18150 module_expsym_cmds \
18151 export_symbols_cmds \
18152 prelink_cmds \
18153 postinstall_cmds \
18154 postuninstall_cmds \
18155 finish_cmds \
18156 sys_lib_search_path_spec \
18157 sys_lib_dlsearch_path_spec; do
18158 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18159 *[\\\\\\\`\\"\\\$]*)
18160 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18161 ;;
18162 *)
18163 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18164 ;;
18165 esac
18166 done
18167
18168 ac_aux_dir='$ac_aux_dir'
18169 xsi_shell='$xsi_shell'
18170 lt_shell_append='$lt_shell_append'
18171
18172 # See if we are running on zsh, and set the options which allow our
18173 # commands through without removal of \ escapes INIT.
18174 if test -n "\${ZSH_VERSION+set}" ; then
18175 setopt NO_GLOB_SUBST
18176 fi
18177
18178
18179 PACKAGE='$PACKAGE'
18180 VERSION='$VERSION'
18181 TIMESTAMP='$TIMESTAMP'
18182 RM='$RM'
18183 ofile='$ofile'
18184
18185
18186
18187 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18188 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18189 # from automake.
18190 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18191 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18192 LINGUAS="${LINGUAS-%UNSET%}"
18193
18194
18195
18196 _ACEOF
18197
18198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18199
18200 # Handling of arguments.
18201 for ac_config_target in $ac_config_targets
18202 do
18203 case $ac_config_target in
18204 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18205 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18206 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18207 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18208 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18209 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
18210 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18211 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18212
18213 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18214 esac
18215 done
18216
18217
18218 # If the user did not use the arguments to specify the items to instantiate,
18219 # then the envvar interface is used. Set only those that are not.
18220 # We use the long form for the default assignment because of an extremely
18221 # bizarre bug on SunOS 4.1.3.
18222 if $ac_need_defaults; then
18223 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18224 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18225 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18226 fi
18227
18228 # Have a temporary directory for convenience. Make it in the build tree
18229 # simply because there is no reason against having it here, and in addition,
18230 # creating and moving files from /tmp can sometimes cause problems.
18231 # Hook for its removal unless debugging.
18232 # Note that there is a small window in which the directory will not be cleaned:
18233 # after its creation but before its name has been assigned to `$tmp'.
18234 $debug ||
18235 {
18236 tmp= ac_tmp=
18237 trap 'exit_status=$?
18238 : "${ac_tmp:=$tmp}"
18239 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18240 ' 0
18241 trap 'as_fn_exit 1' 1 2 13 15
18242 }
18243 # Create a (secure) tmp directory for tmp files.
18244
18245 {
18246 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18247 test -d "$tmp"
18248 } ||
18249 {
18250 tmp=./conf$$-$RANDOM
18251 (umask 077 && mkdir "$tmp")
18252 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18253 ac_tmp=$tmp
18254
18255 # Set up the scripts for CONFIG_FILES section.
18256 # No need to generate them if there are no CONFIG_FILES.
18257 # This happens for instance with `./config.status config.h'.
18258 if test -n "$CONFIG_FILES"; then
18259
18260
18261 ac_cr=`echo X | tr X '\015'`
18262 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18263 # But we know of no other shell where ac_cr would be empty at this
18264 # point, so we can use a bashism as a fallback.
18265 if test "x$ac_cr" = x; then
18266 eval ac_cr=\$\'\\r\'
18267 fi
18268 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18269 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18270 ac_cs_awk_cr='\\r'
18271 else
18272 ac_cs_awk_cr=$ac_cr
18273 fi
18274
18275 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18276 _ACEOF
18277
18278
18279 {
18280 echo "cat >conf$$subs.awk <<_ACEOF" &&
18281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18282 echo "_ACEOF"
18283 } >conf$$subs.sh ||
18284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18285 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18286 ac_delim='%!_!# '
18287 for ac_last_try in false false false false false :; do
18288 . ./conf$$subs.sh ||
18289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18290
18291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18292 if test $ac_delim_n = $ac_delim_num; then
18293 break
18294 elif $ac_last_try; then
18295 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18296 else
18297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18298 fi
18299 done
18300 rm -f conf$$subs.sh
18301
18302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18303 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18304 _ACEOF
18305 sed -n '
18306 h
18307 s/^/S["/; s/!.*/"]=/
18308 p
18309 g
18310 s/^[^!]*!//
18311 :repl
18312 t repl
18313 s/'"$ac_delim"'$//
18314 t delim
18315 :nl
18316 h
18317 s/\(.\{148\}\)..*/\1/
18318 t more1
18319 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18320 p
18321 n
18322 b repl
18323 :more1
18324 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18325 p
18326 g
18327 s/.\{148\}//
18328 t nl
18329 :delim
18330 h
18331 s/\(.\{148\}\)..*/\1/
18332 t more2
18333 s/["\\]/\\&/g; s/^/"/; s/$/"/
18334 p
18335 b
18336 :more2
18337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18338 p
18339 g
18340 s/.\{148\}//
18341 t delim
18342 ' <conf$$subs.awk | sed '
18343 /^[^""]/{
18344 N
18345 s/\n//
18346 }
18347 ' >>$CONFIG_STATUS || ac_write_fail=1
18348 rm -f conf$$subs.awk
18349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18350 _ACAWK
18351 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18352 for (key in S) S_is_set[key] = 1
18353 FS = ""
18354
18355 }
18356 {
18357 line = $ 0
18358 nfields = split(line, field, "@")
18359 substed = 0
18360 len = length(field[1])
18361 for (i = 2; i < nfields; i++) {
18362 key = field[i]
18363 keylen = length(key)
18364 if (S_is_set[key]) {
18365 value = S[key]
18366 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18367 len += length(value) + length(field[++i])
18368 substed = 1
18369 } else
18370 len += 1 + keylen
18371 }
18372
18373 print line
18374 }
18375
18376 _ACAWK
18377 _ACEOF
18378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18379 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18380 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18381 else
18382 cat
18383 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18384 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18385 _ACEOF
18386
18387 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18388 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18389 # trailing colons and then remove the whole line if VPATH becomes empty
18390 # (actually we leave an empty line to preserve line numbers).
18391 if test "x$srcdir" = x.; then
18392 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18393 h
18394 s///
18395 s/^/:/
18396 s/[ ]*$/:/
18397 s/:\$(srcdir):/:/g
18398 s/:\${srcdir}:/:/g
18399 s/:@srcdir@:/:/g
18400 s/^:*//
18401 s/:*$//
18402 x
18403 s/\(=[ ]*\).*/\1/
18404 G
18405 s/\n//
18406 s/^[^=]*=[ ]*$//
18407 }'
18408 fi
18409
18410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18411 fi # test -n "$CONFIG_FILES"
18412
18413 # Set up the scripts for CONFIG_HEADERS section.
18414 # No need to generate them if there are no CONFIG_HEADERS.
18415 # This happens for instance with `./config.status Makefile'.
18416 if test -n "$CONFIG_HEADERS"; then
18417 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18418 BEGIN {
18419 _ACEOF
18420
18421 # Transform confdefs.h into an awk script `defines.awk', embedded as
18422 # here-document in config.status, that substitutes the proper values into
18423 # config.h.in to produce config.h.
18424
18425 # Create a delimiter string that does not exist in confdefs.h, to ease
18426 # handling of long lines.
18427 ac_delim='%!_!# '
18428 for ac_last_try in false false :; do
18429 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18430 if test -z "$ac_tt"; then
18431 break
18432 elif $ac_last_try; then
18433 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18434 else
18435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18436 fi
18437 done
18438
18439 # For the awk script, D is an array of macro values keyed by name,
18440 # likewise P contains macro parameters if any. Preserve backslash
18441 # newline sequences.
18442
18443 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18444 sed -n '
18445 s/.\{148\}/&'"$ac_delim"'/g
18446 t rset
18447 :rset
18448 s/^[ ]*#[ ]*define[ ][ ]*/ /
18449 t def
18450 d
18451 :def
18452 s/\\$//
18453 t bsnl
18454 s/["\\]/\\&/g
18455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18456 D["\1"]=" \3"/p
18457 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18458 d
18459 :bsnl
18460 s/["\\]/\\&/g
18461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18462 D["\1"]=" \3\\\\\\n"\\/p
18463 t cont
18464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18465 t cont
18466 d
18467 :cont
18468 n
18469 s/.\{148\}/&'"$ac_delim"'/g
18470 t clear
18471 :clear
18472 s/\\$//
18473 t bsnlc
18474 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18475 d
18476 :bsnlc
18477 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18478 b cont
18479 ' <confdefs.h | sed '
18480 s/'"$ac_delim"'/"\\\
18481 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18482
18483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18484 for (key in D) D_is_set[key] = 1
18485 FS = ""
18486 }
18487 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18488 line = \$ 0
18489 split(line, arg, " ")
18490 if (arg[1] == "#") {
18491 defundef = arg[2]
18492 mac1 = arg[3]
18493 } else {
18494 defundef = substr(arg[1], 2)
18495 mac1 = arg[2]
18496 }
18497 split(mac1, mac2, "(") #)
18498 macro = mac2[1]
18499 prefix = substr(line, 1, index(line, defundef) - 1)
18500 if (D_is_set[macro]) {
18501 # Preserve the white space surrounding the "#".
18502 print prefix "define", macro P[macro] D[macro]
18503 next
18504 } else {
18505 # Replace #undef with comments. This is necessary, for example,
18506 # in the case of _POSIX_SOURCE, which is predefined and required
18507 # on some systems where configure will not decide to define it.
18508 if (defundef == "undef") {
18509 print "/*", prefix defundef, macro, "*/"
18510 next
18511 }
18512 }
18513 }
18514 { print }
18515 _ACAWK
18516 _ACEOF
18517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18518 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18519 fi # test -n "$CONFIG_HEADERS"
18520
18521
18522 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18523 shift
18524 for ac_tag
18525 do
18526 case $ac_tag in
18527 :[FHLC]) ac_mode=$ac_tag; continue;;
18528 esac
18529 case $ac_mode$ac_tag in
18530 :[FHL]*:*);;
18531 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18532 :[FH]-) ac_tag=-:-;;
18533 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18534 esac
18535 ac_save_IFS=$IFS
18536 IFS=:
18537 set x $ac_tag
18538 IFS=$ac_save_IFS
18539 shift
18540 ac_file=$1
18541 shift
18542
18543 case $ac_mode in
18544 :L) ac_source=$1;;
18545 :[FH])
18546 ac_file_inputs=
18547 for ac_f
18548 do
18549 case $ac_f in
18550 -) ac_f="$ac_tmp/stdin";;
18551 *) # Look for the file first in the build tree, then in the source tree
18552 # (if the path is not absolute). The absolute path cannot be DOS-style,
18553 # because $ac_f cannot contain `:'.
18554 test -f "$ac_f" ||
18555 case $ac_f in
18556 [\\/$]*) false;;
18557 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18558 esac ||
18559 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18560 esac
18561 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18562 as_fn_append ac_file_inputs " '$ac_f'"
18563 done
18564
18565 # Let's still pretend it is `configure' which instantiates (i.e., don't
18566 # use $as_me), people would be surprised to read:
18567 # /* config.h. Generated by config.status. */
18568 configure_input='Generated from '`
18569 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18570 `' by configure.'
18571 if test x"$ac_file" != x-; then
18572 configure_input="$ac_file. $configure_input"
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18574 $as_echo "$as_me: creating $ac_file" >&6;}
18575 fi
18576 # Neutralize special characters interpreted by sed in replacement strings.
18577 case $configure_input in #(
18578 *\&* | *\|* | *\\* )
18579 ac_sed_conf_input=`$as_echo "$configure_input" |
18580 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18581 *) ac_sed_conf_input=$configure_input;;
18582 esac
18583
18584 case $ac_tag in
18585 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18587 esac
18588 ;;
18589 esac
18590
18591 ac_dir=`$as_dirname -- "$ac_file" ||
18592 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18593 X"$ac_file" : 'X\(//\)[^/]' \| \
18594 X"$ac_file" : 'X\(//\)$' \| \
18595 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18596 $as_echo X"$ac_file" |
18597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18598 s//\1/
18599 q
18600 }
18601 /^X\(\/\/\)[^/].*/{
18602 s//\1/
18603 q
18604 }
18605 /^X\(\/\/\)$/{
18606 s//\1/
18607 q
18608 }
18609 /^X\(\/\).*/{
18610 s//\1/
18611 q
18612 }
18613 s/.*/./; q'`
18614 as_dir="$ac_dir"; as_fn_mkdir_p
18615 ac_builddir=.
18616
18617 case "$ac_dir" in
18618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18619 *)
18620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18621 # A ".." for each directory in $ac_dir_suffix.
18622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18623 case $ac_top_builddir_sub in
18624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18626 esac ;;
18627 esac
18628 ac_abs_top_builddir=$ac_pwd
18629 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18630 # for backward compatibility:
18631 ac_top_builddir=$ac_top_build_prefix
18632
18633 case $srcdir in
18634 .) # We are building in place.
18635 ac_srcdir=.
18636 ac_top_srcdir=$ac_top_builddir_sub
18637 ac_abs_top_srcdir=$ac_pwd ;;
18638 [\\/]* | ?:[\\/]* ) # Absolute name.
18639 ac_srcdir=$srcdir$ac_dir_suffix;
18640 ac_top_srcdir=$srcdir
18641 ac_abs_top_srcdir=$srcdir ;;
18642 *) # Relative name.
18643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18644 ac_top_srcdir=$ac_top_build_prefix$srcdir
18645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18646 esac
18647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18648
18649
18650 case $ac_mode in
18651 :F)
18652 #
18653 # CONFIG_FILE
18654 #
18655
18656 case $INSTALL in
18657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18658 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18659 esac
18660 ac_MKDIR_P=$MKDIR_P
18661 case $MKDIR_P in
18662 [\\/$]* | ?:[\\/]* ) ;;
18663 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18664 esac
18665 _ACEOF
18666
18667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18668 # If the template does not know about datarootdir, expand it.
18669 # FIXME: This hack should be removed a few years after 2.60.
18670 ac_datarootdir_hack=; ac_datarootdir_seen=
18671 ac_sed_dataroot='
18672 /datarootdir/ {
18673 p
18674 q
18675 }
18676 /@datadir@/p
18677 /@docdir@/p
18678 /@infodir@/p
18679 /@localedir@/p
18680 /@mandir@/p'
18681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18682 *datarootdir*) ac_datarootdir_seen=yes;;
18683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18686 _ACEOF
18687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18688 ac_datarootdir_hack='
18689 s&@datadir@&$datadir&g
18690 s&@docdir@&$docdir&g
18691 s&@infodir@&$infodir&g
18692 s&@localedir@&$localedir&g
18693 s&@mandir@&$mandir&g
18694 s&\\\${datarootdir}&$datarootdir&g' ;;
18695 esac
18696 _ACEOF
18697
18698 # Neutralize VPATH when `$srcdir' = `.'.
18699 # Shell code in configure.ac might set extrasub.
18700 # FIXME: do we really want to maintain this feature?
18701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18702 ac_sed_extra="$ac_vpsub
18703 $extrasub
18704 _ACEOF
18705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18706 :t
18707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18708 s|@configure_input@|$ac_sed_conf_input|;t t
18709 s&@top_builddir@&$ac_top_builddir_sub&;t t
18710 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18711 s&@srcdir@&$ac_srcdir&;t t
18712 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18713 s&@top_srcdir@&$ac_top_srcdir&;t t
18714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18715 s&@builddir@&$ac_builddir&;t t
18716 s&@abs_builddir@&$ac_abs_builddir&;t t
18717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18718 s&@INSTALL@&$ac_INSTALL&;t t
18719 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18720 $ac_datarootdir_hack
18721 "
18722 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18723 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18724
18725 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18726 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18727 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18728 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18730 which seems to be undefined. Please make sure it is defined" >&5
18731 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18732 which seems to be undefined. Please make sure it is defined" >&2;}
18733
18734 rm -f "$ac_tmp/stdin"
18735 case $ac_file in
18736 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18737 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18738 esac \
18739 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18740 ;;
18741 :H)
18742 #
18743 # CONFIG_HEADER
18744 #
18745 if test x"$ac_file" != x-; then
18746 {
18747 $as_echo "/* $configure_input */" \
18748 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18749 } >"$ac_tmp/config.h" \
18750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18751 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18753 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18754 else
18755 rm -f "$ac_file"
18756 mv "$ac_tmp/config.h" "$ac_file" \
18757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18758 fi
18759 else
18760 $as_echo "/* $configure_input */" \
18761 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18762 || as_fn_error $? "could not create -" "$LINENO" 5
18763 fi
18764 # Compute "$ac_file"'s index in $config_headers.
18765 _am_arg="$ac_file"
18766 _am_stamp_count=1
18767 for _am_header in $config_headers :; do
18768 case $_am_header in
18769 $_am_arg | $_am_arg:* )
18770 break ;;
18771 * )
18772 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18773 esac
18774 done
18775 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18776 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18777 X"$_am_arg" : 'X\(//\)[^/]' \| \
18778 X"$_am_arg" : 'X\(//\)$' \| \
18779 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18780 $as_echo X"$_am_arg" |
18781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18782 s//\1/
18783 q
18784 }
18785 /^X\(\/\/\)[^/].*/{
18786 s//\1/
18787 q
18788 }
18789 /^X\(\/\/\)$/{
18790 s//\1/
18791 q
18792 }
18793 /^X\(\/\).*/{
18794 s//\1/
18795 q
18796 }
18797 s/.*/./; q'`/stamp-h$_am_stamp_count
18798 ;;
18799
18800 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18801 $as_echo "$as_me: executing $ac_file commands" >&6;}
18802 ;;
18803 esac
18804
18805
18806 case $ac_file$ac_mode in
18807 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18808 # Older Autoconf quotes --file arguments for eval, but not when files
18809 # are listed without --file. Let's play safe and only enable the eval
18810 # if we detect the quoting.
18811 case $CONFIG_FILES in
18812 *\'*) eval set x "$CONFIG_FILES" ;;
18813 *) set x $CONFIG_FILES ;;
18814 esac
18815 shift
18816 for mf
18817 do
18818 # Strip MF so we end up with the name of the file.
18819 mf=`echo "$mf" | sed -e 's/:.*$//'`
18820 # Check whether this is an Automake generated Makefile or not.
18821 # We used to match only the files named 'Makefile.in', but
18822 # some people rename them; so instead we look at the file content.
18823 # Grep'ing the first line is not enough: some people post-process
18824 # each Makefile.in and add a new line on top of each file to say so.
18825 # Grep'ing the whole file is not good either: AIX grep has a line
18826 # limit of 2048, but all sed's we know have understand at least 4000.
18827 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18828 dirpart=`$as_dirname -- "$mf" ||
18829 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18830 X"$mf" : 'X\(//\)[^/]' \| \
18831 X"$mf" : 'X\(//\)$' \| \
18832 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18833 $as_echo X"$mf" |
18834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18835 s//\1/
18836 q
18837 }
18838 /^X\(\/\/\)[^/].*/{
18839 s//\1/
18840 q
18841 }
18842 /^X\(\/\/\)$/{
18843 s//\1/
18844 q
18845 }
18846 /^X\(\/\).*/{
18847 s//\1/
18848 q
18849 }
18850 s/.*/./; q'`
18851 else
18852 continue
18853 fi
18854 # Extract the definition of DEPDIR, am__include, and am__quote
18855 # from the Makefile without running 'make'.
18856 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18857 test -z "$DEPDIR" && continue
18858 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18859 test -z "$am__include" && continue
18860 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18861 # Find all dependency output files, they are included files with
18862 # $(DEPDIR) in their names. We invoke sed twice because it is the
18863 # simplest approach to changing $(DEPDIR) to its actual value in the
18864 # expansion.
18865 for file in `sed -n "
18866 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18867 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18868 # Make sure the directory exists.
18869 test -f "$dirpart/$file" && continue
18870 fdir=`$as_dirname -- "$file" ||
18871 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18872 X"$file" : 'X\(//\)[^/]' \| \
18873 X"$file" : 'X\(//\)$' \| \
18874 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18875 $as_echo X"$file" |
18876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18877 s//\1/
18878 q
18879 }
18880 /^X\(\/\/\)[^/].*/{
18881 s//\1/
18882 q
18883 }
18884 /^X\(\/\/\)$/{
18885 s//\1/
18886 q
18887 }
18888 /^X\(\/\).*/{
18889 s//\1/
18890 q
18891 }
18892 s/.*/./; q'`
18893 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18894 # echo "creating $dirpart/$file"
18895 echo '# dummy' > "$dirpart/$file"
18896 done
18897 done
18898 }
18899 ;;
18900 "libtool":C)
18901
18902 # See if we are running on zsh, and set the options which allow our
18903 # commands through without removal of \ escapes.
18904 if test -n "${ZSH_VERSION+set}" ; then
18905 setopt NO_GLOB_SUBST
18906 fi
18907
18908 cfgfile="${ofile}T"
18909 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18910 $RM "$cfgfile"
18911
18912 cat <<_LT_EOF >> "$cfgfile"
18913 #! $SHELL
18914
18915 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18916 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18917 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18918 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18919 #
18920 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18921 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18922 # Written by Gordon Matzigkeit, 1996
18923 #
18924 # This file is part of GNU Libtool.
18925 #
18926 # GNU Libtool is free software; you can redistribute it and/or
18927 # modify it under the terms of the GNU General Public License as
18928 # published by the Free Software Foundation; either version 2 of
18929 # the License, or (at your option) any later version.
18930 #
18931 # As a special exception to the GNU General Public License,
18932 # if you distribute this file as part of a program or library that
18933 # is built using GNU Libtool, you may include this file under the
18934 # same distribution terms that you use for the rest of that program.
18935 #
18936 # GNU Libtool is distributed in the hope that it will be useful,
18937 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18938 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18939 # GNU General Public License for more details.
18940 #
18941 # You should have received a copy of the GNU General Public License
18942 # along with GNU Libtool; see the file COPYING. If not, a copy
18943 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18944 # obtained by writing to the Free Software Foundation, Inc.,
18945 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18946
18947
18948 # The names of the tagged configurations supported by this script.
18949 available_tags=""
18950
18951 # ### BEGIN LIBTOOL CONFIG
18952
18953 # Whether or not to build shared libraries.
18954 build_libtool_libs=$enable_shared
18955
18956 # Which release of libtool.m4 was used?
18957 macro_version=$macro_version
18958 macro_revision=$macro_revision
18959
18960 # Whether or not to build static libraries.
18961 build_old_libs=$enable_static
18962
18963 # What type of objects to build.
18964 pic_mode=$pic_mode
18965
18966 # Whether or not to optimize for fast installation.
18967 fast_install=$enable_fast_install
18968
18969 # Shell to use when invoking shell scripts.
18970 SHELL=$lt_SHELL
18971
18972 # An echo program that protects backslashes.
18973 ECHO=$lt_ECHO
18974
18975 # The host system.
18976 host_alias=$host_alias
18977 host=$host
18978 host_os=$host_os
18979
18980 # The build system.
18981 build_alias=$build_alias
18982 build=$build
18983 build_os=$build_os
18984
18985 # A sed program that does not truncate output.
18986 SED=$lt_SED
18987
18988 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18989 Xsed="\$SED -e 1s/^X//"
18990
18991 # A grep program that handles long lines.
18992 GREP=$lt_GREP
18993
18994 # An ERE matcher.
18995 EGREP=$lt_EGREP
18996
18997 # A literal string matcher.
18998 FGREP=$lt_FGREP
18999
19000 # A BSD- or MS-compatible name lister.
19001 NM=$lt_NM
19002
19003 # Whether we need soft or hard links.
19004 LN_S=$lt_LN_S
19005
19006 # What is the maximum length of a command?
19007 max_cmd_len=$max_cmd_len
19008
19009 # Object file suffix (normally "o").
19010 objext=$ac_objext
19011
19012 # Executable file suffix (normally "").
19013 exeext=$exeext
19014
19015 # whether the shell understands "unset".
19016 lt_unset=$lt_unset
19017
19018 # turn spaces into newlines.
19019 SP2NL=$lt_lt_SP2NL
19020
19021 # turn newlines into spaces.
19022 NL2SP=$lt_lt_NL2SP
19023
19024 # An object symbol dumper.
19025 OBJDUMP=$lt_OBJDUMP
19026
19027 # Method to check whether dependent libraries are shared objects.
19028 deplibs_check_method=$lt_deplibs_check_method
19029
19030 # Command to use when deplibs_check_method == "file_magic".
19031 file_magic_cmd=$lt_file_magic_cmd
19032
19033 # The archiver.
19034 AR=$lt_AR
19035 AR_FLAGS=$lt_AR_FLAGS
19036
19037 # A symbol stripping program.
19038 STRIP=$lt_STRIP
19039
19040 # Commands used to install an old-style archive.
19041 RANLIB=$lt_RANLIB
19042 old_postinstall_cmds=$lt_old_postinstall_cmds
19043 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19044
19045 # Whether to use a lock for old archive extraction.
19046 lock_old_archive_extraction=$lock_old_archive_extraction
19047
19048 # A C compiler.
19049 LTCC=$lt_CC
19050
19051 # LTCC compiler flags.
19052 LTCFLAGS=$lt_CFLAGS
19053
19054 # Take the output of nm and produce a listing of raw symbols and C names.
19055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19056
19057 # Transform the output of nm in a proper C declaration.
19058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19059
19060 # Transform the output of nm in a C name address pair.
19061 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19062
19063 # Transform the output of nm in a C name address pair when lib prefix is needed.
19064 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19065
19066 # The name of the directory that contains temporary libtool files.
19067 objdir=$objdir
19068
19069 # Used to examine libraries when file_magic_cmd begins with "file".
19070 MAGIC_CMD=$MAGIC_CMD
19071
19072 # Must we lock files when doing compilation?
19073 need_locks=$lt_need_locks
19074
19075 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19076 DSYMUTIL=$lt_DSYMUTIL
19077
19078 # Tool to change global to local symbols on Mac OS X.
19079 NMEDIT=$lt_NMEDIT
19080
19081 # Tool to manipulate fat objects and archives on Mac OS X.
19082 LIPO=$lt_LIPO
19083
19084 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19085 OTOOL=$lt_OTOOL
19086
19087 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19088 OTOOL64=$lt_OTOOL64
19089
19090 # Old archive suffix (normally "a").
19091 libext=$libext
19092
19093 # Shared library suffix (normally ".so").
19094 shrext_cmds=$lt_shrext_cmds
19095
19096 # The commands to extract the exported symbol list from a shared archive.
19097 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19098
19099 # Variables whose values should be saved in libtool wrapper scripts and
19100 # restored at link time.
19101 variables_saved_for_relink=$lt_variables_saved_for_relink
19102
19103 # Do we need the "lib" prefix for modules?
19104 need_lib_prefix=$need_lib_prefix
19105
19106 # Do we need a version for libraries?
19107 need_version=$need_version
19108
19109 # Library versioning type.
19110 version_type=$version_type
19111
19112 # Shared library runtime path variable.
19113 runpath_var=$runpath_var
19114
19115 # Shared library path variable.
19116 shlibpath_var=$shlibpath_var
19117
19118 # Is shlibpath searched before the hard-coded library search path?
19119 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19120
19121 # Format of library name prefix.
19122 libname_spec=$lt_libname_spec
19123
19124 # List of archive names. First name is the real one, the rest are links.
19125 # The last name is the one that the linker finds with -lNAME
19126 library_names_spec=$lt_library_names_spec
19127
19128 # The coded name of the library, if different from the real name.
19129 soname_spec=$lt_soname_spec
19130
19131 # Permission mode override for installation of shared libraries.
19132 install_override_mode=$lt_install_override_mode
19133
19134 # Command to use after installation of a shared archive.
19135 postinstall_cmds=$lt_postinstall_cmds
19136
19137 # Command to use after uninstallation of a shared archive.
19138 postuninstall_cmds=$lt_postuninstall_cmds
19139
19140 # Commands used to finish a libtool library installation in a directory.
19141 finish_cmds=$lt_finish_cmds
19142
19143 # As "finish_cmds", except a single script fragment to be evaled but
19144 # not shown.
19145 finish_eval=$lt_finish_eval
19146
19147 # Whether we should hardcode library paths into libraries.
19148 hardcode_into_libs=$hardcode_into_libs
19149
19150 # Compile-time system search path for libraries.
19151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19152
19153 # Run-time system search path for libraries.
19154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19155
19156 # Whether dlopen is supported.
19157 dlopen_support=$enable_dlopen
19158
19159 # Whether dlopen of programs is supported.
19160 dlopen_self=$enable_dlopen_self
19161
19162 # Whether dlopen of statically linked programs is supported.
19163 dlopen_self_static=$enable_dlopen_self_static
19164
19165 # Commands to strip libraries.
19166 old_striplib=$lt_old_striplib
19167 striplib=$lt_striplib
19168
19169
19170 # The linker used to build libraries.
19171 LD=$lt_LD
19172
19173 # How to create reloadable object files.
19174 reload_flag=$lt_reload_flag
19175 reload_cmds=$lt_reload_cmds
19176
19177 # Commands used to build an old-style archive.
19178 old_archive_cmds=$lt_old_archive_cmds
19179
19180 # A language specific compiler.
19181 CC=$lt_compiler
19182
19183 # Is the compiler the GNU compiler?
19184 with_gcc=$GCC
19185
19186 # Compiler flag to turn off builtin functions.
19187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19188
19189 # How to pass a linker flag through the compiler.
19190 wl=$lt_lt_prog_compiler_wl
19191
19192 # Additional compiler flags for building library objects.
19193 pic_flag=$lt_lt_prog_compiler_pic
19194
19195 # Compiler flag to prevent dynamic linking.
19196 link_static_flag=$lt_lt_prog_compiler_static
19197
19198 # Does compiler simultaneously support -c and -o options?
19199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19200
19201 # Whether or not to add -lc for building shared libraries.
19202 build_libtool_need_lc=$archive_cmds_need_lc
19203
19204 # Whether or not to disallow shared libs when runtime libs are static.
19205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19206
19207 # Compiler flag to allow reflexive dlopens.
19208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19209
19210 # Compiler flag to generate shared objects directly from archives.
19211 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19212
19213 # Whether the compiler copes with passing no objects directly.
19214 compiler_needs_object=$lt_compiler_needs_object
19215
19216 # Create an old-style archive from a shared archive.
19217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19218
19219 # Create a temporary old-style archive to link instead of a shared archive.
19220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19221
19222 # Commands used to build a shared archive.
19223 archive_cmds=$lt_archive_cmds
19224 archive_expsym_cmds=$lt_archive_expsym_cmds
19225
19226 # Commands used to build a loadable module if different from building
19227 # a shared archive.
19228 module_cmds=$lt_module_cmds
19229 module_expsym_cmds=$lt_module_expsym_cmds
19230
19231 # Whether we are building with GNU ld or not.
19232 with_gnu_ld=$lt_with_gnu_ld
19233
19234 # Flag that allows shared libraries with undefined symbols to be built.
19235 allow_undefined_flag=$lt_allow_undefined_flag
19236
19237 # Flag that enforces no undefined symbols.
19238 no_undefined_flag=$lt_no_undefined_flag
19239
19240 # Flag to hardcode \$libdir into a binary during linking.
19241 # This must work even if \$libdir does not exist
19242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19243
19244 # If ld is used when linking, flag to hardcode \$libdir into a binary
19245 # during linking. This must work even if \$libdir does not exist.
19246 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19247
19248 # Whether we need a single "-rpath" flag with a separated argument.
19249 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19250
19251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19252 # DIR into the resulting binary.
19253 hardcode_direct=$hardcode_direct
19254
19255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19256 # DIR into the resulting binary and the resulting library dependency is
19257 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19258 # library is relocated.
19259 hardcode_direct_absolute=$hardcode_direct_absolute
19260
19261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19262 # into the resulting binary.
19263 hardcode_minus_L=$hardcode_minus_L
19264
19265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19266 # into the resulting binary.
19267 hardcode_shlibpath_var=$hardcode_shlibpath_var
19268
19269 # Set to "yes" if building a shared library automatically hardcodes DIR
19270 # into the library and all subsequent libraries and executables linked
19271 # against it.
19272 hardcode_automatic=$hardcode_automatic
19273
19274 # Set to yes if linker adds runtime paths of dependent libraries
19275 # to runtime path list.
19276 inherit_rpath=$inherit_rpath
19277
19278 # Whether libtool must link a program against all its dependency libraries.
19279 link_all_deplibs=$link_all_deplibs
19280
19281 # Fix the shell variable \$srcfile for the compiler.
19282 fix_srcfile_path=$lt_fix_srcfile_path
19283
19284 # Set to "yes" if exported symbols are required.
19285 always_export_symbols=$always_export_symbols
19286
19287 # The commands to list exported symbols.
19288 export_symbols_cmds=$lt_export_symbols_cmds
19289
19290 # Symbols that should not be listed in the preloaded symbols.
19291 exclude_expsyms=$lt_exclude_expsyms
19292
19293 # Symbols that must always be exported.
19294 include_expsyms=$lt_include_expsyms
19295
19296 # Commands necessary for linking programs (against libraries) with templates.
19297 prelink_cmds=$lt_prelink_cmds
19298
19299 # Specify filename containing input files.
19300 file_list_spec=$lt_file_list_spec
19301
19302 # How to hardcode a shared library path into an executable.
19303 hardcode_action=$hardcode_action
19304
19305 # ### END LIBTOOL CONFIG
19306
19307 _LT_EOF
19308
19309 case $host_os in
19310 aix3*)
19311 cat <<\_LT_EOF >> "$cfgfile"
19312 # AIX sometimes has problems with the GCC collect2 program. For some
19313 # reason, if we set the COLLECT_NAMES environment variable, the problems
19314 # vanish in a puff of smoke.
19315 if test "X${COLLECT_NAMES+set}" != Xset; then
19316 COLLECT_NAMES=
19317 export COLLECT_NAMES
19318 fi
19319 _LT_EOF
19320 ;;
19321 esac
19322
19323
19324 ltmain="$ac_aux_dir/ltmain.sh"
19325
19326
19327 # We use sed instead of cat because bash on DJGPP gets confused if
19328 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19329 # text mode, it properly converts lines to CR/LF. This bash problem
19330 # is reportedly fixed, but why not run on old versions too?
19331 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19332 || (rm -f "$cfgfile"; exit 1)
19333
19334 case $xsi_shell in
19335 yes)
19336 cat << \_LT_EOF >> "$cfgfile"
19337
19338 # func_dirname file append nondir_replacement
19339 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19340 # otherwise set result to NONDIR_REPLACEMENT.
19341 func_dirname ()
19342 {
19343 case ${1} in
19344 */*) func_dirname_result="${1%/*}${2}" ;;
19345 * ) func_dirname_result="${3}" ;;
19346 esac
19347 }
19348
19349 # func_basename file
19350 func_basename ()
19351 {
19352 func_basename_result="${1##*/}"
19353 }
19354
19355 # func_dirname_and_basename file append nondir_replacement
19356 # perform func_basename and func_dirname in a single function
19357 # call:
19358 # dirname: Compute the dirname of FILE. If nonempty,
19359 # add APPEND to the result, otherwise set result
19360 # to NONDIR_REPLACEMENT.
19361 # value returned in "$func_dirname_result"
19362 # basename: Compute filename of FILE.
19363 # value retuned in "$func_basename_result"
19364 # Implementation must be kept synchronized with func_dirname
19365 # and func_basename. For efficiency, we do not delegate to
19366 # those functions but instead duplicate the functionality here.
19367 func_dirname_and_basename ()
19368 {
19369 case ${1} in
19370 */*) func_dirname_result="${1%/*}${2}" ;;
19371 * ) func_dirname_result="${3}" ;;
19372 esac
19373 func_basename_result="${1##*/}"
19374 }
19375
19376 # func_stripname prefix suffix name
19377 # strip PREFIX and SUFFIX off of NAME.
19378 # PREFIX and SUFFIX must not contain globbing or regex special
19379 # characters, hashes, percent signs, but SUFFIX may contain a leading
19380 # dot (in which case that matches only a dot).
19381 func_stripname ()
19382 {
19383 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19384 # positional parameters, so assign one to ordinary parameter first.
19385 func_stripname_result=${3}
19386 func_stripname_result=${func_stripname_result#"${1}"}
19387 func_stripname_result=${func_stripname_result%"${2}"}
19388 }
19389
19390 # func_opt_split
19391 func_opt_split ()
19392 {
19393 func_opt_split_opt=${1%%=*}
19394 func_opt_split_arg=${1#*=}
19395 }
19396
19397 # func_lo2o object
19398 func_lo2o ()
19399 {
19400 case ${1} in
19401 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19402 *) func_lo2o_result=${1} ;;
19403 esac
19404 }
19405
19406 # func_xform libobj-or-source
19407 func_xform ()
19408 {
19409 func_xform_result=${1%.*}.lo
19410 }
19411
19412 # func_arith arithmetic-term...
19413 func_arith ()
19414 {
19415 func_arith_result=$(( $* ))
19416 }
19417
19418 # func_len string
19419 # STRING may not start with a hyphen.
19420 func_len ()
19421 {
19422 func_len_result=${#1}
19423 }
19424
19425 _LT_EOF
19426 ;;
19427 *) # Bourne compatible functions.
19428 cat << \_LT_EOF >> "$cfgfile"
19429
19430 # func_dirname file append nondir_replacement
19431 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19432 # otherwise set result to NONDIR_REPLACEMENT.
19433 func_dirname ()
19434 {
19435 # Extract subdirectory from the argument.
19436 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19437 if test "X$func_dirname_result" = "X${1}"; then
19438 func_dirname_result="${3}"
19439 else
19440 func_dirname_result="$func_dirname_result${2}"
19441 fi
19442 }
19443
19444 # func_basename file
19445 func_basename ()
19446 {
19447 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19448 }
19449
19450
19451 # func_stripname prefix suffix name
19452 # strip PREFIX and SUFFIX off of NAME.
19453 # PREFIX and SUFFIX must not contain globbing or regex special
19454 # characters, hashes, percent signs, but SUFFIX may contain a leading
19455 # dot (in which case that matches only a dot).
19456 # func_strip_suffix prefix name
19457 func_stripname ()
19458 {
19459 case ${2} in
19460 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19461 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19462 esac
19463 }
19464
19465 # sed scripts:
19466 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19467 my_sed_long_arg='1s/^-[^=]*=//'
19468
19469 # func_opt_split
19470 func_opt_split ()
19471 {
19472 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19473 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19474 }
19475
19476 # func_lo2o object
19477 func_lo2o ()
19478 {
19479 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19480 }
19481
19482 # func_xform libobj-or-source
19483 func_xform ()
19484 {
19485 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19486 }
19487
19488 # func_arith arithmetic-term...
19489 func_arith ()
19490 {
19491 func_arith_result=`expr "$@"`
19492 }
19493
19494 # func_len string
19495 # STRING may not start with a hyphen.
19496 func_len ()
19497 {
19498 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19499 }
19500
19501 _LT_EOF
19502 esac
19503
19504 case $lt_shell_append in
19505 yes)
19506 cat << \_LT_EOF >> "$cfgfile"
19507
19508 # func_append var value
19509 # Append VALUE to the end of shell variable VAR.
19510 func_append ()
19511 {
19512 eval "$1+=\$2"
19513 }
19514 _LT_EOF
19515 ;;
19516 *)
19517 cat << \_LT_EOF >> "$cfgfile"
19518
19519 # func_append var value
19520 # Append VALUE to the end of shell variable VAR.
19521 func_append ()
19522 {
19523 eval "$1=\$$1\$2"
19524 }
19525
19526 _LT_EOF
19527 ;;
19528 esac
19529
19530
19531 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19532 || (rm -f "$cfgfile"; exit 1)
19533
19534 mv -f "$cfgfile" "$ofile" ||
19535 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19536 chmod +x "$ofile"
19537
19538 ;;
19539 "default-1":C)
19540 for ac_file in $CONFIG_FILES; do
19541 # Support "outfile[:infile[:infile...]]"
19542 case "$ac_file" in
19543 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19544 esac
19545 # PO directories have a Makefile.in generated from Makefile.in.in.
19546 case "$ac_file" in */Makefile.in)
19547 # Adjust a relative srcdir.
19548 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19549 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19550 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19551 # In autoconf-2.13 it is called $ac_given_srcdir.
19552 # In autoconf-2.50 it is called $srcdir.
19553 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19554 case "$ac_given_srcdir" in
19555 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19556 /*) top_srcdir="$ac_given_srcdir" ;;
19557 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19558 esac
19559 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19560 rm -f "$ac_dir/POTFILES"
19561 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19562 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19563 POMAKEFILEDEPS="POTFILES.in"
19564 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19565 # on $ac_dir but don't depend on user-specified configuration
19566 # parameters.
19567 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19568 # The LINGUAS file contains the set of available languages.
19569 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19570 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
19571 fi
19572 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19573 # Hide the ALL_LINGUAS assigment from automake.
19574 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19575 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19576 else
19577 # The set of available languages was given in configure.ac.
19578 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19579 fi
19580 case "$ac_given_srcdir" in
19581 .) srcdirpre= ;;
19582 *) srcdirpre='$(srcdir)/' ;;
19583 esac
19584 POFILES=
19585 GMOFILES=
19586 UPDATEPOFILES=
19587 DUMMYPOFILES=
19588 for lang in $ALL_LINGUAS; do
19589 POFILES="$POFILES $srcdirpre$lang.po"
19590 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19591 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19592 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19593 done
19594 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19595 # environment variable.
19596 INST_LINGUAS=
19597 if test -n "$ALL_LINGUAS"; then
19598 for presentlang in $ALL_LINGUAS; do
19599 useit=no
19600 if test "%UNSET%" != "$LINGUAS"; then
19601 desiredlanguages="$LINGUAS"
19602 else
19603 desiredlanguages="$ALL_LINGUAS"
19604 fi
19605 for desiredlang in $desiredlanguages; do
19606 # Use the presentlang catalog if desiredlang is
19607 # a. equal to presentlang, or
19608 # b. a variant of presentlang (because in this case,
19609 # presentlang can be used as a fallback for messages
19610 # which are not translated in the desiredlang catalog).
19611 case "$desiredlang" in
19612 "$presentlang"*) useit=yes;;
19613 esac
19614 done
19615 if test $useit = yes; then
19616 INST_LINGUAS="$INST_LINGUAS $presentlang"
19617 fi
19618 done
19619 fi
19620 CATALOGS=
19621 if test -n "$INST_LINGUAS"; then
19622 for lang in $INST_LINGUAS; do
19623 CATALOGS="$CATALOGS $lang.gmo"
19624 done
19625 fi
19626 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19627 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"
19628 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19629 if test -f "$f"; then
19630 case "$f" in
19631 *.orig | *.bak | *~) ;;
19632 *) cat "$f" >> "$ac_dir/Makefile" ;;
19633 esac
19634 fi
19635 done
19636 fi
19637 ;;
19638 esac
19639 done ;;
19640 "default":C)
19641 case "$srcdir" in
19642 .) srcdirpre= ;;
19643 *) srcdirpre='$(srcdir)/' ;;
19644 esac
19645 POFILES=
19646 GMOFILES=
19647 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
19648 if test $lang != dummy; then
19649 POFILES="$POFILES $srcdirpre$lang.po"
19650 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19651 fi
19652 done
19653 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
19654 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
19655 -e "s,@POFILES@,$POFILES," \
19656 -e "s,@GMOFILES@,$GMOFILES," \
19657 po/Makefile.in > po/Makefile ;;
19658
19659 esac
19660 done # for ac_tag
19661
19662
19663 as_fn_exit 0
19664 _ACEOF
19665 ac_clean_files=$ac_clean_files_save
19666
19667 test $ac_write_fail = 0 ||
19668 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19669
19670
19671 # configure is writing to config.log, and then calls config.status.
19672 # config.status does its own redirection, appending to config.log.
19673 # Unfortunately, on DOS this fails, as config.log is still kept open
19674 # by configure, so config.status won't be able to write to it; its
19675 # output is simply discarded. So we exec the FD to /dev/null,
19676 # effectively closing config.log, so it can be properly (re)opened and
19677 # appended to by config.status. When coming back to configure, we
19678 # need to make the FD available again.
19679 if test "$no_create" != yes; then
19680 ac_cs_success=:
19681 ac_config_status_args=
19682 test "$silent" = yes &&
19683 ac_config_status_args="$ac_config_status_args --quiet"
19684 exec 5>/dev/null
19685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19686 exec 5>>config.log
19687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19688 # would make configure fail if this is the last instruction.
19689 $ac_cs_success || as_fn_exit 1
19690 fi
19691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19693 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19694 fi
19695
19696
19697
19698 touch config.status.tmp
19699 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
19700 sed '/as_fn_exit 0/i \
19701 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
19702 touch --reference=Makefile Makefile.tmp \
19703 mv Makefile.tmp Makefile \
19704 ' config.status > config.status.tmp
19705 touch --reference=config.status config.status.tmp
19706 mv config.status.tmp config.status
19707 chmod +x config.status
19708 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
19709 touch --reference=Makefile Makefile.tmp
19710 mv Makefile.tmp Makefile
19711 else
19712 rm -f config.status.tmp
19713 fi