]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/configure
Bump to autoconf 2.69 and automake 1.15.1
[thirdparty/binutils-gdb.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for binutils 2.30.52.
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 bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
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='binutils'
589 PACKAGE_TARNAME='binutils'
590 PACKAGE_VERSION='2.30.52'
591 PACKAGE_STRING='binutils 2.30.52'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ar.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 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 EMULATION_VECTOR
637 EMULATION
638 OBJDUMP_PRIVATE_OFILES
639 OBJDUMP_DEFS
640 BUILD_INSTALL_MISC
641 BUILD_MISC
642 BUILD_DLLWRAP
643 BUILD_WINDMC
644 BUILD_WINDRES
645 DLLTOOL_DEFS
646 BUILD_DLLTOOL
647 BUILD_SRCONV
648 LTLIBICONV
649 LIBICONV
650 zlibinc
651 zlibdir
652 ALLOCA
653 DEMANGLER_NAME
654 EXEEXT_FOR_BUILD
655 CC_FOR_BUILD
656 HDEFINES
657 GENINSRC_NEVER_FALSE
658 GENINSRC_NEVER_TRUE
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 MSGMERGE
663 MSGFMT
664 MKINSTALLDIRS
665 CATOBJEXT
666 GENCAT
667 INSTOBJEXT
668 DATADIRNAME
669 CATALOGS
670 POSUB
671 GMSGFMT
672 XGETTEXT
673 INCINTL
674 LIBINTL_DEP
675 LIBINTL
676 USE_NLS
677 LEXLIB
678 LEX_OUTPUT_ROOT
679 LEX
680 YFLAGS
681 YACC
682 WARN_WRITE_STRINGS
683 NO_WERROR
684 WARN_CFLAGS_FOR_BUILD
685 WARN_CFLAGS
686 OTOOL64
687 OTOOL
688 LIPO
689 NMEDIT
690 DSYMUTIL
691 RANLIB
692 AR
693 OBJDUMP
694 LN_S
695 NM
696 ac_ct_DUMPBIN
697 DUMPBIN
698 LD
699 FGREP
700 SED
701 LIBTOOL
702 EGREP
703 GREP
704 CPP
705 AM_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
709 am__fastdepCC_FALSE
710 am__fastdepCC_TRUE
711 CCDEPMODE
712 am__nodep
713 AMDEPBACKSLASH
714 AMDEP_FALSE
715 AMDEP_TRUE
716 am__quote
717 am__include
718 DEPDIR
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 OBJEXT
743 EXEEXT
744 ac_ct_CC
745 CPPFLAGS
746 LDFLAGS
747 CFLAGS
748 CC
749 target_os
750 target_vendor
751 target_cpu
752 target
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_dependency_tracking
803 enable_silent_rules
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 enable_libtool_lock
810 enable_plugins
811 enable_largefile
812 enable_targets
813 enable_deterministic_archives
814 enable_default_strings_all
815 enable_werror
816 enable_build_warnings
817 enable_nls
818 enable_maintainer_mode
819 with_system_zlib
820 enable_rpath
821 with_libiconv_prefix
822 '
823 ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 CC
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 CPP
832 YACC
833 YFLAGS'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
893 fi
894
895 case $ac_option in
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
899 esac
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
911
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
926
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
931
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
964
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1000
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1005
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1035
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1109
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1168
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1184
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1218
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221 ;;
1222
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1232
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 ;;
1240
1241 esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1262 do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1338 fi
1339 else
1340 ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures binutils 2.30.52 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1428
1429 cat <<\_ACEOF
1430
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 --target=TARGET configure for building compilers for TARGET [HOST]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of binutils 2.30.52:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-silent-rules less verbose build output (undo: "make V=1")
1458 --disable-silent-rules verbose build output (undo: "make V=0")
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-static[=PKGS] build static libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-plugins Enable support for plugins
1465 --disable-largefile omit support for large files
1466 --enable-targets alternative target configurations
1467 --enable-deterministic-archives
1468 ar and ranlib default to -D behavior
1469 --disable-default-strings-all
1470 strings defaults to --data behavior
1471 --enable-werror treat compile warnings as errors
1472 --enable-build-warnings enable build-time compiler warnings
1473 --disable-nls do not use Native Language Support
1474 --enable-maintainer-mode
1475 enable make rules and dependencies not useful (and
1476 sometimes confusing) to the casual installer
1477 --disable-rpath do not hardcode runtime library paths
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1483 both]
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-system-zlib use installed libz
1486 --with-gnu-ld assume the C compiler uses GNU ld default=no
1487 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1488 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1489
1490 Some influential environment variables:
1491 CC C compiler command
1492 CFLAGS C compiler flags
1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1494 nonstandard directory <lib dir>
1495 LIBS libraries to pass to the linker, e.g. -l<library>
1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497 you have headers in a nonstandard directory <include dir>
1498 CPP C preprocessor
1499 YACC The `Yet Another Compiler Compiler' implementation to use.
1500 Defaults to the first program found out of: `bison -y', `byacc',
1501 `yacc'.
1502 YFLAGS The list of arguments that will be passed by default to $YACC.
1503 This script will default YFLAGS to the empty string to avoid a
1504 default value of `-d' given by some make applications.
1505
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1508
1509 Report bugs to the package provider.
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" ||
1518 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1519 continue
1520 ac_builddir=.
1521
1522 case "$ac_dir" in
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *)
1525 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 esac ;;
1532 esac
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1537
1538 case $srcdir in
1539 .) # We are building in place.
1540 ac_srcdir=.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1547 *) # Relative name.
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 esac
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1562 else
1563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 fi || ac_status=$?
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1566 done
1567 fi
1568
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1571 cat <<\_ACEOF
1572 binutils configure 2.30.52
1573 generated by GNU Autoconf 2.69
1574
1575 Copyright (C) 2012 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579 exit
1580 fi
1581
1582 ## ------------------------ ##
1583 ## Autoconf initialization. ##
1584 ## ------------------------ ##
1585
1586 # ac_fn_c_try_compile LINENO
1587 # --------------------------
1588 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_compile ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext
1593 if { { ac_try="$ac_compile"
1594 case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_compile") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest.$ac_objext; then :
1612 ac_retval=0
1613 else
1614 $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=1
1618 fi
1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620 as_fn_set_status $ac_retval
1621
1622 } # ac_fn_c_try_compile
1623
1624 # ac_fn_c_try_link LINENO
1625 # -----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_link ()
1628 {
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext conftest$ac_exeext
1631 if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_link") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest$ac_exeext && {
1650 test "$cross_compiling" = yes ||
1651 test -x conftest$ac_exeext
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658 ac_retval=1
1659 fi
1660 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1661 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1662 # interfere with the next link command; also delete a directory that is
1663 # left behind by Apple's compiler. We do this before executing the actions.
1664 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_link
1669
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 }; then :
1695 ac_retval=0
1696 else
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701 fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_cpp
1706
1707 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1710 # the include files in INCLUDES and setting the cache variable VAR
1711 # accordingly.
1712 ac_fn_c_check_header_mongrel ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if eval \${$3+:} false; then :
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1720 fi
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 else
1725 # Is the header compilable?
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1727 $as_echo_n "checking $2 usability... " >&6; }
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 $4
1731 #include <$2>
1732 _ACEOF
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_header_compiler=yes
1735 else
1736 ac_header_compiler=no
1737 fi
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1740 $as_echo "$ac_header_compiler" >&6; }
1741
1742 # Is the header present?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1744 $as_echo_n "checking $2 presence... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_cpp "$LINENO"; then :
1750 ac_header_preproc=yes
1751 else
1752 ac_header_preproc=no
1753 fi
1754 rm -f conftest.err conftest.i conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1756 $as_echo "$ac_header_preproc" >&6; }
1757
1758 # So? What about this header?
1759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1760 yes:no: )
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1762 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765 ;;
1766 no:yes:* )
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1768 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1770 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1772 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1774 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 ;;
1778 esac
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 eval "$3=\$ac_header_compiler"
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 fi
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_mongrel
1793
1794 # ac_fn_c_try_run LINENO
1795 # ----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797 # that executables *can* be run.
1798 ac_fn_c_try_run ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1819 ac_status=$?
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; }; }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: program exited with status $ac_status" >&5
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=$ac_status
1829 fi
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_run
1835
1836 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1837 # -------------------------------------------------------
1838 # Tests whether HEADER exists and can be compiled using the include files in
1839 # INCLUDES, setting the cache variable VAR accordingly.
1840 ac_fn_c_check_header_compile ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 $4
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 eval "$3=yes"
1855 else
1856 eval "$3=no"
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 fi
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864
1865 } # ac_fn_c_check_header_compile
1866
1867 # ac_fn_c_check_func LINENO FUNC VAR
1868 # ----------------------------------
1869 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1870 ac_fn_c_check_func ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874 $as_echo_n "checking for $2... " >&6; }
1875 if eval \${$3+:} false; then :
1876 $as_echo_n "(cached) " >&6
1877 else
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1882 #define $2 innocuous_$2
1883
1884 /* System header to define __stub macros and hopefully few prototypes,
1885 which can conflict with char $2 (); below.
1886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1887 <limits.h> exists even on freestanding compilers. */
1888
1889 #ifdef __STDC__
1890 # include <limits.h>
1891 #else
1892 # include <assert.h>
1893 #endif
1894
1895 #undef $2
1896
1897 /* Override any GCC internal prototype to avoid an error.
1898 Use char because int might match the return type of a GCC
1899 builtin and then its argument prototype would still apply. */
1900 #ifdef __cplusplus
1901 extern "C"
1902 #endif
1903 char $2 ();
1904 /* The GNU C library defines this for functions which it implements
1905 to always fail with ENOSYS. Some functions are actually named
1906 something starting with __ and the normal name is an alias. */
1907 #if defined __stub_$2 || defined __stub___$2
1908 choke me
1909 #endif
1910
1911 int
1912 main ()
1913 {
1914 return $2 ();
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_link "$LINENO"; then :
1920 eval "$3=yes"
1921 else
1922 eval "$3=no"
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext \
1925 conftest$ac_exeext conftest.$ac_ext
1926 fi
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932 } # ac_fn_c_check_func
1933
1934 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1935 # --------------------------------------------
1936 # Tries to find the compile-time value of EXPR in a program that includes
1937 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1938 # computed
1939 ac_fn_c_compute_int ()
1940 {
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 if test "$cross_compiling" = yes; then
1943 # Depending upon the size, compute the lo and hi bounds.
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 int
1948 main ()
1949 {
1950 static int test_array [1 - 2 * !(($2) >= 0)];
1951 test_array [0] = 0;
1952 return test_array [0];
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 ac_lo=0 ac_mid=0
1960 while :; do
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $4
1964 int
1965 main ()
1966 {
1967 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1968 test_array [0] = 0;
1969 return test_array [0];
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_hi=$ac_mid; break
1977 else
1978 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1979 if test $ac_lo -le $ac_mid; then
1980 ac_lo= ac_hi=
1981 break
1982 fi
1983 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 done
1987 else
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 $4
1991 int
1992 main ()
1993 {
1994 static int test_array [1 - 2 * !(($2) < 0)];
1995 test_array [0] = 0;
1996 return test_array [0];
1997
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_hi=-1 ac_mid=-1
2004 while :; do
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 $4
2008 int
2009 main ()
2010 {
2011 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2012 test_array [0] = 0;
2013 return test_array [0];
2014
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_lo=$ac_mid; break
2021 else
2022 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2023 if test $ac_mid -le $ac_hi; then
2024 ac_lo= ac_hi=
2025 break
2026 fi
2027 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 done
2031 else
2032 ac_lo= ac_hi=
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 # Binary search between lo and hi bounds.
2038 while test "x$ac_lo" != "x$ac_hi"; do
2039 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2047 test_array [0] = 0;
2048 return test_array [0];
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055 ac_hi=$ac_mid
2056 else
2057 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 done
2061 case $ac_lo in #((
2062 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2063 '') ac_retval=1 ;;
2064 esac
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 $4
2069 static long int longval () { return $2; }
2070 static unsigned long int ulongval () { return $2; }
2071 #include <stdio.h>
2072 #include <stdlib.h>
2073 int
2074 main ()
2075 {
2076
2077 FILE *f = fopen ("conftest.val", "w");
2078 if (! f)
2079 return 1;
2080 if (($2) < 0)
2081 {
2082 long int i = longval ();
2083 if (i != ($2))
2084 return 1;
2085 fprintf (f, "%ld", i);
2086 }
2087 else
2088 {
2089 unsigned long int i = ulongval ();
2090 if (i != ($2))
2091 return 1;
2092 fprintf (f, "%lu", i);
2093 }
2094 /* Do not output a trailing newline, as this causes \r\n confusion
2095 on some platforms. */
2096 return ferror (f) || fclose (f) != 0;
2097
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_run "$LINENO"; then :
2103 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2104 else
2105 ac_retval=1
2106 fi
2107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2108 conftest.$ac_objext conftest.beam conftest.$ac_ext
2109 rm -f conftest.val
2110
2111 fi
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 as_fn_set_status $ac_retval
2114
2115 } # ac_fn_c_compute_int
2116
2117 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2118 # -------------------------------------------
2119 # Tests whether TYPE exists after having included INCLUDES, setting cache
2120 # variable VAR accordingly.
2121 ac_fn_c_check_type ()
2122 {
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2128 else
2129 eval "$3=no"
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2132 $4
2133 int
2134 main ()
2135 {
2136 if (sizeof ($2))
2137 return 0;
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 int
2147 main ()
2148 {
2149 if (sizeof (($2)))
2150 return 0;
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156
2157 else
2158 eval "$3=yes"
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 fi
2164 eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168
2169 } # ac_fn_c_check_type
2170
2171 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2172 # ---------------------------------------------
2173 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2174 # accordingly.
2175 ac_fn_c_check_decl ()
2176 {
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 as_decl_name=`echo $2|sed 's/ *(.*//'`
2179 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2181 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2182 if eval \${$3+:} false; then :
2183 $as_echo_n "(cached) " >&6
2184 else
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 int
2189 main ()
2190 {
2191 #ifndef $as_decl_name
2192 #ifdef __cplusplus
2193 (void) $as_decl_use;
2194 #else
2195 (void) $as_decl_name;
2196 #endif
2197 #endif
2198
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 eval "$3=yes"
2205 else
2206 eval "$3=no"
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 eval ac_res=\$$3
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214
2215 } # ac_fn_c_check_decl
2216 cat >config.log <<_ACEOF
2217 This file contains any messages produced by compilers while
2218 running configure, to aid debugging if configure makes a mistake.
2219
2220 It was created by binutils $as_me 2.30.52, which was
2221 generated by GNU Autoconf 2.69. Invocation command line was
2222
2223 $ $0 $@
2224
2225 _ACEOF
2226 exec 5>>config.log
2227 {
2228 cat <<_ASUNAME
2229 ## --------- ##
2230 ## Platform. ##
2231 ## --------- ##
2232
2233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2238
2239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2240 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2241
2242 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2243 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2245 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2246 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2247 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2248 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2249
2250 _ASUNAME
2251
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 $as_echo "PATH: $as_dir"
2258 done
2259 IFS=$as_save_IFS
2260
2261 } >&5
2262
2263 cat >&5 <<_ACEOF
2264
2265
2266 ## ----------- ##
2267 ## Core tests. ##
2268 ## ----------- ##
2269
2270 _ACEOF
2271
2272
2273 # Keep a trace of the command line.
2274 # Strip out --no-create and --no-recursion so they do not pile up.
2275 # Strip out --silent because we don't want to record it for future runs.
2276 # Also quote any args containing shell meta-characters.
2277 # Make two passes to allow for proper duplicate-argument suppression.
2278 ac_configure_args=
2279 ac_configure_args0=
2280 ac_configure_args1=
2281 ac_must_keep_next=false
2282 for ac_pass in 1 2
2283 do
2284 for ac_arg
2285 do
2286 case $ac_arg in
2287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2289 | -silent | --silent | --silen | --sile | --sil)
2290 continue ;;
2291 *\'*)
2292 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2293 esac
2294 case $ac_pass in
2295 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2296 2)
2297 as_fn_append ac_configure_args1 " '$ac_arg'"
2298 if test $ac_must_keep_next = true; then
2299 ac_must_keep_next=false # Got value, back to normal.
2300 else
2301 case $ac_arg in
2302 *=* | --config-cache | -C | -disable-* | --disable-* \
2303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2305 | -with-* | --with-* | -without-* | --without-* | --x)
2306 case "$ac_configure_args0 " in
2307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2308 esac
2309 ;;
2310 -* ) ac_must_keep_next=true ;;
2311 esac
2312 fi
2313 as_fn_append ac_configure_args " '$ac_arg'"
2314 ;;
2315 esac
2316 done
2317 done
2318 { ac_configure_args0=; unset ac_configure_args0;}
2319 { ac_configure_args1=; unset ac_configure_args1;}
2320
2321 # When interrupted or exit'd, cleanup temporary files, and complete
2322 # config.log. We remove comments because anyway the quotes in there
2323 # would cause problems or look ugly.
2324 # WARNING: Use '\'' to represent an apostrophe within the trap.
2325 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2326 trap 'exit_status=$?
2327 # Save into config.log some information that might help in debugging.
2328 {
2329 echo
2330
2331 $as_echo "## ---------------- ##
2332 ## Cache variables. ##
2333 ## ---------------- ##"
2334 echo
2335 # The following way of writing the cache mishandles newlines in values,
2336 (
2337 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2338 eval ac_val=\$$ac_var
2339 case $ac_val in #(
2340 *${as_nl}*)
2341 case $ac_var in #(
2342 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2344 esac
2345 case $ac_var in #(
2346 _ | IFS | as_nl) ;; #(
2347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2348 *) { eval $ac_var=; unset $ac_var;} ;;
2349 esac ;;
2350 esac
2351 done
2352 (set) 2>&1 |
2353 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2354 *${as_nl}ac_space=\ *)
2355 sed -n \
2356 "s/'\''/'\''\\\\'\'''\''/g;
2357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2358 ;; #(
2359 *)
2360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2361 ;;
2362 esac |
2363 sort
2364 )
2365 echo
2366
2367 $as_echo "## ----------------- ##
2368 ## Output variables. ##
2369 ## ----------------- ##"
2370 echo
2371 for ac_var in $ac_subst_vars
2372 do
2373 eval ac_val=\$$ac_var
2374 case $ac_val in
2375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376 esac
2377 $as_echo "$ac_var='\''$ac_val'\''"
2378 done | sort
2379 echo
2380
2381 if test -n "$ac_subst_files"; then
2382 $as_echo "## ------------------- ##
2383 ## File substitutions. ##
2384 ## ------------------- ##"
2385 echo
2386 for ac_var in $ac_subst_files
2387 do
2388 eval ac_val=\$$ac_var
2389 case $ac_val in
2390 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2391 esac
2392 $as_echo "$ac_var='\''$ac_val'\''"
2393 done | sort
2394 echo
2395 fi
2396
2397 if test -s confdefs.h; then
2398 $as_echo "## ----------- ##
2399 ## confdefs.h. ##
2400 ## ----------- ##"
2401 echo
2402 cat confdefs.h
2403 echo
2404 fi
2405 test "$ac_signal" != 0 &&
2406 $as_echo "$as_me: caught signal $ac_signal"
2407 $as_echo "$as_me: exit $exit_status"
2408 } >&5
2409 rm -f core *.core core.conftest.* &&
2410 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2411 exit $exit_status
2412 ' 0
2413 for ac_signal in 1 2 13 15; do
2414 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415 done
2416 ac_signal=0
2417
2418 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2419 rm -f -r conftest* confdefs.h
2420
2421 $as_echo "/* confdefs.h */" > confdefs.h
2422
2423 # Predefined preprocessor variables.
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_NAME "$PACKAGE_NAME"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_STRING "$PACKAGE_STRING"
2439 _ACEOF
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_URL "$PACKAGE_URL"
2447 _ACEOF
2448
2449
2450 # Let the site file select an alternate cache file if it wants to.
2451 # Prefer an explicitly selected file to automatically selected ones.
2452 ac_site_file1=NONE
2453 ac_site_file2=NONE
2454 if test -n "$CONFIG_SITE"; then
2455 # We do not want a PATH search for config.site.
2456 case $CONFIG_SITE in #((
2457 -*) ac_site_file1=./$CONFIG_SITE;;
2458 */*) ac_site_file1=$CONFIG_SITE;;
2459 *) ac_site_file1=./$CONFIG_SITE;;
2460 esac
2461 elif test "x$prefix" != xNONE; then
2462 ac_site_file1=$prefix/share/config.site
2463 ac_site_file2=$prefix/etc/config.site
2464 else
2465 ac_site_file1=$ac_default_prefix/share/config.site
2466 ac_site_file2=$ac_default_prefix/etc/config.site
2467 fi
2468 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2469 do
2470 test "x$ac_site_file" = xNONE && continue
2471 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2473 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2474 sed 's/^/| /' "$ac_site_file" >&5
2475 . "$ac_site_file" \
2476 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478 as_fn_error $? "failed to load site script $ac_site_file
2479 See \`config.log' for more details" "$LINENO" 5; }
2480 fi
2481 done
2482
2483 if test -r "$cache_file"; then
2484 # Some versions of bash will fail to source /dev/null (special files
2485 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2486 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2488 $as_echo "$as_me: loading cache $cache_file" >&6;}
2489 case $cache_file in
2490 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2491 *) . "./$cache_file";;
2492 esac
2493 fi
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2496 $as_echo "$as_me: creating cache $cache_file" >&6;}
2497 >$cache_file
2498 fi
2499
2500 # Check that the precious variables saved in the cache have kept the same
2501 # value.
2502 ac_cache_corrupted=false
2503 for ac_var in $ac_precious_vars; do
2504 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2505 eval ac_new_set=\$ac_env_${ac_var}_set
2506 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2507 eval ac_new_val=\$ac_env_${ac_var}_value
2508 case $ac_old_set,$ac_new_set in
2509 set,)
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2511 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2512 ac_cache_corrupted=: ;;
2513 ,set)
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2515 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2516 ac_cache_corrupted=: ;;
2517 ,);;
2518 *)
2519 if test "x$ac_old_val" != "x$ac_new_val"; then
2520 # differences in whitespace do not lead to failure.
2521 ac_old_val_w=`echo x $ac_old_val`
2522 ac_new_val_w=`echo x $ac_new_val`
2523 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2525 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2526 ac_cache_corrupted=:
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2529 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2530 eval $ac_var=\$ac_old_val
2531 fi
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2533 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2535 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2536 fi;;
2537 esac
2538 # Pass precious variables to config.status.
2539 if test "$ac_new_set" = set; then
2540 case $ac_new_val in
2541 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2542 *) ac_arg=$ac_var=$ac_new_val ;;
2543 esac
2544 case " $ac_configure_args " in
2545 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2546 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547 esac
2548 fi
2549 done
2550 if $ac_cache_corrupted; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2554 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2555 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2556 fi
2557 ## -------------------- ##
2558 ## Main body of script. ##
2559 ## -------------------- ##
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568
2569
2570
2571
2572
2573 ac_aux_dir=
2574 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2575 if test -f "$ac_dir/install-sh"; then
2576 ac_aux_dir=$ac_dir
2577 ac_install_sh="$ac_aux_dir/install-sh -c"
2578 break
2579 elif test -f "$ac_dir/install.sh"; then
2580 ac_aux_dir=$ac_dir
2581 ac_install_sh="$ac_aux_dir/install.sh -c"
2582 break
2583 elif test -f "$ac_dir/shtool"; then
2584 ac_aux_dir=$ac_dir
2585 ac_install_sh="$ac_aux_dir/shtool install -c"
2586 break
2587 fi
2588 done
2589 if test -z "$ac_aux_dir"; then
2590 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2591 fi
2592
2593 # These three variables are undocumented and unsupported,
2594 # and are intended to be withdrawn in a future Autoconf release.
2595 # They can cause serious problems if a builder's source tree is in a directory
2596 # whose full name contains unusual characters.
2597 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2598 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2599 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2600
2601
2602 # Make sure we can run config.sub.
2603 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2604 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2605
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2607 $as_echo_n "checking build system type... " >&6; }
2608 if ${ac_cv_build+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 ac_build_alias=$build_alias
2612 test "x$ac_build_alias" = x &&
2613 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2614 test "x$ac_build_alias" = x &&
2615 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2617 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2618
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621 $as_echo "$ac_cv_build" >&6; }
2622 case $ac_cv_build in
2623 *-*-*) ;;
2624 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2625 esac
2626 build=$ac_cv_build
2627 ac_save_IFS=$IFS; IFS='-'
2628 set x $ac_cv_build
2629 shift
2630 build_cpu=$1
2631 build_vendor=$2
2632 shift; shift
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2635 build_os=$*
2636 IFS=$ac_save_IFS
2637 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641 $as_echo_n "checking host system type... " >&6; }
2642 if ${ac_cv_host+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test "x$host_alias" = x; then
2646 ac_cv_host=$ac_cv_build
2647 else
2648 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2650 fi
2651
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2654 $as_echo "$ac_cv_host" >&6; }
2655 case $ac_cv_host in
2656 *-*-*) ;;
2657 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2658 esac
2659 host=$ac_cv_host
2660 ac_save_IFS=$IFS; IFS='-'
2661 set x $ac_cv_host
2662 shift
2663 host_cpu=$1
2664 host_vendor=$2
2665 shift; shift
2666 # Remember, the first character of IFS is used to create $*,
2667 # except with old shells:
2668 host_os=$*
2669 IFS=$ac_save_IFS
2670 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2671
2672
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2674 $as_echo_n "checking target system type... " >&6; }
2675 if ${ac_cv_target+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test "x$target_alias" = x; then
2679 ac_cv_target=$ac_cv_host
2680 else
2681 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2682 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2683 fi
2684
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2687 $as_echo "$ac_cv_target" >&6; }
2688 case $ac_cv_target in
2689 *-*-*) ;;
2690 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2691 esac
2692 target=$ac_cv_target
2693 ac_save_IFS=$IFS; IFS='-'
2694 set x $ac_cv_target
2695 shift
2696 target_cpu=$1
2697 target_vendor=$2
2698 shift; shift
2699 # Remember, the first character of IFS is used to create $*,
2700 # except with old shells:
2701 target_os=$*
2702 IFS=$ac_save_IFS
2703 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2704
2705
2706 # The aliases save the names the user supplied, while $host etc.
2707 # will get canonicalized.
2708 test -n "$target_alias" &&
2709 test "$program_prefix$program_suffix$program_transform_name" = \
2710 NONENONEs,x,x, &&
2711 program_prefix=${target_alias}-
2712 # Expand $ac_aux_dir to an absolute path.
2713 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2714
2715 ac_ext=c
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 if test -n "$ac_tool_prefix"; then
2721 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_CC+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test -n "$CC"; then
2729 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742 done
2743 done
2744 IFS=$as_save_IFS
2745
2746 fi
2747 fi
2748 CC=$ac_cv_prog_CC
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2752 else
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2756
2757
2758 fi
2759 if test -z "$ac_cv_prog_CC"; then
2760 ac_ct_CC=$CC
2761 # Extract the first word of "gcc", so it can be a program name with args.
2762 set dummy gcc; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_CC="gcc"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797 if test "x$ac_ct_CC" = x; then
2798 CC=""
2799 else
2800 case $cross_compiling:$ac_tool_warned in
2801 yes:)
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804 ac_tool_warned=yes ;;
2805 esac
2806 CC=$ac_ct_CC
2807 fi
2808 else
2809 CC="$ac_cv_prog_CC"
2810 fi
2811
2812 if test -z "$CC"; then
2813 if test -n "$ac_tool_prefix"; then
2814 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}cc; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_CC+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$CC"; then
2822 ac_cv_prog_CC="$CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_CC="${ac_tool_prefix}cc"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 CC=$ac_cv_prog_CC
2842 if test -n "$CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2844 $as_echo "$CC" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850
2851 fi
2852 fi
2853 if test -z "$CC"; then
2854 # Extract the first word of "cc", so it can be a program name with args.
2855 set dummy cc; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_CC+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test -n "$CC"; then
2862 ac_cv_prog_CC="$CC" # Let the user override the test.
2863 else
2864 ac_prog_rejected=no
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2873 ac_prog_rejected=yes
2874 continue
2875 fi
2876 ac_cv_prog_CC="cc"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 if test $ac_prog_rejected = yes; then
2885 # We found a bogon in the path, so make sure we never use it.
2886 set dummy $ac_cv_prog_CC
2887 shift
2888 if test $# != 0; then
2889 # We chose a different compiler from the bogus one.
2890 # However, it has the same basename, so the bogon will be chosen
2891 # first if we set CC to just the basename; use the full file name.
2892 shift
2893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2894 fi
2895 fi
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 $as_echo "$CC" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 fi
2909 if test -z "$CC"; then
2910 if test -n "$ac_tool_prefix"; then
2911 for ac_prog in cl.exe
2912 do
2913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_CC+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$CC"; then
2921 ac_cv_prog_CC="$CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 CC=$ac_cv_prog_CC
2941 if test -n "$CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943 $as_echo "$CC" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949
2950 test -n "$CC" && break
2951 done
2952 fi
2953 if test -z "$CC"; then
2954 ac_ct_CC=$CC
2955 for ac_prog in cl.exe
2956 do
2957 # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 if test -n "$ac_ct_CC"; then
2965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974 ac_cv_prog_ac_ct_CC="$ac_prog"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978 done
2979 done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2985 if test -n "$ac_ct_CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2987 $as_echo "$ac_ct_CC" >&6; }
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994 test -n "$ac_ct_CC" && break
2995 done
2996
2997 if test "x$ac_ct_CC" = x; then
2998 CC=""
2999 else
3000 case $cross_compiling:$ac_tool_warned in
3001 yes:)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006 CC=$ac_ct_CC
3007 fi
3008 fi
3009
3010 fi
3011
3012
3013 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error $? "no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details" "$LINENO" 5; }
3017
3018 # Provide some information about the compiler.
3019 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3020 set X $ac_compile
3021 ac_compiler=$2
3022 for ac_option in --version -v -V -qversion; do
3023 { { ac_try="$ac_compiler $ac_option >&5"
3024 case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027 esac
3028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029 $as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3031 ac_status=$?
3032 if test -s conftest.err; then
3033 sed '10a\
3034 ... rest of stderr output deleted ...
3035 10q' conftest.err >conftest.er1
3036 cat conftest.er1 >&5
3037 fi
3038 rm -f conftest.er1 conftest.err
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }
3041 done
3042
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3045
3046 int
3047 main ()
3048 {
3049
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 ac_clean_files_save=$ac_clean_files
3055 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3056 # Try to create an executable without -o first, disregard a.out.
3057 # It will help us diagnose broken compilers, and finding out an intuition
3058 # of exeext.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3060 $as_echo_n "checking whether the C compiler works... " >&6; }
3061 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3062
3063 # The possible output files:
3064 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3065
3066 ac_rmfiles=
3067 for ac_file in $ac_files
3068 do
3069 case $ac_file in
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3071 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3072 esac
3073 done
3074 rm -f $ac_rmfiles
3075
3076 if { { ac_try="$ac_link_default"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_link_default") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3088 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3089 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3090 # so that the user can short-circuit this test for compilers unknown to
3091 # Autoconf.
3092 for ac_file in $ac_files ''
3093 do
3094 test -f "$ac_file" || continue
3095 case $ac_file in
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3097 ;;
3098 [ab].out )
3099 # We found the default executable, but exeext='' is most
3100 # certainly right.
3101 break;;
3102 *.* )
3103 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3104 then :; else
3105 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106 fi
3107 # We set ac_cv_exeext here because the later test for it is not
3108 # safe: cross compilers may not add the suffix if given an `-o'
3109 # argument, so we may need to know it at that point already.
3110 # Even if this section looks crufty: it has the advantage of
3111 # actually working.
3112 break;;
3113 * )
3114 break;;
3115 esac
3116 done
3117 test "$ac_cv_exeext" = no && ac_cv_exeext=
3118
3119 else
3120 ac_file=''
3121 fi
3122 if test -z "$ac_file"; then :
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error 77 "C compiler cannot create executables
3131 See \`config.log' for more details" "$LINENO" 5; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3135 fi
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3137 $as_echo_n "checking for C compiler default output file name... " >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3139 $as_echo "$ac_file" >&6; }
3140 ac_exeext=$ac_cv_exeext
3141
3142 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3143 ac_clean_files=$ac_clean_files_save
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3145 $as_echo_n "checking for suffix of executables... " >&6; }
3146 if { { ac_try="$ac_link"
3147 case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_link") 2>&5
3154 ac_status=$?
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }; then :
3157 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3158 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3159 # work properly (i.e., refer to `conftest.exe'), while it won't with
3160 # `rm'.
3161 for ac_file in conftest.exe conftest conftest.*; do
3162 test -f "$ac_file" || continue
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 break;;
3167 * ) break;;
3168 esac
3169 done
3170 else
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3174 See \`config.log' for more details" "$LINENO" 5; }
3175 fi
3176 rm -f conftest conftest$ac_cv_exeext
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3178 $as_echo "$ac_cv_exeext" >&6; }
3179
3180 rm -f conftest.$ac_ext
3181 EXEEXT=$ac_cv_exeext
3182 ac_exeext=$EXEEXT
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3185 #include <stdio.h>
3186 int
3187 main ()
3188 {
3189 FILE *f = fopen ("conftest.out", "w");
3190 return ferror (f) || fclose (f) != 0;
3191
3192 ;
3193 return 0;
3194 }
3195 _ACEOF
3196 ac_clean_files="$ac_clean_files conftest.out"
3197 # Check that the compiler produces executables we can run. If not, either
3198 # the compiler is broken, or we cross compile.
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3200 $as_echo_n "checking whether we are cross compiling... " >&6; }
3201 if test "$cross_compiling" != yes; then
3202 { { ac_try="$ac_link"
3203 case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206 esac
3207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_link") 2>&5
3210 ac_status=$?
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }
3213 if { ac_try='./conftest$ac_cv_exeext'
3214 { { case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_try") 2>&5
3221 ac_status=$?
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }; }; then
3224 cross_compiling=no
3225 else
3226 if test "$cross_compiling" = maybe; then
3227 cross_compiling=yes
3228 else
3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231 as_fn_error $? "cannot run C compiled programs.
3232 If you meant to cross compile, use \`--host'.
3233 See \`config.log' for more details" "$LINENO" 5; }
3234 fi
3235 fi
3236 fi
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3238 $as_echo "$cross_compiling" >&6; }
3239
3240 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3241 ac_clean_files=$ac_clean_files_save
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3243 $as_echo_n "checking for suffix of object files... " >&6; }
3244 if ${ac_cv_objext+:} false; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3249
3250 int
3251 main ()
3252 {
3253
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.o conftest.obj
3259 if { { ac_try="$ac_compile"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_compile") 2>&5
3267 ac_status=$?
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
3270 for ac_file in conftest.o conftest.obj conftest.*; do
3271 test -f "$ac_file" || continue;
3272 case $ac_file in
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3275 break;;
3276 esac
3277 done
3278 else
3279 $as_echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error $? "cannot compute suffix of object files: cannot compile
3285 See \`config.log' for more details" "$LINENO" 5; }
3286 fi
3287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 fi
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3290 $as_echo "$ac_cv_objext" >&6; }
3291 OBJEXT=$ac_cv_objext
3292 ac_objext=$OBJEXT
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3294 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3295 if ${ac_cv_c_compiler_gnu+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3300
3301 int
3302 main ()
3303 {
3304 #ifndef __GNUC__
3305 choke me
3306 #endif
3307
3308 ;
3309 return 0;
3310 }
3311 _ACEOF
3312 if ac_fn_c_try_compile "$LINENO"; then :
3313 ac_compiler_gnu=yes
3314 else
3315 ac_compiler_gnu=no
3316 fi
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3319
3320 fi
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3322 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3323 if test $ac_compiler_gnu = yes; then
3324 GCC=yes
3325 else
3326 GCC=
3327 fi
3328 ac_test_CFLAGS=${CFLAGS+set}
3329 ac_save_CFLAGS=$CFLAGS
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3331 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3332 if ${ac_cv_prog_cc_g+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 ac_save_c_werror_flag=$ac_c_werror_flag
3336 ac_c_werror_flag=yes
3337 ac_cv_prog_cc_g=no
3338 CFLAGS="-g"
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3341
3342 int
3343 main ()
3344 {
3345
3346 ;
3347 return 0;
3348 }
3349 _ACEOF
3350 if ac_fn_c_try_compile "$LINENO"; then :
3351 ac_cv_prog_cc_g=yes
3352 else
3353 CFLAGS=""
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356
3357 int
3358 main ()
3359 {
3360
3361 ;
3362 return 0;
3363 }
3364 _ACEOF
3365 if ac_fn_c_try_compile "$LINENO"; then :
3366
3367 else
3368 ac_c_werror_flag=$ac_save_c_werror_flag
3369 CFLAGS="-g"
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372
3373 int
3374 main ()
3375 {
3376
3377 ;
3378 return 0;
3379 }
3380 _ACEOF
3381 if ac_fn_c_try_compile "$LINENO"; then :
3382 ac_cv_prog_cc_g=yes
3383 fi
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 fi
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_c_werror_flag=$ac_save_c_werror_flag
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3392 $as_echo "$ac_cv_prog_cc_g" >&6; }
3393 if test "$ac_test_CFLAGS" = set; then
3394 CFLAGS=$ac_save_CFLAGS
3395 elif test $ac_cv_prog_cc_g = yes; then
3396 if test "$GCC" = yes; then
3397 CFLAGS="-g -O2"
3398 else
3399 CFLAGS="-g"
3400 fi
3401 else
3402 if test "$GCC" = yes; then
3403 CFLAGS="-O2"
3404 else
3405 CFLAGS=
3406 fi
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3409 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3410 if ${ac_cv_prog_cc_c89+:} false; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 ac_cv_prog_cc_c89=no
3414 ac_save_CC=$CC
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417 #include <stdarg.h>
3418 #include <stdio.h>
3419 struct stat;
3420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3421 struct buf { int x; };
3422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423 static char *e (p, i)
3424 char **p;
3425 int i;
3426 {
3427 return p[i];
3428 }
3429 static char *f (char * (*g) (char **, int), char **p, ...)
3430 {
3431 char *s;
3432 va_list v;
3433 va_start (v,p);
3434 s = g (p, va_arg (v,int));
3435 va_end (v);
3436 return s;
3437 }
3438
3439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3440 function prototypes and stuff, but not '\xHH' hex character constants.
3441 These don't provoke an error unfortunately, instead are silently treated
3442 as 'x'. The following induces an error, until -std is added to get
3443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3444 array size at least. It's necessary to write '\x00'==0 to get something
3445 that's true only with -std. */
3446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3447
3448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449 inside strings and character constants. */
3450 #define FOO(x) 'x'
3451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3452
3453 int test (int i, double x);
3454 struct s1 {int (*f) (int a);};
3455 struct s2 {int (*f) (double a);};
3456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3457 int argc;
3458 char **argv;
3459 int
3460 main ()
3461 {
3462 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3469 do
3470 CC="$ac_save_CC $ac_arg"
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472 ac_cv_prog_cc_c89=$ac_arg
3473 fi
3474 rm -f core conftest.err conftest.$ac_objext
3475 test "x$ac_cv_prog_cc_c89" != "xno" && break
3476 done
3477 rm -f conftest.$ac_ext
3478 CC=$ac_save_CC
3479
3480 fi
3481 # AC_CACHE_VAL
3482 case "x$ac_cv_prog_cc_c89" in
3483 x)
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3485 $as_echo "none needed" >&6; } ;;
3486 xno)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3488 $as_echo "unsupported" >&6; } ;;
3489 *)
3490 CC="$CC $ac_cv_prog_cc_c89"
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3492 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3493 esac
3494 if test "x$ac_cv_prog_cc_c89" != xno; then :
3495
3496 fi
3497
3498 ac_ext=c
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503
3504 ac_ext=c
3505 ac_cpp='$CPP $CPPFLAGS'
3506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3510 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3511 if ${am_cv_prog_cc_c_o+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3516
3517 int
3518 main ()
3519 {
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 # Make sure it works both with $CC and with simple cc.
3526 # Following AC_PROG_CC_C_O, we do the test twice because some
3527 # compilers refuse to overwrite an existing .o file with -o,
3528 # though they will create one.
3529 am_cv_prog_cc_c_o=yes
3530 for am_i in 1 2; do
3531 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3532 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3533 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } \
3536 && test -f conftest2.$ac_objext; then
3537 : OK
3538 else
3539 am_cv_prog_cc_c_o=no
3540 break
3541 fi
3542 done
3543 rm -f core conftest*
3544 unset am_i
3545 fi
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3547 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3548 if test "$am_cv_prog_cc_c_o" != yes; then
3549 # Losing compiler, so override with the script.
3550 # FIXME: It is wrong to rewrite CC.
3551 # But if we don't then we get into trouble of one sort or another.
3552 # A longer-term fix would be to have automake use am__CC in this case,
3553 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3554 CC="$am_aux_dir/compile $CC"
3555 fi
3556 ac_ext=c
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561
3562
3563
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3565 $as_echo_n "checking for library containing strerror... " >&6; }
3566 if ${ac_cv_search_strerror+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 ac_func_search_save_LIBS=$LIBS
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 /* Override any GCC internal prototype to avoid an error.
3574 Use char because int might match the return type of a GCC
3575 builtin and then its argument prototype would still apply. */
3576 #ifdef __cplusplus
3577 extern "C"
3578 #endif
3579 char strerror ();
3580 int
3581 main ()
3582 {
3583 return strerror ();
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 for ac_lib in '' cposix; do
3589 if test -z "$ac_lib"; then
3590 ac_res="none required"
3591 else
3592 ac_res=-l$ac_lib
3593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3594 fi
3595 if ac_fn_c_try_link "$LINENO"; then :
3596 ac_cv_search_strerror=$ac_res
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext \
3599 conftest$ac_exeext
3600 if ${ac_cv_search_strerror+:} false; then :
3601 break
3602 fi
3603 done
3604 if ${ac_cv_search_strerror+:} false; then :
3605
3606 else
3607 ac_cv_search_strerror=no
3608 fi
3609 rm conftest.$ac_ext
3610 LIBS=$ac_func_search_save_LIBS
3611 fi
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3613 $as_echo "$ac_cv_search_strerror" >&6; }
3614 ac_res=$ac_cv_search_strerror
3615 if test "$ac_res" != no; then :
3616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3617
3618 fi
3619
3620
3621 am__api_version='1.15'
3622
3623 # Find a good install program. We prefer a C program (faster),
3624 # so one script is as good as another. But avoid the broken or
3625 # incompatible versions:
3626 # SysV /etc/install, /usr/sbin/install
3627 # SunOS /usr/etc/install
3628 # IRIX /sbin/install
3629 # AIX /bin/install
3630 # AmigaOS /C/install, which installs bootblocks on floppy discs
3631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3634 # OS/2's system install, which has a completely different semantic
3635 # ./install, which can be erroneously created by make from ./install.sh.
3636 # Reject install programs that cannot install multiple files.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3639 if test -z "$INSTALL"; then
3640 if ${ac_cv_path_install+:} false; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 # Account for people who put trailing slashes in PATH elements.
3649 case $as_dir/ in #((
3650 ./ | .// | /[cC]/* | \
3651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3652 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3653 /usr/ucb/* ) ;;
3654 *)
3655 # OSF1 and SCO ODT 3.0 have their own names for install.
3656 # Don't use installbsd from OSF since it installs stuff as root
3657 # by default.
3658 for ac_prog in ginstall scoinst install; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3661 if test $ac_prog = install &&
3662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663 # AIX install. It has an incompatible calling convention.
3664 :
3665 elif test $ac_prog = install &&
3666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667 # program-specific install script used by HP pwplus--don't use.
3668 :
3669 else
3670 rm -rf conftest.one conftest.two conftest.dir
3671 echo one > conftest.one
3672 echo two > conftest.two
3673 mkdir conftest.dir
3674 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3675 test -s conftest.one && test -s conftest.two &&
3676 test -s conftest.dir/conftest.one &&
3677 test -s conftest.dir/conftest.two
3678 then
3679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3680 break 3
3681 fi
3682 fi
3683 fi
3684 done
3685 done
3686 ;;
3687 esac
3688
3689 done
3690 IFS=$as_save_IFS
3691
3692 rm -rf conftest.one conftest.two conftest.dir
3693
3694 fi
3695 if test "${ac_cv_path_install+set}" = set; then
3696 INSTALL=$ac_cv_path_install
3697 else
3698 # As a last resort, use the slow shell script. Don't cache a
3699 # value for INSTALL within a source directory, because that will
3700 # break other packages using the cache if that directory is
3701 # removed, or if the value is a relative name.
3702 INSTALL=$ac_install_sh
3703 fi
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3706 $as_echo "$INSTALL" >&6; }
3707
3708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3709 # It thinks the first close brace ends the variable substitution.
3710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3711
3712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3713
3714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3715
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3717 $as_echo_n "checking whether build environment is sane... " >&6; }
3718 # Reject unsafe characters in $srcdir or the absolute working directory
3719 # name. Accept space and tab only in the latter.
3720 am_lf='
3721 '
3722 case `pwd` in
3723 *[\\\"\#\$\&\'\`$am_lf]*)
3724 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3725 esac
3726 case $srcdir in
3727 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3728 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3729 esac
3730
3731 # Do 'set' in a subshell so we don't clobber the current shell's
3732 # arguments. Must try -L first in case configure is actually a
3733 # symlink; some systems play weird games with the mod time of symlinks
3734 # (eg FreeBSD returns the mod time of the symlink's containing
3735 # directory).
3736 if (
3737 am_has_slept=no
3738 for am_try in 1 2; do
3739 echo "timestamp, slept: $am_has_slept" > conftest.file
3740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3741 if test "$*" = "X"; then
3742 # -L didn't work.
3743 set X `ls -t "$srcdir/configure" conftest.file`
3744 fi
3745 if test "$*" != "X $srcdir/configure conftest.file" \
3746 && test "$*" != "X conftest.file $srcdir/configure"; then
3747
3748 # If neither matched, then we have a broken ls. This can happen
3749 # if, for instance, CONFIG_SHELL is bash and it inherits a
3750 # broken ls alias from the environment. This has actually
3751 # happened. Such a system could not be considered "sane".
3752 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3753 alias in your environment" "$LINENO" 5
3754 fi
3755 if test "$2" = conftest.file || test $am_try -eq 2; then
3756 break
3757 fi
3758 # Just in case.
3759 sleep 1
3760 am_has_slept=yes
3761 done
3762 test "$2" = conftest.file
3763 )
3764 then
3765 # Ok.
3766 :
3767 else
3768 as_fn_error $? "newly created file is older than distributed files!
3769 Check your system clock" "$LINENO" 5
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772 $as_echo "yes" >&6; }
3773 # If we didn't sleep, we still need to ensure time stamps of config.status and
3774 # generated files are strictly newer.
3775 am_sleep_pid=
3776 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3777 ( sleep 1 ) &
3778 am_sleep_pid=$!
3779 fi
3780
3781 rm -f conftest.file
3782
3783 test "$program_prefix" != NONE &&
3784 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3785 # Use a double $ so make ignores it.
3786 test "$program_suffix" != NONE &&
3787 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3788 # Double any \ or $.
3789 # By default was `s,x,x', remove it if useless.
3790 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3791 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3792
3793 if test x"${MISSING+set}" != xset; then
3794 case $am_aux_dir in
3795 *\ * | *\ *)
3796 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3797 *)
3798 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3799 esac
3800 fi
3801 # Use eval to expand $SHELL
3802 if eval "$MISSING --is-lightweight"; then
3803 am_missing_run="$MISSING "
3804 else
3805 am_missing_run=
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3807 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3808 fi
3809
3810 if test x"${install_sh+set}" != xset; then
3811 case $am_aux_dir in
3812 *\ * | *\ *)
3813 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3814 *)
3815 install_sh="\${SHELL} $am_aux_dir/install-sh"
3816 esac
3817 fi
3818
3819 # Installed binaries are usually stripped using 'strip' when the user
3820 # run "make install-strip". However 'strip' might not be the right
3821 # tool to use in cross-compilation environments, therefore Automake
3822 # will honor the 'STRIP' environment variable to overrule this program.
3823 if test "$cross_compiling" != no; then
3824 if test -n "$ac_tool_prefix"; then
3825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3826 set dummy ${ac_tool_prefix}strip; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_STRIP+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831 else
3832 if test -n "$STRIP"; then
3833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3834 else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3845 fi
3846 done
3847 done
3848 IFS=$as_save_IFS
3849
3850 fi
3851 fi
3852 STRIP=$ac_cv_prog_STRIP
3853 if test -n "$STRIP"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3855 $as_echo "$STRIP" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3859 fi
3860
3861
3862 fi
3863 if test -z "$ac_cv_prog_STRIP"; then
3864 ac_ct_STRIP=$STRIP
3865 # Extract the first word of "strip", so it can be a program name with args.
3866 set dummy strip; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if test -n "$ac_ct_STRIP"; then
3873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_ac_ct_STRIP="strip"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886 done
3887 done
3888 IFS=$as_save_IFS
3889
3890 fi
3891 fi
3892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3893 if test -n "$ac_ct_STRIP"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3895 $as_echo "$ac_ct_STRIP" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 fi
3900
3901 if test "x$ac_ct_STRIP" = x; then
3902 STRIP=":"
3903 else
3904 case $cross_compiling:$ac_tool_warned in
3905 yes:)
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3908 ac_tool_warned=yes ;;
3909 esac
3910 STRIP=$ac_ct_STRIP
3911 fi
3912 else
3913 STRIP="$ac_cv_prog_STRIP"
3914 fi
3915
3916 fi
3917 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3920 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3921 if test -z "$MKDIR_P"; then
3922 if ${ac_cv_path_mkdir+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3927 do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_prog in mkdir gmkdir; do
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3933 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3934 'mkdir (GNU coreutils) '* | \
3935 'mkdir (coreutils) '* | \
3936 'mkdir (fileutils) '4.1*)
3937 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3938 break 3;;
3939 esac
3940 done
3941 done
3942 done
3943 IFS=$as_save_IFS
3944
3945 fi
3946
3947 test -d ./--version && rmdir ./--version
3948 if test "${ac_cv_path_mkdir+set}" = set; then
3949 MKDIR_P="$ac_cv_path_mkdir -p"
3950 else
3951 # As a last resort, use the slow shell script. Don't cache a
3952 # value for MKDIR_P within a source directory, because that will
3953 # break other packages using the cache if that directory is
3954 # removed, or if the value is a relative name.
3955 MKDIR_P="$ac_install_sh -d"
3956 fi
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3959 $as_echo "$MKDIR_P" >&6; }
3960
3961 for ac_prog in gawk mawk nawk awk
3962 do
3963 # Extract the first word of "$ac_prog", so it can be a program name with args.
3964 set dummy $ac_prog; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_AWK+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$AWK"; then
3971 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_AWK="$ac_prog"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 AWK=$ac_cv_prog_AWK
3991 if test -n "$AWK"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3993 $as_echo "$AWK" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 test -n "$AWK" && break
4001 done
4002
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4004 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4005 set x ${MAKE-make}
4006 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4007 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 cat >conftest.make <<\_ACEOF
4011 SHELL = /bin/sh
4012 all:
4013 @echo '@@@%%%=$(MAKE)=@@@%%%'
4014 _ACEOF
4015 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4016 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4017 *@@@%%%=?*=@@@%%%*)
4018 eval ac_cv_prog_make_${ac_make}_set=yes;;
4019 *)
4020 eval ac_cv_prog_make_${ac_make}_set=no;;
4021 esac
4022 rm -f conftest.make
4023 fi
4024 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4026 $as_echo "yes" >&6; }
4027 SET_MAKE=
4028 else
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 SET_MAKE="MAKE=${MAKE-make}"
4032 fi
4033
4034 rm -rf .tst 2>/dev/null
4035 mkdir .tst 2>/dev/null
4036 if test -d .tst; then
4037 am__leading_dot=.
4038 else
4039 am__leading_dot=_
4040 fi
4041 rmdir .tst 2>/dev/null
4042
4043 DEPDIR="${am__leading_dot}deps"
4044
4045 ac_config_commands="$ac_config_commands depfiles"
4046
4047
4048 am_make=${MAKE-make}
4049 cat > confinc << 'END'
4050 am__doit:
4051 @echo this is the am__doit target
4052 .PHONY: am__doit
4053 END
4054 # If we don't find an include directive, just comment out the code.
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4056 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4057 am__include="#"
4058 am__quote=
4059 _am_result=none
4060 # First try GNU make style include.
4061 echo "include confinc" > confmf
4062 # Ignore all kinds of additional output from 'make'.
4063 case `$am_make -s -f confmf 2> /dev/null` in #(
4064 *the\ am__doit\ target*)
4065 am__include=include
4066 am__quote=
4067 _am_result=GNU
4068 ;;
4069 esac
4070 # Now try BSD make style include.
4071 if test "$am__include" = "#"; then
4072 echo '.include "confinc"' > confmf
4073 case `$am_make -s -f confmf 2> /dev/null` in #(
4074 *the\ am__doit\ target*)
4075 am__include=.include
4076 am__quote="\""
4077 _am_result=BSD
4078 ;;
4079 esac
4080 fi
4081
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4084 $as_echo "$_am_result" >&6; }
4085 rm -f confinc confmf
4086
4087 # Check whether --enable-dependency-tracking was given.
4088 if test "${enable_dependency_tracking+set}" = set; then :
4089 enableval=$enable_dependency_tracking;
4090 fi
4091
4092 if test "x$enable_dependency_tracking" != xno; then
4093 am_depcomp="$ac_aux_dir/depcomp"
4094 AMDEPBACKSLASH='\'
4095 am__nodep='_no'
4096 fi
4097 if test "x$enable_dependency_tracking" != xno; then
4098 AMDEP_TRUE=
4099 AMDEP_FALSE='#'
4100 else
4101 AMDEP_TRUE='#'
4102 AMDEP_FALSE=
4103 fi
4104
4105
4106 # Check whether --enable-silent-rules was given.
4107 if test "${enable_silent_rules+set}" = set; then :
4108 enableval=$enable_silent_rules;
4109 fi
4110
4111 case $enable_silent_rules in # (((
4112 yes) AM_DEFAULT_VERBOSITY=0;;
4113 no) AM_DEFAULT_VERBOSITY=1;;
4114 *) AM_DEFAULT_VERBOSITY=1;;
4115 esac
4116 am_make=${MAKE-make}
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4118 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4119 if ${am_cv_make_support_nested_variables+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if $as_echo 'TRUE=$(BAR$(V))
4123 BAR0=false
4124 BAR1=true
4125 V=1
4126 am__doit:
4127 @$(TRUE)
4128 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4129 am_cv_make_support_nested_variables=yes
4130 else
4131 am_cv_make_support_nested_variables=no
4132 fi
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4135 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4136 if test $am_cv_make_support_nested_variables = yes; then
4137 AM_V='$(V)'
4138 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4139 else
4140 AM_V=$AM_DEFAULT_VERBOSITY
4141 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4142 fi
4143 AM_BACKSLASH='\'
4144
4145 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4146 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4147 # is not polluted with repeated "-I."
4148 am__isrc=' -I$(srcdir)'
4149 # test to see if srcdir already configured
4150 if test -f $srcdir/config.status; then
4151 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4152 fi
4153 fi
4154
4155 # test whether we have cygpath
4156 if test -z "$CYGPATH_W"; then
4157 if (cygpath --version) >/dev/null 2>/dev/null; then
4158 CYGPATH_W='cygpath -w'
4159 else
4160 CYGPATH_W=echo
4161 fi
4162 fi
4163
4164
4165 # Define the identity of the package.
4166 PACKAGE='binutils'
4167 VERSION='2.30.52'
4168
4169
4170 cat >>confdefs.h <<_ACEOF
4171 #define PACKAGE "$PACKAGE"
4172 _ACEOF
4173
4174
4175 cat >>confdefs.h <<_ACEOF
4176 #define VERSION "$VERSION"
4177 _ACEOF
4178
4179 # Some tools Automake needs.
4180
4181 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4182
4183
4184 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4185
4186
4187 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4188
4189
4190 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4191
4192
4193 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4194
4195 # For better backward compatibility. To be removed once Automake 1.9.x
4196 # dies out for good. For more background, see:
4197 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4198 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4199 mkdir_p='$(MKDIR_P)'
4200
4201 # We need awk for the "check" target (and possibly the TAP driver). The
4202 # system "awk" is bad on some platforms.
4203 # Always define AMTAR for backward compatibility. Yes, it's still used
4204 # in the wild :-( We should find a proper way to deprecate it ...
4205 AMTAR='$${TAR-tar}'
4206
4207
4208 # We'll loop over all known methods to create a tar archive until one works.
4209 _am_tools='gnutar pax cpio none'
4210
4211 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4212
4213
4214
4215
4216
4217 depcc="$CC" am_compiler_list=
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220 $as_echo_n "checking dependency style of $depcc... " >&6; }
4221 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225 # We make a subdir and do the tests there. Otherwise we can end up
4226 # making bogus files that we don't know about and never remove. For
4227 # instance it was reported that on HP-UX the gcc test will end up
4228 # making a dummy file named 'D' -- because '-MD' means "put the output
4229 # in D".
4230 rm -rf conftest.dir
4231 mkdir conftest.dir
4232 # Copy depcomp to subdir because otherwise we won't find it if we're
4233 # using a relative directory.
4234 cp "$am_depcomp" conftest.dir
4235 cd conftest.dir
4236 # We will build objects and dependencies in a subdirectory because
4237 # it helps to detect inapplicable dependency modes. For instance
4238 # both Tru64's cc and ICC support -MD to output dependencies as a
4239 # side effect of compilation, but ICC will put the dependencies in
4240 # the current directory while Tru64 will put them in the object
4241 # directory.
4242 mkdir sub
4243
4244 am_cv_CC_dependencies_compiler_type=none
4245 if test "$am_compiler_list" = ""; then
4246 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4247 fi
4248 am__universal=false
4249 case " $depcc " in #(
4250 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4251 esac
4252
4253 for depmode in $am_compiler_list; do
4254 # Setup a source with many dependencies, because some compilers
4255 # like to wrap large dependency lists on column 80 (with \), and
4256 # we should not choose a depcomp mode which is confused by this.
4257 #
4258 # We need to recreate these files for each test, as the compiler may
4259 # overwrite some of them when testing with obscure command lines.
4260 # This happens at least with the AIX C compiler.
4261 : > sub/conftest.c
4262 for i in 1 2 3 4 5 6; do
4263 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4264 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4265 # Solaris 10 /bin/sh.
4266 echo '/* dummy */' > sub/conftst$i.h
4267 done
4268 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269
4270 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4271 # mode. It turns out that the SunPro C++ compiler does not properly
4272 # handle '-M -o', and we need to detect this. Also, some Intel
4273 # versions had trouble with output in subdirs.
4274 am__obj=sub/conftest.${OBJEXT-o}
4275 am__minus_obj="-o $am__obj"
4276 case $depmode in
4277 gcc)
4278 # This depmode causes a compiler race in universal mode.
4279 test "$am__universal" = false || continue
4280 ;;
4281 nosideeffect)
4282 # After this tag, mechanisms are not by side-effect, so they'll
4283 # only be used when explicitly requested.
4284 if test "x$enable_dependency_tracking" = xyes; then
4285 continue
4286 else
4287 break
4288 fi
4289 ;;
4290 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4291 # This compiler won't grok '-c -o', but also, the minuso test has
4292 # not run yet. These depmodes are late enough in the game, and
4293 # so weak that their functioning should not be impacted.
4294 am__obj=conftest.${OBJEXT-o}
4295 am__minus_obj=
4296 ;;
4297 none) break ;;
4298 esac
4299 if depmode=$depmode \
4300 source=sub/conftest.c object=$am__obj \
4301 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4302 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4303 >/dev/null 2>conftest.err &&
4304 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4305 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4306 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4307 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4308 # icc doesn't choke on unknown options, it will just issue warnings
4309 # or remarks (even with -Werror). So we grep stderr for any message
4310 # that says an option was ignored or not supported.
4311 # When given -MP, icc 7.0 and 7.1 complain thusly:
4312 # icc: Command line warning: ignoring option '-M'; no argument required
4313 # The diagnosis changed in icc 8.0:
4314 # icc: Command line remark: option '-MP' not supported
4315 if (grep 'ignoring option' conftest.err ||
4316 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4317 am_cv_CC_dependencies_compiler_type=$depmode
4318 break
4319 fi
4320 fi
4321 done
4322
4323 cd ..
4324 rm -rf conftest.dir
4325 else
4326 am_cv_CC_dependencies_compiler_type=none
4327 fi
4328
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4331 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4332 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4333
4334 if
4335 test "x$enable_dependency_tracking" != xno \
4336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4337 am__fastdepCC_TRUE=
4338 am__fastdepCC_FALSE='#'
4339 else
4340 am__fastdepCC_TRUE='#'
4341 am__fastdepCC_FALSE=
4342 fi
4343
4344
4345
4346 # POSIX will say in a future version that running "rm -f" with no argument
4347 # is OK; and we want to be able to make that assumption in our Makefile
4348 # recipes. So use an aggressive probe to check that the usage we want is
4349 # actually supported "in the wild" to an acceptable degree.
4350 # See automake bug#10828.
4351 # To make any issue more visible, cause the running configure to be aborted
4352 # by default if the 'rm' program in use doesn't match our expectations; the
4353 # user can still override this though.
4354 if rm -f && rm -fr && rm -rf; then : OK; else
4355 cat >&2 <<'END'
4356 Oops!
4357
4358 Your 'rm' program seems unable to run without file operands specified
4359 on the command line, even when the '-f' option is present. This is contrary
4360 to the behaviour of most rm programs out there, and not conforming with
4361 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4362
4363 Please tell bug-automake@gnu.org about your system, including the value
4364 of your $PATH and any error possibly output before this message. This
4365 can help us improve future automake versions.
4366
4367 END
4368 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4369 echo 'Configuration will proceed anyway, since you have set the' >&2
4370 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4371 echo >&2
4372 else
4373 cat >&2 <<'END'
4374 Aborting the configuration process, to ensure you take notice of the issue.
4375
4376 You can download and install GNU coreutils to get an 'rm' implementation
4377 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4378
4379 If you want to complete the configuration process using your problematic
4380 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4381 to "yes", and re-run configure.
4382
4383 END
4384 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4385 fi
4386 fi
4387
4388
4389 ac_ext=c
4390 ac_cpp='$CPP $CPPFLAGS'
4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 if test -n "$ac_tool_prefix"; then
4395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4396 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if ${ac_cv_prog_CC+:} false; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 CC=$ac_cv_prog_CC
4423 if test -n "$CC"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4425 $as_echo "$CC" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432 fi
4433 if test -z "$ac_cv_prog_CC"; then
4434 ac_ct_CC=$CC
4435 # Extract the first word of "gcc", so it can be a program name with args.
4436 set dummy gcc; ac_word=$2
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$ac_ct_CC"; then
4443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_prog_ac_ct_CC="gcc"
4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456 done
4457 done
4458 IFS=$as_save_IFS
4459
4460 fi
4461 fi
4462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4463 if test -n "$ac_ct_CC"; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4465 $as_echo "$ac_ct_CC" >&6; }
4466 else
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4468 $as_echo "no" >&6; }
4469 fi
4470
4471 if test "x$ac_ct_CC" = x; then
4472 CC=""
4473 else
4474 case $cross_compiling:$ac_tool_warned in
4475 yes:)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned=yes ;;
4479 esac
4480 CC=$ac_ct_CC
4481 fi
4482 else
4483 CC="$ac_cv_prog_CC"
4484 fi
4485
4486 if test -z "$CC"; then
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4489 set dummy ${ac_tool_prefix}cc; ac_word=$2
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if ${ac_cv_prog_CC+:} false; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 if test -n "$CC"; then
4496 ac_cv_prog_CC="$CC" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_CC="${ac_tool_prefix}cc"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509 done
4510 done
4511 IFS=$as_save_IFS
4512
4513 fi
4514 fi
4515 CC=$ac_cv_prog_CC
4516 if test -n "$CC"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4518 $as_echo "$CC" >&6; }
4519 else
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4522 fi
4523
4524
4525 fi
4526 fi
4527 if test -z "$CC"; then
4528 # Extract the first word of "cc", so it can be a program name with args.
4529 set dummy cc; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_prog_CC+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 if test -n "$CC"; then
4536 ac_cv_prog_CC="$CC" # Let the user override the test.
4537 else
4538 ac_prog_rejected=no
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4547 ac_prog_rejected=yes
4548 continue
4549 fi
4550 ac_cv_prog_CC="cc"
4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4557
4558 if test $ac_prog_rejected = yes; then
4559 # We found a bogon in the path, so make sure we never use it.
4560 set dummy $ac_cv_prog_CC
4561 shift
4562 if test $# != 0; then
4563 # We chose a different compiler from the bogus one.
4564 # However, it has the same basename, so the bogon will be chosen
4565 # first if we set CC to just the basename; use the full file name.
4566 shift
4567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4568 fi
4569 fi
4570 fi
4571 fi
4572 CC=$ac_cv_prog_CC
4573 if test -n "$CC"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4575 $as_echo "$CC" >&6; }
4576 else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580
4581
4582 fi
4583 if test -z "$CC"; then
4584 if test -n "$ac_tool_prefix"; then
4585 for ac_prog in cl.exe
4586 do
4587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if ${ac_cv_prog_CC+:} false; then :
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -n "$CC"; then
4595 ac_cv_prog_CC="$CC" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608 done
4609 done
4610 IFS=$as_save_IFS
4611
4612 fi
4613 fi
4614 CC=$ac_cv_prog_CC
4615 if test -n "$CC"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4617 $as_echo "$CC" >&6; }
4618 else
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622
4623
4624 test -n "$CC" && break
4625 done
4626 fi
4627 if test -z "$CC"; then
4628 ac_ct_CC=$CC
4629 for ac_prog in cl.exe
4630 do
4631 # Extract the first word of "$ac_prog", so it can be a program name with args.
4632 set dummy $ac_prog; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$ac_ct_CC"; then
4639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_ac_ct_CC="$ac_prog"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4651 fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656 fi
4657 fi
4658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4659 if test -n "$ac_ct_CC"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4661 $as_echo "$ac_ct_CC" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 fi
4666
4667
4668 test -n "$ac_ct_CC" && break
4669 done
4670
4671 if test "x$ac_ct_CC" = x; then
4672 CC=""
4673 else
4674 case $cross_compiling:$ac_tool_warned in
4675 yes:)
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678 ac_tool_warned=yes ;;
4679 esac
4680 CC=$ac_ct_CC
4681 fi
4682 fi
4683
4684 fi
4685
4686
4687 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689 as_fn_error $? "no acceptable C compiler found in \$PATH
4690 See \`config.log' for more details" "$LINENO" 5; }
4691
4692 # Provide some information about the compiler.
4693 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4694 set X $ac_compile
4695 ac_compiler=$2
4696 for ac_option in --version -v -V -qversion; do
4697 { { ac_try="$ac_compiler $ac_option >&5"
4698 case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701 esac
4702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4703 $as_echo "$ac_try_echo"; } >&5
4704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4705 ac_status=$?
4706 if test -s conftest.err; then
4707 sed '10a\
4708 ... rest of stderr output deleted ...
4709 10q' conftest.err >conftest.er1
4710 cat conftest.er1 >&5
4711 fi
4712 rm -f conftest.er1 conftest.err
4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4714 test $ac_status = 0; }
4715 done
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4718 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4719 if ${ac_cv_c_compiler_gnu+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4724
4725 int
4726 main ()
4727 {
4728 #ifndef __GNUC__
4729 choke me
4730 #endif
4731
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_compiler_gnu=yes
4738 else
4739 ac_compiler_gnu=no
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4743
4744 fi
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4747 if test $ac_compiler_gnu = yes; then
4748 GCC=yes
4749 else
4750 GCC=
4751 fi
4752 ac_test_CFLAGS=${CFLAGS+set}
4753 ac_save_CFLAGS=$CFLAGS
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4756 if ${ac_cv_prog_cc_g+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 ac_save_c_werror_flag=$ac_c_werror_flag
4760 ac_c_werror_flag=yes
4761 ac_cv_prog_cc_g=no
4762 CFLAGS="-g"
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765
4766 int
4767 main ()
4768 {
4769
4770 ;
4771 return 0;
4772 }
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_cv_prog_cc_g=yes
4776 else
4777 CFLAGS=""
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780
4781 int
4782 main ()
4783 {
4784
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 if ac_fn_c_try_compile "$LINENO"; then :
4790
4791 else
4792 ac_c_werror_flag=$ac_save_c_werror_flag
4793 CFLAGS="-g"
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796
4797 int
4798 main ()
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 ac_cv_prog_cc_g=yes
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 ac_c_werror_flag=$ac_save_c_werror_flag
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4816 $as_echo "$ac_cv_prog_cc_g" >&6; }
4817 if test "$ac_test_CFLAGS" = set; then
4818 CFLAGS=$ac_save_CFLAGS
4819 elif test $ac_cv_prog_cc_g = yes; then
4820 if test "$GCC" = yes; then
4821 CFLAGS="-g -O2"
4822 else
4823 CFLAGS="-g"
4824 fi
4825 else
4826 if test "$GCC" = yes; then
4827 CFLAGS="-O2"
4828 else
4829 CFLAGS=
4830 fi
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4833 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4834 if ${ac_cv_prog_cc_c89+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 ac_cv_prog_cc_c89=no
4838 ac_save_CC=$CC
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4841 #include <stdarg.h>
4842 #include <stdio.h>
4843 struct stat;
4844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4845 struct buf { int x; };
4846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4847 static char *e (p, i)
4848 char **p;
4849 int i;
4850 {
4851 return p[i];
4852 }
4853 static char *f (char * (*g) (char **, int), char **p, ...)
4854 {
4855 char *s;
4856 va_list v;
4857 va_start (v,p);
4858 s = g (p, va_arg (v,int));
4859 va_end (v);
4860 return s;
4861 }
4862
4863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4864 function prototypes and stuff, but not '\xHH' hex character constants.
4865 These don't provoke an error unfortunately, instead are silently treated
4866 as 'x'. The following induces an error, until -std is added to get
4867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4868 array size at least. It's necessary to write '\x00'==0 to get something
4869 that's true only with -std. */
4870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4871
4872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4873 inside strings and character constants. */
4874 #define FOO(x) 'x'
4875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4876
4877 int test (int i, double x);
4878 struct s1 {int (*f) (int a);};
4879 struct s2 {int (*f) (double a);};
4880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881 int argc;
4882 char **argv;
4883 int
4884 main ()
4885 {
4886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4887 ;
4888 return 0;
4889 }
4890 _ACEOF
4891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4893 do
4894 CC="$ac_save_CC $ac_arg"
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 ac_cv_prog_cc_c89=$ac_arg
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext
4899 test "x$ac_cv_prog_cc_c89" != "xno" && break
4900 done
4901 rm -f conftest.$ac_ext
4902 CC=$ac_save_CC
4903
4904 fi
4905 # AC_CACHE_VAL
4906 case "x$ac_cv_prog_cc_c89" in
4907 x)
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4909 $as_echo "none needed" >&6; } ;;
4910 xno)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4912 $as_echo "unsupported" >&6; } ;;
4913 *)
4914 CC="$CC $ac_cv_prog_cc_c89"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4917 esac
4918 if test "x$ac_cv_prog_cc_c89" != xno; then :
4919
4920 fi
4921
4922 ac_ext=c
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927
4928 ac_ext=c
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4934 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4935 if ${am_cv_prog_cc_c_o+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940
4941 int
4942 main ()
4943 {
4944
4945 ;
4946 return 0;
4947 }
4948 _ACEOF
4949 # Make sure it works both with $CC and with simple cc.
4950 # Following AC_PROG_CC_C_O, we do the test twice because some
4951 # compilers refuse to overwrite an existing .o file with -o,
4952 # though they will create one.
4953 am_cv_prog_cc_c_o=yes
4954 for am_i in 1 2; do
4955 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4956 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } \
4960 && test -f conftest2.$ac_objext; then
4961 : OK
4962 else
4963 am_cv_prog_cc_c_o=no
4964 break
4965 fi
4966 done
4967 rm -f core conftest*
4968 unset am_i
4969 fi
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4971 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4972 if test "$am_cv_prog_cc_c_o" != yes; then
4973 # Losing compiler, so override with the script.
4974 # FIXME: It is wrong to rewrite CC.
4975 # But if we don't then we get into trouble of one sort or another.
4976 # A longer-term fix would be to have automake use am__CC in this case,
4977 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4978 CC="$am_aux_dir/compile $CC"
4979 fi
4980 ac_ext=c
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985
4986
4987 ac_ext=c
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4993 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4994 # On Suns, sometimes $CPP names a directory.
4995 if test -n "$CPP" && test -d "$CPP"; then
4996 CPP=
4997 fi
4998 if test -z "$CPP"; then
4999 if ${ac_cv_prog_CPP+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 # Double quotes because CPP needs to be expanded
5003 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5004 do
5005 ac_preproc_ok=false
5006 for ac_c_preproc_warn_flag in '' yes
5007 do
5008 # Use a header file that comes with gcc, so configuring glibc
5009 # with a fresh cross-compiler works.
5010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011 # <limits.h> exists even on freestanding compilers.
5012 # On the NeXT, cc -E runs the code through the compiler's parser,
5013 # not just through cpp. "Syntax error" is here to catch this case.
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 #ifdef __STDC__
5017 # include <limits.h>
5018 #else
5019 # include <assert.h>
5020 #endif
5021 Syntax error
5022 _ACEOF
5023 if ac_fn_c_try_cpp "$LINENO"; then :
5024
5025 else
5026 # Broken: fails on valid input.
5027 continue
5028 fi
5029 rm -f conftest.err conftest.i conftest.$ac_ext
5030
5031 # OK, works on sane cases. Now check whether nonexistent headers
5032 # can be detected and how.
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5035 #include <ac_nonexistent.h>
5036 _ACEOF
5037 if ac_fn_c_try_cpp "$LINENO"; then :
5038 # Broken: success on invalid input.
5039 continue
5040 else
5041 # Passes both tests.
5042 ac_preproc_ok=:
5043 break
5044 fi
5045 rm -f conftest.err conftest.i conftest.$ac_ext
5046
5047 done
5048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049 rm -f conftest.i conftest.err conftest.$ac_ext
5050 if $ac_preproc_ok; then :
5051 break
5052 fi
5053
5054 done
5055 ac_cv_prog_CPP=$CPP
5056
5057 fi
5058 CPP=$ac_cv_prog_CPP
5059 else
5060 ac_cv_prog_CPP=$CPP
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5063 $as_echo "$CPP" >&6; }
5064 ac_preproc_ok=false
5065 for ac_c_preproc_warn_flag in '' yes
5066 do
5067 # Use a header file that comes with gcc, so configuring glibc
5068 # with a fresh cross-compiler works.
5069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5070 # <limits.h> exists even on freestanding compilers.
5071 # On the NeXT, cc -E runs the code through the compiler's parser,
5072 # not just through cpp. "Syntax error" is here to catch this case.
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #ifdef __STDC__
5076 # include <limits.h>
5077 #else
5078 # include <assert.h>
5079 #endif
5080 Syntax error
5081 _ACEOF
5082 if ac_fn_c_try_cpp "$LINENO"; then :
5083
5084 else
5085 # Broken: fails on valid input.
5086 continue
5087 fi
5088 rm -f conftest.err conftest.i conftest.$ac_ext
5089
5090 # OK, works on sane cases. Now check whether nonexistent headers
5091 # can be detected and how.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <ac_nonexistent.h>
5095 _ACEOF
5096 if ac_fn_c_try_cpp "$LINENO"; then :
5097 # Broken: success on invalid input.
5098 continue
5099 else
5100 # Passes both tests.
5101 ac_preproc_ok=:
5102 break
5103 fi
5104 rm -f conftest.err conftest.i conftest.$ac_ext
5105
5106 done
5107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5108 rm -f conftest.i conftest.err conftest.$ac_ext
5109 if $ac_preproc_ok; then :
5110
5111 else
5112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5114 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5115 See \`config.log' for more details" "$LINENO" 5; }
5116 fi
5117
5118 ac_ext=c
5119 ac_cpp='$CPP $CPPFLAGS'
5120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5123
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5126 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5127 if ${ac_cv_path_GREP+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -z "$GREP"; then
5131 ac_path_GREP_found=false
5132 # Loop through the user's path and test for each of PROGNAME-LIST
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_prog in grep ggrep; do
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5141 as_fn_executable_p "$ac_path_GREP" || continue
5142 # Check for GNU ac_path_GREP and select it if it is found.
5143 # Check for GNU $ac_path_GREP
5144 case `"$ac_path_GREP" --version 2>&1` in
5145 *GNU*)
5146 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5147 *)
5148 ac_count=0
5149 $as_echo_n 0123456789 >"conftest.in"
5150 while :
5151 do
5152 cat "conftest.in" "conftest.in" >"conftest.tmp"
5153 mv "conftest.tmp" "conftest.in"
5154 cp "conftest.in" "conftest.nl"
5155 $as_echo 'GREP' >> "conftest.nl"
5156 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5158 as_fn_arith $ac_count + 1 && ac_count=$as_val
5159 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5160 # Best one so far, save it but keep looking for a better one
5161 ac_cv_path_GREP="$ac_path_GREP"
5162 ac_path_GREP_max=$ac_count
5163 fi
5164 # 10*(2^10) chars as input seems more than enough
5165 test $ac_count -gt 10 && break
5166 done
5167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5168 esac
5169
5170 $ac_path_GREP_found && break 3
5171 done
5172 done
5173 done
5174 IFS=$as_save_IFS
5175 if test -z "$ac_cv_path_GREP"; then
5176 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5177 fi
5178 else
5179 ac_cv_path_GREP=$GREP
5180 fi
5181
5182 fi
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5184 $as_echo "$ac_cv_path_GREP" >&6; }
5185 GREP="$ac_cv_path_GREP"
5186
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5189 $as_echo_n "checking for egrep... " >&6; }
5190 if ${ac_cv_path_EGREP+:} false; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5194 then ac_cv_path_EGREP="$GREP -E"
5195 else
5196 if test -z "$EGREP"; then
5197 ac_path_EGREP_found=false
5198 # Loop through the user's path and test for each of PROGNAME-LIST
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5201 do
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_prog in egrep; do
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5207 as_fn_executable_p "$ac_path_EGREP" || continue
5208 # Check for GNU ac_path_EGREP and select it if it is found.
5209 # Check for GNU $ac_path_EGREP
5210 case `"$ac_path_EGREP" --version 2>&1` in
5211 *GNU*)
5212 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5213 *)
5214 ac_count=0
5215 $as_echo_n 0123456789 >"conftest.in"
5216 while :
5217 do
5218 cat "conftest.in" "conftest.in" >"conftest.tmp"
5219 mv "conftest.tmp" "conftest.in"
5220 cp "conftest.in" "conftest.nl"
5221 $as_echo 'EGREP' >> "conftest.nl"
5222 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5224 as_fn_arith $ac_count + 1 && ac_count=$as_val
5225 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5226 # Best one so far, save it but keep looking for a better one
5227 ac_cv_path_EGREP="$ac_path_EGREP"
5228 ac_path_EGREP_max=$ac_count
5229 fi
5230 # 10*(2^10) chars as input seems more than enough
5231 test $ac_count -gt 10 && break
5232 done
5233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5234 esac
5235
5236 $ac_path_EGREP_found && break 3
5237 done
5238 done
5239 done
5240 IFS=$as_save_IFS
5241 if test -z "$ac_cv_path_EGREP"; then
5242 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5243 fi
5244 else
5245 ac_cv_path_EGREP=$EGREP
5246 fi
5247
5248 fi
5249 fi
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5251 $as_echo "$ac_cv_path_EGREP" >&6; }
5252 EGREP="$ac_cv_path_EGREP"
5253
5254
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5256 $as_echo_n "checking for ANSI C header files... " >&6; }
5257 if ${ac_cv_header_stdc+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 #include <stdlib.h>
5263 #include <stdarg.h>
5264 #include <string.h>
5265 #include <float.h>
5266
5267 int
5268 main ()
5269 {
5270
5271 ;
5272 return 0;
5273 }
5274 _ACEOF
5275 if ac_fn_c_try_compile "$LINENO"; then :
5276 ac_cv_header_stdc=yes
5277 else
5278 ac_cv_header_stdc=no
5279 fi
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281
5282 if test $ac_cv_header_stdc = yes; then
5283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5286 #include <string.h>
5287
5288 _ACEOF
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290 $EGREP "memchr" >/dev/null 2>&1; then :
5291
5292 else
5293 ac_cv_header_stdc=no
5294 fi
5295 rm -f conftest*
5296
5297 fi
5298
5299 if test $ac_cv_header_stdc = yes; then
5300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5303 #include <stdlib.h>
5304
5305 _ACEOF
5306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5307 $EGREP "free" >/dev/null 2>&1; then :
5308
5309 else
5310 ac_cv_header_stdc=no
5311 fi
5312 rm -f conftest*
5313
5314 fi
5315
5316 if test $ac_cv_header_stdc = yes; then
5317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5318 if test "$cross_compiling" = yes; then :
5319 :
5320 else
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <ctype.h>
5324 #include <stdlib.h>
5325 #if ((' ' & 0x0FF) == 0x020)
5326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5328 #else
5329 # define ISLOWER(c) \
5330 (('a' <= (c) && (c) <= 'i') \
5331 || ('j' <= (c) && (c) <= 'r') \
5332 || ('s' <= (c) && (c) <= 'z'))
5333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5334 #endif
5335
5336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5337 int
5338 main ()
5339 {
5340 int i;
5341 for (i = 0; i < 256; i++)
5342 if (XOR (islower (i), ISLOWER (i))
5343 || toupper (i) != TOUPPER (i))
5344 return 2;
5345 return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_c_try_run "$LINENO"; then :
5349
5350 else
5351 ac_cv_header_stdc=no
5352 fi
5353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5354 conftest.$ac_objext conftest.beam conftest.$ac_ext
5355 fi
5356
5357 fi
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5360 $as_echo "$ac_cv_header_stdc" >&6; }
5361 if test $ac_cv_header_stdc = yes; then
5362
5363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5364
5365 fi
5366
5367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5369 inttypes.h stdint.h unistd.h
5370 do :
5371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5373 "
5374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5375 cat >>confdefs.h <<_ACEOF
5376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5377 _ACEOF
5378
5379 fi
5380
5381 done
5382
5383
5384
5385 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5386 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5387 MINIX=yes
5388 else
5389 MINIX=
5390 fi
5391
5392
5393 if test "$MINIX" = yes; then
5394
5395 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5396
5397
5398 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5399
5400
5401 $as_echo "#define _MINIX 1" >>confdefs.h
5402
5403 fi
5404
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5407 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5408 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413
5414 # define __EXTENSIONS__ 1
5415 $ac_includes_default
5416 int
5417 main ()
5418 {
5419
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 if ac_fn_c_try_compile "$LINENO"; then :
5425 ac_cv_safe_to_define___extensions__=yes
5426 else
5427 ac_cv_safe_to_define___extensions__=no
5428 fi
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5432 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5433 test $ac_cv_safe_to_define___extensions__ = yes &&
5434 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5435
5436 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5437
5438 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5439
5440 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5441
5442 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5443
5444
5445
5446
5447
5448 case `pwd` in
5449 *\ * | *\ *)
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5451 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5452 esac
5453
5454
5455
5456 macro_version='2.2.7a'
5457 macro_revision='1.3134'
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471 ltmain="$ac_aux_dir/ltmain.sh"
5472
5473 # Backslashify metacharacters that are still active within
5474 # double-quoted strings.
5475 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5476
5477 # Same as above, but do not quote variable references.
5478 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5479
5480 # Sed substitution to delay expansion of an escaped shell variable in a
5481 # double_quote_subst'ed string.
5482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5483
5484 # Sed substitution to delay expansion of an escaped single quote.
5485 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5486
5487 # Sed substitution to avoid accidental globbing in evaled expressions
5488 no_glob_subst='s/\*/\\\*/g'
5489
5490 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5491 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5495 $as_echo_n "checking how to print strings... " >&6; }
5496 # Test print first, because it will be a builtin if present.
5497 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5498 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5499 ECHO='print -r --'
5500 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5501 ECHO='printf %s\n'
5502 else
5503 # Use this function as a fallback that always works.
5504 func_fallback_echo ()
5505 {
5506 eval 'cat <<_LTECHO_EOF
5507 $1
5508 _LTECHO_EOF'
5509 }
5510 ECHO='func_fallback_echo'
5511 fi
5512
5513 # func_echo_all arg...
5514 # Invoke $ECHO with all args, space-separated.
5515 func_echo_all ()
5516 {
5517 $ECHO ""
5518 }
5519
5520 case "$ECHO" in
5521 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5522 $as_echo "printf" >&6; } ;;
5523 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5524 $as_echo "print -r" >&6; } ;;
5525 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5526 $as_echo "cat" >&6; } ;;
5527 esac
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5543 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5544 if ${ac_cv_path_SED+:} false; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5548 for ac_i in 1 2 3 4 5 6 7; do
5549 ac_script="$ac_script$as_nl$ac_script"
5550 done
5551 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5552 { ac_script=; unset ac_script;}
5553 if test -z "$SED"; then
5554 ac_path_SED_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_prog in sed gsed; do
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5564 as_fn_executable_p "$ac_path_SED" || continue
5565 # Check for GNU ac_path_SED and select it if it is found.
5566 # Check for GNU $ac_path_SED
5567 case `"$ac_path_SED" --version 2>&1` in
5568 *GNU*)
5569 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5570 *)
5571 ac_count=0
5572 $as_echo_n 0123456789 >"conftest.in"
5573 while :
5574 do
5575 cat "conftest.in" "conftest.in" >"conftest.tmp"
5576 mv "conftest.tmp" "conftest.in"
5577 cp "conftest.in" "conftest.nl"
5578 $as_echo '' >> "conftest.nl"
5579 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581 as_fn_arith $ac_count + 1 && ac_count=$as_val
5582 if test $ac_count -gt ${ac_path_SED_max-0}; then
5583 # Best one so far, save it but keep looking for a better one
5584 ac_cv_path_SED="$ac_path_SED"
5585 ac_path_SED_max=$ac_count
5586 fi
5587 # 10*(2^10) chars as input seems more than enough
5588 test $ac_count -gt 10 && break
5589 done
5590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 esac
5592
5593 $ac_path_SED_found && break 3
5594 done
5595 done
5596 done
5597 IFS=$as_save_IFS
5598 if test -z "$ac_cv_path_SED"; then
5599 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5600 fi
5601 else
5602 ac_cv_path_SED=$SED
5603 fi
5604
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5607 $as_echo "$ac_cv_path_SED" >&6; }
5608 SED="$ac_cv_path_SED"
5609 rm -f conftest.sed
5610
5611 test -z "$SED" && SED=sed
5612 Xsed="$SED -e 1s/^X//"
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5625 $as_echo_n "checking for fgrep... " >&6; }
5626 if ${ac_cv_path_FGREP+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5630 then ac_cv_path_FGREP="$GREP -F"
5631 else
5632 if test -z "$FGREP"; then
5633 ac_path_FGREP_found=false
5634 # Loop through the user's path and test for each of PROGNAME-LIST
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5637 do
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_prog in fgrep; do
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5643 as_fn_executable_p "$ac_path_FGREP" || continue
5644 # Check for GNU ac_path_FGREP and select it if it is found.
5645 # Check for GNU $ac_path_FGREP
5646 case `"$ac_path_FGREP" --version 2>&1` in
5647 *GNU*)
5648 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5649 *)
5650 ac_count=0
5651 $as_echo_n 0123456789 >"conftest.in"
5652 while :
5653 do
5654 cat "conftest.in" "conftest.in" >"conftest.tmp"
5655 mv "conftest.tmp" "conftest.in"
5656 cp "conftest.in" "conftest.nl"
5657 $as_echo 'FGREP' >> "conftest.nl"
5658 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5660 as_fn_arith $ac_count + 1 && ac_count=$as_val
5661 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5662 # Best one so far, save it but keep looking for a better one
5663 ac_cv_path_FGREP="$ac_path_FGREP"
5664 ac_path_FGREP_max=$ac_count
5665 fi
5666 # 10*(2^10) chars as input seems more than enough
5667 test $ac_count -gt 10 && break
5668 done
5669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5670 esac
5671
5672 $ac_path_FGREP_found && break 3
5673 done
5674 done
5675 done
5676 IFS=$as_save_IFS
5677 if test -z "$ac_cv_path_FGREP"; then
5678 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5679 fi
5680 else
5681 ac_cv_path_FGREP=$FGREP
5682 fi
5683
5684 fi
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5687 $as_echo "$ac_cv_path_FGREP" >&6; }
5688 FGREP="$ac_cv_path_FGREP"
5689
5690
5691 test -z "$GREP" && GREP=grep
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711 # Check whether --with-gnu-ld was given.
5712 if test "${with_gnu_ld+set}" = set; then :
5713 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5714 else
5715 with_gnu_ld=no
5716 fi
5717
5718 ac_prog=ld
5719 if test "$GCC" = yes; then
5720 # Check if gcc -print-prog-name=ld gives a path.
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5722 $as_echo_n "checking for ld used by $CC... " >&6; }
5723 case $host in
5724 *-*-mingw*)
5725 # gcc leaves a trailing carriage return which upsets mingw
5726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5727 *)
5728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5729 esac
5730 case $ac_prog in
5731 # Accept absolute paths.
5732 [\\/]* | ?:[\\/]*)
5733 re_direlt='/[^/][^/]*/\.\./'
5734 # Canonicalize the pathname of ld
5735 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5736 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5737 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5738 done
5739 test -z "$LD" && LD="$ac_prog"
5740 ;;
5741 "")
5742 # If it fails, then pretend we aren't using GCC.
5743 ac_prog=ld
5744 ;;
5745 *)
5746 # If it is relative, then search for the first ld in PATH.
5747 with_gnu_ld=unknown
5748 ;;
5749 esac
5750 elif test "$with_gnu_ld" = yes; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5752 $as_echo_n "checking for GNU ld... " >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5755 $as_echo_n "checking for non-GNU ld... " >&6; }
5756 fi
5757 if ${lt_cv_path_LD+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 if test -z "$LD"; then
5761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5762 for ac_dir in $PATH; do
5763 IFS="$lt_save_ifs"
5764 test -z "$ac_dir" && ac_dir=.
5765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5766 lt_cv_path_LD="$ac_dir/$ac_prog"
5767 # Check to see if the program is GNU ld. I'd rather use --version,
5768 # but apparently some variants of GNU ld only accept -v.
5769 # Break only if it was the GNU/non-GNU ld that we prefer.
5770 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5771 *GNU* | *'with BFD'*)
5772 test "$with_gnu_ld" != no && break
5773 ;;
5774 *)
5775 test "$with_gnu_ld" != yes && break
5776 ;;
5777 esac
5778 fi
5779 done
5780 IFS="$lt_save_ifs"
5781 else
5782 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5783 fi
5784 fi
5785
5786 LD="$lt_cv_path_LD"
5787 if test -n "$LD"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5789 $as_echo "$LD" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5796 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5797 if ${lt_cv_prog_gnu_ld+:} false; then :
5798 $as_echo_n "(cached) " >&6
5799 else
5800 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5801 case `$LD -v 2>&1 </dev/null` in
5802 *GNU* | *'with BFD'*)
5803 lt_cv_prog_gnu_ld=yes
5804 ;;
5805 *)
5806 lt_cv_prog_gnu_ld=no
5807 ;;
5808 esac
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5811 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5812 with_gnu_ld=$lt_cv_prog_gnu_ld
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5823 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5824 if ${lt_cv_path_NM+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 if test -n "$NM"; then
5828 # Let the user override the test.
5829 lt_cv_path_NM="$NM"
5830 else
5831 lt_nm_to_check="${ac_tool_prefix}nm"
5832 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5833 lt_nm_to_check="$lt_nm_to_check nm"
5834 fi
5835 for lt_tmp_nm in $lt_nm_to_check; do
5836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5837 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5838 IFS="$lt_save_ifs"
5839 test -z "$ac_dir" && ac_dir=.
5840 tmp_nm="$ac_dir/$lt_tmp_nm"
5841 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5842 # Check to see if the nm accepts a BSD-compat flag.
5843 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5844 # nm: unknown option "B" ignored
5845 # Tru64's nm complains that /dev/null is an invalid object file
5846 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5847 */dev/null* | *'Invalid file or object type'*)
5848 lt_cv_path_NM="$tmp_nm -B"
5849 break
5850 ;;
5851 *)
5852 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5853 */dev/null*)
5854 lt_cv_path_NM="$tmp_nm -p"
5855 break
5856 ;;
5857 *)
5858 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5859 continue # so that we can try to find one that supports BSD flags
5860 ;;
5861 esac
5862 ;;
5863 esac
5864 fi
5865 done
5866 IFS="$lt_save_ifs"
5867 done
5868 : ${lt_cv_path_NM=no}
5869 fi
5870 fi
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5872 $as_echo "$lt_cv_path_NM" >&6; }
5873 if test "$lt_cv_path_NM" != "no"; then
5874 NM="$lt_cv_path_NM"
5875 else
5876 # Didn't find any BSD compatible name lister, look for dumpbin.
5877 if test -n "$DUMPBIN"; then :
5878 # Let the user override the test.
5879 else
5880 if test -n "$ac_tool_prefix"; then
5881 for ac_prog in dumpbin "link -dump"
5882 do
5883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_DUMPBIN+:} false; then :
5888 $as_echo_n "(cached) " >&6
5889 else
5890 if test -n "$DUMPBIN"; then
5891 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 break 2
5903 fi
5904 done
5905 done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 DUMPBIN=$ac_cv_prog_DUMPBIN
5911 if test -n "$DUMPBIN"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5913 $as_echo "$DUMPBIN" >&6; }
5914 else
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919
5920 test -n "$DUMPBIN" && break
5921 done
5922 fi
5923 if test -z "$DUMPBIN"; then
5924 ac_ct_DUMPBIN=$DUMPBIN
5925 for ac_prog in dumpbin "link -dump"
5926 do
5927 # Extract the first word of "$ac_prog", so it can be a program name with args.
5928 set dummy $ac_prog; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 if test -n "$ac_ct_DUMPBIN"; then
5935 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5955 if test -n "$ac_ct_DUMPBIN"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5957 $as_echo "$ac_ct_DUMPBIN" >&6; }
5958 else
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963
5964 test -n "$ac_ct_DUMPBIN" && break
5965 done
5966
5967 if test "x$ac_ct_DUMPBIN" = x; then
5968 DUMPBIN=":"
5969 else
5970 case $cross_compiling:$ac_tool_warned in
5971 yes:)
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5974 ac_tool_warned=yes ;;
5975 esac
5976 DUMPBIN=$ac_ct_DUMPBIN
5977 fi
5978 fi
5979
5980 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5981 *COFF*)
5982 DUMPBIN="$DUMPBIN -symbols"
5983 ;;
5984 *)
5985 DUMPBIN=:
5986 ;;
5987 esac
5988 fi
5989
5990 if test "$DUMPBIN" != ":"; then
5991 NM="$DUMPBIN"
5992 fi
5993 fi
5994 test -z "$NM" && NM=nm
5995
5996
5997
5998
5999
6000
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6002 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6003 if ${lt_cv_nm_interface+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 lt_cv_nm_interface="BSD nm"
6007 echo "int some_variable = 0;" > conftest.$ac_ext
6008 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6009 (eval "$ac_compile" 2>conftest.err)
6010 cat conftest.err >&5
6011 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6012 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6013 cat conftest.err >&5
6014 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6015 cat conftest.out >&5
6016 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6017 lt_cv_nm_interface="MS dumpbin"
6018 fi
6019 rm -f conftest*
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6022 $as_echo "$lt_cv_nm_interface" >&6; }
6023
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6025 $as_echo_n "checking whether ln -s works... " >&6; }
6026 LN_S=$as_ln_s
6027 if test "$LN_S" = "ln -s"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6029 $as_echo "yes" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6032 $as_echo "no, using $LN_S" >&6; }
6033 fi
6034
6035 # find the maximum length of command line arguments
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6037 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6038 if ${lt_cv_sys_max_cmd_len+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 i=0
6042 teststring="ABCD"
6043
6044 case $build_os in
6045 msdosdjgpp*)
6046 # On DJGPP, this test can blow up pretty badly due to problems in libc
6047 # (any single argument exceeding 2000 bytes causes a buffer overrun
6048 # during glob expansion). Even if it were fixed, the result of this
6049 # check would be larger than it should be.
6050 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6051 ;;
6052
6053 gnu*)
6054 # Under GNU Hurd, this test is not required because there is
6055 # no limit to the length of command line arguments.
6056 # Libtool will interpret -1 as no limit whatsoever
6057 lt_cv_sys_max_cmd_len=-1;
6058 ;;
6059
6060 cygwin* | mingw* | cegcc*)
6061 # On Win9x/ME, this test blows up -- it succeeds, but takes
6062 # about 5 minutes as the teststring grows exponentially.
6063 # Worse, since 9x/ME are not pre-emptively multitasking,
6064 # you end up with a "frozen" computer, even though with patience
6065 # the test eventually succeeds (with a max line length of 256k).
6066 # Instead, let's just punt: use the minimum linelength reported by
6067 # all of the supported platforms: 8192 (on NT/2K/XP).
6068 lt_cv_sys_max_cmd_len=8192;
6069 ;;
6070
6071 mint*)
6072 # On MiNT this can take a long time and run out of memory.
6073 lt_cv_sys_max_cmd_len=8192;
6074 ;;
6075
6076 amigaos*)
6077 # On AmigaOS with pdksh, this test takes hours, literally.
6078 # So we just punt and use a minimum line length of 8192.
6079 lt_cv_sys_max_cmd_len=8192;
6080 ;;
6081
6082 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6083 # This has been around since 386BSD, at least. Likely further.
6084 if test -x /sbin/sysctl; then
6085 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6086 elif test -x /usr/sbin/sysctl; then
6087 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6088 else
6089 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6090 fi
6091 # And add a safety zone
6092 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6094 ;;
6095
6096 interix*)
6097 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6098 lt_cv_sys_max_cmd_len=196608
6099 ;;
6100
6101 osf*)
6102 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6103 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6104 # nice to cause kernel panics so lets avoid the loop below.
6105 # First set a reasonable default.
6106 lt_cv_sys_max_cmd_len=16384
6107 #
6108 if test -x /sbin/sysconfig; then
6109 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6110 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6111 esac
6112 fi
6113 ;;
6114 sco3.2v5*)
6115 lt_cv_sys_max_cmd_len=102400
6116 ;;
6117 sysv5* | sco5v6* | sysv4.2uw2*)
6118 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6119 if test -n "$kargmax"; then
6120 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6121 else
6122 lt_cv_sys_max_cmd_len=32768
6123 fi
6124 ;;
6125 *)
6126 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6127 if test -n "$lt_cv_sys_max_cmd_len"; then
6128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6130 else
6131 # Make teststring a little bigger before we do anything with it.
6132 # a 1K string should be a reasonable start.
6133 for i in 1 2 3 4 5 6 7 8 ; do
6134 teststring=$teststring$teststring
6135 done
6136 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6137 # If test is not a shell built-in, we'll probably end up computing a
6138 # maximum length that is only half of the actual maximum length, but
6139 # we can't tell.
6140 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6141 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6142 test $i != 17 # 1/2 MB should be enough
6143 do
6144 i=`expr $i + 1`
6145 teststring=$teststring$teststring
6146 done
6147 # Only check the string length outside the loop.
6148 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6149 teststring=
6150 # Add a significant safety factor because C++ compilers can tack on
6151 # massive amounts of additional arguments before passing them to the
6152 # linker. It appears as though 1/2 is a usable value.
6153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6154 fi
6155 ;;
6156 esac
6157
6158 fi
6159
6160 if test -n $lt_cv_sys_max_cmd_len ; then
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6162 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6163 else
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6165 $as_echo "none" >&6; }
6166 fi
6167 max_cmd_len=$lt_cv_sys_max_cmd_len
6168
6169
6170
6171
6172
6173
6174 : ${CP="cp -f"}
6175 : ${MV="mv -f"}
6176 : ${RM="rm -f"}
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6179 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6180 # Try some XSI features
6181 xsi_shell=no
6182 ( _lt_dummy="a/b/c"
6183 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6184 = c,a/b,, \
6185 && eval 'test $(( 1 + 1 )) -eq 2 \
6186 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6187 && xsi_shell=yes
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6189 $as_echo "$xsi_shell" >&6; }
6190
6191
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6193 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6194 lt_shell_append=no
6195 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6196 >/dev/null 2>&1 \
6197 && lt_shell_append=yes
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6199 $as_echo "$lt_shell_append" >&6; }
6200
6201
6202 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6203 lt_unset=unset
6204 else
6205 lt_unset=false
6206 fi
6207
6208
6209
6210
6211
6212 # test EBCDIC or ASCII
6213 case `echo X|tr X '\101'` in
6214 A) # ASCII based system
6215 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6216 lt_SP2NL='tr \040 \012'
6217 lt_NL2SP='tr \015\012 \040\040'
6218 ;;
6219 *) # EBCDIC based system
6220 lt_SP2NL='tr \100 \n'
6221 lt_NL2SP='tr \r\n \100\100'
6222 ;;
6223 esac
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6234 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6235 if ${lt_cv_ld_reload_flag+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 lt_cv_ld_reload_flag='-r'
6239 fi
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6241 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6242 reload_flag=$lt_cv_ld_reload_flag
6243 case $reload_flag in
6244 "" | " "*) ;;
6245 *) reload_flag=" $reload_flag" ;;
6246 esac
6247 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6248 case $host_os in
6249 darwin*)
6250 if test "$GCC" = yes; then
6251 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6252 else
6253 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6254 fi
6255 ;;
6256 esac
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6268 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_OBJDUMP+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$OBJDUMP"; then
6275 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 OBJDUMP=$ac_cv_prog_OBJDUMP
6295 if test -n "$OBJDUMP"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6297 $as_echo "$OBJDUMP" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303
6304 fi
6305 if test -z "$ac_cv_prog_OBJDUMP"; then
6306 ac_ct_OBJDUMP=$OBJDUMP
6307 # Extract the first word of "objdump", so it can be a program name with args.
6308 set dummy objdump; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if test -n "$ac_ct_OBJDUMP"; then
6315 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332 fi
6333 fi
6334 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6335 if test -n "$ac_ct_OBJDUMP"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6337 $as_echo "$ac_ct_OBJDUMP" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6341 fi
6342
6343 if test "x$ac_ct_OBJDUMP" = x; then
6344 OBJDUMP="false"
6345 else
6346 case $cross_compiling:$ac_tool_warned in
6347 yes:)
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350 ac_tool_warned=yes ;;
6351 esac
6352 OBJDUMP=$ac_ct_OBJDUMP
6353 fi
6354 else
6355 OBJDUMP="$ac_cv_prog_OBJDUMP"
6356 fi
6357
6358 test -z "$OBJDUMP" && OBJDUMP=objdump
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6369 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6370 if ${lt_cv_deplibs_check_method+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 lt_cv_file_magic_cmd='$MAGIC_CMD'
6374 lt_cv_file_magic_test_file=
6375 lt_cv_deplibs_check_method='unknown'
6376 # Need to set the preceding variable on all platforms that support
6377 # interlibrary dependencies.
6378 # 'none' -- dependencies not supported.
6379 # `unknown' -- same as none, but documents that we really don't know.
6380 # 'pass_all' -- all dependencies passed with no checks.
6381 # 'test_compile' -- check by making test program.
6382 # 'file_magic [[regex]]' -- check by looking for files in library path
6383 # which responds to the $file_magic_cmd with a given extended regex.
6384 # If you have `file' or equivalent on your system and you're not sure
6385 # whether `pass_all' will *always* work, you probably want this one.
6386
6387 case $host_os in
6388 aix[4-9]*)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391
6392 beos*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396 bsdi[45]*)
6397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6398 lt_cv_file_magic_cmd='/usr/bin/file -L'
6399 lt_cv_file_magic_test_file=/shlib/libc.so
6400 ;;
6401
6402 cygwin*)
6403 # func_win32_libid is a shell function defined in ltmain.sh
6404 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6405 lt_cv_file_magic_cmd='func_win32_libid'
6406 ;;
6407
6408 mingw* | pw32*)
6409 # Base MSYS/MinGW do not provide the 'file' command needed by
6410 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6411 # unless we find 'file', for example because we are cross-compiling.
6412 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6413 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6415 lt_cv_file_magic_cmd='func_win32_libid'
6416 else
6417 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6418 lt_cv_file_magic_cmd='$OBJDUMP -f'
6419 fi
6420 ;;
6421
6422 cegcc*)
6423 # use the weaker test based on 'objdump'. See mingw*.
6424 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6425 lt_cv_file_magic_cmd='$OBJDUMP -f'
6426 ;;
6427
6428 darwin* | rhapsody*)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
6431
6432 freebsd* | dragonfly*)
6433 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6434 case $host_cpu in
6435 i*86 )
6436 # Not sure whether the presence of OpenBSD here was a mistake.
6437 # Let's accept both of them until this is cleared up.
6438 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6439 lt_cv_file_magic_cmd=/usr/bin/file
6440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6441 ;;
6442 esac
6443 else
6444 lt_cv_deplibs_check_method=pass_all
6445 fi
6446 ;;
6447
6448 gnu*)
6449 lt_cv_deplibs_check_method=pass_all
6450 ;;
6451
6452 haiku*)
6453 lt_cv_deplibs_check_method=pass_all
6454 ;;
6455
6456 hpux10.20* | hpux11*)
6457 lt_cv_file_magic_cmd=/usr/bin/file
6458 case $host_cpu in
6459 ia64*)
6460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6461 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6462 ;;
6463 hppa*64*)
6464 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]'
6465 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6466 ;;
6467 *)
6468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6469 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6470 ;;
6471 esac
6472 ;;
6473
6474 interix[3-9]*)
6475 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6477 ;;
6478
6479 irix5* | irix6* | nonstopux*)
6480 case $LD in
6481 *-32|*"-32 ") libmagic=32-bit;;
6482 *-n32|*"-n32 ") libmagic=N32;;
6483 *-64|*"-64 ") libmagic=64-bit;;
6484 *) libmagic=never-match;;
6485 esac
6486 lt_cv_deplibs_check_method=pass_all
6487 ;;
6488
6489 # This must be Linux ELF.
6490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6491 lt_cv_deplibs_check_method=pass_all
6492 ;;
6493
6494 netbsd*)
6495 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497 else
6498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6499 fi
6500 ;;
6501
6502 newos6*)
6503 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6504 lt_cv_file_magic_cmd=/usr/bin/file
6505 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6506 ;;
6507
6508 *nto* | *qnx*)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 openbsd*)
6513 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6514 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6515 else
6516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6517 fi
6518 ;;
6519
6520 osf3* | osf4* | osf5*)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523
6524 rdos*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
6527
6528 solaris*)
6529 lt_cv_deplibs_check_method=pass_all
6530 ;;
6531
6532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535
6536 sysv4 | sysv4.3*)
6537 case $host_vendor in
6538 motorola)
6539 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]'
6540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6541 ;;
6542 ncr)
6543 lt_cv_deplibs_check_method=pass_all
6544 ;;
6545 sequent)
6546 lt_cv_file_magic_cmd='/bin/file'
6547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6548 ;;
6549 sni)
6550 lt_cv_file_magic_cmd='/bin/file'
6551 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6552 lt_cv_file_magic_test_file=/lib/libc.so
6553 ;;
6554 siemens)
6555 lt_cv_deplibs_check_method=pass_all
6556 ;;
6557 pc)
6558 lt_cv_deplibs_check_method=pass_all
6559 ;;
6560 esac
6561 ;;
6562
6563 tpf*)
6564 lt_cv_deplibs_check_method=pass_all
6565 ;;
6566 esac
6567
6568 fi
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6570 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6571 file_magic_cmd=$lt_cv_file_magic_cmd
6572 deplibs_check_method=$lt_cv_deplibs_check_method
6573 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586 if test -n "$ac_tool_prefix"; then
6587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6588 set dummy ${ac_tool_prefix}ar; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_AR+:} false; then :
6592 $as_echo_n "(cached) " >&6
6593 else
6594 if test -n "$AR"; then
6595 ac_cv_prog_AR="$AR" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_AR="${ac_tool_prefix}ar"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 AR=$ac_cv_prog_AR
6615 if test -n "$AR"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6617 $as_echo "$AR" >&6; }
6618 else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623
6624 fi
6625 if test -z "$ac_cv_prog_AR"; then
6626 ac_ct_AR=$AR
6627 # Extract the first word of "ar", so it can be a program name with args.
6628 set dummy ar; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$ac_ct_AR"; then
6635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_ac_ct_AR="ar"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6647 fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652 fi
6653 fi
6654 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6655 if test -n "$ac_ct_AR"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6657 $as_echo "$ac_ct_AR" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6661 fi
6662
6663 if test "x$ac_ct_AR" = x; then
6664 AR="false"
6665 else
6666 case $cross_compiling:$ac_tool_warned in
6667 yes:)
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6670 ac_tool_warned=yes ;;
6671 esac
6672 AR=$ac_ct_AR
6673 fi
6674 else
6675 AR="$ac_cv_prog_AR"
6676 fi
6677
6678 test -z "$AR" && AR=ar
6679 test -z "$AR_FLAGS" && AR_FLAGS=cru
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}strip; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_STRIP+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$STRIP"; then
6700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 STRIP=$ac_cv_prog_STRIP
6720 if test -n "$STRIP"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6722 $as_echo "$STRIP" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728
6729 fi
6730 if test -z "$ac_cv_prog_STRIP"; then
6731 ac_ct_STRIP=$STRIP
6732 # Extract the first word of "strip", so it can be a program name with args.
6733 set dummy strip; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$ac_ct_STRIP"; then
6740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_STRIP="strip"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6760 if test -n "$ac_ct_STRIP"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6762 $as_echo "$ac_ct_STRIP" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768 if test "x$ac_ct_STRIP" = x; then
6769 STRIP=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 STRIP=$ac_ct_STRIP
6778 fi
6779 else
6780 STRIP="$ac_cv_prog_STRIP"
6781 fi
6782
6783 test -z "$STRIP" && STRIP=:
6784
6785
6786
6787
6788
6789
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_RANLIB+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$RANLIB"; then
6799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 RANLIB=$ac_cv_prog_RANLIB
6819 if test -n "$RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821 $as_echo "$RANLIB" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827
6828 fi
6829 if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB=$RANLIB
6831 # Extract the first word of "ranlib", so it can be a program name with args.
6832 set dummy ranlib; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_RANLIB"; then
6839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_RANLIB="ranlib"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859 if test -n "$ac_ct_RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861 $as_echo "$ac_ct_RANLIB" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867 if test "x$ac_ct_RANLIB" = x; then
6868 RANLIB=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 RANLIB=$ac_ct_RANLIB
6877 fi
6878 else
6879 RANLIB="$ac_cv_prog_RANLIB"
6880 fi
6881
6882 test -z "$RANLIB" && RANLIB=:
6883
6884
6885
6886
6887
6888
6889 # Determine commands to create old-style static archives.
6890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6891 old_postinstall_cmds='chmod 644 $oldlib'
6892 old_postuninstall_cmds=
6893
6894 if test -n "$RANLIB"; then
6895 case $host_os in
6896 openbsd*)
6897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6898 ;;
6899 *)
6900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6901 ;;
6902 esac
6903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6904 fi
6905
6906 case $host_os in
6907 darwin*)
6908 lock_old_archive_extraction=yes ;;
6909 *)
6910 lock_old_archive_extraction=no ;;
6911 esac
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 # If no C compiler was specified, use CC.
6952 LTCC=${LTCC-"$CC"}
6953
6954 # If no C compiler flags were specified, use CFLAGS.
6955 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6956
6957 # Allow CC to be a program name with arguments.
6958 compiler=$CC
6959
6960
6961 # Check for command to grab the raw symbol name followed by C symbol from nm.
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6963 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6964 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967
6968 # These are sane defaults that work on at least a few old systems.
6969 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6970
6971 # Character class describing NM global symbol codes.
6972 symcode='[BCDEGRST]'
6973
6974 # Regexp to match symbols that can be accessed directly from C.
6975 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6976
6977 # Define system-specific variables.
6978 case $host_os in
6979 aix*)
6980 symcode='[BCDT]'
6981 ;;
6982 cygwin* | mingw* | pw32* | cegcc*)
6983 symcode='[ABCDGISTW]'
6984 ;;
6985 hpux*)
6986 if test "$host_cpu" = ia64; then
6987 symcode='[ABCDEGRST]'
6988 fi
6989 ;;
6990 irix* | nonstopux*)
6991 symcode='[BCDEGRST]'
6992 ;;
6993 osf*)
6994 symcode='[BCDEGQRST]'
6995 ;;
6996 solaris*)
6997 symcode='[BDRT]'
6998 ;;
6999 sco3.2v5*)
7000 symcode='[DT]'
7001 ;;
7002 sysv4.2uw2*)
7003 symcode='[DT]'
7004 ;;
7005 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7006 symcode='[ABDT]'
7007 ;;
7008 sysv4)
7009 symcode='[DFNSTU]'
7010 ;;
7011 esac
7012
7013 # If we're using GNU nm, then use its standard symbol codes.
7014 case `$NM -V 2>&1` in
7015 *GNU* | *'with BFD'*)
7016 symcode='[ABCDGIRSTW]' ;;
7017 esac
7018
7019 # Transform an extracted symbol line into a proper C declaration.
7020 # Some systems (esp. on ia64) link data and code symbols differently,
7021 # so use this general approach.
7022 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7023
7024 # Transform an extracted symbol line into symbol name and symbol address
7025 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7026 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'"
7027
7028 # Handle CRLF in mingw tool chain
7029 opt_cr=
7030 case $build_os in
7031 mingw*)
7032 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7033 ;;
7034 esac
7035
7036 # Try without a prefix underscore, then with it.
7037 for ac_symprfx in "" "_"; do
7038
7039 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7040 symxfrm="\\1 $ac_symprfx\\2 \\2"
7041
7042 # Write the raw and C identifiers.
7043 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7044 # Fake it for dumpbin and say T for any non-static function
7045 # and D for any global variable.
7046 # Also find C++ and __fastcall symbols from MSVC++,
7047 # which start with @ or ?.
7048 lt_cv_sys_global_symbol_pipe="$AWK '"\
7049 " {last_section=section; section=\$ 3};"\
7050 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7051 " \$ 0!~/External *\|/{next};"\
7052 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7053 " {if(hide[section]) next};"\
7054 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7055 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7056 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7057 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7058 " ' prfx=^$ac_symprfx"
7059 else
7060 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7061 fi
7062
7063 # Check to see that the pipe works correctly.
7064 pipe_works=no
7065
7066 rm -f conftest*
7067 cat > conftest.$ac_ext <<_LT_EOF
7068 #ifdef __cplusplus
7069 extern "C" {
7070 #endif
7071 char nm_test_var;
7072 void nm_test_func(void);
7073 void nm_test_func(void){}
7074 #ifdef __cplusplus
7075 }
7076 #endif
7077 int main(){nm_test_var='a';nm_test_func();return(0);}
7078 _LT_EOF
7079
7080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7081 (eval $ac_compile) 2>&5
7082 ac_status=$?
7083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7084 test $ac_status = 0; }; then
7085 # Now try to grab the symbols.
7086 nlist=conftest.nm
7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7088 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7089 ac_status=$?
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; } && test -s "$nlist"; then
7092 # Try sorting and uniquifying the output.
7093 if sort "$nlist" | uniq > "$nlist"T; then
7094 mv -f "$nlist"T "$nlist"
7095 else
7096 rm -f "$nlist"T
7097 fi
7098
7099 # Make sure that we snagged all the symbols we need.
7100 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7101 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7102 cat <<_LT_EOF > conftest.$ac_ext
7103 #ifdef __cplusplus
7104 extern "C" {
7105 #endif
7106
7107 _LT_EOF
7108 # Now generate the symbol file.
7109 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7110
7111 cat <<_LT_EOF >> conftest.$ac_ext
7112
7113 /* The mapping between symbol names and symbols. */
7114 const struct {
7115 const char *name;
7116 void *address;
7117 }
7118 lt__PROGRAM__LTX_preloaded_symbols[] =
7119 {
7120 { "@PROGRAM@", (void *) 0 },
7121 _LT_EOF
7122 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7123 cat <<\_LT_EOF >> conftest.$ac_ext
7124 {0, (void *) 0}
7125 };
7126
7127 /* This works around a problem in FreeBSD linker */
7128 #ifdef FREEBSD_WORKAROUND
7129 static const void *lt_preloaded_setup() {
7130 return lt__PROGRAM__LTX_preloaded_symbols;
7131 }
7132 #endif
7133
7134 #ifdef __cplusplus
7135 }
7136 #endif
7137 _LT_EOF
7138 # Now try linking the two files.
7139 mv conftest.$ac_objext conftstm.$ac_objext
7140 lt_save_LIBS="$LIBS"
7141 lt_save_CFLAGS="$CFLAGS"
7142 LIBS="conftstm.$ac_objext"
7143 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7145 (eval $ac_link) 2>&5
7146 ac_status=$?
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7149 pipe_works=yes
7150 fi
7151 LIBS="$lt_save_LIBS"
7152 CFLAGS="$lt_save_CFLAGS"
7153 else
7154 echo "cannot find nm_test_func in $nlist" >&5
7155 fi
7156 else
7157 echo "cannot find nm_test_var in $nlist" >&5
7158 fi
7159 else
7160 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7161 fi
7162 else
7163 echo "$progname: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7165 fi
7166 rm -rf conftest* conftst*
7167
7168 # Do not use the global_symbol_pipe unless it works.
7169 if test "$pipe_works" = yes; then
7170 break
7171 else
7172 lt_cv_sys_global_symbol_pipe=
7173 fi
7174 done
7175
7176 fi
7177
7178 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7179 lt_cv_sys_global_symbol_to_cdecl=
7180 fi
7181 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7183 $as_echo "failed" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7186 $as_echo "ok" >&6; }
7187 fi
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210 # Check whether --enable-libtool-lock was given.
7211 if test "${enable_libtool_lock+set}" = set; then :
7212 enableval=$enable_libtool_lock;
7213 fi
7214
7215 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7216
7217 # Some flags need to be propagated to the compiler or linker for good
7218 # libtool support.
7219 case $host in
7220 ia64-*-hpux*)
7221 # Find out which ABI we are using.
7222 echo 'int i;' > conftest.$ac_ext
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 case `/usr/bin/file conftest.$ac_objext` in
7229 *ELF-32*)
7230 HPUX_IA64_MODE="32"
7231 ;;
7232 *ELF-64*)
7233 HPUX_IA64_MODE="64"
7234 ;;
7235 esac
7236 fi
7237 rm -rf conftest*
7238 ;;
7239 *-*-irix6*)
7240 # Find out which ABI we are using.
7241 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7243 (eval $ac_compile) 2>&5
7244 ac_status=$?
7245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7246 test $ac_status = 0; }; then
7247 if test "$lt_cv_prog_gnu_ld" = yes; then
7248 case `/usr/bin/file conftest.$ac_objext` in
7249 *32-bit*)
7250 LD="${LD-ld} -melf32bsmip"
7251 ;;
7252 *N32*)
7253 LD="${LD-ld} -melf32bmipn32"
7254 ;;
7255 *64-bit*)
7256 LD="${LD-ld} -melf64bmip"
7257 ;;
7258 esac
7259 else
7260 case `/usr/bin/file conftest.$ac_objext` in
7261 *32-bit*)
7262 LD="${LD-ld} -32"
7263 ;;
7264 *N32*)
7265 LD="${LD-ld} -n32"
7266 ;;
7267 *64-bit*)
7268 LD="${LD-ld} -64"
7269 ;;
7270 esac
7271 fi
7272 fi
7273 rm -rf conftest*
7274 ;;
7275
7276 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7277 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7278 # Find out which ABI we are using.
7279 echo 'int i;' > conftest.$ac_ext
7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7281 (eval $ac_compile) 2>&5
7282 ac_status=$?
7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284 test $ac_status = 0; }; then
7285 case `/usr/bin/file conftest.o` in
7286 *32-bit*)
7287 case $host in
7288 x86_64-*kfreebsd*-gnu)
7289 LD="${LD-ld} -m elf_i386_fbsd"
7290 ;;
7291 x86_64-*linux*)
7292 case `/usr/bin/file conftest.o` in
7293 *x86-64*)
7294 LD="${LD-ld} -m elf32_x86_64"
7295 ;;
7296 *)
7297 LD="${LD-ld} -m elf_i386"
7298 ;;
7299 esac
7300 ;;
7301 powerpc64le-*linux*)
7302 LD="${LD-ld} -m elf32lppclinux"
7303 ;;
7304 powerpc64-*linux*)
7305 LD="${LD-ld} -m elf32ppclinux"
7306 ;;
7307 s390x-*linux*)
7308 LD="${LD-ld} -m elf_s390"
7309 ;;
7310 sparc64-*linux*)
7311 LD="${LD-ld} -m elf32_sparc"
7312 ;;
7313 esac
7314 ;;
7315 *64-bit*)
7316 case $host in
7317 x86_64-*kfreebsd*-gnu)
7318 LD="${LD-ld} -m elf_x86_64_fbsd"
7319 ;;
7320 x86_64-*linux*)
7321 LD="${LD-ld} -m elf_x86_64"
7322 ;;
7323 powerpcle-*linux*)
7324 LD="${LD-ld} -m elf64lppc"
7325 ;;
7326 powerpc-*linux*)
7327 LD="${LD-ld} -m elf64ppc"
7328 ;;
7329 s390*-*linux*|s390*-*tpf*)
7330 LD="${LD-ld} -m elf64_s390"
7331 ;;
7332 sparc*-*linux*)
7333 LD="${LD-ld} -m elf64_sparc"
7334 ;;
7335 esac
7336 ;;
7337 esac
7338 fi
7339 rm -rf conftest*
7340 ;;
7341
7342 *-*-sco3.2v5*)
7343 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7344 SAVE_CFLAGS="$CFLAGS"
7345 CFLAGS="$CFLAGS -belf"
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7347 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7348 if ${lt_cv_cc_needs_belf+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 ac_ext=c
7352 ac_cpp='$CPP $CPPFLAGS'
7353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7356
7357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h. */
7359
7360 int
7361 main ()
7362 {
7363
7364 ;
7365 return 0;
7366 }
7367 _ACEOF
7368 if ac_fn_c_try_link "$LINENO"; then :
7369 lt_cv_cc_needs_belf=yes
7370 else
7371 lt_cv_cc_needs_belf=no
7372 fi
7373 rm -f core conftest.err conftest.$ac_objext \
7374 conftest$ac_exeext conftest.$ac_ext
7375 ac_ext=c
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380
7381 fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7383 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7384 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7385 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7386 CFLAGS="$SAVE_CFLAGS"
7387 fi
7388 ;;
7389 sparc*-*solaris*)
7390 # Find out which ABI we are using.
7391 echo 'int i;' > conftest.$ac_ext
7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393 (eval $ac_compile) 2>&5
7394 ac_status=$?
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 case `/usr/bin/file conftest.o` in
7398 *64-bit*)
7399 case $lt_cv_prog_gnu_ld in
7400 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7401 *)
7402 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7403 LD="${LD-ld} -64"
7404 fi
7405 ;;
7406 esac
7407 ;;
7408 esac
7409 fi
7410 rm -rf conftest*
7411 ;;
7412 esac
7413
7414 need_locks="$enable_libtool_lock"
7415
7416
7417 case $host_os in
7418 rhapsody* | darwin*)
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7421 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7425 $as_echo_n "(cached) " >&6
7426 else
7427 if test -n "$DSYMUTIL"; then
7428 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433 IFS=$as_save_IFS
7434 test -z "$as_dir" && as_dir=.
7435 for ac_exec_ext in '' $ac_executable_extensions; do
7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 break 2
7440 fi
7441 done
7442 done
7443 IFS=$as_save_IFS
7444
7445 fi
7446 fi
7447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7448 if test -n "$DSYMUTIL"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7450 $as_echo "$DSYMUTIL" >&6; }
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455
7456
7457 fi
7458 if test -z "$ac_cv_prog_DSYMUTIL"; then
7459 ac_ct_DSYMUTIL=$DSYMUTIL
7460 # Extract the first word of "dsymutil", so it can be a program name with args.
7461 set dummy dsymutil; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 if test -n "$ac_ct_DSYMUTIL"; then
7468 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7469 else
7470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471 for as_dir in $PATH
7472 do
7473 IFS=$as_save_IFS
7474 test -z "$as_dir" && as_dir=.
7475 for ac_exec_ext in '' $ac_executable_extensions; do
7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 break 2
7480 fi
7481 done
7482 done
7483 IFS=$as_save_IFS
7484
7485 fi
7486 fi
7487 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7488 if test -n "$ac_ct_DSYMUTIL"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7490 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7491 else
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7494 fi
7495
7496 if test "x$ac_ct_DSYMUTIL" = x; then
7497 DSYMUTIL=":"
7498 else
7499 case $cross_compiling:$ac_tool_warned in
7500 yes:)
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503 ac_tool_warned=yes ;;
7504 esac
7505 DSYMUTIL=$ac_ct_DSYMUTIL
7506 fi
7507 else
7508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7509 fi
7510
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_NMEDIT+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 if test -n "$NMEDIT"; then
7520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531 break 2
7532 fi
7533 done
7534 done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 NMEDIT=$ac_cv_prog_NMEDIT
7540 if test -n "$NMEDIT"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7542 $as_echo "$NMEDIT" >&6; }
7543 else
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547
7548
7549 fi
7550 if test -z "$ac_cv_prog_NMEDIT"; then
7551 ac_ct_NMEDIT=$NMEDIT
7552 # Extract the first word of "nmedit", so it can be a program name with args.
7553 set dummy nmedit; ac_word=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 if test -n "$ac_ct_NMEDIT"; then
7560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7561 else
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 for as_dir in $PATH
7564 do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573 done
7574 done
7575 IFS=$as_save_IFS
7576
7577 fi
7578 fi
7579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7580 if test -n "$ac_ct_NMEDIT"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7582 $as_echo "$ac_ct_NMEDIT" >&6; }
7583 else
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587
7588 if test "x$ac_ct_NMEDIT" = x; then
7589 NMEDIT=":"
7590 else
7591 case $cross_compiling:$ac_tool_warned in
7592 yes:)
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned=yes ;;
7596 esac
7597 NMEDIT=$ac_ct_NMEDIT
7598 fi
7599 else
7600 NMEDIT="$ac_cv_prog_NMEDIT"
7601 fi
7602
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_LIPO+:} false; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 if test -n "$LIPO"; then
7612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 LIPO=$ac_cv_prog_LIPO
7632 if test -n "$LIPO"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7634 $as_echo "$LIPO" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640
7641 fi
7642 if test -z "$ac_cv_prog_LIPO"; then
7643 ac_ct_LIPO=$LIPO
7644 # Extract the first word of "lipo", so it can be a program name with args.
7645 set dummy lipo; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7649 $as_echo_n "(cached) " >&6
7650 else
7651 if test -n "$ac_ct_LIPO"; then
7652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7653 else
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_ac_ct_LIPO="lipo"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 break 2
7664 fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669 fi
7670 fi
7671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672 if test -n "$ac_ct_LIPO"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7674 $as_echo "$ac_ct_LIPO" >&6; }
7675 else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680 if test "x$ac_ct_LIPO" = x; then
7681 LIPO=":"
7682 else
7683 case $cross_compiling:$ac_tool_warned in
7684 yes:)
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned=yes ;;
7688 esac
7689 LIPO=$ac_ct_LIPO
7690 fi
7691 else
7692 LIPO="$ac_cv_prog_LIPO"
7693 fi
7694
7695 if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7697 set dummy ${ac_tool_prefix}otool; ac_word=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_OTOOL+:} false; then :
7701 $as_echo_n "(cached) " >&6
7702 else
7703 if test -n "$OTOOL"; then
7704 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7705 else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 for as_dir in $PATH
7708 do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717 done
7718 done
7719 IFS=$as_save_IFS
7720
7721 fi
7722 fi
7723 OTOOL=$ac_cv_prog_OTOOL
7724 if test -n "$OTOOL"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7726 $as_echo "$OTOOL" >&6; }
7727 else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7730 fi
7731
7732
7733 fi
7734 if test -z "$ac_cv_prog_OTOOL"; then
7735 ac_ct_OTOOL=$OTOOL
7736 # Extract the first word of "otool", so it can be a program name with args.
7737 set dummy otool; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7741 $as_echo_n "(cached) " >&6
7742 else
7743 if test -n "$ac_ct_OTOOL"; then
7744 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7745 else
7746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7747 for as_dir in $PATH
7748 do
7749 IFS=$as_save_IFS
7750 test -z "$as_dir" && as_dir=.
7751 for ac_exec_ext in '' $ac_executable_extensions; do
7752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7753 ac_cv_prog_ac_ct_OTOOL="otool"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 break 2
7756 fi
7757 done
7758 done
7759 IFS=$as_save_IFS
7760
7761 fi
7762 fi
7763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7764 if test -n "$ac_ct_OTOOL"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7766 $as_echo "$ac_ct_OTOOL" >&6; }
7767 else
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 fi
7771
7772 if test "x$ac_ct_OTOOL" = x; then
7773 OTOOL=":"
7774 else
7775 case $cross_compiling:$ac_tool_warned in
7776 yes:)
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779 ac_tool_warned=yes ;;
7780 esac
7781 OTOOL=$ac_ct_OTOOL
7782 fi
7783 else
7784 OTOOL="$ac_cv_prog_OTOOL"
7785 fi
7786
7787 if test -n "$ac_tool_prefix"; then
7788 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_prog_OTOOL64+:} false; then :
7793 $as_echo_n "(cached) " >&6
7794 else
7795 if test -n "$OTOOL64"; then
7796 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7797 else
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7800 do
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7808 fi
7809 done
7810 done
7811 IFS=$as_save_IFS
7812
7813 fi
7814 fi
7815 OTOOL64=$ac_cv_prog_OTOOL64
7816 if test -n "$OTOOL64"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7818 $as_echo "$OTOOL64" >&6; }
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 fi
7823
7824
7825 fi
7826 if test -z "$ac_cv_prog_OTOOL64"; then
7827 ac_ct_OTOOL64=$OTOOL64
7828 # Extract the first word of "otool64", so it can be a program name with args.
7829 set dummy otool64; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 if test -n "$ac_ct_OTOOL64"; then
7836 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_ac_ct_OTOOL64="otool64"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7848 fi
7849 done
7850 done
7851 IFS=$as_save_IFS
7852
7853 fi
7854 fi
7855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7856 if test -n "$ac_ct_OTOOL64"; then
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7858 $as_echo "$ac_ct_OTOOL64" >&6; }
7859 else
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7862 fi
7863
7864 if test "x$ac_ct_OTOOL64" = x; then
7865 OTOOL64=":"
7866 else
7867 case $cross_compiling:$ac_tool_warned in
7868 yes:)
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7871 ac_tool_warned=yes ;;
7872 esac
7873 OTOOL64=$ac_ct_OTOOL64
7874 fi
7875 else
7876 OTOOL64="$ac_cv_prog_OTOOL64"
7877 fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7906 $as_echo_n "checking for -single_module linker flag... " >&6; }
7907 if ${lt_cv_apple_cc_single_mod+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 lt_cv_apple_cc_single_mod=no
7911 if test -z "${LT_MULTI_MODULE}"; then
7912 # By default we will add the -single_module flag. You can override
7913 # by either setting the environment variable LT_MULTI_MODULE
7914 # non-empty at configure time, or by adding -multi_module to the
7915 # link flags.
7916 rm -rf libconftest.dylib*
7917 echo "int foo(void){return 1;}" > conftest.c
7918 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7919 -dynamiclib -Wl,-single_module conftest.c" >&5
7920 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7921 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7922 _lt_result=$?
7923 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7924 lt_cv_apple_cc_single_mod=yes
7925 else
7926 cat conftest.err >&5
7927 fi
7928 rm -rf libconftest.dylib*
7929 rm -f conftest.*
7930 fi
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7933 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7935 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7936 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 lt_cv_ld_exported_symbols_list=no
7940 save_LDFLAGS=$LDFLAGS
7941 echo "_main" > conftest.sym
7942 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945
7946 int
7947 main ()
7948 {
7949
7950 ;
7951 return 0;
7952 }
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 lt_cv_ld_exported_symbols_list=yes
7956 else
7957 lt_cv_ld_exported_symbols_list=no
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 LDFLAGS="$save_LDFLAGS"
7962
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7965 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7967 $as_echo_n "checking for -force_load linker flag... " >&6; }
7968 if ${lt_cv_ld_force_load+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 lt_cv_ld_force_load=no
7972 cat > conftest.c << _LT_EOF
7973 int forced_loaded() { return 2;}
7974 _LT_EOF
7975 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7976 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7977 echo "$AR cru libconftest.a conftest.o" >&5
7978 $AR cru libconftest.a conftest.o 2>&5
7979 cat > conftest.c << _LT_EOF
7980 int main() { return 0;}
7981 _LT_EOF
7982 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7983 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7984 _lt_result=$?
7985 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7986 lt_cv_ld_force_load=yes
7987 else
7988 cat conftest.err >&5
7989 fi
7990 rm -f conftest.err libconftest.a conftest conftest.c
7991 rm -rf conftest.dSYM
7992
7993 fi
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7995 $as_echo "$lt_cv_ld_force_load" >&6; }
7996 case $host_os in
7997 rhapsody* | darwin1.[012])
7998 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7999 darwin1.*)
8000 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8001 darwin*) # darwin 5.x on
8002 # if running on 10.5 or later, the deployment target defaults
8003 # to the OS version, if on x86, and 10.4, the deployment
8004 # target defaults to 10.4. Don't you love it?
8005 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8006 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8007 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8008 10.[012][,.]*)
8009 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8010 10.*)
8011 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8012 esac
8013 ;;
8014 esac
8015 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8016 _lt_dar_single_mod='$single_module'
8017 fi
8018 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8019 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8020 else
8021 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8022 fi
8023 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8024 _lt_dsymutil='~$DSYMUTIL $lib || :'
8025 else
8026 _lt_dsymutil=
8027 fi
8028 ;;
8029 esac
8030
8031 for ac_header in dlfcn.h
8032 do :
8033 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8034 "
8035 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8036 cat >>confdefs.h <<_ACEOF
8037 #define HAVE_DLFCN_H 1
8038 _ACEOF
8039
8040 fi
8041
8042 done
8043
8044
8045
8046
8047
8048 # Set options
8049
8050
8051
8052 enable_dlopen=no
8053
8054
8055 enable_win32_dll=no
8056
8057
8058 # Check whether --enable-shared was given.
8059 if test "${enable_shared+set}" = set; then :
8060 enableval=$enable_shared; p=${PACKAGE-default}
8061 case $enableval in
8062 yes) enable_shared=yes ;;
8063 no) enable_shared=no ;;
8064 *)
8065 enable_shared=no
8066 # Look at the argument we got. We use all the common list separators.
8067 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8068 for pkg in $enableval; do
8069 IFS="$lt_save_ifs"
8070 if test "X$pkg" = "X$p"; then
8071 enable_shared=yes
8072 fi
8073 done
8074 IFS="$lt_save_ifs"
8075 ;;
8076 esac
8077 else
8078 enable_shared=yes
8079 fi
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089 # Check whether --enable-static was given.
8090 if test "${enable_static+set}" = set; then :
8091 enableval=$enable_static; p=${PACKAGE-default}
8092 case $enableval in
8093 yes) enable_static=yes ;;
8094 no) enable_static=no ;;
8095 *)
8096 enable_static=no
8097 # Look at the argument we got. We use all the common list separators.
8098 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8099 for pkg in $enableval; do
8100 IFS="$lt_save_ifs"
8101 if test "X$pkg" = "X$p"; then
8102 enable_static=yes
8103 fi
8104 done
8105 IFS="$lt_save_ifs"
8106 ;;
8107 esac
8108 else
8109 enable_static=yes
8110 fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 # Check whether --with-pic was given.
8122 if test "${with_pic+set}" = set; then :
8123 withval=$with_pic; pic_mode="$withval"
8124 else
8125 pic_mode=default
8126 fi
8127
8128
8129 test -z "$pic_mode" && pic_mode=default
8130
8131
8132
8133
8134
8135
8136
8137 # Check whether --enable-fast-install was given.
8138 if test "${enable_fast_install+set}" = set; then :
8139 enableval=$enable_fast_install; p=${PACKAGE-default}
8140 case $enableval in
8141 yes) enable_fast_install=yes ;;
8142 no) enable_fast_install=no ;;
8143 *)
8144 enable_fast_install=no
8145 # Look at the argument we got. We use all the common list separators.
8146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147 for pkg in $enableval; do
8148 IFS="$lt_save_ifs"
8149 if test "X$pkg" = "X$p"; then
8150 enable_fast_install=yes
8151 fi
8152 done
8153 IFS="$lt_save_ifs"
8154 ;;
8155 esac
8156 else
8157 enable_fast_install=yes
8158 fi
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170 # This can be used to rebuild libtool when needed
8171 LIBTOOL_DEPS="$ltmain"
8172
8173 # Always use our own libtool.
8174 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201 test -z "$LN_S" && LN_S="ln -s"
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216 if test -n "${ZSH_VERSION+set}" ; then
8217 setopt NO_GLOB_SUBST
8218 fi
8219
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8221 $as_echo_n "checking for objdir... " >&6; }
8222 if ${lt_cv_objdir+:} false; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 rm -f .libs 2>/dev/null
8226 mkdir .libs 2>/dev/null
8227 if test -d .libs; then
8228 lt_cv_objdir=.libs
8229 else
8230 # MS-DOS does not allow filenames that begin with a dot.
8231 lt_cv_objdir=_libs
8232 fi
8233 rmdir .libs 2>/dev/null
8234 fi
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8236 $as_echo "$lt_cv_objdir" >&6; }
8237 objdir=$lt_cv_objdir
8238
8239
8240
8241
8242
8243 cat >>confdefs.h <<_ACEOF
8244 #define LT_OBJDIR "$lt_cv_objdir/"
8245 _ACEOF
8246
8247
8248
8249
8250 case $host_os in
8251 aix3*)
8252 # AIX sometimes has problems with the GCC collect2 program. For some
8253 # reason, if we set the COLLECT_NAMES environment variable, the problems
8254 # vanish in a puff of smoke.
8255 if test "X${COLLECT_NAMES+set}" != Xset; then
8256 COLLECT_NAMES=
8257 export COLLECT_NAMES
8258 fi
8259 ;;
8260 esac
8261
8262 # Global variables:
8263 ofile=libtool
8264 can_build_shared=yes
8265
8266 # All known linkers require a `.a' archive for static linking (except MSVC,
8267 # which needs '.lib').
8268 libext=a
8269
8270 with_gnu_ld="$lt_cv_prog_gnu_ld"
8271
8272 old_CC="$CC"
8273 old_CFLAGS="$CFLAGS"
8274
8275 # Set sane defaults for various variables
8276 test -z "$CC" && CC=cc
8277 test -z "$LTCC" && LTCC=$CC
8278 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8279 test -z "$LD" && LD=ld
8280 test -z "$ac_objext" && ac_objext=o
8281
8282 for cc_temp in $compiler""; do
8283 case $cc_temp in
8284 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8285 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8286 \-*) ;;
8287 *) break;;
8288 esac
8289 done
8290 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8291
8292
8293 # Only perform the check for file, if the check method requires it
8294 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8295 case $deplibs_check_method in
8296 file_magic*)
8297 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8299 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8300 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 case $MAGIC_CMD in
8304 [\\/*] | ?:[\\/]*)
8305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8306 ;;
8307 *)
8308 lt_save_MAGIC_CMD="$MAGIC_CMD"
8309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8310 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8311 for ac_dir in $ac_dummy; do
8312 IFS="$lt_save_ifs"
8313 test -z "$ac_dir" && ac_dir=.
8314 if test -f $ac_dir/${ac_tool_prefix}file; then
8315 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8316 if test -n "$file_magic_test_file"; then
8317 case $deplibs_check_method in
8318 "file_magic "*)
8319 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8322 $EGREP "$file_magic_regex" > /dev/null; then
8323 :
8324 else
8325 cat <<_LT_EOF 1>&2
8326
8327 *** Warning: the command libtool uses to detect shared libraries,
8328 *** $file_magic_cmd, produces output that libtool cannot recognize.
8329 *** The result is that libtool may fail to recognize shared libraries
8330 *** as such. This will affect the creation of libtool libraries that
8331 *** depend on shared libraries, but programs linked with such libtool
8332 *** libraries will work regardless of this problem. Nevertheless, you
8333 *** may want to report the problem to your system manager and/or to
8334 *** bug-libtool@gnu.org
8335
8336 _LT_EOF
8337 fi ;;
8338 esac
8339 fi
8340 break
8341 fi
8342 done
8343 IFS="$lt_save_ifs"
8344 MAGIC_CMD="$lt_save_MAGIC_CMD"
8345 ;;
8346 esac
8347 fi
8348
8349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8350 if test -n "$MAGIC_CMD"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8352 $as_echo "$MAGIC_CMD" >&6; }
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 fi
8357
8358
8359
8360
8361
8362 if test -z "$lt_cv_path_MAGIC_CMD"; then
8363 if test -n "$ac_tool_prefix"; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8365 $as_echo_n "checking for file... " >&6; }
8366 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 case $MAGIC_CMD in
8370 [\\/*] | ?:[\\/]*)
8371 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8372 ;;
8373 *)
8374 lt_save_MAGIC_CMD="$MAGIC_CMD"
8375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8376 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8377 for ac_dir in $ac_dummy; do
8378 IFS="$lt_save_ifs"
8379 test -z "$ac_dir" && ac_dir=.
8380 if test -f $ac_dir/file; then
8381 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8382 if test -n "$file_magic_test_file"; then
8383 case $deplibs_check_method in
8384 "file_magic "*)
8385 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8388 $EGREP "$file_magic_regex" > /dev/null; then
8389 :
8390 else
8391 cat <<_LT_EOF 1>&2
8392
8393 *** Warning: the command libtool uses to detect shared libraries,
8394 *** $file_magic_cmd, produces output that libtool cannot recognize.
8395 *** The result is that libtool may fail to recognize shared libraries
8396 *** as such. This will affect the creation of libtool libraries that
8397 *** depend on shared libraries, but programs linked with such libtool
8398 *** libraries will work regardless of this problem. Nevertheless, you
8399 *** may want to report the problem to your system manager and/or to
8400 *** bug-libtool@gnu.org
8401
8402 _LT_EOF
8403 fi ;;
8404 esac
8405 fi
8406 break
8407 fi
8408 done
8409 IFS="$lt_save_ifs"
8410 MAGIC_CMD="$lt_save_MAGIC_CMD"
8411 ;;
8412 esac
8413 fi
8414
8415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8416 if test -n "$MAGIC_CMD"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8418 $as_echo "$MAGIC_CMD" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8422 fi
8423
8424
8425 else
8426 MAGIC_CMD=:
8427 fi
8428 fi
8429
8430 fi
8431 ;;
8432 esac
8433
8434 # Use C for the default configuration in the libtool script
8435
8436 lt_save_CC="$CC"
8437 ac_ext=c
8438 ac_cpp='$CPP $CPPFLAGS'
8439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8442
8443
8444 # Source file extension for C test sources.
8445 ac_ext=c
8446
8447 # Object file extension for compiled C test sources.
8448 objext=o
8449 objext=$objext
8450
8451 # Code to be used in simple compile tests
8452 lt_simple_compile_test_code="int some_variable = 0;"
8453
8454 # Code to be used in simple link tests
8455 lt_simple_link_test_code='int main(){return(0);}'
8456
8457
8458
8459
8460
8461
8462
8463 # If no C compiler was specified, use CC.
8464 LTCC=${LTCC-"$CC"}
8465
8466 # If no C compiler flags were specified, use CFLAGS.
8467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8468
8469 # Allow CC to be a program name with arguments.
8470 compiler=$CC
8471
8472 # Save the default compiler, since it gets overwritten when the other
8473 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8474 compiler_DEFAULT=$CC
8475
8476 # save warnings/boilerplate of simple test code
8477 ac_outfile=conftest.$ac_objext
8478 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8479 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8480 _lt_compiler_boilerplate=`cat conftest.err`
8481 $RM conftest*
8482
8483 ac_outfile=conftest.$ac_objext
8484 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8485 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8486 _lt_linker_boilerplate=`cat conftest.err`
8487 $RM -r conftest*
8488
8489
8490 ## CAVEAT EMPTOR:
8491 ## There is no encapsulation within the following macros, do not change
8492 ## the running order or otherwise move them around unless you know exactly
8493 ## what you are doing...
8494 if test -n "$compiler"; then
8495
8496 lt_prog_compiler_no_builtin_flag=
8497
8498 if test "$GCC" = yes; then
8499 case $cc_basename in
8500 nvcc*)
8501 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8502 *)
8503 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8504 esac
8505
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8507 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8508 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 lt_cv_prog_compiler_rtti_exceptions=no
8512 ac_outfile=conftest.$ac_objext
8513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8514 lt_compiler_flag="-fno-rtti -fno-exceptions"
8515 # Insert the option either (1) after the last *FLAGS variable, or
8516 # (2) before a word containing "conftest.", or (3) at the end.
8517 # Note that $ac_compile itself does not contain backslashes and begins
8518 # with a dollar sign (not a hyphen), so the echo should work correctly.
8519 # The option is referenced via a variable to avoid confusing sed.
8520 lt_compile=`echo "$ac_compile" | $SED \
8521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8523 -e 's:$: $lt_compiler_flag:'`
8524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8525 (eval "$lt_compile" 2>conftest.err)
8526 ac_status=$?
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 if (exit $ac_status) && test -s "$ac_outfile"; then
8530 # The compiler can only warn and ignore the option if not recognized
8531 # So say no if there are warnings other than the usual output.
8532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8535 lt_cv_prog_compiler_rtti_exceptions=yes
8536 fi
8537 fi
8538 $RM conftest*
8539
8540 fi
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8542 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8543
8544 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8545 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8546 else
8547 :
8548 fi
8549
8550 fi
8551
8552
8553
8554
8555
8556
8557 lt_prog_compiler_wl=
8558 lt_prog_compiler_pic=
8559 lt_prog_compiler_static=
8560
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8562 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8563
8564 if test "$GCC" = yes; then
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_static='-static'
8567
8568 case $host_os in
8569 aix*)
8570 # All AIX code is PIC.
8571 if test "$host_cpu" = ia64; then
8572 # AIX 5 now supports IA64 processor
8573 lt_prog_compiler_static='-Bstatic'
8574 fi
8575 lt_prog_compiler_pic='-fPIC'
8576 ;;
8577
8578 amigaos*)
8579 case $host_cpu in
8580 powerpc)
8581 # see comment about AmigaOS4 .so support
8582 lt_prog_compiler_pic='-fPIC'
8583 ;;
8584 m68k)
8585 # FIXME: we need at least 68020 code to build shared libraries, but
8586 # adding the `-m68020' flag to GCC prevents building anything better,
8587 # like `-m68040'.
8588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8589 ;;
8590 esac
8591 ;;
8592
8593 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8594 # PIC is the default for these OSes.
8595 ;;
8596
8597 mingw* | cygwin* | pw32* | os2* | cegcc*)
8598 # This hack is so that the source file can tell whether it is being
8599 # built for inclusion in a dll (and should export symbols for example).
8600 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8601 # (--disable-auto-import) libraries
8602 lt_prog_compiler_pic='-DDLL_EXPORT'
8603 ;;
8604
8605 darwin* | rhapsody*)
8606 # PIC is the default on this platform
8607 # Common symbols not allowed in MH_DYLIB files
8608 lt_prog_compiler_pic='-fno-common'
8609 ;;
8610
8611 haiku*)
8612 # PIC is the default for Haiku.
8613 # The "-static" flag exists, but is broken.
8614 lt_prog_compiler_static=
8615 ;;
8616
8617 hpux*)
8618 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8619 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8620 # sets the default TLS model and affects inlining.
8621 case $host_cpu in
8622 hppa*64*)
8623 # +Z the default
8624 ;;
8625 *)
8626 lt_prog_compiler_pic='-fPIC'
8627 ;;
8628 esac
8629 ;;
8630
8631 interix[3-9]*)
8632 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8633 # Instead, we relocate shared libraries at runtime.
8634 ;;
8635
8636 msdosdjgpp*)
8637 # Just because we use GCC doesn't mean we suddenly get shared libraries
8638 # on systems that don't support them.
8639 lt_prog_compiler_can_build_shared=no
8640 enable_shared=no
8641 ;;
8642
8643 *nto* | *qnx*)
8644 # QNX uses GNU C++, but need to define -shared option too, otherwise
8645 # it will coredump.
8646 lt_prog_compiler_pic='-fPIC -shared'
8647 ;;
8648
8649 sysv4*MP*)
8650 if test -d /usr/nec; then
8651 lt_prog_compiler_pic=-Kconform_pic
8652 fi
8653 ;;
8654
8655 *)
8656 lt_prog_compiler_pic='-fPIC'
8657 ;;
8658 esac
8659
8660 case $cc_basename in
8661 nvcc*) # Cuda Compiler Driver 2.2
8662 lt_prog_compiler_wl='-Xlinker '
8663 lt_prog_compiler_pic='-Xcompiler -fPIC'
8664 ;;
8665 esac
8666 else
8667 # PORTME Check for flag to pass linker flags through the system compiler.
8668 case $host_os in
8669 aix*)
8670 lt_prog_compiler_wl='-Wl,'
8671 if test "$host_cpu" = ia64; then
8672 # AIX 5 now supports IA64 processor
8673 lt_prog_compiler_static='-Bstatic'
8674 else
8675 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8676 fi
8677 ;;
8678
8679 mingw* | cygwin* | pw32* | os2* | cegcc*)
8680 # This hack is so that the source file can tell whether it is being
8681 # built for inclusion in a dll (and should export symbols for example).
8682 lt_prog_compiler_pic='-DDLL_EXPORT'
8683 ;;
8684
8685 hpux9* | hpux10* | hpux11*)
8686 lt_prog_compiler_wl='-Wl,'
8687 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8688 # not for PA HP-UX.
8689 case $host_cpu in
8690 hppa*64*|ia64*)
8691 # +Z the default
8692 ;;
8693 *)
8694 lt_prog_compiler_pic='+Z'
8695 ;;
8696 esac
8697 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8698 lt_prog_compiler_static='${wl}-a ${wl}archive'
8699 ;;
8700
8701 irix5* | irix6* | nonstopux*)
8702 lt_prog_compiler_wl='-Wl,'
8703 # PIC (with -KPIC) is the default.
8704 lt_prog_compiler_static='-non_shared'
8705 ;;
8706
8707 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8708 case $cc_basename in
8709 # old Intel for x86_64 which still supported -KPIC.
8710 ecc*)
8711 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_pic='-KPIC'
8713 lt_prog_compiler_static='-static'
8714 ;;
8715 # icc used to be incompatible with GCC.
8716 # ICC 10 doesn't accept -KPIC any more.
8717 icc* | ifort*)
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_pic='-fPIC'
8720 lt_prog_compiler_static='-static'
8721 ;;
8722 # Lahey Fortran 8.1.
8723 lf95*)
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='--shared'
8726 lt_prog_compiler_static='--static'
8727 ;;
8728 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8729 # Portland Group compilers (*not* the Pentium gcc compiler,
8730 # which looks to be a dead project)
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_pic='-fpic'
8733 lt_prog_compiler_static='-Bstatic'
8734 ;;
8735 ccc*)
8736 lt_prog_compiler_wl='-Wl,'
8737 # All Alpha code is PIC.
8738 lt_prog_compiler_static='-non_shared'
8739 ;;
8740 xl* | bgxl* | bgf* | mpixl*)
8741 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8742 lt_prog_compiler_wl='-Wl,'
8743 lt_prog_compiler_pic='-qpic'
8744 lt_prog_compiler_static='-qstaticlink'
8745 ;;
8746 *)
8747 case `$CC -V 2>&1 | sed 5q` in
8748 *Sun\ F* | *Sun*Fortran*)
8749 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8750 lt_prog_compiler_pic='-KPIC'
8751 lt_prog_compiler_static='-Bstatic'
8752 lt_prog_compiler_wl=''
8753 ;;
8754 *Sun\ C*)
8755 # Sun C 5.9
8756 lt_prog_compiler_pic='-KPIC'
8757 lt_prog_compiler_static='-Bstatic'
8758 lt_prog_compiler_wl='-Wl,'
8759 ;;
8760 esac
8761 ;;
8762 esac
8763 ;;
8764
8765 newsos6)
8766 lt_prog_compiler_pic='-KPIC'
8767 lt_prog_compiler_static='-Bstatic'
8768 ;;
8769
8770 *nto* | *qnx*)
8771 # QNX uses GNU C++, but need to define -shared option too, otherwise
8772 # it will coredump.
8773 lt_prog_compiler_pic='-fPIC -shared'
8774 ;;
8775
8776 osf3* | osf4* | osf5*)
8777 lt_prog_compiler_wl='-Wl,'
8778 # All OSF/1 code is PIC.
8779 lt_prog_compiler_static='-non_shared'
8780 ;;
8781
8782 rdos*)
8783 lt_prog_compiler_static='-non_shared'
8784 ;;
8785
8786 solaris*)
8787 lt_prog_compiler_pic='-KPIC'
8788 lt_prog_compiler_static='-Bstatic'
8789 case $cc_basename in
8790 f77* | f90* | f95*)
8791 lt_prog_compiler_wl='-Qoption ld ';;
8792 *)
8793 lt_prog_compiler_wl='-Wl,';;
8794 esac
8795 ;;
8796
8797 sunos4*)
8798 lt_prog_compiler_wl='-Qoption ld '
8799 lt_prog_compiler_pic='-PIC'
8800 lt_prog_compiler_static='-Bstatic'
8801 ;;
8802
8803 sysv4 | sysv4.2uw2* | sysv4.3*)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_pic='-KPIC'
8806 lt_prog_compiler_static='-Bstatic'
8807 ;;
8808
8809 sysv4*MP*)
8810 if test -d /usr/nec ;then
8811 lt_prog_compiler_pic='-Kconform_pic'
8812 lt_prog_compiler_static='-Bstatic'
8813 fi
8814 ;;
8815
8816 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8817 lt_prog_compiler_wl='-Wl,'
8818 lt_prog_compiler_pic='-KPIC'
8819 lt_prog_compiler_static='-Bstatic'
8820 ;;
8821
8822 unicos*)
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_can_build_shared=no
8825 ;;
8826
8827 uts4*)
8828 lt_prog_compiler_pic='-pic'
8829 lt_prog_compiler_static='-Bstatic'
8830 ;;
8831
8832 *)
8833 lt_prog_compiler_can_build_shared=no
8834 ;;
8835 esac
8836 fi
8837
8838 case $host_os in
8839 # For platforms which do not support PIC, -DPIC is meaningless:
8840 *djgpp*)
8841 lt_prog_compiler_pic=
8842 ;;
8843 *)
8844 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8845 ;;
8846 esac
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8848 $as_echo "$lt_prog_compiler_pic" >&6; }
8849
8850
8851
8852
8853
8854
8855 #
8856 # Check to make sure the PIC flag actually works.
8857 #
8858 if test -n "$lt_prog_compiler_pic"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8860 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8861 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 lt_cv_prog_compiler_pic_works=no
8865 ac_outfile=conftest.$ac_objext
8866 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8867 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8868 # Insert the option either (1) after the last *FLAGS variable, or
8869 # (2) before a word containing "conftest.", or (3) at the end.
8870 # Note that $ac_compile itself does not contain backslashes and begins
8871 # with a dollar sign (not a hyphen), so the echo should work correctly.
8872 # The option is referenced via a variable to avoid confusing sed.
8873 lt_compile=`echo "$ac_compile" | $SED \
8874 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8876 -e 's:$: $lt_compiler_flag:'`
8877 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8878 (eval "$lt_compile" 2>conftest.err)
8879 ac_status=$?
8880 cat conftest.err >&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 if (exit $ac_status) && test -s "$ac_outfile"; then
8883 # The compiler can only warn and ignore the option if not recognized
8884 # So say no if there are warnings other than the usual output.
8885 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8887 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8888 lt_cv_prog_compiler_pic_works=yes
8889 fi
8890 fi
8891 $RM conftest*
8892
8893 fi
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8895 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8896
8897 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8898 case $lt_prog_compiler_pic in
8899 "" | " "*) ;;
8900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8901 esac
8902 else
8903 lt_prog_compiler_pic=
8904 lt_prog_compiler_can_build_shared=no
8905 fi
8906
8907 fi
8908
8909
8910
8911
8912
8913
8914 #
8915 # Check to make sure the static flag actually works.
8916 #
8917 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8919 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8920 if ${lt_cv_prog_compiler_static_works+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 lt_cv_prog_compiler_static_works=no
8924 save_LDFLAGS="$LDFLAGS"
8925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8926 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8928 # The linker can only warn and ignore the option if not recognized
8929 # So say no if there are warnings
8930 if test -s conftest.err; then
8931 # Append any errors to the config.log.
8932 cat conftest.err 1>&5
8933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8935 if diff conftest.exp conftest.er2 >/dev/null; then
8936 lt_cv_prog_compiler_static_works=yes
8937 fi
8938 else
8939 lt_cv_prog_compiler_static_works=yes
8940 fi
8941 fi
8942 $RM -r conftest*
8943 LDFLAGS="$save_LDFLAGS"
8944
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8947 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8948
8949 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8950 :
8951 else
8952 lt_prog_compiler_static=
8953 fi
8954
8955
8956
8957
8958
8959
8960
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8962 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8963 if ${lt_cv_prog_compiler_c_o+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 lt_cv_prog_compiler_c_o=no
8967 $RM -r conftest 2>/dev/null
8968 mkdir conftest
8969 cd conftest
8970 mkdir out
8971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8972
8973 lt_compiler_flag="-o out/conftest2.$ac_objext"
8974 # Insert the option either (1) after the last *FLAGS variable, or
8975 # (2) before a word containing "conftest.", or (3) at the end.
8976 # Note that $ac_compile itself does not contain backslashes and begins
8977 # with a dollar sign (not a hyphen), so the echo should work correctly.
8978 lt_compile=`echo "$ac_compile" | $SED \
8979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8981 -e 's:$: $lt_compiler_flag:'`
8982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8983 (eval "$lt_compile" 2>out/conftest.err)
8984 ac_status=$?
8985 cat out/conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8988 then
8989 # The compiler can only warn and ignore the option if not recognized
8990 # So say no if there are warnings
8991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8994 lt_cv_prog_compiler_c_o=yes
8995 fi
8996 fi
8997 chmod u+w . 2>&5
8998 $RM conftest*
8999 # SGI C++ compiler will create directory out/ii_files/ for
9000 # template instantiation
9001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9002 $RM out/* && rmdir out
9003 cd ..
9004 $RM -r conftest
9005 $RM conftest*
9006
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9009 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9010
9011
9012
9013
9014
9015
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9017 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9018 if ${lt_cv_prog_compiler_c_o+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 lt_cv_prog_compiler_c_o=no
9022 $RM -r conftest 2>/dev/null
9023 mkdir conftest
9024 cd conftest
9025 mkdir out
9026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9027
9028 lt_compiler_flag="-o out/conftest2.$ac_objext"
9029 # Insert the option either (1) after the last *FLAGS variable, or
9030 # (2) before a word containing "conftest.", or (3) at the end.
9031 # Note that $ac_compile itself does not contain backslashes and begins
9032 # with a dollar sign (not a hyphen), so the echo should work correctly.
9033 lt_compile=`echo "$ac_compile" | $SED \
9034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9036 -e 's:$: $lt_compiler_flag:'`
9037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9038 (eval "$lt_compile" 2>out/conftest.err)
9039 ac_status=$?
9040 cat out/conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9043 then
9044 # The compiler can only warn and ignore the option if not recognized
9045 # So say no if there are warnings
9046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9049 lt_cv_prog_compiler_c_o=yes
9050 fi
9051 fi
9052 chmod u+w . 2>&5
9053 $RM conftest*
9054 # SGI C++ compiler will create directory out/ii_files/ for
9055 # template instantiation
9056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9057 $RM out/* && rmdir out
9058 cd ..
9059 $RM -r conftest
9060 $RM conftest*
9061
9062 fi
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9064 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9065
9066
9067
9068
9069 hard_links="nottested"
9070 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9071 # do not overwrite the value of need_locks provided by the user
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9073 $as_echo_n "checking if we can lock with hard links... " >&6; }
9074 hard_links=yes
9075 $RM conftest*
9076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9077 touch conftest.a
9078 ln conftest.a conftest.b 2>&5 || hard_links=no
9079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9081 $as_echo "$hard_links" >&6; }
9082 if test "$hard_links" = no; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9084 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9085 need_locks=warn
9086 fi
9087 else
9088 need_locks=no
9089 fi
9090
9091
9092
9093
9094
9095
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9097 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9098
9099 runpath_var=
9100 allow_undefined_flag=
9101 always_export_symbols=no
9102 archive_cmds=
9103 archive_expsym_cmds=
9104 compiler_needs_object=no
9105 enable_shared_with_static_runtimes=no
9106 export_dynamic_flag_spec=
9107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9108 hardcode_automatic=no
9109 hardcode_direct=no
9110 hardcode_direct_absolute=no
9111 hardcode_libdir_flag_spec=
9112 hardcode_libdir_flag_spec_ld=
9113 hardcode_libdir_separator=
9114 hardcode_minus_L=no
9115 hardcode_shlibpath_var=unsupported
9116 inherit_rpath=no
9117 link_all_deplibs=unknown
9118 module_cmds=
9119 module_expsym_cmds=
9120 old_archive_from_new_cmds=
9121 old_archive_from_expsyms_cmds=
9122 thread_safe_flag_spec=
9123 whole_archive_flag_spec=
9124 # include_expsyms should be a list of space-separated symbols to be *always*
9125 # included in the symbol list
9126 include_expsyms=
9127 # exclude_expsyms can be an extended regexp of symbols to exclude
9128 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9129 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9130 # as well as any symbol that contains `d'.
9131 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9133 # platforms (ab)use it in PIC code, but their linkers get confused if
9134 # the symbol is explicitly referenced. Since portable code cannot
9135 # rely on this symbol name, it's probably fine to never include it in
9136 # preloaded symbol tables.
9137 # Exclude shared library initialization/finalization symbols.
9138 extract_expsyms_cmds=
9139
9140 case $host_os in
9141 cygwin* | mingw* | pw32* | cegcc*)
9142 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9143 # When not using gcc, we currently assume that we are using
9144 # Microsoft Visual C++.
9145 if test "$GCC" != yes; then
9146 with_gnu_ld=no
9147 fi
9148 ;;
9149 interix*)
9150 # we just hope/assume this is gcc and not c89 (= MSVC++)
9151 with_gnu_ld=yes
9152 ;;
9153 openbsd*)
9154 with_gnu_ld=no
9155 ;;
9156 esac
9157
9158 ld_shlibs=yes
9159
9160 # On some targets, GNU ld is compatible enough with the native linker
9161 # that we're better off using the native interface for both.
9162 lt_use_gnu_ld_interface=no
9163 if test "$with_gnu_ld" = yes; then
9164 case $host_os in
9165 aix*)
9166 # The AIX port of GNU ld has always aspired to compatibility
9167 # with the native linker. However, as the warning in the GNU ld
9168 # block says, versions before 2.19.5* couldn't really create working
9169 # shared libraries, regardless of the interface used.
9170 case `$LD -v 2>&1` in
9171 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9172 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9173 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9174 *)
9175 lt_use_gnu_ld_interface=yes
9176 ;;
9177 esac
9178 ;;
9179 *)
9180 lt_use_gnu_ld_interface=yes
9181 ;;
9182 esac
9183 fi
9184
9185 if test "$lt_use_gnu_ld_interface" = yes; then
9186 # If archive_cmds runs LD, not CC, wlarc should be empty
9187 wlarc='${wl}'
9188
9189 # Set some defaults for GNU ld with shared library support. These
9190 # are reset later if shared libraries are not supported. Putting them
9191 # here allows them to be overridden if necessary.
9192 runpath_var=LD_RUN_PATH
9193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194 export_dynamic_flag_spec='${wl}--export-dynamic'
9195 # ancient GNU ld didn't support --whole-archive et. al.
9196 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9197 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9198 else
9199 whole_archive_flag_spec=
9200 fi
9201 supports_anon_versioning=no
9202 case `$LD -v 2>&1` in
9203 *GNU\ gold*) supports_anon_versioning=yes ;;
9204 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9205 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9206 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9207 *\ 2.11.*) ;; # other 2.11 versions
9208 *) supports_anon_versioning=yes ;;
9209 esac
9210
9211 # See if GNU ld supports shared libraries.
9212 case $host_os in
9213 aix[3-9]*)
9214 # On AIX/PPC, the GNU linker is very broken
9215 if test "$host_cpu" != ia64; then
9216 ld_shlibs=no
9217 cat <<_LT_EOF 1>&2
9218
9219 *** Warning: the GNU linker, at least up to release 2.19, is reported
9220 *** to be unable to reliably create shared libraries on AIX.
9221 *** Therefore, libtool is disabling shared libraries support. If you
9222 *** really care for shared libraries, you may want to install binutils
9223 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9224 *** You will then need to restart the configuration process.
9225
9226 _LT_EOF
9227 fi
9228 ;;
9229
9230 amigaos*)
9231 case $host_cpu in
9232 powerpc)
9233 # see comment about AmigaOS4 .so support
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds=''
9236 ;;
9237 m68k)
9238 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)'
9239 hardcode_libdir_flag_spec='-L$libdir'
9240 hardcode_minus_L=yes
9241 ;;
9242 esac
9243 ;;
9244
9245 beos*)
9246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9247 allow_undefined_flag=unsupported
9248 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9249 # support --undefined. This deserves some investigation. FIXME
9250 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 else
9252 ld_shlibs=no
9253 fi
9254 ;;
9255
9256 cygwin* | mingw* | pw32* | cegcc*)
9257 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9258 # as there is no search path for DLLs.
9259 hardcode_libdir_flag_spec='-L$libdir'
9260 export_dynamic_flag_spec='${wl}--export-all-symbols'
9261 allow_undefined_flag=unsupported
9262 always_export_symbols=no
9263 enable_shared_with_static_runtimes=yes
9264 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9265
9266 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9268 # If the export-symbols file already is a .def file (1st line
9269 # is EXPORTS), use it as is; otherwise, prepend...
9270 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9271 cp $export_symbols $output_objdir/$soname.def;
9272 else
9273 echo EXPORTS > $output_objdir/$soname.def;
9274 cat $export_symbols >> $output_objdir/$soname.def;
9275 fi~
9276 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9277 else
9278 ld_shlibs=no
9279 fi
9280 ;;
9281
9282 haiku*)
9283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 link_all_deplibs=yes
9285 ;;
9286
9287 interix[3-9]*)
9288 hardcode_direct=no
9289 hardcode_shlibpath_var=no
9290 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9291 export_dynamic_flag_spec='${wl}-E'
9292 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9293 # Instead, shared libraries are loaded at an image base (0x10000000 by
9294 # default) and relocated if they conflict, which is a slow very memory
9295 # consuming and fragmenting process. To avoid this, we pick a random,
9296 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9297 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9298 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9299 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'
9300 ;;
9301
9302 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9303 tmp_diet=no
9304 if test "$host_os" = linux-dietlibc; then
9305 case $cc_basename in
9306 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9307 esac
9308 fi
9309 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9310 && test "$tmp_diet" = no
9311 then
9312 tmp_addflag=' $pic_flag'
9313 tmp_sharedflag='-shared'
9314 case $cc_basename,$host_cpu in
9315 pgcc*) # Portland Group C compiler
9316 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'
9317 tmp_addflag=' $pic_flag'
9318 ;;
9319 pgf77* | pgf90* | pgf95* | pgfortran*)
9320 # Portland Group f77 and f90 compilers
9321 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'
9322 tmp_addflag=' $pic_flag -Mnomain' ;;
9323 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9324 tmp_addflag=' -i_dynamic' ;;
9325 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9326 tmp_addflag=' -i_dynamic -nofor_main' ;;
9327 ifc* | ifort*) # Intel Fortran compiler
9328 tmp_addflag=' -nofor_main' ;;
9329 lf95*) # Lahey Fortran 8.1
9330 whole_archive_flag_spec=
9331 tmp_sharedflag='--shared' ;;
9332 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9333 tmp_sharedflag='-qmkshrobj'
9334 tmp_addflag= ;;
9335 nvcc*) # Cuda Compiler Driver 2.2
9336 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'
9337 compiler_needs_object=yes
9338 ;;
9339 esac
9340 case `$CC -V 2>&1 | sed 5q` in
9341 *Sun\ C*) # Sun C 5.9
9342 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'
9343 compiler_needs_object=yes
9344 tmp_sharedflag='-G' ;;
9345 *Sun\ F*) # Sun Fortran 8.3
9346 tmp_sharedflag='-G' ;;
9347 esac
9348 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349
9350 if test "x$supports_anon_versioning" = xyes; then
9351 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9353 echo "local: *; };" >> $output_objdir/$libname.ver~
9354 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9355 fi
9356
9357 case $cc_basename in
9358 xlf* | bgf* | bgxlf* | mpixlf*)
9359 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9360 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9361 hardcode_libdir_flag_spec=
9362 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9363 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9364 if test "x$supports_anon_versioning" = xyes; then
9365 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9366 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9367 echo "local: *; };" >> $output_objdir/$libname.ver~
9368 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9369 fi
9370 ;;
9371 esac
9372 else
9373 ld_shlibs=no
9374 fi
9375 ;;
9376
9377 netbsd*)
9378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9379 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9380 wlarc=
9381 else
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384 fi
9385 ;;
9386
9387 solaris*)
9388 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9389 ld_shlibs=no
9390 cat <<_LT_EOF 1>&2
9391
9392 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9393 *** create shared libraries on Solaris systems. Therefore, libtool
9394 *** is disabling shared libraries support. We urge you to upgrade GNU
9395 *** binutils to release 2.9.1 or newer. Another option is to modify
9396 *** your PATH or compiler configuration so that the native linker is
9397 *** used, and then restart.
9398
9399 _LT_EOF
9400 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9403 else
9404 ld_shlibs=no
9405 fi
9406 ;;
9407
9408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9409 case `$LD -v 2>&1` in
9410 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9411 ld_shlibs=no
9412 cat <<_LT_EOF 1>&2
9413
9414 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9415 *** reliably create shared libraries on SCO systems. Therefore, libtool
9416 *** is disabling shared libraries support. We urge you to upgrade GNU
9417 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9418 *** your PATH or compiler configuration so that the native linker is
9419 *** used, and then restart.
9420
9421 _LT_EOF
9422 ;;
9423 *)
9424 # For security reasons, it is highly recommended that you always
9425 # use absolute paths for naming shared libraries, and exclude the
9426 # DT_RUNPATH tag from executables and libraries. But doing so
9427 # requires that you compile everything twice, which is a pain.
9428 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432 else
9433 ld_shlibs=no
9434 fi
9435 ;;
9436 esac
9437 ;;
9438
9439 sunos4*)
9440 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9441 wlarc=
9442 hardcode_direct=yes
9443 hardcode_shlibpath_var=no
9444 ;;
9445
9446 *)
9447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9450 else
9451 ld_shlibs=no
9452 fi
9453 ;;
9454 esac
9455
9456 if test "$ld_shlibs" = no; then
9457 runpath_var=
9458 hardcode_libdir_flag_spec=
9459 export_dynamic_flag_spec=
9460 whole_archive_flag_spec=
9461 fi
9462 else
9463 # PORTME fill in a description of your system's linker (not GNU ld)
9464 case $host_os in
9465 aix3*)
9466 allow_undefined_flag=unsupported
9467 always_export_symbols=yes
9468 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'
9469 # Note: this linker hardcodes the directories in LIBPATH if there
9470 # are no directories specified by -L.
9471 hardcode_minus_L=yes
9472 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9473 # Neither direct hardcoding nor static linking is supported with a
9474 # broken collect2.
9475 hardcode_direct=unsupported
9476 fi
9477 ;;
9478
9479 aix[4-9]*)
9480 if test "$host_cpu" = ia64; then
9481 # On IA64, the linker does run time linking by default, so we don't
9482 # have to do anything special.
9483 aix_use_runtimelinking=no
9484 exp_sym_flag='-Bexport'
9485 no_entry_flag=""
9486 else
9487 # If we're using GNU nm, then we don't want the "-C" option.
9488 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9489 # Also, AIX nm treats weak defined symbols like other global
9490 # defined symbols, whereas GNU nm marks them as "W".
9491 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9492 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'
9493 else
9494 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'
9495 fi
9496 aix_use_runtimelinking=no
9497
9498 # Test if we are trying to use run time linking or normal
9499 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9500 # need to do runtime linking.
9501 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9502 for ld_flag in $LDFLAGS; do
9503 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9504 aix_use_runtimelinking=yes
9505 break
9506 fi
9507 done
9508 ;;
9509 esac
9510
9511 exp_sym_flag='-bexport'
9512 no_entry_flag='-bnoentry'
9513 fi
9514
9515 # When large executables or shared objects are built, AIX ld can
9516 # have problems creating the table of contents. If linking a library
9517 # or program results in "error TOC overflow" add -mminimal-toc to
9518 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9519 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9520
9521 archive_cmds=''
9522 hardcode_direct=yes
9523 hardcode_direct_absolute=yes
9524 hardcode_libdir_separator=':'
9525 link_all_deplibs=yes
9526 file_list_spec='${wl}-f,'
9527
9528 if test "$GCC" = yes; then
9529 case $host_os in aix4.[012]|aix4.[012].*)
9530 # We only want to do this on AIX 4.2 and lower, the check
9531 # below for broken collect2 doesn't work under 4.3+
9532 collect2name=`${CC} -print-prog-name=collect2`
9533 if test -f "$collect2name" &&
9534 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9535 then
9536 # We have reworked collect2
9537 :
9538 else
9539 # We have old collect2
9540 hardcode_direct=unsupported
9541 # It fails to find uninstalled libraries when the uninstalled
9542 # path is not listed in the libpath. Setting hardcode_minus_L
9543 # to unsupported forces relinking
9544 hardcode_minus_L=yes
9545 hardcode_libdir_flag_spec='-L$libdir'
9546 hardcode_libdir_separator=
9547 fi
9548 ;;
9549 esac
9550 shared_flag='-shared'
9551 if test "$aix_use_runtimelinking" = yes; then
9552 shared_flag="$shared_flag "'${wl}-G'
9553 fi
9554 else
9555 # not using gcc
9556 if test "$host_cpu" = ia64; then
9557 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9558 # chokes on -Wl,-G. The following line is correct:
9559 shared_flag='-G'
9560 else
9561 if test "$aix_use_runtimelinking" = yes; then
9562 shared_flag='${wl}-G'
9563 else
9564 shared_flag='${wl}-bM:SRE'
9565 fi
9566 fi
9567 fi
9568
9569 export_dynamic_flag_spec='${wl}-bexpall'
9570 # It seems that -bexpall does not export symbols beginning with
9571 # underscore (_), so it is better to generate a list of symbols to export.
9572 always_export_symbols=yes
9573 if test "$aix_use_runtimelinking" = yes; then
9574 # Warning - without using the other runtime loading flags (-brtl),
9575 # -berok will link without error, but may produce a broken library.
9576 allow_undefined_flag='-berok'
9577 # Determine the default libpath from the value encoded in an
9578 # empty executable.
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581
9582 int
9583 main ()
9584 {
9585
9586 ;
9587 return 0;
9588 }
9589 _ACEOF
9590 if ac_fn_c_try_link "$LINENO"; then :
9591
9592 lt_aix_libpath_sed='
9593 /Import File Strings/,/^$/ {
9594 /^0/ {
9595 s/^0 *\(.*\)$/\1/
9596 p
9597 }
9598 }'
9599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9600 # Check for a 64-bit object if we didn't find anything.
9601 if test -z "$aix_libpath"; then
9602 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9603 fi
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9608
9609 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9610 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"
9611 else
9612 if test "$host_cpu" = ia64; then
9613 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9614 allow_undefined_flag="-z nodefs"
9615 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"
9616 else
9617 # Determine the default libpath from the value encoded in an
9618 # empty executable.
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9621
9622 int
9623 main ()
9624 {
9625
9626 ;
9627 return 0;
9628 }
9629 _ACEOF
9630 if ac_fn_c_try_link "$LINENO"; then :
9631
9632 lt_aix_libpath_sed='
9633 /Import File Strings/,/^$/ {
9634 /^0/ {
9635 s/^0 *\(.*\)$/\1/
9636 p
9637 }
9638 }'
9639 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640 # Check for a 64-bit object if we didn't find anything.
9641 if test -z "$aix_libpath"; then
9642 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9643 fi
9644 fi
9645 rm -f core conftest.err conftest.$ac_objext \
9646 conftest$ac_exeext conftest.$ac_ext
9647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9648
9649 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9650 # Warning - without using the other run time loading flags,
9651 # -berok will link without error, but may produce a broken library.
9652 no_undefined_flag=' ${wl}-bernotok'
9653 allow_undefined_flag=' ${wl}-berok'
9654 if test "$with_gnu_ld" = yes; then
9655 # We only use this code for GNU lds that support --whole-archive.
9656 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9657 else
9658 # Exported symbols can be pulled into shared objects from archives
9659 whole_archive_flag_spec='$convenience'
9660 fi
9661 archive_cmds_need_lc=yes
9662 # This is similar to how AIX traditionally builds its shared libraries.
9663 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'
9664 fi
9665 fi
9666 ;;
9667
9668 amigaos*)
9669 case $host_cpu in
9670 powerpc)
9671 # see comment about AmigaOS4 .so support
9672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9673 archive_expsym_cmds=''
9674 ;;
9675 m68k)
9676 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)'
9677 hardcode_libdir_flag_spec='-L$libdir'
9678 hardcode_minus_L=yes
9679 ;;
9680 esac
9681 ;;
9682
9683 bsdi[45]*)
9684 export_dynamic_flag_spec=-rdynamic
9685 ;;
9686
9687 cygwin* | mingw* | pw32* | cegcc*)
9688 # When not using gcc, we currently assume that we are using
9689 # Microsoft Visual C++.
9690 # hardcode_libdir_flag_spec is actually meaningless, as there is
9691 # no search path for DLLs.
9692 hardcode_libdir_flag_spec=' '
9693 allow_undefined_flag=unsupported
9694 # Tell ltmain to make .lib files, not .a files.
9695 libext=lib
9696 # Tell ltmain to make .dll files, not .so files.
9697 shrext_cmds=".dll"
9698 # FIXME: Setting linknames here is a bad hack.
9699 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9700 # The linker will automatically build a .lib file if we build a DLL.
9701 old_archive_from_new_cmds='true'
9702 # FIXME: Should let the user specify the lib program.
9703 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9704 fix_srcfile_path='`cygpath -w "$srcfile"`'
9705 enable_shared_with_static_runtimes=yes
9706 ;;
9707
9708 darwin* | rhapsody*)
9709
9710
9711 archive_cmds_need_lc=no
9712 hardcode_direct=no
9713 hardcode_automatic=yes
9714 hardcode_shlibpath_var=unsupported
9715 if test "$lt_cv_ld_force_load" = "yes"; then
9716 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\"`'
9717 else
9718 whole_archive_flag_spec=''
9719 fi
9720 link_all_deplibs=yes
9721 allow_undefined_flag="$_lt_dar_allow_undefined"
9722 case $cc_basename in
9723 ifort*) _lt_dar_can_shared=yes ;;
9724 *) _lt_dar_can_shared=$GCC ;;
9725 esac
9726 if test "$_lt_dar_can_shared" = "yes"; then
9727 output_verbose_link_cmd=func_echo_all
9728 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9729 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9730 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}"
9731 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}"
9732
9733 else
9734 ld_shlibs=no
9735 fi
9736
9737 ;;
9738
9739 dgux*)
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_libdir_flag_spec='-L$libdir'
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9746 # support. Future versions do this automatically, but an explicit c++rt0.o
9747 # does not break anything, and helps significantly (at the cost of a little
9748 # extra space).
9749 freebsd2.2*)
9750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9751 hardcode_libdir_flag_spec='-R$libdir'
9752 hardcode_direct=yes
9753 hardcode_shlibpath_var=no
9754 ;;
9755
9756 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9757 freebsd2.*)
9758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_direct=yes
9760 hardcode_minus_L=yes
9761 hardcode_shlibpath_var=no
9762 ;;
9763
9764 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9765 freebsd* | dragonfly*)
9766 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9767 hardcode_libdir_flag_spec='-R$libdir'
9768 hardcode_direct=yes
9769 hardcode_shlibpath_var=no
9770 ;;
9771
9772 hpux9*)
9773 if test "$GCC" = yes; then
9774 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'
9775 else
9776 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'
9777 fi
9778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9779 hardcode_libdir_separator=:
9780 hardcode_direct=yes
9781
9782 # hardcode_minus_L: Not really in the search PATH,
9783 # but as the default location of the library.
9784 hardcode_minus_L=yes
9785 export_dynamic_flag_spec='${wl}-E'
9786 ;;
9787
9788 hpux10*)
9789 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9791 else
9792 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9793 fi
9794 if test "$with_gnu_ld" = no; then
9795 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9796 hardcode_libdir_flag_spec_ld='+b $libdir'
9797 hardcode_libdir_separator=:
9798 hardcode_direct=yes
9799 hardcode_direct_absolute=yes
9800 export_dynamic_flag_spec='${wl}-E'
9801 # hardcode_minus_L: Not really in the search PATH,
9802 # but as the default location of the library.
9803 hardcode_minus_L=yes
9804 fi
9805 ;;
9806
9807 hpux11*)
9808 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9809 case $host_cpu in
9810 hppa*64*)
9811 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 ;;
9813 ia64*)
9814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9815 ;;
9816 *)
9817 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9818 ;;
9819 esac
9820 else
9821 case $host_cpu in
9822 hppa*64*)
9823 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 ;;
9825 ia64*)
9826 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9827 ;;
9828 *)
9829
9830 # Older versions of the 11.00 compiler do not understand -b yet
9831 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9833 $as_echo_n "checking if $CC understands -b... " >&6; }
9834 if ${lt_cv_prog_compiler__b+:} false; then :
9835 $as_echo_n "(cached) " >&6
9836 else
9837 lt_cv_prog_compiler__b=no
9838 save_LDFLAGS="$LDFLAGS"
9839 LDFLAGS="$LDFLAGS -b"
9840 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9842 # The linker can only warn and ignore the option if not recognized
9843 # So say no if there are warnings
9844 if test -s conftest.err; then
9845 # Append any errors to the config.log.
9846 cat conftest.err 1>&5
9847 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9849 if diff conftest.exp conftest.er2 >/dev/null; then
9850 lt_cv_prog_compiler__b=yes
9851 fi
9852 else
9853 lt_cv_prog_compiler__b=yes
9854 fi
9855 fi
9856 $RM -r conftest*
9857 LDFLAGS="$save_LDFLAGS"
9858
9859 fi
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9861 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9862
9863 if test x"$lt_cv_prog_compiler__b" = xyes; then
9864 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9865 else
9866 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9867 fi
9868
9869 ;;
9870 esac
9871 fi
9872 if test "$with_gnu_ld" = no; then
9873 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9874 hardcode_libdir_separator=:
9875
9876 case $host_cpu in
9877 hppa*64*|ia64*)
9878 hardcode_direct=no
9879 hardcode_shlibpath_var=no
9880 ;;
9881 *)
9882 hardcode_direct=yes
9883 hardcode_direct_absolute=yes
9884 export_dynamic_flag_spec='${wl}-E'
9885
9886 # hardcode_minus_L: Not really in the search PATH,
9887 # but as the default location of the library.
9888 hardcode_minus_L=yes
9889 ;;
9890 esac
9891 fi
9892 ;;
9893
9894 irix5* | irix6* | nonstopux*)
9895 if test "$GCC" = yes; then
9896 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'
9897 # Try to use the -exported_symbol ld option, if it does not
9898 # work, assume that -exports_file does not work either and
9899 # implicitly export all symbols.
9900 save_LDFLAGS="$LDFLAGS"
9901 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 int foo(void) {}
9905 _ACEOF
9906 if ac_fn_c_try_link "$LINENO"; then :
9907 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'
9908
9909 fi
9910 rm -f core conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
9912 LDFLAGS="$save_LDFLAGS"
9913 else
9914 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'
9915 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'
9916 fi
9917 archive_cmds_need_lc='no'
9918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9919 hardcode_libdir_separator=:
9920 inherit_rpath=yes
9921 link_all_deplibs=yes
9922 ;;
9923
9924 netbsd*)
9925 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9927 else
9928 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9929 fi
9930 hardcode_libdir_flag_spec='-R$libdir'
9931 hardcode_direct=yes
9932 hardcode_shlibpath_var=no
9933 ;;
9934
9935 newsos6)
9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_direct=yes
9938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939 hardcode_libdir_separator=:
9940 hardcode_shlibpath_var=no
9941 ;;
9942
9943 *nto* | *qnx*)
9944 ;;
9945
9946 openbsd*)
9947 if test -f /usr/libexec/ld.so; then
9948 hardcode_direct=yes
9949 hardcode_shlibpath_var=no
9950 hardcode_direct_absolute=yes
9951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9953 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9955 export_dynamic_flag_spec='${wl}-E'
9956 else
9957 case $host_os in
9958 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_libdir_flag_spec='-R$libdir'
9961 ;;
9962 *)
9963 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9964 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9965 ;;
9966 esac
9967 fi
9968 else
9969 ld_shlibs=no
9970 fi
9971 ;;
9972
9973 os2*)
9974 hardcode_libdir_flag_spec='-L$libdir'
9975 hardcode_minus_L=yes
9976 allow_undefined_flag=unsupported
9977 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'
9978 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9979 ;;
9980
9981 osf3*)
9982 if test "$GCC" = yes; then
9983 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9984 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'
9985 else
9986 allow_undefined_flag=' -expect_unresolved \*'
9987 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'
9988 fi
9989 archive_cmds_need_lc='no'
9990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9991 hardcode_libdir_separator=:
9992 ;;
9993
9994 osf4* | osf5*) # as osf3* with the addition of -msym flag
9995 if test "$GCC" = yes; then
9996 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9997 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'
9998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999 else
10000 allow_undefined_flag=' -expect_unresolved \*'
10001 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'
10002 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~
10003 $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'
10004
10005 # Both c and cxx compiler support -rpath directly
10006 hardcode_libdir_flag_spec='-rpath $libdir'
10007 fi
10008 archive_cmds_need_lc='no'
10009 hardcode_libdir_separator=:
10010 ;;
10011
10012 solaris*)
10013 no_undefined_flag=' -z defs'
10014 if test "$GCC" = yes; then
10015 wlarc='${wl}'
10016 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10018 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10019 else
10020 case `$CC -V 2>&1` in
10021 *"Compilers 5.0"*)
10022 wlarc=''
10023 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10024 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10025 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10026 ;;
10027 *)
10028 wlarc='${wl}'
10029 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10031 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10032 ;;
10033 esac
10034 fi
10035 hardcode_libdir_flag_spec='-R$libdir'
10036 hardcode_shlibpath_var=no
10037 case $host_os in
10038 solaris2.[0-5] | solaris2.[0-5].*) ;;
10039 *)
10040 # The compiler driver will combine and reorder linker options,
10041 # but understands `-z linker_flag'. GCC discards it without `$wl',
10042 # but is careful enough not to reorder.
10043 # Supported since Solaris 2.6 (maybe 2.5.1?)
10044 if test "$GCC" = yes; then
10045 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10046 else
10047 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10048 fi
10049 ;;
10050 esac
10051 link_all_deplibs=yes
10052 ;;
10053
10054 sunos4*)
10055 if test "x$host_vendor" = xsequent; then
10056 # Use $CC to link under sequent, because it throws in some extra .o
10057 # files that make .init and .fini sections work.
10058 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10059 else
10060 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10061 fi
10062 hardcode_libdir_flag_spec='-L$libdir'
10063 hardcode_direct=yes
10064 hardcode_minus_L=yes
10065 hardcode_shlibpath_var=no
10066 ;;
10067
10068 sysv4)
10069 case $host_vendor in
10070 sni)
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_direct=yes # is this really true???
10073 ;;
10074 siemens)
10075 ## LD is ld it makes a PLAMLIB
10076 ## CC just makes a GrossModule.
10077 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10078 reload_cmds='$CC -r -o $output$reload_objs'
10079 hardcode_direct=no
10080 ;;
10081 motorola)
10082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10084 ;;
10085 esac
10086 runpath_var='LD_RUN_PATH'
10087 hardcode_shlibpath_var=no
10088 ;;
10089
10090 sysv4.3*)
10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_shlibpath_var=no
10093 export_dynamic_flag_spec='-Bexport'
10094 ;;
10095
10096 sysv4*MP*)
10097 if test -d /usr/nec; then
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_shlibpath_var=no
10100 runpath_var=LD_RUN_PATH
10101 hardcode_runpath_var=yes
10102 ld_shlibs=yes
10103 fi
10104 ;;
10105
10106 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10107 no_undefined_flag='${wl}-z,text'
10108 archive_cmds_need_lc=no
10109 hardcode_shlibpath_var=no
10110 runpath_var='LD_RUN_PATH'
10111
10112 if test "$GCC" = yes; then
10113 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 else
10116 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 fi
10119 ;;
10120
10121 sysv5* | sco3.2v5* | sco5v6*)
10122 # Note: We can NOT use -z defs as we might desire, because we do not
10123 # link with -lc, and that would cause any symbols used from libc to
10124 # always be unresolved, which means just about no library would
10125 # ever link correctly. If we're not using GNU ld we use -z text
10126 # though, which does catch some bad symbols but isn't as heavy-handed
10127 # as -z defs.
10128 no_undefined_flag='${wl}-z,text'
10129 allow_undefined_flag='${wl}-z,nodefs'
10130 archive_cmds_need_lc=no
10131 hardcode_shlibpath_var=no
10132 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10133 hardcode_libdir_separator=':'
10134 link_all_deplibs=yes
10135 export_dynamic_flag_spec='${wl}-Bexport'
10136 runpath_var='LD_RUN_PATH'
10137
10138 if test "$GCC" = yes; then
10139 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 else
10142 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 fi
10145 ;;
10146
10147 uts4*)
10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10149 hardcode_libdir_flag_spec='-L$libdir'
10150 hardcode_shlibpath_var=no
10151 ;;
10152
10153 *)
10154 ld_shlibs=no
10155 ;;
10156 esac
10157
10158 if test x$host_vendor = xsni; then
10159 case $host in
10160 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10161 export_dynamic_flag_spec='${wl}-Blargedynsym'
10162 ;;
10163 esac
10164 fi
10165 fi
10166
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10168 $as_echo "$ld_shlibs" >&6; }
10169 test "$ld_shlibs" = no && can_build_shared=no
10170
10171 with_gnu_ld=$with_gnu_ld
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187 #
10188 # Do we need to explicitly link libc?
10189 #
10190 case "x$archive_cmds_need_lc" in
10191 x|xyes)
10192 # Assume -lc should be added
10193 archive_cmds_need_lc=yes
10194
10195 if test "$enable_shared" = yes && test "$GCC" = yes; then
10196 case $archive_cmds in
10197 *'~'*)
10198 # FIXME: we may have to deal with multi-command sequences.
10199 ;;
10200 '$CC '*)
10201 # Test whether the compiler implicitly links with -lc since on some
10202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10203 # to ld, don't add -lc before -lgcc.
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10205 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10206 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10207 $as_echo_n "(cached) " >&6
10208 else
10209 $RM conftest*
10210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10211
10212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10213 (eval $ac_compile) 2>&5
10214 ac_status=$?
10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; } 2>conftest.err; then
10217 soname=conftest
10218 lib=conftest
10219 libobjs=conftest.$ac_objext
10220 deplibs=
10221 wl=$lt_prog_compiler_wl
10222 pic_flag=$lt_prog_compiler_pic
10223 compiler_flags=-v
10224 linker_flags=-v
10225 verstring=
10226 output_objdir=.
10227 libname=conftest
10228 lt_save_allow_undefined_flag=$allow_undefined_flag
10229 allow_undefined_flag=
10230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10231 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10232 ac_status=$?
10233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10234 test $ac_status = 0; }
10235 then
10236 lt_cv_archive_cmds_need_lc=no
10237 else
10238 lt_cv_archive_cmds_need_lc=yes
10239 fi
10240 allow_undefined_flag=$lt_save_allow_undefined_flag
10241 else
10242 cat conftest.err 1>&5
10243 fi
10244 $RM conftest*
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10248 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10249 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10250 ;;
10251 esac
10252 fi
10253 ;;
10254 esac
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10413 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10414
10415 if test "$GCC" = yes; then
10416 case $host_os in
10417 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10418 *) lt_awk_arg="/^libraries:/" ;;
10419 esac
10420 case $host_os in
10421 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10422 *) lt_sed_strip_eq="s,=/,/,g" ;;
10423 esac
10424 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10425 case $lt_search_path_spec in
10426 *\;*)
10427 # if the path contains ";" then we assume it to be the separator
10428 # otherwise default to the standard path separator (i.e. ":") - it is
10429 # assumed that no part of a normal pathname contains ";" but that should
10430 # okay in the real world where ";" in dirpaths is itself problematic.
10431 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10432 ;;
10433 *)
10434 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10435 ;;
10436 esac
10437 # Ok, now we have the path, separated by spaces, we can step through it
10438 # and add multilib dir if necessary.
10439 lt_tmp_lt_search_path_spec=
10440 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10441 for lt_sys_path in $lt_search_path_spec; do
10442 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10443 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10444 else
10445 test -d "$lt_sys_path" && \
10446 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10447 fi
10448 done
10449 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10450 BEGIN {RS=" "; FS="/|\n";} {
10451 lt_foo="";
10452 lt_count=0;
10453 for (lt_i = NF; lt_i > 0; lt_i--) {
10454 if ($lt_i != "" && $lt_i != ".") {
10455 if ($lt_i == "..") {
10456 lt_count++;
10457 } else {
10458 if (lt_count == 0) {
10459 lt_foo="/" $lt_i lt_foo;
10460 } else {
10461 lt_count--;
10462 }
10463 }
10464 }
10465 }
10466 if (lt_foo != "") { lt_freq[lt_foo]++; }
10467 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10468 }'`
10469 # AWK program above erroneously prepends '/' to C:/dos/paths
10470 # for these hosts.
10471 case $host_os in
10472 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10473 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10474 esac
10475 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10476 else
10477 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10478 fi
10479 library_names_spec=
10480 libname_spec='lib$name'
10481 soname_spec=
10482 shrext_cmds=".so"
10483 postinstall_cmds=
10484 postuninstall_cmds=
10485 finish_cmds=
10486 finish_eval=
10487 shlibpath_var=
10488 shlibpath_overrides_runpath=unknown
10489 version_type=none
10490 dynamic_linker="$host_os ld.so"
10491 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10492 need_lib_prefix=unknown
10493 hardcode_into_libs=no
10494
10495 # when you set need_version to no, make sure it does not cause -set_version
10496 # flags to be left without arguments
10497 need_version=unknown
10498
10499 case $host_os in
10500 aix3*)
10501 version_type=linux
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10503 shlibpath_var=LIBPATH
10504
10505 # AIX 3 has no versioning support, so we append a major version to the name.
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 ;;
10508
10509 aix[4-9]*)
10510 version_type=linux
10511 need_lib_prefix=no
10512 need_version=no
10513 hardcode_into_libs=yes
10514 if test "$host_cpu" = ia64; then
10515 # AIX 5 supports IA64
10516 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 else
10519 # With GCC up to 2.95.x, collect2 would create an import file
10520 # for dependence libraries. The import file would start with
10521 # the line `#! .'. This would cause the generated library to
10522 # depend on `.', always an invalid library. This was fixed in
10523 # development snapshots of GCC prior to 3.0.
10524 case $host_os in
10525 aix4 | aix4.[01] | aix4.[01].*)
10526 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10527 echo ' yes '
10528 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10529 :
10530 else
10531 can_build_shared=no
10532 fi
10533 ;;
10534 esac
10535 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10536 # soname into executable. Probably we can add versioning support to
10537 # collect2, so additional links can be useful in future.
10538 if test "$aix_use_runtimelinking" = yes; then
10539 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10540 # instead of lib<name>.a to let people know that these are not
10541 # typical AIX shared libraries.
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 else
10544 # We preserve .a as extension for shared libraries through AIX4.2
10545 # and later when we are not doing run time linking.
10546 library_names_spec='${libname}${release}.a $libname.a'
10547 soname_spec='${libname}${release}${shared_ext}$major'
10548 fi
10549 shlibpath_var=LIBPATH
10550 fi
10551 ;;
10552
10553 amigaos*)
10554 case $host_cpu in
10555 powerpc)
10556 # Since July 2007 AmigaOS4 officially supports .so libraries.
10557 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 ;;
10560 m68k)
10561 library_names_spec='$libname.ixlibrary $libname.a'
10562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10563 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'
10564 ;;
10565 esac
10566 ;;
10567
10568 beos*)
10569 library_names_spec='${libname}${shared_ext}'
10570 dynamic_linker="$host_os ld.so"
10571 shlibpath_var=LIBRARY_PATH
10572 ;;
10573
10574 bsdi[45]*)
10575 version_type=linux
10576 need_version=no
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 soname_spec='${libname}${release}${shared_ext}$major'
10579 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10582 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10583 # the default ld.so.conf also contains /usr/contrib/lib and
10584 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10585 # libtool to hard-code these into programs
10586 ;;
10587
10588 cygwin* | mingw* | pw32* | cegcc*)
10589 version_type=windows
10590 shrext_cmds=".dll"
10591 need_version=no
10592 need_lib_prefix=no
10593
10594 case $GCC,$host_os in
10595 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10596 library_names_spec='$libname.dll.a'
10597 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10598 postinstall_cmds='base_file=`basename \${file}`~
10599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10600 dldir=$destdir/`dirname \$dlpath`~
10601 test -d \$dldir || mkdir -p \$dldir~
10602 $install_prog $dir/$dlname \$dldir/$dlname~
10603 chmod a+x \$dldir/$dlname~
10604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10606 fi'
10607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10608 dlpath=$dir/\$dldll~
10609 $RM \$dlpath'
10610 shlibpath_overrides_runpath=yes
10611
10612 case $host_os in
10613 cygwin*)
10614 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10615 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10616
10617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10618 ;;
10619 mingw* | cegcc*)
10620 # MinGW DLLs use traditional 'lib' prefix
10621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10622 ;;
10623 pw32*)
10624 # pw32 DLLs use 'pw' prefix rather than 'lib'
10625 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10626 ;;
10627 esac
10628 ;;
10629
10630 *)
10631 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10632 ;;
10633 esac
10634 dynamic_linker='Win32 ld.exe'
10635 # FIXME: first we should search . and the directory the executable is in
10636 shlibpath_var=PATH
10637 ;;
10638
10639 darwin* | rhapsody*)
10640 dynamic_linker="$host_os dyld"
10641 version_type=darwin
10642 need_lib_prefix=no
10643 need_version=no
10644 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10645 soname_spec='${libname}${release}${major}$shared_ext'
10646 shlibpath_overrides_runpath=yes
10647 shlibpath_var=DYLD_LIBRARY_PATH
10648 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10649
10650 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10651 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10652 ;;
10653
10654 dgux*)
10655 version_type=linux
10656 need_lib_prefix=no
10657 need_version=no
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 ;;
10662
10663 freebsd* | dragonfly*)
10664 # DragonFly does not have aout. When/if they implement a new
10665 # versioning mechanism, adjust this.
10666 if test -x /usr/bin/objformat; then
10667 objformat=`/usr/bin/objformat`
10668 else
10669 case $host_os in
10670 freebsd[23].*) objformat=aout ;;
10671 *) objformat=elf ;;
10672 esac
10673 fi
10674 version_type=freebsd-$objformat
10675 case $version_type in
10676 freebsd-elf*)
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10678 need_version=no
10679 need_lib_prefix=no
10680 ;;
10681 freebsd-*)
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10683 need_version=yes
10684 ;;
10685 esac
10686 shlibpath_var=LD_LIBRARY_PATH
10687 case $host_os in
10688 freebsd2.*)
10689 shlibpath_overrides_runpath=yes
10690 ;;
10691 freebsd3.[01]* | freebsdelf3.[01]*)
10692 shlibpath_overrides_runpath=yes
10693 hardcode_into_libs=yes
10694 ;;
10695 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10696 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10697 shlibpath_overrides_runpath=no
10698 hardcode_into_libs=yes
10699 ;;
10700 *) # from 4.6 on, and DragonFly
10701 shlibpath_overrides_runpath=yes
10702 hardcode_into_libs=yes
10703 ;;
10704 esac
10705 ;;
10706
10707 gnu*)
10708 version_type=linux
10709 need_lib_prefix=no
10710 need_version=no
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 hardcode_into_libs=yes
10715 ;;
10716
10717 haiku*)
10718 version_type=linux
10719 need_lib_prefix=no
10720 need_version=no
10721 dynamic_linker="$host_os runtime_loader"
10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10723 soname_spec='${libname}${release}${shared_ext}$major'
10724 shlibpath_var=LIBRARY_PATH
10725 shlibpath_overrides_runpath=yes
10726 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10727 hardcode_into_libs=yes
10728 ;;
10729
10730 hpux9* | hpux10* | hpux11*)
10731 # Give a soname corresponding to the major version so that dld.sl refuses to
10732 # link against other versions.
10733 version_type=sunos
10734 need_lib_prefix=no
10735 need_version=no
10736 case $host_cpu in
10737 ia64*)
10738 shrext_cmds='.so'
10739 hardcode_into_libs=yes
10740 dynamic_linker="$host_os dld.so"
10741 shlibpath_var=LD_LIBRARY_PATH
10742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 if test "X$HPUX_IA64_MODE" = X32; then
10746 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10747 else
10748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10749 fi
10750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10751 ;;
10752 hppa*64*)
10753 shrext_cmds='.sl'
10754 hardcode_into_libs=yes
10755 dynamic_linker="$host_os dld.sl"
10756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 soname_spec='${libname}${release}${shared_ext}$major'
10760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10762 ;;
10763 *)
10764 shrext_cmds='.sl'
10765 dynamic_linker="$host_os dld.sl"
10766 shlibpath_var=SHLIB_PATH
10767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 ;;
10771 esac
10772 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10773 postinstall_cmds='chmod 555 $lib'
10774 # or fails outright, so override atomically:
10775 install_override_mode=555
10776 ;;
10777
10778 interix[3-9]*)
10779 version_type=linux
10780 need_lib_prefix=no
10781 need_version=no
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath=no
10787 hardcode_into_libs=yes
10788 ;;
10789
10790 irix5* | irix6* | nonstopux*)
10791 case $host_os in
10792 nonstopux*) version_type=nonstopux ;;
10793 *)
10794 if test "$lt_cv_prog_gnu_ld" = yes; then
10795 version_type=linux
10796 else
10797 version_type=irix
10798 fi ;;
10799 esac
10800 need_lib_prefix=no
10801 need_version=no
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10804 case $host_os in
10805 irix5* | nonstopux*)
10806 libsuff= shlibsuff=
10807 ;;
10808 *)
10809 case $LD in # libtool.m4 will add one of these switches to LD
10810 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10811 libsuff= shlibsuff= libmagic=32-bit;;
10812 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10813 libsuff=32 shlibsuff=N32 libmagic=N32;;
10814 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10815 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10816 *) libsuff= shlibsuff= libmagic=never-match;;
10817 esac
10818 ;;
10819 esac
10820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10821 shlibpath_overrides_runpath=no
10822 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10823 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10824 hardcode_into_libs=yes
10825 ;;
10826
10827 # No shared lib support for Linux oldld, aout, or coff.
10828 linux*oldld* | linux*aout* | linux*coff*)
10829 dynamic_linker=no
10830 ;;
10831
10832 # This must be Linux ELF.
10833 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10834 version_type=linux
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath=no
10842
10843 # Some binutils ld are patched to set DT_RUNPATH
10844 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 lt_cv_shlibpath_overrides_runpath=no
10848 save_LDFLAGS=$LDFLAGS
10849 save_libdir=$libdir
10850 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10851 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10854
10855 int
10856 main ()
10857 {
10858
10859 ;
10860 return 0;
10861 }
10862 _ACEOF
10863 if ac_fn_c_try_link "$LINENO"; then :
10864 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10865 lt_cv_shlibpath_overrides_runpath=yes
10866 fi
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext \
10869 conftest$ac_exeext conftest.$ac_ext
10870 LDFLAGS=$save_LDFLAGS
10871 libdir=$save_libdir
10872
10873 fi
10874
10875 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10876
10877 # This implies no fast_install, which is unacceptable.
10878 # Some rework will be needed to allow for fast_install
10879 # before this can be enabled.
10880 hardcode_into_libs=yes
10881
10882 # Append ld.so.conf contents to the search path
10883 if test -f /etc/ld.so.conf; then
10884 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' ' '`
10885 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10886 fi
10887
10888 # We used to test for /lib/ld.so.1 and disable shared libraries on
10889 # powerpc, because MkLinux only supported shared libraries with the
10890 # GNU dynamic linker. Since this was broken with cross compilers,
10891 # most powerpc-linux boxes support dynamic linking these days and
10892 # people can always --disable-shared, the test was removed, and we
10893 # assume the GNU/Linux dynamic linker is in use.
10894 dynamic_linker='GNU/Linux ld.so'
10895 ;;
10896
10897 netbsd*)
10898 version_type=sunos
10899 need_lib_prefix=no
10900 need_version=no
10901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10904 dynamic_linker='NetBSD (a.out) ld.so'
10905 else
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 dynamic_linker='NetBSD ld.elf_so'
10909 fi
10910 shlibpath_var=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath=yes
10912 hardcode_into_libs=yes
10913 ;;
10914
10915 newsos6)
10916 version_type=linux
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=yes
10920 ;;
10921
10922 *nto* | *qnx*)
10923 version_type=qnx
10924 need_lib_prefix=no
10925 need_version=no
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 shlibpath_overrides_runpath=no
10930 hardcode_into_libs=yes
10931 dynamic_linker='ldqnx.so'
10932 ;;
10933
10934 openbsd*)
10935 version_type=sunos
10936 sys_lib_dlsearch_path_spec="/usr/lib"
10937 need_lib_prefix=no
10938 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10939 case $host_os in
10940 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10941 *) need_version=no ;;
10942 esac
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10947 case $host_os in
10948 openbsd2.[89] | openbsd2.[89].*)
10949 shlibpath_overrides_runpath=no
10950 ;;
10951 *)
10952 shlibpath_overrides_runpath=yes
10953 ;;
10954 esac
10955 else
10956 shlibpath_overrides_runpath=yes
10957 fi
10958 ;;
10959
10960 os2*)
10961 libname_spec='$name'
10962 shrext_cmds=".dll"
10963 need_lib_prefix=no
10964 library_names_spec='$libname${shared_ext} $libname.a'
10965 dynamic_linker='OS/2 ld.exe'
10966 shlibpath_var=LIBPATH
10967 ;;
10968
10969 osf3* | osf4* | osf5*)
10970 version_type=osf
10971 need_lib_prefix=no
10972 need_version=no
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10977 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10978 ;;
10979
10980 rdos*)
10981 dynamic_linker=no
10982 ;;
10983
10984 solaris*)
10985 version_type=linux
10986 need_lib_prefix=no
10987 need_version=no
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=yes
10992 hardcode_into_libs=yes
10993 # ldd complains unless libraries are executable
10994 postinstall_cmds='chmod +x $lib'
10995 ;;
10996
10997 sunos4*)
10998 version_type=sunos
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 shlibpath_overrides_runpath=yes
11003 if test "$with_gnu_ld" = yes; then
11004 need_lib_prefix=no
11005 fi
11006 need_version=yes
11007 ;;
11008
11009 sysv4 | sysv4.3*)
11010 version_type=linux
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 case $host_vendor in
11015 sni)
11016 shlibpath_overrides_runpath=no
11017 need_lib_prefix=no
11018 runpath_var=LD_RUN_PATH
11019 ;;
11020 siemens)
11021 need_lib_prefix=no
11022 ;;
11023 motorola)
11024 need_lib_prefix=no
11025 need_version=no
11026 shlibpath_overrides_runpath=no
11027 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11028 ;;
11029 esac
11030 ;;
11031
11032 sysv4*MP*)
11033 if test -d /usr/nec ;then
11034 version_type=linux
11035 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11036 soname_spec='$libname${shared_ext}.$major'
11037 shlibpath_var=LD_LIBRARY_PATH
11038 fi
11039 ;;
11040
11041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11042 version_type=freebsd-elf
11043 need_lib_prefix=no
11044 need_version=no
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=yes
11049 hardcode_into_libs=yes
11050 if test "$with_gnu_ld" = yes; then
11051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11052 else
11053 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11054 case $host_os in
11055 sco3.2v5*)
11056 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11057 ;;
11058 esac
11059 fi
11060 sys_lib_dlsearch_path_spec='/usr/lib'
11061 ;;
11062
11063 tpf*)
11064 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11065 version_type=linux
11066 need_lib_prefix=no
11067 need_version=no
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=no
11071 hardcode_into_libs=yes
11072 ;;
11073
11074 uts4*)
11075 version_type=linux
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 shlibpath_var=LD_LIBRARY_PATH
11079 ;;
11080
11081 *)
11082 dynamic_linker=no
11083 ;;
11084 esac
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11086 $as_echo "$dynamic_linker" >&6; }
11087 test "$dynamic_linker" = no && can_build_shared=no
11088
11089 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11090 if test "$GCC" = yes; then
11091 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11092 fi
11093
11094 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11095 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11096 fi
11097 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11098 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11099 fi
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11193 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11194 hardcode_action=
11195 if test -n "$hardcode_libdir_flag_spec" ||
11196 test -n "$runpath_var" ||
11197 test "X$hardcode_automatic" = "Xyes" ; then
11198
11199 # We can hardcode non-existent directories.
11200 if test "$hardcode_direct" != no &&
11201 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11202 # have to relink, otherwise we might link with an installed library
11203 # when we should be linking with a yet-to-be-installed one
11204 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11205 test "$hardcode_minus_L" != no; then
11206 # Linking always hardcodes the temporary library directory.
11207 hardcode_action=relink
11208 else
11209 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11210 hardcode_action=immediate
11211 fi
11212 else
11213 # We cannot hardcode anything, or else we can only hardcode existing
11214 # directories.
11215 hardcode_action=unsupported
11216 fi
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11218 $as_echo "$hardcode_action" >&6; }
11219
11220 if test "$hardcode_action" = relink ||
11221 test "$inherit_rpath" = yes; then
11222 # Fast installation is not supported
11223 enable_fast_install=no
11224 elif test "$shlibpath_overrides_runpath" = yes ||
11225 test "$enable_shared" = no; then
11226 # Fast installation is not necessary
11227 enable_fast_install=needless
11228 fi
11229
11230
11231
11232
11233
11234
11235 if test "x$enable_dlopen" != xyes; then
11236 enable_dlopen=unknown
11237 enable_dlopen_self=unknown
11238 enable_dlopen_self_static=unknown
11239 else
11240 lt_cv_dlopen=no
11241 lt_cv_dlopen_libs=
11242
11243 case $host_os in
11244 beos*)
11245 lt_cv_dlopen="load_add_on"
11246 lt_cv_dlopen_libs=
11247 lt_cv_dlopen_self=yes
11248 ;;
11249
11250 mingw* | pw32* | cegcc*)
11251 lt_cv_dlopen="LoadLibrary"
11252 lt_cv_dlopen_libs=
11253 ;;
11254
11255 cygwin*)
11256 lt_cv_dlopen="dlopen"
11257 lt_cv_dlopen_libs=
11258 ;;
11259
11260 darwin*)
11261 # if libdl is installed we need to link against it
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11263 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11264 if ${ac_cv_lib_dl_dlopen+:} false; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 ac_check_lib_save_LIBS=$LIBS
11268 LIBS="-ldl $LIBS"
11269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11271
11272 /* Override any GCC internal prototype to avoid an error.
11273 Use char because int might match the return type of a GCC
11274 builtin and then its argument prototype would still apply. */
11275 #ifdef __cplusplus
11276 extern "C"
11277 #endif
11278 char dlopen ();
11279 int
11280 main ()
11281 {
11282 return dlopen ();
11283 ;
11284 return 0;
11285 }
11286 _ACEOF
11287 if ac_fn_c_try_link "$LINENO"; then :
11288 ac_cv_lib_dl_dlopen=yes
11289 else
11290 ac_cv_lib_dl_dlopen=no
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11294 LIBS=$ac_check_lib_save_LIBS
11295 fi
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11297 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11298 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11300 else
11301
11302 lt_cv_dlopen="dyld"
11303 lt_cv_dlopen_libs=
11304 lt_cv_dlopen_self=yes
11305
11306 fi
11307
11308 ;;
11309
11310 *)
11311 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11312 if test "x$ac_cv_func_shl_load" = xyes; then :
11313 lt_cv_dlopen="shl_load"
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11316 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11317 if ${ac_cv_lib_dld_shl_load+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-ldld $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char shl_load ();
11332 int
11333 main ()
11334 {
11335 return shl_load ();
11336 ;
11337 return 0;
11338 }
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_dld_shl_load=yes
11342 else
11343 ac_cv_lib_dld_shl_load=no
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11348 fi
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11350 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11351 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11352 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11353 else
11354 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11355 if test "x$ac_cv_func_dlopen" = xyes; then :
11356 lt_cv_dlopen="dlopen"
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11359 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11360 if ${ac_cv_lib_dl_dlopen+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-ldl $LIBS"
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11371 #ifdef __cplusplus
11372 extern "C"
11373 #endif
11374 char dlopen ();
11375 int
11376 main ()
11377 {
11378 return dlopen ();
11379 ;
11380 return 0;
11381 }
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 ac_cv_lib_dl_dlopen=yes
11385 else
11386 ac_cv_lib_dl_dlopen=no
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_lib_save_LIBS
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11393 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11394 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11398 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11399 if ${ac_cv_lib_svld_dlopen+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 ac_check_lib_save_LIBS=$LIBS
11403 LIBS="-lsvld $LIBS"
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char dlopen ();
11414 int
11415 main ()
11416 {
11417 return dlopen ();
11418 ;
11419 return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423 ac_cv_lib_svld_dlopen=yes
11424 else
11425 ac_cv_lib_svld_dlopen=no
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11432 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11433 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11437 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11438 if ${ac_cv_lib_dld_dld_link+:} false; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-ldld $LIBS"
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11449 #ifdef __cplusplus
11450 extern "C"
11451 #endif
11452 char dld_link ();
11453 int
11454 main ()
11455 {
11456 return dld_link ();
11457 ;
11458 return 0;
11459 }
11460 _ACEOF
11461 if ac_fn_c_try_link "$LINENO"; then :
11462 ac_cv_lib_dld_dld_link=yes
11463 else
11464 ac_cv_lib_dld_dld_link=no
11465 fi
11466 rm -f core conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
11469 fi
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11471 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11472 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11473 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11474 fi
11475
11476
11477 fi
11478
11479
11480 fi
11481
11482
11483 fi
11484
11485
11486 fi
11487
11488
11489 fi
11490
11491 ;;
11492 esac
11493
11494 if test "x$lt_cv_dlopen" != xno; then
11495 enable_dlopen=yes
11496 else
11497 enable_dlopen=no
11498 fi
11499
11500 case $lt_cv_dlopen in
11501 dlopen)
11502 save_CPPFLAGS="$CPPFLAGS"
11503 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11504
11505 save_LDFLAGS="$LDFLAGS"
11506 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11507
11508 save_LIBS="$LIBS"
11509 LIBS="$lt_cv_dlopen_libs $LIBS"
11510
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11512 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11513 if ${lt_cv_dlopen_self+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 if test "$cross_compiling" = yes; then :
11517 lt_cv_dlopen_self=cross
11518 else
11519 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11520 lt_status=$lt_dlunknown
11521 cat > conftest.$ac_ext <<_LT_EOF
11522 #line 11522 "configure"
11523 #include "confdefs.h"
11524
11525 #if HAVE_DLFCN_H
11526 #include <dlfcn.h>
11527 #endif
11528
11529 #include <stdio.h>
11530
11531 #ifdef RTLD_GLOBAL
11532 # define LT_DLGLOBAL RTLD_GLOBAL
11533 #else
11534 # ifdef DL_GLOBAL
11535 # define LT_DLGLOBAL DL_GLOBAL
11536 # else
11537 # define LT_DLGLOBAL 0
11538 # endif
11539 #endif
11540
11541 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11542 find out it does not work in some platform. */
11543 #ifndef LT_DLLAZY_OR_NOW
11544 # ifdef RTLD_LAZY
11545 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11546 # else
11547 # ifdef DL_LAZY
11548 # define LT_DLLAZY_OR_NOW DL_LAZY
11549 # else
11550 # ifdef RTLD_NOW
11551 # define LT_DLLAZY_OR_NOW RTLD_NOW
11552 # else
11553 # ifdef DL_NOW
11554 # define LT_DLLAZY_OR_NOW DL_NOW
11555 # else
11556 # define LT_DLLAZY_OR_NOW 0
11557 # endif
11558 # endif
11559 # endif
11560 # endif
11561 #endif
11562
11563 /* When -fvisbility=hidden is used, assume the code has been annotated
11564 correspondingly for the symbols needed. */
11565 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11566 void fnord () __attribute__((visibility("default")));
11567 #endif
11568
11569 void fnord () { int i=42; }
11570 int main ()
11571 {
11572 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11573 int status = $lt_dlunknown;
11574
11575 if (self)
11576 {
11577 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11578 else
11579 {
11580 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11581 else puts (dlerror ());
11582 }
11583 /* dlclose (self); */
11584 }
11585 else
11586 puts (dlerror ());
11587
11588 return status;
11589 }
11590 _LT_EOF
11591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11592 (eval $ac_link) 2>&5
11593 ac_status=$?
11594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11596 (./conftest; exit; ) >&5 2>/dev/null
11597 lt_status=$?
11598 case x$lt_status in
11599 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11600 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11601 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11602 esac
11603 else :
11604 # compilation failed
11605 lt_cv_dlopen_self=no
11606 fi
11607 fi
11608 rm -fr conftest*
11609
11610
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11613 $as_echo "$lt_cv_dlopen_self" >&6; }
11614
11615 if test "x$lt_cv_dlopen_self" = xyes; then
11616 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11618 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11619 if ${lt_cv_dlopen_self_static+:} false; then :
11620 $as_echo_n "(cached) " >&6
11621 else
11622 if test "$cross_compiling" = yes; then :
11623 lt_cv_dlopen_self_static=cross
11624 else
11625 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11626 lt_status=$lt_dlunknown
11627 cat > conftest.$ac_ext <<_LT_EOF
11628 #line 11628 "configure"
11629 #include "confdefs.h"
11630
11631 #if HAVE_DLFCN_H
11632 #include <dlfcn.h>
11633 #endif
11634
11635 #include <stdio.h>
11636
11637 #ifdef RTLD_GLOBAL
11638 # define LT_DLGLOBAL RTLD_GLOBAL
11639 #else
11640 # ifdef DL_GLOBAL
11641 # define LT_DLGLOBAL DL_GLOBAL
11642 # else
11643 # define LT_DLGLOBAL 0
11644 # endif
11645 #endif
11646
11647 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11648 find out it does not work in some platform. */
11649 #ifndef LT_DLLAZY_OR_NOW
11650 # ifdef RTLD_LAZY
11651 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11652 # else
11653 # ifdef DL_LAZY
11654 # define LT_DLLAZY_OR_NOW DL_LAZY
11655 # else
11656 # ifdef RTLD_NOW
11657 # define LT_DLLAZY_OR_NOW RTLD_NOW
11658 # else
11659 # ifdef DL_NOW
11660 # define LT_DLLAZY_OR_NOW DL_NOW
11661 # else
11662 # define LT_DLLAZY_OR_NOW 0
11663 # endif
11664 # endif
11665 # endif
11666 # endif
11667 #endif
11668
11669 /* When -fvisbility=hidden is used, assume the code has been annotated
11670 correspondingly for the symbols needed. */
11671 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11672 void fnord () __attribute__((visibility("default")));
11673 #endif
11674
11675 void fnord () { int i=42; }
11676 int main ()
11677 {
11678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11679 int status = $lt_dlunknown;
11680
11681 if (self)
11682 {
11683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11684 else
11685 {
11686 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11687 else puts (dlerror ());
11688 }
11689 /* dlclose (self); */
11690 }
11691 else
11692 puts (dlerror ());
11693
11694 return status;
11695 }
11696 _LT_EOF
11697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11698 (eval $ac_link) 2>&5
11699 ac_status=$?
11700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11701 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11702 (./conftest; exit; ) >&5 2>/dev/null
11703 lt_status=$?
11704 case x$lt_status in
11705 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11706 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11707 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11708 esac
11709 else :
11710 # compilation failed
11711 lt_cv_dlopen_self_static=no
11712 fi
11713 fi
11714 rm -fr conftest*
11715
11716
11717 fi
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11719 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11720 fi
11721
11722 CPPFLAGS="$save_CPPFLAGS"
11723 LDFLAGS="$save_LDFLAGS"
11724 LIBS="$save_LIBS"
11725 ;;
11726 esac
11727
11728 case $lt_cv_dlopen_self in
11729 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11730 *) enable_dlopen_self=unknown ;;
11731 esac
11732
11733 case $lt_cv_dlopen_self_static in
11734 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11735 *) enable_dlopen_self_static=unknown ;;
11736 esac
11737 fi
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755 striplib=
11756 old_striplib=
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11758 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11759 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11760 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11761 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11763 $as_echo "yes" >&6; }
11764 else
11765 # FIXME - insert some real tests, host_os isn't really good enough
11766 case $host_os in
11767 darwin*)
11768 if test -n "$STRIP" ; then
11769 striplib="$STRIP -x"
11770 old_striplib="$STRIP -S"
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11772 $as_echo "yes" >&6; }
11773 else
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11776 fi
11777 ;;
11778 *)
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781 ;;
11782 esac
11783 fi
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796 # Report which library types will actually be built
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11798 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11800 $as_echo "$can_build_shared" >&6; }
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11803 $as_echo_n "checking whether to build shared libraries... " >&6; }
11804 test "$can_build_shared" = "no" && enable_shared=no
11805
11806 # On AIX, shared libraries and static libraries use the same namespace, and
11807 # are all built from PIC.
11808 case $host_os in
11809 aix3*)
11810 test "$enable_shared" = yes && enable_static=no
11811 if test -n "$RANLIB"; then
11812 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11813 postinstall_cmds='$RANLIB $lib'
11814 fi
11815 ;;
11816
11817 aix[4-9]*)
11818 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11819 test "$enable_shared" = yes && enable_static=no
11820 fi
11821 ;;
11822 esac
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11824 $as_echo "$enable_shared" >&6; }
11825
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11827 $as_echo_n "checking whether to build static libraries... " >&6; }
11828 # Make sure either enable_shared or enable_static is yes.
11829 test "$enable_shared" = yes || enable_static=yes
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11831 $as_echo "$enable_static" >&6; }
11832
11833
11834
11835
11836 fi
11837 ac_ext=c
11838 ac_cpp='$CPP $CPPFLAGS'
11839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11842
11843 CC="$lt_save_CC"
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857 ac_config_commands="$ac_config_commands libtool"
11858
11859
11860
11861
11862 # Only expand once:
11863
11864
11865
11866 # The tests for host and target for $enable_largefile require
11867 # canonical names.
11868
11869
11870
11871 # As the $enable_largefile decision depends on --enable-plugins we must set it
11872 # even in directories otherwise not depending on the $plugins option.
11873
11874
11875 maybe_plugins=no
11876 for ac_header in dlfcn.h
11877 do :
11878 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11879 "
11880 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11881 cat >>confdefs.h <<_ACEOF
11882 #define HAVE_DLFCN_H 1
11883 _ACEOF
11884 maybe_plugins=yes
11885 fi
11886
11887 done
11888
11889 for ac_header in windows.h
11890 do :
11891 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11892 "
11893 if test "x$ac_cv_header_windows_h" = xyes; then :
11894 cat >>confdefs.h <<_ACEOF
11895 #define HAVE_WINDOWS_H 1
11896 _ACEOF
11897 maybe_plugins=yes
11898 fi
11899
11900 done
11901
11902
11903 # Check whether --enable-plugins was given.
11904 if test "${enable_plugins+set}" = set; then :
11905 enableval=$enable_plugins; case "${enableval}" in
11906 no) plugins=no ;;
11907 *) plugins=yes
11908 if test "$maybe_plugins" != "yes" ; then
11909 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11910 fi ;;
11911 esac
11912 else
11913 plugins=$maybe_plugins
11914
11915 fi
11916
11917 if test "$plugins" = "yes"; then
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11919 $as_echo_n "checking for library containing dlsym... " >&6; }
11920 if ${ac_cv_search_dlsym+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 ac_func_search_save_LIBS=$LIBS
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 char dlsym ();
11934 int
11935 main ()
11936 {
11937 return dlsym ();
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 for ac_lib in '' dl; do
11943 if test -z "$ac_lib"; then
11944 ac_res="none required"
11945 else
11946 ac_res=-l$ac_lib
11947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11948 fi
11949 if ac_fn_c_try_link "$LINENO"; then :
11950 ac_cv_search_dlsym=$ac_res
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext
11954 if ${ac_cv_search_dlsym+:} false; then :
11955 break
11956 fi
11957 done
11958 if ${ac_cv_search_dlsym+:} false; then :
11959
11960 else
11961 ac_cv_search_dlsym=no
11962 fi
11963 rm conftest.$ac_ext
11964 LIBS=$ac_func_search_save_LIBS
11965 fi
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11967 $as_echo "$ac_cv_search_dlsym" >&6; }
11968 ac_res=$ac_cv_search_dlsym
11969 if test "$ac_res" != no; then :
11970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11971
11972 fi
11973
11974 fi
11975
11976
11977 case "${host}" in
11978 sparc-*-solaris*|i[3-7]86-*-solaris*)
11979 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11980 # are mutually exclusive; and without procfs support, the bfd/ elf module
11981 # cannot provide certain routines such as elfcore_write_prpsinfo
11982 # or elfcore_write_prstatus. So unless the user explicitly requested
11983 # large-file support through the --enable-largefile switch, disable
11984 # large-file support in favor of procfs support.
11985 test "${target}" = "${host}" -a "x$plugins" = xno \
11986 && : ${enable_largefile="no"}
11987 ;;
11988 esac
11989
11990 # Check whether --enable-largefile was given.
11991 if test "${enable_largefile+set}" = set; then :
11992 enableval=$enable_largefile;
11993 fi
11994
11995 if test "$enable_largefile" != no; then
11996
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11998 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11999 if ${ac_cv_sys_largefile_CC+:} false; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 ac_cv_sys_largefile_CC=no
12003 if test "$GCC" != yes; then
12004 ac_save_CC=$CC
12005 while :; do
12006 # IRIX 6.2 and later do not support large files by default,
12007 # so use the C compiler's -n32 option if that helps.
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 #include <sys/types.h>
12011 /* Check that off_t can represent 2**63 - 1 correctly.
12012 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12013 since some C++ compilers masquerading as C compilers
12014 incorrectly reject 9223372036854775807. */
12015 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12017 && LARGE_OFF_T % 2147483647 == 1)
12018 ? 1 : -1];
12019 int
12020 main ()
12021 {
12022
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_compile "$LINENO"; then :
12028 break
12029 fi
12030 rm -f core conftest.err conftest.$ac_objext
12031 CC="$CC -n32"
12032 if ac_fn_c_try_compile "$LINENO"; then :
12033 ac_cv_sys_largefile_CC=' -n32'; break
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext
12036 break
12037 done
12038 CC=$ac_save_CC
12039 rm -f conftest.$ac_ext
12040 fi
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12043 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12044 if test "$ac_cv_sys_largefile_CC" != no; then
12045 CC=$CC$ac_cv_sys_largefile_CC
12046 fi
12047
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12049 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12050 if ${ac_cv_sys_file_offset_bits+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 while :; do
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12056 #include <sys/types.h>
12057 /* Check that off_t can represent 2**63 - 1 correctly.
12058 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12059 since some C++ compilers masquerading as C compilers
12060 incorrectly reject 9223372036854775807. */
12061 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12062 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12063 && LARGE_OFF_T % 2147483647 == 1)
12064 ? 1 : -1];
12065 int
12066 main ()
12067 {
12068
12069 ;
12070 return 0;
12071 }
12072 _ACEOF
12073 if ac_fn_c_try_compile "$LINENO"; then :
12074 ac_cv_sys_file_offset_bits=no; break
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 #define _FILE_OFFSET_BITS 64
12080 #include <sys/types.h>
12081 /* Check that off_t can represent 2**63 - 1 correctly.
12082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12083 since some C++ compilers masquerading as C compilers
12084 incorrectly reject 9223372036854775807. */
12085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12087 && LARGE_OFF_T % 2147483647 == 1)
12088 ? 1 : -1];
12089 int
12090 main ()
12091 {
12092
12093 ;
12094 return 0;
12095 }
12096 _ACEOF
12097 if ac_fn_c_try_compile "$LINENO"; then :
12098 ac_cv_sys_file_offset_bits=64; break
12099 fi
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 ac_cv_sys_file_offset_bits=unknown
12102 break
12103 done
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12106 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12107 case $ac_cv_sys_file_offset_bits in #(
12108 no | unknown) ;;
12109 *)
12110 cat >>confdefs.h <<_ACEOF
12111 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12112 _ACEOF
12113 ;;
12114 esac
12115 rm -rf conftest*
12116 if test $ac_cv_sys_file_offset_bits = unknown; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12118 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12119 if ${ac_cv_sys_large_files+:} false; then :
12120 $as_echo_n "(cached) " >&6
12121 else
12122 while :; do
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #include <sys/types.h>
12126 /* Check that off_t can represent 2**63 - 1 correctly.
12127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12128 since some C++ compilers masquerading as C compilers
12129 incorrectly reject 9223372036854775807. */
12130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12132 && LARGE_OFF_T % 2147483647 == 1)
12133 ? 1 : -1];
12134 int
12135 main ()
12136 {
12137
12138 ;
12139 return 0;
12140 }
12141 _ACEOF
12142 if ac_fn_c_try_compile "$LINENO"; then :
12143 ac_cv_sys_large_files=no; break
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 #define _LARGE_FILES 1
12149 #include <sys/types.h>
12150 /* Check that off_t can represent 2**63 - 1 correctly.
12151 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12152 since some C++ compilers masquerading as C compilers
12153 incorrectly reject 9223372036854775807. */
12154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12156 && LARGE_OFF_T % 2147483647 == 1)
12157 ? 1 : -1];
12158 int
12159 main ()
12160 {
12161
12162 ;
12163 return 0;
12164 }
12165 _ACEOF
12166 if ac_fn_c_try_compile "$LINENO"; then :
12167 ac_cv_sys_large_files=1; break
12168 fi
12169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170 ac_cv_sys_large_files=unknown
12171 break
12172 done
12173 fi
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12175 $as_echo "$ac_cv_sys_large_files" >&6; }
12176 case $ac_cv_sys_large_files in #(
12177 no | unknown) ;;
12178 *)
12179 cat >>confdefs.h <<_ACEOF
12180 #define _LARGE_FILES $ac_cv_sys_large_files
12181 _ACEOF
12182 ;;
12183 esac
12184 rm -rf conftest*
12185 fi
12186
12187
12188 fi
12189
12190
12191
12192 # Check whether --enable-targets was given.
12193 if test "${enable_targets+set}" = set; then :
12194 enableval=$enable_targets; case "${enableval}" in
12195 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
12196 ;;
12197 no) enable_targets= ;;
12198 *) enable_targets=$enableval ;;
12199 esac
12200 fi
12201
12202 # Check whether --enable-deterministic-archives was given.
12203 if test "${enable_deterministic_archives+set}" = set; then :
12204 enableval=$enable_deterministic_archives;
12205 if test "${enableval}" = no; then
12206 default_ar_deterministic=0
12207 else
12208 default_ar_deterministic=1
12209 fi
12210 else
12211 default_ar_deterministic=0
12212 fi
12213
12214
12215
12216 cat >>confdefs.h <<_ACEOF
12217 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
12218 _ACEOF
12219
12220
12221 # Check whether --enable-default-strings-all was given.
12222 if test "${enable_default_strings_all+set}" = set; then :
12223 enableval=$enable_default_strings_all;
12224 if test "${enableval}" = no; then
12225 default_strings_all=0
12226 else
12227 default_strings_all=1
12228 fi
12229 else
12230 default_strings_all=1
12231 fi
12232
12233
12234
12235 cat >>confdefs.h <<_ACEOF
12236 #define DEFAULT_STRINGS_ALL $default_strings_all
12237 _ACEOF
12238
12239
12240
12241 # Set the 'development' global.
12242 . $srcdir/../bfd/development.sh
12243
12244 # Set acp_cpp_for_build variable
12245 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12246
12247 # Default set of GCC warnings to enable.
12248 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12249 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12250
12251 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12254 __GNUC__
12255 _ACEOF
12256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12257 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12258
12259 else
12260 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12261 fi
12262 rm -f conftest*
12263
12264
12265 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h. */
12268 __GNUC__
12269 _ACEOF
12270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12271 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12272
12273 else
12274 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12275 fi
12276 rm -f conftest*
12277
12278
12279 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12280 WARN_WRITE_STRINGS=""
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12283 __GNUC__
12284 _ACEOF
12285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12287
12288 else
12289 WARN_WRITE_STRINGS="-Wwrite-strings"
12290 fi
12291 rm -f conftest*
12292
12293
12294 # Verify CC_FOR_BUILD to be compatible with warning flags
12295
12296 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12299 __GNUC__
12300 _ACEOF
12301 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12302 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12303
12304 else
12305 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12306 fi
12307 rm -f conftest*
12308
12309
12310 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313 __GNUC__
12314 _ACEOF
12315 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12316 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12317
12318 else
12319 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12320 fi
12321 rm -f conftest*
12322
12323
12324 # Check whether --enable-werror was given.
12325 if test "${enable_werror+set}" = set; then :
12326 enableval=$enable_werror; case "${enableval}" in
12327 yes | y) ERROR_ON_WARNING="yes" ;;
12328 no | n) ERROR_ON_WARNING="no" ;;
12329 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12330 esac
12331 fi
12332
12333
12334 # Disable -Wformat by default when using gcc on mingw
12335 case "${host}" in
12336 *-*-mingw32*)
12337 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12338 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12339 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12340 fi
12341 ;;
12342 *) ;;
12343 esac
12344
12345 # Enable -Werror by default when using gcc. Turn it off for releases.
12346 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12347 ERROR_ON_WARNING=yes
12348 fi
12349
12350 NO_WERROR=
12351 if test "${ERROR_ON_WARNING}" = yes ; then
12352 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12353 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12354 NO_WERROR="-Wno-error"
12355 fi
12356
12357 if test "${GCC}" = yes ; then
12358 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12359 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12360 fi
12361
12362 # Check whether --enable-build-warnings was given.
12363 if test "${enable_build_warnings+set}" = set; then :
12364 enableval=$enable_build_warnings; case "${enableval}" in
12365 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12366 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12367 no) if test "${GCC}" = yes ; then
12368 WARN_CFLAGS="-w"
12369 WARN_CFLAGS_FOR_BUILD="-w"
12370 fi;;
12371 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12372 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12373 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12374 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12375 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12376 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12377 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12378 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12379 esac
12380 fi
12381
12382
12383 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12384 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12385 fi
12386
12387
12388
12389
12390
12391
12392
12393 ac_config_headers="$ac_config_headers config.h:config.in"
12394
12395
12396
12397
12398 if test -z "$target" ; then
12399 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12400 fi
12401 if test -z "$host" ; then
12402 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
12403 fi
12404
12405 for ac_prog in 'bison -y' byacc
12406 do
12407 # Extract the first word of "$ac_prog", so it can be a program name with args.
12408 set dummy $ac_prog; ac_word=$2
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410 $as_echo_n "checking for $ac_word... " >&6; }
12411 if ${ac_cv_prog_YACC+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 if test -n "$YACC"; then
12415 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12416 else
12417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418 for as_dir in $PATH
12419 do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12424 ac_cv_prog_YACC="$ac_prog"
12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12426 break 2
12427 fi
12428 done
12429 done
12430 IFS=$as_save_IFS
12431
12432 fi
12433 fi
12434 YACC=$ac_cv_prog_YACC
12435 if test -n "$YACC"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12437 $as_echo "$YACC" >&6; }
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12441 fi
12442
12443
12444 test -n "$YACC" && break
12445 done
12446 test -n "$YACC" || YACC="yacc"
12447
12448 for ac_prog in flex lex
12449 do
12450 # Extract the first word of "$ac_prog", so it can be a program name with args.
12451 set dummy $ac_prog; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if ${ac_cv_prog_LEX+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 if test -n "$LEX"; then
12458 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_prog_LEX="$ac_prog"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12470 fi
12471 done
12472 done
12473 IFS=$as_save_IFS
12474
12475 fi
12476 fi
12477 LEX=$ac_cv_prog_LEX
12478 if test -n "$LEX"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12480 $as_echo "$LEX" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485
12486
12487 test -n "$LEX" && break
12488 done
12489 test -n "$LEX" || LEX=":"
12490
12491 case "$LEX" in
12492 :|*"missing "*) ;;
12493 *) cat >conftest.l <<_ACEOF
12494 %%
12495 a { ECHO; }
12496 b { REJECT; }
12497 c { yymore (); }
12498 d { yyless (1); }
12499 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12500 yyless ((input () != 0)); }
12501 f { unput (yytext[0]); }
12502 . { BEGIN INITIAL; }
12503 %%
12504 #ifdef YYTEXT_POINTER
12505 extern char *yytext;
12506 #endif
12507 int
12508 main (void)
12509 {
12510 return ! yylex () + ! yywrap ();
12511 }
12512 _ACEOF
12513 { { ac_try="$LEX conftest.l"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12519 $as_echo "$ac_try_echo"; } >&5
12520 (eval "$LEX conftest.l") 2>&5
12521 ac_status=$?
12522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12523 test $ac_status = 0; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12525 $as_echo_n "checking lex output file root... " >&6; }
12526 if ${ac_cv_prog_lex_root+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529
12530 if test -f lex.yy.c; then
12531 ac_cv_prog_lex_root=lex.yy
12532 elif test -f lexyy.c; then
12533 ac_cv_prog_lex_root=lexyy
12534 else
12535 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12536 fi
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12539 $as_echo "$ac_cv_prog_lex_root" >&6; }
12540 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12541
12542 if test -z "${LEXLIB+set}"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12544 $as_echo_n "checking lex library... " >&6; }
12545 if ${ac_cv_lib_lex+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548
12549 ac_save_LIBS=$LIBS
12550 ac_cv_lib_lex='none needed'
12551 for ac_lib in '' -lfl -ll; do
12552 LIBS="$ac_lib $ac_save_LIBS"
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12555 `cat $LEX_OUTPUT_ROOT.c`
12556 _ACEOF
12557 if ac_fn_c_try_link "$LINENO"; then :
12558 ac_cv_lib_lex=$ac_lib
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 test "$ac_cv_lib_lex" != 'none needed' && break
12563 done
12564 LIBS=$ac_save_LIBS
12565
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12568 $as_echo "$ac_cv_lib_lex" >&6; }
12569 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12570 fi
12571
12572
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12574 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12575 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 # POSIX says lex can declare yytext either as a pointer or an array; the
12579 # default is implementation-dependent. Figure out which it is, since
12580 # not all implementations provide the %pointer and %array declarations.
12581 ac_cv_prog_lex_yytext_pointer=no
12582 ac_save_LIBS=$LIBS
12583 LIBS="$LEXLIB $ac_save_LIBS"
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586
12587 #define YYTEXT_POINTER 1
12588 `cat $LEX_OUTPUT_ROOT.c`
12589 _ACEOF
12590 if ac_fn_c_try_link "$LINENO"; then :
12591 ac_cv_prog_lex_yytext_pointer=yes
12592 fi
12593 rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 LIBS=$ac_save_LIBS
12596
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12599 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12600 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12601
12602 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12603
12604 fi
12605 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12606 ;;
12607 esac
12608 if test "$LEX" = :; then
12609 LEX=${am_missing_run}flex
12610 fi
12611
12612 ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW"
12613 # If we haven't got the data from the intl directory,
12614 # assume NLS is disabled.
12615 USE_NLS=no
12616 LIBINTL=
12617 LIBINTL_DEP=
12618 INCINTL=
12619 XGETTEXT=
12620 GMSGFMT=
12621 POSUB=
12622
12623 if test -f ../intl/config.intl; then
12624 . ../intl/config.intl
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12627 $as_echo_n "checking whether NLS is requested... " >&6; }
12628 if test x"$USE_NLS" != xyes; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12631 else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12634
12635 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12636
12637
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12639 $as_echo_n "checking for catalogs to be installed... " >&6; }
12640 # Look for .po and .gmo files in the source directory.
12641 CATALOGS=
12642 XLINGUAS=
12643 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12644 # If there aren't any .gmo files the shell will give us the
12645 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12646 # weeded out.
12647 case "$cat" in *\**)
12648 continue;;
12649 esac
12650 # The quadruple backslash is collapsed to a double backslash
12651 # by the backticks, then collapsed again by the double quotes,
12652 # leaving us with one backslash in the sed expression (right
12653 # before the dot that mustn't act as a wildcard).
12654 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12655 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12656 # The user is allowed to set LINGUAS to a list of languages to
12657 # install catalogs for. If it's empty that means "all of them."
12658 if test "x$LINGUAS" = x; then
12659 CATALOGS="$CATALOGS $cat"
12660 XLINGUAS="$XLINGUAS $lang"
12661 else
12662 case "$LINGUAS" in *$lang*)
12663 CATALOGS="$CATALOGS $cat"
12664 XLINGUAS="$XLINGUAS $lang"
12665 ;;
12666 esac
12667 fi
12668 done
12669 LINGUAS="$XLINGUAS"
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12671 $as_echo "$LINGUAS" >&6; }
12672
12673
12674 DATADIRNAME=share
12675
12676 INSTOBJEXT=.mo
12677
12678 GENCAT=gencat
12679
12680 CATOBJEXT=.gmo
12681
12682 fi
12683
12684 MKINSTALLDIRS=
12685 if test -n "$ac_aux_dir"; then
12686 case "$ac_aux_dir" in
12687 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12688 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12689 esac
12690 fi
12691 if test -z "$MKINSTALLDIRS"; then
12692 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12693 fi
12694
12695
12696
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12698 $as_echo_n "checking whether NLS is requested... " >&6; }
12699 # Check whether --enable-nls was given.
12700 if test "${enable_nls+set}" = set; then :
12701 enableval=$enable_nls; USE_NLS=$enableval
12702 else
12703 USE_NLS=yes
12704 fi
12705
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12707 $as_echo "$USE_NLS" >&6; }
12708
12709
12710
12711
12712
12713
12714 # Prepare PATH_SEPARATOR.
12715 # The user is always right.
12716 if test "${PATH_SEPARATOR+set}" != set; then
12717 echo "#! /bin/sh" >conf$$.sh
12718 echo "exit 0" >>conf$$.sh
12719 chmod +x conf$$.sh
12720 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12721 PATH_SEPARATOR=';'
12722 else
12723 PATH_SEPARATOR=:
12724 fi
12725 rm -f conf$$.sh
12726 fi
12727
12728 # Find out how to test for executable files. Don't use a zero-byte file,
12729 # as systems may use methods other than mode bits to determine executability.
12730 cat >conf$$.file <<_ASEOF
12731 #! /bin/sh
12732 exit 0
12733 _ASEOF
12734 chmod +x conf$$.file
12735 if test -x conf$$.file >/dev/null 2>&1; then
12736 ac_executable_p="test -x"
12737 else
12738 ac_executable_p="test -f"
12739 fi
12740 rm -f conf$$.file
12741
12742 # Extract the first word of "msgfmt", so it can be a program name with args.
12743 set dummy msgfmt; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_path_MSGFMT+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 case "$MSGFMT" in
12750 [\\/]* | ?:[\\/]*)
12751 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12752 ;;
12753 *)
12754 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12755 for ac_dir in $PATH; do
12756 IFS="$ac_save_IFS"
12757 test -z "$ac_dir" && ac_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12760 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12761 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12762 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12763 break 2
12764 fi
12765 fi
12766 done
12767 done
12768 IFS="$ac_save_IFS"
12769 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12770 ;;
12771 esac
12772 fi
12773 MSGFMT="$ac_cv_path_MSGFMT"
12774 if test "$MSGFMT" != ":"; then
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12776 $as_echo "$MSGFMT" >&6; }
12777 else
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12780 fi
12781
12782 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12783 set dummy gmsgfmt; ac_word=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if ${ac_cv_path_GMSGFMT+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 case $GMSGFMT in
12790 [\\/]* | ?:[\\/]*)
12791 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12792 ;;
12793 *)
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12796 do
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 break 2
12804 fi
12805 done
12806 done
12807 IFS=$as_save_IFS
12808
12809 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12810 ;;
12811 esac
12812 fi
12813 GMSGFMT=$ac_cv_path_GMSGFMT
12814 if test -n "$GMSGFMT"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12816 $as_echo "$GMSGFMT" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12820 fi
12821
12822
12823
12824
12825 # Prepare PATH_SEPARATOR.
12826 # The user is always right.
12827 if test "${PATH_SEPARATOR+set}" != set; then
12828 echo "#! /bin/sh" >conf$$.sh
12829 echo "exit 0" >>conf$$.sh
12830 chmod +x conf$$.sh
12831 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12832 PATH_SEPARATOR=';'
12833 else
12834 PATH_SEPARATOR=:
12835 fi
12836 rm -f conf$$.sh
12837 fi
12838
12839 # Find out how to test for executable files. Don't use a zero-byte file,
12840 # as systems may use methods other than mode bits to determine executability.
12841 cat >conf$$.file <<_ASEOF
12842 #! /bin/sh
12843 exit 0
12844 _ASEOF
12845 chmod +x conf$$.file
12846 if test -x conf$$.file >/dev/null 2>&1; then
12847 ac_executable_p="test -x"
12848 else
12849 ac_executable_p="test -f"
12850 fi
12851 rm -f conf$$.file
12852
12853 # Extract the first word of "xgettext", so it can be a program name with args.
12854 set dummy xgettext; ac_word=$2
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12856 $as_echo_n "checking for $ac_word... " >&6; }
12857 if ${ac_cv_path_XGETTEXT+:} false; then :
12858 $as_echo_n "(cached) " >&6
12859 else
12860 case "$XGETTEXT" in
12861 [\\/]* | ?:[\\/]*)
12862 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12863 ;;
12864 *)
12865 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12866 for ac_dir in $PATH; do
12867 IFS="$ac_save_IFS"
12868 test -z "$ac_dir" && ac_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12871 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12872 (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
12873 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12874 break 2
12875 fi
12876 fi
12877 done
12878 done
12879 IFS="$ac_save_IFS"
12880 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12881 ;;
12882 esac
12883 fi
12884 XGETTEXT="$ac_cv_path_XGETTEXT"
12885 if test "$XGETTEXT" != ":"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12887 $as_echo "$XGETTEXT" >&6; }
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 fi
12892
12893 rm -f messages.po
12894
12895
12896 # Prepare PATH_SEPARATOR.
12897 # The user is always right.
12898 if test "${PATH_SEPARATOR+set}" != set; then
12899 echo "#! /bin/sh" >conf$$.sh
12900 echo "exit 0" >>conf$$.sh
12901 chmod +x conf$$.sh
12902 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12903 PATH_SEPARATOR=';'
12904 else
12905 PATH_SEPARATOR=:
12906 fi
12907 rm -f conf$$.sh
12908 fi
12909
12910 # Find out how to test for executable files. Don't use a zero-byte file,
12911 # as systems may use methods other than mode bits to determine executability.
12912 cat >conf$$.file <<_ASEOF
12913 #! /bin/sh
12914 exit 0
12915 _ASEOF
12916 chmod +x conf$$.file
12917 if test -x conf$$.file >/dev/null 2>&1; then
12918 ac_executable_p="test -x"
12919 else
12920 ac_executable_p="test -f"
12921 fi
12922 rm -f conf$$.file
12923
12924 # Extract the first word of "msgmerge", so it can be a program name with args.
12925 set dummy msgmerge; ac_word=$2
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12927 $as_echo_n "checking for $ac_word... " >&6; }
12928 if ${ac_cv_path_MSGMERGE+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 case "$MSGMERGE" in
12932 [\\/]* | ?:[\\/]*)
12933 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12934 ;;
12935 *)
12936 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12937 for ac_dir in $PATH; do
12938 IFS="$ac_save_IFS"
12939 test -z "$ac_dir" && ac_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12942 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12943 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12944 break 2
12945 fi
12946 fi
12947 done
12948 done
12949 IFS="$ac_save_IFS"
12950 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12951 ;;
12952 esac
12953 fi
12954 MSGMERGE="$ac_cv_path_MSGMERGE"
12955 if test "$MSGMERGE" != ":"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12957 $as_echo "$MSGMERGE" >&6; }
12958 else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12961 fi
12962
12963
12964 if test "$GMSGFMT" != ":"; then
12965 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12966 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12967 : ;
12968 else
12969 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12971 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12972 GMSGFMT=":"
12973 fi
12974 fi
12975
12976 if test "$XGETTEXT" != ":"; then
12977 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12978 (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
12979 : ;
12980 else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12982 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12983 XGETTEXT=":"
12984 fi
12985 rm -f messages.po
12986 fi
12987
12988 ac_config_commands="$ac_config_commands default-1"
12989
12990
12991
12992
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12994 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12995 # Check whether --enable-maintainer-mode was given.
12996 if test "${enable_maintainer_mode+set}" = set; then :
12997 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12998 else
12999 USE_MAINTAINER_MODE=no
13000 fi
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13003 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13004 if test $USE_MAINTAINER_MODE = yes; then
13005 MAINTAINER_MODE_TRUE=
13006 MAINTAINER_MODE_FALSE='#'
13007 else
13008 MAINTAINER_MODE_TRUE='#'
13009 MAINTAINER_MODE_FALSE=
13010 fi
13011
13012 MAINT=$MAINTAINER_MODE_TRUE
13013
13014
13015 if false; then
13016 GENINSRC_NEVER_TRUE=
13017 GENINSRC_NEVER_FALSE='#'
13018 else
13019 GENINSRC_NEVER_TRUE='#'
13020 GENINSRC_NEVER_FALSE=
13021 fi
13022
13023
13024 if test -n "$EXEEXT"; then
13025
13026 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
13027
13028 fi
13029
13030 cat >>confdefs.h <<_ACEOF
13031 #define EXECUTABLE_SUFFIX "${EXEEXT}"
13032 _ACEOF
13033
13034
13035 # host-specific stuff:
13036
13037 HDEFINES=
13038
13039 . ${srcdir}/../bfd/configure.host
13040
13041
13042 AR=${AR-ar}
13043
13044 if test -n "$ac_tool_prefix"; then
13045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13048 $as_echo_n "checking for $ac_word... " >&6; }
13049 if ${ac_cv_prog_RANLIB+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 if test -n "$RANLIB"; then
13053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13054 else
13055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056 for as_dir in $PATH
13057 do
13058 IFS=$as_save_IFS
13059 test -z "$as_dir" && as_dir=.
13060 for ac_exec_ext in '' $ac_executable_extensions; do
13061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13064 break 2
13065 fi
13066 done
13067 done
13068 IFS=$as_save_IFS
13069
13070 fi
13071 fi
13072 RANLIB=$ac_cv_prog_RANLIB
13073 if test -n "$RANLIB"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13075 $as_echo "$RANLIB" >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13079 fi
13080
13081
13082 fi
13083 if test -z "$ac_cv_prog_RANLIB"; then
13084 ac_ct_RANLIB=$RANLIB
13085 # Extract the first word of "ranlib", so it can be a program name with args.
13086 set dummy ranlib; ac_word=$2
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13088 $as_echo_n "checking for $ac_word... " >&6; }
13089 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 if test -n "$ac_ct_RANLIB"; then
13093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13094 else
13095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13096 for as_dir in $PATH
13097 do
13098 IFS=$as_save_IFS
13099 test -z "$as_dir" && as_dir=.
13100 for ac_exec_ext in '' $ac_executable_extensions; do
13101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13102 ac_cv_prog_ac_ct_RANLIB="ranlib"
13103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 break 2
13105 fi
13106 done
13107 done
13108 IFS=$as_save_IFS
13109
13110 fi
13111 fi
13112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13113 if test -n "$ac_ct_RANLIB"; then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13115 $as_echo "$ac_ct_RANLIB" >&6; }
13116 else
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118 $as_echo "no" >&6; }
13119 fi
13120
13121 if test "x$ac_ct_RANLIB" = x; then
13122 RANLIB=":"
13123 else
13124 case $cross_compiling:$ac_tool_warned in
13125 yes:)
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13128 ac_tool_warned=yes ;;
13129 esac
13130 RANLIB=$ac_ct_RANLIB
13131 fi
13132 else
13133 RANLIB="$ac_cv_prog_RANLIB"
13134 fi
13135
13136
13137
13138 # Put a plausible default for CC_FOR_BUILD in Makefile.
13139 if test -z "$CC_FOR_BUILD"; then
13140 if test "x$cross_compiling" = "xno"; then
13141 CC_FOR_BUILD='$(CC)'
13142 else
13143 CC_FOR_BUILD=gcc
13144 fi
13145 fi
13146
13147 # Also set EXEEXT_FOR_BUILD.
13148 if test "x$cross_compiling" = "xno"; then
13149 EXEEXT_FOR_BUILD='$(EXEEXT)'
13150 else
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13152 $as_echo_n "checking for build system executable suffix... " >&6; }
13153 if ${bfd_cv_build_exeext+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 rm -f conftest*
13157 echo 'int main () { return 0; }' > conftest.c
13158 bfd_cv_build_exeext=
13159 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13160 for file in conftest.*; do
13161 case $file in
13162 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13163 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13164 esac
13165 done
13166 rm -f conftest*
13167 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13168 fi
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13170 $as_echo "$bfd_cv_build_exeext" >&6; }
13171 EXEEXT_FOR_BUILD=""
13172 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13173 fi
13174
13175
13176 DEMANGLER_NAME=c++filt
13177 case "${host}" in
13178 *-*-go32* | *-*-msdos*)
13179 DEMANGLER_NAME=cxxfilt
13180 esac
13181
13182
13183 # The cast to long int works around a bug in the HP C Compiler
13184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13186 # This bug is HP SR number 8606223364.
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13188 $as_echo_n "checking size of long... " >&6; }
13189 if ${ac_cv_sizeof_long+:} false; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13193
13194 else
13195 if test "$ac_cv_type_long" = yes; then
13196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13198 as_fn_error 77 "cannot compute sizeof (long)
13199 See \`config.log' for more details" "$LINENO" 5; }
13200 else
13201 ac_cv_sizeof_long=0
13202 fi
13203 fi
13204
13205 fi
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13207 $as_echo "$ac_cv_sizeof_long" >&6; }
13208
13209
13210
13211 cat >>confdefs.h <<_ACEOF
13212 #define SIZEOF_LONG $ac_cv_sizeof_long
13213 _ACEOF
13214
13215
13216 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13217 if test "x$ac_cv_type_long_long" = xyes; then :
13218
13219 cat >>confdefs.h <<_ACEOF
13220 #define HAVE_LONG_LONG 1
13221 _ACEOF
13222
13223 # The cast to long int works around a bug in the HP C Compiler
13224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13226 # This bug is HP SR number 8606223364.
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13228 $as_echo_n "checking size of long long... " >&6; }
13229 if ${ac_cv_sizeof_long_long+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13233
13234 else
13235 if test "$ac_cv_type_long_long" = yes; then
13236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13238 as_fn_error 77 "cannot compute sizeof (long long)
13239 See \`config.log' for more details" "$LINENO" 5; }
13240 else
13241 ac_cv_sizeof_long_long=0
13242 fi
13243 fi
13244
13245 fi
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13247 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13248
13249
13250
13251 cat >>confdefs.h <<_ACEOF
13252 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13253 _ACEOF
13254
13255
13256 fi
13257
13258
13259 for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h
13260 do :
13261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13262 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13264 cat >>confdefs.h <<_ACEOF
13265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13266 _ACEOF
13267
13268 fi
13269
13270 done
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13273 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13274 if ${ac_cv_header_sys_wait_h+:} false; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279 #include <sys/types.h>
13280 #include <sys/wait.h>
13281 #ifndef WEXITSTATUS
13282 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13283 #endif
13284 #ifndef WIFEXITED
13285 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13286 #endif
13287
13288 int
13289 main ()
13290 {
13291 int s;
13292 wait (&s);
13293 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13294 ;
13295 return 0;
13296 }
13297 _ACEOF
13298 if ac_fn_c_try_compile "$LINENO"; then :
13299 ac_cv_header_sys_wait_h=yes
13300 else
13301 ac_cv_header_sys_wait_h=no
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13306 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13307 if test $ac_cv_header_sys_wait_h = yes; then
13308
13309 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13310
13311 fi
13312
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13314 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13315 if ${gcc_cv_header_string+:} false; then :
13316 $as_echo_n "(cached) " >&6
13317 else
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #include <string.h>
13321 #include <strings.h>
13322 int
13323 main ()
13324 {
13325
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_compile "$LINENO"; then :
13331 gcc_cv_header_string=yes
13332 else
13333 gcc_cv_header_string=no
13334 fi
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13336 fi
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13338 $as_echo "$gcc_cv_header_string" >&6; }
13339 if test $gcc_cv_header_string = yes; then
13340
13341 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13342
13343 fi
13344
13345 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13346 if test "x$ac_cv_type_size_t" = xyes; then :
13347
13348 else
13349
13350 cat >>confdefs.h <<_ACEOF
13351 #define size_t unsigned int
13352 _ACEOF
13353
13354 fi
13355
13356 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13357 # for constant arguments. Useless!
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13359 $as_echo_n "checking for working alloca.h... " >&6; }
13360 if ${ac_cv_working_alloca_h+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365 #include <alloca.h>
13366 int
13367 main ()
13368 {
13369 char *p = (char *) alloca (2 * sizeof (int));
13370 if (p) return 0;
13371 ;
13372 return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"; then :
13376 ac_cv_working_alloca_h=yes
13377 else
13378 ac_cv_working_alloca_h=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382 fi
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13384 $as_echo "$ac_cv_working_alloca_h" >&6; }
13385 if test $ac_cv_working_alloca_h = yes; then
13386
13387 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13388
13389 fi
13390
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13392 $as_echo_n "checking for alloca... " >&6; }
13393 if ${ac_cv_func_alloca_works+:} false; then :
13394 $as_echo_n "(cached) " >&6
13395 else
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13398 #ifdef __GNUC__
13399 # define alloca __builtin_alloca
13400 #else
13401 # ifdef _MSC_VER
13402 # include <malloc.h>
13403 # define alloca _alloca
13404 # else
13405 # ifdef HAVE_ALLOCA_H
13406 # include <alloca.h>
13407 # else
13408 # ifdef _AIX
13409 #pragma alloca
13410 # else
13411 # ifndef alloca /* predefined by HP cc +Olibcalls */
13412 void *alloca (size_t);
13413 # endif
13414 # endif
13415 # endif
13416 # endif
13417 #endif
13418
13419 int
13420 main ()
13421 {
13422 char *p = (char *) alloca (1);
13423 if (p) return 0;
13424 ;
13425 return 0;
13426 }
13427 _ACEOF
13428 if ac_fn_c_try_link "$LINENO"; then :
13429 ac_cv_func_alloca_works=yes
13430 else
13431 ac_cv_func_alloca_works=no
13432 fi
13433 rm -f core conftest.err conftest.$ac_objext \
13434 conftest$ac_exeext conftest.$ac_ext
13435 fi
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13437 $as_echo "$ac_cv_func_alloca_works" >&6; }
13438
13439 if test $ac_cv_func_alloca_works = yes; then
13440
13441 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13442
13443 else
13444 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13445 # that cause trouble. Some versions do not even contain alloca or
13446 # contain a buggy version. If you still want to use their alloca,
13447 # use ar to extract alloca.o from them instead of compiling alloca.c.
13448
13449 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13450
13451 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13452
13453
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13455 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13456 if ${ac_cv_os_cray+:} false; then :
13457 $as_echo_n "(cached) " >&6
13458 else
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 #if defined CRAY && ! defined CRAY2
13462 webecray
13463 #else
13464 wenotbecray
13465 #endif
13466
13467 _ACEOF
13468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13469 $EGREP "webecray" >/dev/null 2>&1; then :
13470 ac_cv_os_cray=yes
13471 else
13472 ac_cv_os_cray=no
13473 fi
13474 rm -f conftest*
13475
13476 fi
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13478 $as_echo "$ac_cv_os_cray" >&6; }
13479 if test $ac_cv_os_cray = yes; then
13480 for ac_func in _getb67 GETB67 getb67; do
13481 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13482 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13483 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13484
13485 cat >>confdefs.h <<_ACEOF
13486 #define CRAY_STACKSEG_END $ac_func
13487 _ACEOF
13488
13489 break
13490 fi
13491
13492 done
13493 fi
13494
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13496 $as_echo_n "checking stack direction for C alloca... " >&6; }
13497 if ${ac_cv_c_stack_direction+:} false; then :
13498 $as_echo_n "(cached) " >&6
13499 else
13500 if test "$cross_compiling" = yes; then :
13501 ac_cv_c_stack_direction=0
13502 else
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505 $ac_includes_default
13506 int
13507 find_stack_direction (int *addr, int depth)
13508 {
13509 int dir, dummy = 0;
13510 if (! addr)
13511 addr = &dummy;
13512 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13513 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13514 return dir + dummy;
13515 }
13516
13517 int
13518 main (int argc, char **argv)
13519 {
13520 return find_stack_direction (0, argc + !argv + 20) < 0;
13521 }
13522 _ACEOF
13523 if ac_fn_c_try_run "$LINENO"; then :
13524 ac_cv_c_stack_direction=1
13525 else
13526 ac_cv_c_stack_direction=-1
13527 fi
13528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13529 conftest.$ac_objext conftest.beam conftest.$ac_ext
13530 fi
13531
13532 fi
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13534 $as_echo "$ac_cv_c_stack_direction" >&6; }
13535 cat >>confdefs.h <<_ACEOF
13536 #define STACK_DIRECTION $ac_cv_c_stack_direction
13537 _ACEOF
13538
13539
13540 fi
13541
13542 for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
13543 do :
13544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13546 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13547 cat >>confdefs.h <<_ACEOF
13548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13549 _ACEOF
13550
13551 fi
13552 done
13553
13554 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13555 if test "x$ac_cv_func_mkstemp" = xyes; then :
13556
13557 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13558
13559 fi
13560
13561 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13562 if test "x$ac_cv_func_mkdtemp" = xyes; then :
13563
13564 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13565
13566 fi
13567
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13569 $as_echo_n "checking for mbstate_t... " >&6; }
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13572 #include <wchar.h>
13573 int
13574 main ()
13575 {
13576 mbstate_t teststate;
13577 ;
13578 return 0;
13579 }
13580 _ACEOF
13581 if ac_fn_c_try_compile "$LINENO"; then :
13582 have_mbstate_t=yes
13583 else
13584 have_mbstate_t=no
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13588 $as_echo "$have_mbstate_t" >&6; }
13589 if test x"$have_mbstate_t" = xyes; then
13590
13591 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13592
13593 fi
13594
13595 # Some systems have frexp only in -lm, not in -lc.
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13597 $as_echo_n "checking for library containing frexp... " >&6; }
13598 if ${ac_cv_search_frexp+:} false; then :
13599 $as_echo_n "(cached) " >&6
13600 else
13601 ac_func_search_save_LIBS=$LIBS
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604
13605 /* Override any GCC internal prototype to avoid an error.
13606 Use char because int might match the return type of a GCC
13607 builtin and then its argument prototype would still apply. */
13608 #ifdef __cplusplus
13609 extern "C"
13610 #endif
13611 char frexp ();
13612 int
13613 main ()
13614 {
13615 return frexp ();
13616 ;
13617 return 0;
13618 }
13619 _ACEOF
13620 for ac_lib in '' m; do
13621 if test -z "$ac_lib"; then
13622 ac_res="none required"
13623 else
13624 ac_res=-l$ac_lib
13625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13626 fi
13627 if ac_fn_c_try_link "$LINENO"; then :
13628 ac_cv_search_frexp=$ac_res
13629 fi
13630 rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext
13632 if ${ac_cv_search_frexp+:} false; then :
13633 break
13634 fi
13635 done
13636 if ${ac_cv_search_frexp+:} false; then :
13637
13638 else
13639 ac_cv_search_frexp=no
13640 fi
13641 rm conftest.$ac_ext
13642 LIBS=$ac_func_search_save_LIBS
13643 fi
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13645 $as_echo "$ac_cv_search_frexp" >&6; }
13646 ac_res=$ac_cv_search_frexp
13647 if test "$ac_res" != no; then :
13648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13649
13650 fi
13651
13652
13653
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13655 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13656 if ${am_cv_val_LC_MESSAGES+:} false; then :
13657 $as_echo_n "(cached) " >&6
13658 else
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661 #include <locale.h>
13662 int
13663 main ()
13664 {
13665 return LC_MESSAGES
13666 ;
13667 return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671 am_cv_val_LC_MESSAGES=yes
13672 else
13673 am_cv_val_LC_MESSAGES=no
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext \
13676 conftest$ac_exeext conftest.$ac_ext
13677 fi
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13679 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13680 if test $am_cv_val_LC_MESSAGES = yes; then
13681
13682 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13683
13684 fi
13685
13686
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13688 $as_echo_n "checking for time_t in time.h... " >&6; }
13689 if ${bu_cv_decl_time_t_time_h+:} false; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 #include <time.h>
13695 int
13696 main ()
13697 {
13698 time_t i;
13699 ;
13700 return 0;
13701 }
13702 _ACEOF
13703 if ac_fn_c_try_compile "$LINENO"; then :
13704 bu_cv_decl_time_t_time_h=yes
13705 else
13706 bu_cv_decl_time_t_time_h=no
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 fi
13710
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13712 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
13713 if test $bu_cv_decl_time_t_time_h = yes; then
13714
13715 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
13716
13717 fi
13718
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13720 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
13721 if ${bu_cv_decl_time_t_types_h+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13726 #include <sys/types.h>
13727 int
13728 main ()
13729 {
13730 time_t i;
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736 bu_cv_decl_time_t_types_h=yes
13737 else
13738 bu_cv_decl_time_t_types_h=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 fi
13742
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13744 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
13745 if test $bu_cv_decl_time_t_types_h = yes; then
13746
13747 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
13748
13749 fi
13750
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13752 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13753 if ${bu_cv_decl_getopt_unistd_h+:} false; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758 #include <unistd.h>
13759 int
13760 main ()
13761 {
13762 extern int getopt (int, char *const*, const char *);
13763 ;
13764 return 0;
13765 }
13766 _ACEOF
13767 if ac_fn_c_try_compile "$LINENO"; then :
13768 bu_cv_decl_getopt_unistd_h=yes
13769 else
13770 bu_cv_decl_getopt_unistd_h=no
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773 fi
13774
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13776 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13777 if test $bu_cv_decl_getopt_unistd_h = yes; then
13778
13779 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13780
13781 fi
13782
13783 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13784 # by default.
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13786 $as_echo_n "checking for utime.h... " >&6; }
13787 if ${bu_cv_header_utime_h+:} false; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792 #include <sys/types.h>
13793 #ifdef HAVE_TIME_H
13794 #include <time.h>
13795 #endif
13796 #include <utime.h>
13797 int
13798 main ()
13799 {
13800 struct utimbuf s;
13801 ;
13802 return 0;
13803 }
13804 _ACEOF
13805 if ac_fn_c_try_compile "$LINENO"; then :
13806 bu_cv_header_utime_h=yes
13807 else
13808 bu_cv_header_utime_h=no
13809 fi
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 fi
13812
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13814 $as_echo "$bu_cv_header_utime_h" >&6; }
13815 if test $bu_cv_header_utime_h = yes; then
13816
13817 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13818
13819 fi
13820
13821 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13822 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
13823 ac_have_decl=1
13824 else
13825 ac_have_decl=0
13826 fi
13827
13828 cat >>confdefs.h <<_ACEOF
13829 #define HAVE_DECL_ASPRINTF $ac_have_decl
13830 _ACEOF
13831 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13832 if test "x$ac_cv_have_decl_environ" = xyes; then :
13833 ac_have_decl=1
13834 else
13835 ac_have_decl=0
13836 fi
13837
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_DECL_ENVIRON $ac_have_decl
13840 _ACEOF
13841 ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
13842 if test "x$ac_cv_have_decl_fprintf" = xyes; then :
13843 ac_have_decl=1
13844 else
13845 ac_have_decl=0
13846 fi
13847
13848 cat >>confdefs.h <<_ACEOF
13849 #define HAVE_DECL_FPRINTF $ac_have_decl
13850 _ACEOF
13851 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13852 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
13853 ac_have_decl=1
13854 else
13855 ac_have_decl=0
13856 fi
13857
13858 cat >>confdefs.h <<_ACEOF
13859 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13860 _ACEOF
13861 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13862 if test "x$ac_cv_have_decl_getenv" = xyes; then :
13863 ac_have_decl=1
13864 else
13865 ac_have_decl=0
13866 fi
13867
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_DECL_GETENV $ac_have_decl
13870 _ACEOF
13871 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13872 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
13873 ac_have_decl=1
13874 else
13875 ac_have_decl=0
13876 fi
13877
13878 cat >>confdefs.h <<_ACEOF
13879 #define HAVE_DECL_SBRK $ac_have_decl
13880 _ACEOF
13881 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13882 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
13883 ac_have_decl=1
13884 else
13885 ac_have_decl=0
13886 fi
13887
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_DECL_SNPRINTF $ac_have_decl
13890 _ACEOF
13891 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13892 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
13893 ac_have_decl=1
13894 else
13895 ac_have_decl=0
13896 fi
13897
13898 cat >>confdefs.h <<_ACEOF
13899 #define HAVE_DECL_STPCPY $ac_have_decl
13900 _ACEOF
13901 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13902 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13903 ac_have_decl=1
13904 else
13905 ac_have_decl=0
13906 fi
13907
13908 cat >>confdefs.h <<_ACEOF
13909 #define HAVE_DECL_STRNLEN $ac_have_decl
13910 _ACEOF
13911 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13912 if test "x$ac_cv_have_decl_strstr" = xyes; then :
13913 ac_have_decl=1
13914 else
13915 ac_have_decl=0
13916 fi
13917
13918 cat >>confdefs.h <<_ACEOF
13919 #define HAVE_DECL_STRSTR $ac_have_decl
13920 _ACEOF
13921 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13922 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
13923 ac_have_decl=1
13924 else
13925 ac_have_decl=0
13926 fi
13927
13928 cat >>confdefs.h <<_ACEOF
13929 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13930 _ACEOF
13931
13932
13933 # Link in zlib if we can. This allows us to read compressed debug
13934 # sections. This is used only by readelf.c (objdump uses bfd for
13935 # reading compressed sections).
13936
13937 # Use the system's zlib library.
13938 zlibdir="-L\$(top_builddir)/../zlib"
13939 zlibinc="-I\$(top_srcdir)/../zlib"
13940
13941 # Check whether --with-system-zlib was given.
13942 if test "${with_system_zlib+set}" = set; then :
13943 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13944 zlibdir=
13945 zlibinc=
13946 fi
13947
13948 fi
13949
13950
13951
13952
13953
13954
13955 case "${host}" in
13956 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13957
13958 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13959 ;;
13960 esac
13961
13962 # target-specific stuff:
13963
13964 # Canonicalize the secondary target names.
13965 if test -n "$enable_targets"; then
13966 for targ in `echo $enable_targets | sed 's/,/ /g'`
13967 do
13968 result=`$ac_config_sub $targ 2>/dev/null`
13969 if test -n "$result"; then
13970 canon_targets="$canon_targets $result"
13971 else
13972 # Allow targets that config.sub doesn't recognize, like "all".
13973 canon_targets="$canon_targets $targ"
13974 fi
13975 done
13976 fi
13977
13978 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13979 if test "x$ac_cv_header_iconv_h" = xyes; then :
13980
13981 fi
13982
13983
13984
13985 if test "X$prefix" = "XNONE"; then
13986 acl_final_prefix="$ac_default_prefix"
13987 else
13988 acl_final_prefix="$prefix"
13989 fi
13990 if test "X$exec_prefix" = "XNONE"; then
13991 acl_final_exec_prefix='${prefix}'
13992 else
13993 acl_final_exec_prefix="$exec_prefix"
13994 fi
13995 acl_save_prefix="$prefix"
13996 prefix="$acl_final_prefix"
13997 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13998 prefix="$acl_save_prefix"
13999
14000
14001 # Check whether --with-gnu-ld was given.
14002 if test "${with_gnu_ld+set}" = set; then :
14003 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14004 else
14005 with_gnu_ld=no
14006 fi
14007
14008 # Prepare PATH_SEPARATOR.
14009 # The user is always right.
14010 if test "${PATH_SEPARATOR+set}" != set; then
14011 echo "#! /bin/sh" >conf$$.sh
14012 echo "exit 0" >>conf$$.sh
14013 chmod +x conf$$.sh
14014 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14015 PATH_SEPARATOR=';'
14016 else
14017 PATH_SEPARATOR=:
14018 fi
14019 rm -f conf$$.sh
14020 fi
14021 ac_prog=ld
14022 if test "$GCC" = yes; then
14023 # Check if gcc -print-prog-name=ld gives a path.
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14025 $as_echo_n "checking for ld used by GCC... " >&6; }
14026 case $host in
14027 *-*-mingw*)
14028 # gcc leaves a trailing carriage return which upsets mingw
14029 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14030 *)
14031 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14032 esac
14033 case $ac_prog in
14034 # Accept absolute paths.
14035 [\\/]* | [A-Za-z]:[\\/]*)
14036 re_direlt='/[^/][^/]*/\.\./'
14037 # Canonicalize the path of ld
14038 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14039 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14040 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14041 done
14042 test -z "$LD" && LD="$ac_prog"
14043 ;;
14044 "")
14045 # If it fails, then pretend we aren't using GCC.
14046 ac_prog=ld
14047 ;;
14048 *)
14049 # If it is relative, then search for the first ld in PATH.
14050 with_gnu_ld=unknown
14051 ;;
14052 esac
14053 elif test "$with_gnu_ld" = yes; then
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14055 $as_echo_n "checking for GNU ld... " >&6; }
14056 else
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14058 $as_echo_n "checking for non-GNU ld... " >&6; }
14059 fi
14060 if ${acl_cv_path_LD+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063 if test -z "$LD"; then
14064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14065 for ac_dir in $PATH; do
14066 test -z "$ac_dir" && ac_dir=.
14067 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14068 acl_cv_path_LD="$ac_dir/$ac_prog"
14069 # Check to see if the program is GNU ld. I'd rather use --version,
14070 # but apparently some GNU ld's only accept -v.
14071 # Break only if it was the GNU/non-GNU ld that we prefer.
14072 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14073 test "$with_gnu_ld" != no && break
14074 else
14075 test "$with_gnu_ld" != yes && break
14076 fi
14077 fi
14078 done
14079 IFS="$ac_save_ifs"
14080 else
14081 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14082 fi
14083 fi
14084
14085 LD="$acl_cv_path_LD"
14086 if test -n "$LD"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14088 $as_echo "$LD" >&6; }
14089 else
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14091 $as_echo "no" >&6; }
14092 fi
14093 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14096 if ${acl_cv_prog_gnu_ld+:} false; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14100 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14101 acl_cv_prog_gnu_ld=yes
14102 else
14103 acl_cv_prog_gnu_ld=no
14104 fi
14105 fi
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14107 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14108 with_gnu_ld=$acl_cv_prog_gnu_ld
14109
14110
14111
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14113 $as_echo_n "checking for shared library run path origin... " >&6; }
14114 if ${acl_cv_rpath+:} false; then :
14115 $as_echo_n "(cached) " >&6
14116 else
14117
14118 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14119 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14120 . ./conftest.sh
14121 rm -f ./conftest.sh
14122 acl_cv_rpath=done
14123
14124 fi
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14126 $as_echo "$acl_cv_rpath" >&6; }
14127 wl="$acl_cv_wl"
14128 libext="$acl_cv_libext"
14129 shlibext="$acl_cv_shlibext"
14130 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14131 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14132 hardcode_direct="$acl_cv_hardcode_direct"
14133 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14134 # Check whether --enable-rpath was given.
14135 if test "${enable_rpath+set}" = set; then :
14136 enableval=$enable_rpath; :
14137 else
14138 enable_rpath=yes
14139 fi
14140
14141
14142
14143
14144
14145
14146
14147
14148 use_additional=yes
14149
14150 acl_save_prefix="$prefix"
14151 prefix="$acl_final_prefix"
14152 acl_save_exec_prefix="$exec_prefix"
14153 exec_prefix="$acl_final_exec_prefix"
14154
14155 eval additional_includedir=\"$includedir\"
14156 eval additional_libdir=\"$libdir\"
14157
14158 exec_prefix="$acl_save_exec_prefix"
14159 prefix="$acl_save_prefix"
14160
14161
14162 # Check whether --with-libiconv-prefix was given.
14163 if test "${with_libiconv_prefix+set}" = set; then :
14164 withval=$with_libiconv_prefix;
14165 if test "X$withval" = "Xno"; then
14166 use_additional=no
14167 else
14168 if test "X$withval" = "X"; then
14169
14170 acl_save_prefix="$prefix"
14171 prefix="$acl_final_prefix"
14172 acl_save_exec_prefix="$exec_prefix"
14173 exec_prefix="$acl_final_exec_prefix"
14174
14175 eval additional_includedir=\"$includedir\"
14176 eval additional_libdir=\"$libdir\"
14177
14178 exec_prefix="$acl_save_exec_prefix"
14179 prefix="$acl_save_prefix"
14180
14181 else
14182 additional_includedir="$withval/include"
14183 additional_libdir="$withval/lib"
14184 fi
14185 fi
14186
14187 fi
14188
14189 LIBICONV=
14190 LTLIBICONV=
14191 INCICONV=
14192 rpathdirs=
14193 ltrpathdirs=
14194 names_already_handled=
14195 names_next_round='iconv '
14196 while test -n "$names_next_round"; do
14197 names_this_round="$names_next_round"
14198 names_next_round=
14199 for name in $names_this_round; do
14200 already_handled=
14201 for n in $names_already_handled; do
14202 if test "$n" = "$name"; then
14203 already_handled=yes
14204 break
14205 fi
14206 done
14207 if test -z "$already_handled"; then
14208 names_already_handled="$names_already_handled $name"
14209 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14210 eval value=\"\$HAVE_LIB$uppername\"
14211 if test -n "$value"; then
14212 if test "$value" = yes; then
14213 eval value=\"\$LIB$uppername\"
14214 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14215 eval value=\"\$LTLIB$uppername\"
14216 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14217 else
14218 :
14219 fi
14220 else
14221 found_dir=
14222 found_la=
14223 found_so=
14224 found_a=
14225 if test $use_additional = yes; then
14226 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14227 found_dir="$additional_libdir"
14228 found_so="$additional_libdir/lib$name.$shlibext"
14229 if test -f "$additional_libdir/lib$name.la"; then
14230 found_la="$additional_libdir/lib$name.la"
14231 fi
14232 else
14233 if test -f "$additional_libdir/lib$name.$libext"; then
14234 found_dir="$additional_libdir"
14235 found_a="$additional_libdir/lib$name.$libext"
14236 if test -f "$additional_libdir/lib$name.la"; then
14237 found_la="$additional_libdir/lib$name.la"
14238 fi
14239 fi
14240 fi
14241 fi
14242 if test "X$found_dir" = "X"; then
14243 for x in $LDFLAGS $LTLIBICONV; do
14244
14245 acl_save_prefix="$prefix"
14246 prefix="$acl_final_prefix"
14247 acl_save_exec_prefix="$exec_prefix"
14248 exec_prefix="$acl_final_exec_prefix"
14249 eval x=\"$x\"
14250 exec_prefix="$acl_save_exec_prefix"
14251 prefix="$acl_save_prefix"
14252
14253 case "$x" in
14254 -L*)
14255 dir=`echo "X$x" | sed -e 's/^X-L//'`
14256 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14257 found_dir="$dir"
14258 found_so="$dir/lib$name.$shlibext"
14259 if test -f "$dir/lib$name.la"; then
14260 found_la="$dir/lib$name.la"
14261 fi
14262 else
14263 if test -f "$dir/lib$name.$libext"; then
14264 found_dir="$dir"
14265 found_a="$dir/lib$name.$libext"
14266 if test -f "$dir/lib$name.la"; then
14267 found_la="$dir/lib$name.la"
14268 fi
14269 fi
14270 fi
14271 ;;
14272 esac
14273 if test "X$found_dir" != "X"; then
14274 break
14275 fi
14276 done
14277 fi
14278 if test "X$found_dir" != "X"; then
14279 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14280 if test "X$found_so" != "X"; then
14281 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14283 else
14284 haveit=
14285 for x in $ltrpathdirs; do
14286 if test "X$x" = "X$found_dir"; then
14287 haveit=yes
14288 break
14289 fi
14290 done
14291 if test -z "$haveit"; then
14292 ltrpathdirs="$ltrpathdirs $found_dir"
14293 fi
14294 if test "$hardcode_direct" = yes; then
14295 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14296 else
14297 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14299 haveit=
14300 for x in $rpathdirs; do
14301 if test "X$x" = "X$found_dir"; then
14302 haveit=yes
14303 break
14304 fi
14305 done
14306 if test -z "$haveit"; then
14307 rpathdirs="$rpathdirs $found_dir"
14308 fi
14309 else
14310 haveit=
14311 for x in $LDFLAGS $LIBICONV; do
14312
14313 acl_save_prefix="$prefix"
14314 prefix="$acl_final_prefix"
14315 acl_save_exec_prefix="$exec_prefix"
14316 exec_prefix="$acl_final_exec_prefix"
14317 eval x=\"$x\"
14318 exec_prefix="$acl_save_exec_prefix"
14319 prefix="$acl_save_prefix"
14320
14321 if test "X$x" = "X-L$found_dir"; then
14322 haveit=yes
14323 break
14324 fi
14325 done
14326 if test -z "$haveit"; then
14327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14328 fi
14329 if test "$hardcode_minus_L" != no; then
14330 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14331 else
14332 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14333 fi
14334 fi
14335 fi
14336 fi
14337 else
14338 if test "X$found_a" != "X"; then
14339 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14340 else
14341 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14342 fi
14343 fi
14344 additional_includedir=
14345 case "$found_dir" in
14346 */lib | */lib/)
14347 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14348 additional_includedir="$basedir/include"
14349 ;;
14350 esac
14351 if test "X$additional_includedir" != "X"; then
14352 if test "X$additional_includedir" != "X/usr/include"; then
14353 haveit=
14354 if test "X$additional_includedir" = "X/usr/local/include"; then
14355 if test -n "$GCC"; then
14356 case $host_os in
14357 linux*) haveit=yes;;
14358 esac
14359 fi
14360 fi
14361 if test -z "$haveit"; then
14362 for x in $CPPFLAGS $INCICONV; do
14363
14364 acl_save_prefix="$prefix"
14365 prefix="$acl_final_prefix"
14366 acl_save_exec_prefix="$exec_prefix"
14367 exec_prefix="$acl_final_exec_prefix"
14368 eval x=\"$x\"
14369 exec_prefix="$acl_save_exec_prefix"
14370 prefix="$acl_save_prefix"
14371
14372 if test "X$x" = "X-I$additional_includedir"; then
14373 haveit=yes
14374 break
14375 fi
14376 done
14377 if test -z "$haveit"; then
14378 if test -d "$additional_includedir"; then
14379 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14380 fi
14381 fi
14382 fi
14383 fi
14384 fi
14385 if test -n "$found_la"; then
14386 save_libdir="$libdir"
14387 case "$found_la" in
14388 */* | *\\*) . "$found_la" ;;
14389 *) . "./$found_la" ;;
14390 esac
14391 libdir="$save_libdir"
14392 for dep in $dependency_libs; do
14393 case "$dep" in
14394 -L*)
14395 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14396 if test "X$additional_libdir" != "X/usr/lib"; then
14397 haveit=
14398 if test "X$additional_libdir" = "X/usr/local/lib"; then
14399 if test -n "$GCC"; then
14400 case $host_os in
14401 linux*) haveit=yes;;
14402 esac
14403 fi
14404 fi
14405 if test -z "$haveit"; then
14406 haveit=
14407 for x in $LDFLAGS $LIBICONV; do
14408
14409 acl_save_prefix="$prefix"
14410 prefix="$acl_final_prefix"
14411 acl_save_exec_prefix="$exec_prefix"
14412 exec_prefix="$acl_final_exec_prefix"
14413 eval x=\"$x\"
14414 exec_prefix="$acl_save_exec_prefix"
14415 prefix="$acl_save_prefix"
14416
14417 if test "X$x" = "X-L$additional_libdir"; then
14418 haveit=yes
14419 break
14420 fi
14421 done
14422 if test -z "$haveit"; then
14423 if test -d "$additional_libdir"; then
14424 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14425 fi
14426 fi
14427 haveit=
14428 for x in $LDFLAGS $LTLIBICONV; do
14429
14430 acl_save_prefix="$prefix"
14431 prefix="$acl_final_prefix"
14432 acl_save_exec_prefix="$exec_prefix"
14433 exec_prefix="$acl_final_exec_prefix"
14434 eval x=\"$x\"
14435 exec_prefix="$acl_save_exec_prefix"
14436 prefix="$acl_save_prefix"
14437
14438 if test "X$x" = "X-L$additional_libdir"; then
14439 haveit=yes
14440 break
14441 fi
14442 done
14443 if test -z "$haveit"; then
14444 if test -d "$additional_libdir"; then
14445 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14446 fi
14447 fi
14448 fi
14449 fi
14450 ;;
14451 -R*)
14452 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14453 if test "$enable_rpath" != no; then
14454 haveit=
14455 for x in $rpathdirs; do
14456 if test "X$x" = "X$dir"; then
14457 haveit=yes
14458 break
14459 fi
14460 done
14461 if test -z "$haveit"; then
14462 rpathdirs="$rpathdirs $dir"
14463 fi
14464 haveit=
14465 for x in $ltrpathdirs; do
14466 if test "X$x" = "X$dir"; then
14467 haveit=yes
14468 break
14469 fi
14470 done
14471 if test -z "$haveit"; then
14472 ltrpathdirs="$ltrpathdirs $dir"
14473 fi
14474 fi
14475 ;;
14476 -l*)
14477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14478 ;;
14479 *.la)
14480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14481 ;;
14482 *)
14483 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14484 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14485 ;;
14486 esac
14487 done
14488 fi
14489 else
14490 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14491 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14492 fi
14493 fi
14494 fi
14495 done
14496 done
14497 if test "X$rpathdirs" != "X"; then
14498 if test -n "$hardcode_libdir_separator"; then
14499 alldirs=
14500 for found_dir in $rpathdirs; do
14501 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14502 done
14503 acl_save_libdir="$libdir"
14504 libdir="$alldirs"
14505 eval flag=\"$hardcode_libdir_flag_spec\"
14506 libdir="$acl_save_libdir"
14507 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14508 else
14509 for found_dir in $rpathdirs; do
14510 acl_save_libdir="$libdir"
14511 libdir="$found_dir"
14512 eval flag=\"$hardcode_libdir_flag_spec\"
14513 libdir="$acl_save_libdir"
14514 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14515 done
14516 fi
14517 fi
14518 if test "X$ltrpathdirs" != "X"; then
14519 for found_dir in $ltrpathdirs; do
14520 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14521 done
14522 fi
14523
14524
14525
14526
14527
14528
14529
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14531 $as_echo_n "checking for iconv... " >&6; }
14532 if ${am_cv_func_iconv+:} false; then :
14533 $as_echo_n "(cached) " >&6
14534 else
14535
14536 am_cv_func_iconv="no, consider installing GNU libiconv"
14537 am_cv_lib_iconv=no
14538 am_save_CPPFLAGS="$CPPFLAGS"
14539 CPPFLAGS="$CPPFLAGS $INCICONV"
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <stdlib.h>
14543 #include <iconv.h>
14544 int
14545 main ()
14546 {
14547 iconv_t cd = iconv_open("","");
14548 iconv(cd,NULL,NULL,NULL,NULL);
14549 iconv_close(cd);
14550 ;
14551 return 0;
14552 }
14553 _ACEOF
14554 if ac_fn_c_try_link "$LINENO"; then :
14555 am_cv_func_iconv=yes
14556 fi
14557 rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14559 CPPFLAGS="$am_save_CPPFLAGS"
14560
14561 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14562 for _libs in .libs _libs; do
14563 am_save_CPPFLAGS="$CPPFLAGS"
14564 am_save_LIBS="$LIBS"
14565 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14566 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 #include <stdlib.h>
14570 #include <iconv.h>
14571 int
14572 main ()
14573 {
14574 iconv_t cd = iconv_open("","");
14575 iconv(cd,NULL,NULL,NULL,NULL);
14576 iconv_close(cd);
14577 ;
14578 return 0;
14579 }
14580 _ACEOF
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 INCICONV="-I../libiconv/include"
14583 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14584 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14585 am_cv_lib_iconv=yes
14586 am_cv_func_iconv=yes
14587 fi
14588 rm -f core conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14590 CPPFLAGS="$am_save_CPPFLAGS"
14591 LIBS="$am_save_LIBS"
14592 if test "$am_cv_func_iconv" = "yes"; then
14593 break
14594 fi
14595 done
14596 fi
14597
14598 if test "$am_cv_func_iconv" != yes; then
14599 am_save_CPPFLAGS="$CPPFLAGS"
14600 am_save_LIBS="$LIBS"
14601 CPPFLAGS="$LIBS $INCICONV"
14602 LIBS="$LIBS $LIBICONV"
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14605 #include <stdlib.h>
14606 #include <iconv.h>
14607 int
14608 main ()
14609 {
14610 iconv_t cd = iconv_open("","");
14611 iconv(cd,NULL,NULL,NULL,NULL);
14612 iconv_close(cd);
14613 ;
14614 return 0;
14615 }
14616 _ACEOF
14617 if ac_fn_c_try_link "$LINENO"; then :
14618 am_cv_lib_iconv=yes
14619 am_cv_func_iconv=yes
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext \
14622 conftest$ac_exeext conftest.$ac_ext
14623 CPPFLAGS="$am_save_CPPFLAGS"
14624 LIBS="$am_save_LIBS"
14625 fi
14626
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14629 $as_echo "$am_cv_func_iconv" >&6; }
14630 if test "$am_cv_func_iconv" = yes; then
14631
14632 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14633
14634 fi
14635 if test "$am_cv_lib_iconv" = yes; then
14636
14637 for element in $INCICONV; do
14638 haveit=
14639 for x in $CPPFLAGS; do
14640
14641 acl_save_prefix="$prefix"
14642 prefix="$acl_final_prefix"
14643 acl_save_exec_prefix="$exec_prefix"
14644 exec_prefix="$acl_final_exec_prefix"
14645 eval x=\"$x\"
14646 exec_prefix="$acl_save_exec_prefix"
14647 prefix="$acl_save_prefix"
14648
14649 if test "X$x" = "X$element"; then
14650 haveit=yes
14651 break
14652 fi
14653 done
14654 if test -z "$haveit"; then
14655 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14656 fi
14657 done
14658
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14660 $as_echo_n "checking how to link with libiconv... " >&6; }
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14662 $as_echo "$LIBICONV" >&6; }
14663 else
14664 LIBICONV=
14665 LTLIBICONV=
14666 fi
14667
14668
14669
14670 if test "$am_cv_func_iconv" = yes; then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14672 $as_echo_n "checking for iconv declaration... " >&6; }
14673 if ${am_cv_proto_iconv+:} false; then :
14674 $as_echo_n "(cached) " >&6
14675 else
14676
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679
14680 #include <stdlib.h>
14681 #include <iconv.h>
14682 extern
14683 #ifdef __cplusplus
14684 "C"
14685 #endif
14686 #if defined(__STDC__) || defined(__cplusplus)
14687 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14688 #else
14689 size_t iconv();
14690 #endif
14691
14692 int
14693 main ()
14694 {
14695
14696 ;
14697 return 0;
14698 }
14699 _ACEOF
14700 if ac_fn_c_try_compile "$LINENO"; then :
14701 am_cv_proto_iconv_arg1=""
14702 else
14703 am_cv_proto_iconv_arg1="const"
14704 fi
14705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14706 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14707 fi
14708
14709 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14711 }$am_cv_proto_iconv" >&5
14712 $as_echo "${ac_t:-
14713 }$am_cv_proto_iconv" >&6; }
14714
14715 cat >>confdefs.h <<_ACEOF
14716 #define ICONV_CONST $am_cv_proto_iconv_arg1
14717 _ACEOF
14718
14719 fi
14720
14721
14722 all_targets=false
14723 BUILD_SRCONV=
14724 BUILD_DLLTOOL=
14725 DLLTOOL_DEFS=
14726 DLLTOOL_DEFAULT=
14727 BUILD_WINDRES=
14728 BUILD_WINDMC=
14729 BUILD_DLLWRAP=
14730 BUILD_MISC=
14731 BUILD_INSTALL_MISC=
14732 OBJDUMP_DEFS=
14733 OBJDUMP_PRIVATE_VECTORS=
14734 OBJDUMP_PRIVATE_OFILES=
14735 od_vectors=
14736
14737 for targ in $target $canon_targets
14738 do
14739 if test "x$targ" = "xall"; then
14740 all_targets=true
14741 BUILD_SRCONV='$(SRCONV_PROG)'
14742 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14743 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14744 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14745 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14746 if test -z "$DLLTOOL_DEFAULT"; then
14747 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14748 fi
14749 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14750 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14751 od_vectors="$od_vectors objdump_private_desc_xcoff"
14752 else
14753 case $targ in
14754 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14755 esac
14756
14757 case $targ in
14758 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14759 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14760 if test -z "$DLLTOOL_DEFAULT"; then
14761 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14762 fi
14763 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14764 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14765 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14766 ;;
14767 arm-*-pe*)
14768 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14769 if test -z "$DLLTOOL_DEFAULT"; then
14770 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14771 fi
14772 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14773 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14774 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14775 ;;
14776 x86_64-*-mingw* | x86_64-*-cygwin*)
14777 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14778 if test -z "$DLLTOOL_DEFAULT"; then
14779 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14780 fi
14781 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14782 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14783 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14784 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14785 ;;
14786 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
14787 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14788 if test -z "$DLLTOOL_DEFAULT"; then
14789 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14790 fi
14791 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14792 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14793 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14794 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14795 ;;
14796 i[3-7]86-*-interix)
14797 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14798 if test -z "$DLLTOOL_DEFAULT"; then
14799 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14800 fi
14801 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14802 ;;
14803 powerpc*-aix5.[01])
14804 ;;
14805 powerpc*-aix[5-9].*)
14806 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14807 ;;
14808 powerpc*-*-pe* | powerpc*-*-cygwin*)
14809 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14810 if test -z "$DLLTOOL_DEFAULT"; then
14811 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14812 fi
14813 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14814 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14815 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14816 ;;
14817 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14818 case "$BUILD_INSTALL_MISC" in
14819 *embedspu*) ;;
14820 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14821 esac
14822 ;;
14823 sh*-*-pe)
14824 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14825 if test -z "$DLLTOOL_DEFAULT"; then
14826 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14827 fi
14828 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14829 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14830 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14831 ;;
14832 spu-*-*)
14833 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14834 ;;
14835 mips*-*-pe)
14836 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14837 if test -z "$DLLTOOL_DEFAULT"; then
14838 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14839 fi
14840 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14841 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14842 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14843 ;;
14844 mcore-*-pe)
14845 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14846 if test -z "$DLLTOOL_DEFAULT"; then
14847 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14848 fi
14849 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14850 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14851 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14852 ;;
14853 mcore-*-elf)
14854 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14855 if test -z "$DLLTOOL_DEFAULT"; then
14856 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14857 fi
14858 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14859 ;;
14860 mep-*)
14861 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14862 ;;
14863 esac
14864
14865 # Add objdump private vectors.
14866 case $targ in
14867 avr-*-*)
14868 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14869 ;;
14870 powerpc*-*-aix* | rs6000-*-aix*)
14871 od_vectors="$od_vectors objdump_private_desc_xcoff"
14872 ;;
14873 *-*-darwin*)
14874 od_vectors="$od_vectors objdump_private_desc_mach_o"
14875 ;;
14876 esac
14877 fi
14878 done
14879
14880 # Uniq objdump private vector, build objdump target ofiles.
14881 od_files=
14882 f=""
14883 for i in $od_vectors ; do
14884 case " $f " in
14885 *" $i "*) ;;
14886 *)
14887 f="$f $i"
14888 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14889 case $i in
14890 objdump_private_desc_elf32_avr)
14891 od_files="$od_files od-elf32_avr" ;;
14892 objdump_private_desc_xcoff)
14893 od_files="$od_files od-xcoff" ;;
14894 objdump_private_desc_mach_o)
14895 od_files="$od_files od-macho" ;;
14896 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;;
14897 esac
14898 ;;
14899 esac
14900 done
14901
14902 # Uniq objdump target ofiles
14903 f=""
14904 for i in $od_files ; do
14905 case " $f " in
14906 *" $i "*) ;;
14907 *)
14908 f="$f $i"
14909 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14910 ;;
14911 esac
14912 done
14913
14914 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14915
14916 if test "${with_windres+set}" = set; then
14917 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14918 fi
14919
14920 if test "${with_windmc+set}" = set; then
14921 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14922 fi
14923
14924 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938 cat >>confdefs.h <<_ACEOF
14939 #define TARGET "${target}"
14940 _ACEOF
14941
14942
14943 targ=$target
14944 . $srcdir/../bfd/config.bfd
14945 if test "x$targ_underscore" = "xyes"; then
14946 UNDERSCORE=1
14947 else
14948 UNDERSCORE=0
14949 fi
14950
14951 cat >>confdefs.h <<_ACEOF
14952 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14953 _ACEOF
14954
14955
14956 # Emulation
14957 targ=$target
14958 . ${srcdir}/configure.tgt
14959 EMULATION=$targ_emul
14960 EMULATION_VECTOR=$targ_emul_vector
14961
14962
14963
14964
14965 # Required for html and install-html
14966
14967
14968
14969
14970
14971 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14972
14973 cat >confcache <<\_ACEOF
14974 # This file is a shell script that caches the results of configure
14975 # tests run on this system so they can be shared between configure
14976 # scripts and configure runs, see configure's option --config-cache.
14977 # It is not useful on other systems. If it contains results you don't
14978 # want to keep, you may remove or edit it.
14979 #
14980 # config.status only pays attention to the cache file if you give it
14981 # the --recheck option to rerun configure.
14982 #
14983 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14984 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14985 # following values.
14986
14987 _ACEOF
14988
14989 # The following way of writing the cache mishandles newlines in values,
14990 # but we know of no workaround that is simple, portable, and efficient.
14991 # So, we kill variables containing newlines.
14992 # Ultrix sh set writes to stderr and can't be redirected directly,
14993 # and sets the high bit in the cache file unless we assign to the vars.
14994 (
14995 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14996 eval ac_val=\$$ac_var
14997 case $ac_val in #(
14998 *${as_nl}*)
14999 case $ac_var in #(
15000 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15001 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15002 esac
15003 case $ac_var in #(
15004 _ | IFS | as_nl) ;; #(
15005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15006 *) { eval $ac_var=; unset $ac_var;} ;;
15007 esac ;;
15008 esac
15009 done
15010
15011 (set) 2>&1 |
15012 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15013 *${as_nl}ac_space=\ *)
15014 # `set' does not quote correctly, so add quotes: double-quote
15015 # substitution turns \\\\ into \\, and sed turns \\ into \.
15016 sed -n \
15017 "s/'/'\\\\''/g;
15018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15019 ;; #(
15020 *)
15021 # `set' quotes correctly as required by POSIX, so do not add quotes.
15022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15023 ;;
15024 esac |
15025 sort
15026 ) |
15027 sed '
15028 /^ac_cv_env_/b end
15029 t clear
15030 :clear
15031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15032 t end
15033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15034 :end' >>confcache
15035 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15036 if test -w "$cache_file"; then
15037 if test "x$cache_file" != "x/dev/null"; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15039 $as_echo "$as_me: updating cache $cache_file" >&6;}
15040 if test ! -f "$cache_file" || test -h "$cache_file"; then
15041 cat confcache >"$cache_file"
15042 else
15043 case $cache_file in #(
15044 */* | ?:*)
15045 mv -f confcache "$cache_file"$$ &&
15046 mv -f "$cache_file"$$ "$cache_file" ;; #(
15047 *)
15048 mv -f confcache "$cache_file" ;;
15049 esac
15050 fi
15051 fi
15052 else
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15054 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15055 fi
15056 fi
15057 rm -f confcache
15058
15059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15060 # Let make expand exec_prefix.
15061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15062
15063 DEFS=-DHAVE_CONFIG_H
15064
15065 ac_libobjs=
15066 ac_ltlibobjs=
15067 U=
15068 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15069 # 1. Remove the extension, and $U if already installed.
15070 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15071 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15073 # will be set to the directory where LIBOBJS objects are built.
15074 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15075 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15076 done
15077 LIBOBJS=$ac_libobjs
15078
15079 LTLIBOBJS=$ac_ltlibobjs
15080
15081
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15083 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15084 if test -n "$am_sleep_pid"; then
15085 # Hide warnings about reused PIDs.
15086 wait $am_sleep_pid 2>/dev/null
15087 fi
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15089 $as_echo "done" >&6; }
15090 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15091 as_fn_error $? "conditional \"AMDEP\" was never defined.
15092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15093 fi
15094 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15095 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15097 fi
15098 if test -n "$EXEEXT"; then
15099 am__EXEEXT_TRUE=
15100 am__EXEEXT_FALSE='#'
15101 else
15102 am__EXEEXT_TRUE='#'
15103 am__EXEEXT_FALSE=
15104 fi
15105
15106 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15107 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15109 fi
15110 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15111 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15113 fi
15114
15115 : "${CONFIG_STATUS=./config.status}"
15116 ac_write_fail=0
15117 ac_clean_files_save=$ac_clean_files
15118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15121 as_write_fail=0
15122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15123 #! $SHELL
15124 # Generated by $as_me.
15125 # Run this file to recreate the current configuration.
15126 # Compiler output produced by configure, useful for debugging
15127 # configure, is in config.log if it exists.
15128
15129 debug=false
15130 ac_cs_recheck=false
15131 ac_cs_silent=false
15132
15133 SHELL=\${CONFIG_SHELL-$SHELL}
15134 export SHELL
15135 _ASEOF
15136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15137 ## -------------------- ##
15138 ## M4sh Initialization. ##
15139 ## -------------------- ##
15140
15141 # Be more Bourne compatible
15142 DUALCASE=1; export DUALCASE # for MKS sh
15143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15144 emulate sh
15145 NULLCMD=:
15146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15147 # is contrary to our usage. Disable this feature.
15148 alias -g '${1+"$@"}'='"$@"'
15149 setopt NO_GLOB_SUBST
15150 else
15151 case `(set -o) 2>/dev/null` in #(
15152 *posix*) :
15153 set -o posix ;; #(
15154 *) :
15155 ;;
15156 esac
15157 fi
15158
15159
15160 as_nl='
15161 '
15162 export as_nl
15163 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15164 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15167 # Prefer a ksh shell builtin over an external printf program on Solaris,
15168 # but without wasting forks for bash or zsh.
15169 if test -z "$BASH_VERSION$ZSH_VERSION" \
15170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15171 as_echo='print -r --'
15172 as_echo_n='print -rn --'
15173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15174 as_echo='printf %s\n'
15175 as_echo_n='printf %s'
15176 else
15177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15179 as_echo_n='/usr/ucb/echo -n'
15180 else
15181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15182 as_echo_n_body='eval
15183 arg=$1;
15184 case $arg in #(
15185 *"$as_nl"*)
15186 expr "X$arg" : "X\\(.*\\)$as_nl";
15187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15188 esac;
15189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15190 '
15191 export as_echo_n_body
15192 as_echo_n='sh -c $as_echo_n_body as_echo'
15193 fi
15194 export as_echo_body
15195 as_echo='sh -c $as_echo_body as_echo'
15196 fi
15197
15198 # The user is always right.
15199 if test "${PATH_SEPARATOR+set}" != set; then
15200 PATH_SEPARATOR=:
15201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15203 PATH_SEPARATOR=';'
15204 }
15205 fi
15206
15207
15208 # IFS
15209 # We need space, tab and new line, in precisely that order. Quoting is
15210 # there to prevent editors from complaining about space-tab.
15211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15212 # splitting by setting IFS to empty value.)
15213 IFS=" "" $as_nl"
15214
15215 # Find who we are. Look in the path if we contain no directory separator.
15216 as_myself=
15217 case $0 in #((
15218 *[\\/]* ) as_myself=$0 ;;
15219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220 for as_dir in $PATH
15221 do
15222 IFS=$as_save_IFS
15223 test -z "$as_dir" && as_dir=.
15224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15225 done
15226 IFS=$as_save_IFS
15227
15228 ;;
15229 esac
15230 # We did not find ourselves, most probably we were run as `sh COMMAND'
15231 # in which case we are not to be found in the path.
15232 if test "x$as_myself" = x; then
15233 as_myself=$0
15234 fi
15235 if test ! -f "$as_myself"; then
15236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15237 exit 1
15238 fi
15239
15240 # Unset variables that we do not need and which cause bugs (e.g. in
15241 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15242 # suppresses any "Segmentation fault" message there. '((' could
15243 # trigger a bug in pdksh 5.2.14.
15244 for as_var in BASH_ENV ENV MAIL MAILPATH
15245 do eval test x\${$as_var+set} = xset \
15246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15247 done
15248 PS1='$ '
15249 PS2='> '
15250 PS4='+ '
15251
15252 # NLS nuisances.
15253 LC_ALL=C
15254 export LC_ALL
15255 LANGUAGE=C
15256 export LANGUAGE
15257
15258 # CDPATH.
15259 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15260
15261
15262 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15263 # ----------------------------------------
15264 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15265 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15266 # script with STATUS, using 1 if that was 0.
15267 as_fn_error ()
15268 {
15269 as_status=$1; test $as_status -eq 0 && as_status=1
15270 if test "$4"; then
15271 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15273 fi
15274 $as_echo "$as_me: error: $2" >&2
15275 as_fn_exit $as_status
15276 } # as_fn_error
15277
15278
15279 # as_fn_set_status STATUS
15280 # -----------------------
15281 # Set $? to STATUS, without forking.
15282 as_fn_set_status ()
15283 {
15284 return $1
15285 } # as_fn_set_status
15286
15287 # as_fn_exit STATUS
15288 # -----------------
15289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15290 as_fn_exit ()
15291 {
15292 set +e
15293 as_fn_set_status $1
15294 exit $1
15295 } # as_fn_exit
15296
15297 # as_fn_unset VAR
15298 # ---------------
15299 # Portably unset VAR.
15300 as_fn_unset ()
15301 {
15302 { eval $1=; unset $1;}
15303 }
15304 as_unset=as_fn_unset
15305 # as_fn_append VAR VALUE
15306 # ----------------------
15307 # Append the text in VALUE to the end of the definition contained in VAR. Take
15308 # advantage of any shell optimizations that allow amortized linear growth over
15309 # repeated appends, instead of the typical quadratic growth present in naive
15310 # implementations.
15311 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15312 eval 'as_fn_append ()
15313 {
15314 eval $1+=\$2
15315 }'
15316 else
15317 as_fn_append ()
15318 {
15319 eval $1=\$$1\$2
15320 }
15321 fi # as_fn_append
15322
15323 # as_fn_arith ARG...
15324 # ------------------
15325 # Perform arithmetic evaluation on the ARGs, and store the result in the
15326 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15327 # must be portable across $(()) and expr.
15328 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15329 eval 'as_fn_arith ()
15330 {
15331 as_val=$(( $* ))
15332 }'
15333 else
15334 as_fn_arith ()
15335 {
15336 as_val=`expr "$@" || test $? -eq 1`
15337 }
15338 fi # as_fn_arith
15339
15340
15341 if expr a : '\(a\)' >/dev/null 2>&1 &&
15342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15343 as_expr=expr
15344 else
15345 as_expr=false
15346 fi
15347
15348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15349 as_basename=basename
15350 else
15351 as_basename=false
15352 fi
15353
15354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15355 as_dirname=dirname
15356 else
15357 as_dirname=false
15358 fi
15359
15360 as_me=`$as_basename -- "$0" ||
15361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15362 X"$0" : 'X\(//\)$' \| \
15363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15364 $as_echo X/"$0" |
15365 sed '/^.*\/\([^/][^/]*\)\/*$/{
15366 s//\1/
15367 q
15368 }
15369 /^X\/\(\/\/\)$/{
15370 s//\1/
15371 q
15372 }
15373 /^X\/\(\/\).*/{
15374 s//\1/
15375 q
15376 }
15377 s/.*/./; q'`
15378
15379 # Avoid depending upon Character Ranges.
15380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15383 as_cr_digits='0123456789'
15384 as_cr_alnum=$as_cr_Letters$as_cr_digits
15385
15386 ECHO_C= ECHO_N= ECHO_T=
15387 case `echo -n x` in #(((((
15388 -n*)
15389 case `echo 'xy\c'` in
15390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15391 xy) ECHO_C='\c';;
15392 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15393 ECHO_T=' ';;
15394 esac;;
15395 *)
15396 ECHO_N='-n';;
15397 esac
15398
15399 rm -f conf$$ conf$$.exe conf$$.file
15400 if test -d conf$$.dir; then
15401 rm -f conf$$.dir/conf$$.file
15402 else
15403 rm -f conf$$.dir
15404 mkdir conf$$.dir 2>/dev/null
15405 fi
15406 if (echo >conf$$.file) 2>/dev/null; then
15407 if ln -s conf$$.file conf$$ 2>/dev/null; then
15408 as_ln_s='ln -s'
15409 # ... but there are two gotchas:
15410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15412 # In both cases, we have to default to `cp -pR'.
15413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15414 as_ln_s='cp -pR'
15415 elif ln conf$$.file conf$$ 2>/dev/null; then
15416 as_ln_s=ln
15417 else
15418 as_ln_s='cp -pR'
15419 fi
15420 else
15421 as_ln_s='cp -pR'
15422 fi
15423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15424 rmdir conf$$.dir 2>/dev/null
15425
15426
15427 # as_fn_mkdir_p
15428 # -------------
15429 # Create "$as_dir" as a directory, including parents if necessary.
15430 as_fn_mkdir_p ()
15431 {
15432
15433 case $as_dir in #(
15434 -*) as_dir=./$as_dir;;
15435 esac
15436 test -d "$as_dir" || eval $as_mkdir_p || {
15437 as_dirs=
15438 while :; do
15439 case $as_dir in #(
15440 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15441 *) as_qdir=$as_dir;;
15442 esac
15443 as_dirs="'$as_qdir' $as_dirs"
15444 as_dir=`$as_dirname -- "$as_dir" ||
15445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15446 X"$as_dir" : 'X\(//\)[^/]' \| \
15447 X"$as_dir" : 'X\(//\)$' \| \
15448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15449 $as_echo X"$as_dir" |
15450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15451 s//\1/
15452 q
15453 }
15454 /^X\(\/\/\)[^/].*/{
15455 s//\1/
15456 q
15457 }
15458 /^X\(\/\/\)$/{
15459 s//\1/
15460 q
15461 }
15462 /^X\(\/\).*/{
15463 s//\1/
15464 q
15465 }
15466 s/.*/./; q'`
15467 test -d "$as_dir" && break
15468 done
15469 test -z "$as_dirs" || eval "mkdir $as_dirs"
15470 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15471
15472
15473 } # as_fn_mkdir_p
15474 if mkdir -p . 2>/dev/null; then
15475 as_mkdir_p='mkdir -p "$as_dir"'
15476 else
15477 test -d ./-p && rmdir ./-p
15478 as_mkdir_p=false
15479 fi
15480
15481
15482 # as_fn_executable_p FILE
15483 # -----------------------
15484 # Test if FILE is an executable regular file.
15485 as_fn_executable_p ()
15486 {
15487 test -f "$1" && test -x "$1"
15488 } # as_fn_executable_p
15489 as_test_x='test -x'
15490 as_executable_p=as_fn_executable_p
15491
15492 # Sed expression to map a string onto a valid CPP name.
15493 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15494
15495 # Sed expression to map a string onto a valid variable name.
15496 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15497
15498
15499 exec 6>&1
15500 ## ----------------------------------- ##
15501 ## Main body of $CONFIG_STATUS script. ##
15502 ## ----------------------------------- ##
15503 _ASEOF
15504 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15505
15506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15507 # Save the log message, to keep $0 and so on meaningful, and to
15508 # report actual input values of CONFIG_FILES etc. instead of their
15509 # values after options handling.
15510 ac_log="
15511 This file was extended by binutils $as_me 2.30.52, which was
15512 generated by GNU Autoconf 2.69. Invocation command line was
15513
15514 CONFIG_FILES = $CONFIG_FILES
15515 CONFIG_HEADERS = $CONFIG_HEADERS
15516 CONFIG_LINKS = $CONFIG_LINKS
15517 CONFIG_COMMANDS = $CONFIG_COMMANDS
15518 $ $0 $@
15519
15520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15521 "
15522
15523 _ACEOF
15524
15525 case $ac_config_files in *"
15526 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15527 esac
15528
15529 case $ac_config_headers in *"
15530 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15531 esac
15532
15533
15534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535 # Files that config.status was made for.
15536 config_files="$ac_config_files"
15537 config_headers="$ac_config_headers"
15538 config_commands="$ac_config_commands"
15539
15540 _ACEOF
15541
15542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15543 ac_cs_usage="\
15544 \`$as_me' instantiates files and other configuration actions
15545 from templates according to the current configuration. Unless the files
15546 and actions are specified as TAGs, all are instantiated by default.
15547
15548 Usage: $0 [OPTION]... [TAG]...
15549
15550 -h, --help print this help, then exit
15551 -V, --version print version number and configuration settings, then exit
15552 --config print configuration, then exit
15553 -q, --quiet, --silent
15554 do not print progress messages
15555 -d, --debug don't remove temporary files
15556 --recheck update $as_me by reconfiguring in the same conditions
15557 --file=FILE[:TEMPLATE]
15558 instantiate the configuration file FILE
15559 --header=FILE[:TEMPLATE]
15560 instantiate the configuration header FILE
15561
15562 Configuration files:
15563 $config_files
15564
15565 Configuration headers:
15566 $config_headers
15567
15568 Configuration commands:
15569 $config_commands
15570
15571 Report bugs to the package provider."
15572
15573 _ACEOF
15574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15576 ac_cs_version="\\
15577 binutils config.status 2.30.52
15578 configured by $0, generated by GNU Autoconf 2.69,
15579 with options \\"\$ac_cs_config\\"
15580
15581 Copyright (C) 2012 Free Software Foundation, Inc.
15582 This config.status script is free software; the Free Software Foundation
15583 gives unlimited permission to copy, distribute and modify it."
15584
15585 ac_pwd='$ac_pwd'
15586 srcdir='$srcdir'
15587 INSTALL='$INSTALL'
15588 MKDIR_P='$MKDIR_P'
15589 AWK='$AWK'
15590 test -n "\$AWK" || AWK=awk
15591 _ACEOF
15592
15593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15594 # The default lists apply if the user does not specify any file.
15595 ac_need_defaults=:
15596 while test $# != 0
15597 do
15598 case $1 in
15599 --*=?*)
15600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15602 ac_shift=:
15603 ;;
15604 --*=)
15605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15606 ac_optarg=
15607 ac_shift=:
15608 ;;
15609 *)
15610 ac_option=$1
15611 ac_optarg=$2
15612 ac_shift=shift
15613 ;;
15614 esac
15615
15616 case $ac_option in
15617 # Handling of the options.
15618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15619 ac_cs_recheck=: ;;
15620 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15621 $as_echo "$ac_cs_version"; exit ;;
15622 --config | --confi | --conf | --con | --co | --c )
15623 $as_echo "$ac_cs_config"; exit ;;
15624 --debug | --debu | --deb | --de | --d | -d )
15625 debug=: ;;
15626 --file | --fil | --fi | --f )
15627 $ac_shift
15628 case $ac_optarg in
15629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15630 '') as_fn_error $? "missing file argument" ;;
15631 esac
15632 as_fn_append CONFIG_FILES " '$ac_optarg'"
15633 ac_need_defaults=false;;
15634 --header | --heade | --head | --hea )
15635 $ac_shift
15636 case $ac_optarg in
15637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15638 esac
15639 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15640 ac_need_defaults=false;;
15641 --he | --h)
15642 # Conflict between --help and --header
15643 as_fn_error $? "ambiguous option: \`$1'
15644 Try \`$0 --help' for more information.";;
15645 --help | --hel | -h )
15646 $as_echo "$ac_cs_usage"; exit ;;
15647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15649 ac_cs_silent=: ;;
15650
15651 # This is an error.
15652 -*) as_fn_error $? "unrecognized option: \`$1'
15653 Try \`$0 --help' for more information." ;;
15654
15655 *) as_fn_append ac_config_targets " $1"
15656 ac_need_defaults=false ;;
15657
15658 esac
15659 shift
15660 done
15661
15662 ac_configure_extra_args=
15663
15664 if $ac_cs_silent; then
15665 exec 6>/dev/null
15666 ac_configure_extra_args="$ac_configure_extra_args --silent"
15667 fi
15668
15669 _ACEOF
15670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15671 if \$ac_cs_recheck; then
15672 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15673 shift
15674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15675 CONFIG_SHELL='$SHELL'
15676 export CONFIG_SHELL
15677 exec "\$@"
15678 fi
15679
15680 _ACEOF
15681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15682 exec 5>>config.log
15683 {
15684 echo
15685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15686 ## Running $as_me. ##
15687 _ASBOX
15688 $as_echo "$ac_log"
15689 } >&5
15690
15691 _ACEOF
15692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15693 #
15694 # INIT-COMMANDS
15695 #
15696 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15697
15698
15699 # The HP-UX ksh and POSIX shell print the target directory to stdout
15700 # if CDPATH is set.
15701 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15702
15703 sed_quote_subst='$sed_quote_subst'
15704 double_quote_subst='$double_quote_subst'
15705 delay_variable_subst='$delay_variable_subst'
15706 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15707 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15708 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15709 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15710 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15711 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15712 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15713 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15714 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15715 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15716 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15717 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15718 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15719 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15720 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15721 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15722 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15723 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15724 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15725 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15726 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15727 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15728 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15729 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15730 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15731 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15732 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15733 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15734 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15735 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15736 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15737 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15738 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15739 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15740 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15741 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15742 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15743 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15744 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15745 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15746 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15747 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15748 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15749 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15750 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15751 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15752 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15753 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15754 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"`'
15755 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15756 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15757 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15758 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15759 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15760 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15761 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15762 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15763 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15764 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15765 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15766 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15767 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15768 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15769 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15770 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15771 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15772 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15773 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15774 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15775 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15776 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15777 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15778 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15779 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15780 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15781 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15782 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15783 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15784 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15785 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15786 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15787 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15788 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15789 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15790 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15791 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15792 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15793 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15794 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15795 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15796 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15797 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15798 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15799 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15800 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15801 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15802 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15803 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15804 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15805 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15806 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15807 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15808 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15809 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15810 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15811 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15812 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15813 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15814 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15815 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15816 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15817 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15818 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15819 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15820 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15821 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15822 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15823 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15824 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15825 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15826
15827 LTCC='$LTCC'
15828 LTCFLAGS='$LTCFLAGS'
15829 compiler='$compiler_DEFAULT'
15830
15831 # A function that is used when there is no print builtin or printf.
15832 func_fallback_echo ()
15833 {
15834 eval 'cat <<_LTECHO_EOF
15835 \$1
15836 _LTECHO_EOF'
15837 }
15838
15839 # Quote evaled strings.
15840 for var in SHELL \
15841 ECHO \
15842 SED \
15843 GREP \
15844 EGREP \
15845 FGREP \
15846 LD \
15847 NM \
15848 LN_S \
15849 lt_SP2NL \
15850 lt_NL2SP \
15851 reload_flag \
15852 OBJDUMP \
15853 deplibs_check_method \
15854 file_magic_cmd \
15855 AR \
15856 AR_FLAGS \
15857 STRIP \
15858 RANLIB \
15859 CC \
15860 CFLAGS \
15861 compiler \
15862 lt_cv_sys_global_symbol_pipe \
15863 lt_cv_sys_global_symbol_to_cdecl \
15864 lt_cv_sys_global_symbol_to_c_name_address \
15865 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15866 lt_prog_compiler_no_builtin_flag \
15867 lt_prog_compiler_wl \
15868 lt_prog_compiler_pic \
15869 lt_prog_compiler_static \
15870 lt_cv_prog_compiler_c_o \
15871 need_locks \
15872 DSYMUTIL \
15873 NMEDIT \
15874 LIPO \
15875 OTOOL \
15876 OTOOL64 \
15877 shrext_cmds \
15878 export_dynamic_flag_spec \
15879 whole_archive_flag_spec \
15880 compiler_needs_object \
15881 with_gnu_ld \
15882 allow_undefined_flag \
15883 no_undefined_flag \
15884 hardcode_libdir_flag_spec \
15885 hardcode_libdir_flag_spec_ld \
15886 hardcode_libdir_separator \
15887 fix_srcfile_path \
15888 exclude_expsyms \
15889 include_expsyms \
15890 file_list_spec \
15891 variables_saved_for_relink \
15892 libname_spec \
15893 library_names_spec \
15894 soname_spec \
15895 install_override_mode \
15896 finish_eval \
15897 old_striplib \
15898 striplib; do
15899 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15900 *[\\\\\\\`\\"\\\$]*)
15901 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15902 ;;
15903 *)
15904 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15905 ;;
15906 esac
15907 done
15908
15909 # Double-quote double-evaled strings.
15910 for var in reload_cmds \
15911 old_postinstall_cmds \
15912 old_postuninstall_cmds \
15913 old_archive_cmds \
15914 extract_expsyms_cmds \
15915 old_archive_from_new_cmds \
15916 old_archive_from_expsyms_cmds \
15917 archive_cmds \
15918 archive_expsym_cmds \
15919 module_cmds \
15920 module_expsym_cmds \
15921 export_symbols_cmds \
15922 prelink_cmds \
15923 postinstall_cmds \
15924 postuninstall_cmds \
15925 finish_cmds \
15926 sys_lib_search_path_spec \
15927 sys_lib_dlsearch_path_spec; do
15928 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15929 *[\\\\\\\`\\"\\\$]*)
15930 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15931 ;;
15932 *)
15933 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15934 ;;
15935 esac
15936 done
15937
15938 ac_aux_dir='$ac_aux_dir'
15939 xsi_shell='$xsi_shell'
15940 lt_shell_append='$lt_shell_append'
15941
15942 # See if we are running on zsh, and set the options which allow our
15943 # commands through without removal of \ escapes INIT.
15944 if test -n "\${ZSH_VERSION+set}" ; then
15945 setopt NO_GLOB_SUBST
15946 fi
15947
15948
15949 PACKAGE='$PACKAGE'
15950 VERSION='$VERSION'
15951 TIMESTAMP='$TIMESTAMP'
15952 RM='$RM'
15953 ofile='$ofile'
15954
15955
15956
15957 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15958 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15959 # from automake.
15960 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15961 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15962 LINGUAS="${LINGUAS-%UNSET%}"
15963
15964
15965 _ACEOF
15966
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968
15969 # Handling of arguments.
15970 for ac_config_target in $ac_config_targets
15971 do
15972 case $ac_config_target in
15973 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15974 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15975 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15976 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15977 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15978 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15979 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15980
15981 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15982 esac
15983 done
15984
15985
15986 # If the user did not use the arguments to specify the items to instantiate,
15987 # then the envvar interface is used. Set only those that are not.
15988 # We use the long form for the default assignment because of an extremely
15989 # bizarre bug on SunOS 4.1.3.
15990 if $ac_need_defaults; then
15991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15994 fi
15995
15996 # Have a temporary directory for convenience. Make it in the build tree
15997 # simply because there is no reason against having it here, and in addition,
15998 # creating and moving files from /tmp can sometimes cause problems.
15999 # Hook for its removal unless debugging.
16000 # Note that there is a small window in which the directory will not be cleaned:
16001 # after its creation but before its name has been assigned to `$tmp'.
16002 $debug ||
16003 {
16004 tmp= ac_tmp=
16005 trap 'exit_status=$?
16006 : "${ac_tmp:=$tmp}"
16007 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16008 ' 0
16009 trap 'as_fn_exit 1' 1 2 13 15
16010 }
16011 # Create a (secure) tmp directory for tmp files.
16012
16013 {
16014 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16015 test -d "$tmp"
16016 } ||
16017 {
16018 tmp=./conf$$-$RANDOM
16019 (umask 077 && mkdir "$tmp")
16020 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16021 ac_tmp=$tmp
16022
16023 # Set up the scripts for CONFIG_FILES section.
16024 # No need to generate them if there are no CONFIG_FILES.
16025 # This happens for instance with `./config.status config.h'.
16026 if test -n "$CONFIG_FILES"; then
16027
16028
16029 ac_cr=`echo X | tr X '\015'`
16030 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16031 # But we know of no other shell where ac_cr would be empty at this
16032 # point, so we can use a bashism as a fallback.
16033 if test "x$ac_cr" = x; then
16034 eval ac_cr=\$\'\\r\'
16035 fi
16036 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16037 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16038 ac_cs_awk_cr='\\r'
16039 else
16040 ac_cs_awk_cr=$ac_cr
16041 fi
16042
16043 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16044 _ACEOF
16045
16046
16047 {
16048 echo "cat >conf$$subs.awk <<_ACEOF" &&
16049 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16050 echo "_ACEOF"
16051 } >conf$$subs.sh ||
16052 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16053 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16054 ac_delim='%!_!# '
16055 for ac_last_try in false false false false false :; do
16056 . ./conf$$subs.sh ||
16057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16058
16059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16060 if test $ac_delim_n = $ac_delim_num; then
16061 break
16062 elif $ac_last_try; then
16063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16064 else
16065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16066 fi
16067 done
16068 rm -f conf$$subs.sh
16069
16070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16071 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16072 _ACEOF
16073 sed -n '
16074 h
16075 s/^/S["/; s/!.*/"]=/
16076 p
16077 g
16078 s/^[^!]*!//
16079 :repl
16080 t repl
16081 s/'"$ac_delim"'$//
16082 t delim
16083 :nl
16084 h
16085 s/\(.\{148\}\)..*/\1/
16086 t more1
16087 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16088 p
16089 n
16090 b repl
16091 :more1
16092 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16093 p
16094 g
16095 s/.\{148\}//
16096 t nl
16097 :delim
16098 h
16099 s/\(.\{148\}\)..*/\1/
16100 t more2
16101 s/["\\]/\\&/g; s/^/"/; s/$/"/
16102 p
16103 b
16104 :more2
16105 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16106 p
16107 g
16108 s/.\{148\}//
16109 t delim
16110 ' <conf$$subs.awk | sed '
16111 /^[^""]/{
16112 N
16113 s/\n//
16114 }
16115 ' >>$CONFIG_STATUS || ac_write_fail=1
16116 rm -f conf$$subs.awk
16117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16118 _ACAWK
16119 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16120 for (key in S) S_is_set[key] = 1
16121 FS = "\a"
16122
16123 }
16124 {
16125 line = $ 0
16126 nfields = split(line, field, "@")
16127 substed = 0
16128 len = length(field[1])
16129 for (i = 2; i < nfields; i++) {
16130 key = field[i]
16131 keylen = length(key)
16132 if (S_is_set[key]) {
16133 value = S[key]
16134 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16135 len += length(value) + length(field[++i])
16136 substed = 1
16137 } else
16138 len += 1 + keylen
16139 }
16140
16141 print line
16142 }
16143
16144 _ACAWK
16145 _ACEOF
16146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16147 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16148 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16149 else
16150 cat
16151 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16152 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16153 _ACEOF
16154
16155 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16156 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16157 # trailing colons and then remove the whole line if VPATH becomes empty
16158 # (actually we leave an empty line to preserve line numbers).
16159 if test "x$srcdir" = x.; then
16160 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16161 h
16162 s///
16163 s/^/:/
16164 s/[ ]*$/:/
16165 s/:\$(srcdir):/:/g
16166 s/:\${srcdir}:/:/g
16167 s/:@srcdir@:/:/g
16168 s/^:*//
16169 s/:*$//
16170 x
16171 s/\(=[ ]*\).*/\1/
16172 G
16173 s/\n//
16174 s/^[^=]*=[ ]*$//
16175 }'
16176 fi
16177
16178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16179 fi # test -n "$CONFIG_FILES"
16180
16181 # Set up the scripts for CONFIG_HEADERS section.
16182 # No need to generate them if there are no CONFIG_HEADERS.
16183 # This happens for instance with `./config.status Makefile'.
16184 if test -n "$CONFIG_HEADERS"; then
16185 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16186 BEGIN {
16187 _ACEOF
16188
16189 # Transform confdefs.h into an awk script `defines.awk', embedded as
16190 # here-document in config.status, that substitutes the proper values into
16191 # config.h.in to produce config.h.
16192
16193 # Create a delimiter string that does not exist in confdefs.h, to ease
16194 # handling of long lines.
16195 ac_delim='%!_!# '
16196 for ac_last_try in false false :; do
16197 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16198 if test -z "$ac_tt"; then
16199 break
16200 elif $ac_last_try; then
16201 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16202 else
16203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16204 fi
16205 done
16206
16207 # For the awk script, D is an array of macro values keyed by name,
16208 # likewise P contains macro parameters if any. Preserve backslash
16209 # newline sequences.
16210
16211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16212 sed -n '
16213 s/.\{148\}/&'"$ac_delim"'/g
16214 t rset
16215 :rset
16216 s/^[ ]*#[ ]*define[ ][ ]*/ /
16217 t def
16218 d
16219 :def
16220 s/\\$//
16221 t bsnl
16222 s/["\\]/\\&/g
16223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16224 D["\1"]=" \3"/p
16225 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16226 d
16227 :bsnl
16228 s/["\\]/\\&/g
16229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16230 D["\1"]=" \3\\\\\\n"\\/p
16231 t cont
16232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16233 t cont
16234 d
16235 :cont
16236 n
16237 s/.\{148\}/&'"$ac_delim"'/g
16238 t clear
16239 :clear
16240 s/\\$//
16241 t bsnlc
16242 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16243 d
16244 :bsnlc
16245 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16246 b cont
16247 ' <confdefs.h | sed '
16248 s/'"$ac_delim"'/"\\\
16249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16250
16251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16252 for (key in D) D_is_set[key] = 1
16253 FS = "\a"
16254 }
16255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16256 line = \$ 0
16257 split(line, arg, " ")
16258 if (arg[1] == "#") {
16259 defundef = arg[2]
16260 mac1 = arg[3]
16261 } else {
16262 defundef = substr(arg[1], 2)
16263 mac1 = arg[2]
16264 }
16265 split(mac1, mac2, "(") #)
16266 macro = mac2[1]
16267 prefix = substr(line, 1, index(line, defundef) - 1)
16268 if (D_is_set[macro]) {
16269 # Preserve the white space surrounding the "#".
16270 print prefix "define", macro P[macro] D[macro]
16271 next
16272 } else {
16273 # Replace #undef with comments. This is necessary, for example,
16274 # in the case of _POSIX_SOURCE, which is predefined and required
16275 # on some systems where configure will not decide to define it.
16276 if (defundef == "undef") {
16277 print "/*", prefix defundef, macro, "*/"
16278 next
16279 }
16280 }
16281 }
16282 { print }
16283 _ACAWK
16284 _ACEOF
16285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16286 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16287 fi # test -n "$CONFIG_HEADERS"
16288
16289
16290 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16291 shift
16292 for ac_tag
16293 do
16294 case $ac_tag in
16295 :[FHLC]) ac_mode=$ac_tag; continue;;
16296 esac
16297 case $ac_mode$ac_tag in
16298 :[FHL]*:*);;
16299 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16300 :[FH]-) ac_tag=-:-;;
16301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16302 esac
16303 ac_save_IFS=$IFS
16304 IFS=:
16305 set x $ac_tag
16306 IFS=$ac_save_IFS
16307 shift
16308 ac_file=$1
16309 shift
16310
16311 case $ac_mode in
16312 :L) ac_source=$1;;
16313 :[FH])
16314 ac_file_inputs=
16315 for ac_f
16316 do
16317 case $ac_f in
16318 -) ac_f="$ac_tmp/stdin";;
16319 *) # Look for the file first in the build tree, then in the source tree
16320 # (if the path is not absolute). The absolute path cannot be DOS-style,
16321 # because $ac_f cannot contain `:'.
16322 test -f "$ac_f" ||
16323 case $ac_f in
16324 [\\/$]*) false;;
16325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16326 esac ||
16327 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16328 esac
16329 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16330 as_fn_append ac_file_inputs " '$ac_f'"
16331 done
16332
16333 # Let's still pretend it is `configure' which instantiates (i.e., don't
16334 # use $as_me), people would be surprised to read:
16335 # /* config.h. Generated by config.status. */
16336 configure_input='Generated from '`
16337 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16338 `' by configure.'
16339 if test x"$ac_file" != x-; then
16340 configure_input="$ac_file. $configure_input"
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16342 $as_echo "$as_me: creating $ac_file" >&6;}
16343 fi
16344 # Neutralize special characters interpreted by sed in replacement strings.
16345 case $configure_input in #(
16346 *\&* | *\|* | *\\* )
16347 ac_sed_conf_input=`$as_echo "$configure_input" |
16348 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16349 *) ac_sed_conf_input=$configure_input;;
16350 esac
16351
16352 case $ac_tag in
16353 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16355 esac
16356 ;;
16357 esac
16358
16359 ac_dir=`$as_dirname -- "$ac_file" ||
16360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16361 X"$ac_file" : 'X\(//\)[^/]' \| \
16362 X"$ac_file" : 'X\(//\)$' \| \
16363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16364 $as_echo X"$ac_file" |
16365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16366 s//\1/
16367 q
16368 }
16369 /^X\(\/\/\)[^/].*/{
16370 s//\1/
16371 q
16372 }
16373 /^X\(\/\/\)$/{
16374 s//\1/
16375 q
16376 }
16377 /^X\(\/\).*/{
16378 s//\1/
16379 q
16380 }
16381 s/.*/./; q'`
16382 as_dir="$ac_dir"; as_fn_mkdir_p
16383 ac_builddir=.
16384
16385 case "$ac_dir" in
16386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16387 *)
16388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16389 # A ".." for each directory in $ac_dir_suffix.
16390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16391 case $ac_top_builddir_sub in
16392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16394 esac ;;
16395 esac
16396 ac_abs_top_builddir=$ac_pwd
16397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16398 # for backward compatibility:
16399 ac_top_builddir=$ac_top_build_prefix
16400
16401 case $srcdir in
16402 .) # We are building in place.
16403 ac_srcdir=.
16404 ac_top_srcdir=$ac_top_builddir_sub
16405 ac_abs_top_srcdir=$ac_pwd ;;
16406 [\\/]* | ?:[\\/]* ) # Absolute name.
16407 ac_srcdir=$srcdir$ac_dir_suffix;
16408 ac_top_srcdir=$srcdir
16409 ac_abs_top_srcdir=$srcdir ;;
16410 *) # Relative name.
16411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16412 ac_top_srcdir=$ac_top_build_prefix$srcdir
16413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16414 esac
16415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16416
16417
16418 case $ac_mode in
16419 :F)
16420 #
16421 # CONFIG_FILE
16422 #
16423
16424 case $INSTALL in
16425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16426 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16427 esac
16428 ac_MKDIR_P=$MKDIR_P
16429 case $MKDIR_P in
16430 [\\/$]* | ?:[\\/]* ) ;;
16431 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16432 esac
16433 _ACEOF
16434
16435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16436 # If the template does not know about datarootdir, expand it.
16437 # FIXME: This hack should be removed a few years after 2.60.
16438 ac_datarootdir_hack=; ac_datarootdir_seen=
16439 ac_sed_dataroot='
16440 /datarootdir/ {
16441 p
16442 q
16443 }
16444 /@datadir@/p
16445 /@docdir@/p
16446 /@infodir@/p
16447 /@localedir@/p
16448 /@mandir@/p'
16449 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16450 *datarootdir*) ac_datarootdir_seen=yes;;
16451 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16453 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16454 _ACEOF
16455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16456 ac_datarootdir_hack='
16457 s&@datadir@&$datadir&g
16458 s&@docdir@&$docdir&g
16459 s&@infodir@&$infodir&g
16460 s&@localedir@&$localedir&g
16461 s&@mandir@&$mandir&g
16462 s&\\\${datarootdir}&$datarootdir&g' ;;
16463 esac
16464 _ACEOF
16465
16466 # Neutralize VPATH when `$srcdir' = `.'.
16467 # Shell code in configure.ac might set extrasub.
16468 # FIXME: do we really want to maintain this feature?
16469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16470 ac_sed_extra="$ac_vpsub
16471 $extrasub
16472 _ACEOF
16473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16474 :t
16475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16476 s|@configure_input@|$ac_sed_conf_input|;t t
16477 s&@top_builddir@&$ac_top_builddir_sub&;t t
16478 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16479 s&@srcdir@&$ac_srcdir&;t t
16480 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16481 s&@top_srcdir@&$ac_top_srcdir&;t t
16482 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16483 s&@builddir@&$ac_builddir&;t t
16484 s&@abs_builddir@&$ac_abs_builddir&;t t
16485 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16486 s&@INSTALL@&$ac_INSTALL&;t t
16487 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16488 $ac_datarootdir_hack
16489 "
16490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16491 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16492
16493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16494 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16496 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16498 which seems to be undefined. Please make sure it is defined" >&5
16499 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16500 which seems to be undefined. Please make sure it is defined" >&2;}
16501
16502 rm -f "$ac_tmp/stdin"
16503 case $ac_file in
16504 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16505 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16506 esac \
16507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16508 ;;
16509 :H)
16510 #
16511 # CONFIG_HEADER
16512 #
16513 if test x"$ac_file" != x-; then
16514 {
16515 $as_echo "/* $configure_input */" \
16516 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16517 } >"$ac_tmp/config.h" \
16518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16519 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16521 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16522 else
16523 rm -f "$ac_file"
16524 mv "$ac_tmp/config.h" "$ac_file" \
16525 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16526 fi
16527 else
16528 $as_echo "/* $configure_input */" \
16529 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16530 || as_fn_error $? "could not create -" "$LINENO" 5
16531 fi
16532 # Compute "$ac_file"'s index in $config_headers.
16533 _am_arg="$ac_file"
16534 _am_stamp_count=1
16535 for _am_header in $config_headers :; do
16536 case $_am_header in
16537 $_am_arg | $_am_arg:* )
16538 break ;;
16539 * )
16540 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16541 esac
16542 done
16543 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16544 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16545 X"$_am_arg" : 'X\(//\)[^/]' \| \
16546 X"$_am_arg" : 'X\(//\)$' \| \
16547 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16548 $as_echo X"$_am_arg" |
16549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16550 s//\1/
16551 q
16552 }
16553 /^X\(\/\/\)[^/].*/{
16554 s//\1/
16555 q
16556 }
16557 /^X\(\/\/\)$/{
16558 s//\1/
16559 q
16560 }
16561 /^X\(\/\).*/{
16562 s//\1/
16563 q
16564 }
16565 s/.*/./; q'`/stamp-h$_am_stamp_count
16566 ;;
16567
16568 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16569 $as_echo "$as_me: executing $ac_file commands" >&6;}
16570 ;;
16571 esac
16572
16573
16574 case $ac_file$ac_mode in
16575 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16576 # Older Autoconf quotes --file arguments for eval, but not when files
16577 # are listed without --file. Let's play safe and only enable the eval
16578 # if we detect the quoting.
16579 case $CONFIG_FILES in
16580 *\'*) eval set x "$CONFIG_FILES" ;;
16581 *) set x $CONFIG_FILES ;;
16582 esac
16583 shift
16584 for mf
16585 do
16586 # Strip MF so we end up with the name of the file.
16587 mf=`echo "$mf" | sed -e 's/:.*$//'`
16588 # Check whether this is an Automake generated Makefile or not.
16589 # We used to match only the files named 'Makefile.in', but
16590 # some people rename them; so instead we look at the file content.
16591 # Grep'ing the first line is not enough: some people post-process
16592 # each Makefile.in and add a new line on top of each file to say so.
16593 # Grep'ing the whole file is not good either: AIX grep has a line
16594 # limit of 2048, but all sed's we know have understand at least 4000.
16595 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16596 dirpart=`$as_dirname -- "$mf" ||
16597 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16598 X"$mf" : 'X\(//\)[^/]' \| \
16599 X"$mf" : 'X\(//\)$' \| \
16600 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16601 $as_echo X"$mf" |
16602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16603 s//\1/
16604 q
16605 }
16606 /^X\(\/\/\)[^/].*/{
16607 s//\1/
16608 q
16609 }
16610 /^X\(\/\/\)$/{
16611 s//\1/
16612 q
16613 }
16614 /^X\(\/\).*/{
16615 s//\1/
16616 q
16617 }
16618 s/.*/./; q'`
16619 else
16620 continue
16621 fi
16622 # Extract the definition of DEPDIR, am__include, and am__quote
16623 # from the Makefile without running 'make'.
16624 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16625 test -z "$DEPDIR" && continue
16626 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16627 test -z "$am__include" && continue
16628 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16629 # Find all dependency output files, they are included files with
16630 # $(DEPDIR) in their names. We invoke sed twice because it is the
16631 # simplest approach to changing $(DEPDIR) to its actual value in the
16632 # expansion.
16633 for file in `sed -n "
16634 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16635 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16636 # Make sure the directory exists.
16637 test -f "$dirpart/$file" && continue
16638 fdir=`$as_dirname -- "$file" ||
16639 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16640 X"$file" : 'X\(//\)[^/]' \| \
16641 X"$file" : 'X\(//\)$' \| \
16642 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16643 $as_echo X"$file" |
16644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16645 s//\1/
16646 q
16647 }
16648 /^X\(\/\/\)[^/].*/{
16649 s//\1/
16650 q
16651 }
16652 /^X\(\/\/\)$/{
16653 s//\1/
16654 q
16655 }
16656 /^X\(\/\).*/{
16657 s//\1/
16658 q
16659 }
16660 s/.*/./; q'`
16661 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16662 # echo "creating $dirpart/$file"
16663 echo '# dummy' > "$dirpart/$file"
16664 done
16665 done
16666 }
16667 ;;
16668 "libtool":C)
16669
16670 # See if we are running on zsh, and set the options which allow our
16671 # commands through without removal of \ escapes.
16672 if test -n "${ZSH_VERSION+set}" ; then
16673 setopt NO_GLOB_SUBST
16674 fi
16675
16676 cfgfile="${ofile}T"
16677 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16678 $RM "$cfgfile"
16679
16680 cat <<_LT_EOF >> "$cfgfile"
16681 #! $SHELL
16682
16683 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16684 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16685 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16686 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16687 #
16688 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16689 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16690 # Written by Gordon Matzigkeit, 1996
16691 #
16692 # This file is part of GNU Libtool.
16693 #
16694 # GNU Libtool is free software; you can redistribute it and/or
16695 # modify it under the terms of the GNU General Public License as
16696 # published by the Free Software Foundation; either version 2 of
16697 # the License, or (at your option) any later version.
16698 #
16699 # As a special exception to the GNU General Public License,
16700 # if you distribute this file as part of a program or library that
16701 # is built using GNU Libtool, you may include this file under the
16702 # same distribution terms that you use for the rest of that program.
16703 #
16704 # GNU Libtool is distributed in the hope that it will be useful,
16705 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16706 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16707 # GNU General Public License for more details.
16708 #
16709 # You should have received a copy of the GNU General Public License
16710 # along with GNU Libtool; see the file COPYING. If not, a copy
16711 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16712 # obtained by writing to the Free Software Foundation, Inc.,
16713 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16714
16715
16716 # The names of the tagged configurations supported by this script.
16717 available_tags=""
16718
16719 # ### BEGIN LIBTOOL CONFIG
16720
16721 # Which release of libtool.m4 was used?
16722 macro_version=$macro_version
16723 macro_revision=$macro_revision
16724
16725 # Whether or not to build shared libraries.
16726 build_libtool_libs=$enable_shared
16727
16728 # Whether or not to build static libraries.
16729 build_old_libs=$enable_static
16730
16731 # What type of objects to build.
16732 pic_mode=$pic_mode
16733
16734 # Whether or not to optimize for fast installation.
16735 fast_install=$enable_fast_install
16736
16737 # Shell to use when invoking shell scripts.
16738 SHELL=$lt_SHELL
16739
16740 # An echo program that protects backslashes.
16741 ECHO=$lt_ECHO
16742
16743 # The host system.
16744 host_alias=$host_alias
16745 host=$host
16746 host_os=$host_os
16747
16748 # The build system.
16749 build_alias=$build_alias
16750 build=$build
16751 build_os=$build_os
16752
16753 # A sed program that does not truncate output.
16754 SED=$lt_SED
16755
16756 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16757 Xsed="\$SED -e 1s/^X//"
16758
16759 # A grep program that handles long lines.
16760 GREP=$lt_GREP
16761
16762 # An ERE matcher.
16763 EGREP=$lt_EGREP
16764
16765 # A literal string matcher.
16766 FGREP=$lt_FGREP
16767
16768 # A BSD- or MS-compatible name lister.
16769 NM=$lt_NM
16770
16771 # Whether we need soft or hard links.
16772 LN_S=$lt_LN_S
16773
16774 # What is the maximum length of a command?
16775 max_cmd_len=$max_cmd_len
16776
16777 # Object file suffix (normally "o").
16778 objext=$ac_objext
16779
16780 # Executable file suffix (normally "").
16781 exeext=$exeext
16782
16783 # whether the shell understands "unset".
16784 lt_unset=$lt_unset
16785
16786 # turn spaces into newlines.
16787 SP2NL=$lt_lt_SP2NL
16788
16789 # turn newlines into spaces.
16790 NL2SP=$lt_lt_NL2SP
16791
16792 # An object symbol dumper.
16793 OBJDUMP=$lt_OBJDUMP
16794
16795 # Method to check whether dependent libraries are shared objects.
16796 deplibs_check_method=$lt_deplibs_check_method
16797
16798 # Command to use when deplibs_check_method == "file_magic".
16799 file_magic_cmd=$lt_file_magic_cmd
16800
16801 # The archiver.
16802 AR=$lt_AR
16803 AR_FLAGS=$lt_AR_FLAGS
16804
16805 # A symbol stripping program.
16806 STRIP=$lt_STRIP
16807
16808 # Commands used to install an old-style archive.
16809 RANLIB=$lt_RANLIB
16810 old_postinstall_cmds=$lt_old_postinstall_cmds
16811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16812
16813 # Whether to use a lock for old archive extraction.
16814 lock_old_archive_extraction=$lock_old_archive_extraction
16815
16816 # A C compiler.
16817 LTCC=$lt_CC
16818
16819 # LTCC compiler flags.
16820 LTCFLAGS=$lt_CFLAGS
16821
16822 # Take the output of nm and produce a listing of raw symbols and C names.
16823 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16824
16825 # Transform the output of nm in a proper C declaration.
16826 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16827
16828 # Transform the output of nm in a C name address pair.
16829 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16830
16831 # Transform the output of nm in a C name address pair when lib prefix is needed.
16832 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16833
16834 # The name of the directory that contains temporary libtool files.
16835 objdir=$objdir
16836
16837 # Used to examine libraries when file_magic_cmd begins with "file".
16838 MAGIC_CMD=$MAGIC_CMD
16839
16840 # Must we lock files when doing compilation?
16841 need_locks=$lt_need_locks
16842
16843 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16844 DSYMUTIL=$lt_DSYMUTIL
16845
16846 # Tool to change global to local symbols on Mac OS X.
16847 NMEDIT=$lt_NMEDIT
16848
16849 # Tool to manipulate fat objects and archives on Mac OS X.
16850 LIPO=$lt_LIPO
16851
16852 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16853 OTOOL=$lt_OTOOL
16854
16855 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16856 OTOOL64=$lt_OTOOL64
16857
16858 # Old archive suffix (normally "a").
16859 libext=$libext
16860
16861 # Shared library suffix (normally ".so").
16862 shrext_cmds=$lt_shrext_cmds
16863
16864 # The commands to extract the exported symbol list from a shared archive.
16865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16866
16867 # Variables whose values should be saved in libtool wrapper scripts and
16868 # restored at link time.
16869 variables_saved_for_relink=$lt_variables_saved_for_relink
16870
16871 # Do we need the "lib" prefix for modules?
16872 need_lib_prefix=$need_lib_prefix
16873
16874 # Do we need a version for libraries?
16875 need_version=$need_version
16876
16877 # Library versioning type.
16878 version_type=$version_type
16879
16880 # Shared library runtime path variable.
16881 runpath_var=$runpath_var
16882
16883 # Shared library path variable.
16884 shlibpath_var=$shlibpath_var
16885
16886 # Is shlibpath searched before the hard-coded library search path?
16887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16888
16889 # Format of library name prefix.
16890 libname_spec=$lt_libname_spec
16891
16892 # List of archive names. First name is the real one, the rest are links.
16893 # The last name is the one that the linker finds with -lNAME
16894 library_names_spec=$lt_library_names_spec
16895
16896 # The coded name of the library, if different from the real name.
16897 soname_spec=$lt_soname_spec
16898
16899 # Permission mode override for installation of shared libraries.
16900 install_override_mode=$lt_install_override_mode
16901
16902 # Command to use after installation of a shared archive.
16903 postinstall_cmds=$lt_postinstall_cmds
16904
16905 # Command to use after uninstallation of a shared archive.
16906 postuninstall_cmds=$lt_postuninstall_cmds
16907
16908 # Commands used to finish a libtool library installation in a directory.
16909 finish_cmds=$lt_finish_cmds
16910
16911 # As "finish_cmds", except a single script fragment to be evaled but
16912 # not shown.
16913 finish_eval=$lt_finish_eval
16914
16915 # Whether we should hardcode library paths into libraries.
16916 hardcode_into_libs=$hardcode_into_libs
16917
16918 # Compile-time system search path for libraries.
16919 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16920
16921 # Run-time system search path for libraries.
16922 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16923
16924 # Whether dlopen is supported.
16925 dlopen_support=$enable_dlopen
16926
16927 # Whether dlopen of programs is supported.
16928 dlopen_self=$enable_dlopen_self
16929
16930 # Whether dlopen of statically linked programs is supported.
16931 dlopen_self_static=$enable_dlopen_self_static
16932
16933 # Commands to strip libraries.
16934 old_striplib=$lt_old_striplib
16935 striplib=$lt_striplib
16936
16937
16938 # The linker used to build libraries.
16939 LD=$lt_LD
16940
16941 # How to create reloadable object files.
16942 reload_flag=$lt_reload_flag
16943 reload_cmds=$lt_reload_cmds
16944
16945 # Commands used to build an old-style archive.
16946 old_archive_cmds=$lt_old_archive_cmds
16947
16948 # A language specific compiler.
16949 CC=$lt_compiler
16950
16951 # Is the compiler the GNU compiler?
16952 with_gcc=$GCC
16953
16954 # Compiler flag to turn off builtin functions.
16955 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16956
16957 # How to pass a linker flag through the compiler.
16958 wl=$lt_lt_prog_compiler_wl
16959
16960 # Additional compiler flags for building library objects.
16961 pic_flag=$lt_lt_prog_compiler_pic
16962
16963 # Compiler flag to prevent dynamic linking.
16964 link_static_flag=$lt_lt_prog_compiler_static
16965
16966 # Does compiler simultaneously support -c and -o options?
16967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16968
16969 # Whether or not to add -lc for building shared libraries.
16970 build_libtool_need_lc=$archive_cmds_need_lc
16971
16972 # Whether or not to disallow shared libs when runtime libs are static.
16973 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16974
16975 # Compiler flag to allow reflexive dlopens.
16976 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16977
16978 # Compiler flag to generate shared objects directly from archives.
16979 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16980
16981 # Whether the compiler copes with passing no objects directly.
16982 compiler_needs_object=$lt_compiler_needs_object
16983
16984 # Create an old-style archive from a shared archive.
16985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16986
16987 # Create a temporary old-style archive to link instead of a shared archive.
16988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16989
16990 # Commands used to build a shared archive.
16991 archive_cmds=$lt_archive_cmds
16992 archive_expsym_cmds=$lt_archive_expsym_cmds
16993
16994 # Commands used to build a loadable module if different from building
16995 # a shared archive.
16996 module_cmds=$lt_module_cmds
16997 module_expsym_cmds=$lt_module_expsym_cmds
16998
16999 # Whether we are building with GNU ld or not.
17000 with_gnu_ld=$lt_with_gnu_ld
17001
17002 # Flag that allows shared libraries with undefined symbols to be built.
17003 allow_undefined_flag=$lt_allow_undefined_flag
17004
17005 # Flag that enforces no undefined symbols.
17006 no_undefined_flag=$lt_no_undefined_flag
17007
17008 # Flag to hardcode \$libdir into a binary during linking.
17009 # This must work even if \$libdir does not exist
17010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17011
17012 # If ld is used when linking, flag to hardcode \$libdir into a binary
17013 # during linking. This must work even if \$libdir does not exist.
17014 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17015
17016 # Whether we need a single "-rpath" flag with a separated argument.
17017 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17018
17019 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17020 # DIR into the resulting binary.
17021 hardcode_direct=$hardcode_direct
17022
17023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17024 # DIR into the resulting binary and the resulting library dependency is
17025 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17026 # library is relocated.
17027 hardcode_direct_absolute=$hardcode_direct_absolute
17028
17029 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17030 # into the resulting binary.
17031 hardcode_minus_L=$hardcode_minus_L
17032
17033 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17034 # into the resulting binary.
17035 hardcode_shlibpath_var=$hardcode_shlibpath_var
17036
17037 # Set to "yes" if building a shared library automatically hardcodes DIR
17038 # into the library and all subsequent libraries and executables linked
17039 # against it.
17040 hardcode_automatic=$hardcode_automatic
17041
17042 # Set to yes if linker adds runtime paths of dependent libraries
17043 # to runtime path list.
17044 inherit_rpath=$inherit_rpath
17045
17046 # Whether libtool must link a program against all its dependency libraries.
17047 link_all_deplibs=$link_all_deplibs
17048
17049 # Fix the shell variable \$srcfile for the compiler.
17050 fix_srcfile_path=$lt_fix_srcfile_path
17051
17052 # Set to "yes" if exported symbols are required.
17053 always_export_symbols=$always_export_symbols
17054
17055 # The commands to list exported symbols.
17056 export_symbols_cmds=$lt_export_symbols_cmds
17057
17058 # Symbols that should not be listed in the preloaded symbols.
17059 exclude_expsyms=$lt_exclude_expsyms
17060
17061 # Symbols that must always be exported.
17062 include_expsyms=$lt_include_expsyms
17063
17064 # Commands necessary for linking programs (against libraries) with templates.
17065 prelink_cmds=$lt_prelink_cmds
17066
17067 # Specify filename containing input files.
17068 file_list_spec=$lt_file_list_spec
17069
17070 # How to hardcode a shared library path into an executable.
17071 hardcode_action=$hardcode_action
17072
17073 # ### END LIBTOOL CONFIG
17074
17075 _LT_EOF
17076
17077 case $host_os in
17078 aix3*)
17079 cat <<\_LT_EOF >> "$cfgfile"
17080 # AIX sometimes has problems with the GCC collect2 program. For some
17081 # reason, if we set the COLLECT_NAMES environment variable, the problems
17082 # vanish in a puff of smoke.
17083 if test "X${COLLECT_NAMES+set}" != Xset; then
17084 COLLECT_NAMES=
17085 export COLLECT_NAMES
17086 fi
17087 _LT_EOF
17088 ;;
17089 esac
17090
17091
17092 ltmain="$ac_aux_dir/ltmain.sh"
17093
17094
17095 # We use sed instead of cat because bash on DJGPP gets confused if
17096 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17097 # text mode, it properly converts lines to CR/LF. This bash problem
17098 # is reportedly fixed, but why not run on old versions too?
17099 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17100 || (rm -f "$cfgfile"; exit 1)
17101
17102 case $xsi_shell in
17103 yes)
17104 cat << \_LT_EOF >> "$cfgfile"
17105
17106 # func_dirname file append nondir_replacement
17107 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17108 # otherwise set result to NONDIR_REPLACEMENT.
17109 func_dirname ()
17110 {
17111 case ${1} in
17112 */*) func_dirname_result="${1%/*}${2}" ;;
17113 * ) func_dirname_result="${3}" ;;
17114 esac
17115 }
17116
17117 # func_basename file
17118 func_basename ()
17119 {
17120 func_basename_result="${1##*/}"
17121 }
17122
17123 # func_dirname_and_basename file append nondir_replacement
17124 # perform func_basename and func_dirname in a single function
17125 # call:
17126 # dirname: Compute the dirname of FILE. If nonempty,
17127 # add APPEND to the result, otherwise set result
17128 # to NONDIR_REPLACEMENT.
17129 # value returned in "$func_dirname_result"
17130 # basename: Compute filename of FILE.
17131 # value retuned in "$func_basename_result"
17132 # Implementation must be kept synchronized with func_dirname
17133 # and func_basename. For efficiency, we do not delegate to
17134 # those functions but instead duplicate the functionality here.
17135 func_dirname_and_basename ()
17136 {
17137 case ${1} in
17138 */*) func_dirname_result="${1%/*}${2}" ;;
17139 * ) func_dirname_result="${3}" ;;
17140 esac
17141 func_basename_result="${1##*/}"
17142 }
17143
17144 # func_stripname prefix suffix name
17145 # strip PREFIX and SUFFIX off of NAME.
17146 # PREFIX and SUFFIX must not contain globbing or regex special
17147 # characters, hashes, percent signs, but SUFFIX may contain a leading
17148 # dot (in which case that matches only a dot).
17149 func_stripname ()
17150 {
17151 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17152 # positional parameters, so assign one to ordinary parameter first.
17153 func_stripname_result=${3}
17154 func_stripname_result=${func_stripname_result#"${1}"}
17155 func_stripname_result=${func_stripname_result%"${2}"}
17156 }
17157
17158 # func_opt_split
17159 func_opt_split ()
17160 {
17161 func_opt_split_opt=${1%%=*}
17162 func_opt_split_arg=${1#*=}
17163 }
17164
17165 # func_lo2o object
17166 func_lo2o ()
17167 {
17168 case ${1} in
17169 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17170 *) func_lo2o_result=${1} ;;
17171 esac
17172 }
17173
17174 # func_xform libobj-or-source
17175 func_xform ()
17176 {
17177 func_xform_result=${1%.*}.lo
17178 }
17179
17180 # func_arith arithmetic-term...
17181 func_arith ()
17182 {
17183 func_arith_result=$(( $* ))
17184 }
17185
17186 # func_len string
17187 # STRING may not start with a hyphen.
17188 func_len ()
17189 {
17190 func_len_result=${#1}
17191 }
17192
17193 _LT_EOF
17194 ;;
17195 *) # Bourne compatible functions.
17196 cat << \_LT_EOF >> "$cfgfile"
17197
17198 # func_dirname file append nondir_replacement
17199 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17200 # otherwise set result to NONDIR_REPLACEMENT.
17201 func_dirname ()
17202 {
17203 # Extract subdirectory from the argument.
17204 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17205 if test "X$func_dirname_result" = "X${1}"; then
17206 func_dirname_result="${3}"
17207 else
17208 func_dirname_result="$func_dirname_result${2}"
17209 fi
17210 }
17211
17212 # func_basename file
17213 func_basename ()
17214 {
17215 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17216 }
17217
17218
17219 # func_stripname prefix suffix name
17220 # strip PREFIX and SUFFIX off of NAME.
17221 # PREFIX and SUFFIX must not contain globbing or regex special
17222 # characters, hashes, percent signs, but SUFFIX may contain a leading
17223 # dot (in which case that matches only a dot).
17224 # func_strip_suffix prefix name
17225 func_stripname ()
17226 {
17227 case ${2} in
17228 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17229 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17230 esac
17231 }
17232
17233 # sed scripts:
17234 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17235 my_sed_long_arg='1s/^-[^=]*=//'
17236
17237 # func_opt_split
17238 func_opt_split ()
17239 {
17240 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17241 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17242 }
17243
17244 # func_lo2o object
17245 func_lo2o ()
17246 {
17247 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17248 }
17249
17250 # func_xform libobj-or-source
17251 func_xform ()
17252 {
17253 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17254 }
17255
17256 # func_arith arithmetic-term...
17257 func_arith ()
17258 {
17259 func_arith_result=`expr "$@"`
17260 }
17261
17262 # func_len string
17263 # STRING may not start with a hyphen.
17264 func_len ()
17265 {
17266 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17267 }
17268
17269 _LT_EOF
17270 esac
17271
17272 case $lt_shell_append in
17273 yes)
17274 cat << \_LT_EOF >> "$cfgfile"
17275
17276 # func_append var value
17277 # Append VALUE to the end of shell variable VAR.
17278 func_append ()
17279 {
17280 eval "$1+=\$2"
17281 }
17282 _LT_EOF
17283 ;;
17284 *)
17285 cat << \_LT_EOF >> "$cfgfile"
17286
17287 # func_append var value
17288 # Append VALUE to the end of shell variable VAR.
17289 func_append ()
17290 {
17291 eval "$1=\$$1\$2"
17292 }
17293
17294 _LT_EOF
17295 ;;
17296 esac
17297
17298
17299 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17300 || (rm -f "$cfgfile"; exit 1)
17301
17302 mv -f "$cfgfile" "$ofile" ||
17303 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17304 chmod +x "$ofile"
17305
17306 ;;
17307 "default-1":C)
17308 for ac_file in $CONFIG_FILES; do
17309 # Support "outfile[:infile[:infile...]]"
17310 case "$ac_file" in
17311 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17312 esac
17313 # PO directories have a Makefile.in generated from Makefile.in.in.
17314 case "$ac_file" in */Makefile.in)
17315 # Adjust a relative srcdir.
17316 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17317 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17318 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17319 # In autoconf-2.13 it is called $ac_given_srcdir.
17320 # In autoconf-2.50 it is called $srcdir.
17321 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17322 case "$ac_given_srcdir" in
17323 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17324 /*) top_srcdir="$ac_given_srcdir" ;;
17325 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17326 esac
17327 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17328 rm -f "$ac_dir/POTFILES"
17329 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17330 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17331 POMAKEFILEDEPS="POTFILES.in"
17332 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17333 # on $ac_dir but don't depend on user-specified configuration
17334 # parameters.
17335 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17336 # The LINGUAS file contains the set of available languages.
17337 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17338 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17339 fi
17340 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17341 # Hide the ALL_LINGUAS assigment from automake.
17342 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17343 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17344 else
17345 # The set of available languages was given in configure.ac.
17346 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17347 fi
17348 case "$ac_given_srcdir" in
17349 .) srcdirpre= ;;
17350 *) srcdirpre='$(srcdir)/' ;;
17351 esac
17352 POFILES=
17353 GMOFILES=
17354 UPDATEPOFILES=
17355 DUMMYPOFILES=
17356 for lang in $ALL_LINGUAS; do
17357 POFILES="$POFILES $srcdirpre$lang.po"
17358 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17359 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17360 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17361 done
17362 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17363 # environment variable.
17364 INST_LINGUAS=
17365 if test -n "$ALL_LINGUAS"; then
17366 for presentlang in $ALL_LINGUAS; do
17367 useit=no
17368 if test "%UNSET%" != "$LINGUAS"; then
17369 desiredlanguages="$LINGUAS"
17370 else
17371 desiredlanguages="$ALL_LINGUAS"
17372 fi
17373 for desiredlang in $desiredlanguages; do
17374 # Use the presentlang catalog if desiredlang is
17375 # a. equal to presentlang, or
17376 # b. a variant of presentlang (because in this case,
17377 # presentlang can be used as a fallback for messages
17378 # which are not translated in the desiredlang catalog).
17379 case "$desiredlang" in
17380 "$presentlang"*) useit=yes;;
17381 esac
17382 done
17383 if test $useit = yes; then
17384 INST_LINGUAS="$INST_LINGUAS $presentlang"
17385 fi
17386 done
17387 fi
17388 CATALOGS=
17389 if test -n "$INST_LINGUAS"; then
17390 for lang in $INST_LINGUAS; do
17391 CATALOGS="$CATALOGS $lang.gmo"
17392 done
17393 fi
17394 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17395 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"
17396 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17397 if test -f "$f"; then
17398 case "$f" in
17399 *.orig | *.bak | *~) ;;
17400 *) cat "$f" >> "$ac_dir/Makefile" ;;
17401 esac
17402 fi
17403 done
17404 fi
17405 ;;
17406 esac
17407 done ;;
17408
17409 esac
17410 done # for ac_tag
17411
17412
17413 as_fn_exit 0
17414 _ACEOF
17415 ac_clean_files=$ac_clean_files_save
17416
17417 test $ac_write_fail = 0 ||
17418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17419
17420
17421 # configure is writing to config.log, and then calls config.status.
17422 # config.status does its own redirection, appending to config.log.
17423 # Unfortunately, on DOS this fails, as config.log is still kept open
17424 # by configure, so config.status won't be able to write to it; its
17425 # output is simply discarded. So we exec the FD to /dev/null,
17426 # effectively closing config.log, so it can be properly (re)opened and
17427 # appended to by config.status. When coming back to configure, we
17428 # need to make the FD available again.
17429 if test "$no_create" != yes; then
17430 ac_cs_success=:
17431 ac_config_status_args=
17432 test "$silent" = yes &&
17433 ac_config_status_args="$ac_config_status_args --quiet"
17434 exec 5>/dev/null
17435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17436 exec 5>>config.log
17437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17438 # would make configure fail if this is the last instruction.
17439 $ac_cs_success || as_fn_exit 1
17440 fi
17441 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17443 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17444 fi
17445