Regenerate configure
[deliverable/binutils-gdb.git] / binutils / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for binutils 2.26.51.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='binutils'
558 PACKAGE_TARNAME='binutils'
559 PACKAGE_VERSION='2.26.51'
560 PACKAGE_STRING='binutils 2.26.51'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="ar.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 EMULATION_VECTOR
606 EMULATION
607 OBJDUMP_PRIVATE_OFILES
608 OBJDUMP_DEFS
609 BUILD_INSTALL_MISC
610 BUILD_MISC
611 BUILD_DLLWRAP
612 BUILD_WINDMC
613 BUILD_WINDRES
614 DLLTOOL_DEFS
615 BUILD_DLLTOOL
616 BUILD_SRCONV
617 BUILD_NLMCONV
618 NLMCONV_DEFS
619 LTLIBICONV
620 LIBICONV
621 zlibinc
622 zlibdir
623 ALLOCA
624 DEMANGLER_NAME
625 EXEEXT_FOR_BUILD
626 CC_FOR_BUILD
627 HDEFINES
628 GENINSRC_NEVER_FALSE
629 GENINSRC_NEVER_TRUE
630 MAINT
631 MAINTAINER_MODE_FALSE
632 MAINTAINER_MODE_TRUE
633 MSGMERGE
634 MSGFMT
635 MKINSTALLDIRS
636 CATOBJEXT
637 GENCAT
638 INSTOBJEXT
639 DATADIRNAME
640 CATALOGS
641 POSUB
642 GMSGFMT
643 XGETTEXT
644 INCINTL
645 LIBINTL_DEP
646 LIBINTL
647 USE_NLS
648 LEXLIB
649 LEX_OUTPUT_ROOT
650 LEX
651 YFLAGS
652 YACC
653 WARN_WRITE_STRINGS
654 NO_WERROR
655 WARN_CFLAGS
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 RANLIB
662 AR
663 OBJDUMP
664 LN_S
665 NM
666 ac_ct_DUMPBIN
667 DUMPBIN
668 LD
669 FGREP
670 SED
671 LIBTOOL
672 EGREP
673 GREP
674 CPP
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 target_os
716 target_vendor
717 target_cpu
718 target
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 target_alias
728 host_alias
729 build_alias
730 LIBS
731 ECHO_T
732 ECHO_N
733 ECHO_C
734 DEFS
735 mandir
736 localedir
737 libdir
738 psdir
739 pdfdir
740 dvidir
741 htmldir
742 infodir
743 docdir
744 oldincludedir
745 includedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_dependency_tracking
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_gnu_ld
774 enable_libtool_lock
775 enable_plugins
776 enable_largefile
777 enable_targets
778 enable_deterministic_archives
779 enable_default_strings_all
780 enable_werror
781 enable_build_warnings
782 enable_nls
783 enable_maintainer_mode
784 with_system_zlib
785 enable_rpath
786 with_libiconv_prefix
787 '
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CC
792 CFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 CPP
797 YACC
798 YFLAGS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
848
849 ac_prev=
850 ac_dashdash=
851 for ac_option
852 do
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
858 fi
859
860 case $ac_option in
861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information."
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1254 If a cross compiler is detected then cross compile mode will be used." >&2
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258 fi
1259
1260 ac_tool_prefix=
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263 test "$silent" = yes && exec 6>/dev/null
1264
1265
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error "pwd does not report name of working directory"
1272
1273
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305 else
1306 ac_srcdir_defaulted=no
1307 fi
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1311 fi
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313 ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1315 pwd)`
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319 fi
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1323 case $srcdir in
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325 esac
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331 done
1332
1333 #
1334 # Report the --help message.
1335 #
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340 \`configure' configures binutils 2.26.51 to adapt to many kinds of systems.
1341
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347 Defaults for the options are specified in brackets.
1348
1349 Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1370
1371 For better control, use the options below.
1372
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1393 _ACEOF
1394
1395 cat <<\_ACEOF
1396
1397 Program names:
1398 --program-prefix=PREFIX prepend PREFIX to installed program names
1399 --program-suffix=SUFFIX append SUFFIX to installed program names
1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401
1402 System types:
1403 --build=BUILD configure for building on BUILD [guessed]
1404 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405 --target=TARGET configure for building compilers for TARGET [HOST]
1406 _ACEOF
1407 fi
1408
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of binutils 2.26.51:";;
1412 esac
1413 cat <<\_ACEOF
1414
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --disable-dependency-tracking speeds up one-time build
1420 --enable-dependency-tracking do not reject slow dependency extractors
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --enable-plugins Enable support for plugins
1427 --disable-largefile omit support for large files
1428 --enable-targets alternative target configurations
1429 --enable-deterministic-archives
1430 ar and ranlib default to -D behavior
1431 --disable-default-strings-all
1432 strings defaults to --data behavior
1433 --enable-werror treat compile warnings as errors
1434 --enable-build-warnings enable build-time compiler warnings
1435 --disable-nls do not use Native Language Support
1436 --enable-maintainer-mode enable make rules and dependencies not useful
1437 (and sometimes confusing) to the casual installer
1438 --disable-rpath do not hardcode runtime library paths
1439
1440 Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --with-pic try to use only PIC/non-PIC objects [default=use
1444 both]
1445 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1446 --with-system-zlib use installed libz
1447 --with-gnu-ld assume the C compiler uses GNU ld default=no
1448 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1449 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1450
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 CPP C preprocessor
1460 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1461 the first program found out of: `bison -y', `byacc', `yacc'.
1462 YFLAGS The list of arguments that will be passed by default to $YACC.
1463 This script will default YFLAGS to the empty string to avoid a
1464 default value of `-d' given by some make applications.
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to the package provider.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" ||
1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479 continue
1480 ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491 esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499 .) # We are building in place.
1500 ac_srcdir=.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1507 *) # Relative name.
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1522 else
1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 fi || ac_status=$?
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1526 done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531 cat <<\_ACEOF
1532 binutils configure 2.26.51
1533 generated by GNU Autoconf 2.64
1534
1535 Copyright (C) 2009 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538 _ACEOF
1539 exit
1540 fi
1541
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1545
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1550 {
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 rm -f conftest.$ac_objext
1553 if { { ac_try="$ac_compile"
1554 case "(($ac_try" in
1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556 *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560 (eval "$ac_compile") 2>conftest.err
1561 ac_status=$?
1562 if test -s conftest.err; then
1563 grep -v '^ *+' conftest.err >conftest.er1
1564 cat conftest.er1 >&5
1565 mv -f conftest.er1 conftest.err
1566 fi
1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568 test $ac_status = 0; } && {
1569 test -z "$ac_c_werror_flag" ||
1570 test ! -s conftest.err
1571 } && test -s conftest.$ac_objext; then :
1572 ac_retval=0
1573 else
1574 $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1
1578 fi
1579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1580 return $ac_retval
1581
1582 } # ac_fn_c_try_compile
1583
1584 # ac_fn_c_try_link LINENO
1585 # -----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_link ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext conftest$ac_exeext
1591 if { { ac_try="$ac_link"
1592 case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_link") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest$ac_exeext && {
1610 test "$cross_compiling" = yes ||
1611 $as_test_x conftest$ac_exeext
1612 }; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619 fi
1620 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622 # interfere with the next link command; also delete a directory that is
1623 # left behind by Apple's compiler. We do this before executing the actions.
1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626 return $ac_retval
1627
1628 } # ac_fn_c_try_link
1629
1630 # ac_fn_c_try_cpp LINENO
1631 # ----------------------
1632 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_cpp ()
1634 {
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_cpp conftest.$ac_ext"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } >/dev/null && {
1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 }; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663 return $ac_retval
1664
1665 } # ac_fn_c_try_cpp
1666
1667 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1670 # the include files in INCLUDES and setting the cache variable VAR
1671 # accordingly.
1672 ac_fn_c_check_header_mongrel ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 $as_echo_n "(cached) " >&6
1680 fi
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 else
1685 # Is the header compilable?
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1687 $as_echo_n "checking $2 usability... " >&6; }
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 $4
1691 #include <$2>
1692 _ACEOF
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694 ac_header_compiler=yes
1695 else
1696 ac_header_compiler=no
1697 fi
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1700 $as_echo "$ac_header_compiler" >&6; }
1701
1702 # Is the header present?
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1704 $as_echo_n "checking $2 presence... " >&6; }
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 #include <$2>
1708 _ACEOF
1709 if ac_fn_c_try_cpp "$LINENO"; then :
1710 ac_header_preproc=yes
1711 else
1712 ac_header_preproc=no
1713 fi
1714 rm -f conftest.err conftest.$ac_ext
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1716 $as_echo "$ac_header_preproc" >&6; }
1717
1718 # So? What about this header?
1719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1720 yes:no: )
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1722 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1724 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 ;;
1726 no:yes:* )
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1728 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1730 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1732 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1734 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1736 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1737 ;;
1738 esac
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 eval "$3=\$ac_header_compiler"
1745 fi
1746 eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1749 fi
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751
1752 } # ac_fn_c_check_header_mongrel
1753
1754 # ac_fn_c_try_run LINENO
1755 # ----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1757 # that executables *can* be run.
1758 ac_fn_c_try_run ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_link"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>&5
1769 ac_status=$?
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1772 { { case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_try") 2>&5
1779 ac_status=$?
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; }; }; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: program exited with status $ac_status" >&5
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=$ac_status
1789 fi
1790 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794 } # ac_fn_c_try_run
1795
1796 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists and can be compiled using the include files in
1799 # INCLUDES, setting the cache variable VAR accordingly.
1800 ac_fn_c_check_header_compile ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1807 else
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814 eval "$3=yes"
1815 else
1816 eval "$3=no"
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824
1825 } # ac_fn_c_check_header_compile
1826
1827 # ac_fn_c_check_func LINENO FUNC VAR
1828 # ----------------------------------
1829 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1830 ac_fn_c_check_func ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1843
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1848
1849 #ifdef __STDC__
1850 # include <limits.h>
1851 #else
1852 # include <assert.h>
1853 #endif
1854
1855 #undef $2
1856
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1860 #ifdef __cplusplus
1861 extern "C"
1862 #endif
1863 char $2 ();
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1868 choke me
1869 #endif
1870
1871 int
1872 main ()
1873 {
1874 return $2 ();
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_link "$LINENO"; then :
1880 eval "$3=yes"
1881 else
1882 eval "$3=no"
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892 } # ac_fn_c_check_func
1893
1894 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1895 # --------------------------------------------
1896 # Tries to find the compile-time value of EXPR in a program that includes
1897 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1898 # computed
1899 ac_fn_c_compute_int ()
1900 {
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if test "$cross_compiling" = yes; then
1903 # Depending upon the size, compute the lo and hi bounds.
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1906 $4
1907 int
1908 main ()
1909 {
1910 static int test_array [1 - 2 * !(($2) >= 0)];
1911 test_array [0] = 0
1912
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 ac_lo=0 ac_mid=0
1919 while :; do
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main ()
1925 {
1926 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927 test_array [0] = 0
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_hi=$ac_mid; break
1935 else
1936 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1937 if test $ac_lo -le $ac_mid; then
1938 ac_lo= ac_hi=
1939 break
1940 fi
1941 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 done
1945 else
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 $4
1949 int
1950 main ()
1951 {
1952 static int test_array [1 - 2 * !(($2) < 0)];
1953 test_array [0] = 0
1954
1955 ;
1956 return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_hi=-1 ac_mid=-1
1961 while :; do
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $4
1965 int
1966 main ()
1967 {
1968 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1969 test_array [0] = 0
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_lo=$ac_mid; break
1977 else
1978 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1979 if test $ac_mid -le $ac_hi; then
1980 ac_lo= ac_hi=
1981 break
1982 fi
1983 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 done
1987 else
1988 ac_lo= ac_hi=
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 # Binary search between lo and hi bounds.
1994 while test "x$ac_lo" != "x$ac_hi"; do
1995 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 $4
1999 int
2000 main ()
2001 {
2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2003 test_array [0] = 0
2004
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_hi=$ac_mid
2011 else
2012 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 done
2016 case $ac_lo in #((
2017 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2018 '') ac_retval=1 ;;
2019 esac
2020 else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 $4
2024 static long int longval () { return $2; }
2025 static unsigned long int ulongval () { return $2; }
2026 #include <stdio.h>
2027 #include <stdlib.h>
2028 int
2029 main ()
2030 {
2031
2032 FILE *f = fopen ("conftest.val", "w");
2033 if (! f)
2034 return 1;
2035 if (($2) < 0)
2036 {
2037 long int i = longval ();
2038 if (i != ($2))
2039 return 1;
2040 fprintf (f, "%ld", i);
2041 }
2042 else
2043 {
2044 unsigned long int i = ulongval ();
2045 if (i != ($2))
2046 return 1;
2047 fprintf (f, "%lu", i);
2048 }
2049 /* Do not output a trailing newline, as this causes \r\n confusion
2050 on some platforms. */
2051 return ferror (f) || fclose (f) != 0;
2052
2053 ;
2054 return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_run "$LINENO"; then :
2058 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2059 else
2060 ac_retval=1
2061 fi
2062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2063 conftest.$ac_objext conftest.beam conftest.$ac_ext
2064 rm -f conftest.val
2065
2066 fi
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068 return $ac_retval
2069
2070 } # ac_fn_c_compute_int
2071
2072 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2073 # -------------------------------------------
2074 # Tests whether TYPE exists after having included INCLUDES, setting cache
2075 # variable VAR accordingly.
2076 ac_fn_c_check_type ()
2077 {
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=no"
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2087 $4
2088 int
2089 main ()
2090 {
2091 if (sizeof ($2))
2092 return 0;
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 if (sizeof (($2)))
2105 return 0;
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111
2112 else
2113 eval "$3=yes"
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 fi
2119 eval ac_res=\$$3
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2123
2124 } # ac_fn_c_check_type
2125
2126 # ac_fn_c_check_decl LINENO SYMBOL VAR
2127 # ------------------------------------
2128 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2129 ac_fn_c_check_decl ()
2130 {
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 as_decl_name=`echo $2|sed 's/ *(.*//'`
2133 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2135 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2136 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2137 $as_echo_n "(cached) " >&6
2138 else
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 int
2143 main ()
2144 {
2145 #ifndef $as_decl_name
2146 #ifdef __cplusplus
2147 (void) $as_decl_use;
2148 #else
2149 (void) $as_decl_name;
2150 #endif
2151 #endif
2152
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158 eval "$3=yes"
2159 else
2160 eval "$3=no"
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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168
2169 } # ac_fn_c_check_decl
2170 cat >config.log <<_ACEOF
2171 This file contains any messages produced by compilers while
2172 running configure, to aid debugging if configure makes a mistake.
2173
2174 It was created by binutils $as_me 2.26.51, which was
2175 generated by GNU Autoconf 2.64. Invocation command line was
2176
2177 $ $0 $@
2178
2179 _ACEOF
2180 exec 5>>config.log
2181 {
2182 cat <<_ASUNAME
2183 ## --------- ##
2184 ## Platform. ##
2185 ## --------- ##
2186
2187 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2188 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2189 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2190 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2191 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2192
2193 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2194 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2195
2196 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2197 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2198 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2199 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2200 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2201 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2202 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2203
2204 _ASUNAME
2205
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
2211 $as_echo "PATH: $as_dir"
2212 done
2213 IFS=$as_save_IFS
2214
2215 } >&5
2216
2217 cat >&5 <<_ACEOF
2218
2219
2220 ## ----------- ##
2221 ## Core tests. ##
2222 ## ----------- ##
2223
2224 _ACEOF
2225
2226
2227 # Keep a trace of the command line.
2228 # Strip out --no-create and --no-recursion so they do not pile up.
2229 # Strip out --silent because we don't want to record it for future runs.
2230 # Also quote any args containing shell meta-characters.
2231 # Make two passes to allow for proper duplicate-argument suppression.
2232 ac_configure_args=
2233 ac_configure_args0=
2234 ac_configure_args1=
2235 ac_must_keep_next=false
2236 for ac_pass in 1 2
2237 do
2238 for ac_arg
2239 do
2240 case $ac_arg in
2241 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2243 | -silent | --silent | --silen | --sile | --sil)
2244 continue ;;
2245 *\'*)
2246 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2247 esac
2248 case $ac_pass in
2249 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2250 2)
2251 as_fn_append ac_configure_args1 " '$ac_arg'"
2252 if test $ac_must_keep_next = true; then
2253 ac_must_keep_next=false # Got value, back to normal.
2254 else
2255 case $ac_arg in
2256 *=* | --config-cache | -C | -disable-* | --disable-* \
2257 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2258 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2259 | -with-* | --with-* | -without-* | --without-* | --x)
2260 case "$ac_configure_args0 " in
2261 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2262 esac
2263 ;;
2264 -* ) ac_must_keep_next=true ;;
2265 esac
2266 fi
2267 as_fn_append ac_configure_args " '$ac_arg'"
2268 ;;
2269 esac
2270 done
2271 done
2272 { ac_configure_args0=; unset ac_configure_args0;}
2273 { ac_configure_args1=; unset ac_configure_args1;}
2274
2275 # When interrupted or exit'd, cleanup temporary files, and complete
2276 # config.log. We remove comments because anyway the quotes in there
2277 # would cause problems or look ugly.
2278 # WARNING: Use '\'' to represent an apostrophe within the trap.
2279 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2280 trap 'exit_status=$?
2281 # Save into config.log some information that might help in debugging.
2282 {
2283 echo
2284
2285 cat <<\_ASBOX
2286 ## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##
2289 _ASBOX
2290 echo
2291 # The following way of writing the cache mishandles newlines in values,
2292 (
2293 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2294 eval ac_val=\$$ac_var
2295 case $ac_val in #(
2296 *${as_nl}*)
2297 case $ac_var in #(
2298 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2299 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2300 esac
2301 case $ac_var in #(
2302 _ | IFS | as_nl) ;; #(
2303 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2304 *) { eval $ac_var=; unset $ac_var;} ;;
2305 esac ;;
2306 esac
2307 done
2308 (set) 2>&1 |
2309 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2310 *${as_nl}ac_space=\ *)
2311 sed -n \
2312 "s/'\''/'\''\\\\'\'''\''/g;
2313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2314 ;; #(
2315 *)
2316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2317 ;;
2318 esac |
2319 sort
2320 )
2321 echo
2322
2323 cat <<\_ASBOX
2324 ## ----------------- ##
2325 ## Output variables. ##
2326 ## ----------------- ##
2327 _ASBOX
2328 echo
2329 for ac_var in $ac_subst_vars
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338
2339 if test -n "$ac_subst_files"; then
2340 cat <<\_ASBOX
2341 ## ------------------- ##
2342 ## File substitutions. ##
2343 ## ------------------- ##
2344 _ASBOX
2345 echo
2346 for ac_var in $ac_subst_files
2347 do
2348 eval ac_val=\$$ac_var
2349 case $ac_val in
2350 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351 esac
2352 $as_echo "$ac_var='\''$ac_val'\''"
2353 done | sort
2354 echo
2355 fi
2356
2357 if test -s confdefs.h; then
2358 cat <<\_ASBOX
2359 ## ----------- ##
2360 ## confdefs.h. ##
2361 ## ----------- ##
2362 _ASBOX
2363 echo
2364 cat confdefs.h
2365 echo
2366 fi
2367 test "$ac_signal" != 0 &&
2368 $as_echo "$as_me: caught signal $ac_signal"
2369 $as_echo "$as_me: exit $exit_status"
2370 } >&5
2371 rm -f core *.core core.conftest.* &&
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2373 exit $exit_status
2374 ' 0
2375 for ac_signal in 1 2 13 15; do
2376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377 done
2378 ac_signal=0
2379
2380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2381 rm -f -r conftest* confdefs.h
2382
2383 $as_echo "/* confdefs.h */" > confdefs.h
2384
2385 # Predefined preprocessor variables.
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_NAME "$PACKAGE_NAME"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2393 _ACEOF
2394
2395 cat >>confdefs.h <<_ACEOF
2396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2397 _ACEOF
2398
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE_STRING "$PACKAGE_STRING"
2401 _ACEOF
2402
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2405 _ACEOF
2406
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_URL "$PACKAGE_URL"
2409 _ACEOF
2410
2411
2412 # Let the site file select an alternate cache file if it wants to.
2413 # Prefer an explicitly selected file to automatically selected ones.
2414 ac_site_file1=NONE
2415 ac_site_file2=NONE
2416 if test -n "$CONFIG_SITE"; then
2417 ac_site_file1=$CONFIG_SITE
2418 elif test "x$prefix" != xNONE; then
2419 ac_site_file1=$prefix/share/config.site
2420 ac_site_file2=$prefix/etc/config.site
2421 else
2422 ac_site_file1=$ac_default_prefix/share/config.site
2423 ac_site_file2=$ac_default_prefix/etc/config.site
2424 fi
2425 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2426 do
2427 test "x$ac_site_file" = xNONE && continue
2428 if test -r "$ac_site_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2430 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2431 sed 's/^/| /' "$ac_site_file" >&5
2432 . "$ac_site_file"
2433 fi
2434 done
2435
2436 if test -r "$cache_file"; then
2437 # Some versions of bash will fail to source /dev/null (special
2438 # files actually), so we avoid doing that.
2439 if test -f "$cache_file"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2441 $as_echo "$as_me: loading cache $cache_file" >&6;}
2442 case $cache_file in
2443 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2444 *) . "./$cache_file";;
2445 esac
2446 fi
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2449 $as_echo "$as_me: creating cache $cache_file" >&6;}
2450 >$cache_file
2451 fi
2452
2453 # Check that the precious variables saved in the cache have kept the same
2454 # value.
2455 ac_cache_corrupted=false
2456 for ac_var in $ac_precious_vars; do
2457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2458 eval ac_new_set=\$ac_env_${ac_var}_set
2459 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2460 eval ac_new_val=\$ac_env_${ac_var}_value
2461 case $ac_old_set,$ac_new_set in
2462 set,)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2466 ,set)
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2468 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2469 ac_cache_corrupted=: ;;
2470 ,);;
2471 *)
2472 if test "x$ac_old_val" != "x$ac_new_val"; then
2473 # differences in whitespace do not lead to failure.
2474 ac_old_val_w=`echo x $ac_old_val`
2475 ac_new_val_w=`echo x $ac_new_val`
2476 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2478 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2479 ac_cache_corrupted=:
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2482 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2483 eval $ac_var=\$ac_old_val
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2486 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2488 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2489 fi;;
2490 esac
2491 # Pass precious variables to config.status.
2492 if test "$ac_new_set" = set; then
2493 case $ac_new_val in
2494 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 *) ac_arg=$ac_var=$ac_new_val ;;
2496 esac
2497 case " $ac_configure_args " in
2498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2499 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2500 esac
2501 fi
2502 done
2503 if $ac_cache_corrupted; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2507 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2508 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2509 fi
2510 ## -------------------- ##
2511 ## Main body of script. ##
2512 ## -------------------- ##
2513
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519
2520
2521
2522
2523
2524
2525
2526 ac_aux_dir=
2527 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2528 for ac_t in install-sh install.sh shtool; do
2529 if test -f "$ac_dir/$ac_t"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/$ac_t -c"
2532 break 2
2533 fi
2534 done
2535 done
2536 if test -z "$ac_aux_dir"; then
2537 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2538 fi
2539
2540 # These three variables are undocumented and unsupported,
2541 # and are intended to be withdrawn in a future Autoconf release.
2542 # They can cause serious problems if a builder's source tree is in a directory
2543 # whose full name contains unusual characters.
2544 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2545 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2546 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2547
2548
2549 # Make sure we can run config.sub.
2550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2551 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2552
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2554 $as_echo_n "checking build system type... " >&6; }
2555 if test "${ac_cv_build+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 ac_build_alias=$build_alias
2559 test "x$ac_build_alias" = x &&
2560 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2561 test "x$ac_build_alias" = x &&
2562 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2564 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2565
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2568 $as_echo "$ac_cv_build" >&6; }
2569 case $ac_cv_build in
2570 *-*-*) ;;
2571 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2572 esac
2573 build=$ac_cv_build
2574 ac_save_IFS=$IFS; IFS='-'
2575 set x $ac_cv_build
2576 shift
2577 build_cpu=$1
2578 build_vendor=$2
2579 shift; shift
2580 # Remember, the first character of IFS is used to create $*,
2581 # except with old shells:
2582 build_os=$*
2583 IFS=$ac_save_IFS
2584 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2585
2586
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2588 $as_echo_n "checking host system type... " >&6; }
2589 if test "${ac_cv_host+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 if test "x$host_alias" = x; then
2593 ac_cv_host=$ac_cv_build
2594 else
2595 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2596 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2597 fi
2598
2599 fi
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2601 $as_echo "$ac_cv_host" >&6; }
2602 case $ac_cv_host in
2603 *-*-*) ;;
2604 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2605 esac
2606 host=$ac_cv_host
2607 ac_save_IFS=$IFS; IFS='-'
2608 set x $ac_cv_host
2609 shift
2610 host_cpu=$1
2611 host_vendor=$2
2612 shift; shift
2613 # Remember, the first character of IFS is used to create $*,
2614 # except with old shells:
2615 host_os=$*
2616 IFS=$ac_save_IFS
2617 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2618
2619
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2621 $as_echo_n "checking target system type... " >&6; }
2622 if test "${ac_cv_target+set}" = set; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test "x$target_alias" = x; then
2626 ac_cv_target=$ac_cv_host
2627 else
2628 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2629 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2630 fi
2631
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2634 $as_echo "$ac_cv_target" >&6; }
2635 case $ac_cv_target in
2636 *-*-*) ;;
2637 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2638 esac
2639 target=$ac_cv_target
2640 ac_save_IFS=$IFS; IFS='-'
2641 set x $ac_cv_target
2642 shift
2643 target_cpu=$1
2644 target_vendor=$2
2645 shift; shift
2646 # Remember, the first character of IFS is used to create $*,
2647 # except with old shells:
2648 target_os=$*
2649 IFS=$ac_save_IFS
2650 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2651
2652
2653 # The aliases save the names the user supplied, while $host etc.
2654 # will get canonicalized.
2655 test -n "$target_alias" &&
2656 test "$program_prefix$program_suffix$program_transform_name" = \
2657 NONENONEs,x,x, &&
2658 program_prefix=${target_alias}-
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 if test -n "$ac_tool_prefix"; then
2665 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2666 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if test "${ac_cv_prog_CC+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2677 do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2685 fi
2686 done
2687 done
2688 IFS=$as_save_IFS
2689
2690 fi
2691 fi
2692 CC=$ac_cv_prog_CC
2693 if test -n "$CC"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2696 else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2700
2701
2702 fi
2703 if test -z "$ac_cv_prog_CC"; then
2704 ac_ct_CC=$CC
2705 # Extract the first word of "gcc", so it can be a program name with args.
2706 set dummy gcc; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$ac_ct_CC"; then
2713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_ac_ct_CC="gcc"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2733 if test -n "$ac_ct_CC"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2735 $as_echo "$ac_ct_CC" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2739 fi
2740
2741 if test "x$ac_ct_CC" = x; then
2742 CC=""
2743 else
2744 case $cross_compiling:$ac_tool_warned in
2745 yes:)
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2748 ac_tool_warned=yes ;;
2749 esac
2750 CC=$ac_ct_CC
2751 fi
2752 else
2753 CC="$ac_cv_prog_CC"
2754 fi
2755
2756 if test -z "$CC"; then
2757 if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}cc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if test "${ac_cv_prog_CC+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CC="${ac_tool_prefix}cc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784 fi
2785 CC=$ac_cv_prog_CC
2786 if test -n "$CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788 $as_echo "$CC" >&6; }
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 fi
2793
2794
2795 fi
2796 fi
2797 if test -z "$CC"; then
2798 # Extract the first word of "cc", so it can be a program name with args.
2799 set dummy cc; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if test "${ac_cv_prog_CC+set}" = set; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$CC"; then
2806 ac_cv_prog_CC="$CC" # Let the user override the test.
2807 else
2808 ac_prog_rejected=no
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2817 ac_prog_rejected=yes
2818 continue
2819 fi
2820 ac_cv_prog_CC="cc"
2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 break 2
2823 fi
2824 done
2825 done
2826 IFS=$as_save_IFS
2827
2828 if test $ac_prog_rejected = yes; then
2829 # We found a bogon in the path, so make sure we never use it.
2830 set dummy $ac_cv_prog_CC
2831 shift
2832 if test $# != 0; then
2833 # We chose a different compiler from the bogus one.
2834 # However, it has the same basename, so the bogon will be chosen
2835 # first if we set CC to just the basename; use the full file name.
2836 shift
2837 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2838 fi
2839 fi
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2846 else
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852 fi
2853 if test -z "$CC"; then
2854 if test -n "$ac_tool_prefix"; then
2855 for ac_prog in cl.exe
2856 do
2857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH
2869 do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 CC=$ac_cv_prog_CC
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2888 else
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2891 fi
2892
2893
2894 test -n "$CC" && break
2895 done
2896 fi
2897 if test -z "$CC"; then
2898 ac_ct_CC=$CC
2899 for ac_prog in cl.exe
2900 do
2901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2902 set dummy $ac_prog; ac_word=$2
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904 $as_echo_n "checking for $ac_word... " >&6; }
2905 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test -n "$ac_ct_CC"; then
2909 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_ac_ct_CC="$ac_prog"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922 done
2923 done
2924 IFS=$as_save_IFS
2925
2926 fi
2927 fi
2928 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2929 if test -n "$ac_ct_CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2931 $as_echo "$ac_ct_CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938 test -n "$ac_ct_CC" && break
2939 done
2940
2941 if test "x$ac_ct_CC" = x; then
2942 CC=""
2943 else
2944 case $cross_compiling:$ac_tool_warned in
2945 yes:)
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2948 ac_tool_warned=yes ;;
2949 esac
2950 CC=$ac_ct_CC
2951 fi
2952 fi
2953
2954 fi
2955
2956
2957 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959 as_fn_error "no acceptable C compiler found in \$PATH
2960 See \`config.log' for more details." "$LINENO" 5; }
2961
2962 # Provide some information about the compiler.
2963 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2964 set X $ac_compile
2965 ac_compiler=$2
2966 for ac_option in --version -v -V -qversion; do
2967 { { ac_try="$ac_compiler $ac_option >&5"
2968 case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971 esac
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 $as_echo "$ac_try_echo"; } >&5
2974 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2975 ac_status=$?
2976 if test -s conftest.err; then
2977 sed '10a\
2978 ... rest of stderr output deleted ...
2979 10q' conftest.err >conftest.er1
2980 cat conftest.er1 >&5
2981 rm -f conftest.er1 conftest.err
2982 fi
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }
2985 done
2986
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2989
2990 int
2991 main ()
2992 {
2993
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 ac_clean_files_save=$ac_clean_files
2999 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3000 # Try to create an executable without -o first, disregard a.out.
3001 # It will help us diagnose broken compilers, and finding out an intuition
3002 # of exeext.
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3004 $as_echo_n "checking for C compiler default output file name... " >&6; }
3005 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3006
3007 # The possible output files:
3008 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3009
3010 ac_rmfiles=
3011 for ac_file in $ac_files
3012 do
3013 case $ac_file in
3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3015 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3016 esac
3017 done
3018 rm -f $ac_rmfiles
3019
3020 if { { ac_try="$ac_link_default"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_link_default") 2>&5
3028 ac_status=$?
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }; then :
3031 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3032 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3033 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3034 # so that the user can short-circuit this test for compilers unknown to
3035 # Autoconf.
3036 for ac_file in $ac_files ''
3037 do
3038 test -f "$ac_file" || continue
3039 case $ac_file in
3040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3041 ;;
3042 [ab].out )
3043 # We found the default executable, but exeext='' is most
3044 # certainly right.
3045 break;;
3046 *.* )
3047 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3048 then :; else
3049 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3050 fi
3051 # We set ac_cv_exeext here because the later test for it is not
3052 # safe: cross compilers may not add the suffix if given an `-o'
3053 # argument, so we may need to know it at that point already.
3054 # Even if this section looks crufty: it has the advantage of
3055 # actually working.
3056 break;;
3057 * )
3058 break;;
3059 esac
3060 done
3061 test "$ac_cv_exeext" = no && ac_cv_exeext=
3062
3063 else
3064 ac_file=''
3065 fi
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3067 $as_echo "$ac_file" >&6; }
3068 if test -z "$ac_file"; then :
3069 $as_echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3074 { as_fn_set_status 77
3075 as_fn_error "C compiler cannot create executables
3076 See \`config.log' for more details." "$LINENO" 5; }; }
3077 fi
3078 ac_exeext=$ac_cv_exeext
3079
3080 # Check that the compiler produces executables we can run. If not, either
3081 # the compiler is broken, or we cross compile.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3083 $as_echo_n "checking whether the C compiler works... " >&6; }
3084 # If not cross compiling, check that we can run a simple program.
3085 if test "$cross_compiling" != yes; then
3086 if { ac_try='./$ac_file'
3087 { { case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092 $as_echo "$ac_try_echo"; } >&5
3093 (eval "$ac_try") 2>&5
3094 ac_status=$?
3095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096 test $ac_status = 0; }; }; then
3097 cross_compiling=no
3098 else
3099 if test "$cross_compiling" = maybe; then
3100 cross_compiling=yes
3101 else
3102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 as_fn_error "cannot run C compiled programs.
3105 If you meant to cross compile, use \`--host'.
3106 See \`config.log' for more details." "$LINENO" 5; }
3107 fi
3108 fi
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3111 $as_echo "yes" >&6; }
3112
3113 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3114 ac_clean_files=$ac_clean_files_save
3115 # Check that the compiler produces executables we can run. If not, either
3116 # the compiler is broken, or we cross compile.
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3118 $as_echo_n "checking whether we are cross compiling... " >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3120 $as_echo "$cross_compiling" >&6; }
3121
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3123 $as_echo_n "checking for suffix of executables... " >&6; }
3124 if { { ac_try="$ac_link"
3125 case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128 esac
3129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3130 $as_echo "$ac_try_echo"; } >&5
3131 (eval "$ac_link") 2>&5
3132 ac_status=$?
3133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3134 test $ac_status = 0; }; then :
3135 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3136 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3137 # work properly (i.e., refer to `conftest.exe'), while it won't with
3138 # `rm'.
3139 for ac_file in conftest.exe conftest conftest.*; do
3140 test -f "$ac_file" || continue
3141 case $ac_file in
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 break;;
3145 * ) break;;
3146 esac
3147 done
3148 else
3149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error "cannot compute suffix of executables: cannot compile and link
3152 See \`config.log' for more details." "$LINENO" 5; }
3153 fi
3154 rm -f conftest$ac_cv_exeext
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3156 $as_echo "$ac_cv_exeext" >&6; }
3157
3158 rm -f conftest.$ac_ext
3159 EXEEXT=$ac_cv_exeext
3160 ac_exeext=$EXEEXT
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3162 $as_echo_n "checking for suffix of object files... " >&6; }
3163 if test "${ac_cv_objext+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3168
3169 int
3170 main ()
3171 {
3172
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.o conftest.obj
3178 if { { ac_try="$ac_compile"
3179 case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_compile") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; then :
3189 for ac_file in conftest.o conftest.obj conftest.*; do
3190 test -f "$ac_file" || continue;
3191 case $ac_file in
3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3193 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3194 break;;
3195 esac
3196 done
3197 else
3198 $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error "cannot compute suffix of object files: cannot compile
3204 See \`config.log' for more details." "$LINENO" 5; }
3205 fi
3206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207 fi
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3209 $as_echo "$ac_cv_objext" >&6; }
3210 OBJEXT=$ac_cv_objext
3211 ac_objext=$OBJEXT
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3213 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3214 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3219
3220 int
3221 main ()
3222 {
3223 #ifndef __GNUC__
3224 choke me
3225 #endif
3226
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 if ac_fn_c_try_compile "$LINENO"; then :
3232 ac_compiler_gnu=yes
3233 else
3234 ac_compiler_gnu=no
3235 fi
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3238
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3241 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3242 if test $ac_compiler_gnu = yes; then
3243 GCC=yes
3244 else
3245 GCC=
3246 fi
3247 ac_test_CFLAGS=${CFLAGS+set}
3248 ac_save_CFLAGS=$CFLAGS
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3250 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3251 if test "${ac_cv_prog_cc_g+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 ac_save_c_werror_flag=$ac_c_werror_flag
3255 ac_c_werror_flag=yes
3256 ac_cv_prog_cc_g=no
3257 CFLAGS="-g"
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3260
3261 int
3262 main ()
3263 {
3264
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 if ac_fn_c_try_compile "$LINENO"; then :
3270 ac_cv_prog_cc_g=yes
3271 else
3272 CFLAGS=""
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275
3276 int
3277 main ()
3278 {
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285
3286 else
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288 CFLAGS="-g"
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3291
3292 int
3293 main ()
3294 {
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 if ac_fn_c_try_compile "$LINENO"; then :
3301 ac_cv_prog_cc_g=yes
3302 fi
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 fi
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 fi
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_c_werror_flag=$ac_save_c_werror_flag
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3311 $as_echo "$ac_cv_prog_cc_g" >&6; }
3312 if test "$ac_test_CFLAGS" = set; then
3313 CFLAGS=$ac_save_CFLAGS
3314 elif test $ac_cv_prog_cc_g = yes; then
3315 if test "$GCC" = yes; then
3316 CFLAGS="-g -O2"
3317 else
3318 CFLAGS="-g"
3319 fi
3320 else
3321 if test "$GCC" = yes; then
3322 CFLAGS="-O2"
3323 else
3324 CFLAGS=
3325 fi
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3328 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3329 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 ac_cv_prog_cc_c89=no
3333 ac_save_CC=$CC
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3336 #include <stdarg.h>
3337 #include <stdio.h>
3338 #include <sys/types.h>
3339 #include <sys/stat.h>
3340 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3341 struct buf { int x; };
3342 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3343 static char *e (p, i)
3344 char **p;
3345 int i;
3346 {
3347 return p[i];
3348 }
3349 static char *f (char * (*g) (char **, int), char **p, ...)
3350 {
3351 char *s;
3352 va_list v;
3353 va_start (v,p);
3354 s = g (p, va_arg (v,int));
3355 va_end (v);
3356 return s;
3357 }
3358
3359 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3360 function prototypes and stuff, but not '\xHH' hex character constants.
3361 These don't provoke an error unfortunately, instead are silently treated
3362 as 'x'. The following induces an error, until -std is added to get
3363 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3364 array size at least. It's necessary to write '\x00'==0 to get something
3365 that's true only with -std. */
3366 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3367
3368 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3369 inside strings and character constants. */
3370 #define FOO(x) 'x'
3371 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3372
3373 int test (int i, double x);
3374 struct s1 {int (*f) (int a);};
3375 struct s2 {int (*f) (double a);};
3376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3377 int argc;
3378 char **argv;
3379 int
3380 main ()
3381 {
3382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3388 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3389 do
3390 CC="$ac_save_CC $ac_arg"
3391 if ac_fn_c_try_compile "$LINENO"; then :
3392 ac_cv_prog_cc_c89=$ac_arg
3393 fi
3394 rm -f core conftest.err conftest.$ac_objext
3395 test "x$ac_cv_prog_cc_c89" != "xno" && break
3396 done
3397 rm -f conftest.$ac_ext
3398 CC=$ac_save_CC
3399
3400 fi
3401 # AC_CACHE_VAL
3402 case "x$ac_cv_prog_cc_c89" in
3403 x)
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3405 $as_echo "none needed" >&6; } ;;
3406 xno)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3408 $as_echo "unsupported" >&6; } ;;
3409 *)
3410 CC="$CC $ac_cv_prog_cc_c89"
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3412 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3413 esac
3414 if test "x$ac_cv_prog_cc_c89" != xno; then :
3415
3416 fi
3417
3418 ac_ext=c
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3426 $as_echo_n "checking for library containing strerror... " >&6; }
3427 if test "${ac_cv_search_strerror+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 ac_func_search_save_LIBS=$LIBS
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433
3434 /* Override any GCC internal prototype to avoid an error.
3435 Use char because int might match the return type of a GCC
3436 builtin and then its argument prototype would still apply. */
3437 #ifdef __cplusplus
3438 extern "C"
3439 #endif
3440 char strerror ();
3441 int
3442 main ()
3443 {
3444 return strerror ();
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 for ac_lib in '' cposix; do
3450 if test -z "$ac_lib"; then
3451 ac_res="none required"
3452 else
3453 ac_res=-l$ac_lib
3454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3455 fi
3456 if ac_fn_c_try_link "$LINENO"; then :
3457 ac_cv_search_strerror=$ac_res
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext \
3460 conftest$ac_exeext
3461 if test "${ac_cv_search_strerror+set}" = set; then :
3462 break
3463 fi
3464 done
3465 if test "${ac_cv_search_strerror+set}" = set; then :
3466
3467 else
3468 ac_cv_search_strerror=no
3469 fi
3470 rm conftest.$ac_ext
3471 LIBS=$ac_func_search_save_LIBS
3472 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3474 $as_echo "$ac_cv_search_strerror" >&6; }
3475 ac_res=$ac_cv_search_strerror
3476 if test "$ac_res" != no; then :
3477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3478
3479 fi
3480
3481
3482 am__api_version='1.11'
3483
3484 # Find a good install program. We prefer a C program (faster),
3485 # so one script is as good as another. But avoid the broken or
3486 # incompatible versions:
3487 # SysV /etc/install, /usr/sbin/install
3488 # SunOS /usr/etc/install
3489 # IRIX /sbin/install
3490 # AIX /bin/install
3491 # AmigaOS /C/install, which installs bootblocks on floppy discs
3492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3495 # OS/2's system install, which has a completely different semantic
3496 # ./install, which can be erroneously created by make from ./install.sh.
3497 # Reject install programs that cannot install multiple files.
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3499 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3500 if test -z "$INSTALL"; then
3501 if test "${ac_cv_path_install+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 # Account for people who put trailing slashes in PATH elements.
3510 case $as_dir/ in #((
3511 ./ | .// | /[cC]/* | \
3512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3513 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3514 /usr/ucb/* ) ;;
3515 *)
3516 # OSF1 and SCO ODT 3.0 have their own names for install.
3517 # Don't use installbsd from OSF since it installs stuff as root
3518 # by default.
3519 for ac_prog in ginstall scoinst install; do
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3522 if test $ac_prog = install &&
3523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3524 # AIX install. It has an incompatible calling convention.
3525 :
3526 elif test $ac_prog = install &&
3527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3528 # program-specific install script used by HP pwplus--don't use.
3529 :
3530 else
3531 rm -rf conftest.one conftest.two conftest.dir
3532 echo one > conftest.one
3533 echo two > conftest.two
3534 mkdir conftest.dir
3535 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3536 test -s conftest.one && test -s conftest.two &&
3537 test -s conftest.dir/conftest.one &&
3538 test -s conftest.dir/conftest.two
3539 then
3540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3541 break 3
3542 fi
3543 fi
3544 fi
3545 done
3546 done
3547 ;;
3548 esac
3549
3550 done
3551 IFS=$as_save_IFS
3552
3553 rm -rf conftest.one conftest.two conftest.dir
3554
3555 fi
3556 if test "${ac_cv_path_install+set}" = set; then
3557 INSTALL=$ac_cv_path_install
3558 else
3559 # As a last resort, use the slow shell script. Don't cache a
3560 # value for INSTALL within a source directory, because that will
3561 # break other packages using the cache if that directory is
3562 # removed, or if the value is a relative name.
3563 INSTALL=$ac_install_sh
3564 fi
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3567 $as_echo "$INSTALL" >&6; }
3568
3569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3570 # It thinks the first close brace ends the variable substitution.
3571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3572
3573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3574
3575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3576
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3578 $as_echo_n "checking whether build environment is sane... " >&6; }
3579 # Just in case
3580 sleep 1
3581 echo timestamp > conftest.file
3582 # Reject unsafe characters in $srcdir or the absolute working directory
3583 # name. Accept space and tab only in the latter.
3584 am_lf='
3585 '
3586 case `pwd` in
3587 *[\\\"\#\$\&\'\`$am_lf]*)
3588 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3589 esac
3590 case $srcdir in
3591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3592 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3593 esac
3594
3595 # Do `set' in a subshell so we don't clobber the current shell's
3596 # arguments. Must try -L first in case configure is actually a
3597 # symlink; some systems play weird games with the mod time of symlinks
3598 # (eg FreeBSD returns the mod time of the symlink's containing
3599 # directory).
3600 if (
3601 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3602 if test "$*" = "X"; then
3603 # -L didn't work.
3604 set X `ls -t "$srcdir/configure" conftest.file`
3605 fi
3606 rm -f conftest.file
3607 if test "$*" != "X $srcdir/configure conftest.file" \
3608 && test "$*" != "X conftest.file $srcdir/configure"; then
3609
3610 # If neither matched, then we have a broken ls. This can happen
3611 # if, for instance, CONFIG_SHELL is bash and it inherits a
3612 # broken ls alias from the environment. This has actually
3613 # happened. Such a system could not be considered "sane".
3614 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3615 alias in your environment" "$LINENO" 5
3616 fi
3617
3618 test "$2" = conftest.file
3619 )
3620 then
3621 # Ok.
3622 :
3623 else
3624 as_fn_error "newly created file is older than distributed files!
3625 Check your system clock" "$LINENO" 5
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3628 $as_echo "yes" >&6; }
3629 test "$program_prefix" != NONE &&
3630 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3631 # Use a double $ so make ignores it.
3632 test "$program_suffix" != NONE &&
3633 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3634 # Double any \ or $.
3635 # By default was `s,x,x', remove it if useless.
3636 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3637 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3638
3639 # expand $ac_aux_dir to an absolute path
3640 am_aux_dir=`cd $ac_aux_dir && pwd`
3641
3642 if test x"${MISSING+set}" != xset; then
3643 case $am_aux_dir in
3644 *\ * | *\ *)
3645 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3646 *)
3647 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3648 esac
3649 fi
3650 # Use eval to expand $SHELL
3651 if eval "$MISSING --run true"; then
3652 am_missing_run="$MISSING --run "
3653 else
3654 am_missing_run=
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3656 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3657 fi
3658
3659 if test x"${install_sh}" != xset; then
3660 case $am_aux_dir in
3661 *\ * | *\ *)
3662 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3663 *)
3664 install_sh="\${SHELL} $am_aux_dir/install-sh"
3665 esac
3666 fi
3667
3668 # Installed binaries are usually stripped using `strip' when the user
3669 # run `make install-strip'. However `strip' might not be the right
3670 # tool to use in cross-compilation environments, therefore Automake
3671 # will honor the `STRIP' environment variable to overrule this program.
3672 if test "$cross_compiling" != no; then
3673 if test -n "$ac_tool_prefix"; then
3674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3675 set dummy ${ac_tool_prefix}strip; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if test "${ac_cv_prog_STRIP+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 if test -n "$STRIP"; then
3682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 break 2
3694 fi
3695 done
3696 done
3697 IFS=$as_save_IFS
3698
3699 fi
3700 fi
3701 STRIP=$ac_cv_prog_STRIP
3702 if test -n "$STRIP"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3704 $as_echo "$STRIP" >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 fi
3709
3710
3711 fi
3712 if test -z "$ac_cv_prog_STRIP"; then
3713 ac_ct_STRIP=$STRIP
3714 # Extract the first word of "strip", so it can be a program name with args.
3715 set dummy strip; ac_word=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 if test -n "$ac_ct_STRIP"; then
3722 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727 IFS=$as_save_IFS
3728 test -z "$as_dir" && as_dir=.
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3731 ac_cv_prog_ac_ct_STRIP="strip"
3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 break 2
3734 fi
3735 done
3736 done
3737 IFS=$as_save_IFS
3738
3739 fi
3740 fi
3741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3742 if test -n "$ac_ct_STRIP"; then
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3744 $as_echo "$ac_ct_STRIP" >&6; }
3745 else
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3748 fi
3749
3750 if test "x$ac_ct_STRIP" = x; then
3751 STRIP=":"
3752 else
3753 case $cross_compiling:$ac_tool_warned in
3754 yes:)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3757 ac_tool_warned=yes ;;
3758 esac
3759 STRIP=$ac_ct_STRIP
3760 fi
3761 else
3762 STRIP="$ac_cv_prog_STRIP"
3763 fi
3764
3765 fi
3766 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3767
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3769 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3770 if test -z "$MKDIR_P"; then
3771 if test "${ac_cv_path_mkdir+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3776 do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_prog in mkdir gmkdir; do
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3782 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3783 'mkdir (GNU coreutils) '* | \
3784 'mkdir (coreutils) '* | \
3785 'mkdir (fileutils) '4.1*)
3786 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3787 break 3;;
3788 esac
3789 done
3790 done
3791 done
3792 IFS=$as_save_IFS
3793
3794 fi
3795
3796 if test "${ac_cv_path_mkdir+set}" = set; then
3797 MKDIR_P="$ac_cv_path_mkdir -p"
3798 else
3799 # As a last resort, use the slow shell script. Don't cache a
3800 # value for MKDIR_P within a source directory, because that will
3801 # break other packages using the cache if that directory is
3802 # removed, or if the value is a relative name.
3803 test -d ./--version && rmdir ./--version
3804 MKDIR_P="$ac_install_sh -d"
3805 fi
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3808 $as_echo "$MKDIR_P" >&6; }
3809
3810 mkdir_p="$MKDIR_P"
3811 case $mkdir_p in
3812 [\\/$]* | ?:[\\/]*) ;;
3813 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3814 esac
3815
3816 for ac_prog in gawk mawk nawk awk
3817 do
3818 # Extract the first word of "$ac_prog", so it can be a program name with args.
3819 set dummy $ac_prog; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_AWK+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 if test -n "$AWK"; then
3826 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_AWK="$ac_prog"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839 done
3840 done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 AWK=$ac_cv_prog_AWK
3846 if test -n "$AWK"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3848 $as_echo "$AWK" >&6; }
3849 else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3852 fi
3853
3854
3855 test -n "$AWK" && break
3856 done
3857
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3860 set x ${MAKE-make}
3861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3862 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 cat >conftest.make <<\_ACEOF
3866 SHELL = /bin/sh
3867 all:
3868 @echo '@@@%%%=$(MAKE)=@@@%%%'
3869 _ACEOF
3870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3872 *@@@%%%=?*=@@@%%%*)
3873 eval ac_cv_prog_make_${ac_make}_set=yes;;
3874 *)
3875 eval ac_cv_prog_make_${ac_make}_set=no;;
3876 esac
3877 rm -f conftest.make
3878 fi
3879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3881 $as_echo "yes" >&6; }
3882 SET_MAKE=
3883 else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3886 SET_MAKE="MAKE=${MAKE-make}"
3887 fi
3888
3889 rm -rf .tst 2>/dev/null
3890 mkdir .tst 2>/dev/null
3891 if test -d .tst; then
3892 am__leading_dot=.
3893 else
3894 am__leading_dot=_
3895 fi
3896 rmdir .tst 2>/dev/null
3897
3898 DEPDIR="${am__leading_dot}deps"
3899
3900 ac_config_commands="$ac_config_commands depfiles"
3901
3902
3903 am_make=${MAKE-make}
3904 cat > confinc << 'END'
3905 am__doit:
3906 @echo this is the am__doit target
3907 .PHONY: am__doit
3908 END
3909 # If we don't find an include directive, just comment out the code.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3911 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3912 am__include="#"
3913 am__quote=
3914 _am_result=none
3915 # First try GNU make style include.
3916 echo "include confinc" > confmf
3917 # Ignore all kinds of additional output from `make'.
3918 case `$am_make -s -f confmf 2> /dev/null` in #(
3919 *the\ am__doit\ target*)
3920 am__include=include
3921 am__quote=
3922 _am_result=GNU
3923 ;;
3924 esac
3925 # Now try BSD make style include.
3926 if test "$am__include" = "#"; then
3927 echo '.include "confinc"' > confmf
3928 case `$am_make -s -f confmf 2> /dev/null` in #(
3929 *the\ am__doit\ target*)
3930 am__include=.include
3931 am__quote="\""
3932 _am_result=BSD
3933 ;;
3934 esac
3935 fi
3936
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3939 $as_echo "$_am_result" >&6; }
3940 rm -f confinc confmf
3941
3942 # Check whether --enable-dependency-tracking was given.
3943 if test "${enable_dependency_tracking+set}" = set; then :
3944 enableval=$enable_dependency_tracking;
3945 fi
3946
3947 if test "x$enable_dependency_tracking" != xno; then
3948 am_depcomp="$ac_aux_dir/depcomp"
3949 AMDEPBACKSLASH='\'
3950 am__nodep='_no'
3951 fi
3952 if test "x$enable_dependency_tracking" != xno; then
3953 AMDEP_TRUE=
3954 AMDEP_FALSE='#'
3955 else
3956 AMDEP_TRUE='#'
3957 AMDEP_FALSE=
3958 fi
3959
3960
3961 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3962 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3963 # is not polluted with repeated "-I."
3964 am__isrc=' -I$(srcdir)'
3965 # test to see if srcdir already configured
3966 if test -f $srcdir/config.status; then
3967 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3968 fi
3969 fi
3970
3971 # test whether we have cygpath
3972 if test -z "$CYGPATH_W"; then
3973 if (cygpath --version) >/dev/null 2>/dev/null; then
3974 CYGPATH_W='cygpath -w'
3975 else
3976 CYGPATH_W=echo
3977 fi
3978 fi
3979
3980
3981 # Define the identity of the package.
3982 PACKAGE='binutils'
3983 VERSION='2.26.51'
3984
3985
3986 cat >>confdefs.h <<_ACEOF
3987 #define PACKAGE "$PACKAGE"
3988 _ACEOF
3989
3990
3991 cat >>confdefs.h <<_ACEOF
3992 #define VERSION "$VERSION"
3993 _ACEOF
3994
3995 # Some tools Automake needs.
3996
3997 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3998
3999
4000 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4001
4002
4003 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4004
4005
4006 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4007
4008
4009 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4010
4011 # We need awk for the "check" target. The system "awk" is bad on
4012 # some platforms.
4013 # Always define AMTAR for backward compatibility. Yes, it's still used
4014 # in the wild :-( We should find a proper way to deprecate it ...
4015 AMTAR='$${TAR-tar}'
4016
4017 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4018
4019
4020
4021
4022 depcc="$CC" am_compiler_list=
4023
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4025 $as_echo_n "checking dependency style of $depcc... " >&6; }
4026 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4030 # We make a subdir and do the tests there. Otherwise we can end up
4031 # making bogus files that we don't know about and never remove. For
4032 # instance it was reported that on HP-UX the gcc test will end up
4033 # making a dummy file named `D' -- because `-MD' means `put the output
4034 # in D'.
4035 rm -rf conftest.dir
4036 mkdir conftest.dir
4037 # Copy depcomp to subdir because otherwise we won't find it if we're
4038 # using a relative directory.
4039 cp "$am_depcomp" conftest.dir
4040 cd conftest.dir
4041 # We will build objects and dependencies in a subdirectory because
4042 # it helps to detect inapplicable dependency modes. For instance
4043 # both Tru64's cc and ICC support -MD to output dependencies as a
4044 # side effect of compilation, but ICC will put the dependencies in
4045 # the current directory while Tru64 will put them in the object
4046 # directory.
4047 mkdir sub
4048
4049 am_cv_CC_dependencies_compiler_type=none
4050 if test "$am_compiler_list" = ""; then
4051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4052 fi
4053 am__universal=false
4054 case " $depcc " in #(
4055 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4056 esac
4057
4058 for depmode in $am_compiler_list; do
4059 # Setup a source with many dependencies, because some compilers
4060 # like to wrap large dependency lists on column 80 (with \), and
4061 # we should not choose a depcomp mode which is confused by this.
4062 #
4063 # We need to recreate these files for each test, as the compiler may
4064 # overwrite some of them when testing with obscure command lines.
4065 # This happens at least with the AIX C compiler.
4066 : > sub/conftest.c
4067 for i in 1 2 3 4 5 6; do
4068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4070 # Solaris 8's {/usr,}/bin/sh.
4071 touch sub/conftst$i.h
4072 done
4073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074
4075 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4076 # mode. It turns out that the SunPro C++ compiler does not properly
4077 # handle `-M -o', and we need to detect this. Also, some Intel
4078 # versions had trouble with output in subdirs
4079 am__obj=sub/conftest.${OBJEXT-o}
4080 am__minus_obj="-o $am__obj"
4081 case $depmode in
4082 gcc)
4083 # This depmode causes a compiler race in universal mode.
4084 test "$am__universal" = false || continue
4085 ;;
4086 nosideeffect)
4087 # after this tag, mechanisms are not by side-effect, so they'll
4088 # only be used when explicitly requested
4089 if test "x$enable_dependency_tracking" = xyes; then
4090 continue
4091 else
4092 break
4093 fi
4094 ;;
4095 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4096 # This compiler won't grok `-c -o', but also, the minuso test has
4097 # not run yet. These depmodes are late enough in the game, and
4098 # so weak that their functioning should not be impacted.
4099 am__obj=conftest.${OBJEXT-o}
4100 am__minus_obj=
4101 ;;
4102 none) break ;;
4103 esac
4104 if depmode=$depmode \
4105 source=sub/conftest.c object=$am__obj \
4106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4108 >/dev/null 2>conftest.err &&
4109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4113 # icc doesn't choke on unknown options, it will just issue warnings
4114 # or remarks (even with -Werror). So we grep stderr for any message
4115 # that says an option was ignored or not supported.
4116 # When given -MP, icc 7.0 and 7.1 complain thusly:
4117 # icc: Command line warning: ignoring option '-M'; no argument required
4118 # The diagnosis changed in icc 8.0:
4119 # icc: Command line remark: option '-MP' not supported
4120 if (grep 'ignoring option' conftest.err ||
4121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4122 am_cv_CC_dependencies_compiler_type=$depmode
4123 break
4124 fi
4125 fi
4126 done
4127
4128 cd ..
4129 rm -rf conftest.dir
4130 else
4131 am_cv_CC_dependencies_compiler_type=none
4132 fi
4133
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4136 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4137 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4138
4139 if
4140 test "x$enable_dependency_tracking" != xno \
4141 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4142 am__fastdepCC_TRUE=
4143 am__fastdepCC_FALSE='#'
4144 else
4145 am__fastdepCC_TRUE='#'
4146 am__fastdepCC_FALSE=
4147 fi
4148
4149
4150
4151
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 if test -n "$ac_tool_prefix"; then
4158 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if test "${ac_cv_prog_CC+set}" = set; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 if test -n "$CC"; then
4166 ac_cv_prog_CC="$CC" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4170 do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179 done
4180 done
4181 IFS=$as_save_IFS
4182
4183 fi
4184 fi
4185 CC=$ac_cv_prog_CC
4186 if test -n "$CC"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4188 $as_echo "$CC" >&6; }
4189 else
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4192 fi
4193
4194
4195 fi
4196 if test -z "$ac_cv_prog_CC"; then
4197 ac_ct_CC=$CC
4198 # Extract the first word of "gcc", so it can be a program name with args.
4199 set dummy gcc; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 if test -n "$ac_ct_CC"; then
4206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_ac_ct_CC="gcc"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219 done
4220 done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4226 if test -n "$ac_ct_CC"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4228 $as_echo "$ac_ct_CC" >&6; }
4229 else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234 if test "x$ac_ct_CC" = x; then
4235 CC=""
4236 else
4237 case $cross_compiling:$ac_tool_warned in
4238 yes:)
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4241 ac_tool_warned=yes ;;
4242 esac
4243 CC=$ac_ct_CC
4244 fi
4245 else
4246 CC="$ac_cv_prog_CC"
4247 fi
4248
4249 if test -z "$CC"; then
4250 if test -n "$ac_tool_prefix"; then
4251 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}cc; ac_word=$2
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 $as_echo_n "checking for $ac_word... " >&6; }
4255 if test "${ac_cv_prog_CC+set}" = set; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if test -n "$CC"; then
4259 ac_cv_prog_CC="$CC" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_CC="${ac_tool_prefix}cc"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276 fi
4277 fi
4278 CC=$ac_cv_prog_CC
4279 if test -n "$CC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4281 $as_echo "$CC" >&6; }
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4285 fi
4286
4287
4288 fi
4289 fi
4290 if test -z "$CC"; then
4291 # Extract the first word of "cc", so it can be a program name with args.
4292 set dummy cc; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_CC+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 if test -n "$CC"; then
4299 ac_cv_prog_CC="$CC" # Let the user override the test.
4300 else
4301 ac_prog_rejected=no
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4310 ac_prog_rejected=yes
4311 continue
4312 fi
4313 ac_cv_prog_CC="cc"
4314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 break 2
4316 fi
4317 done
4318 done
4319 IFS=$as_save_IFS
4320
4321 if test $ac_prog_rejected = yes; then
4322 # We found a bogon in the path, so make sure we never use it.
4323 set dummy $ac_cv_prog_CC
4324 shift
4325 if test $# != 0; then
4326 # We chose a different compiler from the bogus one.
4327 # However, it has the same basename, so the bogon will be chosen
4328 # first if we set CC to just the basename; use the full file name.
4329 shift
4330 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4331 fi
4332 fi
4333 fi
4334 fi
4335 CC=$ac_cv_prog_CC
4336 if test -n "$CC"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4338 $as_echo "$CC" >&6; }
4339 else
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 fi
4343
4344
4345 fi
4346 if test -z "$CC"; then
4347 if test -n "$ac_tool_prefix"; then
4348 for ac_prog in cl.exe
4349 do
4350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_CC+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$CC"; then
4358 ac_cv_prog_CC="$CC" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4370 fi
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 CC=$ac_cv_prog_CC
4378 if test -n "$CC"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4380 $as_echo "$CC" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385
4386
4387 test -n "$CC" && break
4388 done
4389 fi
4390 if test -z "$CC"; then
4391 ac_ct_CC=$CC
4392 for ac_prog in cl.exe
4393 do
4394 # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if test -n "$ac_ct_CC"; then
4402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407 IFS=$as_save_IFS
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 ac_cv_prog_ac_ct_CC="$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 break 2
4414 fi
4415 done
4416 done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4422 if test -n "$ac_ct_CC"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4424 $as_echo "$ac_ct_CC" >&6; }
4425 else
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431 test -n "$ac_ct_CC" && break
4432 done
4433
4434 if test "x$ac_ct_CC" = x; then
4435 CC=""
4436 else
4437 case $cross_compiling:$ac_tool_warned in
4438 yes:)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned=yes ;;
4442 esac
4443 CC=$ac_ct_CC
4444 fi
4445 fi
4446
4447 fi
4448
4449
4450 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4452 as_fn_error "no acceptable C compiler found in \$PATH
4453 See \`config.log' for more details." "$LINENO" 5; }
4454
4455 # Provide some information about the compiler.
4456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4457 set X $ac_compile
4458 ac_compiler=$2
4459 for ac_option in --version -v -V -qversion; do
4460 { { ac_try="$ac_compiler $ac_option >&5"
4461 case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466 $as_echo "$ac_try_echo"; } >&5
4467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4468 ac_status=$?
4469 if test -s conftest.err; then
4470 sed '10a\
4471 ... rest of stderr output deleted ...
4472 10q' conftest.err >conftest.er1
4473 cat conftest.er1 >&5
4474 rm -f conftest.er1 conftest.err
4475 fi
4476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477 test $ac_status = 0; }
4478 done
4479
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4482 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487
4488 int
4489 main ()
4490 {
4491 #ifndef __GNUC__
4492 choke me
4493 #endif
4494
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 if ac_fn_c_try_compile "$LINENO"; then :
4500 ac_compiler_gnu=yes
4501 else
4502 ac_compiler_gnu=no
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4506
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4509 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4510 if test $ac_compiler_gnu = yes; then
4511 GCC=yes
4512 else
4513 GCC=
4514 fi
4515 ac_test_CFLAGS=${CFLAGS+set}
4516 ac_save_CFLAGS=$CFLAGS
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4518 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4519 if test "${ac_cv_prog_cc_g+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 ac_save_c_werror_flag=$ac_c_werror_flag
4523 ac_c_werror_flag=yes
4524 ac_cv_prog_cc_g=no
4525 CFLAGS="-g"
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528
4529 int
4530 main ()
4531 {
4532
4533 ;
4534 return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 ac_cv_prog_cc_g=yes
4539 else
4540 CFLAGS=""
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543
4544 int
4545 main ()
4546 {
4547
4548 ;
4549 return 0;
4550 }
4551 _ACEOF
4552 if ac_fn_c_try_compile "$LINENO"; then :
4553
4554 else
4555 ac_c_werror_flag=$ac_save_c_werror_flag
4556 CFLAGS="-g"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559
4560 int
4561 main ()
4562 {
4563
4564 ;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_prog_cc_g=yes
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 fi
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 ac_c_werror_flag=$ac_save_c_werror_flag
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4579 $as_echo "$ac_cv_prog_cc_g" >&6; }
4580 if test "$ac_test_CFLAGS" = set; then
4581 CFLAGS=$ac_save_CFLAGS
4582 elif test $ac_cv_prog_cc_g = yes; then
4583 if test "$GCC" = yes; then
4584 CFLAGS="-g -O2"
4585 else
4586 CFLAGS="-g"
4587 fi
4588 else
4589 if test "$GCC" = yes; then
4590 CFLAGS="-O2"
4591 else
4592 CFLAGS=
4593 fi
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4596 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4597 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 ac_cv_prog_cc_c89=no
4601 ac_save_CC=$CC
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604 #include <stdarg.h>
4605 #include <stdio.h>
4606 #include <sys/types.h>
4607 #include <sys/stat.h>
4608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4609 struct buf { int x; };
4610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4611 static char *e (p, i)
4612 char **p;
4613 int i;
4614 {
4615 return p[i];
4616 }
4617 static char *f (char * (*g) (char **, int), char **p, ...)
4618 {
4619 char *s;
4620 va_list v;
4621 va_start (v,p);
4622 s = g (p, va_arg (v,int));
4623 va_end (v);
4624 return s;
4625 }
4626
4627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4628 function prototypes and stuff, but not '\xHH' hex character constants.
4629 These don't provoke an error unfortunately, instead are silently treated
4630 as 'x'. The following induces an error, until -std is added to get
4631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4632 array size at least. It's necessary to write '\x00'==0 to get something
4633 that's true only with -std. */
4634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4635
4636 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4637 inside strings and character constants. */
4638 #define FOO(x) 'x'
4639 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4640
4641 int test (int i, double x);
4642 struct s1 {int (*f) (int a);};
4643 struct s2 {int (*f) (double a);};
4644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4645 int argc;
4646 char **argv;
4647 int
4648 main ()
4649 {
4650 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4651 ;
4652 return 0;
4653 }
4654 _ACEOF
4655 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4657 do
4658 CC="$ac_save_CC $ac_arg"
4659 if ac_fn_c_try_compile "$LINENO"; then :
4660 ac_cv_prog_cc_c89=$ac_arg
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext
4663 test "x$ac_cv_prog_cc_c89" != "xno" && break
4664 done
4665 rm -f conftest.$ac_ext
4666 CC=$ac_save_CC
4667
4668 fi
4669 # AC_CACHE_VAL
4670 case "x$ac_cv_prog_cc_c89" in
4671 x)
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4673 $as_echo "none needed" >&6; } ;;
4674 xno)
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4676 $as_echo "unsupported" >&6; } ;;
4677 *)
4678 CC="$CC $ac_cv_prog_cc_c89"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4680 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4681 esac
4682 if test "x$ac_cv_prog_cc_c89" != xno; then :
4683
4684 fi
4685
4686 ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4698 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4699 # On Suns, sometimes $CPP names a directory.
4700 if test -n "$CPP" && test -d "$CPP"; then
4701 CPP=
4702 fi
4703 if test -z "$CPP"; then
4704 if test "${ac_cv_prog_CPP+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 # Double quotes because CPP needs to be expanded
4708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4709 do
4710 ac_preproc_ok=false
4711 for ac_c_preproc_warn_flag in '' yes
4712 do
4713 # Use a header file that comes with gcc, so configuring glibc
4714 # with a fresh cross-compiler works.
4715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716 # <limits.h> exists even on freestanding compilers.
4717 # On the NeXT, cc -E runs the code through the compiler's parser,
4718 # not just through cpp. "Syntax error" is here to catch this case.
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 #ifdef __STDC__
4722 # include <limits.h>
4723 #else
4724 # include <assert.h>
4725 #endif
4726 Syntax error
4727 _ACEOF
4728 if ac_fn_c_try_cpp "$LINENO"; then :
4729
4730 else
4731 # Broken: fails on valid input.
4732 continue
4733 fi
4734 rm -f conftest.err conftest.$ac_ext
4735
4736 # OK, works on sane cases. Now check whether nonexistent headers
4737 # can be detected and how.
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 #include <ac_nonexistent.h>
4741 _ACEOF
4742 if ac_fn_c_try_cpp "$LINENO"; then :
4743 # Broken: success on invalid input.
4744 continue
4745 else
4746 # Passes both tests.
4747 ac_preproc_ok=:
4748 break
4749 fi
4750 rm -f conftest.err conftest.$ac_ext
4751
4752 done
4753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754 rm -f conftest.err conftest.$ac_ext
4755 if $ac_preproc_ok; then :
4756 break
4757 fi
4758
4759 done
4760 ac_cv_prog_CPP=$CPP
4761
4762 fi
4763 CPP=$ac_cv_prog_CPP
4764 else
4765 ac_cv_prog_CPP=$CPP
4766 fi
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4768 $as_echo "$CPP" >&6; }
4769 ac_preproc_ok=false
4770 for ac_c_preproc_warn_flag in '' yes
4771 do
4772 # Use a header file that comes with gcc, so configuring glibc
4773 # with a fresh cross-compiler works.
4774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775 # <limits.h> exists even on freestanding compilers.
4776 # On the NeXT, cc -E runs the code through the compiler's parser,
4777 # not just through cpp. "Syntax error" is here to catch this case.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #ifdef __STDC__
4781 # include <limits.h>
4782 #else
4783 # include <assert.h>
4784 #endif
4785 Syntax error
4786 _ACEOF
4787 if ac_fn_c_try_cpp "$LINENO"; then :
4788
4789 else
4790 # Broken: fails on valid input.
4791 continue
4792 fi
4793 rm -f conftest.err conftest.$ac_ext
4794
4795 # OK, works on sane cases. Now check whether nonexistent headers
4796 # can be detected and how.
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 #include <ac_nonexistent.h>
4800 _ACEOF
4801 if ac_fn_c_try_cpp "$LINENO"; then :
4802 # Broken: success on invalid input.
4803 continue
4804 else
4805 # Passes both tests.
4806 ac_preproc_ok=:
4807 break
4808 fi
4809 rm -f conftest.err conftest.$ac_ext
4810
4811 done
4812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813 rm -f conftest.err conftest.$ac_ext
4814 if $ac_preproc_ok; then :
4815
4816 else
4817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4819 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4820 See \`config.log' for more details." "$LINENO" 5; }
4821 fi
4822
4823 ac_ext=c
4824 ac_cpp='$CPP $CPPFLAGS'
4825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828
4829
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4831 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4832 if test "${ac_cv_path_GREP+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -z "$GREP"; then
4836 ac_path_GREP_found=false
4837 # Loop through the user's path and test for each of PROGNAME-LIST
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840 do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_prog in grep ggrep; do
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4846 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4847 # Check for GNU ac_path_GREP and select it if it is found.
4848 # Check for GNU $ac_path_GREP
4849 case `"$ac_path_GREP" --version 2>&1` in
4850 *GNU*)
4851 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4852 *)
4853 ac_count=0
4854 $as_echo_n 0123456789 >"conftest.in"
4855 while :
4856 do
4857 cat "conftest.in" "conftest.in" >"conftest.tmp"
4858 mv "conftest.tmp" "conftest.in"
4859 cp "conftest.in" "conftest.nl"
4860 $as_echo 'GREP' >> "conftest.nl"
4861 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863 as_fn_arith $ac_count + 1 && ac_count=$as_val
4864 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4865 # Best one so far, save it but keep looking for a better one
4866 ac_cv_path_GREP="$ac_path_GREP"
4867 ac_path_GREP_max=$ac_count
4868 fi
4869 # 10*(2^10) chars as input seems more than enough
4870 test $ac_count -gt 10 && break
4871 done
4872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873 esac
4874
4875 $ac_path_GREP_found && break 3
4876 done
4877 done
4878 done
4879 IFS=$as_save_IFS
4880 if test -z "$ac_cv_path_GREP"; then
4881 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4882 fi
4883 else
4884 ac_cv_path_GREP=$GREP
4885 fi
4886
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4889 $as_echo "$ac_cv_path_GREP" >&6; }
4890 GREP="$ac_cv_path_GREP"
4891
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4894 $as_echo_n "checking for egrep... " >&6; }
4895 if test "${ac_cv_path_EGREP+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4899 then ac_cv_path_EGREP="$GREP -E"
4900 else
4901 if test -z "$EGREP"; then
4902 ac_path_EGREP_found=false
4903 # Loop through the user's path and test for each of PROGNAME-LIST
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4906 do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_prog in egrep; do
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4912 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4913 # Check for GNU ac_path_EGREP and select it if it is found.
4914 # Check for GNU $ac_path_EGREP
4915 case `"$ac_path_EGREP" --version 2>&1` in
4916 *GNU*)
4917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4918 *)
4919 ac_count=0
4920 $as_echo_n 0123456789 >"conftest.in"
4921 while :
4922 do
4923 cat "conftest.in" "conftest.in" >"conftest.tmp"
4924 mv "conftest.tmp" "conftest.in"
4925 cp "conftest.in" "conftest.nl"
4926 $as_echo 'EGREP' >> "conftest.nl"
4927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4929 as_fn_arith $ac_count + 1 && ac_count=$as_val
4930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4931 # Best one so far, save it but keep looking for a better one
4932 ac_cv_path_EGREP="$ac_path_EGREP"
4933 ac_path_EGREP_max=$ac_count
4934 fi
4935 # 10*(2^10) chars as input seems more than enough
4936 test $ac_count -gt 10 && break
4937 done
4938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4939 esac
4940
4941 $ac_path_EGREP_found && break 3
4942 done
4943 done
4944 done
4945 IFS=$as_save_IFS
4946 if test -z "$ac_cv_path_EGREP"; then
4947 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4948 fi
4949 else
4950 ac_cv_path_EGREP=$EGREP
4951 fi
4952
4953 fi
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4956 $as_echo "$ac_cv_path_EGREP" >&6; }
4957 EGREP="$ac_cv_path_EGREP"
4958
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4961 $as_echo_n "checking for ANSI C header files... " >&6; }
4962 if test "${ac_cv_header_stdc+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #include <stdlib.h>
4968 #include <stdarg.h>
4969 #include <string.h>
4970 #include <float.h>
4971
4972 int
4973 main ()
4974 {
4975
4976 ;
4977 return 0;
4978 }
4979 _ACEOF
4980 if ac_fn_c_try_compile "$LINENO"; then :
4981 ac_cv_header_stdc=yes
4982 else
4983 ac_cv_header_stdc=no
4984 fi
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986
4987 if test $ac_cv_header_stdc = yes; then
4988 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #include <string.h>
4992
4993 _ACEOF
4994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4995 $EGREP "memchr" >/dev/null 2>&1; then :
4996
4997 else
4998 ac_cv_header_stdc=no
4999 fi
5000 rm -f conftest*
5001
5002 fi
5003
5004 if test $ac_cv_header_stdc = yes; then
5005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <stdlib.h>
5009
5010 _ACEOF
5011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5012 $EGREP "free" >/dev/null 2>&1; then :
5013
5014 else
5015 ac_cv_header_stdc=no
5016 fi
5017 rm -f conftest*
5018
5019 fi
5020
5021 if test $ac_cv_header_stdc = yes; then
5022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5023 if test "$cross_compiling" = yes; then :
5024 :
5025 else
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #include <ctype.h>
5029 #include <stdlib.h>
5030 #if ((' ' & 0x0FF) == 0x020)
5031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5033 #else
5034 # define ISLOWER(c) \
5035 (('a' <= (c) && (c) <= 'i') \
5036 || ('j' <= (c) && (c) <= 'r') \
5037 || ('s' <= (c) && (c) <= 'z'))
5038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5039 #endif
5040
5041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5042 int
5043 main ()
5044 {
5045 int i;
5046 for (i = 0; i < 256; i++)
5047 if (XOR (islower (i), ISLOWER (i))
5048 || toupper (i) != TOUPPER (i))
5049 return 2;
5050 return 0;
5051 }
5052 _ACEOF
5053 if ac_fn_c_try_run "$LINENO"; then :
5054
5055 else
5056 ac_cv_header_stdc=no
5057 fi
5058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5059 conftest.$ac_objext conftest.beam conftest.$ac_ext
5060 fi
5061
5062 fi
5063 fi
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5065 $as_echo "$ac_cv_header_stdc" >&6; }
5066 if test $ac_cv_header_stdc = yes; then
5067
5068 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5069
5070 fi
5071
5072 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5073 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5074 inttypes.h stdint.h unistd.h
5075 do :
5076 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5077 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5078 "
5079 eval as_val=\$$as_ac_Header
5080 if test "x$as_val" = x""yes; then :
5081 cat >>confdefs.h <<_ACEOF
5082 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5083 _ACEOF
5084
5085 fi
5086
5087 done
5088
5089
5090
5091 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5092 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5093 MINIX=yes
5094 else
5095 MINIX=
5096 fi
5097
5098
5099 if test "$MINIX" = yes; then
5100
5101 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5102
5103
5104 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5105
5106
5107 $as_echo "#define _MINIX 1" >>confdefs.h
5108
5109 fi
5110
5111
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5113 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5114 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5115 $as_echo_n "(cached) " >&6
5116 else
5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5119
5120 # define __EXTENSIONS__ 1
5121 $ac_includes_default
5122 int
5123 main ()
5124 {
5125
5126 ;
5127 return 0;
5128 }
5129 _ACEOF
5130 if ac_fn_c_try_compile "$LINENO"; then :
5131 ac_cv_safe_to_define___extensions__=yes
5132 else
5133 ac_cv_safe_to_define___extensions__=no
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5138 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5139 test $ac_cv_safe_to_define___extensions__ = yes &&
5140 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5141
5142 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5143
5144 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5145
5146 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5147
5148 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5149
5150
5151
5152
5153
5154 case `pwd` in
5155 *\ * | *\ *)
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5157 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5158 esac
5159
5160
5161
5162 macro_version='2.2.7a'
5163 macro_revision='1.3134'
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 ltmain="$ac_aux_dir/ltmain.sh"
5178
5179 # Backslashify metacharacters that are still active within
5180 # double-quoted strings.
5181 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5182
5183 # Same as above, but do not quote variable references.
5184 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5185
5186 # Sed substitution to delay expansion of an escaped shell variable in a
5187 # double_quote_subst'ed string.
5188 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5189
5190 # Sed substitution to delay expansion of an escaped single quote.
5191 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5192
5193 # Sed substitution to avoid accidental globbing in evaled expressions
5194 no_glob_subst='s/\*/\\\*/g'
5195
5196 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5197 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5198 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5201 $as_echo_n "checking how to print strings... " >&6; }
5202 # Test print first, because it will be a builtin if present.
5203 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5204 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5205 ECHO='print -r --'
5206 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5207 ECHO='printf %s\n'
5208 else
5209 # Use this function as a fallback that always works.
5210 func_fallback_echo ()
5211 {
5212 eval 'cat <<_LTECHO_EOF
5213 $1
5214 _LTECHO_EOF'
5215 }
5216 ECHO='func_fallback_echo'
5217 fi
5218
5219 # func_echo_all arg...
5220 # Invoke $ECHO with all args, space-separated.
5221 func_echo_all ()
5222 {
5223 $ECHO ""
5224 }
5225
5226 case "$ECHO" in
5227 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5228 $as_echo "printf" >&6; } ;;
5229 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5230 $as_echo "print -r" >&6; } ;;
5231 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5232 $as_echo "cat" >&6; } ;;
5233 esac
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5249 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5250 if test "${ac_cv_path_SED+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5254 for ac_i in 1 2 3 4 5 6 7; do
5255 ac_script="$ac_script$as_nl$ac_script"
5256 done
5257 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5258 { ac_script=; unset ac_script;}
5259 if test -z "$SED"; then
5260 ac_path_SED_found=false
5261 # Loop through the user's path and test for each of PROGNAME-LIST
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_prog in sed gsed; do
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5270 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5271 # Check for GNU ac_path_SED and select it if it is found.
5272 # Check for GNU $ac_path_SED
5273 case `"$ac_path_SED" --version 2>&1` in
5274 *GNU*)
5275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5276 *)
5277 ac_count=0
5278 $as_echo_n 0123456789 >"conftest.in"
5279 while :
5280 do
5281 cat "conftest.in" "conftest.in" >"conftest.tmp"
5282 mv "conftest.tmp" "conftest.in"
5283 cp "conftest.in" "conftest.nl"
5284 $as_echo '' >> "conftest.nl"
5285 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5287 as_fn_arith $ac_count + 1 && ac_count=$as_val
5288 if test $ac_count -gt ${ac_path_SED_max-0}; then
5289 # Best one so far, save it but keep looking for a better one
5290 ac_cv_path_SED="$ac_path_SED"
5291 ac_path_SED_max=$ac_count
5292 fi
5293 # 10*(2^10) chars as input seems more than enough
5294 test $ac_count -gt 10 && break
5295 done
5296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5297 esac
5298
5299 $ac_path_SED_found && break 3
5300 done
5301 done
5302 done
5303 IFS=$as_save_IFS
5304 if test -z "$ac_cv_path_SED"; then
5305 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5306 fi
5307 else
5308 ac_cv_path_SED=$SED
5309 fi
5310
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5313 $as_echo "$ac_cv_path_SED" >&6; }
5314 SED="$ac_cv_path_SED"
5315 rm -f conftest.sed
5316
5317 test -z "$SED" && SED=sed
5318 Xsed="$SED -e 1s/^X//"
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5331 $as_echo_n "checking for fgrep... " >&6; }
5332 if test "${ac_cv_path_FGREP+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5336 then ac_cv_path_FGREP="$GREP -F"
5337 else
5338 if test -z "$FGREP"; then
5339 ac_path_FGREP_found=false
5340 # Loop through the user's path and test for each of PROGNAME-LIST
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5343 do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_prog in fgrep; do
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5349 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5350 # Check for GNU ac_path_FGREP and select it if it is found.
5351 # Check for GNU $ac_path_FGREP
5352 case `"$ac_path_FGREP" --version 2>&1` in
5353 *GNU*)
5354 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5355 *)
5356 ac_count=0
5357 $as_echo_n 0123456789 >"conftest.in"
5358 while :
5359 do
5360 cat "conftest.in" "conftest.in" >"conftest.tmp"
5361 mv "conftest.tmp" "conftest.in"
5362 cp "conftest.in" "conftest.nl"
5363 $as_echo 'FGREP' >> "conftest.nl"
5364 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5366 as_fn_arith $ac_count + 1 && ac_count=$as_val
5367 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5368 # Best one so far, save it but keep looking for a better one
5369 ac_cv_path_FGREP="$ac_path_FGREP"
5370 ac_path_FGREP_max=$ac_count
5371 fi
5372 # 10*(2^10) chars as input seems more than enough
5373 test $ac_count -gt 10 && break
5374 done
5375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5376 esac
5377
5378 $ac_path_FGREP_found && break 3
5379 done
5380 done
5381 done
5382 IFS=$as_save_IFS
5383 if test -z "$ac_cv_path_FGREP"; then
5384 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5385 fi
5386 else
5387 ac_cv_path_FGREP=$FGREP
5388 fi
5389
5390 fi
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5393 $as_echo "$ac_cv_path_FGREP" >&6; }
5394 FGREP="$ac_cv_path_FGREP"
5395
5396
5397 test -z "$GREP" && GREP=grep
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 # Check whether --with-gnu-ld was given.
5418 if test "${with_gnu_ld+set}" = set; then :
5419 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5420 else
5421 with_gnu_ld=no
5422 fi
5423
5424 ac_prog=ld
5425 if test "$GCC" = yes; then
5426 # Check if gcc -print-prog-name=ld gives a path.
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5428 $as_echo_n "checking for ld used by $CC... " >&6; }
5429 case $host in
5430 *-*-mingw*)
5431 # gcc leaves a trailing carriage return which upsets mingw
5432 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5433 *)
5434 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5435 esac
5436 case $ac_prog in
5437 # Accept absolute paths.
5438 [\\/]* | ?:[\\/]*)
5439 re_direlt='/[^/][^/]*/\.\./'
5440 # Canonicalize the pathname of ld
5441 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5442 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5443 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5444 done
5445 test -z "$LD" && LD="$ac_prog"
5446 ;;
5447 "")
5448 # If it fails, then pretend we aren't using GCC.
5449 ac_prog=ld
5450 ;;
5451 *)
5452 # If it is relative, then search for the first ld in PATH.
5453 with_gnu_ld=unknown
5454 ;;
5455 esac
5456 elif test "$with_gnu_ld" = yes; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5458 $as_echo_n "checking for GNU ld... " >&6; }
5459 else
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5461 $as_echo_n "checking for non-GNU ld... " >&6; }
5462 fi
5463 if test "${lt_cv_path_LD+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -z "$LD"; then
5467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5468 for ac_dir in $PATH; do
5469 IFS="$lt_save_ifs"
5470 test -z "$ac_dir" && ac_dir=.
5471 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5472 lt_cv_path_LD="$ac_dir/$ac_prog"
5473 # Check to see if the program is GNU ld. I'd rather use --version,
5474 # but apparently some variants of GNU ld only accept -v.
5475 # Break only if it was the GNU/non-GNU ld that we prefer.
5476 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5477 *GNU* | *'with BFD'*)
5478 test "$with_gnu_ld" != no && break
5479 ;;
5480 *)
5481 test "$with_gnu_ld" != yes && break
5482 ;;
5483 esac
5484 fi
5485 done
5486 IFS="$lt_save_ifs"
5487 else
5488 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5489 fi
5490 fi
5491
5492 LD="$lt_cv_path_LD"
5493 if test -n "$LD"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5495 $as_echo "$LD" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5502 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5503 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5507 case `$LD -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
5509 lt_cv_prog_gnu_ld=yes
5510 ;;
5511 *)
5512 lt_cv_prog_gnu_ld=no
5513 ;;
5514 esac
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5517 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5518 with_gnu_ld=$lt_cv_prog_gnu_ld
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5529 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5530 if test "${lt_cv_path_NM+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$NM"; then
5534 # Let the user override the test.
5535 lt_cv_path_NM="$NM"
5536 else
5537 lt_nm_to_check="${ac_tool_prefix}nm"
5538 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5539 lt_nm_to_check="$lt_nm_to_check nm"
5540 fi
5541 for lt_tmp_nm in $lt_nm_to_check; do
5542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5543 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5544 IFS="$lt_save_ifs"
5545 test -z "$ac_dir" && ac_dir=.
5546 tmp_nm="$ac_dir/$lt_tmp_nm"
5547 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5548 # Check to see if the nm accepts a BSD-compat flag.
5549 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5550 # nm: unknown option "B" ignored
5551 # Tru64's nm complains that /dev/null is an invalid object file
5552 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5553 */dev/null* | *'Invalid file or object type'*)
5554 lt_cv_path_NM="$tmp_nm -B"
5555 break
5556 ;;
5557 *)
5558 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5559 */dev/null*)
5560 lt_cv_path_NM="$tmp_nm -p"
5561 break
5562 ;;
5563 *)
5564 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5565 continue # so that we can try to find one that supports BSD flags
5566 ;;
5567 esac
5568 ;;
5569 esac
5570 fi
5571 done
5572 IFS="$lt_save_ifs"
5573 done
5574 : ${lt_cv_path_NM=no}
5575 fi
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5578 $as_echo "$lt_cv_path_NM" >&6; }
5579 if test "$lt_cv_path_NM" != "no"; then
5580 NM="$lt_cv_path_NM"
5581 else
5582 # Didn't find any BSD compatible name lister, look for dumpbin.
5583 if test -n "$DUMPBIN"; then :
5584 # Let the user override the test.
5585 else
5586 if test -n "$ac_tool_prefix"; then
5587 for ac_prog in dumpbin "link -dump"
5588 do
5589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$DUMPBIN"; then
5597 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5606 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5609 fi
5610 done
5611 done
5612 IFS=$as_save_IFS
5613
5614 fi
5615 fi
5616 DUMPBIN=$ac_cv_prog_DUMPBIN
5617 if test -n "$DUMPBIN"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5619 $as_echo "$DUMPBIN" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5623 fi
5624
5625
5626 test -n "$DUMPBIN" && break
5627 done
5628 fi
5629 if test -z "$DUMPBIN"; then
5630 ac_ct_DUMPBIN=$DUMPBIN
5631 for ac_prog in dumpbin "link -dump"
5632 do
5633 # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$ac_ct_DUMPBIN"; then
5641 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5661 if test -n "$ac_ct_DUMPBIN"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5663 $as_echo "$ac_ct_DUMPBIN" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 test -n "$ac_ct_DUMPBIN" && break
5671 done
5672
5673 if test "x$ac_ct_DUMPBIN" = x; then
5674 DUMPBIN=":"
5675 else
5676 case $cross_compiling:$ac_tool_warned in
5677 yes:)
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680 ac_tool_warned=yes ;;
5681 esac
5682 DUMPBIN=$ac_ct_DUMPBIN
5683 fi
5684 fi
5685
5686 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5687 *COFF*)
5688 DUMPBIN="$DUMPBIN -symbols"
5689 ;;
5690 *)
5691 DUMPBIN=:
5692 ;;
5693 esac
5694 fi
5695
5696 if test "$DUMPBIN" != ":"; then
5697 NM="$DUMPBIN"
5698 fi
5699 fi
5700 test -z "$NM" && NM=nm
5701
5702
5703
5704
5705
5706
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5708 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5709 if test "${lt_cv_nm_interface+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 lt_cv_nm_interface="BSD nm"
5713 echo "int some_variable = 0;" > conftest.$ac_ext
5714 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5715 (eval "$ac_compile" 2>conftest.err)
5716 cat conftest.err >&5
5717 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5718 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5719 cat conftest.err >&5
5720 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5721 cat conftest.out >&5
5722 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5723 lt_cv_nm_interface="MS dumpbin"
5724 fi
5725 rm -f conftest*
5726 fi
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5728 $as_echo "$lt_cv_nm_interface" >&6; }
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5731 $as_echo_n "checking whether ln -s works... " >&6; }
5732 LN_S=$as_ln_s
5733 if test "$LN_S" = "ln -s"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735 $as_echo "yes" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5738 $as_echo "no, using $LN_S" >&6; }
5739 fi
5740
5741 # find the maximum length of command line arguments
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5743 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5744 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 i=0
5748 teststring="ABCD"
5749
5750 case $build_os in
5751 msdosdjgpp*)
5752 # On DJGPP, this test can blow up pretty badly due to problems in libc
5753 # (any single argument exceeding 2000 bytes causes a buffer overrun
5754 # during glob expansion). Even if it were fixed, the result of this
5755 # check would be larger than it should be.
5756 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5757 ;;
5758
5759 gnu*)
5760 # Under GNU Hurd, this test is not required because there is
5761 # no limit to the length of command line arguments.
5762 # Libtool will interpret -1 as no limit whatsoever
5763 lt_cv_sys_max_cmd_len=-1;
5764 ;;
5765
5766 cygwin* | mingw* | cegcc*)
5767 # On Win9x/ME, this test blows up -- it succeeds, but takes
5768 # about 5 minutes as the teststring grows exponentially.
5769 # Worse, since 9x/ME are not pre-emptively multitasking,
5770 # you end up with a "frozen" computer, even though with patience
5771 # the test eventually succeeds (with a max line length of 256k).
5772 # Instead, let's just punt: use the minimum linelength reported by
5773 # all of the supported platforms: 8192 (on NT/2K/XP).
5774 lt_cv_sys_max_cmd_len=8192;
5775 ;;
5776
5777 mint*)
5778 # On MiNT this can take a long time and run out of memory.
5779 lt_cv_sys_max_cmd_len=8192;
5780 ;;
5781
5782 amigaos*)
5783 # On AmigaOS with pdksh, this test takes hours, literally.
5784 # So we just punt and use a minimum line length of 8192.
5785 lt_cv_sys_max_cmd_len=8192;
5786 ;;
5787
5788 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5789 # This has been around since 386BSD, at least. Likely further.
5790 if test -x /sbin/sysctl; then
5791 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5792 elif test -x /usr/sbin/sysctl; then
5793 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5794 else
5795 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5796 fi
5797 # And add a safety zone
5798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5800 ;;
5801
5802 interix*)
5803 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5804 lt_cv_sys_max_cmd_len=196608
5805 ;;
5806
5807 osf*)
5808 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5809 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5810 # nice to cause kernel panics so lets avoid the loop below.
5811 # First set a reasonable default.
5812 lt_cv_sys_max_cmd_len=16384
5813 #
5814 if test -x /sbin/sysconfig; then
5815 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5816 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5817 esac
5818 fi
5819 ;;
5820 sco3.2v5*)
5821 lt_cv_sys_max_cmd_len=102400
5822 ;;
5823 sysv5* | sco5v6* | sysv4.2uw2*)
5824 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5825 if test -n "$kargmax"; then
5826 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5827 else
5828 lt_cv_sys_max_cmd_len=32768
5829 fi
5830 ;;
5831 *)
5832 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5833 if test -n "$lt_cv_sys_max_cmd_len"; then
5834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5836 else
5837 # Make teststring a little bigger before we do anything with it.
5838 # a 1K string should be a reasonable start.
5839 for i in 1 2 3 4 5 6 7 8 ; do
5840 teststring=$teststring$teststring
5841 done
5842 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5843 # If test is not a shell built-in, we'll probably end up computing a
5844 # maximum length that is only half of the actual maximum length, but
5845 # we can't tell.
5846 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5847 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5848 test $i != 17 # 1/2 MB should be enough
5849 do
5850 i=`expr $i + 1`
5851 teststring=$teststring$teststring
5852 done
5853 # Only check the string length outside the loop.
5854 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5855 teststring=
5856 # Add a significant safety factor because C++ compilers can tack on
5857 # massive amounts of additional arguments before passing them to the
5858 # linker. It appears as though 1/2 is a usable value.
5859 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5860 fi
5861 ;;
5862 esac
5863
5864 fi
5865
5866 if test -n $lt_cv_sys_max_cmd_len ; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5868 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5871 $as_echo "none" >&6; }
5872 fi
5873 max_cmd_len=$lt_cv_sys_max_cmd_len
5874
5875
5876
5877
5878
5879
5880 : ${CP="cp -f"}
5881 : ${MV="mv -f"}
5882 : ${RM="rm -f"}
5883
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5885 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5886 # Try some XSI features
5887 xsi_shell=no
5888 ( _lt_dummy="a/b/c"
5889 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5890 = c,a/b,, \
5891 && eval 'test $(( 1 + 1 )) -eq 2 \
5892 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5893 && xsi_shell=yes
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5895 $as_echo "$xsi_shell" >&6; }
5896
5897
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5899 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5900 lt_shell_append=no
5901 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5902 >/dev/null 2>&1 \
5903 && lt_shell_append=yes
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5905 $as_echo "$lt_shell_append" >&6; }
5906
5907
5908 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5909 lt_unset=unset
5910 else
5911 lt_unset=false
5912 fi
5913
5914
5915
5916
5917
5918 # test EBCDIC or ASCII
5919 case `echo X|tr X '\101'` in
5920 A) # ASCII based system
5921 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5922 lt_SP2NL='tr \040 \012'
5923 lt_NL2SP='tr \015\012 \040\040'
5924 ;;
5925 *) # EBCDIC based system
5926 lt_SP2NL='tr \100 \n'
5927 lt_NL2SP='tr \r\n \100\100'
5928 ;;
5929 esac
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5940 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5941 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 lt_cv_ld_reload_flag='-r'
5945 fi
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5947 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5948 reload_flag=$lt_cv_ld_reload_flag
5949 case $reload_flag in
5950 "" | " "*) ;;
5951 *) reload_flag=" $reload_flag" ;;
5952 esac
5953 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5954 case $host_os in
5955 darwin*)
5956 if test "$GCC" = yes; then
5957 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5958 else
5959 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5960 fi
5961 ;;
5962 esac
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 if test -n "$ac_tool_prefix"; then
5973 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5974 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$OBJDUMP"; then
5981 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5985 do
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5993 fi
5994 done
5995 done
5996 IFS=$as_save_IFS
5997
5998 fi
5999 fi
6000 OBJDUMP=$ac_cv_prog_OBJDUMP
6001 if test -n "$OBJDUMP"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6003 $as_echo "$OBJDUMP" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6007 fi
6008
6009
6010 fi
6011 if test -z "$ac_cv_prog_OBJDUMP"; then
6012 ac_ct_OBJDUMP=$OBJDUMP
6013 # Extract the first word of "objdump", so it can be a program name with args.
6014 set dummy objdump; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$ac_ct_OBJDUMP"; then
6021 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6041 if test -n "$ac_ct_OBJDUMP"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6043 $as_echo "$ac_ct_OBJDUMP" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049 if test "x$ac_ct_OBJDUMP" = x; then
6050 OBJDUMP="false"
6051 else
6052 case $cross_compiling:$ac_tool_warned in
6053 yes:)
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056 ac_tool_warned=yes ;;
6057 esac
6058 OBJDUMP=$ac_ct_OBJDUMP
6059 fi
6060 else
6061 OBJDUMP="$ac_cv_prog_OBJDUMP"
6062 fi
6063
6064 test -z "$OBJDUMP" && OBJDUMP=objdump
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6075 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6076 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 lt_cv_file_magic_cmd='$MAGIC_CMD'
6080 lt_cv_file_magic_test_file=
6081 lt_cv_deplibs_check_method='unknown'
6082 # Need to set the preceding variable on all platforms that support
6083 # interlibrary dependencies.
6084 # 'none' -- dependencies not supported.
6085 # `unknown' -- same as none, but documents that we really don't know.
6086 # 'pass_all' -- all dependencies passed with no checks.
6087 # 'test_compile' -- check by making test program.
6088 # 'file_magic [[regex]]' -- check by looking for files in library path
6089 # which responds to the $file_magic_cmd with a given extended regex.
6090 # If you have `file' or equivalent on your system and you're not sure
6091 # whether `pass_all' will *always* work, you probably want this one.
6092
6093 case $host_os in
6094 aix[4-9]*)
6095 lt_cv_deplibs_check_method=pass_all
6096 ;;
6097
6098 beos*)
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101
6102 bsdi[45]*)
6103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6104 lt_cv_file_magic_cmd='/usr/bin/file -L'
6105 lt_cv_file_magic_test_file=/shlib/libc.so
6106 ;;
6107
6108 cygwin*)
6109 # func_win32_libid is a shell function defined in ltmain.sh
6110 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6111 lt_cv_file_magic_cmd='func_win32_libid'
6112 ;;
6113
6114 mingw* | pw32*)
6115 # Base MSYS/MinGW do not provide the 'file' command needed by
6116 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6117 # unless we find 'file', for example because we are cross-compiling.
6118 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6119 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6121 lt_cv_file_magic_cmd='func_win32_libid'
6122 else
6123 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6124 lt_cv_file_magic_cmd='$OBJDUMP -f'
6125 fi
6126 ;;
6127
6128 cegcc*)
6129 # use the weaker test based on 'objdump'. See mingw*.
6130 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6131 lt_cv_file_magic_cmd='$OBJDUMP -f'
6132 ;;
6133
6134 darwin* | rhapsody*)
6135 lt_cv_deplibs_check_method=pass_all
6136 ;;
6137
6138 freebsd* | dragonfly*)
6139 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6140 case $host_cpu in
6141 i*86 )
6142 # Not sure whether the presence of OpenBSD here was a mistake.
6143 # Let's accept both of them until this is cleared up.
6144 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6145 lt_cv_file_magic_cmd=/usr/bin/file
6146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6147 ;;
6148 esac
6149 else
6150 lt_cv_deplibs_check_method=pass_all
6151 fi
6152 ;;
6153
6154 gnu*)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
6157
6158 haiku*)
6159 lt_cv_deplibs_check_method=pass_all
6160 ;;
6161
6162 hpux10.20* | hpux11*)
6163 lt_cv_file_magic_cmd=/usr/bin/file
6164 case $host_cpu in
6165 ia64*)
6166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6167 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6168 ;;
6169 hppa*64*)
6170 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]'
6171 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6172 ;;
6173 *)
6174 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6175 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6176 ;;
6177 esac
6178 ;;
6179
6180 interix[3-9]*)
6181 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6183 ;;
6184
6185 irix5* | irix6* | nonstopux*)
6186 case $LD in
6187 *-32|*"-32 ") libmagic=32-bit;;
6188 *-n32|*"-n32 ") libmagic=N32;;
6189 *-64|*"-64 ") libmagic=64-bit;;
6190 *) libmagic=never-match;;
6191 esac
6192 lt_cv_deplibs_check_method=pass_all
6193 ;;
6194
6195 # This must be Linux ELF.
6196 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200 netbsd*)
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6203 else
6204 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6205 fi
6206 ;;
6207
6208 newos6*)
6209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6210 lt_cv_file_magic_cmd=/usr/bin/file
6211 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6212 ;;
6213
6214 *nto* | *qnx*)
6215 lt_cv_deplibs_check_method=pass_all
6216 ;;
6217
6218 openbsd*)
6219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6221 else
6222 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6223 fi
6224 ;;
6225
6226 osf3* | osf4* | osf5*)
6227 lt_cv_deplibs_check_method=pass_all
6228 ;;
6229
6230 rdos*)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233
6234 solaris*)
6235 lt_cv_deplibs_check_method=pass_all
6236 ;;
6237
6238 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6239 lt_cv_deplibs_check_method=pass_all
6240 ;;
6241
6242 sysv4 | sysv4.3*)
6243 case $host_vendor in
6244 motorola)
6245 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]'
6246 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6247 ;;
6248 ncr)
6249 lt_cv_deplibs_check_method=pass_all
6250 ;;
6251 sequent)
6252 lt_cv_file_magic_cmd='/bin/file'
6253 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6254 ;;
6255 sni)
6256 lt_cv_file_magic_cmd='/bin/file'
6257 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6258 lt_cv_file_magic_test_file=/lib/libc.so
6259 ;;
6260 siemens)
6261 lt_cv_deplibs_check_method=pass_all
6262 ;;
6263 pc)
6264 lt_cv_deplibs_check_method=pass_all
6265 ;;
6266 esac
6267 ;;
6268
6269 tpf*)
6270 lt_cv_deplibs_check_method=pass_all
6271 ;;
6272 esac
6273
6274 fi
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6276 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6277 file_magic_cmd=$lt_cv_file_magic_cmd
6278 deplibs_check_method=$lt_cv_deplibs_check_method
6279 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292 if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}ar; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if test "${ac_cv_prog_AR+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if test -n "$AR"; then
6301 ac_cv_prog_AR="$AR" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_AR="${ac_tool_prefix}ar"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314 done
6315 done
6316 IFS=$as_save_IFS
6317
6318 fi
6319 fi
6320 AR=$ac_cv_prog_AR
6321 if test -n "$AR"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6323 $as_echo "$AR" >&6; }
6324 else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6327 fi
6328
6329
6330 fi
6331 if test -z "$ac_cv_prog_AR"; then
6332 ac_ct_AR=$AR
6333 # Extract the first word of "ar", so it can be a program name with args.
6334 set dummy ar; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 if test -n "$ac_ct_AR"; then
6341 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6345 do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_ac_ct_AR="ar"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354 done
6355 done
6356 IFS=$as_save_IFS
6357
6358 fi
6359 fi
6360 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6361 if test -n "$ac_ct_AR"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6363 $as_echo "$ac_ct_AR" >&6; }
6364 else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6367 fi
6368
6369 if test "x$ac_ct_AR" = x; then
6370 AR="false"
6371 else
6372 case $cross_compiling:$ac_tool_warned in
6373 yes:)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378 AR=$ac_ct_AR
6379 fi
6380 else
6381 AR="$ac_cv_prog_AR"
6382 fi
6383
6384 test -z "$AR" && AR=ar
6385 test -z "$AR_FLAGS" && AR_FLAGS=cru
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}strip; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if test "${ac_cv_prog_STRIP+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$STRIP"; then
6406 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6415 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 STRIP=$ac_cv_prog_STRIP
6426 if test -n "$STRIP"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6428 $as_echo "$STRIP" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 fi
6436 if test -z "$ac_cv_prog_STRIP"; then
6437 ac_ct_STRIP=$STRIP
6438 # Extract the first word of "strip", so it can be a program name with args.
6439 set dummy strip; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$ac_ct_STRIP"; then
6446 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_ac_ct_STRIP="strip"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6466 if test -n "$ac_ct_STRIP"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6468 $as_echo "$ac_ct_STRIP" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474 if test "x$ac_ct_STRIP" = x; then
6475 STRIP=":"
6476 else
6477 case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483 STRIP=$ac_ct_STRIP
6484 fi
6485 else
6486 STRIP="$ac_cv_prog_STRIP"
6487 fi
6488
6489 test -z "$STRIP" && STRIP=:
6490
6491
6492
6493
6494
6495
6496 if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6498 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 if test -n "$RANLIB"; then
6505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518 done
6519 done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 RANLIB=$ac_cv_prog_RANLIB
6525 if test -n "$RANLIB"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6527 $as_echo "$RANLIB" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533
6534 fi
6535 if test -z "$ac_cv_prog_RANLIB"; then
6536 ac_ct_RANLIB=$RANLIB
6537 # Extract the first word of "ranlib", so it can be a program name with args.
6538 set dummy ranlib; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test -n "$ac_ct_RANLIB"; then
6545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_ac_ct_RANLIB="ranlib"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6557 fi
6558 done
6559 done
6560 IFS=$as_save_IFS
6561
6562 fi
6563 fi
6564 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6565 if test -n "$ac_ct_RANLIB"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6567 $as_echo "$ac_ct_RANLIB" >&6; }
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6571 fi
6572
6573 if test "x$ac_ct_RANLIB" = x; then
6574 RANLIB=":"
6575 else
6576 case $cross_compiling:$ac_tool_warned in
6577 yes:)
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580 ac_tool_warned=yes ;;
6581 esac
6582 RANLIB=$ac_ct_RANLIB
6583 fi
6584 else
6585 RANLIB="$ac_cv_prog_RANLIB"
6586 fi
6587
6588 test -z "$RANLIB" && RANLIB=:
6589
6590
6591
6592
6593
6594
6595 # Determine commands to create old-style static archives.
6596 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6597 old_postinstall_cmds='chmod 644 $oldlib'
6598 old_postuninstall_cmds=
6599
6600 if test -n "$RANLIB"; then
6601 case $host_os in
6602 openbsd*)
6603 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6604 ;;
6605 *)
6606 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6607 ;;
6608 esac
6609 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6610 fi
6611
6612 case $host_os in
6613 darwin*)
6614 lock_old_archive_extraction=yes ;;
6615 *)
6616 lock_old_archive_extraction=no ;;
6617 esac
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657 # If no C compiler was specified, use CC.
6658 LTCC=${LTCC-"$CC"}
6659
6660 # If no C compiler flags were specified, use CFLAGS.
6661 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6662
6663 # Allow CC to be a program name with arguments.
6664 compiler=$CC
6665
6666
6667 # Check for command to grab the raw symbol name followed by C symbol from nm.
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6669 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6670 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6673
6674 # These are sane defaults that work on at least a few old systems.
6675 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6676
6677 # Character class describing NM global symbol codes.
6678 symcode='[BCDEGRST]'
6679
6680 # Regexp to match symbols that can be accessed directly from C.
6681 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6682
6683 # Define system-specific variables.
6684 case $host_os in
6685 aix*)
6686 symcode='[BCDT]'
6687 ;;
6688 cygwin* | mingw* | pw32* | cegcc*)
6689 symcode='[ABCDGISTW]'
6690 ;;
6691 hpux*)
6692 if test "$host_cpu" = ia64; then
6693 symcode='[ABCDEGRST]'
6694 fi
6695 ;;
6696 irix* | nonstopux*)
6697 symcode='[BCDEGRST]'
6698 ;;
6699 osf*)
6700 symcode='[BCDEGQRST]'
6701 ;;
6702 solaris*)
6703 symcode='[BDRT]'
6704 ;;
6705 sco3.2v5*)
6706 symcode='[DT]'
6707 ;;
6708 sysv4.2uw2*)
6709 symcode='[DT]'
6710 ;;
6711 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6712 symcode='[ABDT]'
6713 ;;
6714 sysv4)
6715 symcode='[DFNSTU]'
6716 ;;
6717 esac
6718
6719 # If we're using GNU nm, then use its standard symbol codes.
6720 case `$NM -V 2>&1` in
6721 *GNU* | *'with BFD'*)
6722 symcode='[ABCDGIRSTW]' ;;
6723 esac
6724
6725 # Transform an extracted symbol line into a proper C declaration.
6726 # Some systems (esp. on ia64) link data and code symbols differently,
6727 # so use this general approach.
6728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6729
6730 # Transform an extracted symbol line into symbol name and symbol address
6731 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6732 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'"
6733
6734 # Handle CRLF in mingw tool chain
6735 opt_cr=
6736 case $build_os in
6737 mingw*)
6738 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6739 ;;
6740 esac
6741
6742 # Try without a prefix underscore, then with it.
6743 for ac_symprfx in "" "_"; do
6744
6745 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6746 symxfrm="\\1 $ac_symprfx\\2 \\2"
6747
6748 # Write the raw and C identifiers.
6749 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6750 # Fake it for dumpbin and say T for any non-static function
6751 # and D for any global variable.
6752 # Also find C++ and __fastcall symbols from MSVC++,
6753 # which start with @ or ?.
6754 lt_cv_sys_global_symbol_pipe="$AWK '"\
6755 " {last_section=section; section=\$ 3};"\
6756 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6757 " \$ 0!~/External *\|/{next};"\
6758 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6759 " {if(hide[section]) next};"\
6760 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6761 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6762 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6763 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6764 " ' prfx=^$ac_symprfx"
6765 else
6766 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6767 fi
6768
6769 # Check to see that the pipe works correctly.
6770 pipe_works=no
6771
6772 rm -f conftest*
6773 cat > conftest.$ac_ext <<_LT_EOF
6774 #ifdef __cplusplus
6775 extern "C" {
6776 #endif
6777 char nm_test_var;
6778 void nm_test_func(void);
6779 void nm_test_func(void){}
6780 #ifdef __cplusplus
6781 }
6782 #endif
6783 int main(){nm_test_var='a';nm_test_func();return(0);}
6784 _LT_EOF
6785
6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6787 (eval $ac_compile) 2>&5
6788 ac_status=$?
6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790 test $ac_status = 0; }; then
6791 # Now try to grab the symbols.
6792 nlist=conftest.nm
6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6794 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6795 ac_status=$?
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; } && test -s "$nlist"; then
6798 # Try sorting and uniquifying the output.
6799 if sort "$nlist" | uniq > "$nlist"T; then
6800 mv -f "$nlist"T "$nlist"
6801 else
6802 rm -f "$nlist"T
6803 fi
6804
6805 # Make sure that we snagged all the symbols we need.
6806 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6807 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6808 cat <<_LT_EOF > conftest.$ac_ext
6809 #ifdef __cplusplus
6810 extern "C" {
6811 #endif
6812
6813 _LT_EOF
6814 # Now generate the symbol file.
6815 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6816
6817 cat <<_LT_EOF >> conftest.$ac_ext
6818
6819 /* The mapping between symbol names and symbols. */
6820 const struct {
6821 const char *name;
6822 void *address;
6823 }
6824 lt__PROGRAM__LTX_preloaded_symbols[] =
6825 {
6826 { "@PROGRAM@", (void *) 0 },
6827 _LT_EOF
6828 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6829 cat <<\_LT_EOF >> conftest.$ac_ext
6830 {0, (void *) 0}
6831 };
6832
6833 /* This works around a problem in FreeBSD linker */
6834 #ifdef FREEBSD_WORKAROUND
6835 static const void *lt_preloaded_setup() {
6836 return lt__PROGRAM__LTX_preloaded_symbols;
6837 }
6838 #endif
6839
6840 #ifdef __cplusplus
6841 }
6842 #endif
6843 _LT_EOF
6844 # Now try linking the two files.
6845 mv conftest.$ac_objext conftstm.$ac_objext
6846 lt_save_LIBS="$LIBS"
6847 lt_save_CFLAGS="$CFLAGS"
6848 LIBS="conftstm.$ac_objext"
6849 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6851 (eval $ac_link) 2>&5
6852 ac_status=$?
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6855 pipe_works=yes
6856 fi
6857 LIBS="$lt_save_LIBS"
6858 CFLAGS="$lt_save_CFLAGS"
6859 else
6860 echo "cannot find nm_test_func in $nlist" >&5
6861 fi
6862 else
6863 echo "cannot find nm_test_var in $nlist" >&5
6864 fi
6865 else
6866 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6867 fi
6868 else
6869 echo "$progname: failed program was:" >&5
6870 cat conftest.$ac_ext >&5
6871 fi
6872 rm -rf conftest* conftst*
6873
6874 # Do not use the global_symbol_pipe unless it works.
6875 if test "$pipe_works" = yes; then
6876 break
6877 else
6878 lt_cv_sys_global_symbol_pipe=
6879 fi
6880 done
6881
6882 fi
6883
6884 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6885 lt_cv_sys_global_symbol_to_cdecl=
6886 fi
6887 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6889 $as_echo "failed" >&6; }
6890 else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6892 $as_echo "ok" >&6; }
6893 fi
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916 # Check whether --enable-libtool-lock was given.
6917 if test "${enable_libtool_lock+set}" = set; then :
6918 enableval=$enable_libtool_lock;
6919 fi
6920
6921 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6922
6923 # Some flags need to be propagated to the compiler or linker for good
6924 # libtool support.
6925 case $host in
6926 ia64-*-hpux*)
6927 # Find out which ABI we are using.
6928 echo 'int i;' > conftest.$ac_ext
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6930 (eval $ac_compile) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; }; then
6934 case `/usr/bin/file conftest.$ac_objext` in
6935 *ELF-32*)
6936 HPUX_IA64_MODE="32"
6937 ;;
6938 *ELF-64*)
6939 HPUX_IA64_MODE="64"
6940 ;;
6941 esac
6942 fi
6943 rm -rf conftest*
6944 ;;
6945 *-*-irix6*)
6946 # Find out which ABI we are using.
6947 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6949 (eval $ac_compile) 2>&5
6950 ac_status=$?
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; }; then
6953 if test "$lt_cv_prog_gnu_ld" = yes; then
6954 case `/usr/bin/file conftest.$ac_objext` in
6955 *32-bit*)
6956 LD="${LD-ld} -melf32bsmip"
6957 ;;
6958 *N32*)
6959 LD="${LD-ld} -melf32bmipn32"
6960 ;;
6961 *64-bit*)
6962 LD="${LD-ld} -melf64bmip"
6963 ;;
6964 esac
6965 else
6966 case `/usr/bin/file conftest.$ac_objext` in
6967 *32-bit*)
6968 LD="${LD-ld} -32"
6969 ;;
6970 *N32*)
6971 LD="${LD-ld} -n32"
6972 ;;
6973 *64-bit*)
6974 LD="${LD-ld} -64"
6975 ;;
6976 esac
6977 fi
6978 fi
6979 rm -rf conftest*
6980 ;;
6981
6982 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6983 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6984 # Find out which ABI we are using.
6985 echo 'int i;' > conftest.$ac_ext
6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6987 (eval $ac_compile) 2>&5
6988 ac_status=$?
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; }; then
6991 case `/usr/bin/file conftest.o` in
6992 *32-bit*)
6993 case $host in
6994 x86_64-*kfreebsd*-gnu)
6995 LD="${LD-ld} -m elf_i386_fbsd"
6996 ;;
6997 x86_64-*linux*)
6998 case `/usr/bin/file conftest.o` in
6999 *x86-64*)
7000 LD="${LD-ld} -m elf32_x86_64"
7001 ;;
7002 *)
7003 LD="${LD-ld} -m elf_i386"
7004 ;;
7005 esac
7006 ;;
7007 powerpc64le-*linux*)
7008 LD="${LD-ld} -m elf32lppclinux"
7009 ;;
7010 powerpc64-*linux*)
7011 LD="${LD-ld} -m elf32ppclinux"
7012 ;;
7013 s390x-*linux*)
7014 LD="${LD-ld} -m elf_s390"
7015 ;;
7016 sparc64-*linux*)
7017 LD="${LD-ld} -m elf32_sparc"
7018 ;;
7019 esac
7020 ;;
7021 *64-bit*)
7022 case $host in
7023 x86_64-*kfreebsd*-gnu)
7024 LD="${LD-ld} -m elf_x86_64_fbsd"
7025 ;;
7026 x86_64-*linux*)
7027 LD="${LD-ld} -m elf_x86_64"
7028 ;;
7029 powerpcle-*linux*)
7030 LD="${LD-ld} -m elf64lppc"
7031 ;;
7032 powerpc-*linux*)
7033 LD="${LD-ld} -m elf64ppc"
7034 ;;
7035 s390*-*linux*|s390*-*tpf*)
7036 LD="${LD-ld} -m elf64_s390"
7037 ;;
7038 sparc*-*linux*)
7039 LD="${LD-ld} -m elf64_sparc"
7040 ;;
7041 esac
7042 ;;
7043 esac
7044 fi
7045 rm -rf conftest*
7046 ;;
7047
7048 *-*-sco3.2v5*)
7049 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7050 SAVE_CFLAGS="$CFLAGS"
7051 CFLAGS="$CFLAGS -belf"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7053 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7054 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 ac_ext=c
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065
7066 int
7067 main ()
7068 {
7069
7070 ;
7071 return 0;
7072 }
7073 _ACEOF
7074 if ac_fn_c_try_link "$LINENO"; then :
7075 lt_cv_cc_needs_belf=yes
7076 else
7077 lt_cv_cc_needs_belf=no
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7081 ac_ext=c
7082 ac_cpp='$CPP $CPPFLAGS'
7083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7086
7087 fi
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7089 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7090 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7091 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7092 CFLAGS="$SAVE_CFLAGS"
7093 fi
7094 ;;
7095 sparc*-*solaris*)
7096 # Find out which ABI we are using.
7097 echo 'int i;' > conftest.$ac_ext
7098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099 (eval $ac_compile) 2>&5
7100 ac_status=$?
7101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102 test $ac_status = 0; }; then
7103 case `/usr/bin/file conftest.o` in
7104 *64-bit*)
7105 case $lt_cv_prog_gnu_ld in
7106 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7107 *)
7108 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7109 LD="${LD-ld} -64"
7110 fi
7111 ;;
7112 esac
7113 ;;
7114 esac
7115 fi
7116 rm -rf conftest*
7117 ;;
7118 esac
7119
7120 need_locks="$enable_libtool_lock"
7121
7122
7123 case $host_os in
7124 rhapsody* | darwin*)
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 if test -n "$DSYMUTIL"; then
7134 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 break 2
7146 fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7154 if test -n "$DSYMUTIL"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7156 $as_echo "$DSYMUTIL" >&6; }
7157 else
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163 fi
7164 if test -z "$ac_cv_prog_DSYMUTIL"; then
7165 ac_ct_DSYMUTIL=$DSYMUTIL
7166 # Extract the first word of "dsymutil", so it can be a program name with args.
7167 set dummy dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 if test -n "$ac_ct_DSYMUTIL"; then
7174 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
7181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 break 2
7186 fi
7187 done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7194 if test -n "$ac_ct_DSYMUTIL"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7196 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202 if test "x$ac_ct_DSYMUTIL" = x; then
7203 DSYMUTIL=":"
7204 else
7205 case $cross_compiling:$ac_tool_warned in
7206 yes:)
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7209 ac_tool_warned=yes ;;
7210 esac
7211 DSYMUTIL=$ac_ct_DSYMUTIL
7212 fi
7213 else
7214 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7215 fi
7216
7217 if test -n "$ac_tool_prefix"; then
7218 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7219 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 if test -n "$NMEDIT"; then
7226 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7227 else
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 for as_dir in $PATH
7230 do
7231 IFS=$as_save_IFS
7232 test -z "$as_dir" && as_dir=.
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7235 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 break 2
7238 fi
7239 done
7240 done
7241 IFS=$as_save_IFS
7242
7243 fi
7244 fi
7245 NMEDIT=$ac_cv_prog_NMEDIT
7246 if test -n "$NMEDIT"; then
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7248 $as_echo "$NMEDIT" >&6; }
7249 else
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253
7254
7255 fi
7256 if test -z "$ac_cv_prog_NMEDIT"; then
7257 ac_ct_NMEDIT=$NMEDIT
7258 # Extract the first word of "nmedit", so it can be a program name with args.
7259 set dummy nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7264 else
7265 if test -n "$ac_ct_NMEDIT"; then
7266 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271 IFS=$as_save_IFS
7272 test -z "$as_dir" && as_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 break 2
7278 fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7286 if test -n "$ac_ct_NMEDIT"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7288 $as_echo "$ac_ct_NMEDIT" >&6; }
7289 else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294 if test "x$ac_ct_NMEDIT" = x; then
7295 NMEDIT=":"
7296 else
7297 case $cross_compiling:$ac_tool_warned in
7298 yes:)
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301 ac_tool_warned=yes ;;
7302 esac
7303 NMEDIT=$ac_ct_NMEDIT
7304 fi
7305 else
7306 NMEDIT="$ac_cv_prog_NMEDIT"
7307 fi
7308
7309 if test -n "$ac_tool_prefix"; then
7310 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7311 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7313 $as_echo_n "checking for $ac_word... " >&6; }
7314 if test "${ac_cv_prog_LIPO+set}" = set; then :
7315 $as_echo_n "(cached) " >&6
7316 else
7317 if test -n "$LIPO"; then
7318 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7319 else
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321 for as_dir in $PATH
7322 do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7330 fi
7331 done
7332 done
7333 IFS=$as_save_IFS
7334
7335 fi
7336 fi
7337 LIPO=$ac_cv_prog_LIPO
7338 if test -n "$LIPO"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7340 $as_echo "$LIPO" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7344 fi
7345
7346
7347 fi
7348 if test -z "$ac_cv_prog_LIPO"; then
7349 ac_ct_LIPO=$LIPO
7350 # Extract the first word of "lipo", so it can be a program name with args.
7351 set dummy lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 if test -n "$ac_ct_LIPO"; then
7358 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_prog_ac_ct_LIPO="lipo"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371 done
7372 done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7378 if test -n "$ac_ct_LIPO"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7380 $as_echo "$ac_ct_LIPO" >&6; }
7381 else
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386 if test "x$ac_ct_LIPO" = x; then
7387 LIPO=":"
7388 else
7389 case $cross_compiling:$ac_tool_warned in
7390 yes:)
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7393 ac_tool_warned=yes ;;
7394 esac
7395 LIPO=$ac_ct_LIPO
7396 fi
7397 else
7398 LIPO="$ac_cv_prog_LIPO"
7399 fi
7400
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}otool; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$OTOOL"; then
7410 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7422 fi
7423 done
7424 done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 OTOOL=$ac_cv_prog_OTOOL
7430 if test -n "$OTOOL"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7432 $as_echo "$OTOOL" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438
7439 fi
7440 if test -z "$ac_cv_prog_OTOOL"; then
7441 ac_ct_OTOOL=$OTOOL
7442 # Extract the first word of "otool", so it can be a program name with args.
7443 set dummy otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_OTOOL"; then
7450 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_ac_ct_OTOOL="otool"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7462 fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7470 if test -n "$ac_ct_OTOOL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7472 $as_echo "$ac_ct_OTOOL" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478 if test "x$ac_ct_OTOOL" = x; then
7479 OTOOL=":"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487 OTOOL=$ac_ct_OTOOL
7488 fi
7489 else
7490 OTOOL="$ac_cv_prog_OTOOL"
7491 fi
7492
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 if test -n "$OTOOL64"; then
7502 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 OTOOL64=$ac_cv_prog_OTOOL64
7522 if test -n "$OTOOL64"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7524 $as_echo "$OTOOL64" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530
7531 fi
7532 if test -z "$ac_cv_prog_OTOOL64"; then
7533 ac_ct_OTOOL64=$OTOOL64
7534 # Extract the first word of "otool64", so it can be a program name with args.
7535 set dummy otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 if test -n "$ac_ct_OTOOL64"; then
7542 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_prog_ac_ct_OTOOL64="otool64"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7562 if test -n "$ac_ct_OTOOL64"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7564 $as_echo "$ac_ct_OTOOL64" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570 if test "x$ac_ct_OTOOL64" = x; then
7571 OTOOL64=":"
7572 else
7573 case $cross_compiling:$ac_tool_warned in
7574 yes:)
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579 OTOOL64=$ac_ct_OTOOL64
7580 fi
7581 else
7582 OTOOL64="$ac_cv_prog_OTOOL64"
7583 fi
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7612 $as_echo_n "checking for -single_module linker flag... " >&6; }
7613 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 lt_cv_apple_cc_single_mod=no
7617 if test -z "${LT_MULTI_MODULE}"; then
7618 # By default we will add the -single_module flag. You can override
7619 # by either setting the environment variable LT_MULTI_MODULE
7620 # non-empty at configure time, or by adding -multi_module to the
7621 # link flags.
7622 rm -rf libconftest.dylib*
7623 echo "int foo(void){return 1;}" > conftest.c
7624 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7625 -dynamiclib -Wl,-single_module conftest.c" >&5
7626 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7627 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7628 _lt_result=$?
7629 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7630 lt_cv_apple_cc_single_mod=yes
7631 else
7632 cat conftest.err >&5
7633 fi
7634 rm -rf libconftest.dylib*
7635 rm -f conftest.*
7636 fi
7637 fi
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7639 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7641 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7642 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 lt_cv_ld_exported_symbols_list=no
7646 save_LDFLAGS=$LDFLAGS
7647 echo "_main" > conftest.sym
7648 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651
7652 int
7653 main ()
7654 {
7655
7656 ;
7657 return 0;
7658 }
7659 _ACEOF
7660 if ac_fn_c_try_link "$LINENO"; then :
7661 lt_cv_ld_exported_symbols_list=yes
7662 else
7663 lt_cv_ld_exported_symbols_list=no
7664 fi
7665 rm -f core conftest.err conftest.$ac_objext \
7666 conftest$ac_exeext conftest.$ac_ext
7667 LDFLAGS="$save_LDFLAGS"
7668
7669 fi
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7671 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7673 $as_echo_n "checking for -force_load linker flag... " >&6; }
7674 if test "${lt_cv_ld_force_load+set}" = set; then :
7675 $as_echo_n "(cached) " >&6
7676 else
7677 lt_cv_ld_force_load=no
7678 cat > conftest.c << _LT_EOF
7679 int forced_loaded() { return 2;}
7680 _LT_EOF
7681 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7682 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7683 echo "$AR cru libconftest.a conftest.o" >&5
7684 $AR cru libconftest.a conftest.o 2>&5
7685 cat > conftest.c << _LT_EOF
7686 int main() { return 0;}
7687 _LT_EOF
7688 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7689 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7690 _lt_result=$?
7691 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7692 lt_cv_ld_force_load=yes
7693 else
7694 cat conftest.err >&5
7695 fi
7696 rm -f conftest.err libconftest.a conftest conftest.c
7697 rm -rf conftest.dSYM
7698
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7701 $as_echo "$lt_cv_ld_force_load" >&6; }
7702 case $host_os in
7703 rhapsody* | darwin1.[012])
7704 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7705 darwin1.*)
7706 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7707 darwin*) # darwin 5.x on
7708 # if running on 10.5 or later, the deployment target defaults
7709 # to the OS version, if on x86, and 10.4, the deployment
7710 # target defaults to 10.4. Don't you love it?
7711 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7712 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7713 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7714 10.[012][,.]*)
7715 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7716 10.*)
7717 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7718 esac
7719 ;;
7720 esac
7721 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7722 _lt_dar_single_mod='$single_module'
7723 fi
7724 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7725 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7726 else
7727 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7728 fi
7729 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7730 _lt_dsymutil='~$DSYMUTIL $lib || :'
7731 else
7732 _lt_dsymutil=
7733 fi
7734 ;;
7735 esac
7736
7737 for ac_header in dlfcn.h
7738 do :
7739 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7740 "
7741 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7742 cat >>confdefs.h <<_ACEOF
7743 #define HAVE_DLFCN_H 1
7744 _ACEOF
7745
7746 fi
7747
7748 done
7749
7750
7751
7752
7753
7754 # Set options
7755
7756
7757
7758 enable_dlopen=no
7759
7760
7761 enable_win32_dll=no
7762
7763
7764 # Check whether --enable-shared was given.
7765 if test "${enable_shared+set}" = set; then :
7766 enableval=$enable_shared; p=${PACKAGE-default}
7767 case $enableval in
7768 yes) enable_shared=yes ;;
7769 no) enable_shared=no ;;
7770 *)
7771 enable_shared=no
7772 # Look at the argument we got. We use all the common list separators.
7773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7774 for pkg in $enableval; do
7775 IFS="$lt_save_ifs"
7776 if test "X$pkg" = "X$p"; then
7777 enable_shared=yes
7778 fi
7779 done
7780 IFS="$lt_save_ifs"
7781 ;;
7782 esac
7783 else
7784 enable_shared=yes
7785 fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 # Check whether --enable-static was given.
7796 if test "${enable_static+set}" = set; then :
7797 enableval=$enable_static; p=${PACKAGE-default}
7798 case $enableval in
7799 yes) enable_static=yes ;;
7800 no) enable_static=no ;;
7801 *)
7802 enable_static=no
7803 # Look at the argument we got. We use all the common list separators.
7804 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7805 for pkg in $enableval; do
7806 IFS="$lt_save_ifs"
7807 if test "X$pkg" = "X$p"; then
7808 enable_static=yes
7809 fi
7810 done
7811 IFS="$lt_save_ifs"
7812 ;;
7813 esac
7814 else
7815 enable_static=yes
7816 fi
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827 # Check whether --with-pic was given.
7828 if test "${with_pic+set}" = set; then :
7829 withval=$with_pic; pic_mode="$withval"
7830 else
7831 pic_mode=default
7832 fi
7833
7834
7835 test -z "$pic_mode" && pic_mode=default
7836
7837
7838
7839
7840
7841
7842
7843 # Check whether --enable-fast-install was given.
7844 if test "${enable_fast_install+set}" = set; then :
7845 enableval=$enable_fast_install; p=${PACKAGE-default}
7846 case $enableval in
7847 yes) enable_fast_install=yes ;;
7848 no) enable_fast_install=no ;;
7849 *)
7850 enable_fast_install=no
7851 # Look at the argument we got. We use all the common list separators.
7852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7853 for pkg in $enableval; do
7854 IFS="$lt_save_ifs"
7855 if test "X$pkg" = "X$p"; then
7856 enable_fast_install=yes
7857 fi
7858 done
7859 IFS="$lt_save_ifs"
7860 ;;
7861 esac
7862 else
7863 enable_fast_install=yes
7864 fi
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876 # This can be used to rebuild libtool when needed
7877 LIBTOOL_DEPS="$ltmain"
7878
7879 # Always use our own libtool.
7880 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7906
7907 test -z "$LN_S" && LN_S="ln -s"
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922 if test -n "${ZSH_VERSION+set}" ; then
7923 setopt NO_GLOB_SUBST
7924 fi
7925
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7927 $as_echo_n "checking for objdir... " >&6; }
7928 if test "${lt_cv_objdir+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 rm -f .libs 2>/dev/null
7932 mkdir .libs 2>/dev/null
7933 if test -d .libs; then
7934 lt_cv_objdir=.libs
7935 else
7936 # MS-DOS does not allow filenames that begin with a dot.
7937 lt_cv_objdir=_libs
7938 fi
7939 rmdir .libs 2>/dev/null
7940 fi
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7942 $as_echo "$lt_cv_objdir" >&6; }
7943 objdir=$lt_cv_objdir
7944
7945
7946
7947
7948
7949 cat >>confdefs.h <<_ACEOF
7950 #define LT_OBJDIR "$lt_cv_objdir/"
7951 _ACEOF
7952
7953
7954
7955
7956 case $host_os in
7957 aix3*)
7958 # AIX sometimes has problems with the GCC collect2 program. For some
7959 # reason, if we set the COLLECT_NAMES environment variable, the problems
7960 # vanish in a puff of smoke.
7961 if test "X${COLLECT_NAMES+set}" != Xset; then
7962 COLLECT_NAMES=
7963 export COLLECT_NAMES
7964 fi
7965 ;;
7966 esac
7967
7968 # Global variables:
7969 ofile=libtool
7970 can_build_shared=yes
7971
7972 # All known linkers require a `.a' archive for static linking (except MSVC,
7973 # which needs '.lib').
7974 libext=a
7975
7976 with_gnu_ld="$lt_cv_prog_gnu_ld"
7977
7978 old_CC="$CC"
7979 old_CFLAGS="$CFLAGS"
7980
7981 # Set sane defaults for various variables
7982 test -z "$CC" && CC=cc
7983 test -z "$LTCC" && LTCC=$CC
7984 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7985 test -z "$LD" && LD=ld
7986 test -z "$ac_objext" && ac_objext=o
7987
7988 for cc_temp in $compiler""; do
7989 case $cc_temp in
7990 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7991 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7992 \-*) ;;
7993 *) break;;
7994 esac
7995 done
7996 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7997
7998
7999 # Only perform the check for file, if the check method requires it
8000 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8001 case $deplibs_check_method in
8002 file_magic*)
8003 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8005 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 case $MAGIC_CMD in
8010 [\\/*] | ?:[\\/]*)
8011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8012 ;;
8013 *)
8014 lt_save_MAGIC_CMD="$MAGIC_CMD"
8015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8017 for ac_dir in $ac_dummy; do
8018 IFS="$lt_save_ifs"
8019 test -z "$ac_dir" && ac_dir=.
8020 if test -f $ac_dir/${ac_tool_prefix}file; then
8021 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8022 if test -n "$file_magic_test_file"; then
8023 case $deplibs_check_method in
8024 "file_magic "*)
8025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8028 $EGREP "$file_magic_regex" > /dev/null; then
8029 :
8030 else
8031 cat <<_LT_EOF 1>&2
8032
8033 *** Warning: the command libtool uses to detect shared libraries,
8034 *** $file_magic_cmd, produces output that libtool cannot recognize.
8035 *** The result is that libtool may fail to recognize shared libraries
8036 *** as such. This will affect the creation of libtool libraries that
8037 *** depend on shared libraries, but programs linked with such libtool
8038 *** libraries will work regardless of this problem. Nevertheless, you
8039 *** may want to report the problem to your system manager and/or to
8040 *** bug-libtool@gnu.org
8041
8042 _LT_EOF
8043 fi ;;
8044 esac
8045 fi
8046 break
8047 fi
8048 done
8049 IFS="$lt_save_ifs"
8050 MAGIC_CMD="$lt_save_MAGIC_CMD"
8051 ;;
8052 esac
8053 fi
8054
8055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8056 if test -n "$MAGIC_CMD"; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8058 $as_echo "$MAGIC_CMD" >&6; }
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8061 $as_echo "no" >&6; }
8062 fi
8063
8064
8065
8066
8067
8068 if test -z "$lt_cv_path_MAGIC_CMD"; then
8069 if test -n "$ac_tool_prefix"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8071 $as_echo_n "checking for file... " >&6; }
8072 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 case $MAGIC_CMD in
8076 [\\/*] | ?:[\\/]*)
8077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8078 ;;
8079 *)
8080 lt_save_MAGIC_CMD="$MAGIC_CMD"
8081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8082 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8083 for ac_dir in $ac_dummy; do
8084 IFS="$lt_save_ifs"
8085 test -z "$ac_dir" && ac_dir=.
8086 if test -f $ac_dir/file; then
8087 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8088 if test -n "$file_magic_test_file"; then
8089 case $deplibs_check_method in
8090 "file_magic "*)
8091 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8094 $EGREP "$file_magic_regex" > /dev/null; then
8095 :
8096 else
8097 cat <<_LT_EOF 1>&2
8098
8099 *** Warning: the command libtool uses to detect shared libraries,
8100 *** $file_magic_cmd, produces output that libtool cannot recognize.
8101 *** The result is that libtool may fail to recognize shared libraries
8102 *** as such. This will affect the creation of libtool libraries that
8103 *** depend on shared libraries, but programs linked with such libtool
8104 *** libraries will work regardless of this problem. Nevertheless, you
8105 *** may want to report the problem to your system manager and/or to
8106 *** bug-libtool@gnu.org
8107
8108 _LT_EOF
8109 fi ;;
8110 esac
8111 fi
8112 break
8113 fi
8114 done
8115 IFS="$lt_save_ifs"
8116 MAGIC_CMD="$lt_save_MAGIC_CMD"
8117 ;;
8118 esac
8119 fi
8120
8121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122 if test -n "$MAGIC_CMD"; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8124 $as_echo "$MAGIC_CMD" >&6; }
8125 else
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 $as_echo "no" >&6; }
8128 fi
8129
8130
8131 else
8132 MAGIC_CMD=:
8133 fi
8134 fi
8135
8136 fi
8137 ;;
8138 esac
8139
8140 # Use C for the default configuration in the libtool script
8141
8142 lt_save_CC="$CC"
8143 ac_ext=c
8144 ac_cpp='$CPP $CPPFLAGS'
8145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8148
8149
8150 # Source file extension for C test sources.
8151 ac_ext=c
8152
8153 # Object file extension for compiled C test sources.
8154 objext=o
8155 objext=$objext
8156
8157 # Code to be used in simple compile tests
8158 lt_simple_compile_test_code="int some_variable = 0;"
8159
8160 # Code to be used in simple link tests
8161 lt_simple_link_test_code='int main(){return(0);}'
8162
8163
8164
8165
8166
8167
8168
8169 # If no C compiler was specified, use CC.
8170 LTCC=${LTCC-"$CC"}
8171
8172 # If no C compiler flags were specified, use CFLAGS.
8173 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8174
8175 # Allow CC to be a program name with arguments.
8176 compiler=$CC
8177
8178 # Save the default compiler, since it gets overwritten when the other
8179 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8180 compiler_DEFAULT=$CC
8181
8182 # save warnings/boilerplate of simple test code
8183 ac_outfile=conftest.$ac_objext
8184 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8185 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8186 _lt_compiler_boilerplate=`cat conftest.err`
8187 $RM conftest*
8188
8189 ac_outfile=conftest.$ac_objext
8190 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8191 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8192 _lt_linker_boilerplate=`cat conftest.err`
8193 $RM -r conftest*
8194
8195
8196 ## CAVEAT EMPTOR:
8197 ## There is no encapsulation within the following macros, do not change
8198 ## the running order or otherwise move them around unless you know exactly
8199 ## what you are doing...
8200 if test -n "$compiler"; then
8201
8202 lt_prog_compiler_no_builtin_flag=
8203
8204 if test "$GCC" = yes; then
8205 case $cc_basename in
8206 nvcc*)
8207 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8208 *)
8209 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8210 esac
8211
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8213 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8214 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 lt_cv_prog_compiler_rtti_exceptions=no
8218 ac_outfile=conftest.$ac_objext
8219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8220 lt_compiler_flag="-fno-rtti -fno-exceptions"
8221 # Insert the option either (1) after the last *FLAGS variable, or
8222 # (2) before a word containing "conftest.", or (3) at the end.
8223 # Note that $ac_compile itself does not contain backslashes and begins
8224 # with a dollar sign (not a hyphen), so the echo should work correctly.
8225 # The option is referenced via a variable to avoid confusing sed.
8226 lt_compile=`echo "$ac_compile" | $SED \
8227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8229 -e 's:$: $lt_compiler_flag:'`
8230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8231 (eval "$lt_compile" 2>conftest.err)
8232 ac_status=$?
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 if (exit $ac_status) && test -s "$ac_outfile"; then
8236 # The compiler can only warn and ignore the option if not recognized
8237 # So say no if there are warnings other than the usual output.
8238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8239 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8240 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8241 lt_cv_prog_compiler_rtti_exceptions=yes
8242 fi
8243 fi
8244 $RM conftest*
8245
8246 fi
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8248 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8249
8250 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8251 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8252 else
8253 :
8254 fi
8255
8256 fi
8257
8258
8259
8260
8261
8262
8263 lt_prog_compiler_wl=
8264 lt_prog_compiler_pic=
8265 lt_prog_compiler_static=
8266
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8268 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8269
8270 if test "$GCC" = yes; then
8271 lt_prog_compiler_wl='-Wl,'
8272 lt_prog_compiler_static='-static'
8273
8274 case $host_os in
8275 aix*)
8276 # All AIX code is PIC.
8277 if test "$host_cpu" = ia64; then
8278 # AIX 5 now supports IA64 processor
8279 lt_prog_compiler_static='-Bstatic'
8280 fi
8281 lt_prog_compiler_pic='-fPIC'
8282 ;;
8283
8284 amigaos*)
8285 case $host_cpu in
8286 powerpc)
8287 # see comment about AmigaOS4 .so support
8288 lt_prog_compiler_pic='-fPIC'
8289 ;;
8290 m68k)
8291 # FIXME: we need at least 68020 code to build shared libraries, but
8292 # adding the `-m68020' flag to GCC prevents building anything better,
8293 # like `-m68040'.
8294 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8295 ;;
8296 esac
8297 ;;
8298
8299 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8300 # PIC is the default for these OSes.
8301 ;;
8302
8303 mingw* | cygwin* | pw32* | os2* | cegcc*)
8304 # This hack is so that the source file can tell whether it is being
8305 # built for inclusion in a dll (and should export symbols for example).
8306 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8307 # (--disable-auto-import) libraries
8308 lt_prog_compiler_pic='-DDLL_EXPORT'
8309 ;;
8310
8311 darwin* | rhapsody*)
8312 # PIC is the default on this platform
8313 # Common symbols not allowed in MH_DYLIB files
8314 lt_prog_compiler_pic='-fno-common'
8315 ;;
8316
8317 haiku*)
8318 # PIC is the default for Haiku.
8319 # The "-static" flag exists, but is broken.
8320 lt_prog_compiler_static=
8321 ;;
8322
8323 hpux*)
8324 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8325 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8326 # sets the default TLS model and affects inlining.
8327 case $host_cpu in
8328 hppa*64*)
8329 # +Z the default
8330 ;;
8331 *)
8332 lt_prog_compiler_pic='-fPIC'
8333 ;;
8334 esac
8335 ;;
8336
8337 interix[3-9]*)
8338 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8339 # Instead, we relocate shared libraries at runtime.
8340 ;;
8341
8342 msdosdjgpp*)
8343 # Just because we use GCC doesn't mean we suddenly get shared libraries
8344 # on systems that don't support them.
8345 lt_prog_compiler_can_build_shared=no
8346 enable_shared=no
8347 ;;
8348
8349 *nto* | *qnx*)
8350 # QNX uses GNU C++, but need to define -shared option too, otherwise
8351 # it will coredump.
8352 lt_prog_compiler_pic='-fPIC -shared'
8353 ;;
8354
8355 sysv4*MP*)
8356 if test -d /usr/nec; then
8357 lt_prog_compiler_pic=-Kconform_pic
8358 fi
8359 ;;
8360
8361 *)
8362 lt_prog_compiler_pic='-fPIC'
8363 ;;
8364 esac
8365
8366 case $cc_basename in
8367 nvcc*) # Cuda Compiler Driver 2.2
8368 lt_prog_compiler_wl='-Xlinker '
8369 lt_prog_compiler_pic='-Xcompiler -fPIC'
8370 ;;
8371 esac
8372 else
8373 # PORTME Check for flag to pass linker flags through the system compiler.
8374 case $host_os in
8375 aix*)
8376 lt_prog_compiler_wl='-Wl,'
8377 if test "$host_cpu" = ia64; then
8378 # AIX 5 now supports IA64 processor
8379 lt_prog_compiler_static='-Bstatic'
8380 else
8381 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8382 fi
8383 ;;
8384
8385 mingw* | cygwin* | pw32* | os2* | cegcc*)
8386 # This hack is so that the source file can tell whether it is being
8387 # built for inclusion in a dll (and should export symbols for example).
8388 lt_prog_compiler_pic='-DDLL_EXPORT'
8389 ;;
8390
8391 hpux9* | hpux10* | hpux11*)
8392 lt_prog_compiler_wl='-Wl,'
8393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8394 # not for PA HP-UX.
8395 case $host_cpu in
8396 hppa*64*|ia64*)
8397 # +Z the default
8398 ;;
8399 *)
8400 lt_prog_compiler_pic='+Z'
8401 ;;
8402 esac
8403 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8404 lt_prog_compiler_static='${wl}-a ${wl}archive'
8405 ;;
8406
8407 irix5* | irix6* | nonstopux*)
8408 lt_prog_compiler_wl='-Wl,'
8409 # PIC (with -KPIC) is the default.
8410 lt_prog_compiler_static='-non_shared'
8411 ;;
8412
8413 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8414 case $cc_basename in
8415 # old Intel for x86_64 which still supported -KPIC.
8416 ecc*)
8417 lt_prog_compiler_wl='-Wl,'
8418 lt_prog_compiler_pic='-KPIC'
8419 lt_prog_compiler_static='-static'
8420 ;;
8421 # icc used to be incompatible with GCC.
8422 # ICC 10 doesn't accept -KPIC any more.
8423 icc* | ifort*)
8424 lt_prog_compiler_wl='-Wl,'
8425 lt_prog_compiler_pic='-fPIC'
8426 lt_prog_compiler_static='-static'
8427 ;;
8428 # Lahey Fortran 8.1.
8429 lf95*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='--shared'
8432 lt_prog_compiler_static='--static'
8433 ;;
8434 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8435 # Portland Group compilers (*not* the Pentium gcc compiler,
8436 # which looks to be a dead project)
8437 lt_prog_compiler_wl='-Wl,'
8438 lt_prog_compiler_pic='-fpic'
8439 lt_prog_compiler_static='-Bstatic'
8440 ;;
8441 ccc*)
8442 lt_prog_compiler_wl='-Wl,'
8443 # All Alpha code is PIC.
8444 lt_prog_compiler_static='-non_shared'
8445 ;;
8446 xl* | bgxl* | bgf* | mpixl*)
8447 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8448 lt_prog_compiler_wl='-Wl,'
8449 lt_prog_compiler_pic='-qpic'
8450 lt_prog_compiler_static='-qstaticlink'
8451 ;;
8452 *)
8453 case `$CC -V 2>&1 | sed 5q` in
8454 *Sun\ F* | *Sun*Fortran*)
8455 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8456 lt_prog_compiler_pic='-KPIC'
8457 lt_prog_compiler_static='-Bstatic'
8458 lt_prog_compiler_wl=''
8459 ;;
8460 *Sun\ C*)
8461 # Sun C 5.9
8462 lt_prog_compiler_pic='-KPIC'
8463 lt_prog_compiler_static='-Bstatic'
8464 lt_prog_compiler_wl='-Wl,'
8465 ;;
8466 esac
8467 ;;
8468 esac
8469 ;;
8470
8471 newsos6)
8472 lt_prog_compiler_pic='-KPIC'
8473 lt_prog_compiler_static='-Bstatic'
8474 ;;
8475
8476 *nto* | *qnx*)
8477 # QNX uses GNU C++, but need to define -shared option too, otherwise
8478 # it will coredump.
8479 lt_prog_compiler_pic='-fPIC -shared'
8480 ;;
8481
8482 osf3* | osf4* | osf5*)
8483 lt_prog_compiler_wl='-Wl,'
8484 # All OSF/1 code is PIC.
8485 lt_prog_compiler_static='-non_shared'
8486 ;;
8487
8488 rdos*)
8489 lt_prog_compiler_static='-non_shared'
8490 ;;
8491
8492 solaris*)
8493 lt_prog_compiler_pic='-KPIC'
8494 lt_prog_compiler_static='-Bstatic'
8495 case $cc_basename in
8496 f77* | f90* | f95*)
8497 lt_prog_compiler_wl='-Qoption ld ';;
8498 *)
8499 lt_prog_compiler_wl='-Wl,';;
8500 esac
8501 ;;
8502
8503 sunos4*)
8504 lt_prog_compiler_wl='-Qoption ld '
8505 lt_prog_compiler_pic='-PIC'
8506 lt_prog_compiler_static='-Bstatic'
8507 ;;
8508
8509 sysv4 | sysv4.2uw2* | sysv4.3*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='-KPIC'
8512 lt_prog_compiler_static='-Bstatic'
8513 ;;
8514
8515 sysv4*MP*)
8516 if test -d /usr/nec ;then
8517 lt_prog_compiler_pic='-Kconform_pic'
8518 lt_prog_compiler_static='-Bstatic'
8519 fi
8520 ;;
8521
8522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='-KPIC'
8525 lt_prog_compiler_static='-Bstatic'
8526 ;;
8527
8528 unicos*)
8529 lt_prog_compiler_wl='-Wl,'
8530 lt_prog_compiler_can_build_shared=no
8531 ;;
8532
8533 uts4*)
8534 lt_prog_compiler_pic='-pic'
8535 lt_prog_compiler_static='-Bstatic'
8536 ;;
8537
8538 *)
8539 lt_prog_compiler_can_build_shared=no
8540 ;;
8541 esac
8542 fi
8543
8544 case $host_os in
8545 # For platforms which do not support PIC, -DPIC is meaningless:
8546 *djgpp*)
8547 lt_prog_compiler_pic=
8548 ;;
8549 *)
8550 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8551 ;;
8552 esac
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8554 $as_echo "$lt_prog_compiler_pic" >&6; }
8555
8556
8557
8558
8559
8560
8561 #
8562 # Check to make sure the PIC flag actually works.
8563 #
8564 if test -n "$lt_prog_compiler_pic"; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8566 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8567 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 lt_cv_prog_compiler_pic_works=no
8571 ac_outfile=conftest.$ac_objext
8572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8573 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8574 # Insert the option either (1) after the last *FLAGS variable, or
8575 # (2) before a word containing "conftest.", or (3) at the end.
8576 # Note that $ac_compile itself does not contain backslashes and begins
8577 # with a dollar sign (not a hyphen), so the echo should work correctly.
8578 # The option is referenced via a variable to avoid confusing sed.
8579 lt_compile=`echo "$ac_compile" | $SED \
8580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8582 -e 's:$: $lt_compiler_flag:'`
8583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8584 (eval "$lt_compile" 2>conftest.err)
8585 ac_status=$?
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 if (exit $ac_status) && test -s "$ac_outfile"; then
8589 # The compiler can only warn and ignore the option if not recognized
8590 # So say no if there are warnings other than the usual output.
8591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8594 lt_cv_prog_compiler_pic_works=yes
8595 fi
8596 fi
8597 $RM conftest*
8598
8599 fi
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8601 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8602
8603 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8604 case $lt_prog_compiler_pic in
8605 "" | " "*) ;;
8606 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8607 esac
8608 else
8609 lt_prog_compiler_pic=
8610 lt_prog_compiler_can_build_shared=no
8611 fi
8612
8613 fi
8614
8615
8616
8617
8618
8619
8620 #
8621 # Check to make sure the static flag actually works.
8622 #
8623 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8625 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8626 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 lt_cv_prog_compiler_static_works=no
8630 save_LDFLAGS="$LDFLAGS"
8631 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8634 # The linker can only warn and ignore the option if not recognized
8635 # So say no if there are warnings
8636 if test -s conftest.err; then
8637 # Append any errors to the config.log.
8638 cat conftest.err 1>&5
8639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8641 if diff conftest.exp conftest.er2 >/dev/null; then
8642 lt_cv_prog_compiler_static_works=yes
8643 fi
8644 else
8645 lt_cv_prog_compiler_static_works=yes
8646 fi
8647 fi
8648 $RM -r conftest*
8649 LDFLAGS="$save_LDFLAGS"
8650
8651 fi
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8653 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8654
8655 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8656 :
8657 else
8658 lt_prog_compiler_static=
8659 fi
8660
8661
8662
8663
8664
8665
8666
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8668 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8669 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 lt_cv_prog_compiler_c_o=no
8673 $RM -r conftest 2>/dev/null
8674 mkdir conftest
8675 cd conftest
8676 mkdir out
8677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678
8679 lt_compiler_flag="-o out/conftest2.$ac_objext"
8680 # Insert the option either (1) after the last *FLAGS variable, or
8681 # (2) before a word containing "conftest.", or (3) at the end.
8682 # Note that $ac_compile itself does not contain backslashes and begins
8683 # with a dollar sign (not a hyphen), so the echo should work correctly.
8684 lt_compile=`echo "$ac_compile" | $SED \
8685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687 -e 's:$: $lt_compiler_flag:'`
8688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689 (eval "$lt_compile" 2>out/conftest.err)
8690 ac_status=$?
8691 cat out/conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8694 then
8695 # The compiler can only warn and ignore the option if not recognized
8696 # So say no if there are warnings
8697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8700 lt_cv_prog_compiler_c_o=yes
8701 fi
8702 fi
8703 chmod u+w . 2>&5
8704 $RM conftest*
8705 # SGI C++ compiler will create directory out/ii_files/ for
8706 # template instantiation
8707 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8708 $RM out/* && rmdir out
8709 cd ..
8710 $RM -r conftest
8711 $RM conftest*
8712
8713 fi
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8715 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8716
8717
8718
8719
8720
8721
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8723 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8724 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 lt_cv_prog_compiler_c_o=no
8728 $RM -r conftest 2>/dev/null
8729 mkdir conftest
8730 cd conftest
8731 mkdir out
8732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8733
8734 lt_compiler_flag="-o out/conftest2.$ac_objext"
8735 # Insert the option either (1) after the last *FLAGS variable, or
8736 # (2) before a word containing "conftest.", or (3) at the end.
8737 # Note that $ac_compile itself does not contain backslashes and begins
8738 # with a dollar sign (not a hyphen), so the echo should work correctly.
8739 lt_compile=`echo "$ac_compile" | $SED \
8740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8742 -e 's:$: $lt_compiler_flag:'`
8743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8744 (eval "$lt_compile" 2>out/conftest.err)
8745 ac_status=$?
8746 cat out/conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8749 then
8750 # The compiler can only warn and ignore the option if not recognized
8751 # So say no if there are warnings
8752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8755 lt_cv_prog_compiler_c_o=yes
8756 fi
8757 fi
8758 chmod u+w . 2>&5
8759 $RM conftest*
8760 # SGI C++ compiler will create directory out/ii_files/ for
8761 # template instantiation
8762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8763 $RM out/* && rmdir out
8764 cd ..
8765 $RM -r conftest
8766 $RM conftest*
8767
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8770 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8771
8772
8773
8774
8775 hard_links="nottested"
8776 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8777 # do not overwrite the value of need_locks provided by the user
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8779 $as_echo_n "checking if we can lock with hard links... " >&6; }
8780 hard_links=yes
8781 $RM conftest*
8782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8783 touch conftest.a
8784 ln conftest.a conftest.b 2>&5 || hard_links=no
8785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8787 $as_echo "$hard_links" >&6; }
8788 if test "$hard_links" = no; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8790 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8791 need_locks=warn
8792 fi
8793 else
8794 need_locks=no
8795 fi
8796
8797
8798
8799
8800
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8803 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8804
8805 runpath_var=
8806 allow_undefined_flag=
8807 always_export_symbols=no
8808 archive_cmds=
8809 archive_expsym_cmds=
8810 compiler_needs_object=no
8811 enable_shared_with_static_runtimes=no
8812 export_dynamic_flag_spec=
8813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8814 hardcode_automatic=no
8815 hardcode_direct=no
8816 hardcode_direct_absolute=no
8817 hardcode_libdir_flag_spec=
8818 hardcode_libdir_flag_spec_ld=
8819 hardcode_libdir_separator=
8820 hardcode_minus_L=no
8821 hardcode_shlibpath_var=unsupported
8822 inherit_rpath=no
8823 link_all_deplibs=unknown
8824 module_cmds=
8825 module_expsym_cmds=
8826 old_archive_from_new_cmds=
8827 old_archive_from_expsyms_cmds=
8828 thread_safe_flag_spec=
8829 whole_archive_flag_spec=
8830 # include_expsyms should be a list of space-separated symbols to be *always*
8831 # included in the symbol list
8832 include_expsyms=
8833 # exclude_expsyms can be an extended regexp of symbols to exclude
8834 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8835 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8836 # as well as any symbol that contains `d'.
8837 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8839 # platforms (ab)use it in PIC code, but their linkers get confused if
8840 # the symbol is explicitly referenced. Since portable code cannot
8841 # rely on this symbol name, it's probably fine to never include it in
8842 # preloaded symbol tables.
8843 # Exclude shared library initialization/finalization symbols.
8844 extract_expsyms_cmds=
8845
8846 case $host_os in
8847 cygwin* | mingw* | pw32* | cegcc*)
8848 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8849 # When not using gcc, we currently assume that we are using
8850 # Microsoft Visual C++.
8851 if test "$GCC" != yes; then
8852 with_gnu_ld=no
8853 fi
8854 ;;
8855 interix*)
8856 # we just hope/assume this is gcc and not c89 (= MSVC++)
8857 with_gnu_ld=yes
8858 ;;
8859 openbsd*)
8860 with_gnu_ld=no
8861 ;;
8862 esac
8863
8864 ld_shlibs=yes
8865
8866 # On some targets, GNU ld is compatible enough with the native linker
8867 # that we're better off using the native interface for both.
8868 lt_use_gnu_ld_interface=no
8869 if test "$with_gnu_ld" = yes; then
8870 case $host_os in
8871 aix*)
8872 # The AIX port of GNU ld has always aspired to compatibility
8873 # with the native linker. However, as the warning in the GNU ld
8874 # block says, versions before 2.19.5* couldn't really create working
8875 # shared libraries, regardless of the interface used.
8876 case `$LD -v 2>&1` in
8877 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8878 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8879 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8880 *)
8881 lt_use_gnu_ld_interface=yes
8882 ;;
8883 esac
8884 ;;
8885 *)
8886 lt_use_gnu_ld_interface=yes
8887 ;;
8888 esac
8889 fi
8890
8891 if test "$lt_use_gnu_ld_interface" = yes; then
8892 # If archive_cmds runs LD, not CC, wlarc should be empty
8893 wlarc='${wl}'
8894
8895 # Set some defaults for GNU ld with shared library support. These
8896 # are reset later if shared libraries are not supported. Putting them
8897 # here allows them to be overridden if necessary.
8898 runpath_var=LD_RUN_PATH
8899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900 export_dynamic_flag_spec='${wl}--export-dynamic'
8901 # ancient GNU ld didn't support --whole-archive et. al.
8902 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8903 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8904 else
8905 whole_archive_flag_spec=
8906 fi
8907 supports_anon_versioning=no
8908 case `$LD -v 2>&1` in
8909 *GNU\ gold*) supports_anon_versioning=yes ;;
8910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8913 *\ 2.11.*) ;; # other 2.11 versions
8914 *) supports_anon_versioning=yes ;;
8915 esac
8916
8917 # See if GNU ld supports shared libraries.
8918 case $host_os in
8919 aix[3-9]*)
8920 # On AIX/PPC, the GNU linker is very broken
8921 if test "$host_cpu" != ia64; then
8922 ld_shlibs=no
8923 cat <<_LT_EOF 1>&2
8924
8925 *** Warning: the GNU linker, at least up to release 2.19, is reported
8926 *** to be unable to reliably create shared libraries on AIX.
8927 *** Therefore, libtool is disabling shared libraries support. If you
8928 *** really care for shared libraries, you may want to install binutils
8929 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8930 *** You will then need to restart the configuration process.
8931
8932 _LT_EOF
8933 fi
8934 ;;
8935
8936 amigaos*)
8937 case $host_cpu in
8938 powerpc)
8939 # see comment about AmigaOS4 .so support
8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941 archive_expsym_cmds=''
8942 ;;
8943 m68k)
8944 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)'
8945 hardcode_libdir_flag_spec='-L$libdir'
8946 hardcode_minus_L=yes
8947 ;;
8948 esac
8949 ;;
8950
8951 beos*)
8952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8953 allow_undefined_flag=unsupported
8954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8955 # support --undefined. This deserves some investigation. FIXME
8956 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 else
8958 ld_shlibs=no
8959 fi
8960 ;;
8961
8962 cygwin* | mingw* | pw32* | cegcc*)
8963 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8964 # as there is no search path for DLLs.
8965 hardcode_libdir_flag_spec='-L$libdir'
8966 export_dynamic_flag_spec='${wl}--export-all-symbols'
8967 allow_undefined_flag=unsupported
8968 always_export_symbols=no
8969 enable_shared_with_static_runtimes=yes
8970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8971
8972 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8974 # If the export-symbols file already is a .def file (1st line
8975 # is EXPORTS), use it as is; otherwise, prepend...
8976 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8977 cp $export_symbols $output_objdir/$soname.def;
8978 else
8979 echo EXPORTS > $output_objdir/$soname.def;
8980 cat $export_symbols >> $output_objdir/$soname.def;
8981 fi~
8982 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8983 else
8984 ld_shlibs=no
8985 fi
8986 ;;
8987
8988 haiku*)
8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8990 link_all_deplibs=yes
8991 ;;
8992
8993 interix[3-9]*)
8994 hardcode_direct=no
8995 hardcode_shlibpath_var=no
8996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8997 export_dynamic_flag_spec='${wl}-E'
8998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8999 # Instead, shared libraries are loaded at an image base (0x10000000 by
9000 # default) and relocated if they conflict, which is a slow very memory
9001 # consuming and fragmenting process. To avoid this, we pick a random,
9002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9004 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9005 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'
9006 ;;
9007
9008 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9009 tmp_diet=no
9010 if test "$host_os" = linux-dietlibc; then
9011 case $cc_basename in
9012 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9013 esac
9014 fi
9015 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9016 && test "$tmp_diet" = no
9017 then
9018 tmp_addflag=' $pic_flag'
9019 tmp_sharedflag='-shared'
9020 case $cc_basename,$host_cpu in
9021 pgcc*) # Portland Group C compiler
9022 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'
9023 tmp_addflag=' $pic_flag'
9024 ;;
9025 pgf77* | pgf90* | pgf95* | pgfortran*)
9026 # Portland Group f77 and f90 compilers
9027 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'
9028 tmp_addflag=' $pic_flag -Mnomain' ;;
9029 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9030 tmp_addflag=' -i_dynamic' ;;
9031 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9032 tmp_addflag=' -i_dynamic -nofor_main' ;;
9033 ifc* | ifort*) # Intel Fortran compiler
9034 tmp_addflag=' -nofor_main' ;;
9035 lf95*) # Lahey Fortran 8.1
9036 whole_archive_flag_spec=
9037 tmp_sharedflag='--shared' ;;
9038 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9039 tmp_sharedflag='-qmkshrobj'
9040 tmp_addflag= ;;
9041 nvcc*) # Cuda Compiler Driver 2.2
9042 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'
9043 compiler_needs_object=yes
9044 ;;
9045 esac
9046 case `$CC -V 2>&1 | sed 5q` in
9047 *Sun\ C*) # Sun C 5.9
9048 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'
9049 compiler_needs_object=yes
9050 tmp_sharedflag='-G' ;;
9051 *Sun\ F*) # Sun Fortran 8.3
9052 tmp_sharedflag='-G' ;;
9053 esac
9054 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055
9056 if test "x$supports_anon_versioning" = xyes; then
9057 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9059 echo "local: *; };" >> $output_objdir/$libname.ver~
9060 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9061 fi
9062
9063 case $cc_basename in
9064 xlf* | bgf* | bgxlf* | mpixlf*)
9065 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9066 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9067 hardcode_libdir_flag_spec=
9068 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9069 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9070 if test "x$supports_anon_versioning" = xyes; then
9071 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9073 echo "local: *; };" >> $output_objdir/$libname.ver~
9074 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9075 fi
9076 ;;
9077 esac
9078 else
9079 ld_shlibs=no
9080 fi
9081 ;;
9082
9083 netbsd*)
9084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9085 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9086 wlarc=
9087 else
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090 fi
9091 ;;
9092
9093 solaris*)
9094 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9095 ld_shlibs=no
9096 cat <<_LT_EOF 1>&2
9097
9098 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9099 *** create shared libraries on Solaris systems. Therefore, libtool
9100 *** is disabling shared libraries support. We urge you to upgrade GNU
9101 *** binutils to release 2.9.1 or newer. Another option is to modify
9102 *** your PATH or compiler configuration so that the native linker is
9103 *** used, and then restart.
9104
9105 _LT_EOF
9106 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9109 else
9110 ld_shlibs=no
9111 fi
9112 ;;
9113
9114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9115 case `$LD -v 2>&1` in
9116 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9117 ld_shlibs=no
9118 cat <<_LT_EOF 1>&2
9119
9120 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9121 *** reliably create shared libraries on SCO systems. Therefore, libtool
9122 *** is disabling shared libraries support. We urge you to upgrade GNU
9123 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9124 *** your PATH or compiler configuration so that the native linker is
9125 *** used, and then restart.
9126
9127 _LT_EOF
9128 ;;
9129 *)
9130 # For security reasons, it is highly recommended that you always
9131 # use absolute paths for naming shared libraries, and exclude the
9132 # DT_RUNPATH tag from executables and libraries. But doing so
9133 # requires that you compile everything twice, which is a pain.
9134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9138 else
9139 ld_shlibs=no
9140 fi
9141 ;;
9142 esac
9143 ;;
9144
9145 sunos4*)
9146 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9147 wlarc=
9148 hardcode_direct=yes
9149 hardcode_shlibpath_var=no
9150 ;;
9151
9152 *)
9153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9156 else
9157 ld_shlibs=no
9158 fi
9159 ;;
9160 esac
9161
9162 if test "$ld_shlibs" = no; then
9163 runpath_var=
9164 hardcode_libdir_flag_spec=
9165 export_dynamic_flag_spec=
9166 whole_archive_flag_spec=
9167 fi
9168 else
9169 # PORTME fill in a description of your system's linker (not GNU ld)
9170 case $host_os in
9171 aix3*)
9172 allow_undefined_flag=unsupported
9173 always_export_symbols=yes
9174 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'
9175 # Note: this linker hardcodes the directories in LIBPATH if there
9176 # are no directories specified by -L.
9177 hardcode_minus_L=yes
9178 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9179 # Neither direct hardcoding nor static linking is supported with a
9180 # broken collect2.
9181 hardcode_direct=unsupported
9182 fi
9183 ;;
9184
9185 aix[4-9]*)
9186 if test "$host_cpu" = ia64; then
9187 # On IA64, the linker does run time linking by default, so we don't
9188 # have to do anything special.
9189 aix_use_runtimelinking=no
9190 exp_sym_flag='-Bexport'
9191 no_entry_flag=""
9192 else
9193 # If we're using GNU nm, then we don't want the "-C" option.
9194 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9195 # Also, AIX nm treats weak defined symbols like other global
9196 # defined symbols, whereas GNU nm marks them as "W".
9197 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9198 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'
9199 else
9200 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'
9201 fi
9202 aix_use_runtimelinking=no
9203
9204 # Test if we are trying to use run time linking or normal
9205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9206 # need to do runtime linking.
9207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9208 for ld_flag in $LDFLAGS; do
9209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9210 aix_use_runtimelinking=yes
9211 break
9212 fi
9213 done
9214 ;;
9215 esac
9216
9217 exp_sym_flag='-bexport'
9218 no_entry_flag='-bnoentry'
9219 fi
9220
9221 # When large executables or shared objects are built, AIX ld can
9222 # have problems creating the table of contents. If linking a library
9223 # or program results in "error TOC overflow" add -mminimal-toc to
9224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9226
9227 archive_cmds=''
9228 hardcode_direct=yes
9229 hardcode_direct_absolute=yes
9230 hardcode_libdir_separator=':'
9231 link_all_deplibs=yes
9232 file_list_spec='${wl}-f,'
9233
9234 if test "$GCC" = yes; then
9235 case $host_os in aix4.[012]|aix4.[012].*)
9236 # We only want to do this on AIX 4.2 and lower, the check
9237 # below for broken collect2 doesn't work under 4.3+
9238 collect2name=`${CC} -print-prog-name=collect2`
9239 if test -f "$collect2name" &&
9240 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9241 then
9242 # We have reworked collect2
9243 :
9244 else
9245 # We have old collect2
9246 hardcode_direct=unsupported
9247 # It fails to find uninstalled libraries when the uninstalled
9248 # path is not listed in the libpath. Setting hardcode_minus_L
9249 # to unsupported forces relinking
9250 hardcode_minus_L=yes
9251 hardcode_libdir_flag_spec='-L$libdir'
9252 hardcode_libdir_separator=
9253 fi
9254 ;;
9255 esac
9256 shared_flag='-shared'
9257 if test "$aix_use_runtimelinking" = yes; then
9258 shared_flag="$shared_flag "'${wl}-G'
9259 fi
9260 else
9261 # not using gcc
9262 if test "$host_cpu" = ia64; then
9263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9264 # chokes on -Wl,-G. The following line is correct:
9265 shared_flag='-G'
9266 else
9267 if test "$aix_use_runtimelinking" = yes; then
9268 shared_flag='${wl}-G'
9269 else
9270 shared_flag='${wl}-bM:SRE'
9271 fi
9272 fi
9273 fi
9274
9275 export_dynamic_flag_spec='${wl}-bexpall'
9276 # It seems that -bexpall does not export symbols beginning with
9277 # underscore (_), so it is better to generate a list of symbols to export.
9278 always_export_symbols=yes
9279 if test "$aix_use_runtimelinking" = yes; then
9280 # Warning - without using the other runtime loading flags (-brtl),
9281 # -berok will link without error, but may produce a broken library.
9282 allow_undefined_flag='-berok'
9283 # Determine the default libpath from the value encoded in an
9284 # empty executable.
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287
9288 int
9289 main ()
9290 {
9291
9292 ;
9293 return 0;
9294 }
9295 _ACEOF
9296 if ac_fn_c_try_link "$LINENO"; then :
9297
9298 lt_aix_libpath_sed='
9299 /Import File Strings/,/^$/ {
9300 /^0/ {
9301 s/^0 *\(.*\)$/\1/
9302 p
9303 }
9304 }'
9305 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9306 # Check for a 64-bit object if we didn't find anything.
9307 if test -z "$aix_libpath"; then
9308 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9309 fi
9310 fi
9311 rm -f core conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
9313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9314
9315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9316 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"
9317 else
9318 if test "$host_cpu" = ia64; then
9319 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9320 allow_undefined_flag="-z nodefs"
9321 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"
9322 else
9323 # Determine the default libpath from the value encoded in an
9324 # empty executable.
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327
9328 int
9329 main ()
9330 {
9331
9332 ;
9333 return 0;
9334 }
9335 _ACEOF
9336 if ac_fn_c_try_link "$LINENO"; then :
9337
9338 lt_aix_libpath_sed='
9339 /Import File Strings/,/^$/ {
9340 /^0/ {
9341 s/^0 *\(.*\)$/\1/
9342 p
9343 }
9344 }'
9345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9346 # Check for a 64-bit object if we didn't find anything.
9347 if test -z "$aix_libpath"; then
9348 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9349 fi
9350 fi
9351 rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9354
9355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9356 # Warning - without using the other run time loading flags,
9357 # -berok will link without error, but may produce a broken library.
9358 no_undefined_flag=' ${wl}-bernotok'
9359 allow_undefined_flag=' ${wl}-berok'
9360 if test "$with_gnu_ld" = yes; then
9361 # We only use this code for GNU lds that support --whole-archive.
9362 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9363 else
9364 # Exported symbols can be pulled into shared objects from archives
9365 whole_archive_flag_spec='$convenience'
9366 fi
9367 archive_cmds_need_lc=yes
9368 # This is similar to how AIX traditionally builds its shared libraries.
9369 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'
9370 fi
9371 fi
9372 ;;
9373
9374 amigaos*)
9375 case $host_cpu in
9376 powerpc)
9377 # see comment about AmigaOS4 .so support
9378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379 archive_expsym_cmds=''
9380 ;;
9381 m68k)
9382 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)'
9383 hardcode_libdir_flag_spec='-L$libdir'
9384 hardcode_minus_L=yes
9385 ;;
9386 esac
9387 ;;
9388
9389 bsdi[45]*)
9390 export_dynamic_flag_spec=-rdynamic
9391 ;;
9392
9393 cygwin* | mingw* | pw32* | cegcc*)
9394 # When not using gcc, we currently assume that we are using
9395 # Microsoft Visual C++.
9396 # hardcode_libdir_flag_spec is actually meaningless, as there is
9397 # no search path for DLLs.
9398 hardcode_libdir_flag_spec=' '
9399 allow_undefined_flag=unsupported
9400 # Tell ltmain to make .lib files, not .a files.
9401 libext=lib
9402 # Tell ltmain to make .dll files, not .so files.
9403 shrext_cmds=".dll"
9404 # FIXME: Setting linknames here is a bad hack.
9405 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9406 # The linker will automatically build a .lib file if we build a DLL.
9407 old_archive_from_new_cmds='true'
9408 # FIXME: Should let the user specify the lib program.
9409 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9410 fix_srcfile_path='`cygpath -w "$srcfile"`'
9411 enable_shared_with_static_runtimes=yes
9412 ;;
9413
9414 darwin* | rhapsody*)
9415
9416
9417 archive_cmds_need_lc=no
9418 hardcode_direct=no
9419 hardcode_automatic=yes
9420 hardcode_shlibpath_var=unsupported
9421 if test "$lt_cv_ld_force_load" = "yes"; then
9422 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\"`'
9423 else
9424 whole_archive_flag_spec=''
9425 fi
9426 link_all_deplibs=yes
9427 allow_undefined_flag="$_lt_dar_allow_undefined"
9428 case $cc_basename in
9429 ifort*) _lt_dar_can_shared=yes ;;
9430 *) _lt_dar_can_shared=$GCC ;;
9431 esac
9432 if test "$_lt_dar_can_shared" = "yes"; then
9433 output_verbose_link_cmd=func_echo_all
9434 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9435 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9436 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}"
9437 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}"
9438
9439 else
9440 ld_shlibs=no
9441 fi
9442
9443 ;;
9444
9445 dgux*)
9446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447 hardcode_libdir_flag_spec='-L$libdir'
9448 hardcode_shlibpath_var=no
9449 ;;
9450
9451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9452 # support. Future versions do this automatically, but an explicit c++rt0.o
9453 # does not break anything, and helps significantly (at the cost of a little
9454 # extra space).
9455 freebsd2.2*)
9456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9457 hardcode_libdir_flag_spec='-R$libdir'
9458 hardcode_direct=yes
9459 hardcode_shlibpath_var=no
9460 ;;
9461
9462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9463 freebsd2.*)
9464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_direct=yes
9466 hardcode_minus_L=yes
9467 hardcode_shlibpath_var=no
9468 ;;
9469
9470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9471 freebsd* | dragonfly*)
9472 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9473 hardcode_libdir_flag_spec='-R$libdir'
9474 hardcode_direct=yes
9475 hardcode_shlibpath_var=no
9476 ;;
9477
9478 hpux9*)
9479 if test "$GCC" = yes; then
9480 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'
9481 else
9482 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'
9483 fi
9484 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9485 hardcode_libdir_separator=:
9486 hardcode_direct=yes
9487
9488 # hardcode_minus_L: Not really in the search PATH,
9489 # but as the default location of the library.
9490 hardcode_minus_L=yes
9491 export_dynamic_flag_spec='${wl}-E'
9492 ;;
9493
9494 hpux10*)
9495 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9496 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497 else
9498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9499 fi
9500 if test "$with_gnu_ld" = no; then
9501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502 hardcode_libdir_flag_spec_ld='+b $libdir'
9503 hardcode_libdir_separator=:
9504 hardcode_direct=yes
9505 hardcode_direct_absolute=yes
9506 export_dynamic_flag_spec='${wl}-E'
9507 # hardcode_minus_L: Not really in the search PATH,
9508 # but as the default location of the library.
9509 hardcode_minus_L=yes
9510 fi
9511 ;;
9512
9513 hpux11*)
9514 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9515 case $host_cpu in
9516 hppa*64*)
9517 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9518 ;;
9519 ia64*)
9520 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9521 ;;
9522 *)
9523 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9524 ;;
9525 esac
9526 else
9527 case $host_cpu in
9528 hppa*64*)
9529 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 ;;
9531 ia64*)
9532 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9533 ;;
9534 *)
9535
9536 # Older versions of the 11.00 compiler do not understand -b yet
9537 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9539 $as_echo_n "checking if $CC understands -b... " >&6; }
9540 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9541 $as_echo_n "(cached) " >&6
9542 else
9543 lt_cv_prog_compiler__b=no
9544 save_LDFLAGS="$LDFLAGS"
9545 LDFLAGS="$LDFLAGS -b"
9546 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9547 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9548 # The linker can only warn and ignore the option if not recognized
9549 # So say no if there are warnings
9550 if test -s conftest.err; then
9551 # Append any errors to the config.log.
9552 cat conftest.err 1>&5
9553 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9555 if diff conftest.exp conftest.er2 >/dev/null; then
9556 lt_cv_prog_compiler__b=yes
9557 fi
9558 else
9559 lt_cv_prog_compiler__b=yes
9560 fi
9561 fi
9562 $RM -r conftest*
9563 LDFLAGS="$save_LDFLAGS"
9564
9565 fi
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9567 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9568
9569 if test x"$lt_cv_prog_compiler__b" = xyes; then
9570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9571 else
9572 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9573 fi
9574
9575 ;;
9576 esac
9577 fi
9578 if test "$with_gnu_ld" = no; then
9579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9580 hardcode_libdir_separator=:
9581
9582 case $host_cpu in
9583 hppa*64*|ia64*)
9584 hardcode_direct=no
9585 hardcode_shlibpath_var=no
9586 ;;
9587 *)
9588 hardcode_direct=yes
9589 hardcode_direct_absolute=yes
9590 export_dynamic_flag_spec='${wl}-E'
9591
9592 # hardcode_minus_L: Not really in the search PATH,
9593 # but as the default location of the library.
9594 hardcode_minus_L=yes
9595 ;;
9596 esac
9597 fi
9598 ;;
9599
9600 irix5* | irix6* | nonstopux*)
9601 if test "$GCC" = yes; then
9602 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'
9603 # Try to use the -exported_symbol ld option, if it does not
9604 # work, assume that -exports_file does not work either and
9605 # implicitly export all symbols.
9606 save_LDFLAGS="$LDFLAGS"
9607 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9610 int foo(void) {}
9611 _ACEOF
9612 if ac_fn_c_try_link "$LINENO"; then :
9613 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'
9614
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618 LDFLAGS="$save_LDFLAGS"
9619 else
9620 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'
9621 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'
9622 fi
9623 archive_cmds_need_lc='no'
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 hardcode_libdir_separator=:
9626 inherit_rpath=yes
9627 link_all_deplibs=yes
9628 ;;
9629
9630 netbsd*)
9631 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9633 else
9634 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9635 fi
9636 hardcode_libdir_flag_spec='-R$libdir'
9637 hardcode_direct=yes
9638 hardcode_shlibpath_var=no
9639 ;;
9640
9641 newsos6)
9642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9643 hardcode_direct=yes
9644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645 hardcode_libdir_separator=:
9646 hardcode_shlibpath_var=no
9647 ;;
9648
9649 *nto* | *qnx*)
9650 ;;
9651
9652 openbsd*)
9653 if test -f /usr/libexec/ld.so; then
9654 hardcode_direct=yes
9655 hardcode_shlibpath_var=no
9656 hardcode_direct_absolute=yes
9657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9659 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9661 export_dynamic_flag_spec='${wl}-E'
9662 else
9663 case $host_os in
9664 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9666 hardcode_libdir_flag_spec='-R$libdir'
9667 ;;
9668 *)
9669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9671 ;;
9672 esac
9673 fi
9674 else
9675 ld_shlibs=no
9676 fi
9677 ;;
9678
9679 os2*)
9680 hardcode_libdir_flag_spec='-L$libdir'
9681 hardcode_minus_L=yes
9682 allow_undefined_flag=unsupported
9683 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'
9684 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9685 ;;
9686
9687 osf3*)
9688 if test "$GCC" = yes; then
9689 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9690 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'
9691 else
9692 allow_undefined_flag=' -expect_unresolved \*'
9693 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'
9694 fi
9695 archive_cmds_need_lc='no'
9696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9697 hardcode_libdir_separator=:
9698 ;;
9699
9700 osf4* | osf5*) # as osf3* with the addition of -msym flag
9701 if test "$GCC" = yes; then
9702 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9703 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'
9704 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9705 else
9706 allow_undefined_flag=' -expect_unresolved \*'
9707 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'
9708 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~
9709 $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'
9710
9711 # Both c and cxx compiler support -rpath directly
9712 hardcode_libdir_flag_spec='-rpath $libdir'
9713 fi
9714 archive_cmds_need_lc='no'
9715 hardcode_libdir_separator=:
9716 ;;
9717
9718 solaris*)
9719 no_undefined_flag=' -z defs'
9720 if test "$GCC" = yes; then
9721 wlarc='${wl}'
9722 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9724 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9725 else
9726 case `$CC -V 2>&1` in
9727 *"Compilers 5.0"*)
9728 wlarc=''
9729 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9731 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9732 ;;
9733 *)
9734 wlarc='${wl}'
9735 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9736 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9737 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9738 ;;
9739 esac
9740 fi
9741 hardcode_libdir_flag_spec='-R$libdir'
9742 hardcode_shlibpath_var=no
9743 case $host_os in
9744 solaris2.[0-5] | solaris2.[0-5].*) ;;
9745 *)
9746 # The compiler driver will combine and reorder linker options,
9747 # but understands `-z linker_flag'. GCC discards it without `$wl',
9748 # but is careful enough not to reorder.
9749 # Supported since Solaris 2.6 (maybe 2.5.1?)
9750 if test "$GCC" = yes; then
9751 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9752 else
9753 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9754 fi
9755 ;;
9756 esac
9757 link_all_deplibs=yes
9758 ;;
9759
9760 sunos4*)
9761 if test "x$host_vendor" = xsequent; then
9762 # Use $CC to link under sequent, because it throws in some extra .o
9763 # files that make .init and .fini sections work.
9764 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9765 else
9766 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9767 fi
9768 hardcode_libdir_flag_spec='-L$libdir'
9769 hardcode_direct=yes
9770 hardcode_minus_L=yes
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 sysv4)
9775 case $host_vendor in
9776 sni)
9777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_direct=yes # is this really true???
9779 ;;
9780 siemens)
9781 ## LD is ld it makes a PLAMLIB
9782 ## CC just makes a GrossModule.
9783 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9784 reload_cmds='$CC -r -o $output$reload_objs'
9785 hardcode_direct=no
9786 ;;
9787 motorola)
9788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9790 ;;
9791 esac
9792 runpath_var='LD_RUN_PATH'
9793 hardcode_shlibpath_var=no
9794 ;;
9795
9796 sysv4.3*)
9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_shlibpath_var=no
9799 export_dynamic_flag_spec='-Bexport'
9800 ;;
9801
9802 sysv4*MP*)
9803 if test -d /usr/nec; then
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_shlibpath_var=no
9806 runpath_var=LD_RUN_PATH
9807 hardcode_runpath_var=yes
9808 ld_shlibs=yes
9809 fi
9810 ;;
9811
9812 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9813 no_undefined_flag='${wl}-z,text'
9814 archive_cmds_need_lc=no
9815 hardcode_shlibpath_var=no
9816 runpath_var='LD_RUN_PATH'
9817
9818 if test "$GCC" = yes; then
9819 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 else
9822 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9823 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 fi
9825 ;;
9826
9827 sysv5* | sco3.2v5* | sco5v6*)
9828 # Note: We can NOT use -z defs as we might desire, because we do not
9829 # link with -lc, and that would cause any symbols used from libc to
9830 # always be unresolved, which means just about no library would
9831 # ever link correctly. If we're not using GNU ld we use -z text
9832 # though, which does catch some bad symbols but isn't as heavy-handed
9833 # as -z defs.
9834 no_undefined_flag='${wl}-z,text'
9835 allow_undefined_flag='${wl}-z,nodefs'
9836 archive_cmds_need_lc=no
9837 hardcode_shlibpath_var=no
9838 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9839 hardcode_libdir_separator=':'
9840 link_all_deplibs=yes
9841 export_dynamic_flag_spec='${wl}-Bexport'
9842 runpath_var='LD_RUN_PATH'
9843
9844 if test "$GCC" = yes; then
9845 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9846 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9847 else
9848 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 fi
9851 ;;
9852
9853 uts4*)
9854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855 hardcode_libdir_flag_spec='-L$libdir'
9856 hardcode_shlibpath_var=no
9857 ;;
9858
9859 *)
9860 ld_shlibs=no
9861 ;;
9862 esac
9863
9864 if test x$host_vendor = xsni; then
9865 case $host in
9866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9867 export_dynamic_flag_spec='${wl}-Blargedynsym'
9868 ;;
9869 esac
9870 fi
9871 fi
9872
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9874 $as_echo "$ld_shlibs" >&6; }
9875 test "$ld_shlibs" = no && can_build_shared=no
9876
9877 with_gnu_ld=$with_gnu_ld
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893 #
9894 # Do we need to explicitly link libc?
9895 #
9896 case "x$archive_cmds_need_lc" in
9897 x|xyes)
9898 # Assume -lc should be added
9899 archive_cmds_need_lc=yes
9900
9901 if test "$enable_shared" = yes && test "$GCC" = yes; then
9902 case $archive_cmds in
9903 *'~'*)
9904 # FIXME: we may have to deal with multi-command sequences.
9905 ;;
9906 '$CC '*)
9907 # Test whether the compiler implicitly links with -lc since on some
9908 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9909 # to ld, don't add -lc before -lgcc.
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9911 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9912 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
9914 else
9915 $RM conftest*
9916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9917
9918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9919 (eval $ac_compile) 2>&5
9920 ac_status=$?
9921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9922 test $ac_status = 0; } 2>conftest.err; then
9923 soname=conftest
9924 lib=conftest
9925 libobjs=conftest.$ac_objext
9926 deplibs=
9927 wl=$lt_prog_compiler_wl
9928 pic_flag=$lt_prog_compiler_pic
9929 compiler_flags=-v
9930 linker_flags=-v
9931 verstring=
9932 output_objdir=.
9933 libname=conftest
9934 lt_save_allow_undefined_flag=$allow_undefined_flag
9935 allow_undefined_flag=
9936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9937 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9938 ac_status=$?
9939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9940 test $ac_status = 0; }
9941 then
9942 lt_cv_archive_cmds_need_lc=no
9943 else
9944 lt_cv_archive_cmds_need_lc=yes
9945 fi
9946 allow_undefined_flag=$lt_save_allow_undefined_flag
9947 else
9948 cat conftest.err 1>&5
9949 fi
9950 $RM conftest*
9951
9952 fi
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9954 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9955 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9956 ;;
9957 esac
9958 fi
9959 ;;
9960 esac
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10119 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10120
10121 if test "$GCC" = yes; then
10122 case $host_os in
10123 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10124 *) lt_awk_arg="/^libraries:/" ;;
10125 esac
10126 case $host_os in
10127 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10128 *) lt_sed_strip_eq="s,=/,/,g" ;;
10129 esac
10130 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10131 case $lt_search_path_spec in
10132 *\;*)
10133 # if the path contains ";" then we assume it to be the separator
10134 # otherwise default to the standard path separator (i.e. ":") - it is
10135 # assumed that no part of a normal pathname contains ";" but that should
10136 # okay in the real world where ";" in dirpaths is itself problematic.
10137 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10138 ;;
10139 *)
10140 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10141 ;;
10142 esac
10143 # Ok, now we have the path, separated by spaces, we can step through it
10144 # and add multilib dir if necessary.
10145 lt_tmp_lt_search_path_spec=
10146 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10147 for lt_sys_path in $lt_search_path_spec; do
10148 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10149 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10150 else
10151 test -d "$lt_sys_path" && \
10152 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10153 fi
10154 done
10155 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10156 BEGIN {RS=" "; FS="/|\n";} {
10157 lt_foo="";
10158 lt_count=0;
10159 for (lt_i = NF; lt_i > 0; lt_i--) {
10160 if ($lt_i != "" && $lt_i != ".") {
10161 if ($lt_i == "..") {
10162 lt_count++;
10163 } else {
10164 if (lt_count == 0) {
10165 lt_foo="/" $lt_i lt_foo;
10166 } else {
10167 lt_count--;
10168 }
10169 }
10170 }
10171 }
10172 if (lt_foo != "") { lt_freq[lt_foo]++; }
10173 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10174 }'`
10175 # AWK program above erroneously prepends '/' to C:/dos/paths
10176 # for these hosts.
10177 case $host_os in
10178 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10179 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10180 esac
10181 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10182 else
10183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10184 fi
10185 library_names_spec=
10186 libname_spec='lib$name'
10187 soname_spec=
10188 shrext_cmds=".so"
10189 postinstall_cmds=
10190 postuninstall_cmds=
10191 finish_cmds=
10192 finish_eval=
10193 shlibpath_var=
10194 shlibpath_overrides_runpath=unknown
10195 version_type=none
10196 dynamic_linker="$host_os ld.so"
10197 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10198 need_lib_prefix=unknown
10199 hardcode_into_libs=no
10200
10201 # when you set need_version to no, make sure it does not cause -set_version
10202 # flags to be left without arguments
10203 need_version=unknown
10204
10205 case $host_os in
10206 aix3*)
10207 version_type=linux
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10209 shlibpath_var=LIBPATH
10210
10211 # AIX 3 has no versioning support, so we append a major version to the name.
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 ;;
10214
10215 aix[4-9]*)
10216 version_type=linux
10217 need_lib_prefix=no
10218 need_version=no
10219 hardcode_into_libs=yes
10220 if test "$host_cpu" = ia64; then
10221 # AIX 5 supports IA64
10222 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 else
10225 # With GCC up to 2.95.x, collect2 would create an import file
10226 # for dependence libraries. The import file would start with
10227 # the line `#! .'. This would cause the generated library to
10228 # depend on `.', always an invalid library. This was fixed in
10229 # development snapshots of GCC prior to 3.0.
10230 case $host_os in
10231 aix4 | aix4.[01] | aix4.[01].*)
10232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10233 echo ' yes '
10234 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10235 :
10236 else
10237 can_build_shared=no
10238 fi
10239 ;;
10240 esac
10241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10242 # soname into executable. Probably we can add versioning support to
10243 # collect2, so additional links can be useful in future.
10244 if test "$aix_use_runtimelinking" = yes; then
10245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10246 # instead of lib<name>.a to let people know that these are not
10247 # typical AIX shared libraries.
10248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10249 else
10250 # We preserve .a as extension for shared libraries through AIX4.2
10251 # and later when we are not doing run time linking.
10252 library_names_spec='${libname}${release}.a $libname.a'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 fi
10255 shlibpath_var=LIBPATH
10256 fi
10257 ;;
10258
10259 amigaos*)
10260 case $host_cpu in
10261 powerpc)
10262 # Since July 2007 AmigaOS4 officially supports .so libraries.
10263 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265 ;;
10266 m68k)
10267 library_names_spec='$libname.ixlibrary $libname.a'
10268 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10269 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'
10270 ;;
10271 esac
10272 ;;
10273
10274 beos*)
10275 library_names_spec='${libname}${shared_ext}'
10276 dynamic_linker="$host_os ld.so"
10277 shlibpath_var=LIBRARY_PATH
10278 ;;
10279
10280 bsdi[45]*)
10281 version_type=linux
10282 need_version=no
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284 soname_spec='${libname}${release}${shared_ext}$major'
10285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10289 # the default ld.so.conf also contains /usr/contrib/lib and
10290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10291 # libtool to hard-code these into programs
10292 ;;
10293
10294 cygwin* | mingw* | pw32* | cegcc*)
10295 version_type=windows
10296 shrext_cmds=".dll"
10297 need_version=no
10298 need_lib_prefix=no
10299
10300 case $GCC,$host_os in
10301 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10302 library_names_spec='$libname.dll.a'
10303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10304 postinstall_cmds='base_file=`basename \${file}`~
10305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10306 dldir=$destdir/`dirname \$dlpath`~
10307 test -d \$dldir || mkdir -p \$dldir~
10308 $install_prog $dir/$dlname \$dldir/$dlname~
10309 chmod a+x \$dldir/$dlname~
10310 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10311 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10312 fi'
10313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10314 dlpath=$dir/\$dldll~
10315 $RM \$dlpath'
10316 shlibpath_overrides_runpath=yes
10317
10318 case $host_os in
10319 cygwin*)
10320 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10322
10323 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10324 ;;
10325 mingw* | cegcc*)
10326 # MinGW DLLs use traditional 'lib' prefix
10327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10328 ;;
10329 pw32*)
10330 # pw32 DLLs use 'pw' prefix rather than 'lib'
10331 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10332 ;;
10333 esac
10334 ;;
10335
10336 *)
10337 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10338 ;;
10339 esac
10340 dynamic_linker='Win32 ld.exe'
10341 # FIXME: first we should search . and the directory the executable is in
10342 shlibpath_var=PATH
10343 ;;
10344
10345 darwin* | rhapsody*)
10346 dynamic_linker="$host_os dyld"
10347 version_type=darwin
10348 need_lib_prefix=no
10349 need_version=no
10350 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10351 soname_spec='${libname}${release}${major}$shared_ext'
10352 shlibpath_overrides_runpath=yes
10353 shlibpath_var=DYLD_LIBRARY_PATH
10354 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10355
10356 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10358 ;;
10359
10360 dgux*)
10361 version_type=linux
10362 need_lib_prefix=no
10363 need_version=no
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 ;;
10368
10369 freebsd* | dragonfly*)
10370 # DragonFly does not have aout. When/if they implement a new
10371 # versioning mechanism, adjust this.
10372 if test -x /usr/bin/objformat; then
10373 objformat=`/usr/bin/objformat`
10374 else
10375 case $host_os in
10376 freebsd[23].*) objformat=aout ;;
10377 *) objformat=elf ;;
10378 esac
10379 fi
10380 version_type=freebsd-$objformat
10381 case $version_type in
10382 freebsd-elf*)
10383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10384 need_version=no
10385 need_lib_prefix=no
10386 ;;
10387 freebsd-*)
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10389 need_version=yes
10390 ;;
10391 esac
10392 shlibpath_var=LD_LIBRARY_PATH
10393 case $host_os in
10394 freebsd2.*)
10395 shlibpath_overrides_runpath=yes
10396 ;;
10397 freebsd3.[01]* | freebsdelf3.[01]*)
10398 shlibpath_overrides_runpath=yes
10399 hardcode_into_libs=yes
10400 ;;
10401 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10402 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10403 shlibpath_overrides_runpath=no
10404 hardcode_into_libs=yes
10405 ;;
10406 *) # from 4.6 on, and DragonFly
10407 shlibpath_overrides_runpath=yes
10408 hardcode_into_libs=yes
10409 ;;
10410 esac
10411 ;;
10412
10413 gnu*)
10414 version_type=linux
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 hardcode_into_libs=yes
10421 ;;
10422
10423 haiku*)
10424 version_type=linux
10425 need_lib_prefix=no
10426 need_version=no
10427 dynamic_linker="$host_os runtime_loader"
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10429 soname_spec='${libname}${release}${shared_ext}$major'
10430 shlibpath_var=LIBRARY_PATH
10431 shlibpath_overrides_runpath=yes
10432 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10433 hardcode_into_libs=yes
10434 ;;
10435
10436 hpux9* | hpux10* | hpux11*)
10437 # Give a soname corresponding to the major version so that dld.sl refuses to
10438 # link against other versions.
10439 version_type=sunos
10440 need_lib_prefix=no
10441 need_version=no
10442 case $host_cpu in
10443 ia64*)
10444 shrext_cmds='.so'
10445 hardcode_into_libs=yes
10446 dynamic_linker="$host_os dld.so"
10447 shlibpath_var=LD_LIBRARY_PATH
10448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 soname_spec='${libname}${release}${shared_ext}$major'
10451 if test "X$HPUX_IA64_MODE" = X32; then
10452 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10453 else
10454 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10455 fi
10456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10457 ;;
10458 hppa*64*)
10459 shrext_cmds='.sl'
10460 hardcode_into_libs=yes
10461 dynamic_linker="$host_os dld.sl"
10462 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10463 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10468 ;;
10469 *)
10470 shrext_cmds='.sl'
10471 dynamic_linker="$host_os dld.sl"
10472 shlibpath_var=SHLIB_PATH
10473 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 ;;
10477 esac
10478 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10479 postinstall_cmds='chmod 555 $lib'
10480 # or fails outright, so override atomically:
10481 install_override_mode=555
10482 ;;
10483
10484 interix[3-9]*)
10485 version_type=linux
10486 need_lib_prefix=no
10487 need_version=no
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=no
10493 hardcode_into_libs=yes
10494 ;;
10495
10496 irix5* | irix6* | nonstopux*)
10497 case $host_os in
10498 nonstopux*) version_type=nonstopux ;;
10499 *)
10500 if test "$lt_cv_prog_gnu_ld" = yes; then
10501 version_type=linux
10502 else
10503 version_type=irix
10504 fi ;;
10505 esac
10506 need_lib_prefix=no
10507 need_version=no
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10510 case $host_os in
10511 irix5* | nonstopux*)
10512 libsuff= shlibsuff=
10513 ;;
10514 *)
10515 case $LD in # libtool.m4 will add one of these switches to LD
10516 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10517 libsuff= shlibsuff= libmagic=32-bit;;
10518 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10519 libsuff=32 shlibsuff=N32 libmagic=N32;;
10520 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10521 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10522 *) libsuff= shlibsuff= libmagic=never-match;;
10523 esac
10524 ;;
10525 esac
10526 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10527 shlibpath_overrides_runpath=no
10528 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10529 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10530 hardcode_into_libs=yes
10531 ;;
10532
10533 # No shared lib support for Linux oldld, aout, or coff.
10534 linux*oldld* | linux*aout* | linux*coff*)
10535 dynamic_linker=no
10536 ;;
10537
10538 # This must be Linux ELF.
10539 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10540 version_type=linux
10541 need_lib_prefix=no
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 shlibpath_overrides_runpath=no
10548
10549 # Some binutils ld are patched to set DT_RUNPATH
10550 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
10552 else
10553 lt_cv_shlibpath_overrides_runpath=no
10554 save_LDFLAGS=$LDFLAGS
10555 save_libdir=$libdir
10556 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10557 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560
10561 int
10562 main ()
10563 {
10564
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10571 lt_cv_shlibpath_overrides_runpath=yes
10572 fi
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 LDFLAGS=$save_LDFLAGS
10577 libdir=$save_libdir
10578
10579 fi
10580
10581 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10582
10583 # This implies no fast_install, which is unacceptable.
10584 # Some rework will be needed to allow for fast_install
10585 # before this can be enabled.
10586 hardcode_into_libs=yes
10587
10588 # Append ld.so.conf contents to the search path
10589 if test -f /etc/ld.so.conf; then
10590 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' ' '`
10591 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10592 fi
10593
10594 # We used to test for /lib/ld.so.1 and disable shared libraries on
10595 # powerpc, because MkLinux only supported shared libraries with the
10596 # GNU dynamic linker. Since this was broken with cross compilers,
10597 # most powerpc-linux boxes support dynamic linking these days and
10598 # people can always --disable-shared, the test was removed, and we
10599 # assume the GNU/Linux dynamic linker is in use.
10600 dynamic_linker='GNU/Linux ld.so'
10601 ;;
10602
10603 netbsd*)
10604 version_type=sunos
10605 need_lib_prefix=no
10606 need_version=no
10607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10610 dynamic_linker='NetBSD (a.out) ld.so'
10611 else
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 dynamic_linker='NetBSD ld.elf_so'
10615 fi
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 hardcode_into_libs=yes
10619 ;;
10620
10621 newsos6)
10622 version_type=linux
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 shlibpath_var=LD_LIBRARY_PATH
10625 shlibpath_overrides_runpath=yes
10626 ;;
10627
10628 *nto* | *qnx*)
10629 version_type=qnx
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=no
10636 hardcode_into_libs=yes
10637 dynamic_linker='ldqnx.so'
10638 ;;
10639
10640 openbsd*)
10641 version_type=sunos
10642 sys_lib_dlsearch_path_spec="/usr/lib"
10643 need_lib_prefix=no
10644 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10645 case $host_os in
10646 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10647 *) need_version=no ;;
10648 esac
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10653 case $host_os in
10654 openbsd2.[89] | openbsd2.[89].*)
10655 shlibpath_overrides_runpath=no
10656 ;;
10657 *)
10658 shlibpath_overrides_runpath=yes
10659 ;;
10660 esac
10661 else
10662 shlibpath_overrides_runpath=yes
10663 fi
10664 ;;
10665
10666 os2*)
10667 libname_spec='$name'
10668 shrext_cmds=".dll"
10669 need_lib_prefix=no
10670 library_names_spec='$libname${shared_ext} $libname.a'
10671 dynamic_linker='OS/2 ld.exe'
10672 shlibpath_var=LIBPATH
10673 ;;
10674
10675 osf3* | osf4* | osf5*)
10676 version_type=osf
10677 need_lib_prefix=no
10678 need_version=no
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10684 ;;
10685
10686 rdos*)
10687 dynamic_linker=no
10688 ;;
10689
10690 solaris*)
10691 version_type=linux
10692 need_lib_prefix=no
10693 need_version=no
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 shlibpath_overrides_runpath=yes
10698 hardcode_into_libs=yes
10699 # ldd complains unless libraries are executable
10700 postinstall_cmds='chmod +x $lib'
10701 ;;
10702
10703 sunos4*)
10704 version_type=sunos
10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10707 shlibpath_var=LD_LIBRARY_PATH
10708 shlibpath_overrides_runpath=yes
10709 if test "$with_gnu_ld" = yes; then
10710 need_lib_prefix=no
10711 fi
10712 need_version=yes
10713 ;;
10714
10715 sysv4 | sysv4.3*)
10716 version_type=linux
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10718 soname_spec='${libname}${release}${shared_ext}$major'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 case $host_vendor in
10721 sni)
10722 shlibpath_overrides_runpath=no
10723 need_lib_prefix=no
10724 runpath_var=LD_RUN_PATH
10725 ;;
10726 siemens)
10727 need_lib_prefix=no
10728 ;;
10729 motorola)
10730 need_lib_prefix=no
10731 need_version=no
10732 shlibpath_overrides_runpath=no
10733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10734 ;;
10735 esac
10736 ;;
10737
10738 sysv4*MP*)
10739 if test -d /usr/nec ;then
10740 version_type=linux
10741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10742 soname_spec='$libname${shared_ext}.$major'
10743 shlibpath_var=LD_LIBRARY_PATH
10744 fi
10745 ;;
10746
10747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10748 version_type=freebsd-elf
10749 need_lib_prefix=no
10750 need_version=no
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath=yes
10755 hardcode_into_libs=yes
10756 if test "$with_gnu_ld" = yes; then
10757 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10758 else
10759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10760 case $host_os in
10761 sco3.2v5*)
10762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10763 ;;
10764 esac
10765 fi
10766 sys_lib_dlsearch_path_spec='/usr/lib'
10767 ;;
10768
10769 tpf*)
10770 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10771 version_type=linux
10772 need_lib_prefix=no
10773 need_version=no
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775 shlibpath_var=LD_LIBRARY_PATH
10776 shlibpath_overrides_runpath=no
10777 hardcode_into_libs=yes
10778 ;;
10779
10780 uts4*)
10781 version_type=linux
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 shlibpath_var=LD_LIBRARY_PATH
10785 ;;
10786
10787 *)
10788 dynamic_linker=no
10789 ;;
10790 esac
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10792 $as_echo "$dynamic_linker" >&6; }
10793 test "$dynamic_linker" = no && can_build_shared=no
10794
10795 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10796 if test "$GCC" = yes; then
10797 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10798 fi
10799
10800 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10801 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10802 fi
10803 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10804 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10805 fi
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10899 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10900 hardcode_action=
10901 if test -n "$hardcode_libdir_flag_spec" ||
10902 test -n "$runpath_var" ||
10903 test "X$hardcode_automatic" = "Xyes" ; then
10904
10905 # We can hardcode non-existent directories.
10906 if test "$hardcode_direct" != no &&
10907 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10908 # have to relink, otherwise we might link with an installed library
10909 # when we should be linking with a yet-to-be-installed one
10910 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10911 test "$hardcode_minus_L" != no; then
10912 # Linking always hardcodes the temporary library directory.
10913 hardcode_action=relink
10914 else
10915 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10916 hardcode_action=immediate
10917 fi
10918 else
10919 # We cannot hardcode anything, or else we can only hardcode existing
10920 # directories.
10921 hardcode_action=unsupported
10922 fi
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10924 $as_echo "$hardcode_action" >&6; }
10925
10926 if test "$hardcode_action" = relink ||
10927 test "$inherit_rpath" = yes; then
10928 # Fast installation is not supported
10929 enable_fast_install=no
10930 elif test "$shlibpath_overrides_runpath" = yes ||
10931 test "$enable_shared" = no; then
10932 # Fast installation is not necessary
10933 enable_fast_install=needless
10934 fi
10935
10936
10937
10938
10939
10940
10941 if test "x$enable_dlopen" != xyes; then
10942 enable_dlopen=unknown
10943 enable_dlopen_self=unknown
10944 enable_dlopen_self_static=unknown
10945 else
10946 lt_cv_dlopen=no
10947 lt_cv_dlopen_libs=
10948
10949 case $host_os in
10950 beos*)
10951 lt_cv_dlopen="load_add_on"
10952 lt_cv_dlopen_libs=
10953 lt_cv_dlopen_self=yes
10954 ;;
10955
10956 mingw* | pw32* | cegcc*)
10957 lt_cv_dlopen="LoadLibrary"
10958 lt_cv_dlopen_libs=
10959 ;;
10960
10961 cygwin*)
10962 lt_cv_dlopen="dlopen"
10963 lt_cv_dlopen_libs=
10964 ;;
10965
10966 darwin*)
10967 # if libdl is installed we need to link against it
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10969 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10971 $as_echo_n "(cached) " >&6
10972 else
10973 ac_check_lib_save_LIBS=$LIBS
10974 LIBS="-ldl $LIBS"
10975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976 /* end confdefs.h. */
10977
10978 /* Override any GCC internal prototype to avoid an error.
10979 Use char because int might match the return type of a GCC
10980 builtin and then its argument prototype would still apply. */
10981 #ifdef __cplusplus
10982 extern "C"
10983 #endif
10984 char dlopen ();
10985 int
10986 main ()
10987 {
10988 return dlopen ();
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 if ac_fn_c_try_link "$LINENO"; then :
10994 ac_cv_lib_dl_dlopen=yes
10995 else
10996 ac_cv_lib_dl_dlopen=no
10997 fi
10998 rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11003 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11004 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11006 else
11007
11008 lt_cv_dlopen="dyld"
11009 lt_cv_dlopen_libs=
11010 lt_cv_dlopen_self=yes
11011
11012 fi
11013
11014 ;;
11015
11016 *)
11017 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11018 if test "x$ac_cv_func_shl_load" = x""yes; then :
11019 lt_cv_dlopen="shl_load"
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11022 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11023 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
11025 else
11026 ac_check_lib_save_LIBS=$LIBS
11027 LIBS="-ldld $LIBS"
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030
11031 /* Override any GCC internal prototype to avoid an error.
11032 Use char because int might match the return type of a GCC
11033 builtin and then its argument prototype would still apply. */
11034 #ifdef __cplusplus
11035 extern "C"
11036 #endif
11037 char shl_load ();
11038 int
11039 main ()
11040 {
11041 return shl_load ();
11042 ;
11043 return 0;
11044 }
11045 _ACEOF
11046 if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_lib_dld_shl_load=yes
11048 else
11049 ac_cv_lib_dld_shl_load=no
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext \
11052 conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_lib_save_LIBS
11054 fi
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11056 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11057 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11058 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11059 else
11060 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11061 if test "x$ac_cv_func_dlopen" = x""yes; then :
11062 lt_cv_dlopen="dlopen"
11063 else
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11066 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 ac_check_lib_save_LIBS=$LIBS
11070 LIBS="-ldl $LIBS"
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11073
11074 /* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
11077 #ifdef __cplusplus
11078 extern "C"
11079 #endif
11080 char dlopen ();
11081 int
11082 main ()
11083 {
11084 return dlopen ();
11085 ;
11086 return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_link "$LINENO"; then :
11090 ac_cv_lib_dl_dlopen=yes
11091 else
11092 ac_cv_lib_dl_dlopen=no
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11096 LIBS=$ac_check_lib_save_LIBS
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11100 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11104 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11105 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 ac_check_lib_save_LIBS=$LIBS
11109 LIBS="-lsvld $LIBS"
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char dlopen ();
11120 int
11121 main ()
11122 {
11123 return dlopen ();
11124 ;
11125 return 0;
11126 }
11127 _ACEOF
11128 if ac_fn_c_try_link "$LINENO"; then :
11129 ac_cv_lib_svld_dlopen=yes
11130 else
11131 ac_cv_lib_svld_dlopen=no
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11136 fi
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11138 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11139 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11141 else
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11143 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 ac_check_lib_save_LIBS=$LIBS
11148 LIBS="-ldld $LIBS"
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11151
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char dld_link ();
11159 int
11160 main ()
11161 {
11162 return dld_link ();
11163 ;
11164 return 0;
11165 }
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 ac_cv_lib_dld_dld_link=yes
11169 else
11170 ac_cv_lib_dld_dld_link=no
11171 fi
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_lib_save_LIBS
11175 fi
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11177 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11178 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11179 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11180 fi
11181
11182
11183 fi
11184
11185
11186 fi
11187
11188
11189 fi
11190
11191
11192 fi
11193
11194
11195 fi
11196
11197 ;;
11198 esac
11199
11200 if test "x$lt_cv_dlopen" != xno; then
11201 enable_dlopen=yes
11202 else
11203 enable_dlopen=no
11204 fi
11205
11206 case $lt_cv_dlopen in
11207 dlopen)
11208 save_CPPFLAGS="$CPPFLAGS"
11209 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11210
11211 save_LDFLAGS="$LDFLAGS"
11212 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11213
11214 save_LIBS="$LIBS"
11215 LIBS="$lt_cv_dlopen_libs $LIBS"
11216
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11218 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11219 if test "${lt_cv_dlopen_self+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 if test "$cross_compiling" = yes; then :
11223 lt_cv_dlopen_self=cross
11224 else
11225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11226 lt_status=$lt_dlunknown
11227 cat > conftest.$ac_ext <<_LT_EOF
11228 #line 11228 "configure"
11229 #include "confdefs.h"
11230
11231 #if HAVE_DLFCN_H
11232 #include <dlfcn.h>
11233 #endif
11234
11235 #include <stdio.h>
11236
11237 #ifdef RTLD_GLOBAL
11238 # define LT_DLGLOBAL RTLD_GLOBAL
11239 #else
11240 # ifdef DL_GLOBAL
11241 # define LT_DLGLOBAL DL_GLOBAL
11242 # else
11243 # define LT_DLGLOBAL 0
11244 # endif
11245 #endif
11246
11247 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11248 find out it does not work in some platform. */
11249 #ifndef LT_DLLAZY_OR_NOW
11250 # ifdef RTLD_LAZY
11251 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11252 # else
11253 # ifdef DL_LAZY
11254 # define LT_DLLAZY_OR_NOW DL_LAZY
11255 # else
11256 # ifdef RTLD_NOW
11257 # define LT_DLLAZY_OR_NOW RTLD_NOW
11258 # else
11259 # ifdef DL_NOW
11260 # define LT_DLLAZY_OR_NOW DL_NOW
11261 # else
11262 # define LT_DLLAZY_OR_NOW 0
11263 # endif
11264 # endif
11265 # endif
11266 # endif
11267 #endif
11268
11269 /* When -fvisbility=hidden is used, assume the code has been annotated
11270 correspondingly for the symbols needed. */
11271 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11272 void fnord () __attribute__((visibility("default")));
11273 #endif
11274
11275 void fnord () { int i=42; }
11276 int main ()
11277 {
11278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11279 int status = $lt_dlunknown;
11280
11281 if (self)
11282 {
11283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11284 else
11285 {
11286 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11287 else puts (dlerror ());
11288 }
11289 /* dlclose (self); */
11290 }
11291 else
11292 puts (dlerror ());
11293
11294 return status;
11295 }
11296 _LT_EOF
11297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11298 (eval $ac_link) 2>&5
11299 ac_status=$?
11300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11301 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11302 (./conftest; exit; ) >&5 2>/dev/null
11303 lt_status=$?
11304 case x$lt_status in
11305 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11306 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11307 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11308 esac
11309 else :
11310 # compilation failed
11311 lt_cv_dlopen_self=no
11312 fi
11313 fi
11314 rm -fr conftest*
11315
11316
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11319 $as_echo "$lt_cv_dlopen_self" >&6; }
11320
11321 if test "x$lt_cv_dlopen_self" = xyes; then
11322 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11324 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11325 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
11327 else
11328 if test "$cross_compiling" = yes; then :
11329 lt_cv_dlopen_self_static=cross
11330 else
11331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11332 lt_status=$lt_dlunknown
11333 cat > conftest.$ac_ext <<_LT_EOF
11334 #line 11334 "configure"
11335 #include "confdefs.h"
11336
11337 #if HAVE_DLFCN_H
11338 #include <dlfcn.h>
11339 #endif
11340
11341 #include <stdio.h>
11342
11343 #ifdef RTLD_GLOBAL
11344 # define LT_DLGLOBAL RTLD_GLOBAL
11345 #else
11346 # ifdef DL_GLOBAL
11347 # define LT_DLGLOBAL DL_GLOBAL
11348 # else
11349 # define LT_DLGLOBAL 0
11350 # endif
11351 #endif
11352
11353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11354 find out it does not work in some platform. */
11355 #ifndef LT_DLLAZY_OR_NOW
11356 # ifdef RTLD_LAZY
11357 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11358 # else
11359 # ifdef DL_LAZY
11360 # define LT_DLLAZY_OR_NOW DL_LAZY
11361 # else
11362 # ifdef RTLD_NOW
11363 # define LT_DLLAZY_OR_NOW RTLD_NOW
11364 # else
11365 # ifdef DL_NOW
11366 # define LT_DLLAZY_OR_NOW DL_NOW
11367 # else
11368 # define LT_DLLAZY_OR_NOW 0
11369 # endif
11370 # endif
11371 # endif
11372 # endif
11373 #endif
11374
11375 /* When -fvisbility=hidden is used, assume the code has been annotated
11376 correspondingly for the symbols needed. */
11377 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11378 void fnord () __attribute__((visibility("default")));
11379 #endif
11380
11381 void fnord () { int i=42; }
11382 int main ()
11383 {
11384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11385 int status = $lt_dlunknown;
11386
11387 if (self)
11388 {
11389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11390 else
11391 {
11392 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11393 else puts (dlerror ());
11394 }
11395 /* dlclose (self); */
11396 }
11397 else
11398 puts (dlerror ());
11399
11400 return status;
11401 }
11402 _LT_EOF
11403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11404 (eval $ac_link) 2>&5
11405 ac_status=$?
11406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11407 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11408 (./conftest; exit; ) >&5 2>/dev/null
11409 lt_status=$?
11410 case x$lt_status in
11411 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11412 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11413 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11414 esac
11415 else :
11416 # compilation failed
11417 lt_cv_dlopen_self_static=no
11418 fi
11419 fi
11420 rm -fr conftest*
11421
11422
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11425 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11426 fi
11427
11428 CPPFLAGS="$save_CPPFLAGS"
11429 LDFLAGS="$save_LDFLAGS"
11430 LIBS="$save_LIBS"
11431 ;;
11432 esac
11433
11434 case $lt_cv_dlopen_self in
11435 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11436 *) enable_dlopen_self=unknown ;;
11437 esac
11438
11439 case $lt_cv_dlopen_self_static in
11440 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11441 *) enable_dlopen_self_static=unknown ;;
11442 esac
11443 fi
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461 striplib=
11462 old_striplib=
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11464 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11465 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11466 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11467 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469 $as_echo "yes" >&6; }
11470 else
11471 # FIXME - insert some real tests, host_os isn't really good enough
11472 case $host_os in
11473 darwin*)
11474 if test -n "$STRIP" ; then
11475 striplib="$STRIP -x"
11476 old_striplib="$STRIP -S"
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11478 $as_echo "yes" >&6; }
11479 else
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481 $as_echo "no" >&6; }
11482 fi
11483 ;;
11484 *)
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11487 ;;
11488 esac
11489 fi
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502 # Report which library types will actually be built
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11504 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11506 $as_echo "$can_build_shared" >&6; }
11507
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11509 $as_echo_n "checking whether to build shared libraries... " >&6; }
11510 test "$can_build_shared" = "no" && enable_shared=no
11511
11512 # On AIX, shared libraries and static libraries use the same namespace, and
11513 # are all built from PIC.
11514 case $host_os in
11515 aix3*)
11516 test "$enable_shared" = yes && enable_static=no
11517 if test -n "$RANLIB"; then
11518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11519 postinstall_cmds='$RANLIB $lib'
11520 fi
11521 ;;
11522
11523 aix[4-9]*)
11524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11525 test "$enable_shared" = yes && enable_static=no
11526 fi
11527 ;;
11528 esac
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11530 $as_echo "$enable_shared" >&6; }
11531
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11533 $as_echo_n "checking whether to build static libraries... " >&6; }
11534 # Make sure either enable_shared or enable_static is yes.
11535 test "$enable_shared" = yes || enable_static=yes
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11537 $as_echo "$enable_static" >&6; }
11538
11539
11540
11541
11542 fi
11543 ac_ext=c
11544 ac_cpp='$CPP $CPPFLAGS'
11545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11548
11549 CC="$lt_save_CC"
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563 ac_config_commands="$ac_config_commands libtool"
11564
11565
11566
11567
11568 # Only expand once:
11569
11570
11571
11572 # The tests for host and target for $enable_largefile require
11573 # canonical names.
11574
11575
11576
11577 # As the $enable_largefile decision depends on --enable-plugins we must set it
11578 # even in directories otherwise not depending on the $plugins option.
11579
11580
11581 maybe_plugins=no
11582 for ac_header in dlfcn.h
11583 do :
11584 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11585 "
11586 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11587 cat >>confdefs.h <<_ACEOF
11588 #define HAVE_DLFCN_H 1
11589 _ACEOF
11590 maybe_plugins=yes
11591 fi
11592
11593 done
11594
11595 for ac_header in windows.h
11596 do :
11597 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11598 "
11599 if test "x$ac_cv_header_windows_h" = x""yes; then :
11600 cat >>confdefs.h <<_ACEOF
11601 #define HAVE_WINDOWS_H 1
11602 _ACEOF
11603 maybe_plugins=yes
11604 fi
11605
11606 done
11607
11608
11609 # Check whether --enable-plugins was given.
11610 if test "${enable_plugins+set}" = set; then :
11611 enableval=$enable_plugins; case "${enableval}" in
11612 no) plugins=no ;;
11613 *) plugins=yes
11614 if test "$maybe_plugins" != "yes" ; then
11615 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11616 fi ;;
11617 esac
11618 else
11619 plugins=$maybe_plugins
11620
11621 fi
11622
11623 if test "$plugins" = "yes"; then
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11625 $as_echo_n "checking for library containing dlopen... " >&6; }
11626 if test "${ac_cv_search_dlopen+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 ac_func_search_save_LIBS=$LIBS
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11632
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 char dlopen ();
11640 int
11641 main ()
11642 {
11643 return dlopen ();
11644 ;
11645 return 0;
11646 }
11647 _ACEOF
11648 for ac_lib in '' dl; do
11649 if test -z "$ac_lib"; then
11650 ac_res="none required"
11651 else
11652 ac_res=-l$ac_lib
11653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11654 fi
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_search_dlopen=$ac_res
11657 fi
11658 rm -f core conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext
11660 if test "${ac_cv_search_dlopen+set}" = set; then :
11661 break
11662 fi
11663 done
11664 if test "${ac_cv_search_dlopen+set}" = set; then :
11665
11666 else
11667 ac_cv_search_dlopen=no
11668 fi
11669 rm conftest.$ac_ext
11670 LIBS=$ac_func_search_save_LIBS
11671 fi
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11673 $as_echo "$ac_cv_search_dlopen" >&6; }
11674 ac_res=$ac_cv_search_dlopen
11675 if test "$ac_res" != no; then :
11676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11677
11678 fi
11679
11680 fi
11681
11682
11683 case "${host}" in
11684 sparc-*-solaris*|i[3-7]86-*-solaris*)
11685 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11686 # are mutually exclusive; and without procfs support, the bfd/ elf module
11687 # cannot provide certain routines such as elfcore_write_prpsinfo
11688 # or elfcore_write_prstatus. So unless the user explicitly requested
11689 # large-file support through the --enable-largefile switch, disable
11690 # large-file support in favor of procfs support.
11691 test "${target}" = "${host}" -a "x$plugins" = xno \
11692 && : ${enable_largefile="no"}
11693 ;;
11694 esac
11695
11696 # Check whether --enable-largefile was given.
11697 if test "${enable_largefile+set}" = set; then :
11698 enableval=$enable_largefile;
11699 fi
11700
11701 if test "$enable_largefile" != no; then
11702
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11704 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11705 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11706 $as_echo_n "(cached) " >&6
11707 else
11708 ac_cv_sys_largefile_CC=no
11709 if test "$GCC" != yes; then
11710 ac_save_CC=$CC
11711 while :; do
11712 # IRIX 6.2 and later do not support large files by default,
11713 # so use the C compiler's -n32 option if that helps.
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11716 #include <sys/types.h>
11717 /* Check that off_t can represent 2**63 - 1 correctly.
11718 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11719 since some C++ compilers masquerading as C compilers
11720 incorrectly reject 9223372036854775807. */
11721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11723 && LARGE_OFF_T % 2147483647 == 1)
11724 ? 1 : -1];
11725 int
11726 main ()
11727 {
11728
11729 ;
11730 return 0;
11731 }
11732 _ACEOF
11733 if ac_fn_c_try_compile "$LINENO"; then :
11734 break
11735 fi
11736 rm -f core conftest.err conftest.$ac_objext
11737 CC="$CC -n32"
11738 if ac_fn_c_try_compile "$LINENO"; then :
11739 ac_cv_sys_largefile_CC=' -n32'; break
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext
11742 break
11743 done
11744 CC=$ac_save_CC
11745 rm -f conftest.$ac_ext
11746 fi
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11749 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11750 if test "$ac_cv_sys_largefile_CC" != no; then
11751 CC=$CC$ac_cv_sys_largefile_CC
11752 fi
11753
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11755 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11756 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11757 $as_echo_n "(cached) " >&6
11758 else
11759 while :; do
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762 #include <sys/types.h>
11763 /* Check that off_t can represent 2**63 - 1 correctly.
11764 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11765 since some C++ compilers masquerading as C compilers
11766 incorrectly reject 9223372036854775807. */
11767 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11768 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11769 && LARGE_OFF_T % 2147483647 == 1)
11770 ? 1 : -1];
11771 int
11772 main ()
11773 {
11774
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 if ac_fn_c_try_compile "$LINENO"; then :
11780 ac_cv_sys_file_offset_bits=no; break
11781 fi
11782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785 #define _FILE_OFFSET_BITS 64
11786 #include <sys/types.h>
11787 /* Check that off_t can represent 2**63 - 1 correctly.
11788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11789 since some C++ compilers masquerading as C compilers
11790 incorrectly reject 9223372036854775807. */
11791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11793 && LARGE_OFF_T % 2147483647 == 1)
11794 ? 1 : -1];
11795 int
11796 main ()
11797 {
11798
11799 ;
11800 return 0;
11801 }
11802 _ACEOF
11803 if ac_fn_c_try_compile "$LINENO"; then :
11804 ac_cv_sys_file_offset_bits=64; break
11805 fi
11806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11807 ac_cv_sys_file_offset_bits=unknown
11808 break
11809 done
11810 fi
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11812 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11813 case $ac_cv_sys_file_offset_bits in #(
11814 no | unknown) ;;
11815 *)
11816 cat >>confdefs.h <<_ACEOF
11817 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11818 _ACEOF
11819 ;;
11820 esac
11821 rm -rf conftest*
11822 if test $ac_cv_sys_file_offset_bits = unknown; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11824 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11825 if test "${ac_cv_sys_large_files+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11827 else
11828 while :; do
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #include <sys/types.h>
11832 /* Check that off_t can represent 2**63 - 1 correctly.
11833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11834 since some C++ compilers masquerading as C compilers
11835 incorrectly reject 9223372036854775807. */
11836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11838 && LARGE_OFF_T % 2147483647 == 1)
11839 ? 1 : -1];
11840 int
11841 main ()
11842 {
11843
11844 ;
11845 return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 ac_cv_sys_large_files=no; break
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #define _LARGE_FILES 1
11855 #include <sys/types.h>
11856 /* Check that off_t can represent 2**63 - 1 correctly.
11857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11858 since some C++ compilers masquerading as C compilers
11859 incorrectly reject 9223372036854775807. */
11860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11862 && LARGE_OFF_T % 2147483647 == 1)
11863 ? 1 : -1];
11864 int
11865 main ()
11866 {
11867
11868 ;
11869 return 0;
11870 }
11871 _ACEOF
11872 if ac_fn_c_try_compile "$LINENO"; then :
11873 ac_cv_sys_large_files=1; break
11874 fi
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876 ac_cv_sys_large_files=unknown
11877 break
11878 done
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11881 $as_echo "$ac_cv_sys_large_files" >&6; }
11882 case $ac_cv_sys_large_files in #(
11883 no | unknown) ;;
11884 *)
11885 cat >>confdefs.h <<_ACEOF
11886 #define _LARGE_FILES $ac_cv_sys_large_files
11887 _ACEOF
11888 ;;
11889 esac
11890 rm -rf conftest*
11891 fi
11892 fi
11893
11894
11895
11896 # Check whether --enable-targets was given.
11897 if test "${enable_targets+set}" = set; then :
11898 enableval=$enable_targets; case "${enableval}" in
11899 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11900 ;;
11901 no) enable_targets= ;;
11902 *) enable_targets=$enableval ;;
11903 esac
11904 fi
11905
11906 # Check whether --enable-deterministic-archives was given.
11907 if test "${enable_deterministic_archives+set}" = set; then :
11908 enableval=$enable_deterministic_archives;
11909 if test "${enableval}" = no; then
11910 default_ar_deterministic=0
11911 else
11912 default_ar_deterministic=1
11913 fi
11914 else
11915 default_ar_deterministic=0
11916 fi
11917
11918
11919
11920 cat >>confdefs.h <<_ACEOF
11921 #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11922 _ACEOF
11923
11924
11925 # Check whether --enable-default-strings-all was given.
11926 if test "${enable_default_strings_all+set}" = set; then :
11927 enableval=$enable_default_strings_all;
11928 if test "${enableval}" = no; then
11929 default_strings_all=0
11930 else
11931 default_strings_all=1
11932 fi
11933 else
11934 default_strings_all=1
11935 fi
11936
11937
11938
11939 cat >>confdefs.h <<_ACEOF
11940 #define DEFAULT_STRINGS_ALL $default_strings_all
11941 _ACEOF
11942
11943
11944
11945 # Set the 'development' global.
11946 . $srcdir/../bfd/development.sh
11947
11948 # Default set of GCC warnings to enable.
11949 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11950
11951 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11954 __GNUC__
11955 _ACEOF
11956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11957 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11958
11959 else
11960 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11961 fi
11962 rm -f conftest*
11963
11964
11965 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 __GNUC__
11969 _ACEOF
11970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11971 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11972
11973 else
11974 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11975 fi
11976 rm -f conftest*
11977
11978
11979 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11980 WARN_WRITE_STRINGS=""
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983 __GNUC__
11984 _ACEOF
11985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11986 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11987
11988 else
11989 WARN_WRITE_STRINGS="-Wwrite-strings"
11990 fi
11991 rm -f conftest*
11992
11993
11994 # Check whether --enable-werror was given.
11995 if test "${enable_werror+set}" = set; then :
11996 enableval=$enable_werror; case "${enableval}" in
11997 yes | y) ERROR_ON_WARNING="yes" ;;
11998 no | n) ERROR_ON_WARNING="no" ;;
11999 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12000 esac
12001 fi
12002
12003
12004 # Disable -Wformat by default when using gcc on mingw
12005 case "${host}" in
12006 *-*-mingw32*)
12007 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12008 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12009 fi
12010 ;;
12011 *) ;;
12012 esac
12013
12014 # Enable -Werror by default when using gcc. Turn it off for releases.
12015 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12016 ERROR_ON_WARNING=yes
12017 fi
12018
12019 NO_WERROR=
12020 if test "${ERROR_ON_WARNING}" = yes ; then
12021 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12022 NO_WERROR="-Wno-error"
12023 fi
12024
12025 if test "${GCC}" = yes ; then
12026 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12027 fi
12028
12029 # Check whether --enable-build-warnings was given.
12030 if test "${enable_build_warnings+set}" = set; then :
12031 enableval=$enable_build_warnings; case "${enableval}" in
12032 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12033 no) if test "${GCC}" = yes ; then
12034 WARN_CFLAGS="-w"
12035 fi;;
12036 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12037 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12038 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12039 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12040 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12041 esac
12042 fi
12043
12044
12045 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12046 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12047 fi
12048
12049
12050
12051
12052
12053
12054 ac_config_headers="$ac_config_headers config.h:config.in"
12055
12056
12057
12058
12059 if test -z "$target" ; then
12060 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12061 fi
12062 if test -z "$host" ; then
12063 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
12064 fi
12065
12066 for ac_prog in 'bison -y' byacc
12067 do
12068 # Extract the first word of "$ac_prog", so it can be a program name with args.
12069 set dummy $ac_prog; ac_word=$2
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12071 $as_echo_n "checking for $ac_word... " >&6; }
12072 if test "${ac_cv_prog_YACC+set}" = set; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 if test -n "$YACC"; then
12076 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12077 else
12078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12079 for as_dir in $PATH
12080 do
12081 IFS=$as_save_IFS
12082 test -z "$as_dir" && as_dir=.
12083 for ac_exec_ext in '' $ac_executable_extensions; do
12084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12085 ac_cv_prog_YACC="$ac_prog"
12086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12087 break 2
12088 fi
12089 done
12090 done
12091 IFS=$as_save_IFS
12092
12093 fi
12094 fi
12095 YACC=$ac_cv_prog_YACC
12096 if test -n "$YACC"; then
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12098 $as_echo "$YACC" >&6; }
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12102 fi
12103
12104
12105 test -n "$YACC" && break
12106 done
12107 test -n "$YACC" || YACC="yacc"
12108
12109 for ac_prog in flex lex
12110 do
12111 # Extract the first word of "$ac_prog", so it can be a program name with args.
12112 set dummy $ac_prog; ac_word=$2
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114 $as_echo_n "checking for $ac_word... " >&6; }
12115 if test "${ac_cv_prog_LEX+set}" = set; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 if test -n "$LEX"; then
12119 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12120 else
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12123 do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12128 ac_cv_prog_LEX="$ac_prog"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12131 fi
12132 done
12133 done
12134 IFS=$as_save_IFS
12135
12136 fi
12137 fi
12138 LEX=$ac_cv_prog_LEX
12139 if test -n "$LEX"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12141 $as_echo "$LEX" >&6; }
12142 else
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12145 fi
12146
12147
12148 test -n "$LEX" && break
12149 done
12150 test -n "$LEX" || LEX=":"
12151
12152 case "$LEX" in
12153 :|*"missing "*) ;;
12154 *) cat >conftest.l <<_ACEOF
12155 %%
12156 a { ECHO; }
12157 b { REJECT; }
12158 c { yymore (); }
12159 d { yyless (1); }
12160 e { yyless (input () != 0); }
12161 f { unput (yytext[0]); }
12162 . { BEGIN INITIAL; }
12163 %%
12164 #ifdef YYTEXT_POINTER
12165 extern char *yytext;
12166 #endif
12167 int
12168 main (void)
12169 {
12170 return ! yylex () + ! yywrap ();
12171 }
12172 _ACEOF
12173 { { ac_try="$LEX conftest.l"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177 esac
12178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12179 $as_echo "$ac_try_echo"; } >&5
12180 (eval "$LEX conftest.l") 2>&5
12181 ac_status=$?
12182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183 test $ac_status = 0; }
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12185 $as_echo_n "checking lex output file root... " >&6; }
12186 if test "${ac_cv_prog_lex_root+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189
12190 if test -f lex.yy.c; then
12191 ac_cv_prog_lex_root=lex.yy
12192 elif test -f lexyy.c; then
12193 ac_cv_prog_lex_root=lexyy
12194 else
12195 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12196 fi
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12199 $as_echo "$ac_cv_prog_lex_root" >&6; }
12200 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12201
12202 if test -z "${LEXLIB+set}"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12204 $as_echo_n "checking lex library... " >&6; }
12205 if test "${ac_cv_lib_lex+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208
12209 ac_save_LIBS=$LIBS
12210 ac_cv_lib_lex='none needed'
12211 for ac_lib in '' -lfl -ll; do
12212 LIBS="$ac_lib $ac_save_LIBS"
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215 `cat $LEX_OUTPUT_ROOT.c`
12216 _ACEOF
12217 if ac_fn_c_try_link "$LINENO"; then :
12218 ac_cv_lib_lex=$ac_lib
12219 fi
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 test "$ac_cv_lib_lex" != 'none needed' && break
12223 done
12224 LIBS=$ac_save_LIBS
12225
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12228 $as_echo "$ac_cv_lib_lex" >&6; }
12229 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12230 fi
12231
12232
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12234 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12235 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 # POSIX says lex can declare yytext either as a pointer or an array; the
12239 # default is implementation-dependent. Figure out which it is, since
12240 # not all implementations provide the %pointer and %array declarations.
12241 ac_cv_prog_lex_yytext_pointer=no
12242 ac_save_LIBS=$LIBS
12243 LIBS="$LEXLIB $ac_save_LIBS"
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246 #define YYTEXT_POINTER 1
12247 `cat $LEX_OUTPUT_ROOT.c`
12248 _ACEOF
12249 if ac_fn_c_try_link "$LINENO"; then :
12250 ac_cv_prog_lex_yytext_pointer=yes
12251 fi
12252 rm -f core conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_save_LIBS
12255
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12258 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12259 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12260
12261 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12262
12263 fi
12264 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12265 ;;
12266 esac
12267 if test "$LEX" = :; then
12268 LEX=${am_missing_run}flex
12269 fi
12270
12271 ALL_LINGUAS="bg da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr ca"
12272 # If we haven't got the data from the intl directory,
12273 # assume NLS is disabled.
12274 USE_NLS=no
12275 LIBINTL=
12276 LIBINTL_DEP=
12277 INCINTL=
12278 XGETTEXT=
12279 GMSGFMT=
12280 POSUB=
12281
12282 if test -f ../intl/config.intl; then
12283 . ../intl/config.intl
12284 fi
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12286 $as_echo_n "checking whether NLS is requested... " >&6; }
12287 if test x"$USE_NLS" != xyes; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289 $as_echo "no" >&6; }
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292 $as_echo "yes" >&6; }
12293
12294 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12295
12296
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12298 $as_echo_n "checking for catalogs to be installed... " >&6; }
12299 # Look for .po and .gmo files in the source directory.
12300 CATALOGS=
12301 XLINGUAS=
12302 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12303 # If there aren't any .gmo files the shell will give us the
12304 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12305 # weeded out.
12306 case "$cat" in *\**)
12307 continue;;
12308 esac
12309 # The quadruple backslash is collapsed to a double backslash
12310 # by the backticks, then collapsed again by the double quotes,
12311 # leaving us with one backslash in the sed expression (right
12312 # before the dot that mustn't act as a wildcard).
12313 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12314 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12315 # The user is allowed to set LINGUAS to a list of languages to
12316 # install catalogs for. If it's empty that means "all of them."
12317 if test "x$LINGUAS" = x; then
12318 CATALOGS="$CATALOGS $cat"
12319 XLINGUAS="$XLINGUAS $lang"
12320 else
12321 case "$LINGUAS" in *$lang*)
12322 CATALOGS="$CATALOGS $cat"
12323 XLINGUAS="$XLINGUAS $lang"
12324 ;;
12325 esac
12326 fi
12327 done
12328 LINGUAS="$XLINGUAS"
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12330 $as_echo "$LINGUAS" >&6; }
12331
12332
12333 DATADIRNAME=share
12334
12335 INSTOBJEXT=.mo
12336
12337 GENCAT=gencat
12338
12339 CATOBJEXT=.gmo
12340
12341 fi
12342
12343 MKINSTALLDIRS=
12344 if test -n "$ac_aux_dir"; then
12345 case "$ac_aux_dir" in
12346 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12347 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12348 esac
12349 fi
12350 if test -z "$MKINSTALLDIRS"; then
12351 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12352 fi
12353
12354
12355
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12357 $as_echo_n "checking whether NLS is requested... " >&6; }
12358 # Check whether --enable-nls was given.
12359 if test "${enable_nls+set}" = set; then :
12360 enableval=$enable_nls; USE_NLS=$enableval
12361 else
12362 USE_NLS=yes
12363 fi
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12366 $as_echo "$USE_NLS" >&6; }
12367
12368
12369
12370
12371
12372
12373 # Prepare PATH_SEPARATOR.
12374 # The user is always right.
12375 if test "${PATH_SEPARATOR+set}" != set; then
12376 echo "#! /bin/sh" >conf$$.sh
12377 echo "exit 0" >>conf$$.sh
12378 chmod +x conf$$.sh
12379 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12380 PATH_SEPARATOR=';'
12381 else
12382 PATH_SEPARATOR=:
12383 fi
12384 rm -f conf$$.sh
12385 fi
12386
12387 # Find out how to test for executable files. Don't use a zero-byte file,
12388 # as systems may use methods other than mode bits to determine executability.
12389 cat >conf$$.file <<_ASEOF
12390 #! /bin/sh
12391 exit 0
12392 _ASEOF
12393 chmod +x conf$$.file
12394 if test -x conf$$.file >/dev/null 2>&1; then
12395 ac_executable_p="test -x"
12396 else
12397 ac_executable_p="test -f"
12398 fi
12399 rm -f conf$$.file
12400
12401 # Extract the first word of "msgfmt", so it can be a program name with args.
12402 set dummy msgfmt; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 case "$MSGFMT" in
12409 [\\/]* | ?:[\\/]*)
12410 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12411 ;;
12412 *)
12413 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12414 for ac_dir in $PATH; do
12415 IFS="$ac_save_IFS"
12416 test -z "$ac_dir" && ac_dir=.
12417 for ac_exec_ext in '' $ac_executable_extensions; do
12418 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12419 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12420 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12421 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12422 break 2
12423 fi
12424 fi
12425 done
12426 done
12427 IFS="$ac_save_IFS"
12428 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12429 ;;
12430 esac
12431 fi
12432 MSGFMT="$ac_cv_path_MSGFMT"
12433 if test "$MSGFMT" != ":"; then
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12435 $as_echo "$MSGFMT" >&6; }
12436 else
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12438 $as_echo "no" >&6; }
12439 fi
12440
12441 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12442 set dummy gmsgfmt; ac_word=$2
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12444 $as_echo_n "checking for $ac_word... " >&6; }
12445 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12446 $as_echo_n "(cached) " >&6
12447 else
12448 case $GMSGFMT in
12449 [\\/]* | ?:[\\/]*)
12450 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12451 ;;
12452 *)
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12455 do
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462 break 2
12463 fi
12464 done
12465 done
12466 IFS=$as_save_IFS
12467
12468 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12469 ;;
12470 esac
12471 fi
12472 GMSGFMT=$ac_cv_path_GMSGFMT
12473 if test -n "$GMSGFMT"; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12475 $as_echo "$GMSGFMT" >&6; }
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12479 fi
12480
12481
12482
12483
12484 # Prepare PATH_SEPARATOR.
12485 # The user is always right.
12486 if test "${PATH_SEPARATOR+set}" != set; then
12487 echo "#! /bin/sh" >conf$$.sh
12488 echo "exit 0" >>conf$$.sh
12489 chmod +x conf$$.sh
12490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12491 PATH_SEPARATOR=';'
12492 else
12493 PATH_SEPARATOR=:
12494 fi
12495 rm -f conf$$.sh
12496 fi
12497
12498 # Find out how to test for executable files. Don't use a zero-byte file,
12499 # as systems may use methods other than mode bits to determine executability.
12500 cat >conf$$.file <<_ASEOF
12501 #! /bin/sh
12502 exit 0
12503 _ASEOF
12504 chmod +x conf$$.file
12505 if test -x conf$$.file >/dev/null 2>&1; then
12506 ac_executable_p="test -x"
12507 else
12508 ac_executable_p="test -f"
12509 fi
12510 rm -f conf$$.file
12511
12512 # Extract the first word of "xgettext", so it can be a program name with args.
12513 set dummy xgettext; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 case "$XGETTEXT" in
12520 [\\/]* | ?:[\\/]*)
12521 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12522 ;;
12523 *)
12524 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12525 for ac_dir in $PATH; do
12526 IFS="$ac_save_IFS"
12527 test -z "$ac_dir" && ac_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12530 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12531 (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
12532 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12533 break 2
12534 fi
12535 fi
12536 done
12537 done
12538 IFS="$ac_save_IFS"
12539 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12540 ;;
12541 esac
12542 fi
12543 XGETTEXT="$ac_cv_path_XGETTEXT"
12544 if test "$XGETTEXT" != ":"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12546 $as_echo "$XGETTEXT" >&6; }
12547 else
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12549 $as_echo "no" >&6; }
12550 fi
12551
12552 rm -f messages.po
12553
12554
12555 # Prepare PATH_SEPARATOR.
12556 # The user is always right.
12557 if test "${PATH_SEPARATOR+set}" != set; then
12558 echo "#! /bin/sh" >conf$$.sh
12559 echo "exit 0" >>conf$$.sh
12560 chmod +x conf$$.sh
12561 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12562 PATH_SEPARATOR=';'
12563 else
12564 PATH_SEPARATOR=:
12565 fi
12566 rm -f conf$$.sh
12567 fi
12568
12569 # Find out how to test for executable files. Don't use a zero-byte file,
12570 # as systems may use methods other than mode bits to determine executability.
12571 cat >conf$$.file <<_ASEOF
12572 #! /bin/sh
12573 exit 0
12574 _ASEOF
12575 chmod +x conf$$.file
12576 if test -x conf$$.file >/dev/null 2>&1; then
12577 ac_executable_p="test -x"
12578 else
12579 ac_executable_p="test -f"
12580 fi
12581 rm -f conf$$.file
12582
12583 # Extract the first word of "msgmerge", so it can be a program name with args.
12584 set dummy msgmerge; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586 $as_echo_n "checking for $ac_word... " >&6; }
12587 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12588 $as_echo_n "(cached) " >&6
12589 else
12590 case "$MSGMERGE" in
12591 [\\/]* | ?:[\\/]*)
12592 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12593 ;;
12594 *)
12595 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12596 for ac_dir in $PATH; do
12597 IFS="$ac_save_IFS"
12598 test -z "$ac_dir" && ac_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12601 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12602 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12603 break 2
12604 fi
12605 fi
12606 done
12607 done
12608 IFS="$ac_save_IFS"
12609 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12610 ;;
12611 esac
12612 fi
12613 MSGMERGE="$ac_cv_path_MSGMERGE"
12614 if test "$MSGMERGE" != ":"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12616 $as_echo "$MSGMERGE" >&6; }
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12620 fi
12621
12622
12623 if test "$GMSGFMT" != ":"; then
12624 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12625 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12626 : ;
12627 else
12628 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12630 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12631 GMSGFMT=":"
12632 fi
12633 fi
12634
12635 if test "$XGETTEXT" != ":"; then
12636 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12637 (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
12638 : ;
12639 else
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12641 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12642 XGETTEXT=":"
12643 fi
12644 rm -f messages.po
12645 fi
12646
12647 ac_config_commands="$ac_config_commands default-1"
12648
12649
12650
12651
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12653 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12654 # Check whether --enable-maintainer-mode was given.
12655 if test "${enable_maintainer_mode+set}" = set; then :
12656 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12657 else
12658 USE_MAINTAINER_MODE=no
12659 fi
12660
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12662 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12663 if test $USE_MAINTAINER_MODE = yes; then
12664 MAINTAINER_MODE_TRUE=
12665 MAINTAINER_MODE_FALSE='#'
12666 else
12667 MAINTAINER_MODE_TRUE='#'
12668 MAINTAINER_MODE_FALSE=
12669 fi
12670
12671 MAINT=$MAINTAINER_MODE_TRUE
12672
12673
12674 if false; then
12675 GENINSRC_NEVER_TRUE=
12676 GENINSRC_NEVER_FALSE='#'
12677 else
12678 GENINSRC_NEVER_TRUE='#'
12679 GENINSRC_NEVER_FALSE=
12680 fi
12681
12682
12683 if test -n "$EXEEXT"; then
12684
12685 $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
12686
12687 fi
12688
12689 cat >>confdefs.h <<_ACEOF
12690 #define EXECUTABLE_SUFFIX "${EXEEXT}"
12691 _ACEOF
12692
12693
12694 # host-specific stuff:
12695
12696 HDEFINES=
12697
12698 . ${srcdir}/../bfd/configure.host
12699
12700
12701 AR=${AR-ar}
12702
12703 if test -n "$ac_tool_prefix"; then
12704 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12705 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707 $as_echo_n "checking for $ac_word... " >&6; }
12708 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12709 $as_echo_n "(cached) " >&6
12710 else
12711 if test -n "$RANLIB"; then
12712 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12713 else
12714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12716 do
12717 IFS=$as_save_IFS
12718 test -z "$as_dir" && as_dir=.
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12721 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723 break 2
12724 fi
12725 done
12726 done
12727 IFS=$as_save_IFS
12728
12729 fi
12730 fi
12731 RANLIB=$ac_cv_prog_RANLIB
12732 if test -n "$RANLIB"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12734 $as_echo "$RANLIB" >&6; }
12735 else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12738 fi
12739
12740
12741 fi
12742 if test -z "$ac_cv_prog_RANLIB"; then
12743 ac_ct_RANLIB=$RANLIB
12744 # Extract the first word of "ranlib", so it can be a program name with args.
12745 set dummy ranlib; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12750 else
12751 if test -n "$ac_ct_RANLIB"; then
12752 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12753 else
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12756 do
12757 IFS=$as_save_IFS
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12761 ac_cv_prog_ac_ct_RANLIB="ranlib"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12763 break 2
12764 fi
12765 done
12766 done
12767 IFS=$as_save_IFS
12768
12769 fi
12770 fi
12771 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12772 if test -n "$ac_ct_RANLIB"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12774 $as_echo "$ac_ct_RANLIB" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 fi
12779
12780 if test "x$ac_ct_RANLIB" = x; then
12781 RANLIB=":"
12782 else
12783 case $cross_compiling:$ac_tool_warned in
12784 yes:)
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12787 ac_tool_warned=yes ;;
12788 esac
12789 RANLIB=$ac_ct_RANLIB
12790 fi
12791 else
12792 RANLIB="$ac_cv_prog_RANLIB"
12793 fi
12794
12795
12796
12797 # Put a plausible default for CC_FOR_BUILD in Makefile.
12798 if test -z "$CC_FOR_BUILD"; then
12799 if test "x$cross_compiling" = "xno"; then
12800 CC_FOR_BUILD='$(CC)'
12801 else
12802 CC_FOR_BUILD=gcc
12803 fi
12804 fi
12805
12806 # Also set EXEEXT_FOR_BUILD.
12807 if test "x$cross_compiling" = "xno"; then
12808 EXEEXT_FOR_BUILD='$(EXEEXT)'
12809 else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12811 $as_echo_n "checking for build system executable suffix... " >&6; }
12812 if test "${bfd_cv_build_exeext+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 rm -f conftest*
12816 echo 'int main () { return 0; }' > conftest.c
12817 bfd_cv_build_exeext=
12818 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12819 for file in conftest.*; do
12820 case $file in
12821 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12822 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12823 esac
12824 done
12825 rm -f conftest*
12826 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12827 fi
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12829 $as_echo "$bfd_cv_build_exeext" >&6; }
12830 EXEEXT_FOR_BUILD=""
12831 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12832 fi
12833
12834
12835 DEMANGLER_NAME=c++filt
12836 case "${host}" in
12837 *-*-go32* | *-*-msdos*)
12838 DEMANGLER_NAME=cxxfilt
12839 esac
12840
12841
12842 # The cast to long int works around a bug in the HP C Compiler
12843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12845 # This bug is HP SR number 8606223364.
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12847 $as_echo_n "checking size of long... " >&6; }
12848 if test "${ac_cv_sizeof_long+set}" = set; then :
12849 $as_echo_n "(cached) " >&6
12850 else
12851 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12852
12853 else
12854 if test "$ac_cv_type_long" = yes; then
12855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12857 { as_fn_set_status 77
12858 as_fn_error "cannot compute sizeof (long)
12859 See \`config.log' for more details." "$LINENO" 5; }; }
12860 else
12861 ac_cv_sizeof_long=0
12862 fi
12863 fi
12864
12865 fi
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12867 $as_echo "$ac_cv_sizeof_long" >&6; }
12868
12869
12870
12871 cat >>confdefs.h <<_ACEOF
12872 #define SIZEOF_LONG $ac_cv_sizeof_long
12873 _ACEOF
12874
12875
12876 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12877 if test "x$ac_cv_type_long_long" = x""yes; then :
12878
12879 cat >>confdefs.h <<_ACEOF
12880 #define HAVE_LONG_LONG 1
12881 _ACEOF
12882
12883 # The cast to long int works around a bug in the HP C Compiler
12884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12886 # This bug is HP SR number 8606223364.
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12888 $as_echo_n "checking size of long long... " >&6; }
12889 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12893
12894 else
12895 if test "$ac_cv_type_long_long" = yes; then
12896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12898 { as_fn_set_status 77
12899 as_fn_error "cannot compute sizeof (long long)
12900 See \`config.log' for more details." "$LINENO" 5; }; }
12901 else
12902 ac_cv_sizeof_long_long=0
12903 fi
12904 fi
12905
12906 fi
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12908 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12909
12910
12911
12912 cat >>confdefs.h <<_ACEOF
12913 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12914 _ACEOF
12915
12916
12917 fi
12918
12919
12920 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
12921 do :
12922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12923 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12924 eval as_val=\$$as_ac_Header
12925 if test "x$as_val" = x""yes; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928 _ACEOF
12929
12930 fi
12931
12932 done
12933
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12935 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12936 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941 #include <sys/types.h>
12942 #include <sys/wait.h>
12943 #ifndef WEXITSTATUS
12944 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12945 #endif
12946 #ifndef WIFEXITED
12947 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12948 #endif
12949
12950 int
12951 main ()
12952 {
12953 int s;
12954 wait (&s);
12955 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12956 ;
12957 return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_compile "$LINENO"; then :
12961 ac_cv_header_sys_wait_h=yes
12962 else
12963 ac_cv_header_sys_wait_h=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12966 fi
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12968 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12969 if test $ac_cv_header_sys_wait_h = yes; then
12970
12971 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12972
12973 fi
12974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
12976 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
12977 if test "${gcc_cv_header_string+set}" = set; then :
12978 $as_echo_n "(cached) " >&6
12979 else
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982 #include <string.h>
12983 #include <strings.h>
12984 int
12985 main ()
12986 {
12987
12988 ;
12989 return 0;
12990 }
12991 _ACEOF
12992 if ac_fn_c_try_compile "$LINENO"; then :
12993 gcc_cv_header_string=yes
12994 else
12995 gcc_cv_header_string=no
12996 fi
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998 fi
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13000 $as_echo "$gcc_cv_header_string" >&6; }
13001 if test $gcc_cv_header_string = yes; then
13002
13003 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13004
13005 fi
13006
13007 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13008 # for constant arguments. Useless!
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13010 $as_echo_n "checking for working alloca.h... " >&6; }
13011 if test "${ac_cv_working_alloca_h+set}" = set; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13016 #include <alloca.h>
13017 int
13018 main ()
13019 {
13020 char *p = (char *) alloca (2 * sizeof (int));
13021 if (p) return 0;
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 if ac_fn_c_try_link "$LINENO"; then :
13027 ac_cv_working_alloca_h=yes
13028 else
13029 ac_cv_working_alloca_h=no
13030 fi
13031 rm -f core conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13033 fi
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13035 $as_echo "$ac_cv_working_alloca_h" >&6; }
13036 if test $ac_cv_working_alloca_h = yes; then
13037
13038 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13039
13040 fi
13041
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13043 $as_echo_n "checking for alloca... " >&6; }
13044 if test "${ac_cv_func_alloca_works+set}" = set; then :
13045 $as_echo_n "(cached) " >&6
13046 else
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049 #ifdef __GNUC__
13050 # define alloca __builtin_alloca
13051 #else
13052 # ifdef _MSC_VER
13053 # include <malloc.h>
13054 # define alloca _alloca
13055 # else
13056 # ifdef HAVE_ALLOCA_H
13057 # include <alloca.h>
13058 # else
13059 # ifdef _AIX
13060 #pragma alloca
13061 # else
13062 # ifndef alloca /* predefined by HP cc +Olibcalls */
13063 char *alloca ();
13064 # endif
13065 # endif
13066 # endif
13067 # endif
13068 #endif
13069
13070 int
13071 main ()
13072 {
13073 char *p = (char *) alloca (1);
13074 if (p) return 0;
13075 ;
13076 return 0;
13077 }
13078 _ACEOF
13079 if ac_fn_c_try_link "$LINENO"; then :
13080 ac_cv_func_alloca_works=yes
13081 else
13082 ac_cv_func_alloca_works=no
13083 fi
13084 rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13088 $as_echo "$ac_cv_func_alloca_works" >&6; }
13089
13090 if test $ac_cv_func_alloca_works = yes; then
13091
13092 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13093
13094 else
13095 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13096 # that cause trouble. Some versions do not even contain alloca or
13097 # contain a buggy version. If you still want to use their alloca,
13098 # use ar to extract alloca.o from them instead of compiling alloca.c.
13099
13100 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13101
13102 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13103
13104
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13106 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13107 if test "${ac_cv_os_cray+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 #if defined CRAY && ! defined CRAY2
13113 webecray
13114 #else
13115 wenotbecray
13116 #endif
13117
13118 _ACEOF
13119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13120 $EGREP "webecray" >/dev/null 2>&1; then :
13121 ac_cv_os_cray=yes
13122 else
13123 ac_cv_os_cray=no
13124 fi
13125 rm -f conftest*
13126
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13129 $as_echo "$ac_cv_os_cray" >&6; }
13130 if test $ac_cv_os_cray = yes; then
13131 for ac_func in _getb67 GETB67 getb67; do
13132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13133 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13134 eval as_val=\$$as_ac_var
13135 if test "x$as_val" = x""yes; then :
13136
13137 cat >>confdefs.h <<_ACEOF
13138 #define CRAY_STACKSEG_END $ac_func
13139 _ACEOF
13140
13141 break
13142 fi
13143
13144 done
13145 fi
13146
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13148 $as_echo_n "checking stack direction for C alloca... " >&6; }
13149 if test "${ac_cv_c_stack_direction+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 if test "$cross_compiling" = yes; then :
13153 ac_cv_c_stack_direction=0
13154 else
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 $ac_includes_default
13158 int
13159 find_stack_direction ()
13160 {
13161 static char *addr = 0;
13162 auto char dummy;
13163 if (addr == 0)
13164 {
13165 addr = &dummy;
13166 return find_stack_direction ();
13167 }
13168 else
13169 return (&dummy > addr) ? 1 : -1;
13170 }
13171
13172 int
13173 main ()
13174 {
13175 return find_stack_direction () < 0;
13176 }
13177 _ACEOF
13178 if ac_fn_c_try_run "$LINENO"; then :
13179 ac_cv_c_stack_direction=1
13180 else
13181 ac_cv_c_stack_direction=-1
13182 fi
13183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13184 conftest.$ac_objext conftest.beam conftest.$ac_ext
13185 fi
13186
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13189 $as_echo "$ac_cv_c_stack_direction" >&6; }
13190 cat >>confdefs.h <<_ACEOF
13191 #define STACK_DIRECTION $ac_cv_c_stack_direction
13192 _ACEOF
13193
13194
13195 fi
13196
13197 for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
13198 do :
13199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13201 eval as_val=\$$as_ac_var
13202 if test "x$as_val" = x""yes; then :
13203 cat >>confdefs.h <<_ACEOF
13204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13205 _ACEOF
13206
13207 fi
13208 done
13209
13210 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13211 if test "x$ac_cv_func_mkstemp" = x""yes; then :
13212
13213 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
13214
13215 fi
13216
13217 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13218 if test "x$ac_cv_func_mkdtemp" = x""yes; then :
13219
13220 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13221
13222 fi
13223
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
13225 $as_echo_n "checking for mbstate_t... " >&6; }
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228 #include <wchar.h>
13229 int
13230 main ()
13231 {
13232 mbstate_t teststate;
13233 ;
13234 return 0;
13235 }
13236 _ACEOF
13237 if ac_fn_c_try_compile "$LINENO"; then :
13238 have_mbstate_t=yes
13239 else
13240 have_mbstate_t=no
13241 fi
13242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
13244 $as_echo "$have_mbstate_t" >&6; }
13245 if test x"$have_mbstate_t" = xyes; then
13246
13247 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
13248
13249 fi
13250
13251 # Some systems have frexp only in -lm, not in -lc.
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
13253 $as_echo_n "checking for library containing frexp... " >&6; }
13254 if test "${ac_cv_search_frexp+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 ac_func_search_save_LIBS=$LIBS
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260
13261 /* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
13263 builtin and then its argument prototype would still apply. */
13264 #ifdef __cplusplus
13265 extern "C"
13266 #endif
13267 char frexp ();
13268 int
13269 main ()
13270 {
13271 return frexp ();
13272 ;
13273 return 0;
13274 }
13275 _ACEOF
13276 for ac_lib in '' m; do
13277 if test -z "$ac_lib"; then
13278 ac_res="none required"
13279 else
13280 ac_res=-l$ac_lib
13281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13282 fi
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 ac_cv_search_frexp=$ac_res
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext
13288 if test "${ac_cv_search_frexp+set}" = set; then :
13289 break
13290 fi
13291 done
13292 if test "${ac_cv_search_frexp+set}" = set; then :
13293
13294 else
13295 ac_cv_search_frexp=no
13296 fi
13297 rm conftest.$ac_ext
13298 LIBS=$ac_func_search_save_LIBS
13299 fi
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
13301 $as_echo "$ac_cv_search_frexp" >&6; }
13302 ac_res=$ac_cv_search_frexp
13303 if test "$ac_res" != no; then :
13304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13305
13306 fi
13307
13308
13309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13311 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13312 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13313 $as_echo_n "(cached) " >&6
13314 else
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 #include <locale.h>
13318 int
13319 main ()
13320 {
13321 return LC_MESSAGES
13322 ;
13323 return 0;
13324 }
13325 _ACEOF
13326 if ac_fn_c_try_link "$LINENO"; then :
13327 am_cv_val_LC_MESSAGES=yes
13328 else
13329 am_cv_val_LC_MESSAGES=no
13330 fi
13331 rm -f core conftest.err conftest.$ac_objext \
13332 conftest$ac_exeext conftest.$ac_ext
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13335 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13336 if test $am_cv_val_LC_MESSAGES = yes; then
13337
13338 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13339
13340 fi
13341
13342
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
13344 $as_echo_n "checking for time_t in time.h... " >&6; }
13345 if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13350 #include <time.h>
13351 int
13352 main ()
13353 {
13354 time_t i;
13355 ;
13356 return 0;
13357 }
13358 _ACEOF
13359 if ac_fn_c_try_compile "$LINENO"; then :
13360 bu_cv_decl_time_t_time_h=yes
13361 else
13362 bu_cv_decl_time_t_time_h=no
13363 fi
13364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13365 fi
13366
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13368 $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
13369 if test $bu_cv_decl_time_t_time_h = yes; then
13370
13371 $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
13372
13373 fi
13374
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13376 $as_echo_n "checking for time_t in sys/types.h... " >&6; }
13377 if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
13379 else
13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include <sys/types.h>
13383 int
13384 main ()
13385 {
13386 time_t i;
13387 ;
13388 return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_compile "$LINENO"; then :
13392 bu_cv_decl_time_t_types_h=yes
13393 else
13394 bu_cv_decl_time_t_types_h=no
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397 fi
13398
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13400 $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
13401 if test $bu_cv_decl_time_t_types_h = yes; then
13402
13403 $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
13404
13405 fi
13406
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13408 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13409 if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
13410 $as_echo_n "(cached) " >&6
13411 else
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <unistd.h>
13415 int
13416 main ()
13417 {
13418 extern int getopt (int, char *const*, const char *);
13419 ;
13420 return 0;
13421 }
13422 _ACEOF
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 bu_cv_decl_getopt_unistd_h=yes
13425 else
13426 bu_cv_decl_getopt_unistd_h=no
13427 fi
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 fi
13430
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13432 $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
13433 if test $bu_cv_decl_getopt_unistd_h = yes; then
13434
13435 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13436
13437 fi
13438
13439 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13440 # by default.
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13442 $as_echo_n "checking for utime.h... " >&6; }
13443 if test "${bu_cv_header_utime_h+set}" = set; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 #include <sys/types.h>
13449 #ifdef HAVE_TIME_H
13450 #include <time.h>
13451 #endif
13452 #include <utime.h>
13453 int
13454 main ()
13455 {
13456 struct utimbuf s;
13457 ;
13458 return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_compile "$LINENO"; then :
13462 bu_cv_header_utime_h=yes
13463 else
13464 bu_cv_header_utime_h=no
13465 fi
13466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467 fi
13468
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13470 $as_echo "$bu_cv_header_utime_h" >&6; }
13471 if test $bu_cv_header_utime_h = yes; then
13472
13473 $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
13474
13475 fi
13476
13477 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13478 if test "x$ac_cv_have_decl_environ" = x""yes; then :
13479 ac_have_decl=1
13480 else
13481 ac_have_decl=0
13482 fi
13483
13484 cat >>confdefs.h <<_ACEOF
13485 #define HAVE_DECL_ENVIRON $ac_have_decl
13486 _ACEOF
13487 ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
13488 if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
13489 ac_have_decl=1
13490 else
13491 ac_have_decl=0
13492 fi
13493
13494 cat >>confdefs.h <<_ACEOF
13495 #define HAVE_DECL_FPRINTF $ac_have_decl
13496 _ACEOF
13497 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13498 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
13499 ac_have_decl=1
13500 else
13501 ac_have_decl=0
13502 fi
13503
13504 cat >>confdefs.h <<_ACEOF
13505 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
13506 _ACEOF
13507 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13508 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13509 ac_have_decl=1
13510 else
13511 ac_have_decl=0
13512 fi
13513
13514 cat >>confdefs.h <<_ACEOF
13515 #define HAVE_DECL_GETENV $ac_have_decl
13516 _ACEOF
13517 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13518 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
13519 ac_have_decl=1
13520 else
13521 ac_have_decl=0
13522 fi
13523
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_DECL_SBRK $ac_have_decl
13526 _ACEOF
13527 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13528 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13529 ac_have_decl=1
13530 else
13531 ac_have_decl=0
13532 fi
13533
13534 cat >>confdefs.h <<_ACEOF
13535 #define HAVE_DECL_SNPRINTF $ac_have_decl
13536 _ACEOF
13537 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13538 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13539 ac_have_decl=1
13540 else
13541 ac_have_decl=0
13542 fi
13543
13544 cat >>confdefs.h <<_ACEOF
13545 #define HAVE_DECL_STPCPY $ac_have_decl
13546 _ACEOF
13547 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13548 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
13549 ac_have_decl=1
13550 else
13551 ac_have_decl=0
13552 fi
13553
13554 cat >>confdefs.h <<_ACEOF
13555 #define HAVE_DECL_STRNLEN $ac_have_decl
13556 _ACEOF
13557 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13558 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13559 ac_have_decl=1
13560 else
13561 ac_have_decl=0
13562 fi
13563
13564 cat >>confdefs.h <<_ACEOF
13565 #define HAVE_DECL_STRSTR $ac_have_decl
13566 _ACEOF
13567 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13568 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13569 ac_have_decl=1
13570 else
13571 ac_have_decl=0
13572 fi
13573
13574 cat >>confdefs.h <<_ACEOF
13575 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13576 _ACEOF
13577
13578
13579 # Link in zlib if we can. This allows us to read compressed debug
13580 # sections. This is used only by readelf.c (objdump uses bfd for
13581 # reading compressed sections).
13582
13583 # Use the system's zlib library.
13584 zlibdir="-L\$(top_builddir)/../zlib"
13585 zlibinc="-I\$(top_srcdir)/../zlib"
13586
13587 # Check whether --with-system-zlib was given.
13588 if test "${with_system_zlib+set}" = set; then :
13589 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13590 zlibdir=
13591 zlibinc=
13592 fi
13593
13594 fi
13595
13596
13597
13598
13599
13600
13601 case "${host}" in
13602 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13603
13604 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13605 ;;
13606 esac
13607
13608 # target-specific stuff:
13609
13610 # Canonicalize the secondary target names.
13611 if test -n "$enable_targets"; then
13612 for targ in `echo $enable_targets | sed 's/,/ /g'`
13613 do
13614 result=`$ac_config_sub $targ 2>/dev/null`
13615 if test -n "$result"; then
13616 canon_targets="$canon_targets $result"
13617 else
13618 # Allow targets that config.sub doesn't recognize, like "all".
13619 canon_targets="$canon_targets $targ"
13620 fi
13621 done
13622 fi
13623
13624 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13625 if test "x$ac_cv_header_iconv_h" = x""yes; then :
13626
13627 fi
13628
13629
13630
13631 if test "X$prefix" = "XNONE"; then
13632 acl_final_prefix="$ac_default_prefix"
13633 else
13634 acl_final_prefix="$prefix"
13635 fi
13636 if test "X$exec_prefix" = "XNONE"; then
13637 acl_final_exec_prefix='${prefix}'
13638 else
13639 acl_final_exec_prefix="$exec_prefix"
13640 fi
13641 acl_save_prefix="$prefix"
13642 prefix="$acl_final_prefix"
13643 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13644 prefix="$acl_save_prefix"
13645
13646
13647 # Check whether --with-gnu-ld was given.
13648 if test "${with_gnu_ld+set}" = set; then :
13649 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13650 else
13651 with_gnu_ld=no
13652 fi
13653
13654 # Prepare PATH_SEPARATOR.
13655 # The user is always right.
13656 if test "${PATH_SEPARATOR+set}" != set; then
13657 echo "#! /bin/sh" >conf$$.sh
13658 echo "exit 0" >>conf$$.sh
13659 chmod +x conf$$.sh
13660 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13661 PATH_SEPARATOR=';'
13662 else
13663 PATH_SEPARATOR=:
13664 fi
13665 rm -f conf$$.sh
13666 fi
13667 ac_prog=ld
13668 if test "$GCC" = yes; then
13669 # Check if gcc -print-prog-name=ld gives a path.
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13671 $as_echo_n "checking for ld used by GCC... " >&6; }
13672 case $host in
13673 *-*-mingw*)
13674 # gcc leaves a trailing carriage return which upsets mingw
13675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13676 *)
13677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13678 esac
13679 case $ac_prog in
13680 # Accept absolute paths.
13681 [\\/]* | [A-Za-z]:[\\/]*)
13682 re_direlt='/[^/][^/]*/\.\./'
13683 # Canonicalize the path of ld
13684 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13685 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13686 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13687 done
13688 test -z "$LD" && LD="$ac_prog"
13689 ;;
13690 "")
13691 # If it fails, then pretend we aren't using GCC.
13692 ac_prog=ld
13693 ;;
13694 *)
13695 # If it is relative, then search for the first ld in PATH.
13696 with_gnu_ld=unknown
13697 ;;
13698 esac
13699 elif test "$with_gnu_ld" = yes; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13701 $as_echo_n "checking for GNU ld... " >&6; }
13702 else
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13704 $as_echo_n "checking for non-GNU ld... " >&6; }
13705 fi
13706 if test "${acl_cv_path_LD+set}" = set; then :
13707 $as_echo_n "(cached) " >&6
13708 else
13709 if test -z "$LD"; then
13710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13711 for ac_dir in $PATH; do
13712 test -z "$ac_dir" && ac_dir=.
13713 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13714 acl_cv_path_LD="$ac_dir/$ac_prog"
13715 # Check to see if the program is GNU ld. I'd rather use --version,
13716 # but apparently some GNU ld's only accept -v.
13717 # Break only if it was the GNU/non-GNU ld that we prefer.
13718 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13719 test "$with_gnu_ld" != no && break
13720 else
13721 test "$with_gnu_ld" != yes && break
13722 fi
13723 fi
13724 done
13725 IFS="$ac_save_ifs"
13726 else
13727 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13728 fi
13729 fi
13730
13731 LD="$acl_cv_path_LD"
13732 if test -n "$LD"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13734 $as_echo "$LD" >&6; }
13735 else
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13738 fi
13739 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13742 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13746 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13747 acl_cv_prog_gnu_ld=yes
13748 else
13749 acl_cv_prog_gnu_ld=no
13750 fi
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13753 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13754 with_gnu_ld=$acl_cv_prog_gnu_ld
13755
13756
13757
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13759 $as_echo_n "checking for shared library run path origin... " >&6; }
13760 if test "${acl_cv_rpath+set}" = set; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763
13764 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13765 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13766 . ./conftest.sh
13767 rm -f ./conftest.sh
13768 acl_cv_rpath=done
13769
13770 fi
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13772 $as_echo "$acl_cv_rpath" >&6; }
13773 wl="$acl_cv_wl"
13774 libext="$acl_cv_libext"
13775 shlibext="$acl_cv_shlibext"
13776 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13777 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13778 hardcode_direct="$acl_cv_hardcode_direct"
13779 hardcode_minus_L="$acl_cv_hardcode_minus_L"
13780 # Check whether --enable-rpath was given.
13781 if test "${enable_rpath+set}" = set; then :
13782 enableval=$enable_rpath; :
13783 else
13784 enable_rpath=yes
13785 fi
13786
13787
13788
13789
13790
13791
13792
13793
13794 use_additional=yes
13795
13796 acl_save_prefix="$prefix"
13797 prefix="$acl_final_prefix"
13798 acl_save_exec_prefix="$exec_prefix"
13799 exec_prefix="$acl_final_exec_prefix"
13800
13801 eval additional_includedir=\"$includedir\"
13802 eval additional_libdir=\"$libdir\"
13803
13804 exec_prefix="$acl_save_exec_prefix"
13805 prefix="$acl_save_prefix"
13806
13807
13808 # Check whether --with-libiconv-prefix was given.
13809 if test "${with_libiconv_prefix+set}" = set; then :
13810 withval=$with_libiconv_prefix;
13811 if test "X$withval" = "Xno"; then
13812 use_additional=no
13813 else
13814 if test "X$withval" = "X"; then
13815
13816 acl_save_prefix="$prefix"
13817 prefix="$acl_final_prefix"
13818 acl_save_exec_prefix="$exec_prefix"
13819 exec_prefix="$acl_final_exec_prefix"
13820
13821 eval additional_includedir=\"$includedir\"
13822 eval additional_libdir=\"$libdir\"
13823
13824 exec_prefix="$acl_save_exec_prefix"
13825 prefix="$acl_save_prefix"
13826
13827 else
13828 additional_includedir="$withval/include"
13829 additional_libdir="$withval/lib"
13830 fi
13831 fi
13832
13833 fi
13834
13835 LIBICONV=
13836 LTLIBICONV=
13837 INCICONV=
13838 rpathdirs=
13839 ltrpathdirs=
13840 names_already_handled=
13841 names_next_round='iconv '
13842 while test -n "$names_next_round"; do
13843 names_this_round="$names_next_round"
13844 names_next_round=
13845 for name in $names_this_round; do
13846 already_handled=
13847 for n in $names_already_handled; do
13848 if test "$n" = "$name"; then
13849 already_handled=yes
13850 break
13851 fi
13852 done
13853 if test -z "$already_handled"; then
13854 names_already_handled="$names_already_handled $name"
13855 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13856 eval value=\"\$HAVE_LIB$uppername\"
13857 if test -n "$value"; then
13858 if test "$value" = yes; then
13859 eval value=\"\$LIB$uppername\"
13860 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13861 eval value=\"\$LTLIB$uppername\"
13862 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13863 else
13864 :
13865 fi
13866 else
13867 found_dir=
13868 found_la=
13869 found_so=
13870 found_a=
13871 if test $use_additional = yes; then
13872 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13873 found_dir="$additional_libdir"
13874 found_so="$additional_libdir/lib$name.$shlibext"
13875 if test -f "$additional_libdir/lib$name.la"; then
13876 found_la="$additional_libdir/lib$name.la"
13877 fi
13878 else
13879 if test -f "$additional_libdir/lib$name.$libext"; then
13880 found_dir="$additional_libdir"
13881 found_a="$additional_libdir/lib$name.$libext"
13882 if test -f "$additional_libdir/lib$name.la"; then
13883 found_la="$additional_libdir/lib$name.la"
13884 fi
13885 fi
13886 fi
13887 fi
13888 if test "X$found_dir" = "X"; then
13889 for x in $LDFLAGS $LTLIBICONV; do
13890
13891 acl_save_prefix="$prefix"
13892 prefix="$acl_final_prefix"
13893 acl_save_exec_prefix="$exec_prefix"
13894 exec_prefix="$acl_final_exec_prefix"
13895 eval x=\"$x\"
13896 exec_prefix="$acl_save_exec_prefix"
13897 prefix="$acl_save_prefix"
13898
13899 case "$x" in
13900 -L*)
13901 dir=`echo "X$x" | sed -e 's/^X-L//'`
13902 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13903 found_dir="$dir"
13904 found_so="$dir/lib$name.$shlibext"
13905 if test -f "$dir/lib$name.la"; then
13906 found_la="$dir/lib$name.la"
13907 fi
13908 else
13909 if test -f "$dir/lib$name.$libext"; then
13910 found_dir="$dir"
13911 found_a="$dir/lib$name.$libext"
13912 if test -f "$dir/lib$name.la"; then
13913 found_la="$dir/lib$name.la"
13914 fi
13915 fi
13916 fi
13917 ;;
13918 esac
13919 if test "X$found_dir" != "X"; then
13920 break
13921 fi
13922 done
13923 fi
13924 if test "X$found_dir" != "X"; then
13925 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13926 if test "X$found_so" != "X"; then
13927 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13929 else
13930 haveit=
13931 for x in $ltrpathdirs; do
13932 if test "X$x" = "X$found_dir"; then
13933 haveit=yes
13934 break
13935 fi
13936 done
13937 if test -z "$haveit"; then
13938 ltrpathdirs="$ltrpathdirs $found_dir"
13939 fi
13940 if test "$hardcode_direct" = yes; then
13941 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13942 else
13943 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13944 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13945 haveit=
13946 for x in $rpathdirs; do
13947 if test "X$x" = "X$found_dir"; then
13948 haveit=yes
13949 break
13950 fi
13951 done
13952 if test -z "$haveit"; then
13953 rpathdirs="$rpathdirs $found_dir"
13954 fi
13955 else
13956 haveit=
13957 for x in $LDFLAGS $LIBICONV; do
13958
13959 acl_save_prefix="$prefix"
13960 prefix="$acl_final_prefix"
13961 acl_save_exec_prefix="$exec_prefix"
13962 exec_prefix="$acl_final_exec_prefix"
13963 eval x=\"$x\"
13964 exec_prefix="$acl_save_exec_prefix"
13965 prefix="$acl_save_prefix"
13966
13967 if test "X$x" = "X-L$found_dir"; then
13968 haveit=yes
13969 break
13970 fi
13971 done
13972 if test -z "$haveit"; then
13973 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13974 fi
13975 if test "$hardcode_minus_L" != no; then
13976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13977 else
13978 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13979 fi
13980 fi
13981 fi
13982 fi
13983 else
13984 if test "X$found_a" != "X"; then
13985 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13986 else
13987 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13988 fi
13989 fi
13990 additional_includedir=
13991 case "$found_dir" in
13992 */lib | */lib/)
13993 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13994 additional_includedir="$basedir/include"
13995 ;;
13996 esac
13997 if test "X$additional_includedir" != "X"; then
13998 if test "X$additional_includedir" != "X/usr/include"; then
13999 haveit=
14000 if test "X$additional_includedir" = "X/usr/local/include"; then
14001 if test -n "$GCC"; then
14002 case $host_os in
14003 linux*) haveit=yes;;
14004 esac
14005 fi
14006 fi
14007 if test -z "$haveit"; then
14008 for x in $CPPFLAGS $INCICONV; do
14009
14010 acl_save_prefix="$prefix"
14011 prefix="$acl_final_prefix"
14012 acl_save_exec_prefix="$exec_prefix"
14013 exec_prefix="$acl_final_exec_prefix"
14014 eval x=\"$x\"
14015 exec_prefix="$acl_save_exec_prefix"
14016 prefix="$acl_save_prefix"
14017
14018 if test "X$x" = "X-I$additional_includedir"; then
14019 haveit=yes
14020 break
14021 fi
14022 done
14023 if test -z "$haveit"; then
14024 if test -d "$additional_includedir"; then
14025 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14026 fi
14027 fi
14028 fi
14029 fi
14030 fi
14031 if test -n "$found_la"; then
14032 save_libdir="$libdir"
14033 case "$found_la" in
14034 */* | *\\*) . "$found_la" ;;
14035 *) . "./$found_la" ;;
14036 esac
14037 libdir="$save_libdir"
14038 for dep in $dependency_libs; do
14039 case "$dep" in
14040 -L*)
14041 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14042 if test "X$additional_libdir" != "X/usr/lib"; then
14043 haveit=
14044 if test "X$additional_libdir" = "X/usr/local/lib"; then
14045 if test -n "$GCC"; then
14046 case $host_os in
14047 linux*) haveit=yes;;
14048 esac
14049 fi
14050 fi
14051 if test -z "$haveit"; then
14052 haveit=
14053 for x in $LDFLAGS $LIBICONV; do
14054
14055 acl_save_prefix="$prefix"
14056 prefix="$acl_final_prefix"
14057 acl_save_exec_prefix="$exec_prefix"
14058 exec_prefix="$acl_final_exec_prefix"
14059 eval x=\"$x\"
14060 exec_prefix="$acl_save_exec_prefix"
14061 prefix="$acl_save_prefix"
14062
14063 if test "X$x" = "X-L$additional_libdir"; then
14064 haveit=yes
14065 break
14066 fi
14067 done
14068 if test -z "$haveit"; then
14069 if test -d "$additional_libdir"; then
14070 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14071 fi
14072 fi
14073 haveit=
14074 for x in $LDFLAGS $LTLIBICONV; do
14075
14076 acl_save_prefix="$prefix"
14077 prefix="$acl_final_prefix"
14078 acl_save_exec_prefix="$exec_prefix"
14079 exec_prefix="$acl_final_exec_prefix"
14080 eval x=\"$x\"
14081 exec_prefix="$acl_save_exec_prefix"
14082 prefix="$acl_save_prefix"
14083
14084 if test "X$x" = "X-L$additional_libdir"; then
14085 haveit=yes
14086 break
14087 fi
14088 done
14089 if test -z "$haveit"; then
14090 if test -d "$additional_libdir"; then
14091 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14092 fi
14093 fi
14094 fi
14095 fi
14096 ;;
14097 -R*)
14098 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14099 if test "$enable_rpath" != no; then
14100 haveit=
14101 for x in $rpathdirs; do
14102 if test "X$x" = "X$dir"; then
14103 haveit=yes
14104 break
14105 fi
14106 done
14107 if test -z "$haveit"; then
14108 rpathdirs="$rpathdirs $dir"
14109 fi
14110 haveit=
14111 for x in $ltrpathdirs; do
14112 if test "X$x" = "X$dir"; then
14113 haveit=yes
14114 break
14115 fi
14116 done
14117 if test -z "$haveit"; then
14118 ltrpathdirs="$ltrpathdirs $dir"
14119 fi
14120 fi
14121 ;;
14122 -l*)
14123 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14124 ;;
14125 *.la)
14126 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14127 ;;
14128 *)
14129 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14130 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14131 ;;
14132 esac
14133 done
14134 fi
14135 else
14136 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14138 fi
14139 fi
14140 fi
14141 done
14142 done
14143 if test "X$rpathdirs" != "X"; then
14144 if test -n "$hardcode_libdir_separator"; then
14145 alldirs=
14146 for found_dir in $rpathdirs; do
14147 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14148 done
14149 acl_save_libdir="$libdir"
14150 libdir="$alldirs"
14151 eval flag=\"$hardcode_libdir_flag_spec\"
14152 libdir="$acl_save_libdir"
14153 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14154 else
14155 for found_dir in $rpathdirs; do
14156 acl_save_libdir="$libdir"
14157 libdir="$found_dir"
14158 eval flag=\"$hardcode_libdir_flag_spec\"
14159 libdir="$acl_save_libdir"
14160 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14161 done
14162 fi
14163 fi
14164 if test "X$ltrpathdirs" != "X"; then
14165 for found_dir in $ltrpathdirs; do
14166 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14167 done
14168 fi
14169
14170
14171
14172
14173
14174
14175
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14177 $as_echo_n "checking for iconv... " >&6; }
14178 if test "${am_cv_func_iconv+set}" = set; then :
14179 $as_echo_n "(cached) " >&6
14180 else
14181
14182 am_cv_func_iconv="no, consider installing GNU libiconv"
14183 am_cv_lib_iconv=no
14184 am_save_CPPFLAGS="$CPPFLAGS"
14185 CPPFLAGS="$CPPFLAGS $INCICONV"
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 #include <stdlib.h>
14189 #include <iconv.h>
14190 int
14191 main ()
14192 {
14193 iconv_t cd = iconv_open("","");
14194 iconv(cd,NULL,NULL,NULL,NULL);
14195 iconv_close(cd);
14196 ;
14197 return 0;
14198 }
14199 _ACEOF
14200 if ac_fn_c_try_link "$LINENO"; then :
14201 am_cv_func_iconv=yes
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14205 CPPFLAGS="$am_save_CPPFLAGS"
14206
14207 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
14208 for _libs in .libs _libs; do
14209 am_save_CPPFLAGS="$CPPFLAGS"
14210 am_save_LIBS="$LIBS"
14211 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
14212 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 #include <stdlib.h>
14216 #include <iconv.h>
14217 int
14218 main ()
14219 {
14220 iconv_t cd = iconv_open("","");
14221 iconv(cd,NULL,NULL,NULL,NULL);
14222 iconv_close(cd);
14223 ;
14224 return 0;
14225 }
14226 _ACEOF
14227 if ac_fn_c_try_link "$LINENO"; then :
14228 INCICONV="-I../libiconv/include"
14229 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
14230 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
14231 am_cv_lib_iconv=yes
14232 am_cv_func_iconv=yes
14233 fi
14234 rm -f core conftest.err conftest.$ac_objext \
14235 conftest$ac_exeext conftest.$ac_ext
14236 CPPFLAGS="$am_save_CPPFLAGS"
14237 LIBS="$am_save_LIBS"
14238 if test "$am_cv_func_iconv" = "yes"; then
14239 break
14240 fi
14241 done
14242 fi
14243
14244 if test "$am_cv_func_iconv" != yes; then
14245 am_save_CPPFLAGS="$CPPFLAGS"
14246 am_save_LIBS="$LIBS"
14247 CPPFLAGS="$LIBS $INCICONV"
14248 LIBS="$LIBS $LIBICONV"
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251 #include <stdlib.h>
14252 #include <iconv.h>
14253 int
14254 main ()
14255 {
14256 iconv_t cd = iconv_open("","");
14257 iconv(cd,NULL,NULL,NULL,NULL);
14258 iconv_close(cd);
14259 ;
14260 return 0;
14261 }
14262 _ACEOF
14263 if ac_fn_c_try_link "$LINENO"; then :
14264 am_cv_lib_iconv=yes
14265 am_cv_func_iconv=yes
14266 fi
14267 rm -f core conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext conftest.$ac_ext
14269 CPPFLAGS="$am_save_CPPFLAGS"
14270 LIBS="$am_save_LIBS"
14271 fi
14272
14273 fi
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14275 $as_echo "$am_cv_func_iconv" >&6; }
14276 if test "$am_cv_func_iconv" = yes; then
14277
14278 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14279
14280 fi
14281 if test "$am_cv_lib_iconv" = yes; then
14282
14283 for element in $INCICONV; do
14284 haveit=
14285 for x in $CPPFLAGS; do
14286
14287 acl_save_prefix="$prefix"
14288 prefix="$acl_final_prefix"
14289 acl_save_exec_prefix="$exec_prefix"
14290 exec_prefix="$acl_final_exec_prefix"
14291 eval x=\"$x\"
14292 exec_prefix="$acl_save_exec_prefix"
14293 prefix="$acl_save_prefix"
14294
14295 if test "X$x" = "X$element"; then
14296 haveit=yes
14297 break
14298 fi
14299 done
14300 if test -z "$haveit"; then
14301 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14302 fi
14303 done
14304
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14306 $as_echo_n "checking how to link with libiconv... " >&6; }
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14308 $as_echo "$LIBICONV" >&6; }
14309 else
14310 LIBICONV=
14311 LTLIBICONV=
14312 fi
14313
14314
14315
14316 if test "$am_cv_func_iconv" = yes; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14318 $as_echo_n "checking for iconv declaration... " >&6; }
14319 if test "${am_cv_proto_iconv+set}" = set; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322
14323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14325
14326 #include <stdlib.h>
14327 #include <iconv.h>
14328 extern
14329 #ifdef __cplusplus
14330 "C"
14331 #endif
14332 #if defined(__STDC__) || defined(__cplusplus)
14333 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14334 #else
14335 size_t iconv();
14336 #endif
14337
14338 int
14339 main ()
14340 {
14341
14342 ;
14343 return 0;
14344 }
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347 am_cv_proto_iconv_arg1=""
14348 else
14349 am_cv_proto_iconv_arg1="const"
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 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);"
14353 fi
14354
14355 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
14357 }$am_cv_proto_iconv" >&5
14358 $as_echo "${ac_t:-
14359 }$am_cv_proto_iconv" >&6; }
14360
14361 cat >>confdefs.h <<_ACEOF
14362 #define ICONV_CONST $am_cv_proto_iconv_arg1
14363 _ACEOF
14364
14365 fi
14366
14367
14368 all_targets=false
14369 BUILD_NLMCONV=
14370 NLMCONV_DEFS=
14371 BUILD_SRCONV=
14372 BUILD_DLLTOOL=
14373 DLLTOOL_DEFS=
14374 DLLTOOL_DEFAULT=
14375 BUILD_WINDRES=
14376 BUILD_WINDMC=
14377 BUILD_DLLWRAP=
14378 BUILD_MISC=
14379 BUILD_INSTALL_MISC=
14380 OBJDUMP_DEFS=
14381 OBJDUMP_PRIVATE_VECTORS=
14382 OBJDUMP_PRIVATE_OFILES=
14383 od_vectors=
14384
14385 for targ in $target $canon_targets
14386 do
14387 if test "x$targ" = "xall"; then
14388 all_targets=true
14389 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14390 BUILD_SRCONV='$(SRCONV_PROG)'
14391 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
14392 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14393 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14394 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14395 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14396 if test -z "$DLLTOOL_DEFAULT"; then
14397 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14398 fi
14399 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14400 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14401 od_vectors="$od_vectors objdump_private_desc_xcoff"
14402 else
14403 case $targ in
14404 i[3-7]86*-*-netware*)
14405 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14406 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14407 ;;
14408 alpha*-*-netware*)
14409 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14410 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14411 ;;
14412 powerpc*-*-netware*)
14413 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14414 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14415 ;;
14416 sparc*-*-netware*)
14417 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14418 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14419 ;;
14420 esac
14421
14422 case $targ in
14423 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14424 esac
14425
14426 case $targ in
14427 arm-epoc-pe*)
14428 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14429 if test -z "$DLLTOOL_DEFAULT"; then
14430 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14431 fi
14432 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14433 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14434 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14435 ;;
14436 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
14437 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14438 if test -z "$DLLTOOL_DEFAULT"; then
14439 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14440 fi
14441 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14442 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14443 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14444 ;;
14445 arm-*-pe*)
14446 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14447 if test -z "$DLLTOOL_DEFAULT"; then
14448 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14449 fi
14450 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14451 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14452 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14453 ;;
14454 x86_64-*-mingw* | x86_64-*-cygwin*)
14455 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14456 if test -z "$DLLTOOL_DEFAULT"; then
14457 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14458 fi
14459 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14460 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14461 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14462 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14463 ;;
14464 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
14465 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14466 if test -z "$DLLTOOL_DEFAULT"; then
14467 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14468 fi
14469 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14470 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14471 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14472 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14473 ;;
14474 i[3-7]86-*-interix)
14475 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
14476 if test -z "$DLLTOOL_DEFAULT"; then
14477 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14478 fi
14479 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14480 ;;
14481 powerpc*-aix5.[01])
14482 ;;
14483 powerpc*-aix[5-9].*)
14484 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14485 ;;
14486 powerpc*-*-pe* | powerpc*-*-cygwin*)
14487 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14488 if test -z "$DLLTOOL_DEFAULT"; then
14489 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14490 fi
14491 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14492 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14493 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14494 ;;
14495 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
14496 case "$BUILD_INSTALL_MISC" in
14497 *embedspu*) ;;
14498 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14499 esac
14500 ;;
14501 sh*-*-pe)
14502 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14503 if test -z "$DLLTOOL_DEFAULT"; then
14504 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14505 fi
14506 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14507 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14508 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14509 ;;
14510 spu-*-*)
14511 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
14512 ;;
14513 mips*-*-pe)
14514 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14515 if test -z "$DLLTOOL_DEFAULT"; then
14516 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14517 fi
14518 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14519 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14520 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14521 ;;
14522 mcore-*-pe)
14523 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14524 if test -z "$DLLTOOL_DEFAULT"; then
14525 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14526 fi
14527 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14528 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14529 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14530 ;;
14531 mcore-*-elf)
14532 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14533 if test -z "$DLLTOOL_DEFAULT"; then
14534 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14535 fi
14536 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
14537 ;;
14538 mep-*)
14539 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14540 ;;
14541 esac
14542
14543 # Add objdump private vectors.
14544 case $targ in
14545 avr-*-*)
14546 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14547 ;;
14548 powerpc-*-aix*)
14549 od_vectors="$od_vectors objdump_private_desc_xcoff"
14550 ;;
14551 *-*-darwin*)
14552 od_vectors="$od_vectors objdump_private_desc_mach_o"
14553 ;;
14554 esac
14555 fi
14556 done
14557
14558 # Uniq objdump private vector, build objdump target ofiles.
14559 od_files=
14560 f=""
14561 for i in $od_vectors ; do
14562 case " $f " in
14563 *" $i "*) ;;
14564 *)
14565 f="$f $i"
14566 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14567 case $i in
14568 objdump_private_desc_elf32_avr)
14569 od_files="$od_files od-elf32_avr" ;;
14570 objdump_private_desc_xcoff)
14571 od_files="$od_files od-xcoff" ;;
14572 objdump_private_desc_mach_o)
14573 od_files="$od_files od-macho" ;;
14574 *) as_fn_error "*** unknown private vector $i" "$LINENO" 5 ;;
14575 esac
14576 ;;
14577 esac
14578 done
14579
14580 # Uniq objdump target ofiles
14581 f=""
14582 for i in $od_files ; do
14583 case " $f " in
14584 *" $i "*) ;;
14585 *)
14586 f="$f $i"
14587 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14588 ;;
14589 esac
14590 done
14591
14592 DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14593
14594 if test "${with_windres+set}" = set; then
14595 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14596 fi
14597
14598 if test "${with_windmc+set}" = set; then
14599 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14600 fi
14601
14602 OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618 cat >>confdefs.h <<_ACEOF
14619 #define TARGET "${target}"
14620 _ACEOF
14621
14622
14623 targ=$target
14624 . $srcdir/../bfd/config.bfd
14625 if test "x$targ_underscore" = "xyes"; then
14626 UNDERSCORE=1
14627 else
14628 UNDERSCORE=0
14629 fi
14630
14631 cat >>confdefs.h <<_ACEOF
14632 #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14633 _ACEOF
14634
14635
14636 # Emulation
14637 targ=$target
14638 . ${srcdir}/configure.tgt
14639 EMULATION=$targ_emul
14640 EMULATION_VECTOR=$targ_emul_vector
14641
14642
14643
14644
14645 # Required for html and install-html
14646
14647
14648
14649
14650
14651 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14652
14653 cat >confcache <<\_ACEOF
14654 # This file is a shell script that caches the results of configure
14655 # tests run on this system so they can be shared between configure
14656 # scripts and configure runs, see configure's option --config-cache.
14657 # It is not useful on other systems. If it contains results you don't
14658 # want to keep, you may remove or edit it.
14659 #
14660 # config.status only pays attention to the cache file if you give it
14661 # the --recheck option to rerun configure.
14662 #
14663 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14664 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14665 # following values.
14666
14667 _ACEOF
14668
14669 # The following way of writing the cache mishandles newlines in values,
14670 # but we know of no workaround that is simple, portable, and efficient.
14671 # So, we kill variables containing newlines.
14672 # Ultrix sh set writes to stderr and can't be redirected directly,
14673 # and sets the high bit in the cache file unless we assign to the vars.
14674 (
14675 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14676 eval ac_val=\$$ac_var
14677 case $ac_val in #(
14678 *${as_nl}*)
14679 case $ac_var in #(
14680 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14681 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14682 esac
14683 case $ac_var in #(
14684 _ | IFS | as_nl) ;; #(
14685 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14686 *) { eval $ac_var=; unset $ac_var;} ;;
14687 esac ;;
14688 esac
14689 done
14690
14691 (set) 2>&1 |
14692 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14693 *${as_nl}ac_space=\ *)
14694 # `set' does not quote correctly, so add quotes: double-quote
14695 # substitution turns \\\\ into \\, and sed turns \\ into \.
14696 sed -n \
14697 "s/'/'\\\\''/g;
14698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14699 ;; #(
14700 *)
14701 # `set' quotes correctly as required by POSIX, so do not add quotes.
14702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14703 ;;
14704 esac |
14705 sort
14706 ) |
14707 sed '
14708 /^ac_cv_env_/b end
14709 t clear
14710 :clear
14711 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14712 t end
14713 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14714 :end' >>confcache
14715 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14716 if test -w "$cache_file"; then
14717 test "x$cache_file" != "x/dev/null" &&
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14719 $as_echo "$as_me: updating cache $cache_file" >&6;}
14720 cat confcache >$cache_file
14721 else
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14723 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14724 fi
14725 fi
14726 rm -f confcache
14727
14728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14729 # Let make expand exec_prefix.
14730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14731
14732 DEFS=-DHAVE_CONFIG_H
14733
14734 ac_libobjs=
14735 ac_ltlibobjs=
14736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14737 # 1. Remove the extension, and $U if already installed.
14738 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14739 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14740 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14741 # will be set to the directory where LIBOBJS objects are built.
14742 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14743 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14744 done
14745 LIBOBJS=$ac_libobjs
14746
14747 LTLIBOBJS=$ac_ltlibobjs
14748
14749
14750 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14751 as_fn_error "conditional \"AMDEP\" was never defined.
14752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14753 fi
14754 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14755 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14757 fi
14758 if test -n "$EXEEXT"; then
14759 am__EXEEXT_TRUE=
14760 am__EXEEXT_FALSE='#'
14761 else
14762 am__EXEEXT_TRUE='#'
14763 am__EXEEXT_FALSE=
14764 fi
14765
14766 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14767 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14769 fi
14770 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14771 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14773 fi
14774
14775 : ${CONFIG_STATUS=./config.status}
14776 ac_write_fail=0
14777 ac_clean_files_save=$ac_clean_files
14778 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14780 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14781 as_write_fail=0
14782 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14783 #! $SHELL
14784 # Generated by $as_me.
14785 # Run this file to recreate the current configuration.
14786 # Compiler output produced by configure, useful for debugging
14787 # configure, is in config.log if it exists.
14788
14789 debug=false
14790 ac_cs_recheck=false
14791 ac_cs_silent=false
14792
14793 SHELL=\${CONFIG_SHELL-$SHELL}
14794 export SHELL
14795 _ASEOF
14796 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14797 ## -------------------- ##
14798 ## M4sh Initialization. ##
14799 ## -------------------- ##
14800
14801 # Be more Bourne compatible
14802 DUALCASE=1; export DUALCASE # for MKS sh
14803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14804 emulate sh
14805 NULLCMD=:
14806 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14807 # is contrary to our usage. Disable this feature.
14808 alias -g '${1+"$@"}'='"$@"'
14809 setopt NO_GLOB_SUBST
14810 else
14811 case `(set -o) 2>/dev/null` in #(
14812 *posix*) :
14813 set -o posix ;; #(
14814 *) :
14815 ;;
14816 esac
14817 fi
14818
14819
14820 as_nl='
14821 '
14822 export as_nl
14823 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14824 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14825 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14826 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14827 # Prefer a ksh shell builtin over an external printf program on Solaris,
14828 # but without wasting forks for bash or zsh.
14829 if test -z "$BASH_VERSION$ZSH_VERSION" \
14830 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14831 as_echo='print -r --'
14832 as_echo_n='print -rn --'
14833 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14834 as_echo='printf %s\n'
14835 as_echo_n='printf %s'
14836 else
14837 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14838 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14839 as_echo_n='/usr/ucb/echo -n'
14840 else
14841 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14842 as_echo_n_body='eval
14843 arg=$1;
14844 case $arg in #(
14845 *"$as_nl"*)
14846 expr "X$arg" : "X\\(.*\\)$as_nl";
14847 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14848 esac;
14849 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14850 '
14851 export as_echo_n_body
14852 as_echo_n='sh -c $as_echo_n_body as_echo'
14853 fi
14854 export as_echo_body
14855 as_echo='sh -c $as_echo_body as_echo'
14856 fi
14857
14858 # The user is always right.
14859 if test "${PATH_SEPARATOR+set}" != set; then
14860 PATH_SEPARATOR=:
14861 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14862 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14863 PATH_SEPARATOR=';'
14864 }
14865 fi
14866
14867
14868 # IFS
14869 # We need space, tab and new line, in precisely that order. Quoting is
14870 # there to prevent editors from complaining about space-tab.
14871 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14872 # splitting by setting IFS to empty value.)
14873 IFS=" "" $as_nl"
14874
14875 # Find who we are. Look in the path if we contain no directory separator.
14876 case $0 in #((
14877 *[\\/]* ) as_myself=$0 ;;
14878 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879 for as_dir in $PATH
14880 do
14881 IFS=$as_save_IFS
14882 test -z "$as_dir" && as_dir=.
14883 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14884 done
14885 IFS=$as_save_IFS
14886
14887 ;;
14888 esac
14889 # We did not find ourselves, most probably we were run as `sh COMMAND'
14890 # in which case we are not to be found in the path.
14891 if test "x$as_myself" = x; then
14892 as_myself=$0
14893 fi
14894 if test ! -f "$as_myself"; then
14895 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14896 exit 1
14897 fi
14898
14899 # Unset variables that we do not need and which cause bugs (e.g. in
14900 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14901 # suppresses any "Segmentation fault" message there. '((' could
14902 # trigger a bug in pdksh 5.2.14.
14903 for as_var in BASH_ENV ENV MAIL MAILPATH
14904 do eval test x\${$as_var+set} = xset \
14905 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14906 done
14907 PS1='$ '
14908 PS2='> '
14909 PS4='+ '
14910
14911 # NLS nuisances.
14912 LC_ALL=C
14913 export LC_ALL
14914 LANGUAGE=C
14915 export LANGUAGE
14916
14917 # CDPATH.
14918 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14919
14920
14921 # as_fn_error ERROR [LINENO LOG_FD]
14922 # ---------------------------------
14923 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14924 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14925 # script with status $?, using 1 if that was 0.
14926 as_fn_error ()
14927 {
14928 as_status=$?; test $as_status -eq 0 && as_status=1
14929 if test "$3"; then
14930 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14931 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14932 fi
14933 $as_echo "$as_me: error: $1" >&2
14934 as_fn_exit $as_status
14935 } # as_fn_error
14936
14937
14938 # as_fn_set_status STATUS
14939 # -----------------------
14940 # Set $? to STATUS, without forking.
14941 as_fn_set_status ()
14942 {
14943 return $1
14944 } # as_fn_set_status
14945
14946 # as_fn_exit STATUS
14947 # -----------------
14948 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14949 as_fn_exit ()
14950 {
14951 set +e
14952 as_fn_set_status $1
14953 exit $1
14954 } # as_fn_exit
14955
14956 # as_fn_unset VAR
14957 # ---------------
14958 # Portably unset VAR.
14959 as_fn_unset ()
14960 {
14961 { eval $1=; unset $1;}
14962 }
14963 as_unset=as_fn_unset
14964 # as_fn_append VAR VALUE
14965 # ----------------------
14966 # Append the text in VALUE to the end of the definition contained in VAR. Take
14967 # advantage of any shell optimizations that allow amortized linear growth over
14968 # repeated appends, instead of the typical quadratic growth present in naive
14969 # implementations.
14970 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14971 eval 'as_fn_append ()
14972 {
14973 eval $1+=\$2
14974 }'
14975 else
14976 as_fn_append ()
14977 {
14978 eval $1=\$$1\$2
14979 }
14980 fi # as_fn_append
14981
14982 # as_fn_arith ARG...
14983 # ------------------
14984 # Perform arithmetic evaluation on the ARGs, and store the result in the
14985 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14986 # must be portable across $(()) and expr.
14987 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14988 eval 'as_fn_arith ()
14989 {
14990 as_val=$(( $* ))
14991 }'
14992 else
14993 as_fn_arith ()
14994 {
14995 as_val=`expr "$@" || test $? -eq 1`
14996 }
14997 fi # as_fn_arith
14998
14999
15000 if expr a : '\(a\)' >/dev/null 2>&1 &&
15001 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15002 as_expr=expr
15003 else
15004 as_expr=false
15005 fi
15006
15007 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15008 as_basename=basename
15009 else
15010 as_basename=false
15011 fi
15012
15013 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15014 as_dirname=dirname
15015 else
15016 as_dirname=false
15017 fi
15018
15019 as_me=`$as_basename -- "$0" ||
15020 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15021 X"$0" : 'X\(//\)$' \| \
15022 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15023 $as_echo X/"$0" |
15024 sed '/^.*\/\([^/][^/]*\)\/*$/{
15025 s//\1/
15026 q
15027 }
15028 /^X\/\(\/\/\)$/{
15029 s//\1/
15030 q
15031 }
15032 /^X\/\(\/\).*/{
15033 s//\1/
15034 q
15035 }
15036 s/.*/./; q'`
15037
15038 # Avoid depending upon Character Ranges.
15039 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15040 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15041 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15042 as_cr_digits='0123456789'
15043 as_cr_alnum=$as_cr_Letters$as_cr_digits
15044
15045 ECHO_C= ECHO_N= ECHO_T=
15046 case `echo -n x` in #(((((
15047 -n*)
15048 case `echo 'xy\c'` in
15049 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15050 xy) ECHO_C='\c';;
15051 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15052 ECHO_T=' ';;
15053 esac;;
15054 *)
15055 ECHO_N='-n';;
15056 esac
15057
15058 rm -f conf$$ conf$$.exe conf$$.file
15059 if test -d conf$$.dir; then
15060 rm -f conf$$.dir/conf$$.file
15061 else
15062 rm -f conf$$.dir
15063 mkdir conf$$.dir 2>/dev/null
15064 fi
15065 if (echo >conf$$.file) 2>/dev/null; then
15066 if ln -s conf$$.file conf$$ 2>/dev/null; then
15067 as_ln_s='ln -s'
15068 # ... but there are two gotchas:
15069 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15070 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15071 # In both cases, we have to default to `cp -p'.
15072 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15073 as_ln_s='cp -p'
15074 elif ln conf$$.file conf$$ 2>/dev/null; then
15075 as_ln_s=ln
15076 else
15077 as_ln_s='cp -p'
15078 fi
15079 else
15080 as_ln_s='cp -p'
15081 fi
15082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15083 rmdir conf$$.dir 2>/dev/null
15084
15085
15086 # as_fn_mkdir_p
15087 # -------------
15088 # Create "$as_dir" as a directory, including parents if necessary.
15089 as_fn_mkdir_p ()
15090 {
15091
15092 case $as_dir in #(
15093 -*) as_dir=./$as_dir;;
15094 esac
15095 test -d "$as_dir" || eval $as_mkdir_p || {
15096 as_dirs=
15097 while :; do
15098 case $as_dir in #(
15099 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15100 *) as_qdir=$as_dir;;
15101 esac
15102 as_dirs="'$as_qdir' $as_dirs"
15103 as_dir=`$as_dirname -- "$as_dir" ||
15104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15105 X"$as_dir" : 'X\(//\)[^/]' \| \
15106 X"$as_dir" : 'X\(//\)$' \| \
15107 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15108 $as_echo X"$as_dir" |
15109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15110 s//\1/
15111 q
15112 }
15113 /^X\(\/\/\)[^/].*/{
15114 s//\1/
15115 q
15116 }
15117 /^X\(\/\/\)$/{
15118 s//\1/
15119 q
15120 }
15121 /^X\(\/\).*/{
15122 s//\1/
15123 q
15124 }
15125 s/.*/./; q'`
15126 test -d "$as_dir" && break
15127 done
15128 test -z "$as_dirs" || eval "mkdir $as_dirs"
15129 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15130
15131
15132 } # as_fn_mkdir_p
15133 if mkdir -p . 2>/dev/null; then
15134 as_mkdir_p='mkdir -p "$as_dir"'
15135 else
15136 test -d ./-p && rmdir ./-p
15137 as_mkdir_p=false
15138 fi
15139
15140 if test -x / >/dev/null 2>&1; then
15141 as_test_x='test -x'
15142 else
15143 if ls -dL / >/dev/null 2>&1; then
15144 as_ls_L_option=L
15145 else
15146 as_ls_L_option=
15147 fi
15148 as_test_x='
15149 eval sh -c '\''
15150 if test -d "$1"; then
15151 test -d "$1/.";
15152 else
15153 case $1 in #(
15154 -*)set "./$1";;
15155 esac;
15156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15157 ???[sx]*):;;*)false;;esac;fi
15158 '\'' sh
15159 '
15160 fi
15161 as_executable_p=$as_test_x
15162
15163 # Sed expression to map a string onto a valid CPP name.
15164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15165
15166 # Sed expression to map a string onto a valid variable name.
15167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15168
15169
15170 exec 6>&1
15171 ## ----------------------------------- ##
15172 ## Main body of $CONFIG_STATUS script. ##
15173 ## ----------------------------------- ##
15174 _ASEOF
15175 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15176
15177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178 # Save the log message, to keep $0 and so on meaningful, and to
15179 # report actual input values of CONFIG_FILES etc. instead of their
15180 # values after options handling.
15181 ac_log="
15182 This file was extended by binutils $as_me 2.26.51, which was
15183 generated by GNU Autoconf 2.64. Invocation command line was
15184
15185 CONFIG_FILES = $CONFIG_FILES
15186 CONFIG_HEADERS = $CONFIG_HEADERS
15187 CONFIG_LINKS = $CONFIG_LINKS
15188 CONFIG_COMMANDS = $CONFIG_COMMANDS
15189 $ $0 $@
15190
15191 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15192 "
15193
15194 _ACEOF
15195
15196 case $ac_config_files in *"
15197 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15198 esac
15199
15200 case $ac_config_headers in *"
15201 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15202 esac
15203
15204
15205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15206 # Files that config.status was made for.
15207 config_files="$ac_config_files"
15208 config_headers="$ac_config_headers"
15209 config_commands="$ac_config_commands"
15210
15211 _ACEOF
15212
15213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15214 ac_cs_usage="\
15215 \`$as_me' instantiates files and other configuration actions
15216 from templates according to the current configuration. Unless the files
15217 and actions are specified as TAGs, all are instantiated by default.
15218
15219 Usage: $0 [OPTION]... [TAG]...
15220
15221 -h, --help print this help, then exit
15222 -V, --version print version number and configuration settings, then exit
15223 -q, --quiet, --silent
15224 do not print progress messages
15225 -d, --debug don't remove temporary files
15226 --recheck update $as_me by reconfiguring in the same conditions
15227 --file=FILE[:TEMPLATE]
15228 instantiate the configuration file FILE
15229 --header=FILE[:TEMPLATE]
15230 instantiate the configuration header FILE
15231
15232 Configuration files:
15233 $config_files
15234
15235 Configuration headers:
15236 $config_headers
15237
15238 Configuration commands:
15239 $config_commands
15240
15241 Report bugs to the package provider."
15242
15243 _ACEOF
15244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245 ac_cs_version="\\
15246 binutils config.status 2.26.51
15247 configured by $0, generated by GNU Autoconf 2.64,
15248 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15249
15250 Copyright (C) 2009 Free Software Foundation, Inc.
15251 This config.status script is free software; the Free Software Foundation
15252 gives unlimited permission to copy, distribute and modify it."
15253
15254 ac_pwd='$ac_pwd'
15255 srcdir='$srcdir'
15256 INSTALL='$INSTALL'
15257 MKDIR_P='$MKDIR_P'
15258 AWK='$AWK'
15259 test -n "\$AWK" || AWK=awk
15260 _ACEOF
15261
15262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263 # The default lists apply if the user does not specify any file.
15264 ac_need_defaults=:
15265 while test $# != 0
15266 do
15267 case $1 in
15268 --*=*)
15269 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15270 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15271 ac_shift=:
15272 ;;
15273 *)
15274 ac_option=$1
15275 ac_optarg=$2
15276 ac_shift=shift
15277 ;;
15278 esac
15279
15280 case $ac_option in
15281 # Handling of the options.
15282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15283 ac_cs_recheck=: ;;
15284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15285 $as_echo "$ac_cs_version"; exit ;;
15286 --debug | --debu | --deb | --de | --d | -d )
15287 debug=: ;;
15288 --file | --fil | --fi | --f )
15289 $ac_shift
15290 case $ac_optarg in
15291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15292 esac
15293 as_fn_append CONFIG_FILES " '$ac_optarg'"
15294 ac_need_defaults=false;;
15295 --header | --heade | --head | --hea )
15296 $ac_shift
15297 case $ac_optarg in
15298 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15299 esac
15300 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15301 ac_need_defaults=false;;
15302 --he | --h)
15303 # Conflict between --help and --header
15304 as_fn_error "ambiguous option: \`$1'
15305 Try \`$0 --help' for more information.";;
15306 --help | --hel | -h )
15307 $as_echo "$ac_cs_usage"; exit ;;
15308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15309 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15310 ac_cs_silent=: ;;
15311
15312 # This is an error.
15313 -*) as_fn_error "unrecognized option: \`$1'
15314 Try \`$0 --help' for more information." ;;
15315
15316 *) as_fn_append ac_config_targets " $1"
15317 ac_need_defaults=false ;;
15318
15319 esac
15320 shift
15321 done
15322
15323 ac_configure_extra_args=
15324
15325 if $ac_cs_silent; then
15326 exec 6>/dev/null
15327 ac_configure_extra_args="$ac_configure_extra_args --silent"
15328 fi
15329
15330 _ACEOF
15331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332 if \$ac_cs_recheck; then
15333 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15334 shift
15335 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15336 CONFIG_SHELL='$SHELL'
15337 export CONFIG_SHELL
15338 exec "\$@"
15339 fi
15340
15341 _ACEOF
15342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15343 exec 5>>config.log
15344 {
15345 echo
15346 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15347 ## Running $as_me. ##
15348 _ASBOX
15349 $as_echo "$ac_log"
15350 } >&5
15351
15352 _ACEOF
15353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15354 #
15355 # INIT-COMMANDS
15356 #
15357 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15358
15359
15360 # The HP-UX ksh and POSIX shell print the target directory to stdout
15361 # if CDPATH is set.
15362 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15363
15364 sed_quote_subst='$sed_quote_subst'
15365 double_quote_subst='$double_quote_subst'
15366 delay_variable_subst='$delay_variable_subst'
15367 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15368 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15369 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15370 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15371 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15372 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15373 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15374 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15375 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15376 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15377 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15378 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15379 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15380 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15381 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15382 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15383 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15384 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15385 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15386 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15387 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15388 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15389 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15390 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15391 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15392 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15393 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15394 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15395 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15396 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15397 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15398 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15399 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15400 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15401 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15402 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15403 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15404 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15405 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15406 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15407 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15408 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15409 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15410 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15411 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15412 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15413 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15414 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15415 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"`'
15416 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15417 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15418 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15419 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15420 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15421 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15422 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15423 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15424 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15425 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15426 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15427 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15428 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15429 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15430 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15431 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15432 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15433 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15434 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15435 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15436 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15437 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15438 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15439 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15440 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15441 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15442 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15443 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15444 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15445 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15446 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15447 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15448 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15449 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15450 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15451 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15452 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15453 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15454 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15455 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15456 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15457 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15458 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15459 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15460 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15461 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15462 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15463 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15464 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15465 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15466 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15467 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15468 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15469 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15470 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15471 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15472 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15473 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15474 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15475 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15476 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15477 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15478 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15479 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15480 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15481 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15482 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15483 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15484 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15485 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15486 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15487
15488 LTCC='$LTCC'
15489 LTCFLAGS='$LTCFLAGS'
15490 compiler='$compiler_DEFAULT'
15491
15492 # A function that is used when there is no print builtin or printf.
15493 func_fallback_echo ()
15494 {
15495 eval 'cat <<_LTECHO_EOF
15496 \$1
15497 _LTECHO_EOF'
15498 }
15499
15500 # Quote evaled strings.
15501 for var in SHELL \
15502 ECHO \
15503 SED \
15504 GREP \
15505 EGREP \
15506 FGREP \
15507 LD \
15508 NM \
15509 LN_S \
15510 lt_SP2NL \
15511 lt_NL2SP \
15512 reload_flag \
15513 OBJDUMP \
15514 deplibs_check_method \
15515 file_magic_cmd \
15516 AR \
15517 AR_FLAGS \
15518 STRIP \
15519 RANLIB \
15520 CC \
15521 CFLAGS \
15522 compiler \
15523 lt_cv_sys_global_symbol_pipe \
15524 lt_cv_sys_global_symbol_to_cdecl \
15525 lt_cv_sys_global_symbol_to_c_name_address \
15526 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15527 lt_prog_compiler_no_builtin_flag \
15528 lt_prog_compiler_wl \
15529 lt_prog_compiler_pic \
15530 lt_prog_compiler_static \
15531 lt_cv_prog_compiler_c_o \
15532 need_locks \
15533 DSYMUTIL \
15534 NMEDIT \
15535 LIPO \
15536 OTOOL \
15537 OTOOL64 \
15538 shrext_cmds \
15539 export_dynamic_flag_spec \
15540 whole_archive_flag_spec \
15541 compiler_needs_object \
15542 with_gnu_ld \
15543 allow_undefined_flag \
15544 no_undefined_flag \
15545 hardcode_libdir_flag_spec \
15546 hardcode_libdir_flag_spec_ld \
15547 hardcode_libdir_separator \
15548 fix_srcfile_path \
15549 exclude_expsyms \
15550 include_expsyms \
15551 file_list_spec \
15552 variables_saved_for_relink \
15553 libname_spec \
15554 library_names_spec \
15555 soname_spec \
15556 install_override_mode \
15557 finish_eval \
15558 old_striplib \
15559 striplib; do
15560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15561 *[\\\\\\\`\\"\\\$]*)
15562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15563 ;;
15564 *)
15565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15566 ;;
15567 esac
15568 done
15569
15570 # Double-quote double-evaled strings.
15571 for var in reload_cmds \
15572 old_postinstall_cmds \
15573 old_postuninstall_cmds \
15574 old_archive_cmds \
15575 extract_expsyms_cmds \
15576 old_archive_from_new_cmds \
15577 old_archive_from_expsyms_cmds \
15578 archive_cmds \
15579 archive_expsym_cmds \
15580 module_cmds \
15581 module_expsym_cmds \
15582 export_symbols_cmds \
15583 prelink_cmds \
15584 postinstall_cmds \
15585 postuninstall_cmds \
15586 finish_cmds \
15587 sys_lib_search_path_spec \
15588 sys_lib_dlsearch_path_spec; do
15589 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15590 *[\\\\\\\`\\"\\\$]*)
15591 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15592 ;;
15593 *)
15594 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15595 ;;
15596 esac
15597 done
15598
15599 ac_aux_dir='$ac_aux_dir'
15600 xsi_shell='$xsi_shell'
15601 lt_shell_append='$lt_shell_append'
15602
15603 # See if we are running on zsh, and set the options which allow our
15604 # commands through without removal of \ escapes INIT.
15605 if test -n "\${ZSH_VERSION+set}" ; then
15606 setopt NO_GLOB_SUBST
15607 fi
15608
15609
15610 PACKAGE='$PACKAGE'
15611 VERSION='$VERSION'
15612 TIMESTAMP='$TIMESTAMP'
15613 RM='$RM'
15614 ofile='$ofile'
15615
15616
15617
15618 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15619 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15620 # from automake.
15621 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15622 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15623 LINGUAS="${LINGUAS-%UNSET%}"
15624
15625
15626 _ACEOF
15627
15628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15629
15630 # Handling of arguments.
15631 for ac_config_target in $ac_config_targets
15632 do
15633 case $ac_config_target in
15634 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15635 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15636 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15637 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15638 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15639 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15640 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15641
15642 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15643 esac
15644 done
15645
15646
15647 # If the user did not use the arguments to specify the items to instantiate,
15648 # then the envvar interface is used. Set only those that are not.
15649 # We use the long form for the default assignment because of an extremely
15650 # bizarre bug on SunOS 4.1.3.
15651 if $ac_need_defaults; then
15652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15655 fi
15656
15657 # Have a temporary directory for convenience. Make it in the build tree
15658 # simply because there is no reason against having it here, and in addition,
15659 # creating and moving files from /tmp can sometimes cause problems.
15660 # Hook for its removal unless debugging.
15661 # Note that there is a small window in which the directory will not be cleaned:
15662 # after its creation but before its name has been assigned to `$tmp'.
15663 $debug ||
15664 {
15665 tmp=
15666 trap 'exit_status=$?
15667 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15668 ' 0
15669 trap 'as_fn_exit 1' 1 2 13 15
15670 }
15671 # Create a (secure) tmp directory for tmp files.
15672
15673 {
15674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15675 test -n "$tmp" && test -d "$tmp"
15676 } ||
15677 {
15678 tmp=./conf$$-$RANDOM
15679 (umask 077 && mkdir "$tmp")
15680 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15681
15682 # Set up the scripts for CONFIG_FILES section.
15683 # No need to generate them if there are no CONFIG_FILES.
15684 # This happens for instance with `./config.status config.h'.
15685 if test -n "$CONFIG_FILES"; then
15686
15687
15688 ac_cr=`echo X | tr X '\015'`
15689 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15690 # But we know of no other shell where ac_cr would be empty at this
15691 # point, so we can use a bashism as a fallback.
15692 if test "x$ac_cr" = x; then
15693 eval ac_cr=\$\'\\r\'
15694 fi
15695 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15696 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15697 ac_cs_awk_cr='\r'
15698 else
15699 ac_cs_awk_cr=$ac_cr
15700 fi
15701
15702 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15703 _ACEOF
15704
15705
15706 {
15707 echo "cat >conf$$subs.awk <<_ACEOF" &&
15708 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15709 echo "_ACEOF"
15710 } >conf$$subs.sh ||
15711 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15712 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15713 ac_delim='%!_!# '
15714 for ac_last_try in false false false false false :; do
15715 . ./conf$$subs.sh ||
15716 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15717
15718 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15719 if test $ac_delim_n = $ac_delim_num; then
15720 break
15721 elif $ac_last_try; then
15722 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15723 else
15724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15725 fi
15726 done
15727 rm -f conf$$subs.sh
15728
15729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15731 _ACEOF
15732 sed -n '
15733 h
15734 s/^/S["/; s/!.*/"]=/
15735 p
15736 g
15737 s/^[^!]*!//
15738 :repl
15739 t repl
15740 s/'"$ac_delim"'$//
15741 t delim
15742 :nl
15743 h
15744 s/\(.\{148\}\).*/\1/
15745 t more1
15746 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15747 p
15748 n
15749 b repl
15750 :more1
15751 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15752 p
15753 g
15754 s/.\{148\}//
15755 t nl
15756 :delim
15757 h
15758 s/\(.\{148\}\).*/\1/
15759 t more2
15760 s/["\\]/\\&/g; s/^/"/; s/$/"/
15761 p
15762 b
15763 :more2
15764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15765 p
15766 g
15767 s/.\{148\}//
15768 t delim
15769 ' <conf$$subs.awk | sed '
15770 /^[^""]/{
15771 N
15772 s/\n//
15773 }
15774 ' >>$CONFIG_STATUS || ac_write_fail=1
15775 rm -f conf$$subs.awk
15776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15777 _ACAWK
15778 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15779 for (key in S) S_is_set[key] = 1
15780 FS = "\a"
15781
15782 }
15783 {
15784 line = $ 0
15785 nfields = split(line, field, "@")
15786 substed = 0
15787 len = length(field[1])
15788 for (i = 2; i < nfields; i++) {
15789 key = field[i]
15790 keylen = length(key)
15791 if (S_is_set[key]) {
15792 value = S[key]
15793 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15794 len += length(value) + length(field[++i])
15795 substed = 1
15796 } else
15797 len += 1 + keylen
15798 }
15799
15800 print line
15801 }
15802
15803 _ACAWK
15804 _ACEOF
15805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15806 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15807 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15808 else
15809 cat
15810 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15811 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15812 _ACEOF
15813
15814 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15815 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15816 # trailing colons and then remove the whole line if VPATH becomes empty
15817 # (actually we leave an empty line to preserve line numbers).
15818 if test "x$srcdir" = x.; then
15819 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15820 s/:*\$(srcdir):*/:/
15821 s/:*\${srcdir}:*/:/
15822 s/:*@srcdir@:*/:/
15823 s/^\([^=]*=[ ]*\):*/\1/
15824 s/:*$//
15825 s/^[^=]*=[ ]*$//
15826 }'
15827 fi
15828
15829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15830 fi # test -n "$CONFIG_FILES"
15831
15832 # Set up the scripts for CONFIG_HEADERS section.
15833 # No need to generate them if there are no CONFIG_HEADERS.
15834 # This happens for instance with `./config.status Makefile'.
15835 if test -n "$CONFIG_HEADERS"; then
15836 cat >"$tmp/defines.awk" <<\_ACAWK ||
15837 BEGIN {
15838 _ACEOF
15839
15840 # Transform confdefs.h into an awk script `defines.awk', embedded as
15841 # here-document in config.status, that substitutes the proper values into
15842 # config.h.in to produce config.h.
15843
15844 # Create a delimiter string that does not exist in confdefs.h, to ease
15845 # handling of long lines.
15846 ac_delim='%!_!# '
15847 for ac_last_try in false false :; do
15848 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15849 if test -z "$ac_t"; then
15850 break
15851 elif $ac_last_try; then
15852 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15853 else
15854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15855 fi
15856 done
15857
15858 # For the awk script, D is an array of macro values keyed by name,
15859 # likewise P contains macro parameters if any. Preserve backslash
15860 # newline sequences.
15861
15862 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15863 sed -n '
15864 s/.\{148\}/&'"$ac_delim"'/g
15865 t rset
15866 :rset
15867 s/^[ ]*#[ ]*define[ ][ ]*/ /
15868 t def
15869 d
15870 :def
15871 s/\\$//
15872 t bsnl
15873 s/["\\]/\\&/g
15874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15875 D["\1"]=" \3"/p
15876 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15877 d
15878 :bsnl
15879 s/["\\]/\\&/g
15880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15881 D["\1"]=" \3\\\\\\n"\\/p
15882 t cont
15883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15884 t cont
15885 d
15886 :cont
15887 n
15888 s/.\{148\}/&'"$ac_delim"'/g
15889 t clear
15890 :clear
15891 s/\\$//
15892 t bsnlc
15893 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15894 d
15895 :bsnlc
15896 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15897 b cont
15898 ' <confdefs.h | sed '
15899 s/'"$ac_delim"'/"\\\
15900 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15901
15902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15903 for (key in D) D_is_set[key] = 1
15904 FS = "\a"
15905 }
15906 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15907 line = \$ 0
15908 split(line, arg, " ")
15909 if (arg[1] == "#") {
15910 defundef = arg[2]
15911 mac1 = arg[3]
15912 } else {
15913 defundef = substr(arg[1], 2)
15914 mac1 = arg[2]
15915 }
15916 split(mac1, mac2, "(") #)
15917 macro = mac2[1]
15918 prefix = substr(line, 1, index(line, defundef) - 1)
15919 if (D_is_set[macro]) {
15920 # Preserve the white space surrounding the "#".
15921 print prefix "define", macro P[macro] D[macro]
15922 next
15923 } else {
15924 # Replace #undef with comments. This is necessary, for example,
15925 # in the case of _POSIX_SOURCE, which is predefined and required
15926 # on some systems where configure will not decide to define it.
15927 if (defundef == "undef") {
15928 print "/*", prefix defundef, macro, "*/"
15929 next
15930 }
15931 }
15932 }
15933 { print }
15934 _ACAWK
15935 _ACEOF
15936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15938 fi # test -n "$CONFIG_HEADERS"
15939
15940
15941 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15942 shift
15943 for ac_tag
15944 do
15945 case $ac_tag in
15946 :[FHLC]) ac_mode=$ac_tag; continue;;
15947 esac
15948 case $ac_mode$ac_tag in
15949 :[FHL]*:*);;
15950 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15951 :[FH]-) ac_tag=-:-;;
15952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15953 esac
15954 ac_save_IFS=$IFS
15955 IFS=:
15956 set x $ac_tag
15957 IFS=$ac_save_IFS
15958 shift
15959 ac_file=$1
15960 shift
15961
15962 case $ac_mode in
15963 :L) ac_source=$1;;
15964 :[FH])
15965 ac_file_inputs=
15966 for ac_f
15967 do
15968 case $ac_f in
15969 -) ac_f="$tmp/stdin";;
15970 *) # Look for the file first in the build tree, then in the source tree
15971 # (if the path is not absolute). The absolute path cannot be DOS-style,
15972 # because $ac_f cannot contain `:'.
15973 test -f "$ac_f" ||
15974 case $ac_f in
15975 [\\/$]*) false;;
15976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15977 esac ||
15978 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15979 esac
15980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15981 as_fn_append ac_file_inputs " '$ac_f'"
15982 done
15983
15984 # Let's still pretend it is `configure' which instantiates (i.e., don't
15985 # use $as_me), people would be surprised to read:
15986 # /* config.h. Generated by config.status. */
15987 configure_input='Generated from '`
15988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15989 `' by configure.'
15990 if test x"$ac_file" != x-; then
15991 configure_input="$ac_file. $configure_input"
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15993 $as_echo "$as_me: creating $ac_file" >&6;}
15994 fi
15995 # Neutralize special characters interpreted by sed in replacement strings.
15996 case $configure_input in #(
15997 *\&* | *\|* | *\\* )
15998 ac_sed_conf_input=`$as_echo "$configure_input" |
15999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16000 *) ac_sed_conf_input=$configure_input;;
16001 esac
16002
16003 case $ac_tag in
16004 *:-:* | *:-) cat >"$tmp/stdin" \
16005 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16006 esac
16007 ;;
16008 esac
16009
16010 ac_dir=`$as_dirname -- "$ac_file" ||
16011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16012 X"$ac_file" : 'X\(//\)[^/]' \| \
16013 X"$ac_file" : 'X\(//\)$' \| \
16014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16015 $as_echo X"$ac_file" |
16016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16017 s//\1/
16018 q
16019 }
16020 /^X\(\/\/\)[^/].*/{
16021 s//\1/
16022 q
16023 }
16024 /^X\(\/\/\)$/{
16025 s//\1/
16026 q
16027 }
16028 /^X\(\/\).*/{
16029 s//\1/
16030 q
16031 }
16032 s/.*/./; q'`
16033 as_dir="$ac_dir"; as_fn_mkdir_p
16034 ac_builddir=.
16035
16036 case "$ac_dir" in
16037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16038 *)
16039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16040 # A ".." for each directory in $ac_dir_suffix.
16041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16042 case $ac_top_builddir_sub in
16043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16045 esac ;;
16046 esac
16047 ac_abs_top_builddir=$ac_pwd
16048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16049 # for backward compatibility:
16050 ac_top_builddir=$ac_top_build_prefix
16051
16052 case $srcdir in
16053 .) # We are building in place.
16054 ac_srcdir=.
16055 ac_top_srcdir=$ac_top_builddir_sub
16056 ac_abs_top_srcdir=$ac_pwd ;;
16057 [\\/]* | ?:[\\/]* ) # Absolute name.
16058 ac_srcdir=$srcdir$ac_dir_suffix;
16059 ac_top_srcdir=$srcdir
16060 ac_abs_top_srcdir=$srcdir ;;
16061 *) # Relative name.
16062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16063 ac_top_srcdir=$ac_top_build_prefix$srcdir
16064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16065 esac
16066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16067
16068
16069 case $ac_mode in
16070 :F)
16071 #
16072 # CONFIG_FILE
16073 #
16074
16075 case $INSTALL in
16076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16078 esac
16079 ac_MKDIR_P=$MKDIR_P
16080 case $MKDIR_P in
16081 [\\/$]* | ?:[\\/]* ) ;;
16082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16083 esac
16084 _ACEOF
16085
16086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16087 # If the template does not know about datarootdir, expand it.
16088 # FIXME: This hack should be removed a few years after 2.60.
16089 ac_datarootdir_hack=; ac_datarootdir_seen=
16090 ac_sed_dataroot='
16091 /datarootdir/ {
16092 p
16093 q
16094 }
16095 /@datadir@/p
16096 /@docdir@/p
16097 /@infodir@/p
16098 /@localedir@/p
16099 /@mandir@/p'
16100 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16101 *datarootdir*) ac_datarootdir_seen=yes;;
16102 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16104 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16105 _ACEOF
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 ac_datarootdir_hack='
16108 s&@datadir@&$datadir&g
16109 s&@docdir@&$docdir&g
16110 s&@infodir@&$infodir&g
16111 s&@localedir@&$localedir&g
16112 s&@mandir@&$mandir&g
16113 s&\\\${datarootdir}&$datarootdir&g' ;;
16114 esac
16115 _ACEOF
16116
16117 # Neutralize VPATH when `$srcdir' = `.'.
16118 # Shell code in configure.ac might set extrasub.
16119 # FIXME: do we really want to maintain this feature?
16120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16121 ac_sed_extra="$ac_vpsub
16122 $extrasub
16123 _ACEOF
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125 :t
16126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16127 s|@configure_input@|$ac_sed_conf_input|;t t
16128 s&@top_builddir@&$ac_top_builddir_sub&;t t
16129 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16130 s&@srcdir@&$ac_srcdir&;t t
16131 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16132 s&@top_srcdir@&$ac_top_srcdir&;t t
16133 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16134 s&@builddir@&$ac_builddir&;t t
16135 s&@abs_builddir@&$ac_abs_builddir&;t t
16136 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16137 s&@INSTALL@&$ac_INSTALL&;t t
16138 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16139 $ac_datarootdir_hack
16140 "
16141 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16142 || as_fn_error "could not create $ac_file" "$LINENO" 5
16143
16144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16145 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16148 which seems to be undefined. Please make sure it is defined." >&5
16149 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16150 which seems to be undefined. Please make sure it is defined." >&2;}
16151
16152 rm -f "$tmp/stdin"
16153 case $ac_file in
16154 -) cat "$tmp/out" && rm -f "$tmp/out";;
16155 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16156 esac \
16157 || as_fn_error "could not create $ac_file" "$LINENO" 5
16158 ;;
16159 :H)
16160 #
16161 # CONFIG_HEADER
16162 #
16163 if test x"$ac_file" != x-; then
16164 {
16165 $as_echo "/* $configure_input */" \
16166 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16167 } >"$tmp/config.h" \
16168 || as_fn_error "could not create $ac_file" "$LINENO" 5
16169 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16171 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16172 else
16173 rm -f "$ac_file"
16174 mv "$tmp/config.h" "$ac_file" \
16175 || as_fn_error "could not create $ac_file" "$LINENO" 5
16176 fi
16177 else
16178 $as_echo "/* $configure_input */" \
16179 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16180 || as_fn_error "could not create -" "$LINENO" 5
16181 fi
16182 # Compute "$ac_file"'s index in $config_headers.
16183 _am_arg="$ac_file"
16184 _am_stamp_count=1
16185 for _am_header in $config_headers :; do
16186 case $_am_header in
16187 $_am_arg | $_am_arg:* )
16188 break ;;
16189 * )
16190 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16191 esac
16192 done
16193 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16194 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16195 X"$_am_arg" : 'X\(//\)[^/]' \| \
16196 X"$_am_arg" : 'X\(//\)$' \| \
16197 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16198 $as_echo X"$_am_arg" |
16199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16200 s//\1/
16201 q
16202 }
16203 /^X\(\/\/\)[^/].*/{
16204 s//\1/
16205 q
16206 }
16207 /^X\(\/\/\)$/{
16208 s//\1/
16209 q
16210 }
16211 /^X\(\/\).*/{
16212 s//\1/
16213 q
16214 }
16215 s/.*/./; q'`/stamp-h$_am_stamp_count
16216 ;;
16217
16218 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16219 $as_echo "$as_me: executing $ac_file commands" >&6;}
16220 ;;
16221 esac
16222
16223
16224 case $ac_file$ac_mode in
16225 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16226 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16227 # are listed without --file. Let's play safe and only enable the eval
16228 # if we detect the quoting.
16229 case $CONFIG_FILES in
16230 *\'*) eval set x "$CONFIG_FILES" ;;
16231 *) set x $CONFIG_FILES ;;
16232 esac
16233 shift
16234 for mf
16235 do
16236 # Strip MF so we end up with the name of the file.
16237 mf=`echo "$mf" | sed -e 's/:.*$//'`
16238 # Check whether this is an Automake generated Makefile or not.
16239 # We used to match only the files named `Makefile.in', but
16240 # some people rename them; so instead we look at the file content.
16241 # Grep'ing the first line is not enough: some people post-process
16242 # each Makefile.in and add a new line on top of each file to say so.
16243 # Grep'ing the whole file is not good either: AIX grep has a line
16244 # limit of 2048, but all sed's we know have understand at least 4000.
16245 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16246 dirpart=`$as_dirname -- "$mf" ||
16247 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16248 X"$mf" : 'X\(//\)[^/]' \| \
16249 X"$mf" : 'X\(//\)$' \| \
16250 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16251 $as_echo X"$mf" |
16252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16253 s//\1/
16254 q
16255 }
16256 /^X\(\/\/\)[^/].*/{
16257 s//\1/
16258 q
16259 }
16260 /^X\(\/\/\)$/{
16261 s//\1/
16262 q
16263 }
16264 /^X\(\/\).*/{
16265 s//\1/
16266 q
16267 }
16268 s/.*/./; q'`
16269 else
16270 continue
16271 fi
16272 # Extract the definition of DEPDIR, am__include, and am__quote
16273 # from the Makefile without running `make'.
16274 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16275 test -z "$DEPDIR" && continue
16276 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16277 test -z "am__include" && continue
16278 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16279 # When using ansi2knr, U may be empty or an underscore; expand it
16280 U=`sed -n 's/^U = //p' < "$mf"`
16281 # Find all dependency output files, they are included files with
16282 # $(DEPDIR) in their names. We invoke sed twice because it is the
16283 # simplest approach to changing $(DEPDIR) to its actual value in the
16284 # expansion.
16285 for file in `sed -n "
16286 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16287 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16288 # Make sure the directory exists.
16289 test -f "$dirpart/$file" && continue
16290 fdir=`$as_dirname -- "$file" ||
16291 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16292 X"$file" : 'X\(//\)[^/]' \| \
16293 X"$file" : 'X\(//\)$' \| \
16294 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16295 $as_echo X"$file" |
16296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16297 s//\1/
16298 q
16299 }
16300 /^X\(\/\/\)[^/].*/{
16301 s//\1/
16302 q
16303 }
16304 /^X\(\/\/\)$/{
16305 s//\1/
16306 q
16307 }
16308 /^X\(\/\).*/{
16309 s//\1/
16310 q
16311 }
16312 s/.*/./; q'`
16313 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16314 # echo "creating $dirpart/$file"
16315 echo '# dummy' > "$dirpart/$file"
16316 done
16317 done
16318 }
16319 ;;
16320 "libtool":C)
16321
16322 # See if we are running on zsh, and set the options which allow our
16323 # commands through without removal of \ escapes.
16324 if test -n "${ZSH_VERSION+set}" ; then
16325 setopt NO_GLOB_SUBST
16326 fi
16327
16328 cfgfile="${ofile}T"
16329 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16330 $RM "$cfgfile"
16331
16332 cat <<_LT_EOF >> "$cfgfile"
16333 #! $SHELL
16334
16335 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16336 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16338 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16339 #
16340 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16341 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16342 # Written by Gordon Matzigkeit, 1996
16343 #
16344 # This file is part of GNU Libtool.
16345 #
16346 # GNU Libtool is free software; you can redistribute it and/or
16347 # modify it under the terms of the GNU General Public License as
16348 # published by the Free Software Foundation; either version 2 of
16349 # the License, or (at your option) any later version.
16350 #
16351 # As a special exception to the GNU General Public License,
16352 # if you distribute this file as part of a program or library that
16353 # is built using GNU Libtool, you may include this file under the
16354 # same distribution terms that you use for the rest of that program.
16355 #
16356 # GNU Libtool is distributed in the hope that it will be useful,
16357 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16358 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16359 # GNU General Public License for more details.
16360 #
16361 # You should have received a copy of the GNU General Public License
16362 # along with GNU Libtool; see the file COPYING. If not, a copy
16363 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16364 # obtained by writing to the Free Software Foundation, Inc.,
16365 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16366
16367
16368 # The names of the tagged configurations supported by this script.
16369 available_tags=""
16370
16371 # ### BEGIN LIBTOOL CONFIG
16372
16373 # Which release of libtool.m4 was used?
16374 macro_version=$macro_version
16375 macro_revision=$macro_revision
16376
16377 # Whether or not to build shared libraries.
16378 build_libtool_libs=$enable_shared
16379
16380 # Whether or not to build static libraries.
16381 build_old_libs=$enable_static
16382
16383 # What type of objects to build.
16384 pic_mode=$pic_mode
16385
16386 # Whether or not to optimize for fast installation.
16387 fast_install=$enable_fast_install
16388
16389 # Shell to use when invoking shell scripts.
16390 SHELL=$lt_SHELL
16391
16392 # An echo program that protects backslashes.
16393 ECHO=$lt_ECHO
16394
16395 # The host system.
16396 host_alias=$host_alias
16397 host=$host
16398 host_os=$host_os
16399
16400 # The build system.
16401 build_alias=$build_alias
16402 build=$build
16403 build_os=$build_os
16404
16405 # A sed program that does not truncate output.
16406 SED=$lt_SED
16407
16408 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16409 Xsed="\$SED -e 1s/^X//"
16410
16411 # A grep program that handles long lines.
16412 GREP=$lt_GREP
16413
16414 # An ERE matcher.
16415 EGREP=$lt_EGREP
16416
16417 # A literal string matcher.
16418 FGREP=$lt_FGREP
16419
16420 # A BSD- or MS-compatible name lister.
16421 NM=$lt_NM
16422
16423 # Whether we need soft or hard links.
16424 LN_S=$lt_LN_S
16425
16426 # What is the maximum length of a command?
16427 max_cmd_len=$max_cmd_len
16428
16429 # Object file suffix (normally "o").
16430 objext=$ac_objext
16431
16432 # Executable file suffix (normally "").
16433 exeext=$exeext
16434
16435 # whether the shell understands "unset".
16436 lt_unset=$lt_unset
16437
16438 # turn spaces into newlines.
16439 SP2NL=$lt_lt_SP2NL
16440
16441 # turn newlines into spaces.
16442 NL2SP=$lt_lt_NL2SP
16443
16444 # An object symbol dumper.
16445 OBJDUMP=$lt_OBJDUMP
16446
16447 # Method to check whether dependent libraries are shared objects.
16448 deplibs_check_method=$lt_deplibs_check_method
16449
16450 # Command to use when deplibs_check_method == "file_magic".
16451 file_magic_cmd=$lt_file_magic_cmd
16452
16453 # The archiver.
16454 AR=$lt_AR
16455 AR_FLAGS=$lt_AR_FLAGS
16456
16457 # A symbol stripping program.
16458 STRIP=$lt_STRIP
16459
16460 # Commands used to install an old-style archive.
16461 RANLIB=$lt_RANLIB
16462 old_postinstall_cmds=$lt_old_postinstall_cmds
16463 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16464
16465 # Whether to use a lock for old archive extraction.
16466 lock_old_archive_extraction=$lock_old_archive_extraction
16467
16468 # A C compiler.
16469 LTCC=$lt_CC
16470
16471 # LTCC compiler flags.
16472 LTCFLAGS=$lt_CFLAGS
16473
16474 # Take the output of nm and produce a listing of raw symbols and C names.
16475 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16476
16477 # Transform the output of nm in a proper C declaration.
16478 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16479
16480 # Transform the output of nm in a C name address pair.
16481 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16482
16483 # Transform the output of nm in a C name address pair when lib prefix is needed.
16484 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16485
16486 # The name of the directory that contains temporary libtool files.
16487 objdir=$objdir
16488
16489 # Used to examine libraries when file_magic_cmd begins with "file".
16490 MAGIC_CMD=$MAGIC_CMD
16491
16492 # Must we lock files when doing compilation?
16493 need_locks=$lt_need_locks
16494
16495 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16496 DSYMUTIL=$lt_DSYMUTIL
16497
16498 # Tool to change global to local symbols on Mac OS X.
16499 NMEDIT=$lt_NMEDIT
16500
16501 # Tool to manipulate fat objects and archives on Mac OS X.
16502 LIPO=$lt_LIPO
16503
16504 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16505 OTOOL=$lt_OTOOL
16506
16507 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16508 OTOOL64=$lt_OTOOL64
16509
16510 # Old archive suffix (normally "a").
16511 libext=$libext
16512
16513 # Shared library suffix (normally ".so").
16514 shrext_cmds=$lt_shrext_cmds
16515
16516 # The commands to extract the exported symbol list from a shared archive.
16517 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16518
16519 # Variables whose values should be saved in libtool wrapper scripts and
16520 # restored at link time.
16521 variables_saved_for_relink=$lt_variables_saved_for_relink
16522
16523 # Do we need the "lib" prefix for modules?
16524 need_lib_prefix=$need_lib_prefix
16525
16526 # Do we need a version for libraries?
16527 need_version=$need_version
16528
16529 # Library versioning type.
16530 version_type=$version_type
16531
16532 # Shared library runtime path variable.
16533 runpath_var=$runpath_var
16534
16535 # Shared library path variable.
16536 shlibpath_var=$shlibpath_var
16537
16538 # Is shlibpath searched before the hard-coded library search path?
16539 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16540
16541 # Format of library name prefix.
16542 libname_spec=$lt_libname_spec
16543
16544 # List of archive names. First name is the real one, the rest are links.
16545 # The last name is the one that the linker finds with -lNAME
16546 library_names_spec=$lt_library_names_spec
16547
16548 # The coded name of the library, if different from the real name.
16549 soname_spec=$lt_soname_spec
16550
16551 # Permission mode override for installation of shared libraries.
16552 install_override_mode=$lt_install_override_mode
16553
16554 # Command to use after installation of a shared archive.
16555 postinstall_cmds=$lt_postinstall_cmds
16556
16557 # Command to use after uninstallation of a shared archive.
16558 postuninstall_cmds=$lt_postuninstall_cmds
16559
16560 # Commands used to finish a libtool library installation in a directory.
16561 finish_cmds=$lt_finish_cmds
16562
16563 # As "finish_cmds", except a single script fragment to be evaled but
16564 # not shown.
16565 finish_eval=$lt_finish_eval
16566
16567 # Whether we should hardcode library paths into libraries.
16568 hardcode_into_libs=$hardcode_into_libs
16569
16570 # Compile-time system search path for libraries.
16571 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16572
16573 # Run-time system search path for libraries.
16574 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16575
16576 # Whether dlopen is supported.
16577 dlopen_support=$enable_dlopen
16578
16579 # Whether dlopen of programs is supported.
16580 dlopen_self=$enable_dlopen_self
16581
16582 # Whether dlopen of statically linked programs is supported.
16583 dlopen_self_static=$enable_dlopen_self_static
16584
16585 # Commands to strip libraries.
16586 old_striplib=$lt_old_striplib
16587 striplib=$lt_striplib
16588
16589
16590 # The linker used to build libraries.
16591 LD=$lt_LD
16592
16593 # How to create reloadable object files.
16594 reload_flag=$lt_reload_flag
16595 reload_cmds=$lt_reload_cmds
16596
16597 # Commands used to build an old-style archive.
16598 old_archive_cmds=$lt_old_archive_cmds
16599
16600 # A language specific compiler.
16601 CC=$lt_compiler
16602
16603 # Is the compiler the GNU compiler?
16604 with_gcc=$GCC
16605
16606 # Compiler flag to turn off builtin functions.
16607 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16608
16609 # How to pass a linker flag through the compiler.
16610 wl=$lt_lt_prog_compiler_wl
16611
16612 # Additional compiler flags for building library objects.
16613 pic_flag=$lt_lt_prog_compiler_pic
16614
16615 # Compiler flag to prevent dynamic linking.
16616 link_static_flag=$lt_lt_prog_compiler_static
16617
16618 # Does compiler simultaneously support -c and -o options?
16619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16620
16621 # Whether or not to add -lc for building shared libraries.
16622 build_libtool_need_lc=$archive_cmds_need_lc
16623
16624 # Whether or not to disallow shared libs when runtime libs are static.
16625 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16626
16627 # Compiler flag to allow reflexive dlopens.
16628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16629
16630 # Compiler flag to generate shared objects directly from archives.
16631 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16632
16633 # Whether the compiler copes with passing no objects directly.
16634 compiler_needs_object=$lt_compiler_needs_object
16635
16636 # Create an old-style archive from a shared archive.
16637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16638
16639 # Create a temporary old-style archive to link instead of a shared archive.
16640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16641
16642 # Commands used to build a shared archive.
16643 archive_cmds=$lt_archive_cmds
16644 archive_expsym_cmds=$lt_archive_expsym_cmds
16645
16646 # Commands used to build a loadable module if different from building
16647 # a shared archive.
16648 module_cmds=$lt_module_cmds
16649 module_expsym_cmds=$lt_module_expsym_cmds
16650
16651 # Whether we are building with GNU ld or not.
16652 with_gnu_ld=$lt_with_gnu_ld
16653
16654 # Flag that allows shared libraries with undefined symbols to be built.
16655 allow_undefined_flag=$lt_allow_undefined_flag
16656
16657 # Flag that enforces no undefined symbols.
16658 no_undefined_flag=$lt_no_undefined_flag
16659
16660 # Flag to hardcode \$libdir into a binary during linking.
16661 # This must work even if \$libdir does not exist
16662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16663
16664 # If ld is used when linking, flag to hardcode \$libdir into a binary
16665 # during linking. This must work even if \$libdir does not exist.
16666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16667
16668 # Whether we need a single "-rpath" flag with a separated argument.
16669 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16670
16671 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16672 # DIR into the resulting binary.
16673 hardcode_direct=$hardcode_direct
16674
16675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16676 # DIR into the resulting binary and the resulting library dependency is
16677 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16678 # library is relocated.
16679 hardcode_direct_absolute=$hardcode_direct_absolute
16680
16681 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16682 # into the resulting binary.
16683 hardcode_minus_L=$hardcode_minus_L
16684
16685 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16686 # into the resulting binary.
16687 hardcode_shlibpath_var=$hardcode_shlibpath_var
16688
16689 # Set to "yes" if building a shared library automatically hardcodes DIR
16690 # into the library and all subsequent libraries and executables linked
16691 # against it.
16692 hardcode_automatic=$hardcode_automatic
16693
16694 # Set to yes if linker adds runtime paths of dependent libraries
16695 # to runtime path list.
16696 inherit_rpath=$inherit_rpath
16697
16698 # Whether libtool must link a program against all its dependency libraries.
16699 link_all_deplibs=$link_all_deplibs
16700
16701 # Fix the shell variable \$srcfile for the compiler.
16702 fix_srcfile_path=$lt_fix_srcfile_path
16703
16704 # Set to "yes" if exported symbols are required.
16705 always_export_symbols=$always_export_symbols
16706
16707 # The commands to list exported symbols.
16708 export_symbols_cmds=$lt_export_symbols_cmds
16709
16710 # Symbols that should not be listed in the preloaded symbols.
16711 exclude_expsyms=$lt_exclude_expsyms
16712
16713 # Symbols that must always be exported.
16714 include_expsyms=$lt_include_expsyms
16715
16716 # Commands necessary for linking programs (against libraries) with templates.
16717 prelink_cmds=$lt_prelink_cmds
16718
16719 # Specify filename containing input files.
16720 file_list_spec=$lt_file_list_spec
16721
16722 # How to hardcode a shared library path into an executable.
16723 hardcode_action=$hardcode_action
16724
16725 # ### END LIBTOOL CONFIG
16726
16727 _LT_EOF
16728
16729 case $host_os in
16730 aix3*)
16731 cat <<\_LT_EOF >> "$cfgfile"
16732 # AIX sometimes has problems with the GCC collect2 program. For some
16733 # reason, if we set the COLLECT_NAMES environment variable, the problems
16734 # vanish in a puff of smoke.
16735 if test "X${COLLECT_NAMES+set}" != Xset; then
16736 COLLECT_NAMES=
16737 export COLLECT_NAMES
16738 fi
16739 _LT_EOF
16740 ;;
16741 esac
16742
16743
16744 ltmain="$ac_aux_dir/ltmain.sh"
16745
16746
16747 # We use sed instead of cat because bash on DJGPP gets confused if
16748 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16749 # text mode, it properly converts lines to CR/LF. This bash problem
16750 # is reportedly fixed, but why not run on old versions too?
16751 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16752 || (rm -f "$cfgfile"; exit 1)
16753
16754 case $xsi_shell in
16755 yes)
16756 cat << \_LT_EOF >> "$cfgfile"
16757
16758 # func_dirname file append nondir_replacement
16759 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16760 # otherwise set result to NONDIR_REPLACEMENT.
16761 func_dirname ()
16762 {
16763 case ${1} in
16764 */*) func_dirname_result="${1%/*}${2}" ;;
16765 * ) func_dirname_result="${3}" ;;
16766 esac
16767 }
16768
16769 # func_basename file
16770 func_basename ()
16771 {
16772 func_basename_result="${1##*/}"
16773 }
16774
16775 # func_dirname_and_basename file append nondir_replacement
16776 # perform func_basename and func_dirname in a single function
16777 # call:
16778 # dirname: Compute the dirname of FILE. If nonempty,
16779 # add APPEND to the result, otherwise set result
16780 # to NONDIR_REPLACEMENT.
16781 # value returned in "$func_dirname_result"
16782 # basename: Compute filename of FILE.
16783 # value retuned in "$func_basename_result"
16784 # Implementation must be kept synchronized with func_dirname
16785 # and func_basename. For efficiency, we do not delegate to
16786 # those functions but instead duplicate the functionality here.
16787 func_dirname_and_basename ()
16788 {
16789 case ${1} in
16790 */*) func_dirname_result="${1%/*}${2}" ;;
16791 * ) func_dirname_result="${3}" ;;
16792 esac
16793 func_basename_result="${1##*/}"
16794 }
16795
16796 # func_stripname prefix suffix name
16797 # strip PREFIX and SUFFIX off of NAME.
16798 # PREFIX and SUFFIX must not contain globbing or regex special
16799 # characters, hashes, percent signs, but SUFFIX may contain a leading
16800 # dot (in which case that matches only a dot).
16801 func_stripname ()
16802 {
16803 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16804 # positional parameters, so assign one to ordinary parameter first.
16805 func_stripname_result=${3}
16806 func_stripname_result=${func_stripname_result#"${1}"}
16807 func_stripname_result=${func_stripname_result%"${2}"}
16808 }
16809
16810 # func_opt_split
16811 func_opt_split ()
16812 {
16813 func_opt_split_opt=${1%%=*}
16814 func_opt_split_arg=${1#*=}
16815 }
16816
16817 # func_lo2o object
16818 func_lo2o ()
16819 {
16820 case ${1} in
16821 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16822 *) func_lo2o_result=${1} ;;
16823 esac
16824 }
16825
16826 # func_xform libobj-or-source
16827 func_xform ()
16828 {
16829 func_xform_result=${1%.*}.lo
16830 }
16831
16832 # func_arith arithmetic-term...
16833 func_arith ()
16834 {
16835 func_arith_result=$(( $* ))
16836 }
16837
16838 # func_len string
16839 # STRING may not start with a hyphen.
16840 func_len ()
16841 {
16842 func_len_result=${#1}
16843 }
16844
16845 _LT_EOF
16846 ;;
16847 *) # Bourne compatible functions.
16848 cat << \_LT_EOF >> "$cfgfile"
16849
16850 # func_dirname file append nondir_replacement
16851 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16852 # otherwise set result to NONDIR_REPLACEMENT.
16853 func_dirname ()
16854 {
16855 # Extract subdirectory from the argument.
16856 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16857 if test "X$func_dirname_result" = "X${1}"; then
16858 func_dirname_result="${3}"
16859 else
16860 func_dirname_result="$func_dirname_result${2}"
16861 fi
16862 }
16863
16864 # func_basename file
16865 func_basename ()
16866 {
16867 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16868 }
16869
16870
16871 # func_stripname prefix suffix name
16872 # strip PREFIX and SUFFIX off of NAME.
16873 # PREFIX and SUFFIX must not contain globbing or regex special
16874 # characters, hashes, percent signs, but SUFFIX may contain a leading
16875 # dot (in which case that matches only a dot).
16876 # func_strip_suffix prefix name
16877 func_stripname ()
16878 {
16879 case ${2} in
16880 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16881 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16882 esac
16883 }
16884
16885 # sed scripts:
16886 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16887 my_sed_long_arg='1s/^-[^=]*=//'
16888
16889 # func_opt_split
16890 func_opt_split ()
16891 {
16892 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16893 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16894 }
16895
16896 # func_lo2o object
16897 func_lo2o ()
16898 {
16899 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16900 }
16901
16902 # func_xform libobj-or-source
16903 func_xform ()
16904 {
16905 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16906 }
16907
16908 # func_arith arithmetic-term...
16909 func_arith ()
16910 {
16911 func_arith_result=`expr "$@"`
16912 }
16913
16914 # func_len string
16915 # STRING may not start with a hyphen.
16916 func_len ()
16917 {
16918 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16919 }
16920
16921 _LT_EOF
16922 esac
16923
16924 case $lt_shell_append in
16925 yes)
16926 cat << \_LT_EOF >> "$cfgfile"
16927
16928 # func_append var value
16929 # Append VALUE to the end of shell variable VAR.
16930 func_append ()
16931 {
16932 eval "$1+=\$2"
16933 }
16934 _LT_EOF
16935 ;;
16936 *)
16937 cat << \_LT_EOF >> "$cfgfile"
16938
16939 # func_append var value
16940 # Append VALUE to the end of shell variable VAR.
16941 func_append ()
16942 {
16943 eval "$1=\$$1\$2"
16944 }
16945
16946 _LT_EOF
16947 ;;
16948 esac
16949
16950
16951 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16952 || (rm -f "$cfgfile"; exit 1)
16953
16954 mv -f "$cfgfile" "$ofile" ||
16955 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16956 chmod +x "$ofile"
16957
16958 ;;
16959 "default-1":C)
16960 for ac_file in $CONFIG_FILES; do
16961 # Support "outfile[:infile[:infile...]]"
16962 case "$ac_file" in
16963 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16964 esac
16965 # PO directories have a Makefile.in generated from Makefile.in.in.
16966 case "$ac_file" in */Makefile.in)
16967 # Adjust a relative srcdir.
16968 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16969 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16970 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16971 # In autoconf-2.13 it is called $ac_given_srcdir.
16972 # In autoconf-2.50 it is called $srcdir.
16973 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16974 case "$ac_given_srcdir" in
16975 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16976 /*) top_srcdir="$ac_given_srcdir" ;;
16977 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16978 esac
16979 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16980 rm -f "$ac_dir/POTFILES"
16981 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16982 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16983 POMAKEFILEDEPS="POTFILES.in"
16984 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16985 # on $ac_dir but don't depend on user-specified configuration
16986 # parameters.
16987 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16988 # The LINGUAS file contains the set of available languages.
16989 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16990 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16991 fi
16992 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16993 # Hide the ALL_LINGUAS assigment from automake.
16994 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16995 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16996 else
16997 # The set of available languages was given in configure.ac.
16998 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16999 fi
17000 case "$ac_given_srcdir" in
17001 .) srcdirpre= ;;
17002 *) srcdirpre='$(srcdir)/' ;;
17003 esac
17004 POFILES=
17005 GMOFILES=
17006 UPDATEPOFILES=
17007 DUMMYPOFILES=
17008 for lang in $ALL_LINGUAS; do
17009 POFILES="$POFILES $srcdirpre$lang.po"
17010 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17011 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17012 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17013 done
17014 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17015 # environment variable.
17016 INST_LINGUAS=
17017 if test -n "$ALL_LINGUAS"; then
17018 for presentlang in $ALL_LINGUAS; do
17019 useit=no
17020 if test "%UNSET%" != "$LINGUAS"; then
17021 desiredlanguages="$LINGUAS"
17022 else
17023 desiredlanguages="$ALL_LINGUAS"
17024 fi
17025 for desiredlang in $desiredlanguages; do
17026 # Use the presentlang catalog if desiredlang is
17027 # a. equal to presentlang, or
17028 # b. a variant of presentlang (because in this case,
17029 # presentlang can be used as a fallback for messages
17030 # which are not translated in the desiredlang catalog).
17031 case "$desiredlang" in
17032 "$presentlang"*) useit=yes;;
17033 esac
17034 done
17035 if test $useit = yes; then
17036 INST_LINGUAS="$INST_LINGUAS $presentlang"
17037 fi
17038 done
17039 fi
17040 CATALOGS=
17041 if test -n "$INST_LINGUAS"; then
17042 for lang in $INST_LINGUAS; do
17043 CATALOGS="$CATALOGS $lang.gmo"
17044 done
17045 fi
17046 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17047 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"
17048 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17049 if test -f "$f"; then
17050 case "$f" in
17051 *.orig | *.bak | *~) ;;
17052 *) cat "$f" >> "$ac_dir/Makefile" ;;
17053 esac
17054 fi
17055 done
17056 fi
17057 ;;
17058 esac
17059 done ;;
17060
17061 esac
17062 done # for ac_tag
17063
17064
17065 as_fn_exit 0
17066 _ACEOF
17067 ac_clean_files=$ac_clean_files_save
17068
17069 test $ac_write_fail = 0 ||
17070 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17071
17072
17073 # configure is writing to config.log, and then calls config.status.
17074 # config.status does its own redirection, appending to config.log.
17075 # Unfortunately, on DOS this fails, as config.log is still kept open
17076 # by configure, so config.status won't be able to write to it; its
17077 # output is simply discarded. So we exec the FD to /dev/null,
17078 # effectively closing config.log, so it can be properly (re)opened and
17079 # appended to by config.status. When coming back to configure, we
17080 # need to make the FD available again.
17081 if test "$no_create" != yes; then
17082 ac_cs_success=:
17083 ac_config_status_args=
17084 test "$silent" = yes &&
17085 ac_config_status_args="$ac_config_status_args --quiet"
17086 exec 5>/dev/null
17087 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17088 exec 5>>config.log
17089 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17090 # would make configure fail if this is the last instruction.
17091 $ac_cs_success || as_fn_exit $?
17092 fi
17093 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17095 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17096 fi
17097
This page took 0.483194 seconds and 4 git commands to generate.