PR 14072
[deliverable/binutils-gdb.git] / gas / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="as.h"
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 LIBM
606 ALLOCA
607 GENINSRC_NEVER_FALSE
608 GENINSRC_NEVER_TRUE
609 MAINT
610 MAINTAINER_MODE_FALSE
611 MAINTAINER_MODE_TRUE
612 MSGMERGE
613 MSGFMT
614 MKINSTALLDIRS
615 CATOBJEXT
616 GENCAT
617 INSTOBJEXT
618 DATADIRNAME
619 CATALOGS
620 POSUB
621 GMSGFMT
622 XGETTEXT
623 INCINTL
624 LIBINTL_DEP
625 LIBINTL
626 USE_NLS
627 LEXLIB
628 LEX_OUTPUT_ROOT
629 LEX
630 YFLAGS
631 YACC
632 OPCODES_LIB
633 atof
634 install_tooldir
635 te_file
636 obj_format
637 target_cpu_type
638 extra_objects
639 cgen_cpu_prefix
640 GDBINIT
641 NO_WERROR
642 WARN_CFLAGS
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 ac_ct_AR
651 AR
652 DLLTOOL
653 OBJDUMP
654 LN_S
655 NM
656 ac_ct_DUMPBIN
657 DUMPBIN
658 LD
659 FGREP
660 SED
661 LIBTOOL
662 EGREP
663 GREP
664 CPP
665 am__fastdepCC_FALSE
666 am__fastdepCC_TRUE
667 CCDEPMODE
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 am__untar
675 am__tar
676 AMTAR
677 am__leading_dot
678 SET_MAKE
679 AWK
680 mkdir_p
681 MKDIR_P
682 INSTALL_STRIP_PROGRAM
683 STRIP
684 install_sh
685 MAKEINFO
686 AUTOHEADER
687 AUTOMAKE
688 AUTOCONF
689 ACLOCAL
690 VERSION
691 PACKAGE
692 CYGPATH_W
693 am__isrc
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 OBJEXT
698 EXEEXT
699 ac_ct_CC
700 CPPFLAGS
701 LDFLAGS
702 CFLAGS
703 CC
704 target_os
705 target_vendor
706 target_cpu
707 target
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_dependency_tracking
758 enable_plugins
759 enable_largefile
760 enable_shared
761 enable_static
762 with_pic
763 enable_fast_install
764 with_gnu_ld
765 with_sysroot
766 enable_libtool_lock
767 enable_targets
768 enable_checking
769 enable_werror
770 enable_build_warnings
771 enable_nls
772 enable_maintainer_mode
773 with_zlib
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 CPP
784 YACC
785 YFLAGS'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
845 fi
846
847 case $ac_option in
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *) ac_optarg=yes ;;
850 esac
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
857
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
862
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
877
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
882
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
898 *"
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
905
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
910
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
915
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
931
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
940
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
944
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
951
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
956
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
962
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
969
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
974
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
979
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
986
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
991
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
998
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1003
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1007
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1011
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1015
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1024
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1029
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1036
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1043
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1060
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1065
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1070
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1074
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1080
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1091
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1096
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1101
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1108
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1113
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1116
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1119
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1128 *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1135
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1144 *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
1170 -*) as_fn_error "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information."
1172 ;;
1173
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error "missing argument to $ac_option"
1198 fi
1199
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1206 fi
1207
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1213 do
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1228
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1235
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures this package to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393 _ACEOF
1394 fi
1395
1396 if test -n "$ac_init_help"; then
1397
1398 cat <<\_ACEOF
1399
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
1406 --enable-plugins Enable support for plugins (defaults no)
1407 --disable-largefile omit support for large files
1408 --enable-shared[=PKGS] build shared libraries [default=yes]
1409 --enable-static[=PKGS] build static libraries [default=yes]
1410 --enable-fast-install[=PKGS]
1411 optimize for fast installation [default=yes]
1412 --disable-libtool-lock avoid locking (might break parallel builds)
1413 --enable-targets alternative target configurations besides the primary
1414 --enable-checking enable run-time checks
1415 --enable-werror treat compile warnings as errors
1416 --enable-build-warnings enable build-time compiler warnings
1417 --disable-nls do not use Native Language Support
1418 --enable-maintainer-mode enable make rules and dependencies not useful
1419 (and sometimes confusing) to the casual installer
1420
1421 Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-pic try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1427 --with-sysroot=DIR Search for dependent libraries within DIR
1428 (or the compiler's sysroot if not specified).
1429 --with-zlib include zlib support (auto/yes/no) default=auto
1430
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
1440 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1441 the first program found out of: `bison -y', `byacc', `yacc'.
1442 YFLAGS The list of arguments that will be passed by default to $YACC.
1443 This script will default YFLAGS to the empty string to avoid a
1444 default value of `-d' given by some make applications.
1445
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1448
1449 Report bugs to the package provider.
1450 _ACEOF
1451 ac_status=$?
1452 fi
1453
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1461
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 *)
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1477
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1507 fi
1508
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 configure
1513 generated by GNU Autoconf 2.64
1514
1515 Copyright (C) 2009 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1520 fi
1521
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1525
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1530 {
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
1561
1562 } # ac_fn_c_try_compile
1563
1564 # ac_fn_c_try_link LINENO
1565 # -----------------------
1566 # Try to link conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_link ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest$ac_exeext
1571 if { { ac_try="$ac_link"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_link") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest$ac_exeext && {
1590 test "$cross_compiling" = yes ||
1591 $as_test_x conftest$ac_exeext
1592 }; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1597
1598 ac_retval=1
1599 fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1606 return $ac_retval
1607
1608 } # ac_fn_c_try_link
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } >/dev/null && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641 fi
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 return $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1650 # the include files in INCLUDES and setting the cache variable VAR
1651 # accordingly.
1652 ac_fn_c_check_header_mongrel ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1659 $as_echo_n "(cached) " >&6
1660 fi
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 else
1665 # Is the header compilable?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1667 $as_echo_n "checking $2 usability... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 $4
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_header_compiler=yes
1675 else
1676 ac_header_compiler=no
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1680 $as_echo "$ac_header_compiler" >&6; }
1681
1682 # Is the header present?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1684 $as_echo_n "checking $2 presence... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_cpp "$LINENO"; then :
1690 ac_header_preproc=yes
1691 else
1692 ac_header_preproc=no
1693 fi
1694 rm -f conftest.err conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1696 $as_echo "$ac_header_preproc" >&6; }
1697
1698 # So? What about this header?
1699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700 yes:no: )
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1702 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1705 ;;
1706 no:yes:* )
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1708 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1710 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1712 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1714 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717 ;;
1718 esac
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 eval "$3=\$ac_header_compiler"
1725 fi
1726 eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
1732 } # ac_fn_c_check_header_mongrel
1733
1734 # ac_fn_c_try_run LINENO
1735 # ----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737 # that executables *can* be run.
1738 ac_fn_c_try_run ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752 { { case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_try") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; }; }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: program exited with status $ac_status" >&5
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=$ac_status
1769 fi
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 return $ac_retval
1773
1774 } # ac_fn_c_try_run
1775
1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 $4
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805 } # ac_fn_c_check_header_compile
1806
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1822 #define $2 innocuous_$2
1823
1824 /* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $2 (); below.
1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827 <limits.h> exists even on freestanding compilers. */
1828
1829 #ifdef __STDC__
1830 # include <limits.h>
1831 #else
1832 # include <assert.h>
1833 #endif
1834
1835 #undef $2
1836
1837 /* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 char $2 ();
1844 /* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847 #if defined __stub_$2 || defined __stub___$2
1848 choke me
1849 #endif
1850
1851 int
1852 main ()
1853 {
1854 return $2 ();
1855 ;
1856 return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_link "$LINENO"; then :
1860 eval "$3=yes"
1861 else
1862 eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext \
1865 conftest$ac_exeext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872 } # ac_fn_c_check_func
1873
1874 # ac_fn_c_check_decl LINENO SYMBOL VAR
1875 # ------------------------------------
1876 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1877 ac_fn_c_check_decl ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 as_decl_name=`echo $2|sed 's/ *(.*//'`
1881 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1883 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 $4
1890 int
1891 main ()
1892 {
1893 #ifndef $as_decl_name
1894 #ifdef __cplusplus
1895 (void) $as_decl_use;
1896 #else
1897 (void) $as_decl_name;
1898 #endif
1899 #endif
1900
1901 ;
1902 return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917 } # ac_fn_c_check_decl
1918 cat >config.log <<_ACEOF
1919 This file contains any messages produced by compilers while
1920 running configure, to aid debugging if configure makes a mistake.
1921
1922 It was created by $as_me, which was
1923 generated by GNU Autoconf 2.64. Invocation command line was
1924
1925 $ $0 $@
1926
1927 _ACEOF
1928 exec 5>>config.log
1929 {
1930 cat <<_ASUNAME
1931 ## --------- ##
1932 ## Platform. ##
1933 ## --------- ##
1934
1935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940
1941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1942 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1943
1944 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1945 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1947 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1948 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1949 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1950 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1951
1952 _ASUNAME
1953
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957 IFS=$as_save_IFS
1958 test -z "$as_dir" && as_dir=.
1959 $as_echo "PATH: $as_dir"
1960 done
1961 IFS=$as_save_IFS
1962
1963 } >&5
1964
1965 cat >&5 <<_ACEOF
1966
1967
1968 ## ----------- ##
1969 ## Core tests. ##
1970 ## ----------- ##
1971
1972 _ACEOF
1973
1974
1975 # Keep a trace of the command line.
1976 # Strip out --no-create and --no-recursion so they do not pile up.
1977 # Strip out --silent because we don't want to record it for future runs.
1978 # Also quote any args containing shell meta-characters.
1979 # Make two passes to allow for proper duplicate-argument suppression.
1980 ac_configure_args=
1981 ac_configure_args0=
1982 ac_configure_args1=
1983 ac_must_keep_next=false
1984 for ac_pass in 1 2
1985 do
1986 for ac_arg
1987 do
1988 case $ac_arg in
1989 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1991 | -silent | --silent | --silen | --sile | --sil)
1992 continue ;;
1993 *\'*)
1994 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 esac
1996 case $ac_pass in
1997 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1998 2)
1999 as_fn_append ac_configure_args1 " '$ac_arg'"
2000 if test $ac_must_keep_next = true; then
2001 ac_must_keep_next=false # Got value, back to normal.
2002 else
2003 case $ac_arg in
2004 *=* | --config-cache | -C | -disable-* | --disable-* \
2005 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2006 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2007 | -with-* | --with-* | -without-* | --without-* | --x)
2008 case "$ac_configure_args0 " in
2009 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2010 esac
2011 ;;
2012 -* ) ac_must_keep_next=true ;;
2013 esac
2014 fi
2015 as_fn_append ac_configure_args " '$ac_arg'"
2016 ;;
2017 esac
2018 done
2019 done
2020 { ac_configure_args0=; unset ac_configure_args0;}
2021 { ac_configure_args1=; unset ac_configure_args1;}
2022
2023 # When interrupted or exit'd, cleanup temporary files, and complete
2024 # config.log. We remove comments because anyway the quotes in there
2025 # would cause problems or look ugly.
2026 # WARNING: Use '\'' to represent an apostrophe within the trap.
2027 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2028 trap 'exit_status=$?
2029 # Save into config.log some information that might help in debugging.
2030 {
2031 echo
2032
2033 cat <<\_ASBOX
2034 ## ---------------- ##
2035 ## Cache variables. ##
2036 ## ---------------- ##
2037 _ASBOX
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
2040 (
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
2056 (set) 2>&1 |
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
2059 sed -n \
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
2063 *)
2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 ;;
2066 esac |
2067 sort
2068 )
2069 echo
2070
2071 cat <<\_ASBOX
2072 ## ----------------- ##
2073 ## Output variables. ##
2074 ## ----------------- ##
2075 _ASBOX
2076 echo
2077 for ac_var in $ac_subst_vars
2078 do
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
2084 done | sort
2085 echo
2086
2087 if test -n "$ac_subst_files"; then
2088 cat <<\_ASBOX
2089 ## ------------------- ##
2090 ## File substitutions. ##
2091 ## ------------------- ##
2092 _ASBOX
2093 echo
2094 for ac_var in $ac_subst_files
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 $as_echo "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103 fi
2104
2105 if test -s confdefs.h; then
2106 cat <<\_ASBOX
2107 ## ----------- ##
2108 ## confdefs.h. ##
2109 ## ----------- ##
2110 _ASBOX
2111 echo
2112 cat confdefs.h
2113 echo
2114 fi
2115 test "$ac_signal" != 0 &&
2116 $as_echo "$as_me: caught signal $ac_signal"
2117 $as_echo "$as_me: exit $exit_status"
2118 } >&5
2119 rm -f core *.core core.conftest.* &&
2120 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2121 exit $exit_status
2122 ' 0
2123 for ac_signal in 1 2 13 15; do
2124 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2125 done
2126 ac_signal=0
2127
2128 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2129 rm -f -r conftest* confdefs.h
2130
2131 $as_echo "/* confdefs.h */" > confdefs.h
2132
2133 # Predefined preprocessor variables.
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_NAME "$PACKAGE_NAME"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_STRING "$PACKAGE_STRING"
2149 _ACEOF
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_URL "$PACKAGE_URL"
2157 _ACEOF
2158
2159
2160 # Let the site file select an alternate cache file if it wants to.
2161 # Prefer an explicitly selected file to automatically selected ones.
2162 ac_site_file1=NONE
2163 ac_site_file2=NONE
2164 if test -n "$CONFIG_SITE"; then
2165 ac_site_file1=$CONFIG_SITE
2166 elif test "x$prefix" != xNONE; then
2167 ac_site_file1=$prefix/share/config.site
2168 ac_site_file2=$prefix/etc/config.site
2169 else
2170 ac_site_file1=$ac_default_prefix/share/config.site
2171 ac_site_file2=$ac_default_prefix/etc/config.site
2172 fi
2173 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2174 do
2175 test "x$ac_site_file" = xNONE && continue
2176 if test -r "$ac_site_file"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2178 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2179 sed 's/^/| /' "$ac_site_file" >&5
2180 . "$ac_site_file"
2181 fi
2182 done
2183
2184 if test -r "$cache_file"; then
2185 # Some versions of bash will fail to source /dev/null (special
2186 # files actually), so we avoid doing that.
2187 if test -f "$cache_file"; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2189 $as_echo "$as_me: loading cache $cache_file" >&6;}
2190 case $cache_file in
2191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2192 *) . "./$cache_file";;
2193 esac
2194 fi
2195 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2197 $as_echo "$as_me: creating cache $cache_file" >&6;}
2198 >$cache_file
2199 fi
2200
2201 # Check that the precious variables saved in the cache have kept the same
2202 # value.
2203 ac_cache_corrupted=false
2204 for ac_var in $ac_precious_vars; do
2205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2206 eval ac_new_set=\$ac_env_${ac_var}_set
2207 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2208 eval ac_new_val=\$ac_env_${ac_var}_value
2209 case $ac_old_set,$ac_new_set in
2210 set,)
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2212 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2213 ac_cache_corrupted=: ;;
2214 ,set)
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2216 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2217 ac_cache_corrupted=: ;;
2218 ,);;
2219 *)
2220 if test "x$ac_old_val" != "x$ac_new_val"; then
2221 # differences in whitespace do not lead to failure.
2222 ac_old_val_w=`echo x $ac_old_val`
2223 ac_new_val_w=`echo x $ac_new_val`
2224 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2226 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2227 ac_cache_corrupted=:
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2230 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2231 eval $ac_var=\$ac_old_val
2232 fi
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2234 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2236 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2237 fi;;
2238 esac
2239 # Pass precious variables to config.status.
2240 if test "$ac_new_set" = set; then
2241 case $ac_new_val in
2242 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2243 *) ac_arg=$ac_var=$ac_new_val ;;
2244 esac
2245 case " $ac_configure_args " in
2246 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2247 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2248 esac
2249 fi
2250 done
2251 if $ac_cache_corrupted; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2255 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2256 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2257 fi
2258 ## -------------------- ##
2259 ## Main body of script. ##
2260 ## -------------------- ##
2261
2262 ac_ext=c
2263 ac_cpp='$CPP $CPPFLAGS'
2264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267
2268
2269
2270
2271
2272
2273
2274 ac_aux_dir=
2275 for ac_dir in .. "$srcdir"/..; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
2283 done
2284 if test -z "$ac_aux_dir"; then
2285 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2286 fi
2287
2288 # These three variables are undocumented and unsupported,
2289 # and are intended to be withdrawn in a future Autoconf release.
2290 # They can cause serious problems if a builder's source tree is in a directory
2291 # whose full name contains unusual characters.
2292 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
2296
2297 # Make sure we can run config.sub.
2298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302 $as_echo_n "checking build system type... " >&6; }
2303 if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 ac_build_alias=$build_alias
2307 test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309 test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316 $as_echo "$ac_cv_build" >&6; }
2317 case $ac_cv_build in
2318 *-*-*) ;;
2319 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320 esac
2321 build=$ac_cv_build
2322 ac_save_IFS=$IFS; IFS='-'
2323 set x $ac_cv_build
2324 shift
2325 build_cpu=$1
2326 build_vendor=$2
2327 shift; shift
2328 # Remember, the first character of IFS is used to create $*,
2329 # except with old shells:
2330 build_os=$*
2331 IFS=$ac_save_IFS
2332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2333
2334
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2336 $as_echo_n "checking host system type... " >&6; }
2337 if test "${ac_cv_host+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 if test "x$host_alias" = x; then
2341 ac_cv_host=$ac_cv_build
2342 else
2343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2344 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2345 fi
2346
2347 fi
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2349 $as_echo "$ac_cv_host" >&6; }
2350 case $ac_cv_host in
2351 *-*-*) ;;
2352 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2353 esac
2354 host=$ac_cv_host
2355 ac_save_IFS=$IFS; IFS='-'
2356 set x $ac_cv_host
2357 shift
2358 host_cpu=$1
2359 host_vendor=$2
2360 shift; shift
2361 # Remember, the first character of IFS is used to create $*,
2362 # except with old shells:
2363 host_os=$*
2364 IFS=$ac_save_IFS
2365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2366
2367
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2369 $as_echo_n "checking target system type... " >&6; }
2370 if test "${ac_cv_target+set}" = set; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 if test "x$target_alias" = x; then
2374 ac_cv_target=$ac_cv_host
2375 else
2376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2377 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2378 fi
2379
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2382 $as_echo "$ac_cv_target" >&6; }
2383 case $ac_cv_target in
2384 *-*-*) ;;
2385 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2386 esac
2387 target=$ac_cv_target
2388 ac_save_IFS=$IFS; IFS='-'
2389 set x $ac_cv_target
2390 shift
2391 target_cpu=$1
2392 target_vendor=$2
2393 shift; shift
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2396 target_os=$*
2397 IFS=$ac_save_IFS
2398 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2399
2400
2401 # The aliases save the names the user supplied, while $host etc.
2402 # will get canonicalized.
2403 test -n "$target_alias" &&
2404 test "$program_prefix$program_suffix$program_transform_name" = \
2405 NONENONEs,x,x, &&
2406 program_prefix=${target_alias}-
2407 ac_ext=c
2408 ac_cpp='$CPP $CPPFLAGS'
2409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 if test -n "$ac_tool_prefix"; then
2413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if test "${ac_cv_prog_CC+set}" = set; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434 done
2435 done
2436 IFS=$as_save_IFS
2437
2438 fi
2439 fi
2440 CC=$ac_cv_prog_CC
2441 if test -n "$CC"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2443 $as_echo "$CC" >&6; }
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446 $as_echo "no" >&6; }
2447 fi
2448
2449
2450 fi
2451 if test -z "$ac_cv_prog_CC"; then
2452 ac_ct_CC=$CC
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454 set dummy gcc; ac_word=$2
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2465 do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_ac_ct_CC="gcc"
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474 done
2475 done
2476 IFS=$as_save_IFS
2477
2478 fi
2479 fi
2480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481 if test -n "$ac_ct_CC"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2483 $as_echo "$ac_ct_CC" >&6; }
2484 else
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2486 $as_echo "no" >&6; }
2487 fi
2488
2489 if test "x$ac_ct_CC" = x; then
2490 CC=""
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493 yes:)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 CC=$ac_ct_CC
2499 fi
2500 else
2501 CC="$ac_cv_prog_CC"
2502 fi
2503
2504 if test -z "$CC"; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}cc; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 CC=$ac_cv_prog_CC
2534 if test -n "$CC"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2536 $as_echo "$CC" >&6; }
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542
2543 fi
2544 fi
2545 if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547 set dummy cc; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if test "${ac_cv_prog_CC+set}" = set; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 else
2556 ac_prog_rejected=no
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2567 fi
2568 ac_cv_prog_CC="cc"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 fi
2587 fi
2588 fi
2589 fi
2590 CC=$ac_cv_prog_CC
2591 if test -n "$CC"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2593 $as_echo "$CC" >&6; }
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596 $as_echo "no" >&6; }
2597 fi
2598
2599
2600 fi
2601 if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
2603 for ac_prog in cl.exe
2604 do
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2635 $as_echo "$CC" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2639 fi
2640
2641
2642 test -n "$CC" && break
2643 done
2644 fi
2645 if test -z "$CC"; then
2646 ac_ct_CC=$CC
2647 for ac_prog in cl.exe
2648 do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_ac_ct_CC="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677 if test -n "$ac_ct_CC"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2679 $as_echo "$ac_ct_CC" >&6; }
2680 else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686 test -n "$ac_ct_CC" && break
2687 done
2688
2689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693 yes:)
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696 ac_tool_warned=yes ;;
2697 esac
2698 CC=$ac_ct_CC
2699 fi
2700 fi
2701
2702 fi
2703
2704
2705 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707 as_fn_error "no acceptable C compiler found in \$PATH
2708 See \`config.log' for more details." "$LINENO" 5; }
2709
2710 # Provide some information about the compiler.
2711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2712 set X $ac_compile
2713 ac_compiler=$2
2714 for ac_option in --version -v -V -qversion; do
2715 { { ac_try="$ac_compiler $ac_option >&5"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721 $as_echo "$ac_try_echo"; } >&5
2722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2723 ac_status=$?
2724 if test -s conftest.err; then
2725 sed '10a\
2726 ... rest of stderr output deleted ...
2727 10q' conftest.err >conftest.er1
2728 cat conftest.er1 >&5
2729 rm -f conftest.er1 conftest.err
2730 fi
2731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2732 test $ac_status = 0; }
2733 done
2734
2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2736 /* end confdefs.h. */
2737
2738 int
2739 main ()
2740 {
2741
2742 ;
2743 return 0;
2744 }
2745 _ACEOF
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2750 # of exeext.
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2752 $as_echo_n "checking for C compiler default output file name... " >&6; }
2753 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754
2755 # The possible output files:
2756 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2757
2758 ac_rmfiles=
2759 for ac_file in $ac_files
2760 do
2761 case $ac_file in
2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2763 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2764 esac
2765 done
2766 rm -f $ac_rmfiles
2767
2768 if { { ac_try="$ac_link_default"
2769 case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774 $as_echo "$ac_try_echo"; } >&5
2775 (eval "$ac_link_default") 2>&5
2776 ac_status=$?
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; }; then :
2779 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2780 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2781 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2782 # so that the user can short-circuit this test for compilers unknown to
2783 # Autoconf.
2784 for ac_file in $ac_files ''
2785 do
2786 test -f "$ac_file" || continue
2787 case $ac_file in
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2789 ;;
2790 [ab].out )
2791 # We found the default executable, but exeext='' is most
2792 # certainly right.
2793 break;;
2794 *.* )
2795 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2796 then :; else
2797 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 fi
2799 # We set ac_cv_exeext here because the later test for it is not
2800 # safe: cross compilers may not add the suffix if given an `-o'
2801 # argument, so we may need to know it at that point already.
2802 # Even if this section looks crufty: it has the advantage of
2803 # actually working.
2804 break;;
2805 * )
2806 break;;
2807 esac
2808 done
2809 test "$ac_cv_exeext" = no && ac_cv_exeext=
2810
2811 else
2812 ac_file=''
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2815 $as_echo "$ac_file" >&6; }
2816 if test -z "$ac_file"; then :
2817 $as_echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2822 { as_fn_set_status 77
2823 as_fn_error "C compiler cannot create executables
2824 See \`config.log' for more details." "$LINENO" 5; }; }
2825 fi
2826 ac_exeext=$ac_cv_exeext
2827
2828 # Check that the compiler produces executables we can run. If not, either
2829 # the compiler is broken, or we cross compile.
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2831 $as_echo_n "checking whether the C compiler works... " >&6; }
2832 # If not cross compiling, check that we can run a simple program.
2833 if test "$cross_compiling" != yes; then
2834 if { ac_try='./$ac_file'
2835 { { case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_try") 2>&5
2842 ac_status=$?
2843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2844 test $ac_status = 0; }; }; then
2845 cross_compiling=no
2846 else
2847 if test "$cross_compiling" = maybe; then
2848 cross_compiling=yes
2849 else
2850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 as_fn_error "cannot run C compiled programs.
2853 If you meant to cross compile, use \`--host'.
2854 See \`config.log' for more details." "$LINENO" 5; }
2855 fi
2856 fi
2857 fi
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2859 $as_echo "yes" >&6; }
2860
2861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2862 ac_clean_files=$ac_clean_files_save
2863 # Check that the compiler produces executables we can run. If not, either
2864 # the compiler is broken, or we cross compile.
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2866 $as_echo_n "checking whether we are cross compiling... " >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2868 $as_echo "$cross_compiling" >&6; }
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2871 $as_echo_n "checking for suffix of executables... " >&6; }
2872 if { { ac_try="$ac_link"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878 $as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_link") 2>&5
2880 ac_status=$?
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }; then :
2883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2885 # work properly (i.e., refer to `conftest.exe'), while it won't with
2886 # `rm'.
2887 for ac_file in conftest.exe conftest conftest.*; do
2888 test -f "$ac_file" || continue
2889 case $ac_file in
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2892 break;;
2893 * ) break;;
2894 esac
2895 done
2896 else
2897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899 as_fn_error "cannot compute suffix of executables: cannot compile and link
2900 See \`config.log' for more details." "$LINENO" 5; }
2901 fi
2902 rm -f conftest$ac_cv_exeext
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2904 $as_echo "$ac_cv_exeext" >&6; }
2905
2906 rm -f conftest.$ac_ext
2907 EXEEXT=$ac_cv_exeext
2908 ac_exeext=$EXEEXT
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2910 $as_echo_n "checking for suffix of object files... " >&6; }
2911 if test "${ac_cv_objext+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915 /* end confdefs.h. */
2916
2917 int
2918 main ()
2919 {
2920
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.o conftest.obj
2926 if { { ac_try="$ac_compile"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932 $as_echo "$ac_try_echo"; } >&5
2933 (eval "$ac_compile") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }; then :
2937 for ac_file in conftest.o conftest.obj conftest.*; do
2938 test -f "$ac_file" || continue;
2939 case $ac_file in
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2942 break;;
2943 esac
2944 done
2945 else
2946 $as_echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 as_fn_error "cannot compute suffix of object files: cannot compile
2952 See \`config.log' for more details." "$LINENO" 5; }
2953 fi
2954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2957 $as_echo "$ac_cv_objext" >&6; }
2958 OBJEXT=$ac_cv_objext
2959 ac_objext=$OBJEXT
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2962 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2967
2968 int
2969 main ()
2970 {
2971 #ifndef __GNUC__
2972 choke me
2973 #endif
2974
2975 ;
2976 return 0;
2977 }
2978 _ACEOF
2979 if ac_fn_c_try_compile "$LINENO"; then :
2980 ac_compiler_gnu=yes
2981 else
2982 ac_compiler_gnu=no
2983 fi
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2986
2987 fi
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2989 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2990 if test $ac_compiler_gnu = yes; then
2991 GCC=yes
2992 else
2993 GCC=
2994 fi
2995 ac_test_CFLAGS=${CFLAGS+set}
2996 ac_save_CFLAGS=$CFLAGS
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2998 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2999 if test "${ac_cv_prog_cc_g+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 ac_save_c_werror_flag=$ac_c_werror_flag
3003 ac_c_werror_flag=yes
3004 ac_cv_prog_cc_g=no
3005 CFLAGS="-g"
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008
3009 int
3010 main ()
3011 {
3012
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 if ac_fn_c_try_compile "$LINENO"; then :
3018 ac_cv_prog_cc_g=yes
3019 else
3020 CFLAGS=""
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023
3024 int
3025 main ()
3026 {
3027
3028 ;
3029 return 0;
3030 }
3031 _ACEOF
3032 if ac_fn_c_try_compile "$LINENO"; then :
3033
3034 else
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3036 CFLAGS="-g"
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3039
3040 int
3041 main ()
3042 {
3043
3044 ;
3045 return 0;
3046 }
3047 _ACEOF
3048 if ac_fn_c_try_compile "$LINENO"; then :
3049 ac_cv_prog_cc_g=yes
3050 fi
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 fi
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_c_werror_flag=$ac_save_c_werror_flag
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3059 $as_echo "$ac_cv_prog_cc_g" >&6; }
3060 if test "$ac_test_CFLAGS" = set; then
3061 CFLAGS=$ac_save_CFLAGS
3062 elif test $ac_cv_prog_cc_g = yes; then
3063 if test "$GCC" = yes; then
3064 CFLAGS="-g -O2"
3065 else
3066 CFLAGS="-g"
3067 fi
3068 else
3069 if test "$GCC" = yes; then
3070 CFLAGS="-O2"
3071 else
3072 CFLAGS=
3073 fi
3074 fi
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3076 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3077 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 ac_cv_prog_cc_c89=no
3081 ac_save_CC=$CC
3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083 /* end confdefs.h. */
3084 #include <stdarg.h>
3085 #include <stdio.h>
3086 #include <sys/types.h>
3087 #include <sys/stat.h>
3088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3089 struct buf { int x; };
3090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3091 static char *e (p, i)
3092 char **p;
3093 int i;
3094 {
3095 return p[i];
3096 }
3097 static char *f (char * (*g) (char **, int), char **p, ...)
3098 {
3099 char *s;
3100 va_list v;
3101 va_start (v,p);
3102 s = g (p, va_arg (v,int));
3103 va_end (v);
3104 return s;
3105 }
3106
3107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3108 function prototypes and stuff, but not '\xHH' hex character constants.
3109 These don't provoke an error unfortunately, instead are silently treated
3110 as 'x'. The following induces an error, until -std is added to get
3111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3112 array size at least. It's necessary to write '\x00'==0 to get something
3113 that's true only with -std. */
3114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3115
3116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3117 inside strings and character constants. */
3118 #define FOO(x) 'x'
3119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3120
3121 int test (int i, double x);
3122 struct s1 {int (*f) (int a);};
3123 struct s2 {int (*f) (double a);};
3124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3125 int argc;
3126 char **argv;
3127 int
3128 main ()
3129 {
3130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3131 ;
3132 return 0;
3133 }
3134 _ACEOF
3135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3137 do
3138 CC="$ac_save_CC $ac_arg"
3139 if ac_fn_c_try_compile "$LINENO"; then :
3140 ac_cv_prog_cc_c89=$ac_arg
3141 fi
3142 rm -f core conftest.err conftest.$ac_objext
3143 test "x$ac_cv_prog_cc_c89" != "xno" && break
3144 done
3145 rm -f conftest.$ac_ext
3146 CC=$ac_save_CC
3147
3148 fi
3149 # AC_CACHE_VAL
3150 case "x$ac_cv_prog_cc_c89" in
3151 x)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3153 $as_echo "none needed" >&6; } ;;
3154 xno)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3156 $as_echo "unsupported" >&6; } ;;
3157 *)
3158 CC="$CC $ac_cv_prog_cc_c89"
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3161 esac
3162 if test "x$ac_cv_prog_cc_c89" != xno; then :
3163
3164 fi
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3174 $as_echo_n "checking for library containing strerror... " >&6; }
3175 if test "${ac_cv_search_strerror+set}" = set; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 ac_func_search_save_LIBS=$LIBS
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3181
3182 /* Override any GCC internal prototype to avoid an error.
3183 Use char because int might match the return type of a GCC
3184 builtin and then its argument prototype would still apply. */
3185 #ifdef __cplusplus
3186 extern "C"
3187 #endif
3188 char strerror ();
3189 int
3190 main ()
3191 {
3192 return strerror ();
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 for ac_lib in '' cposix; do
3198 if test -z "$ac_lib"; then
3199 ac_res="none required"
3200 else
3201 ac_res=-l$ac_lib
3202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3203 fi
3204 if ac_fn_c_try_link "$LINENO"; then :
3205 ac_cv_search_strerror=$ac_res
3206 fi
3207 rm -f core conftest.err conftest.$ac_objext \
3208 conftest$ac_exeext
3209 if test "${ac_cv_search_strerror+set}" = set; then :
3210 break
3211 fi
3212 done
3213 if test "${ac_cv_search_strerror+set}" = set; then :
3214
3215 else
3216 ac_cv_search_strerror=no
3217 fi
3218 rm conftest.$ac_ext
3219 LIBS=$ac_func_search_save_LIBS
3220 fi
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3222 $as_echo "$ac_cv_search_strerror" >&6; }
3223 ac_res=$ac_cv_search_strerror
3224 if test "$ac_res" != no; then :
3225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3226
3227 fi
3228
3229
3230 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3231 am__api_version='1.11'
3232
3233 # Find a good install program. We prefer a C program (faster),
3234 # so one script is as good as another. But avoid the broken or
3235 # incompatible versions:
3236 # SysV /etc/install, /usr/sbin/install
3237 # SunOS /usr/etc/install
3238 # IRIX /sbin/install
3239 # AIX /bin/install
3240 # AmigaOS /C/install, which installs bootblocks on floppy discs
3241 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3242 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3243 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3244 # OS/2's system install, which has a completely different semantic
3245 # ./install, which can be erroneously created by make from ./install.sh.
3246 # Reject install programs that cannot install multiple files.
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3248 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3249 if test -z "$INSTALL"; then
3250 if test "${ac_cv_path_install+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 # Account for people who put trailing slashes in PATH elements.
3259 case $as_dir/ in #((
3260 ./ | .// | /[cC]/* | \
3261 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3262 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3263 /usr/ucb/* ) ;;
3264 *)
3265 # OSF1 and SCO ODT 3.0 have their own names for install.
3266 # Don't use installbsd from OSF since it installs stuff as root
3267 # by default.
3268 for ac_prog in ginstall scoinst install; do
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3271 if test $ac_prog = install &&
3272 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3273 # AIX install. It has an incompatible calling convention.
3274 :
3275 elif test $ac_prog = install &&
3276 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3277 # program-specific install script used by HP pwplus--don't use.
3278 :
3279 else
3280 rm -rf conftest.one conftest.two conftest.dir
3281 echo one > conftest.one
3282 echo two > conftest.two
3283 mkdir conftest.dir
3284 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3285 test -s conftest.one && test -s conftest.two &&
3286 test -s conftest.dir/conftest.one &&
3287 test -s conftest.dir/conftest.two
3288 then
3289 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3290 break 3
3291 fi
3292 fi
3293 fi
3294 done
3295 done
3296 ;;
3297 esac
3298
3299 done
3300 IFS=$as_save_IFS
3301
3302 rm -rf conftest.one conftest.two conftest.dir
3303
3304 fi
3305 if test "${ac_cv_path_install+set}" = set; then
3306 INSTALL=$ac_cv_path_install
3307 else
3308 # As a last resort, use the slow shell script. Don't cache a
3309 # value for INSTALL within a source directory, because that will
3310 # break other packages using the cache if that directory is
3311 # removed, or if the value is a relative name.
3312 INSTALL=$ac_install_sh
3313 fi
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3316 $as_echo "$INSTALL" >&6; }
3317
3318 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3319 # It thinks the first close brace ends the variable substitution.
3320 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3321
3322 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3323
3324 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3325
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3327 $as_echo_n "checking whether build environment is sane... " >&6; }
3328 # Just in case
3329 sleep 1
3330 echo timestamp > conftest.file
3331 # Reject unsafe characters in $srcdir or the absolute working directory
3332 # name. Accept space and tab only in the latter.
3333 am_lf='
3334 '
3335 case `pwd` in
3336 *[\\\"\#\$\&\'\`$am_lf]*)
3337 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3338 esac
3339 case $srcdir in
3340 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3341 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3342 esac
3343
3344 # Do `set' in a subshell so we don't clobber the current shell's
3345 # arguments. Must try -L first in case configure is actually a
3346 # symlink; some systems play weird games with the mod time of symlinks
3347 # (eg FreeBSD returns the mod time of the symlink's containing
3348 # directory).
3349 if (
3350 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3351 if test "$*" = "X"; then
3352 # -L didn't work.
3353 set X `ls -t "$srcdir/configure" conftest.file`
3354 fi
3355 rm -f conftest.file
3356 if test "$*" != "X $srcdir/configure conftest.file" \
3357 && test "$*" != "X conftest.file $srcdir/configure"; then
3358
3359 # If neither matched, then we have a broken ls. This can happen
3360 # if, for instance, CONFIG_SHELL is bash and it inherits a
3361 # broken ls alias from the environment. This has actually
3362 # happened. Such a system could not be considered "sane".
3363 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3364 alias in your environment" "$LINENO" 5
3365 fi
3366
3367 test "$2" = conftest.file
3368 )
3369 then
3370 # Ok.
3371 :
3372 else
3373 as_fn_error "newly created file is older than distributed files!
3374 Check your system clock" "$LINENO" 5
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3377 $as_echo "yes" >&6; }
3378 test "$program_prefix" != NONE &&
3379 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3380 # Use a double $ so make ignores it.
3381 test "$program_suffix" != NONE &&
3382 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3383 # Double any \ or $.
3384 # By default was `s,x,x', remove it if useless.
3385 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3386 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3387
3388 # expand $ac_aux_dir to an absolute path
3389 am_aux_dir=`cd $ac_aux_dir && pwd`
3390
3391 if test x"${MISSING+set}" != xset; then
3392 case $am_aux_dir in
3393 *\ * | *\ *)
3394 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3395 *)
3396 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3397 esac
3398 fi
3399 # Use eval to expand $SHELL
3400 if eval "$MISSING --run true"; then
3401 am_missing_run="$MISSING --run "
3402 else
3403 am_missing_run=
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3405 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3406 fi
3407
3408 if test x"${install_sh}" != xset; then
3409 case $am_aux_dir in
3410 *\ * | *\ *)
3411 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3412 *)
3413 install_sh="\${SHELL} $am_aux_dir/install-sh"
3414 esac
3415 fi
3416
3417 # Installed binaries are usually stripped using `strip' when the user
3418 # run `make install-strip'. However `strip' might not be the right
3419 # tool to use in cross-compilation environments, therefore Automake
3420 # will honor the `STRIP' environment variable to overrule this program.
3421 if test "$cross_compiling" != no; then
3422 if test -n "$ac_tool_prefix"; then
3423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3424 set dummy ${ac_tool_prefix}strip; ac_word=$2
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426 $as_echo_n "checking for $ac_word... " >&6; }
3427 if test "${ac_cv_prog_STRIP+set}" = set; then :
3428 $as_echo_n "(cached) " >&6
3429 else
3430 if test -n "$STRIP"; then
3431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3432 else
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 for as_dir in $PATH
3435 do
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 break 2
3443 fi
3444 done
3445 done
3446 IFS=$as_save_IFS
3447
3448 fi
3449 fi
3450 STRIP=$ac_cv_prog_STRIP
3451 if test -n "$STRIP"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3453 $as_echo "$STRIP" >&6; }
3454 else
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3457 fi
3458
3459
3460 fi
3461 if test -z "$ac_cv_prog_STRIP"; then
3462 ac_ct_STRIP=$STRIP
3463 # Extract the first word of "strip", so it can be a program name with args.
3464 set dummy strip; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -n "$ac_ct_STRIP"; then
3471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_prog_ac_ct_STRIP="strip"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484 done
3485 done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3491 if test -n "$ac_ct_STRIP"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3493 $as_echo "$ac_ct_STRIP" >&6; }
3494 else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499 if test "x$ac_ct_STRIP" = x; then
3500 STRIP=":"
3501 else
3502 case $cross_compiling:$ac_tool_warned in
3503 yes:)
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3506 ac_tool_warned=yes ;;
3507 esac
3508 STRIP=$ac_ct_STRIP
3509 fi
3510 else
3511 STRIP="$ac_cv_prog_STRIP"
3512 fi
3513
3514 fi
3515 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3516
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3518 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3519 if test -z "$MKDIR_P"; then
3520 if test "${ac_cv_path_mkdir+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3525 do
3526 IFS=$as_save_IFS
3527 test -z "$as_dir" && as_dir=.
3528 for ac_prog in mkdir gmkdir; do
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3531 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3532 'mkdir (GNU coreutils) '* | \
3533 'mkdir (coreutils) '* | \
3534 'mkdir (fileutils) '4.1*)
3535 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3536 break 3;;
3537 esac
3538 done
3539 done
3540 done
3541 IFS=$as_save_IFS
3542
3543 fi
3544
3545 if test "${ac_cv_path_mkdir+set}" = set; then
3546 MKDIR_P="$ac_cv_path_mkdir -p"
3547 else
3548 # As a last resort, use the slow shell script. Don't cache a
3549 # value for MKDIR_P within a source directory, because that will
3550 # break other packages using the cache if that directory is
3551 # removed, or if the value is a relative name.
3552 test -d ./--version && rmdir ./--version
3553 MKDIR_P="$ac_install_sh -d"
3554 fi
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3557 $as_echo "$MKDIR_P" >&6; }
3558
3559 mkdir_p="$MKDIR_P"
3560 case $mkdir_p in
3561 [\\/$]* | ?:[\\/]*) ;;
3562 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3563 esac
3564
3565 for ac_prog in gawk mawk nawk awk
3566 do
3567 # Extract the first word of "$ac_prog", so it can be a program name with args.
3568 set dummy $ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_AWK+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 if test -n "$AWK"; then
3575 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_AWK="$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588 done
3589 done
3590 IFS=$as_save_IFS
3591
3592 fi
3593 fi
3594 AWK=$ac_cv_prog_AWK
3595 if test -n "$AWK"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3597 $as_echo "$AWK" >&6; }
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 fi
3602
3603
3604 test -n "$AWK" && break
3605 done
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3608 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3609 set x ${MAKE-make}
3610 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3611 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 cat >conftest.make <<\_ACEOF
3615 SHELL = /bin/sh
3616 all:
3617 @echo '@@@%%%=$(MAKE)=@@@%%%'
3618 _ACEOF
3619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3620 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3621 *@@@%%%=?*=@@@%%%*)
3622 eval ac_cv_prog_make_${ac_make}_set=yes;;
3623 *)
3624 eval ac_cv_prog_make_${ac_make}_set=no;;
3625 esac
3626 rm -f conftest.make
3627 fi
3628 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630 $as_echo "yes" >&6; }
3631 SET_MAKE=
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 SET_MAKE="MAKE=${MAKE-make}"
3636 fi
3637
3638 rm -rf .tst 2>/dev/null
3639 mkdir .tst 2>/dev/null
3640 if test -d .tst; then
3641 am__leading_dot=.
3642 else
3643 am__leading_dot=_
3644 fi
3645 rmdir .tst 2>/dev/null
3646
3647 DEPDIR="${am__leading_dot}deps"
3648
3649 ac_config_commands="$ac_config_commands depfiles"
3650
3651
3652 am_make=${MAKE-make}
3653 cat > confinc << 'END'
3654 am__doit:
3655 @echo this is the am__doit target
3656 .PHONY: am__doit
3657 END
3658 # If we don't find an include directive, just comment out the code.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3660 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3661 am__include="#"
3662 am__quote=
3663 _am_result=none
3664 # First try GNU make style include.
3665 echo "include confinc" > confmf
3666 # Ignore all kinds of additional output from `make'.
3667 case `$am_make -s -f confmf 2> /dev/null` in #(
3668 *the\ am__doit\ target*)
3669 am__include=include
3670 am__quote=
3671 _am_result=GNU
3672 ;;
3673 esac
3674 # Now try BSD make style include.
3675 if test "$am__include" = "#"; then
3676 echo '.include "confinc"' > confmf
3677 case `$am_make -s -f confmf 2> /dev/null` in #(
3678 *the\ am__doit\ target*)
3679 am__include=.include
3680 am__quote="\""
3681 _am_result=BSD
3682 ;;
3683 esac
3684 fi
3685
3686
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3688 $as_echo "$_am_result" >&6; }
3689 rm -f confinc confmf
3690
3691 # Check whether --enable-dependency-tracking was given.
3692 if test "${enable_dependency_tracking+set}" = set; then :
3693 enableval=$enable_dependency_tracking;
3694 fi
3695
3696 if test "x$enable_dependency_tracking" != xno; then
3697 am_depcomp="$ac_aux_dir/depcomp"
3698 AMDEPBACKSLASH='\'
3699 fi
3700 if test "x$enable_dependency_tracking" != xno; then
3701 AMDEP_TRUE=
3702 AMDEP_FALSE='#'
3703 else
3704 AMDEP_TRUE='#'
3705 AMDEP_FALSE=
3706 fi
3707
3708
3709 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3710 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3711 # is not polluted with repeated "-I."
3712 am__isrc=' -I$(srcdir)'
3713 # test to see if srcdir already configured
3714 if test -f $srcdir/config.status; then
3715 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3716 fi
3717 fi
3718
3719 # test whether we have cygpath
3720 if test -z "$CYGPATH_W"; then
3721 if (cygpath --version) >/dev/null 2>/dev/null; then
3722 CYGPATH_W='cygpath -w'
3723 else
3724 CYGPATH_W=echo
3725 fi
3726 fi
3727
3728
3729 # Define the identity of the package.
3730 PACKAGE=gas
3731 VERSION=${BFD_VERSION}
3732
3733
3734 cat >>confdefs.h <<_ACEOF
3735 #define PACKAGE "$PACKAGE"
3736 _ACEOF
3737
3738
3739 cat >>confdefs.h <<_ACEOF
3740 #define VERSION "$VERSION"
3741 _ACEOF
3742
3743 # Some tools Automake needs.
3744
3745 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3746
3747
3748 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3749
3750
3751 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3752
3753
3754 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3755
3756
3757 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3758
3759 # We need awk for the "check" target. The system "awk" is bad on
3760 # some platforms.
3761 # Always define AMTAR for backward compatibility.
3762
3763 AMTAR=${AMTAR-"${am_missing_run}tar"}
3764
3765 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3766
3767
3768
3769
3770 depcc="$CC" am_compiler_list=
3771
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3773 $as_echo_n "checking dependency style of $depcc... " >&6; }
3774 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3778 # We make a subdir and do the tests there. Otherwise we can end up
3779 # making bogus files that we don't know about and never remove. For
3780 # instance it was reported that on HP-UX the gcc test will end up
3781 # making a dummy file named `D' -- because `-MD' means `put the output
3782 # in D'.
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
3795
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 fi
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3804
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3809 #
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3817 # Solaris 8's {/usr,}/bin/sh.
3818 touch sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle `-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3832 ;;
3833 nosideeffect)
3834 # after this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3840 fi
3841 ;;
3842 msvisualcpp | msvcmsys)
3843 # This compiler won't grok `-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3848 ;;
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3871 fi
3872 fi
3873 done
3874
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CC_dependencies_compiler_type=none
3879 fi
3880
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886 if
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
3891 else
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3894 fi
3895
3896
3897
3898
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904 if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3906 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if test "${ac_cv_prog_CC+set}" = set; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3922 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926 done
3927 done
3928 IFS=$as_save_IFS
3929
3930 fi
3931 fi
3932 CC=$ac_cv_prog_CC
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 fi
3940
3941
3942 fi
3943 if test -z "$ac_cv_prog_CC"; then
3944 ac_ct_CC=$CC
3945 # Extract the first word of "gcc", so it can be a program name with args.
3946 set dummy gcc; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if test -n "$ac_ct_CC"; then
3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_prog_ac_ct_CC="gcc"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 break 2
3965 fi
3966 done
3967 done
3968 IFS=$as_save_IFS
3969
3970 fi
3971 fi
3972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3973 if test -n "$ac_ct_CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3975 $as_echo "$ac_ct_CC" >&6; }
3976 else
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 fi
3980
3981 if test "x$ac_ct_CC" = x; then
3982 CC=""
3983 else
3984 case $cross_compiling:$ac_tool_warned in
3985 yes:)
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988 ac_tool_warned=yes ;;
3989 esac
3990 CC=$ac_ct_CC
3991 fi
3992 else
3993 CC="$ac_cv_prog_CC"
3994 fi
3995
3996 if test -z "$CC"; then
3997 if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3999 set dummy ${ac_tool_prefix}cc; ac_word=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_prog_CC="${ac_tool_prefix}cc"
4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4017 break 2
4018 fi
4019 done
4020 done
4021 IFS=$as_save_IFS
4022
4023 fi
4024 fi
4025 CC=$ac_cv_prog_CC
4026 if test -n "$CC"; then
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028 $as_echo "$CC" >&6; }
4029 else
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031 $as_echo "no" >&6; }
4032 fi
4033
4034
4035 fi
4036 fi
4037 if test -z "$CC"; then
4038 # Extract the first word of "cc", so it can be a program name with args.
4039 set dummy cc; ac_word=$2
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041 $as_echo_n "checking for $ac_word... " >&6; }
4042 if test "${ac_cv_prog_CC+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if test -n "$CC"; then
4046 ac_cv_prog_CC="$CC" # Let the user override the test.
4047 else
4048 ac_prog_rejected=no
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4057 ac_prog_rejected=yes
4058 continue
4059 fi
4060 ac_cv_prog_CC="cc"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4063 fi
4064 done
4065 done
4066 IFS=$as_save_IFS
4067
4068 if test $ac_prog_rejected = yes; then
4069 # We found a bogon in the path, so make sure we never use it.
4070 set dummy $ac_cv_prog_CC
4071 shift
4072 if test $# != 0; then
4073 # We chose a different compiler from the bogus one.
4074 # However, it has the same basename, so the bogon will be chosen
4075 # first if we set CC to just the basename; use the full file name.
4076 shift
4077 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4078 fi
4079 fi
4080 fi
4081 fi
4082 CC=$ac_cv_prog_CC
4083 if test -n "$CC"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4085 $as_echo "$CC" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092 fi
4093 if test -z "$CC"; then
4094 if test -n "$ac_tool_prefix"; then
4095 for ac_prog in cl.exe
4096 do
4097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if test "${ac_cv_prog_CC+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118 done
4119 done
4120 IFS=$as_save_IFS
4121
4122 fi
4123 fi
4124 CC=$ac_cv_prog_CC
4125 if test -n "$CC"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127 $as_echo "$CC" >&6; }
4128 else
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4131 fi
4132
4133
4134 test -n "$CC" && break
4135 done
4136 fi
4137 if test -z "$CC"; then
4138 ac_ct_CC=$CC
4139 for ac_prog in cl.exe
4140 do
4141 # Extract the first word of "$ac_prog", so it can be a program name with args.
4142 set dummy $ac_prog; ac_word=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -n "$ac_ct_CC"; then
4149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_prog_ac_ct_CC="$ac_prog"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162 done
4163 done
4164 IFS=$as_save_IFS
4165
4166 fi
4167 fi
4168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4169 if test -n "$ac_ct_CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4171 $as_echo "$ac_ct_CC" >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4175 fi
4176
4177
4178 test -n "$ac_ct_CC" && break
4179 done
4180
4181 if test "x$ac_ct_CC" = x; then
4182 CC=""
4183 else
4184 case $cross_compiling:$ac_tool_warned in
4185 yes:)
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188 ac_tool_warned=yes ;;
4189 esac
4190 CC=$ac_ct_CC
4191 fi
4192 fi
4193
4194 fi
4195
4196
4197 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4199 as_fn_error "no acceptable C compiler found in \$PATH
4200 See \`config.log' for more details." "$LINENO" 5; }
4201
4202 # Provide some information about the compiler.
4203 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4204 set X $ac_compile
4205 ac_compiler=$2
4206 for ac_option in --version -v -V -qversion; do
4207 { { ac_try="$ac_compiler $ac_option >&5"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213 $as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4215 ac_status=$?
4216 if test -s conftest.err; then
4217 sed '10a\
4218 ... rest of stderr output deleted ...
4219 10q' conftest.err >conftest.er1
4220 cat conftest.er1 >&5
4221 rm -f conftest.er1 conftest.err
4222 fi
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }
4225 done
4226
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4228 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4229 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234
4235 int
4236 main ()
4237 {
4238 #ifndef __GNUC__
4239 choke me
4240 #endif
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 if ac_fn_c_try_compile "$LINENO"; then :
4247 ac_compiler_gnu=yes
4248 else
4249 ac_compiler_gnu=no
4250 fi
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4253
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4256 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4257 if test $ac_compiler_gnu = yes; then
4258 GCC=yes
4259 else
4260 GCC=
4261 fi
4262 ac_test_CFLAGS=${CFLAGS+set}
4263 ac_save_CFLAGS=$CFLAGS
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4265 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4266 if test "${ac_cv_prog_cc_g+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 ac_save_c_werror_flag=$ac_c_werror_flag
4270 ac_c_werror_flag=yes
4271 ac_cv_prog_cc_g=no
4272 CFLAGS="-g"
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275
4276 int
4277 main ()
4278 {
4279
4280 ;
4281 return 0;
4282 }
4283 _ACEOF
4284 if ac_fn_c_try_compile "$LINENO"; then :
4285 ac_cv_prog_cc_g=yes
4286 else
4287 CFLAGS=""
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290
4291 int
4292 main ()
4293 {
4294
4295 ;
4296 return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300
4301 else
4302 ac_c_werror_flag=$ac_save_c_werror_flag
4303 CFLAGS="-g"
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306
4307 int
4308 main ()
4309 {
4310
4311 ;
4312 return 0;
4313 }
4314 _ACEOF
4315 if ac_fn_c_try_compile "$LINENO"; then :
4316 ac_cv_prog_cc_g=yes
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 fi
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 fi
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 ac_c_werror_flag=$ac_save_c_werror_flag
4324 fi
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4326 $as_echo "$ac_cv_prog_cc_g" >&6; }
4327 if test "$ac_test_CFLAGS" = set; then
4328 CFLAGS=$ac_save_CFLAGS
4329 elif test $ac_cv_prog_cc_g = yes; then
4330 if test "$GCC" = yes; then
4331 CFLAGS="-g -O2"
4332 else
4333 CFLAGS="-g"
4334 fi
4335 else
4336 if test "$GCC" = yes; then
4337 CFLAGS="-O2"
4338 else
4339 CFLAGS=
4340 fi
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4343 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4344 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 ac_cv_prog_cc_c89=no
4348 ac_save_CC=$CC
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 #include <stdarg.h>
4352 #include <stdio.h>
4353 #include <sys/types.h>
4354 #include <sys/stat.h>
4355 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4356 struct buf { int x; };
4357 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4358 static char *e (p, i)
4359 char **p;
4360 int i;
4361 {
4362 return p[i];
4363 }
4364 static char *f (char * (*g) (char **, int), char **p, ...)
4365 {
4366 char *s;
4367 va_list v;
4368 va_start (v,p);
4369 s = g (p, va_arg (v,int));
4370 va_end (v);
4371 return s;
4372 }
4373
4374 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4375 function prototypes and stuff, but not '\xHH' hex character constants.
4376 These don't provoke an error unfortunately, instead are silently treated
4377 as 'x'. The following induces an error, until -std is added to get
4378 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4379 array size at least. It's necessary to write '\x00'==0 to get something
4380 that's true only with -std. */
4381 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4382
4383 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4384 inside strings and character constants. */
4385 #define FOO(x) 'x'
4386 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4387
4388 int test (int i, double x);
4389 struct s1 {int (*f) (int a);};
4390 struct s2 {int (*f) (double a);};
4391 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4392 int argc;
4393 char **argv;
4394 int
4395 main ()
4396 {
4397 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4398 ;
4399 return 0;
4400 }
4401 _ACEOF
4402 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4403 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4404 do
4405 CC="$ac_save_CC $ac_arg"
4406 if ac_fn_c_try_compile "$LINENO"; then :
4407 ac_cv_prog_cc_c89=$ac_arg
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext
4410 test "x$ac_cv_prog_cc_c89" != "xno" && break
4411 done
4412 rm -f conftest.$ac_ext
4413 CC=$ac_save_CC
4414
4415 fi
4416 # AC_CACHE_VAL
4417 case "x$ac_cv_prog_cc_c89" in
4418 x)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4420 $as_echo "none needed" >&6; } ;;
4421 xno)
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4423 $as_echo "unsupported" >&6; } ;;
4424 *)
4425 CC="$CC $ac_cv_prog_cc_c89"
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4427 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4428 esac
4429 if test "x$ac_cv_prog_cc_c89" != xno; then :
4430
4431 fi
4432
4433 ac_ext=c
4434 ac_cpp='$CPP $CPPFLAGS'
4435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438
4439 ac_ext=c
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4445 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4446 # On Suns, sometimes $CPP names a directory.
4447 if test -n "$CPP" && test -d "$CPP"; then
4448 CPP=
4449 fi
4450 if test -z "$CPP"; then
4451 if test "${ac_cv_prog_CPP+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 # Double quotes because CPP needs to be expanded
4455 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4456 do
4457 ac_preproc_ok=false
4458 for ac_c_preproc_warn_flag in '' yes
4459 do
4460 # Use a header file that comes with gcc, so configuring glibc
4461 # with a fresh cross-compiler works.
4462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4463 # <limits.h> exists even on freestanding compilers.
4464 # On the NeXT, cc -E runs the code through the compiler's parser,
4465 # not just through cpp. "Syntax error" is here to catch this case.
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #ifdef __STDC__
4469 # include <limits.h>
4470 #else
4471 # include <assert.h>
4472 #endif
4473 Syntax error
4474 _ACEOF
4475 if ac_fn_c_try_cpp "$LINENO"; then :
4476
4477 else
4478 # Broken: fails on valid input.
4479 continue
4480 fi
4481 rm -f conftest.err conftest.$ac_ext
4482
4483 # OK, works on sane cases. Now check whether nonexistent headers
4484 # can be detected and how.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <ac_nonexistent.h>
4488 _ACEOF
4489 if ac_fn_c_try_cpp "$LINENO"; then :
4490 # Broken: success on invalid input.
4491 continue
4492 else
4493 # Passes both tests.
4494 ac_preproc_ok=:
4495 break
4496 fi
4497 rm -f conftest.err conftest.$ac_ext
4498
4499 done
4500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4501 rm -f conftest.err conftest.$ac_ext
4502 if $ac_preproc_ok; then :
4503 break
4504 fi
4505
4506 done
4507 ac_cv_prog_CPP=$CPP
4508
4509 fi
4510 CPP=$ac_cv_prog_CPP
4511 else
4512 ac_cv_prog_CPP=$CPP
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4515 $as_echo "$CPP" >&6; }
4516 ac_preproc_ok=false
4517 for ac_c_preproc_warn_flag in '' yes
4518 do
4519 # Use a header file that comes with gcc, so configuring glibc
4520 # with a fresh cross-compiler works.
4521 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522 # <limits.h> exists even on freestanding compilers.
4523 # On the NeXT, cc -E runs the code through the compiler's parser,
4524 # not just through cpp. "Syntax error" is here to catch this case.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 #ifdef __STDC__
4528 # include <limits.h>
4529 #else
4530 # include <assert.h>
4531 #endif
4532 Syntax error
4533 _ACEOF
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4535
4536 else
4537 # Broken: fails on valid input.
4538 continue
4539 fi
4540 rm -f conftest.err conftest.$ac_ext
4541
4542 # OK, works on sane cases. Now check whether nonexistent headers
4543 # can be detected and how.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <ac_nonexistent.h>
4547 _ACEOF
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4549 # Broken: success on invalid input.
4550 continue
4551 else
4552 # Passes both tests.
4553 ac_preproc_ok=:
4554 break
4555 fi
4556 rm -f conftest.err conftest.$ac_ext
4557
4558 done
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then :
4562
4563 else
4564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4567 See \`config.log' for more details." "$LINENO" 5; }
4568 fi
4569
4570 ac_ext=c
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4578 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4579 if test "${ac_cv_path_GREP+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -z "$GREP"; then
4583 ac_path_GREP_found=false
4584 # Loop through the user's path and test for each of PROGNAME-LIST
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_prog in grep ggrep; do
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4593 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4594 # Check for GNU ac_path_GREP and select it if it is found.
4595 # Check for GNU $ac_path_GREP
4596 case `"$ac_path_GREP" --version 2>&1` in
4597 *GNU*)
4598 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599 *)
4600 ac_count=0
4601 $as_echo_n 0123456789 >"conftest.in"
4602 while :
4603 do
4604 cat "conftest.in" "conftest.in" >"conftest.tmp"
4605 mv "conftest.tmp" "conftest.in"
4606 cp "conftest.in" "conftest.nl"
4607 $as_echo 'GREP' >> "conftest.nl"
4608 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4610 as_fn_arith $ac_count + 1 && ac_count=$as_val
4611 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4612 # Best one so far, save it but keep looking for a better one
4613 ac_cv_path_GREP="$ac_path_GREP"
4614 ac_path_GREP_max=$ac_count
4615 fi
4616 # 10*(2^10) chars as input seems more than enough
4617 test $ac_count -gt 10 && break
4618 done
4619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620 esac
4621
4622 $ac_path_GREP_found && break 3
4623 done
4624 done
4625 done
4626 IFS=$as_save_IFS
4627 if test -z "$ac_cv_path_GREP"; then
4628 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 fi
4630 else
4631 ac_cv_path_GREP=$GREP
4632 fi
4633
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4636 $as_echo "$ac_cv_path_GREP" >&6; }
4637 GREP="$ac_cv_path_GREP"
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4641 $as_echo_n "checking for egrep... " >&6; }
4642 if test "${ac_cv_path_EGREP+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4646 then ac_cv_path_EGREP="$GREP -E"
4647 else
4648 if test -z "$EGREP"; then
4649 ac_path_EGREP_found=false
4650 # Loop through the user's path and test for each of PROGNAME-LIST
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653 do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_prog in egrep; do
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4659 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4660 # Check for GNU ac_path_EGREP and select it if it is found.
4661 # Check for GNU $ac_path_EGREP
4662 case `"$ac_path_EGREP" --version 2>&1` in
4663 *GNU*)
4664 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4665 *)
4666 ac_count=0
4667 $as_echo_n 0123456789 >"conftest.in"
4668 while :
4669 do
4670 cat "conftest.in" "conftest.in" >"conftest.tmp"
4671 mv "conftest.tmp" "conftest.in"
4672 cp "conftest.in" "conftest.nl"
4673 $as_echo 'EGREP' >> "conftest.nl"
4674 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676 as_fn_arith $ac_count + 1 && ac_count=$as_val
4677 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4678 # Best one so far, save it but keep looking for a better one
4679 ac_cv_path_EGREP="$ac_path_EGREP"
4680 ac_path_EGREP_max=$ac_count
4681 fi
4682 # 10*(2^10) chars as input seems more than enough
4683 test $ac_count -gt 10 && break
4684 done
4685 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 esac
4687
4688 $ac_path_EGREP_found && break 3
4689 done
4690 done
4691 done
4692 IFS=$as_save_IFS
4693 if test -z "$ac_cv_path_EGREP"; then
4694 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695 fi
4696 else
4697 ac_cv_path_EGREP=$EGREP
4698 fi
4699
4700 fi
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4703 $as_echo "$ac_cv_path_EGREP" >&6; }
4704 EGREP="$ac_cv_path_EGREP"
4705
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4708 $as_echo_n "checking for ANSI C header files... " >&6; }
4709 if test "${ac_cv_header_stdc+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 #include <stdlib.h>
4715 #include <stdarg.h>
4716 #include <string.h>
4717 #include <float.h>
4718
4719 int
4720 main ()
4721 {
4722
4723 ;
4724 return 0;
4725 }
4726 _ACEOF
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728 ac_cv_header_stdc=yes
4729 else
4730 ac_cv_header_stdc=no
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733
4734 if test $ac_cv_header_stdc = yes; then
4735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 #include <string.h>
4739
4740 _ACEOF
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 $EGREP "memchr" >/dev/null 2>&1; then :
4743
4744 else
4745 ac_cv_header_stdc=no
4746 fi
4747 rm -f conftest*
4748
4749 fi
4750
4751 if test $ac_cv_header_stdc = yes; then
4752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755 #include <stdlib.h>
4756
4757 _ACEOF
4758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4759 $EGREP "free" >/dev/null 2>&1; then :
4760
4761 else
4762 ac_cv_header_stdc=no
4763 fi
4764 rm -f conftest*
4765
4766 fi
4767
4768 if test $ac_cv_header_stdc = yes; then
4769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4770 if test "$cross_compiling" = yes; then :
4771 :
4772 else
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <ctype.h>
4776 #include <stdlib.h>
4777 #if ((' ' & 0x0FF) == 0x020)
4778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4780 #else
4781 # define ISLOWER(c) \
4782 (('a' <= (c) && (c) <= 'i') \
4783 || ('j' <= (c) && (c) <= 'r') \
4784 || ('s' <= (c) && (c) <= 'z'))
4785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4786 #endif
4787
4788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4789 int
4790 main ()
4791 {
4792 int i;
4793 for (i = 0; i < 256; i++)
4794 if (XOR (islower (i), ISLOWER (i))
4795 || toupper (i) != TOUPPER (i))
4796 return 2;
4797 return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_c_try_run "$LINENO"; then :
4801
4802 else
4803 ac_cv_header_stdc=no
4804 fi
4805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4806 conftest.$ac_objext conftest.beam conftest.$ac_ext
4807 fi
4808
4809 fi
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4812 $as_echo "$ac_cv_header_stdc" >&6; }
4813 if test $ac_cv_header_stdc = yes; then
4814
4815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4816
4817 fi
4818
4819 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4820 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4821 inttypes.h stdint.h unistd.h
4822 do :
4823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4824 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4825 "
4826 eval as_val=\$$as_ac_Header
4827 if test "x$as_val" = x""yes; then :
4828 cat >>confdefs.h <<_ACEOF
4829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4830 _ACEOF
4831
4832 fi
4833
4834 done
4835
4836
4837
4838 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4839 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4840 MINIX=yes
4841 else
4842 MINIX=
4843 fi
4844
4845
4846 if test "$MINIX" = yes; then
4847
4848 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4849
4850
4851 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4852
4853
4854 $as_echo "#define _MINIX 1" >>confdefs.h
4855
4856 fi
4857
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4860 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4861 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866
4867 # define __EXTENSIONS__ 1
4868 $ac_includes_default
4869 int
4870 main ()
4871 {
4872
4873 ;
4874 return 0;
4875 }
4876 _ACEOF
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_safe_to_define___extensions__=yes
4879 else
4880 ac_cv_safe_to_define___extensions__=no
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4885 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4886 test $ac_cv_safe_to_define___extensions__ = yes &&
4887 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4888
4889 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4890
4891 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4892
4893 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4894
4895 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4896
4897
4898
4899
4900
4901 # The tests for host and target for $enable_largefile require
4902 # canonical names.
4903
4904
4905
4906 # As the $enable_largefile decision depends on --enable-plugins we must set it
4907 # even in directories otherwise not depending on the $plugins option.
4908
4909
4910 # Check whether --enable-plugins was given.
4911 if test "${enable_plugins+set}" = set; then :
4912 enableval=$enable_plugins; case "${enableval}" in
4913 yes | "") plugins=yes ;;
4914 no) plugins=no ;;
4915 *) plugins=yes ;;
4916 esac
4917 else
4918 plugins=no
4919 fi
4920
4921
4922
4923 case "${host}" in
4924 sparc-*-solaris*|i[3-7]86-*-solaris*)
4925 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4926 # are mutually exclusive; and without procfs support, the bfd/ elf module
4927 # cannot provide certain routines such as elfcore_write_prpsinfo
4928 # or elfcore_write_prstatus. So unless the user explicitly requested
4929 # large-file support through the --enable-largefile switch, disable
4930 # large-file support in favor of procfs support.
4931 test "${target}" = "${host}" -a "x$plugins" = xno \
4932 && : ${enable_largefile="no"}
4933 ;;
4934 esac
4935
4936 # Check whether --enable-largefile was given.
4937 if test "${enable_largefile+set}" = set; then :
4938 enableval=$enable_largefile;
4939 fi
4940
4941 if test "$enable_largefile" != no; then
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4944 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4945 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 ac_cv_sys_largefile_CC=no
4949 if test "$GCC" != yes; then
4950 ac_save_CC=$CC
4951 while :; do
4952 # IRIX 6.2 and later do not support large files by default,
4953 # so use the C compiler's -n32 option if that helps.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 #include <sys/types.h>
4957 /* Check that off_t can represent 2**63 - 1 correctly.
4958 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4959 since some C++ compilers masquerading as C compilers
4960 incorrectly reject 9223372036854775807. */
4961 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4962 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4963 && LARGE_OFF_T % 2147483647 == 1)
4964 ? 1 : -1];
4965 int
4966 main ()
4967 {
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 break
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext
4977 CC="$CC -n32"
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979 ac_cv_sys_largefile_CC=' -n32'; break
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext
4982 break
4983 done
4984 CC=$ac_save_CC
4985 rm -f conftest.$ac_ext
4986 fi
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4989 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4990 if test "$ac_cv_sys_largefile_CC" != no; then
4991 CC=$CC$ac_cv_sys_largefile_CC
4992 fi
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4995 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4996 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 while :; do
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 #include <sys/types.h>
5003 /* Check that off_t can represent 2**63 - 1 correctly.
5004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5005 since some C++ compilers masquerading as C compilers
5006 incorrectly reject 9223372036854775807. */
5007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5009 && LARGE_OFF_T % 2147483647 == 1)
5010 ? 1 : -1];
5011 int
5012 main ()
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 if ac_fn_c_try_compile "$LINENO"; then :
5020 ac_cv_sys_file_offset_bits=no; break
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 #define _FILE_OFFSET_BITS 64
5026 #include <sys/types.h>
5027 /* Check that off_t can represent 2**63 - 1 correctly.
5028 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5029 since some C++ compilers masquerading as C compilers
5030 incorrectly reject 9223372036854775807. */
5031 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5032 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5033 && LARGE_OFF_T % 2147483647 == 1)
5034 ? 1 : -1];
5035 int
5036 main ()
5037 {
5038
5039 ;
5040 return 0;
5041 }
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_cv_sys_file_offset_bits=64; break
5045 fi
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 ac_cv_sys_file_offset_bits=unknown
5048 break
5049 done
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5052 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5053 case $ac_cv_sys_file_offset_bits in #(
5054 no | unknown) ;;
5055 *)
5056 cat >>confdefs.h <<_ACEOF
5057 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5058 _ACEOF
5059 ;;
5060 esac
5061 rm -rf conftest*
5062 if test $ac_cv_sys_file_offset_bits = unknown; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5064 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5065 if test "${ac_cv_sys_large_files+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 while :; do
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5071 #include <sys/types.h>
5072 /* Check that off_t can represent 2**63 - 1 correctly.
5073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5074 since some C++ compilers masquerading as C compilers
5075 incorrectly reject 9223372036854775807. */
5076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5078 && LARGE_OFF_T % 2147483647 == 1)
5079 ? 1 : -1];
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_compile "$LINENO"; then :
5089 ac_cv_sys_large_files=no; break
5090 fi
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #define _LARGE_FILES 1
5095 #include <sys/types.h>
5096 /* Check that off_t can represent 2**63 - 1 correctly.
5097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5098 since some C++ compilers masquerading as C compilers
5099 incorrectly reject 9223372036854775807. */
5100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5102 && LARGE_OFF_T % 2147483647 == 1)
5103 ? 1 : -1];
5104 int
5105 main ()
5106 {
5107
5108 ;
5109 return 0;
5110 }
5111 _ACEOF
5112 if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_cv_sys_large_files=1; break
5114 fi
5115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 ac_cv_sys_large_files=unknown
5117 break
5118 done
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5121 $as_echo "$ac_cv_sys_large_files" >&6; }
5122 case $ac_cv_sys_large_files in #(
5123 no | unknown) ;;
5124 *)
5125 cat >>confdefs.h <<_ACEOF
5126 #define _LARGE_FILES $ac_cv_sys_large_files
5127 _ACEOF
5128 ;;
5129 esac
5130 rm -rf conftest*
5131 fi
5132 fi
5133
5134
5135
5136 case `pwd` in
5137 *\ * | *\ *)
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5139 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5140 esac
5141
5142
5143
5144 macro_version='2.4'
5145 macro_revision='1.3293'
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 ltmain="$ac_aux_dir/ltmain.sh"
5160
5161 # Backslashify metacharacters that are still active within
5162 # double-quoted strings.
5163 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5164
5165 # Same as above, but do not quote variable references.
5166 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5167
5168 # Sed substitution to delay expansion of an escaped shell variable in a
5169 # double_quote_subst'ed string.
5170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5171
5172 # Sed substitution to delay expansion of an escaped single quote.
5173 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5174
5175 # Sed substitution to avoid accidental globbing in evaled expressions
5176 no_glob_subst='s/\*/\\\*/g'
5177
5178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5179 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5180 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5183 $as_echo_n "checking how to print strings... " >&6; }
5184 # Test print first, because it will be a builtin if present.
5185 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5186 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5187 ECHO='print -r --'
5188 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5189 ECHO='printf %s\n'
5190 else
5191 # Use this function as a fallback that always works.
5192 func_fallback_echo ()
5193 {
5194 eval 'cat <<_LTECHO_EOF
5195 $1
5196 _LTECHO_EOF'
5197 }
5198 ECHO='func_fallback_echo'
5199 fi
5200
5201 # func_echo_all arg...
5202 # Invoke $ECHO with all args, space-separated.
5203 func_echo_all ()
5204 {
5205 $ECHO ""
5206 }
5207
5208 case "$ECHO" in
5209 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5210 $as_echo "printf" >&6; } ;;
5211 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5212 $as_echo "print -r" >&6; } ;;
5213 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5214 $as_echo "cat" >&6; } ;;
5215 esac
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5232 if test "${ac_cv_path_SED+set}" = set; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5236 for ac_i in 1 2 3 4 5 6 7; do
5237 ac_script="$ac_script$as_nl$ac_script"
5238 done
5239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5240 { ac_script=; unset ac_script;}
5241 if test -z "$SED"; then
5242 ac_path_SED_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_prog in sed gsed; do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5252 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5253 # Check for GNU ac_path_SED and select it if it is found.
5254 # Check for GNU $ac_path_SED
5255 case `"$ac_path_SED" --version 2>&1` in
5256 *GNU*)
5257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5258 *)
5259 ac_count=0
5260 $as_echo_n 0123456789 >"conftest.in"
5261 while :
5262 do
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo '' >> "conftest.nl"
5267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_SED_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_SED="$ac_path_SED"
5273 ac_path_SED_max=$ac_count
5274 fi
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5277 done
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279 esac
5280
5281 $ac_path_SED_found && break 3
5282 done
5283 done
5284 done
5285 IFS=$as_save_IFS
5286 if test -z "$ac_cv_path_SED"; then
5287 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5288 fi
5289 else
5290 ac_cv_path_SED=$SED
5291 fi
5292
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5295 $as_echo "$ac_cv_path_SED" >&6; }
5296 SED="$ac_cv_path_SED"
5297 rm -f conftest.sed
5298
5299 test -z "$SED" && SED=sed
5300 Xsed="$SED -e 1s/^X//"
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5313 $as_echo_n "checking for fgrep... " >&6; }
5314 if test "${ac_cv_path_FGREP+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5318 then ac_cv_path_FGREP="$GREP -F"
5319 else
5320 if test -z "$FGREP"; then
5321 ac_path_FGREP_found=false
5322 # Loop through the user's path and test for each of PROGNAME-LIST
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_prog in fgrep; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5331 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5332 # Check for GNU ac_path_FGREP and select it if it is found.
5333 # Check for GNU $ac_path_FGREP
5334 case `"$ac_path_FGREP" --version 2>&1` in
5335 *GNU*)
5336 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5337 *)
5338 ac_count=0
5339 $as_echo_n 0123456789 >"conftest.in"
5340 while :
5341 do
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 $as_echo 'FGREP' >> "conftest.nl"
5346 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_FGREP="$ac_path_FGREP"
5352 ac_path_FGREP_max=$ac_count
5353 fi
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358 esac
5359
5360 $ac_path_FGREP_found && break 3
5361 done
5362 done
5363 done
5364 IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_FGREP"; then
5366 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 fi
5368 else
5369 ac_cv_path_FGREP=$FGREP
5370 fi
5371
5372 fi
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5375 $as_echo "$ac_cv_path_FGREP" >&6; }
5376 FGREP="$ac_cv_path_FGREP"
5377
5378
5379 test -z "$GREP" && GREP=grep
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399 # Check whether --with-gnu-ld was given.
5400 if test "${with_gnu_ld+set}" = set; then :
5401 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5402 else
5403 with_gnu_ld=no
5404 fi
5405
5406 ac_prog=ld
5407 if test "$GCC" = yes; then
5408 # Check if gcc -print-prog-name=ld gives a path.
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5410 $as_echo_n "checking for ld used by $CC... " >&6; }
5411 case $host in
5412 *-*-mingw*)
5413 # gcc leaves a trailing carriage return which upsets mingw
5414 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5415 *)
5416 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5417 esac
5418 case $ac_prog in
5419 # Accept absolute paths.
5420 [\\/]* | ?:[\\/]*)
5421 re_direlt='/[^/][^/]*/\.\./'
5422 # Canonicalize the pathname of ld
5423 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5424 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5425 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5426 done
5427 test -z "$LD" && LD="$ac_prog"
5428 ;;
5429 "")
5430 # If it fails, then pretend we aren't using GCC.
5431 ac_prog=ld
5432 ;;
5433 *)
5434 # If it is relative, then search for the first ld in PATH.
5435 with_gnu_ld=unknown
5436 ;;
5437 esac
5438 elif test "$with_gnu_ld" = yes; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5440 $as_echo_n "checking for GNU ld... " >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5443 $as_echo_n "checking for non-GNU ld... " >&6; }
5444 fi
5445 if test "${lt_cv_path_LD+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -z "$LD"; then
5449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5450 for ac_dir in $PATH; do
5451 IFS="$lt_save_ifs"
5452 test -z "$ac_dir" && ac_dir=.
5453 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5454 lt_cv_path_LD="$ac_dir/$ac_prog"
5455 # Check to see if the program is GNU ld. I'd rather use --version,
5456 # but apparently some variants of GNU ld only accept -v.
5457 # Break only if it was the GNU/non-GNU ld that we prefer.
5458 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5459 *GNU* | *'with BFD'*)
5460 test "$with_gnu_ld" != no && break
5461 ;;
5462 *)
5463 test "$with_gnu_ld" != yes && break
5464 ;;
5465 esac
5466 fi
5467 done
5468 IFS="$lt_save_ifs"
5469 else
5470 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5471 fi
5472 fi
5473
5474 LD="$lt_cv_path_LD"
5475 if test -n "$LD"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5477 $as_echo "$LD" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5484 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5485 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5489 case `$LD -v 2>&1 </dev/null` in
5490 *GNU* | *'with BFD'*)
5491 lt_cv_prog_gnu_ld=yes
5492 ;;
5493 *)
5494 lt_cv_prog_gnu_ld=no
5495 ;;
5496 esac
5497 fi
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5499 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5500 with_gnu_ld=$lt_cv_prog_gnu_ld
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5511 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5512 if test "${lt_cv_path_NM+set}" = set; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$NM"; then
5516 # Let the user override the test.
5517 lt_cv_path_NM="$NM"
5518 else
5519 lt_nm_to_check="${ac_tool_prefix}nm"
5520 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5521 lt_nm_to_check="$lt_nm_to_check nm"
5522 fi
5523 for lt_tmp_nm in $lt_nm_to_check; do
5524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5525 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5526 IFS="$lt_save_ifs"
5527 test -z "$ac_dir" && ac_dir=.
5528 tmp_nm="$ac_dir/$lt_tmp_nm"
5529 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5530 # Check to see if the nm accepts a BSD-compat flag.
5531 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5532 # nm: unknown option "B" ignored
5533 # Tru64's nm complains that /dev/null is an invalid object file
5534 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5535 */dev/null* | *'Invalid file or object type'*)
5536 lt_cv_path_NM="$tmp_nm -B"
5537 break
5538 ;;
5539 *)
5540 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5541 */dev/null*)
5542 lt_cv_path_NM="$tmp_nm -p"
5543 break
5544 ;;
5545 *)
5546 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5547 continue # so that we can try to find one that supports BSD flags
5548 ;;
5549 esac
5550 ;;
5551 esac
5552 fi
5553 done
5554 IFS="$lt_save_ifs"
5555 done
5556 : ${lt_cv_path_NM=no}
5557 fi
5558 fi
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5560 $as_echo "$lt_cv_path_NM" >&6; }
5561 if test "$lt_cv_path_NM" != "no"; then
5562 NM="$lt_cv_path_NM"
5563 else
5564 # Didn't find any BSD compatible name lister, look for dumpbin.
5565 if test -n "$DUMPBIN"; then :
5566 # Let the user override the test.
5567 else
5568 if test -n "$ac_tool_prefix"; then
5569 for ac_prog in dumpbin "link -dump"
5570 do
5571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5572 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -n "$DUMPBIN"; then
5579 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5591 fi
5592 done
5593 done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 DUMPBIN=$ac_cv_prog_DUMPBIN
5599 if test -n "$DUMPBIN"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5601 $as_echo "$DUMPBIN" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607
5608 test -n "$DUMPBIN" && break
5609 done
5610 fi
5611 if test -z "$DUMPBIN"; then
5612 ac_ct_DUMPBIN=$DUMPBIN
5613 for ac_prog in dumpbin "link -dump"
5614 do
5615 # Extract the first word of "$ac_prog", so it can be a program name with args.
5616 set dummy $ac_prog; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5621 else
5622 if test -n "$ac_ct_DUMPBIN"; then
5623 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636 done
5637 done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5643 if test -n "$ac_ct_DUMPBIN"; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5645 $as_echo "$ac_ct_DUMPBIN" >&6; }
5646 else
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5648 $as_echo "no" >&6; }
5649 fi
5650
5651
5652 test -n "$ac_ct_DUMPBIN" && break
5653 done
5654
5655 if test "x$ac_ct_DUMPBIN" = x; then
5656 DUMPBIN=":"
5657 else
5658 case $cross_compiling:$ac_tool_warned in
5659 yes:)
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5663 esac
5664 DUMPBIN=$ac_ct_DUMPBIN
5665 fi
5666 fi
5667
5668 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5669 *COFF*)
5670 DUMPBIN="$DUMPBIN -symbols"
5671 ;;
5672 *)
5673 DUMPBIN=:
5674 ;;
5675 esac
5676 fi
5677
5678 if test "$DUMPBIN" != ":"; then
5679 NM="$DUMPBIN"
5680 fi
5681 fi
5682 test -z "$NM" && NM=nm
5683
5684
5685
5686
5687
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5690 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5691 if test "${lt_cv_nm_interface+set}" = set; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 lt_cv_nm_interface="BSD nm"
5695 echo "int some_variable = 0;" > conftest.$ac_ext
5696 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5697 (eval "$ac_compile" 2>conftest.err)
5698 cat conftest.err >&5
5699 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5700 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5701 cat conftest.err >&5
5702 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5703 cat conftest.out >&5
5704 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5705 lt_cv_nm_interface="MS dumpbin"
5706 fi
5707 rm -f conftest*
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5710 $as_echo "$lt_cv_nm_interface" >&6; }
5711
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5713 $as_echo_n "checking whether ln -s works... " >&6; }
5714 LN_S=$as_ln_s
5715 if test "$LN_S" = "ln -s"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5717 $as_echo "yes" >&6; }
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5720 $as_echo "no, using $LN_S" >&6; }
5721 fi
5722
5723 # find the maximum length of command line arguments
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5725 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5726 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 i=0
5730 teststring="ABCD"
5731
5732 case $build_os in
5733 msdosdjgpp*)
5734 # On DJGPP, this test can blow up pretty badly due to problems in libc
5735 # (any single argument exceeding 2000 bytes causes a buffer overrun
5736 # during glob expansion). Even if it were fixed, the result of this
5737 # check would be larger than it should be.
5738 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5739 ;;
5740
5741 gnu*)
5742 # Under GNU Hurd, this test is not required because there is
5743 # no limit to the length of command line arguments.
5744 # Libtool will interpret -1 as no limit whatsoever
5745 lt_cv_sys_max_cmd_len=-1;
5746 ;;
5747
5748 cygwin* | mingw* | cegcc*)
5749 # On Win9x/ME, this test blows up -- it succeeds, but takes
5750 # about 5 minutes as the teststring grows exponentially.
5751 # Worse, since 9x/ME are not pre-emptively multitasking,
5752 # you end up with a "frozen" computer, even though with patience
5753 # the test eventually succeeds (with a max line length of 256k).
5754 # Instead, let's just punt: use the minimum linelength reported by
5755 # all of the supported platforms: 8192 (on NT/2K/XP).
5756 lt_cv_sys_max_cmd_len=8192;
5757 ;;
5758
5759 mint*)
5760 # On MiNT this can take a long time and run out of memory.
5761 lt_cv_sys_max_cmd_len=8192;
5762 ;;
5763
5764 amigaos*)
5765 # On AmigaOS with pdksh, this test takes hours, literally.
5766 # So we just punt and use a minimum line length of 8192.
5767 lt_cv_sys_max_cmd_len=8192;
5768 ;;
5769
5770 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5771 # This has been around since 386BSD, at least. Likely further.
5772 if test -x /sbin/sysctl; then
5773 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5774 elif test -x /usr/sbin/sysctl; then
5775 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5776 else
5777 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5778 fi
5779 # And add a safety zone
5780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5782 ;;
5783
5784 interix*)
5785 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5786 lt_cv_sys_max_cmd_len=196608
5787 ;;
5788
5789 osf*)
5790 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5791 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5792 # nice to cause kernel panics so lets avoid the loop below.
5793 # First set a reasonable default.
5794 lt_cv_sys_max_cmd_len=16384
5795 #
5796 if test -x /sbin/sysconfig; then
5797 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5798 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5799 esac
5800 fi
5801 ;;
5802 sco3.2v5*)
5803 lt_cv_sys_max_cmd_len=102400
5804 ;;
5805 sysv5* | sco5v6* | sysv4.2uw2*)
5806 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5807 if test -n "$kargmax"; then
5808 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5809 else
5810 lt_cv_sys_max_cmd_len=32768
5811 fi
5812 ;;
5813 *)
5814 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5815 if test -n "$lt_cv_sys_max_cmd_len"; then
5816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5818 else
5819 # Make teststring a little bigger before we do anything with it.
5820 # a 1K string should be a reasonable start.
5821 for i in 1 2 3 4 5 6 7 8 ; do
5822 teststring=$teststring$teststring
5823 done
5824 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5825 # If test is not a shell built-in, we'll probably end up computing a
5826 # maximum length that is only half of the actual maximum length, but
5827 # we can't tell.
5828 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5829 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5830 test $i != 17 # 1/2 MB should be enough
5831 do
5832 i=`expr $i + 1`
5833 teststring=$teststring$teststring
5834 done
5835 # Only check the string length outside the loop.
5836 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5837 teststring=
5838 # Add a significant safety factor because C++ compilers can tack on
5839 # massive amounts of additional arguments before passing them to the
5840 # linker. It appears as though 1/2 is a usable value.
5841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5842 fi
5843 ;;
5844 esac
5845
5846 fi
5847
5848 if test -n $lt_cv_sys_max_cmd_len ; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5850 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5851 else
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5853 $as_echo "none" >&6; }
5854 fi
5855 max_cmd_len=$lt_cv_sys_max_cmd_len
5856
5857
5858
5859
5860
5861
5862 : ${CP="cp -f"}
5863 : ${MV="mv -f"}
5864 : ${RM="rm -f"}
5865
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5867 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5868 # Try some XSI features
5869 xsi_shell=no
5870 ( _lt_dummy="a/b/c"
5871 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5872 = c,a/b,b/c, \
5873 && eval 'test $(( 1 + 1 )) -eq 2 \
5874 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5875 && xsi_shell=yes
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5877 $as_echo "$xsi_shell" >&6; }
5878
5879
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5881 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5882 lt_shell_append=no
5883 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5884 >/dev/null 2>&1 \
5885 && lt_shell_append=yes
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5887 $as_echo "$lt_shell_append" >&6; }
5888
5889
5890 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5891 lt_unset=unset
5892 else
5893 lt_unset=false
5894 fi
5895
5896
5897
5898
5899
5900 # test EBCDIC or ASCII
5901 case `echo X|tr X '\101'` in
5902 A) # ASCII based system
5903 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5904 lt_SP2NL='tr \040 \012'
5905 lt_NL2SP='tr \015\012 \040\040'
5906 ;;
5907 *) # EBCDIC based system
5908 lt_SP2NL='tr \100 \n'
5909 lt_NL2SP='tr \r\n \100\100'
5910 ;;
5911 esac
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5922 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5923 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
5924 $as_echo_n "(cached) " >&6
5925 else
5926 case $host in
5927 *-*-mingw* )
5928 case $build in
5929 *-*-mingw* ) # actually msys
5930 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5931 ;;
5932 *-*-cygwin* )
5933 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5934 ;;
5935 * ) # otherwise, assume *nix
5936 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5937 ;;
5938 esac
5939 ;;
5940 *-*-cygwin* )
5941 case $build in
5942 *-*-mingw* ) # actually msys
5943 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5944 ;;
5945 *-*-cygwin* )
5946 lt_cv_to_host_file_cmd=func_convert_file_noop
5947 ;;
5948 * ) # otherwise, assume *nix
5949 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5950 ;;
5951 esac
5952 ;;
5953 * ) # unhandled hosts (and "normal" native builds)
5954 lt_cv_to_host_file_cmd=func_convert_file_noop
5955 ;;
5956 esac
5957
5958 fi
5959
5960 to_host_file_cmd=$lt_cv_to_host_file_cmd
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5962 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5963
5964
5965
5966
5967
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5969 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5970 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 #assume ordinary cross tools, or native build.
5974 lt_cv_to_tool_file_cmd=func_convert_file_noop
5975 case $host in
5976 *-*-mingw* )
5977 case $build in
5978 *-*-mingw* ) # actually msys
5979 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5980 ;;
5981 esac
5982 ;;
5983 esac
5984
5985 fi
5986
5987 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5989 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5990
5991
5992
5993
5994
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5996 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5997 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 lt_cv_ld_reload_flag='-r'
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6003 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6004 reload_flag=$lt_cv_ld_reload_flag
6005 case $reload_flag in
6006 "" | " "*) ;;
6007 *) reload_flag=" $reload_flag" ;;
6008 esac
6009 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6010 case $host_os in
6011 cygwin* | mingw* | pw32* | cegcc*)
6012 if test "$GCC" != yes; then
6013 reload_cmds=false
6014 fi
6015 ;;
6016 darwin*)
6017 if test "$GCC" = yes; then
6018 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6019 else
6020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6021 fi
6022 ;;
6023 esac
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033 if test -n "$ac_tool_prefix"; then
6034 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6035 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 if test -n "$OBJDUMP"; then
6042 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6043 else
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6045 for as_dir in $PATH
6046 do
6047 IFS=$as_save_IFS
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 break 2
6054 fi
6055 done
6056 done
6057 IFS=$as_save_IFS
6058
6059 fi
6060 fi
6061 OBJDUMP=$ac_cv_prog_OBJDUMP
6062 if test -n "$OBJDUMP"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6064 $as_echo "$OBJDUMP" >&6; }
6065 else
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6068 fi
6069
6070
6071 fi
6072 if test -z "$ac_cv_prog_OBJDUMP"; then
6073 ac_ct_OBJDUMP=$OBJDUMP
6074 # Extract the first word of "objdump", so it can be a program name with args.
6075 set dummy objdump; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 if test -n "$ac_ct_OBJDUMP"; then
6082 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 break 2
6094 fi
6095 done
6096 done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6102 if test -n "$ac_ct_OBJDUMP"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6104 $as_echo "$ac_ct_OBJDUMP" >&6; }
6105 else
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110 if test "x$ac_ct_OBJDUMP" = x; then
6111 OBJDUMP="false"
6112 else
6113 case $cross_compiling:$ac_tool_warned in
6114 yes:)
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6117 ac_tool_warned=yes ;;
6118 esac
6119 OBJDUMP=$ac_ct_OBJDUMP
6120 fi
6121 else
6122 OBJDUMP="$ac_cv_prog_OBJDUMP"
6123 fi
6124
6125 test -z "$OBJDUMP" && OBJDUMP=objdump
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6136 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6137 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6139 else
6140 lt_cv_file_magic_cmd='$MAGIC_CMD'
6141 lt_cv_file_magic_test_file=
6142 lt_cv_deplibs_check_method='unknown'
6143 # Need to set the preceding variable on all platforms that support
6144 # interlibrary dependencies.
6145 # 'none' -- dependencies not supported.
6146 # `unknown' -- same as none, but documents that we really don't know.
6147 # 'pass_all' -- all dependencies passed with no checks.
6148 # 'test_compile' -- check by making test program.
6149 # 'file_magic [[regex]]' -- check by looking for files in library path
6150 # which responds to the $file_magic_cmd with a given extended regex.
6151 # If you have `file' or equivalent on your system and you're not sure
6152 # whether `pass_all' will *always* work, you probably want this one.
6153
6154 case $host_os in
6155 aix[4-9]*)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158
6159 beos*)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162
6163 bsdi[45]*)
6164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6165 lt_cv_file_magic_cmd='/usr/bin/file -L'
6166 lt_cv_file_magic_test_file=/shlib/libc.so
6167 ;;
6168
6169 cygwin*)
6170 # func_win32_libid is a shell function defined in ltmain.sh
6171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6172 lt_cv_file_magic_cmd='func_win32_libid'
6173 ;;
6174
6175 mingw* | pw32*)
6176 # Base MSYS/MinGW do not provide the 'file' command needed by
6177 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6178 # unless we find 'file', for example because we are cross-compiling.
6179 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6180 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6181 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6182 lt_cv_file_magic_cmd='func_win32_libid'
6183 else
6184 # Keep this pattern in sync with the one in func_win32_libid.
6185 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6186 lt_cv_file_magic_cmd='$OBJDUMP -f'
6187 fi
6188 ;;
6189
6190 cegcc*)
6191 # use the weaker test based on 'objdump'. See mingw*.
6192 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6193 lt_cv_file_magic_cmd='$OBJDUMP -f'
6194 ;;
6195
6196 darwin* | rhapsody*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200 freebsd* | dragonfly*)
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202 case $host_cpu in
6203 i*86 )
6204 # Not sure whether the presence of OpenBSD here was a mistake.
6205 # Let's accept both of them until this is cleared up.
6206 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6207 lt_cv_file_magic_cmd=/usr/bin/file
6208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6209 ;;
6210 esac
6211 else
6212 lt_cv_deplibs_check_method=pass_all
6213 fi
6214 ;;
6215
6216 gnu*)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219
6220 haiku*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224 hpux10.20* | hpux11*)
6225 lt_cv_file_magic_cmd=/usr/bin/file
6226 case $host_cpu in
6227 ia64*)
6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6230 ;;
6231 hppa*64*)
6232 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]'
6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6234 ;;
6235 *)
6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6238 ;;
6239 esac
6240 ;;
6241
6242 interix[3-9]*)
6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6245 ;;
6246
6247 irix5* | irix6* | nonstopux*)
6248 case $LD in
6249 *-32|*"-32 ") libmagic=32-bit;;
6250 *-n32|*"-n32 ") libmagic=N32;;
6251 *-64|*"-64 ") libmagic=64-bit;;
6252 *) libmagic=never-match;;
6253 esac
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256
6257 # This must be Linux ELF.
6258 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261
6262 netbsd*)
6263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6265 else
6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6267 fi
6268 ;;
6269
6270 newos6*)
6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6274 ;;
6275
6276 *nto* | *qnx*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
6279
6280 openbsd*)
6281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6283 else
6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6285 fi
6286 ;;
6287
6288 osf3* | osf4* | osf5*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291
6292 rdos*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296 solaris*)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299
6300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6301 lt_cv_deplibs_check_method=pass_all
6302 ;;
6303
6304 sysv4 | sysv4.3*)
6305 case $host_vendor in
6306 motorola)
6307 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]'
6308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6309 ;;
6310 ncr)
6311 lt_cv_deplibs_check_method=pass_all
6312 ;;
6313 sequent)
6314 lt_cv_file_magic_cmd='/bin/file'
6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6316 ;;
6317 sni)
6318 lt_cv_file_magic_cmd='/bin/file'
6319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6320 lt_cv_file_magic_test_file=/lib/libc.so
6321 ;;
6322 siemens)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325 pc)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328 esac
6329 ;;
6330
6331 tpf*)
6332 lt_cv_deplibs_check_method=pass_all
6333 ;;
6334 esac
6335
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6338 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6339
6340 file_magic_glob=
6341 want_nocaseglob=no
6342 if test "$build" = "$host"; then
6343 case $host_os in
6344 mingw* | pw32*)
6345 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6346 want_nocaseglob=yes
6347 else
6348 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6349 fi
6350 ;;
6351 esac
6352 fi
6353
6354 file_magic_cmd=$lt_cv_file_magic_cmd
6355 deplibs_check_method=$lt_cv_deplibs_check_method
6356 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379 if test -n "$ac_tool_prefix"; then
6380 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6386 else
6387 if test -n "$DLLTOOL"; then
6388 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393 IFS=$as_save_IFS
6394 test -z "$as_dir" && as_dir=.
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 break 2
6400 fi
6401 done
6402 done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 DLLTOOL=$ac_cv_prog_DLLTOOL
6408 if test -n "$DLLTOOL"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6410 $as_echo "$DLLTOOL" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416
6417 fi
6418 if test -z "$ac_cv_prog_DLLTOOL"; then
6419 ac_ct_DLLTOOL=$DLLTOOL
6420 # Extract the first word of "dlltool", so it can be a program name with args.
6421 set dummy dlltool; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 if test -n "$ac_ct_DLLTOOL"; then
6428 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6440 fi
6441 done
6442 done
6443 IFS=$as_save_IFS
6444
6445 fi
6446 fi
6447 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6448 if test -n "$ac_ct_DLLTOOL"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6450 $as_echo "$ac_ct_DLLTOOL" >&6; }
6451 else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455
6456 if test "x$ac_ct_DLLTOOL" = x; then
6457 DLLTOOL="false"
6458 else
6459 case $cross_compiling:$ac_tool_warned in
6460 yes:)
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6463 ac_tool_warned=yes ;;
6464 esac
6465 DLLTOOL=$ac_ct_DLLTOOL
6466 fi
6467 else
6468 DLLTOOL="$ac_cv_prog_DLLTOOL"
6469 fi
6470
6471 test -z "$DLLTOOL" && DLLTOOL=dlltool
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6483 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6484 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 lt_cv_sharedlib_from_linklib_cmd='unknown'
6488
6489 case $host_os in
6490 cygwin* | mingw* | pw32* | cegcc*)
6491 # two different shell functions defined in ltmain.sh
6492 # decide which to use based on capabilities of $DLLTOOL
6493 case `$DLLTOOL --help 2>&1` in
6494 *--identify-strict*)
6495 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6496 ;;
6497 *)
6498 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6499 ;;
6500 esac
6501 ;;
6502 *)
6503 # fallback: assume linklib IS sharedlib
6504 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6505 ;;
6506 esac
6507
6508 fi
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6510 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6511 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6512 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6513
6514
6515
6516
6517
6518
6519
6520 if test -n "$ac_tool_prefix"; then
6521 for ac_prog in ar
6522 do
6523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526 $as_echo_n "checking for $ac_word... " >&6; }
6527 if test "${ac_cv_prog_AR+set}" = set; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 if test -n "$AR"; then
6531 ac_cv_prog_AR="$AR" # Let the user override the test.
6532 else
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH
6535 do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6543 fi
6544 done
6545 done
6546 IFS=$as_save_IFS
6547
6548 fi
6549 fi
6550 AR=$ac_cv_prog_AR
6551 if test -n "$AR"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6553 $as_echo "$AR" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558
6559
6560 test -n "$AR" && break
6561 done
6562 fi
6563 if test -z "$AR"; then
6564 ac_ct_AR=$AR
6565 for ac_prog in ar
6566 do
6567 # Extract the first word of "$ac_prog", so it can be a program name with args.
6568 set dummy $ac_prog; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 if test -n "$ac_ct_AR"; then
6575 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_prog_ac_ct_AR="$ac_prog"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 break 2
6587 fi
6588 done
6589 done
6590 IFS=$as_save_IFS
6591
6592 fi
6593 fi
6594 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6595 if test -n "$ac_ct_AR"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6597 $as_echo "$ac_ct_AR" >&6; }
6598 else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6601 fi
6602
6603
6604 test -n "$ac_ct_AR" && break
6605 done
6606
6607 if test "x$ac_ct_AR" = x; then
6608 AR="false"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616 AR=$ac_ct_AR
6617 fi
6618 fi
6619
6620 : ${AR=ar}
6621 : ${AR_FLAGS=cru}
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6634 $as_echo_n "checking for archiver @FILE support... " >&6; }
6635 if test "${lt_cv_ar_at_file+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 lt_cv_ar_at_file=no
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641
6642 int
6643 main ()
6644 {
6645
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 if ac_fn_c_try_compile "$LINENO"; then :
6651 echo conftest.$ac_objext > conftest.lst
6652 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6654 (eval $lt_ar_try) 2>&5
6655 ac_status=$?
6656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657 test $ac_status = 0; }
6658 if test "$ac_status" -eq 0; then
6659 # Ensure the archiver fails upon bogus file names.
6660 rm -f conftest.$ac_objext libconftest.a
6661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6662 (eval $lt_ar_try) 2>&5
6663 ac_status=$?
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }
6666 if test "$ac_status" -ne 0; then
6667 lt_cv_ar_at_file=@
6668 fi
6669 fi
6670 rm -f conftest.* libconftest.a
6671
6672 fi
6673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674
6675 fi
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6677 $as_echo "$lt_cv_ar_at_file" >&6; }
6678
6679 if test "x$lt_cv_ar_at_file" = xno; then
6680 archiver_list_spec=
6681 else
6682 archiver_list_spec=$lt_cv_ar_at_file
6683 fi
6684
6685
6686
6687
6688
6689
6690
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}strip; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if test "${ac_cv_prog_STRIP+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$STRIP"; then
6700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 STRIP=$ac_cv_prog_STRIP
6720 if test -n "$STRIP"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6722 $as_echo "$STRIP" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728
6729 fi
6730 if test -z "$ac_cv_prog_STRIP"; then
6731 ac_ct_STRIP=$STRIP
6732 # Extract the first word of "strip", so it can be a program name with args.
6733 set dummy strip; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$ac_ct_STRIP"; then
6740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_ac_ct_STRIP="strip"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6760 if test -n "$ac_ct_STRIP"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6762 $as_echo "$ac_ct_STRIP" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768 if test "x$ac_ct_STRIP" = x; then
6769 STRIP=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 STRIP=$ac_ct_STRIP
6778 fi
6779 else
6780 STRIP="$ac_cv_prog_STRIP"
6781 fi
6782
6783 test -z "$STRIP" && STRIP=:
6784
6785
6786
6787
6788
6789
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 if test -n "$RANLIB"; then
6799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 RANLIB=$ac_cv_prog_RANLIB
6819 if test -n "$RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821 $as_echo "$RANLIB" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827
6828 fi
6829 if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB=$RANLIB
6831 # Extract the first word of "ranlib", so it can be a program name with args.
6832 set dummy ranlib; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$ac_ct_RANLIB"; then
6839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_prog_ac_ct_RANLIB="ranlib"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852 done
6853 done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859 if test -n "$ac_ct_RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861 $as_echo "$ac_ct_RANLIB" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867 if test "x$ac_ct_RANLIB" = x; then
6868 RANLIB=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876 RANLIB=$ac_ct_RANLIB
6877 fi
6878 else
6879 RANLIB="$ac_cv_prog_RANLIB"
6880 fi
6881
6882 test -z "$RANLIB" && RANLIB=:
6883
6884
6885
6886
6887
6888
6889 # Determine commands to create old-style static archives.
6890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6891 old_postinstall_cmds='chmod 644 $oldlib'
6892 old_postuninstall_cmds=
6893
6894 if test -n "$RANLIB"; then
6895 case $host_os in
6896 openbsd*)
6897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6898 ;;
6899 *)
6900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6901 ;;
6902 esac
6903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6904 fi
6905
6906 case $host_os in
6907 darwin*)
6908 lock_old_archive_extraction=yes ;;
6909 *)
6910 lock_old_archive_extraction=no ;;
6911 esac
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951 # If no C compiler was specified, use CC.
6952 LTCC=${LTCC-"$CC"}
6953
6954 # If no C compiler flags were specified, use CFLAGS.
6955 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6956
6957 # Allow CC to be a program name with arguments.
6958 compiler=$CC
6959
6960
6961 # Check for command to grab the raw symbol name followed by C symbol from nm.
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6963 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6964 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967
6968 # These are sane defaults that work on at least a few old systems.
6969 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6970
6971 # Character class describing NM global symbol codes.
6972 symcode='[BCDEGRST]'
6973
6974 # Regexp to match symbols that can be accessed directly from C.
6975 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6976
6977 # Define system-specific variables.
6978 case $host_os in
6979 aix*)
6980 symcode='[BCDT]'
6981 ;;
6982 cygwin* | mingw* | pw32* | cegcc*)
6983 symcode='[ABCDGISTW]'
6984 ;;
6985 hpux*)
6986 if test "$host_cpu" = ia64; then
6987 symcode='[ABCDEGRST]'
6988 fi
6989 ;;
6990 irix* | nonstopux*)
6991 symcode='[BCDEGRST]'
6992 ;;
6993 osf*)
6994 symcode='[BCDEGQRST]'
6995 ;;
6996 solaris*)
6997 symcode='[BDRT]'
6998 ;;
6999 sco3.2v5*)
7000 symcode='[DT]'
7001 ;;
7002 sysv4.2uw2*)
7003 symcode='[DT]'
7004 ;;
7005 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7006 symcode='[ABDT]'
7007 ;;
7008 sysv4)
7009 symcode='[DFNSTU]'
7010 ;;
7011 esac
7012
7013 # If we're using GNU nm, then use its standard symbol codes.
7014 case `$NM -V 2>&1` in
7015 *GNU* | *'with BFD'*)
7016 symcode='[ABCDGIRSTW]' ;;
7017 esac
7018
7019 # Transform an extracted symbol line into a proper C declaration.
7020 # Some systems (esp. on ia64) link data and code symbols differently,
7021 # so use this general approach.
7022 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7023
7024 # Transform an extracted symbol line into symbol name and symbol address
7025 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7026 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7027
7028 # Handle CRLF in mingw tool chain
7029 opt_cr=
7030 case $build_os in
7031 mingw*)
7032 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7033 ;;
7034 esac
7035
7036 # Try without a prefix underscore, then with it.
7037 for ac_symprfx in "" "_"; do
7038
7039 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7040 symxfrm="\\1 $ac_symprfx\\2 \\2"
7041
7042 # Write the raw and C identifiers.
7043 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7044 # Fake it for dumpbin and say T for any non-static function
7045 # and D for any global variable.
7046 # Also find C++ and __fastcall symbols from MSVC++,
7047 # which start with @ or ?.
7048 lt_cv_sys_global_symbol_pipe="$AWK '"\
7049 " {last_section=section; section=\$ 3};"\
7050 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7051 " \$ 0!~/External *\|/{next};"\
7052 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7053 " {if(hide[section]) next};"\
7054 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7055 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7056 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7057 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7058 " ' prfx=^$ac_symprfx"
7059 else
7060 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7061 fi
7062 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7063
7064 # Check to see that the pipe works correctly.
7065 pipe_works=no
7066
7067 rm -f conftest*
7068 cat > conftest.$ac_ext <<_LT_EOF
7069 #ifdef __cplusplus
7070 extern "C" {
7071 #endif
7072 char nm_test_var;
7073 void nm_test_func(void);
7074 void nm_test_func(void){}
7075 #ifdef __cplusplus
7076 }
7077 #endif
7078 int main(){nm_test_var='a';nm_test_func();return(0);}
7079 _LT_EOF
7080
7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7082 (eval $ac_compile) 2>&5
7083 ac_status=$?
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; }; then
7086 # Now try to grab the symbols.
7087 nlist=conftest.nm
7088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7089 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7090 ac_status=$?
7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092 test $ac_status = 0; } && test -s "$nlist"; then
7093 # Try sorting and uniquifying the output.
7094 if sort "$nlist" | uniq > "$nlist"T; then
7095 mv -f "$nlist"T "$nlist"
7096 else
7097 rm -f "$nlist"T
7098 fi
7099
7100 # Make sure that we snagged all the symbols we need.
7101 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7102 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7103 cat <<_LT_EOF > conftest.$ac_ext
7104 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7105 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7106 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7107 relocations are performed -- see ld's documentation on pseudo-relocs. */
7108 # define LT_DLSYM_CONST
7109 #elif defined(__osf__)
7110 /* This system does not cope well with relocations in const data. */
7111 # define LT_DLSYM_CONST
7112 #else
7113 # define LT_DLSYM_CONST const
7114 #endif
7115
7116 #ifdef __cplusplus
7117 extern "C" {
7118 #endif
7119
7120 _LT_EOF
7121 # Now generate the symbol file.
7122 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7123
7124 cat <<_LT_EOF >> conftest.$ac_ext
7125
7126 /* The mapping between symbol names and symbols. */
7127 LT_DLSYM_CONST struct {
7128 const char *name;
7129 void *address;
7130 }
7131 lt__PROGRAM__LTX_preloaded_symbols[] =
7132 {
7133 { "@PROGRAM@", (void *) 0 },
7134 _LT_EOF
7135 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7136 cat <<\_LT_EOF >> conftest.$ac_ext
7137 {0, (void *) 0}
7138 };
7139
7140 /* This works around a problem in FreeBSD linker */
7141 #ifdef FREEBSD_WORKAROUND
7142 static const void *lt_preloaded_setup() {
7143 return lt__PROGRAM__LTX_preloaded_symbols;
7144 }
7145 #endif
7146
7147 #ifdef __cplusplus
7148 }
7149 #endif
7150 _LT_EOF
7151 # Now try linking the two files.
7152 mv conftest.$ac_objext conftstm.$ac_objext
7153 lt_globsym_save_LIBS=$LIBS
7154 lt_globsym_save_CFLAGS=$CFLAGS
7155 LIBS="conftstm.$ac_objext"
7156 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7158 (eval $ac_link) 2>&5
7159 ac_status=$?
7160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7162 pipe_works=yes
7163 fi
7164 LIBS=$lt_globsym_save_LIBS
7165 CFLAGS=$lt_globsym_save_CFLAGS
7166 else
7167 echo "cannot find nm_test_func in $nlist" >&5
7168 fi
7169 else
7170 echo "cannot find nm_test_var in $nlist" >&5
7171 fi
7172 else
7173 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7174 fi
7175 else
7176 echo "$progname: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7178 fi
7179 rm -rf conftest* conftst*
7180
7181 # Do not use the global_symbol_pipe unless it works.
7182 if test "$pipe_works" = yes; then
7183 break
7184 else
7185 lt_cv_sys_global_symbol_pipe=
7186 fi
7187 done
7188
7189 fi
7190
7191 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7192 lt_cv_sys_global_symbol_to_cdecl=
7193 fi
7194 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7196 $as_echo "failed" >&6; }
7197 else
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7199 $as_echo "ok" >&6; }
7200 fi
7201
7202 # Response file support.
7203 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7204 nm_file_list_spec='@'
7205 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7206 nm_file_list_spec='@'
7207 fi
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7236 $as_echo_n "checking for sysroot... " >&6; }
7237
7238 # Check whether --with-sysroot was given.
7239 if test "${with_sysroot+set}" = set; then :
7240 withval=$with_sysroot;
7241 else
7242 with_sysroot=no
7243 fi
7244
7245
7246 lt_sysroot=
7247 case ${with_sysroot} in #(
7248 yes)
7249 if test "$GCC" = yes; then
7250 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7251 fi
7252 ;; #(
7253 /*)
7254 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7255 ;; #(
7256 no|'')
7257 ;; #(
7258 *)
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7260 $as_echo "${with_sysroot}" >&6; }
7261 as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
7262 ;;
7263 esac
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7266 $as_echo "${lt_sysroot:-no}" >&6; }
7267
7268
7269
7270
7271
7272 # Check whether --enable-libtool-lock was given.
7273 if test "${enable_libtool_lock+set}" = set; then :
7274 enableval=$enable_libtool_lock;
7275 fi
7276
7277 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7278
7279 # Some flags need to be propagated to the compiler or linker for good
7280 # libtool support.
7281 case $host in
7282 ia64-*-hpux*)
7283 # Find out which ABI we are using.
7284 echo 'int i;' > conftest.$ac_ext
7285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7286 (eval $ac_compile) 2>&5
7287 ac_status=$?
7288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7289 test $ac_status = 0; }; then
7290 case `/usr/bin/file conftest.$ac_objext` in
7291 *ELF-32*)
7292 HPUX_IA64_MODE="32"
7293 ;;
7294 *ELF-64*)
7295 HPUX_IA64_MODE="64"
7296 ;;
7297 esac
7298 fi
7299 rm -rf conftest*
7300 ;;
7301 *-*-irix6*)
7302 # Find out which ABI we are using.
7303 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7305 (eval $ac_compile) 2>&5
7306 ac_status=$?
7307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7308 test $ac_status = 0; }; then
7309 if test "$lt_cv_prog_gnu_ld" = yes; then
7310 case `/usr/bin/file conftest.$ac_objext` in
7311 *32-bit*)
7312 LD="${LD-ld} -melf32bsmip"
7313 ;;
7314 *N32*)
7315 LD="${LD-ld} -melf32bmipn32"
7316 ;;
7317 *64-bit*)
7318 LD="${LD-ld} -melf64bmip"
7319 ;;
7320 esac
7321 else
7322 case `/usr/bin/file conftest.$ac_objext` in
7323 *32-bit*)
7324 LD="${LD-ld} -32"
7325 ;;
7326 *N32*)
7327 LD="${LD-ld} -n32"
7328 ;;
7329 *64-bit*)
7330 LD="${LD-ld} -64"
7331 ;;
7332 esac
7333 fi
7334 fi
7335 rm -rf conftest*
7336 ;;
7337
7338 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7339 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7340 # Find out which ABI we are using.
7341 echo 'int i;' > conftest.$ac_ext
7342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7343 (eval $ac_compile) 2>&5
7344 ac_status=$?
7345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346 test $ac_status = 0; }; then
7347 case `/usr/bin/file conftest.o` in
7348 *32-bit*)
7349 case $host in
7350 x86_64-*kfreebsd*-gnu)
7351 LD="${LD-ld} -m elf_i386_fbsd"
7352 ;;
7353 x86_64-*linux*)
7354 LD="${LD-ld} -m elf_i386"
7355 ;;
7356 ppc64-*linux*|powerpc64-*linux*)
7357 LD="${LD-ld} -m elf32ppclinux"
7358 ;;
7359 s390x-*linux*)
7360 LD="${LD-ld} -m elf_s390"
7361 ;;
7362 sparc64-*linux*)
7363 LD="${LD-ld} -m elf32_sparc"
7364 ;;
7365 esac
7366 ;;
7367 *64-bit*)
7368 case $host in
7369 x86_64-*kfreebsd*-gnu)
7370 LD="${LD-ld} -m elf_x86_64_fbsd"
7371 ;;
7372 x86_64-*linux*)
7373 LD="${LD-ld} -m elf_x86_64"
7374 ;;
7375 ppc*-*linux*|powerpc*-*linux*)
7376 LD="${LD-ld} -m elf64ppc"
7377 ;;
7378 s390*-*linux*|s390*-*tpf*)
7379 LD="${LD-ld} -m elf64_s390"
7380 ;;
7381 sparc*-*linux*)
7382 LD="${LD-ld} -m elf64_sparc"
7383 ;;
7384 esac
7385 ;;
7386 esac
7387 fi
7388 rm -rf conftest*
7389 ;;
7390
7391 *-*-sco3.2v5*)
7392 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7393 SAVE_CFLAGS="$CFLAGS"
7394 CFLAGS="$CFLAGS -belf"
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7396 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7397 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 ac_ext=c
7401 ac_cpp='$CPP $CPPFLAGS'
7402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7405
7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407 /* end confdefs.h. */
7408
7409 int
7410 main ()
7411 {
7412
7413 ;
7414 return 0;
7415 }
7416 _ACEOF
7417 if ac_fn_c_try_link "$LINENO"; then :
7418 lt_cv_cc_needs_belf=yes
7419 else
7420 lt_cv_cc_needs_belf=no
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7424 ac_ext=c
7425 ac_cpp='$CPP $CPPFLAGS'
7426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7429
7430 fi
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7432 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7433 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7434 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7435 CFLAGS="$SAVE_CFLAGS"
7436 fi
7437 ;;
7438 sparc*-*solaris*)
7439 # Find out which ABI we are using.
7440 echo 'int i;' > conftest.$ac_ext
7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7442 (eval $ac_compile) 2>&5
7443 ac_status=$?
7444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }; then
7446 case `/usr/bin/file conftest.o` in
7447 *64-bit*)
7448 case $lt_cv_prog_gnu_ld in
7449 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7450 *)
7451 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7452 LD="${LD-ld} -64"
7453 fi
7454 ;;
7455 esac
7456 ;;
7457 esac
7458 fi
7459 rm -rf conftest*
7460 ;;
7461 esac
7462
7463 need_locks="$enable_libtool_lock"
7464
7465 if test -n "$ac_tool_prefix"; then
7466 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7467 set dummy ${ac_tool_prefix}mt; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$MANIFEST_TOOL"; then
7474 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7494 if test -n "$MANIFEST_TOOL"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7496 $as_echo "$MANIFEST_TOOL" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502
7503 fi
7504 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7505 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7506 # Extract the first word of "mt", so it can be a program name with args.
7507 set dummy mt; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 if test -n "$ac_ct_MANIFEST_TOOL"; then
7514 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7518 do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531 fi
7532 fi
7533 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7534 if test -n "$ac_ct_MANIFEST_TOOL"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7536 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7537 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7540 fi
7541
7542 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7543 MANIFEST_TOOL=":"
7544 else
7545 case $cross_compiling:$ac_tool_warned in
7546 yes:)
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7549 ac_tool_warned=yes ;;
7550 esac
7551 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7552 fi
7553 else
7554 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7555 fi
7556
7557 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7559 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7560 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 lt_cv_path_mainfest_tool=no
7564 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7565 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7566 cat conftest.err >&5
7567 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7568 lt_cv_path_mainfest_tool=yes
7569 fi
7570 rm -f conftest*
7571 fi
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7573 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7574 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7575 MANIFEST_TOOL=:
7576 fi
7577
7578
7579
7580
7581
7582
7583 case $host_os in
7584 rhapsody* | darwin*)
7585 if test -n "$ac_tool_prefix"; then
7586 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7587 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 if test -n "$DSYMUTIL"; then
7594 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 for ac_exec_ext in '' $ac_executable_extensions; do
7602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605 break 2
7606 fi
7607 done
7608 done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7614 if test -n "$DSYMUTIL"; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7616 $as_echo "$DSYMUTIL" >&6; }
7617 else
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622
7623 fi
7624 if test -z "$ac_cv_prog_DSYMUTIL"; then
7625 ac_ct_DSYMUTIL=$DSYMUTIL
7626 # Extract the first word of "dsymutil", so it can be a program name with args.
7627 set dummy dsymutil; ac_word=$2
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629 $as_echo_n "checking for $ac_word... " >&6; }
7630 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7631 $as_echo_n "(cached) " >&6
7632 else
7633 if test -n "$ac_ct_DSYMUTIL"; then
7634 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7635 else
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7643 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651 fi
7652 fi
7653 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7654 if test -n "$ac_ct_DSYMUTIL"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7656 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7657 else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659 $as_echo "no" >&6; }
7660 fi
7661
7662 if test "x$ac_ct_DSYMUTIL" = x; then
7663 DSYMUTIL=":"
7664 else
7665 case $cross_compiling:$ac_tool_warned in
7666 yes:)
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7669 ac_tool_warned=yes ;;
7670 esac
7671 DSYMUTIL=$ac_ct_DSYMUTIL
7672 fi
7673 else
7674 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7675 fi
7676
7677 if test -n "$ac_tool_prefix"; then
7678 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7679 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 if test -n "$NMEDIT"; then
7686 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691 IFS=$as_save_IFS
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 break 2
7698 fi
7699 done
7700 done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 NMEDIT=$ac_cv_prog_NMEDIT
7706 if test -n "$NMEDIT"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7708 $as_echo "$NMEDIT" >&6; }
7709 else
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714
7715 fi
7716 if test -z "$ac_cv_prog_NMEDIT"; then
7717 ac_ct_NMEDIT=$NMEDIT
7718 # Extract the first word of "nmedit", so it can be a program name with args.
7719 set dummy nmedit; ac_word=$2
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721 $as_echo_n "checking for $ac_word... " >&6; }
7722 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 if test -n "$ac_ct_NMEDIT"; then
7726 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7727 else
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 for as_dir in $PATH
7730 do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739 done
7740 done
7741 IFS=$as_save_IFS
7742
7743 fi
7744 fi
7745 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7746 if test -n "$ac_ct_NMEDIT"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7748 $as_echo "$ac_ct_NMEDIT" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754 if test "x$ac_ct_NMEDIT" = x; then
7755 NMEDIT=":"
7756 else
7757 case $cross_compiling:$ac_tool_warned in
7758 yes:)
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7761 ac_tool_warned=yes ;;
7762 esac
7763 NMEDIT=$ac_ct_NMEDIT
7764 fi
7765 else
7766 NMEDIT="$ac_cv_prog_NMEDIT"
7767 fi
7768
7769 if test -n "$ac_tool_prefix"; then
7770 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7771 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if test "${ac_cv_prog_LIPO+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 if test -n "$LIPO"; then
7778 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
7786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791 done
7792 done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 LIPO=$ac_cv_prog_LIPO
7798 if test -n "$LIPO"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7800 $as_echo "$LIPO" >&6; }
7801 else
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806
7807 fi
7808 if test -z "$ac_cv_prog_LIPO"; then
7809 ac_ct_LIPO=$LIPO
7810 # Extract the first word of "lipo", so it can be a program name with args.
7811 set dummy lipo; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 if test -n "$ac_ct_LIPO"; then
7818 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7819 else
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 for as_dir in $PATH
7822 do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7827 ac_cv_prog_ac_ct_LIPO="lipo"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831 done
7832 done
7833 IFS=$as_save_IFS
7834
7835 fi
7836 fi
7837 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7838 if test -n "$ac_ct_LIPO"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7840 $as_echo "$ac_ct_LIPO" >&6; }
7841 else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7844 fi
7845
7846 if test "x$ac_ct_LIPO" = x; then
7847 LIPO=":"
7848 else
7849 case $cross_compiling:$ac_tool_warned in
7850 yes:)
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7853 ac_tool_warned=yes ;;
7854 esac
7855 LIPO=$ac_ct_LIPO
7856 fi
7857 else
7858 LIPO="$ac_cv_prog_LIPO"
7859 fi
7860
7861 if test -n "$ac_tool_prefix"; then
7862 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7863 set dummy ${ac_tool_prefix}otool; ac_word=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 if test -n "$OTOOL"; then
7870 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7882 fi
7883 done
7884 done
7885 IFS=$as_save_IFS
7886
7887 fi
7888 fi
7889 OTOOL=$ac_cv_prog_OTOOL
7890 if test -n "$OTOOL"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7892 $as_echo "$OTOOL" >&6; }
7893 else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896 fi
7897
7898
7899 fi
7900 if test -z "$ac_cv_prog_OTOOL"; then
7901 ac_ct_OTOOL=$OTOOL
7902 # Extract the first word of "otool", so it can be a program name with args.
7903 set dummy otool; ac_word=$2
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905 $as_echo_n "checking for $ac_word... " >&6; }
7906 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 if test -n "$ac_ct_OTOOL"; then
7910 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 ac_cv_prog_ac_ct_OTOOL="otool"
7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923 done
7924 done
7925 IFS=$as_save_IFS
7926
7927 fi
7928 fi
7929 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7930 if test -n "$ac_ct_OTOOL"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7932 $as_echo "$ac_ct_OTOOL" >&6; }
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 $as_echo "no" >&6; }
7936 fi
7937
7938 if test "x$ac_ct_OTOOL" = x; then
7939 OTOOL=":"
7940 else
7941 case $cross_compiling:$ac_tool_warned in
7942 yes:)
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7945 ac_tool_warned=yes ;;
7946 esac
7947 OTOOL=$ac_ct_OTOOL
7948 fi
7949 else
7950 OTOOL="$ac_cv_prog_OTOOL"
7951 fi
7952
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 if test -n "$OTOOL64"; then
7962 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7963 else
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7966 do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7974 fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979 fi
7980 fi
7981 OTOOL64=$ac_cv_prog_OTOOL64
7982 if test -n "$OTOOL64"; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7984 $as_echo "$OTOOL64" >&6; }
7985 else
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 $as_echo "no" >&6; }
7988 fi
7989
7990
7991 fi
7992 if test -z "$ac_cv_prog_OTOOL64"; then
7993 ac_ct_OTOOL64=$OTOOL64
7994 # Extract the first word of "otool64", so it can be a program name with args.
7995 set dummy otool64; ac_word=$2
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 if test -n "$ac_ct_OTOOL64"; then
8002 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8003 else
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 for as_dir in $PATH
8006 do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_prog_ac_ct_OTOOL64="otool64"
8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015 done
8016 done
8017 IFS=$as_save_IFS
8018
8019 fi
8020 fi
8021 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8022 if test -n "$ac_ct_OTOOL64"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8024 $as_echo "$ac_ct_OTOOL64" >&6; }
8025 else
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8027 $as_echo "no" >&6; }
8028 fi
8029
8030 if test "x$ac_ct_OTOOL64" = x; then
8031 OTOOL64=":"
8032 else
8033 case $cross_compiling:$ac_tool_warned in
8034 yes:)
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8037 ac_tool_warned=yes ;;
8038 esac
8039 OTOOL64=$ac_ct_OTOOL64
8040 fi
8041 else
8042 OTOOL64="$ac_cv_prog_OTOOL64"
8043 fi
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8072 $as_echo_n "checking for -single_module linker flag... " >&6; }
8073 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 lt_cv_apple_cc_single_mod=no
8077 if test -z "${LT_MULTI_MODULE}"; then
8078 # By default we will add the -single_module flag. You can override
8079 # by either setting the environment variable LT_MULTI_MODULE
8080 # non-empty at configure time, or by adding -multi_module to the
8081 # link flags.
8082 rm -rf libconftest.dylib*
8083 echo "int foo(void){return 1;}" > conftest.c
8084 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8085 -dynamiclib -Wl,-single_module conftest.c" >&5
8086 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8087 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8088 _lt_result=$?
8089 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8090 lt_cv_apple_cc_single_mod=yes
8091 else
8092 cat conftest.err >&5
8093 fi
8094 rm -rf libconftest.dylib*
8095 rm -f conftest.*
8096 fi
8097 fi
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8099 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8101 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8102 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 lt_cv_ld_exported_symbols_list=no
8106 save_LDFLAGS=$LDFLAGS
8107 echo "_main" > conftest.sym
8108 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111
8112 int
8113 main ()
8114 {
8115
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 if ac_fn_c_try_link "$LINENO"; then :
8121 lt_cv_ld_exported_symbols_list=yes
8122 else
8123 lt_cv_ld_exported_symbols_list=no
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext \
8126 conftest$ac_exeext conftest.$ac_ext
8127 LDFLAGS="$save_LDFLAGS"
8128
8129 fi
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8131 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8133 $as_echo_n "checking for -force_load linker flag... " >&6; }
8134 if test "${lt_cv_ld_force_load+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 lt_cv_ld_force_load=no
8138 cat > conftest.c << _LT_EOF
8139 int forced_loaded() { return 2;}
8140 _LT_EOF
8141 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8142 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8143 echo "$AR cru libconftest.a conftest.o" >&5
8144 $AR cru libconftest.a conftest.o 2>&5
8145 echo "$RANLIB libconftest.a" >&5
8146 $RANLIB libconftest.a 2>&5
8147 cat > conftest.c << _LT_EOF
8148 int main() { return 0;}
8149 _LT_EOF
8150 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8151 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8152 _lt_result=$?
8153 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8154 lt_cv_ld_force_load=yes
8155 else
8156 cat conftest.err >&5
8157 fi
8158 rm -f conftest.err libconftest.a conftest conftest.c
8159 rm -rf conftest.dSYM
8160
8161 fi
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8163 $as_echo "$lt_cv_ld_force_load" >&6; }
8164 case $host_os in
8165 rhapsody* | darwin1.[012])
8166 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8167 darwin1.*)
8168 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8169 darwin*) # darwin 5.x on
8170 # if running on 10.5 or later, the deployment target defaults
8171 # to the OS version, if on x86, and 10.4, the deployment
8172 # target defaults to 10.4. Don't you love it?
8173 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8174 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8175 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8176 10.[012]*)
8177 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8178 10.*)
8179 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8180 esac
8181 ;;
8182 esac
8183 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8184 _lt_dar_single_mod='$single_module'
8185 fi
8186 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8187 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8188 else
8189 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8190 fi
8191 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8192 _lt_dsymutil='~$DSYMUTIL $lib || :'
8193 else
8194 _lt_dsymutil=
8195 fi
8196 ;;
8197 esac
8198
8199 for ac_header in dlfcn.h
8200 do :
8201 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8202 "
8203 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_DLFCN_H 1
8206 _ACEOF
8207
8208 fi
8209
8210 done
8211
8212
8213
8214
8215
8216 # Set options
8217
8218
8219
8220 enable_dlopen=no
8221
8222
8223 enable_win32_dll=no
8224
8225
8226 # Check whether --enable-shared was given.
8227 if test "${enable_shared+set}" = set; then :
8228 enableval=$enable_shared; p=${PACKAGE-default}
8229 case $enableval in
8230 yes) enable_shared=yes ;;
8231 no) enable_shared=no ;;
8232 *)
8233 enable_shared=no
8234 # Look at the argument we got. We use all the common list separators.
8235 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8236 for pkg in $enableval; do
8237 IFS="$lt_save_ifs"
8238 if test "X$pkg" = "X$p"; then
8239 enable_shared=yes
8240 fi
8241 done
8242 IFS="$lt_save_ifs"
8243 ;;
8244 esac
8245 else
8246 enable_shared=yes
8247 fi
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257 # Check whether --enable-static was given.
8258 if test "${enable_static+set}" = set; then :
8259 enableval=$enable_static; p=${PACKAGE-default}
8260 case $enableval in
8261 yes) enable_static=yes ;;
8262 no) enable_static=no ;;
8263 *)
8264 enable_static=no
8265 # Look at the argument we got. We use all the common list separators.
8266 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8267 for pkg in $enableval; do
8268 IFS="$lt_save_ifs"
8269 if test "X$pkg" = "X$p"; then
8270 enable_static=yes
8271 fi
8272 done
8273 IFS="$lt_save_ifs"
8274 ;;
8275 esac
8276 else
8277 enable_static=yes
8278 fi
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289 # Check whether --with-pic was given.
8290 if test "${with_pic+set}" = set; then :
8291 withval=$with_pic; pic_mode="$withval"
8292 else
8293 pic_mode=default
8294 fi
8295
8296
8297 test -z "$pic_mode" && pic_mode=default
8298
8299
8300
8301
8302
8303
8304
8305 # Check whether --enable-fast-install was given.
8306 if test "${enable_fast_install+set}" = set; then :
8307 enableval=$enable_fast_install; p=${PACKAGE-default}
8308 case $enableval in
8309 yes) enable_fast_install=yes ;;
8310 no) enable_fast_install=no ;;
8311 *)
8312 enable_fast_install=no
8313 # Look at the argument we got. We use all the common list separators.
8314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8315 for pkg in $enableval; do
8316 IFS="$lt_save_ifs"
8317 if test "X$pkg" = "X$p"; then
8318 enable_fast_install=yes
8319 fi
8320 done
8321 IFS="$lt_save_ifs"
8322 ;;
8323 esac
8324 else
8325 enable_fast_install=yes
8326 fi
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338 # This can be used to rebuild libtool when needed
8339 LIBTOOL_DEPS="$ltmain"
8340
8341 # Always use our own libtool.
8342 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369 test -z "$LN_S" && LN_S="ln -s"
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384 if test -n "${ZSH_VERSION+set}" ; then
8385 setopt NO_GLOB_SUBST
8386 fi
8387
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8389 $as_echo_n "checking for objdir... " >&6; }
8390 if test "${lt_cv_objdir+set}" = set; then :
8391 $as_echo_n "(cached) " >&6
8392 else
8393 rm -f .libs 2>/dev/null
8394 mkdir .libs 2>/dev/null
8395 if test -d .libs; then
8396 lt_cv_objdir=.libs
8397 else
8398 # MS-DOS does not allow filenames that begin with a dot.
8399 lt_cv_objdir=_libs
8400 fi
8401 rmdir .libs 2>/dev/null
8402 fi
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8404 $as_echo "$lt_cv_objdir" >&6; }
8405 objdir=$lt_cv_objdir
8406
8407
8408
8409
8410
8411 cat >>confdefs.h <<_ACEOF
8412 #define LT_OBJDIR "$lt_cv_objdir/"
8413 _ACEOF
8414
8415
8416
8417
8418 case $host_os in
8419 aix3*)
8420 # AIX sometimes has problems with the GCC collect2 program. For some
8421 # reason, if we set the COLLECT_NAMES environment variable, the problems
8422 # vanish in a puff of smoke.
8423 if test "X${COLLECT_NAMES+set}" != Xset; then
8424 COLLECT_NAMES=
8425 export COLLECT_NAMES
8426 fi
8427 ;;
8428 esac
8429
8430 # Global variables:
8431 ofile=libtool
8432 can_build_shared=yes
8433
8434 # All known linkers require a `.a' archive for static linking (except MSVC,
8435 # which needs '.lib').
8436 libext=a
8437
8438 with_gnu_ld="$lt_cv_prog_gnu_ld"
8439
8440 old_CC="$CC"
8441 old_CFLAGS="$CFLAGS"
8442
8443 # Set sane defaults for various variables
8444 test -z "$CC" && CC=cc
8445 test -z "$LTCC" && LTCC=$CC
8446 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8447 test -z "$LD" && LD=ld
8448 test -z "$ac_objext" && ac_objext=o
8449
8450 for cc_temp in $compiler""; do
8451 case $cc_temp in
8452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8454 \-*) ;;
8455 *) break;;
8456 esac
8457 done
8458 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8459
8460
8461 # Only perform the check for file, if the check method requires it
8462 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8463 case $deplibs_check_method in
8464 file_magic*)
8465 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8467 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8468 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 case $MAGIC_CMD in
8472 [\\/*] | ?:[\\/]*)
8473 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8474 ;;
8475 *)
8476 lt_save_MAGIC_CMD="$MAGIC_CMD"
8477 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8478 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8479 for ac_dir in $ac_dummy; do
8480 IFS="$lt_save_ifs"
8481 test -z "$ac_dir" && ac_dir=.
8482 if test -f $ac_dir/${ac_tool_prefix}file; then
8483 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8484 if test -n "$file_magic_test_file"; then
8485 case $deplibs_check_method in
8486 "file_magic "*)
8487 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8489 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8490 $EGREP "$file_magic_regex" > /dev/null; then
8491 :
8492 else
8493 cat <<_LT_EOF 1>&2
8494
8495 *** Warning: the command libtool uses to detect shared libraries,
8496 *** $file_magic_cmd, produces output that libtool cannot recognize.
8497 *** The result is that libtool may fail to recognize shared libraries
8498 *** as such. This will affect the creation of libtool libraries that
8499 *** depend on shared libraries, but programs linked with such libtool
8500 *** libraries will work regardless of this problem. Nevertheless, you
8501 *** may want to report the problem to your system manager and/or to
8502 *** bug-libtool@gnu.org
8503
8504 _LT_EOF
8505 fi ;;
8506 esac
8507 fi
8508 break
8509 fi
8510 done
8511 IFS="$lt_save_ifs"
8512 MAGIC_CMD="$lt_save_MAGIC_CMD"
8513 ;;
8514 esac
8515 fi
8516
8517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8518 if test -n "$MAGIC_CMD"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8520 $as_echo "$MAGIC_CMD" >&6; }
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8524 fi
8525
8526
8527
8528
8529
8530 if test -z "$lt_cv_path_MAGIC_CMD"; then
8531 if test -n "$ac_tool_prefix"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8533 $as_echo_n "checking for file... " >&6; }
8534 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 case $MAGIC_CMD in
8538 [\\/*] | ?:[\\/]*)
8539 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8540 ;;
8541 *)
8542 lt_save_MAGIC_CMD="$MAGIC_CMD"
8543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8544 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8545 for ac_dir in $ac_dummy; do
8546 IFS="$lt_save_ifs"
8547 test -z "$ac_dir" && ac_dir=.
8548 if test -f $ac_dir/file; then
8549 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8550 if test -n "$file_magic_test_file"; then
8551 case $deplibs_check_method in
8552 "file_magic "*)
8553 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8554 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8555 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8556 $EGREP "$file_magic_regex" > /dev/null; then
8557 :
8558 else
8559 cat <<_LT_EOF 1>&2
8560
8561 *** Warning: the command libtool uses to detect shared libraries,
8562 *** $file_magic_cmd, produces output that libtool cannot recognize.
8563 *** The result is that libtool may fail to recognize shared libraries
8564 *** as such. This will affect the creation of libtool libraries that
8565 *** depend on shared libraries, but programs linked with such libtool
8566 *** libraries will work regardless of this problem. Nevertheless, you
8567 *** may want to report the problem to your system manager and/or to
8568 *** bug-libtool@gnu.org
8569
8570 _LT_EOF
8571 fi ;;
8572 esac
8573 fi
8574 break
8575 fi
8576 done
8577 IFS="$lt_save_ifs"
8578 MAGIC_CMD="$lt_save_MAGIC_CMD"
8579 ;;
8580 esac
8581 fi
8582
8583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8584 if test -n "$MAGIC_CMD"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8586 $as_echo "$MAGIC_CMD" >&6; }
8587 else
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8590 fi
8591
8592
8593 else
8594 MAGIC_CMD=:
8595 fi
8596 fi
8597
8598 fi
8599 ;;
8600 esac
8601
8602 # Use C for the default configuration in the libtool script
8603
8604 lt_save_CC="$CC"
8605 ac_ext=c
8606 ac_cpp='$CPP $CPPFLAGS'
8607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8610
8611
8612 # Source file extension for C test sources.
8613 ac_ext=c
8614
8615 # Object file extension for compiled C test sources.
8616 objext=o
8617 objext=$objext
8618
8619 # Code to be used in simple compile tests
8620 lt_simple_compile_test_code="int some_variable = 0;"
8621
8622 # Code to be used in simple link tests
8623 lt_simple_link_test_code='int main(){return(0);}'
8624
8625
8626
8627
8628
8629
8630
8631 # If no C compiler was specified, use CC.
8632 LTCC=${LTCC-"$CC"}
8633
8634 # If no C compiler flags were specified, use CFLAGS.
8635 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8636
8637 # Allow CC to be a program name with arguments.
8638 compiler=$CC
8639
8640 # Save the default compiler, since it gets overwritten when the other
8641 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8642 compiler_DEFAULT=$CC
8643
8644 # save warnings/boilerplate of simple test code
8645 ac_outfile=conftest.$ac_objext
8646 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8647 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8648 _lt_compiler_boilerplate=`cat conftest.err`
8649 $RM conftest*
8650
8651 ac_outfile=conftest.$ac_objext
8652 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8653 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8654 _lt_linker_boilerplate=`cat conftest.err`
8655 $RM -r conftest*
8656
8657
8658 if test -n "$compiler"; then
8659
8660 lt_prog_compiler_no_builtin_flag=
8661
8662 if test "$GCC" = yes; then
8663 case $cc_basename in
8664 nvcc*)
8665 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8666 *)
8667 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8668 esac
8669
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8671 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8672 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 lt_cv_prog_compiler_rtti_exceptions=no
8676 ac_outfile=conftest.$ac_objext
8677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678 lt_compiler_flag="-fno-rtti -fno-exceptions"
8679 # Insert the option either (1) after the last *FLAGS variable, or
8680 # (2) before a word containing "conftest.", or (3) at the end.
8681 # Note that $ac_compile itself does not contain backslashes and begins
8682 # with a dollar sign (not a hyphen), so the echo should work correctly.
8683 # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
8690 ac_status=$?
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 if (exit $ac_status) && test -s "$ac_outfile"; then
8694 # The compiler can only warn and ignore the option if not recognized
8695 # So say no if there are warnings other than the usual output.
8696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699 lt_cv_prog_compiler_rtti_exceptions=yes
8700 fi
8701 fi
8702 $RM conftest*
8703
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8706 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8707
8708 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8709 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8710 else
8711 :
8712 fi
8713
8714 fi
8715
8716
8717
8718
8719
8720
8721 lt_prog_compiler_wl=
8722 lt_prog_compiler_pic=
8723 lt_prog_compiler_static=
8724
8725
8726 if test "$GCC" = yes; then
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_static='-static'
8729
8730 case $host_os in
8731 aix*)
8732 # All AIX code is PIC.
8733 if test "$host_cpu" = ia64; then
8734 # AIX 5 now supports IA64 processor
8735 lt_prog_compiler_static='-Bstatic'
8736 fi
8737 ;;
8738
8739 amigaos*)
8740 case $host_cpu in
8741 powerpc)
8742 # see comment about AmigaOS4 .so support
8743 lt_prog_compiler_pic='-fPIC'
8744 ;;
8745 m68k)
8746 # FIXME: we need at least 68020 code to build shared libraries, but
8747 # adding the `-m68020' flag to GCC prevents building anything better,
8748 # like `-m68040'.
8749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8750 ;;
8751 esac
8752 ;;
8753
8754 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8755 # PIC is the default for these OSes.
8756 ;;
8757
8758 mingw* | cygwin* | pw32* | os2* | cegcc*)
8759 # This hack is so that the source file can tell whether it is being
8760 # built for inclusion in a dll (and should export symbols for example).
8761 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8762 # (--disable-auto-import) libraries
8763 lt_prog_compiler_pic='-DDLL_EXPORT'
8764 ;;
8765
8766 darwin* | rhapsody*)
8767 # PIC is the default on this platform
8768 # Common symbols not allowed in MH_DYLIB files
8769 lt_prog_compiler_pic='-fno-common'
8770 ;;
8771
8772 haiku*)
8773 # PIC is the default for Haiku.
8774 # The "-static" flag exists, but is broken.
8775 lt_prog_compiler_static=
8776 ;;
8777
8778 hpux*)
8779 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8780 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8781 # sets the default TLS model and affects inlining.
8782 case $host_cpu in
8783 hppa*64*)
8784 # +Z the default
8785 ;;
8786 *)
8787 lt_prog_compiler_pic='-fPIC'
8788 ;;
8789 esac
8790 ;;
8791
8792 interix[3-9]*)
8793 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8794 # Instead, we relocate shared libraries at runtime.
8795 ;;
8796
8797 msdosdjgpp*)
8798 # Just because we use GCC doesn't mean we suddenly get shared libraries
8799 # on systems that don't support them.
8800 lt_prog_compiler_can_build_shared=no
8801 enable_shared=no
8802 ;;
8803
8804 *nto* | *qnx*)
8805 # QNX uses GNU C++, but need to define -shared option too, otherwise
8806 # it will coredump.
8807 lt_prog_compiler_pic='-fPIC -shared'
8808 ;;
8809
8810 sysv4*MP*)
8811 if test -d /usr/nec; then
8812 lt_prog_compiler_pic=-Kconform_pic
8813 fi
8814 ;;
8815
8816 *)
8817 lt_prog_compiler_pic='-fPIC'
8818 ;;
8819 esac
8820
8821 case $cc_basename in
8822 nvcc*) # Cuda Compiler Driver 2.2
8823 lt_prog_compiler_wl='-Xlinker '
8824 lt_prog_compiler_pic='-Xcompiler -fPIC'
8825 ;;
8826 esac
8827 else
8828 # PORTME Check for flag to pass linker flags through the system compiler.
8829 case $host_os in
8830 aix*)
8831 lt_prog_compiler_wl='-Wl,'
8832 if test "$host_cpu" = ia64; then
8833 # AIX 5 now supports IA64 processor
8834 lt_prog_compiler_static='-Bstatic'
8835 else
8836 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8837 fi
8838 ;;
8839
8840 mingw* | cygwin* | pw32* | os2* | cegcc*)
8841 # This hack is so that the source file can tell whether it is being
8842 # built for inclusion in a dll (and should export symbols for example).
8843 lt_prog_compiler_pic='-DDLL_EXPORT'
8844 ;;
8845
8846 hpux9* | hpux10* | hpux11*)
8847 lt_prog_compiler_wl='-Wl,'
8848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8849 # not for PA HP-UX.
8850 case $host_cpu in
8851 hppa*64*|ia64*)
8852 # +Z the default
8853 ;;
8854 *)
8855 lt_prog_compiler_pic='+Z'
8856 ;;
8857 esac
8858 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8859 lt_prog_compiler_static='${wl}-a ${wl}archive'
8860 ;;
8861
8862 irix5* | irix6* | nonstopux*)
8863 lt_prog_compiler_wl='-Wl,'
8864 # PIC (with -KPIC) is the default.
8865 lt_prog_compiler_static='-non_shared'
8866 ;;
8867
8868 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8869 case $cc_basename in
8870 # old Intel for x86_64 which still supported -KPIC.
8871 ecc*)
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-static'
8875 ;;
8876 # icc used to be incompatible with GCC.
8877 # ICC 10 doesn't accept -KPIC any more.
8878 icc* | ifort*)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fPIC'
8881 lt_prog_compiler_static='-static'
8882 ;;
8883 # Lahey Fortran 8.1.
8884 lf95*)
8885 lt_prog_compiler_wl='-Wl,'
8886 lt_prog_compiler_pic='--shared'
8887 lt_prog_compiler_static='--static'
8888 ;;
8889 nagfor*)
8890 # NAG Fortran compiler
8891 lt_prog_compiler_wl='-Wl,-Wl,,'
8892 lt_prog_compiler_pic='-PIC'
8893 lt_prog_compiler_static='-Bstatic'
8894 ;;
8895 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8896 # Portland Group compilers (*not* the Pentium gcc compiler,
8897 # which looks to be a dead project)
8898 lt_prog_compiler_wl='-Wl,'
8899 lt_prog_compiler_pic='-fpic'
8900 lt_prog_compiler_static='-Bstatic'
8901 ;;
8902 ccc*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # All Alpha code is PIC.
8905 lt_prog_compiler_static='-non_shared'
8906 ;;
8907 xl* | bgxl* | bgf* | mpixl*)
8908 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_pic='-qpic'
8911 lt_prog_compiler_static='-qstaticlink'
8912 ;;
8913 *)
8914 case `$CC -V 2>&1 | sed 5q` in
8915 *Sun\ F* | *Sun*Fortran*)
8916 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8917 lt_prog_compiler_pic='-KPIC'
8918 lt_prog_compiler_static='-Bstatic'
8919 lt_prog_compiler_wl=''
8920 ;;
8921 *Sun\ C*)
8922 # Sun C 5.9
8923 lt_prog_compiler_pic='-KPIC'
8924 lt_prog_compiler_static='-Bstatic'
8925 lt_prog_compiler_wl='-Wl,'
8926 ;;
8927 esac
8928 ;;
8929 esac
8930 ;;
8931
8932 newsos6)
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-Bstatic'
8935 ;;
8936
8937 *nto* | *qnx*)
8938 # QNX uses GNU C++, but need to define -shared option too, otherwise
8939 # it will coredump.
8940 lt_prog_compiler_pic='-fPIC -shared'
8941 ;;
8942
8943 osf3* | osf4* | osf5*)
8944 lt_prog_compiler_wl='-Wl,'
8945 # All OSF/1 code is PIC.
8946 lt_prog_compiler_static='-non_shared'
8947 ;;
8948
8949 rdos*)
8950 lt_prog_compiler_static='-non_shared'
8951 ;;
8952
8953 solaris*)
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
8956 case $cc_basename in
8957 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8958 lt_prog_compiler_wl='-Qoption ld ';;
8959 *)
8960 lt_prog_compiler_wl='-Wl,';;
8961 esac
8962 ;;
8963
8964 sunos4*)
8965 lt_prog_compiler_wl='-Qoption ld '
8966 lt_prog_compiler_pic='-PIC'
8967 lt_prog_compiler_static='-Bstatic'
8968 ;;
8969
8970 sysv4 | sysv4.2uw2* | sysv4.3*)
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_pic='-KPIC'
8973 lt_prog_compiler_static='-Bstatic'
8974 ;;
8975
8976 sysv4*MP*)
8977 if test -d /usr/nec ;then
8978 lt_prog_compiler_pic='-Kconform_pic'
8979 lt_prog_compiler_static='-Bstatic'
8980 fi
8981 ;;
8982
8983 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
8987 ;;
8988
8989 unicos*)
8990 lt_prog_compiler_wl='-Wl,'
8991 lt_prog_compiler_can_build_shared=no
8992 ;;
8993
8994 uts4*)
8995 lt_prog_compiler_pic='-pic'
8996 lt_prog_compiler_static='-Bstatic'
8997 ;;
8998
8999 *)
9000 lt_prog_compiler_can_build_shared=no
9001 ;;
9002 esac
9003 fi
9004
9005 case $host_os in
9006 # For platforms which do not support PIC, -DPIC is meaningless:
9007 *djgpp*)
9008 lt_prog_compiler_pic=
9009 ;;
9010 *)
9011 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9012 ;;
9013 esac
9014
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9016 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9017 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9021 fi
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9023 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9024 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9025
9026 #
9027 # Check to make sure the PIC flag actually works.
9028 #
9029 if test -n "$lt_prog_compiler_pic"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9031 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9032 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 lt_cv_prog_compiler_pic_works=no
9036 ac_outfile=conftest.$ac_objext
9037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9038 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9039 # Insert the option either (1) after the last *FLAGS variable, or
9040 # (2) before a word containing "conftest.", or (3) at the end.
9041 # Note that $ac_compile itself does not contain backslashes and begins
9042 # with a dollar sign (not a hyphen), so the echo should work correctly.
9043 # The option is referenced via a variable to avoid confusing sed.
9044 lt_compile=`echo "$ac_compile" | $SED \
9045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9047 -e 's:$: $lt_compiler_flag:'`
9048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9049 (eval "$lt_compile" 2>conftest.err)
9050 ac_status=$?
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 if (exit $ac_status) && test -s "$ac_outfile"; then
9054 # The compiler can only warn and ignore the option if not recognized
9055 # So say no if there are warnings other than the usual output.
9056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9059 lt_cv_prog_compiler_pic_works=yes
9060 fi
9061 fi
9062 $RM conftest*
9063
9064 fi
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9066 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9067
9068 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9069 case $lt_prog_compiler_pic in
9070 "" | " "*) ;;
9071 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9072 esac
9073 else
9074 lt_prog_compiler_pic=
9075 lt_prog_compiler_can_build_shared=no
9076 fi
9077
9078 fi
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090 #
9091 # Check to make sure the static flag actually works.
9092 #
9093 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9095 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9096 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 lt_cv_prog_compiler_static_works=no
9100 save_LDFLAGS="$LDFLAGS"
9101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9102 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9104 # The linker can only warn and ignore the option if not recognized
9105 # So say no if there are warnings
9106 if test -s conftest.err; then
9107 # Append any errors to the config.log.
9108 cat conftest.err 1>&5
9109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9111 if diff conftest.exp conftest.er2 >/dev/null; then
9112 lt_cv_prog_compiler_static_works=yes
9113 fi
9114 else
9115 lt_cv_prog_compiler_static_works=yes
9116 fi
9117 fi
9118 $RM -r conftest*
9119 LDFLAGS="$save_LDFLAGS"
9120
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9123 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9124
9125 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9126 :
9127 else
9128 lt_prog_compiler_static=
9129 fi
9130
9131
9132
9133
9134
9135
9136
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9139 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 lt_cv_prog_compiler_c_o=no
9143 $RM -r conftest 2>/dev/null
9144 mkdir conftest
9145 cd conftest
9146 mkdir out
9147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9148
9149 lt_compiler_flag="-o out/conftest2.$ac_objext"
9150 # Insert the option either (1) after the last *FLAGS variable, or
9151 # (2) before a word containing "conftest.", or (3) at the end.
9152 # Note that $ac_compile itself does not contain backslashes and begins
9153 # with a dollar sign (not a hyphen), so the echo should work correctly.
9154 lt_compile=`echo "$ac_compile" | $SED \
9155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157 -e 's:$: $lt_compiler_flag:'`
9158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9159 (eval "$lt_compile" 2>out/conftest.err)
9160 ac_status=$?
9161 cat out/conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9164 then
9165 # The compiler can only warn and ignore the option if not recognized
9166 # So say no if there are warnings
9167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9170 lt_cv_prog_compiler_c_o=yes
9171 fi
9172 fi
9173 chmod u+w . 2>&5
9174 $RM conftest*
9175 # SGI C++ compiler will create directory out/ii_files/ for
9176 # template instantiation
9177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9178 $RM out/* && rmdir out
9179 cd ..
9180 $RM -r conftest
9181 $RM conftest*
9182
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9185 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9186
9187
9188
9189
9190
9191
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9193 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9194 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 lt_cv_prog_compiler_c_o=no
9198 $RM -r conftest 2>/dev/null
9199 mkdir conftest
9200 cd conftest
9201 mkdir out
9202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9203
9204 lt_compiler_flag="-o out/conftest2.$ac_objext"
9205 # Insert the option either (1) after the last *FLAGS variable, or
9206 # (2) before a word containing "conftest.", or (3) at the end.
9207 # Note that $ac_compile itself does not contain backslashes and begins
9208 # with a dollar sign (not a hyphen), so the echo should work correctly.
9209 lt_compile=`echo "$ac_compile" | $SED \
9210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9212 -e 's:$: $lt_compiler_flag:'`
9213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9214 (eval "$lt_compile" 2>out/conftest.err)
9215 ac_status=$?
9216 cat out/conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9219 then
9220 # The compiler can only warn and ignore the option if not recognized
9221 # So say no if there are warnings
9222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9225 lt_cv_prog_compiler_c_o=yes
9226 fi
9227 fi
9228 chmod u+w . 2>&5
9229 $RM conftest*
9230 # SGI C++ compiler will create directory out/ii_files/ for
9231 # template instantiation
9232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9233 $RM out/* && rmdir out
9234 cd ..
9235 $RM -r conftest
9236 $RM conftest*
9237
9238 fi
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9240 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9241
9242
9243
9244
9245 hard_links="nottested"
9246 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9247 # do not overwrite the value of need_locks provided by the user
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9249 $as_echo_n "checking if we can lock with hard links... " >&6; }
9250 hard_links=yes
9251 $RM conftest*
9252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9253 touch conftest.a
9254 ln conftest.a conftest.b 2>&5 || hard_links=no
9255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9257 $as_echo "$hard_links" >&6; }
9258 if test "$hard_links" = no; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9260 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9261 need_locks=warn
9262 fi
9263 else
9264 need_locks=no
9265 fi
9266
9267
9268
9269
9270
9271
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9274
9275 runpath_var=
9276 allow_undefined_flag=
9277 always_export_symbols=no
9278 archive_cmds=
9279 archive_expsym_cmds=
9280 compiler_needs_object=no
9281 enable_shared_with_static_runtimes=no
9282 export_dynamic_flag_spec=
9283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9284 hardcode_automatic=no
9285 hardcode_direct=no
9286 hardcode_direct_absolute=no
9287 hardcode_libdir_flag_spec=
9288 hardcode_libdir_flag_spec_ld=
9289 hardcode_libdir_separator=
9290 hardcode_minus_L=no
9291 hardcode_shlibpath_var=unsupported
9292 inherit_rpath=no
9293 link_all_deplibs=unknown
9294 module_cmds=
9295 module_expsym_cmds=
9296 old_archive_from_new_cmds=
9297 old_archive_from_expsyms_cmds=
9298 thread_safe_flag_spec=
9299 whole_archive_flag_spec=
9300 # include_expsyms should be a list of space-separated symbols to be *always*
9301 # included in the symbol list
9302 include_expsyms=
9303 # exclude_expsyms can be an extended regexp of symbols to exclude
9304 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9305 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9306 # as well as any symbol that contains `d'.
9307 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9308 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9309 # platforms (ab)use it in PIC code, but their linkers get confused if
9310 # the symbol is explicitly referenced. Since portable code cannot
9311 # rely on this symbol name, it's probably fine to never include it in
9312 # preloaded symbol tables.
9313 # Exclude shared library initialization/finalization symbols.
9314 extract_expsyms_cmds=
9315
9316 case $host_os in
9317 cygwin* | mingw* | pw32* | cegcc*)
9318 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9319 # When not using gcc, we currently assume that we are using
9320 # Microsoft Visual C++.
9321 if test "$GCC" != yes; then
9322 with_gnu_ld=no
9323 fi
9324 ;;
9325 interix*)
9326 # we just hope/assume this is gcc and not c89 (= MSVC++)
9327 with_gnu_ld=yes
9328 ;;
9329 openbsd*)
9330 with_gnu_ld=no
9331 ;;
9332 esac
9333
9334 ld_shlibs=yes
9335
9336 # On some targets, GNU ld is compatible enough with the native linker
9337 # that we're better off using the native interface for both.
9338 lt_use_gnu_ld_interface=no
9339 if test "$with_gnu_ld" = yes; then
9340 case $host_os in
9341 aix*)
9342 # The AIX port of GNU ld has always aspired to compatibility
9343 # with the native linker. However, as the warning in the GNU ld
9344 # block says, versions before 2.19.5* couldn't really create working
9345 # shared libraries, regardless of the interface used.
9346 case `$LD -v 2>&1` in
9347 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9348 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9349 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9350 *)
9351 lt_use_gnu_ld_interface=yes
9352 ;;
9353 esac
9354 ;;
9355 *)
9356 lt_use_gnu_ld_interface=yes
9357 ;;
9358 esac
9359 fi
9360
9361 if test "$lt_use_gnu_ld_interface" = yes; then
9362 # If archive_cmds runs LD, not CC, wlarc should be empty
9363 wlarc='${wl}'
9364
9365 # Set some defaults for GNU ld with shared library support. These
9366 # are reset later if shared libraries are not supported. Putting them
9367 # here allows them to be overridden if necessary.
9368 runpath_var=LD_RUN_PATH
9369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370 export_dynamic_flag_spec='${wl}--export-dynamic'
9371 # ancient GNU ld didn't support --whole-archive et. al.
9372 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9373 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9374 else
9375 whole_archive_flag_spec=
9376 fi
9377 supports_anon_versioning=no
9378 case `$LD -v 2>&1` in
9379 *GNU\ gold*) supports_anon_versioning=yes ;;
9380 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9381 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9382 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9383 *\ 2.11.*) ;; # other 2.11 versions
9384 *) supports_anon_versioning=yes ;;
9385 esac
9386
9387 # See if GNU ld supports shared libraries.
9388 case $host_os in
9389 aix[3-9]*)
9390 # On AIX/PPC, the GNU linker is very broken
9391 if test "$host_cpu" != ia64; then
9392 ld_shlibs=no
9393 cat <<_LT_EOF 1>&2
9394
9395 *** Warning: the GNU linker, at least up to release 2.19, is reported
9396 *** to be unable to reliably create shared libraries on AIX.
9397 *** Therefore, libtool is disabling shared libraries support. If you
9398 *** really care for shared libraries, you may want to install binutils
9399 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9400 *** You will then need to restart the configuration process.
9401
9402 _LT_EOF
9403 fi
9404 ;;
9405
9406 amigaos*)
9407 case $host_cpu in
9408 powerpc)
9409 # see comment about AmigaOS4 .so support
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 archive_expsym_cmds=''
9412 ;;
9413 m68k)
9414 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)'
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_minus_L=yes
9417 ;;
9418 esac
9419 ;;
9420
9421 beos*)
9422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9423 allow_undefined_flag=unsupported
9424 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9425 # support --undefined. This deserves some investigation. FIXME
9426 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9427 else
9428 ld_shlibs=no
9429 fi
9430 ;;
9431
9432 cygwin* | mingw* | pw32* | cegcc*)
9433 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9434 # as there is no search path for DLLs.
9435 hardcode_libdir_flag_spec='-L$libdir'
9436 export_dynamic_flag_spec='${wl}--export-all-symbols'
9437 allow_undefined_flag=unsupported
9438 always_export_symbols=no
9439 enable_shared_with_static_runtimes=yes
9440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9441 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9442
9443 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9445 # If the export-symbols file already is a .def file (1st line
9446 # is EXPORTS), use it as is; otherwise, prepend...
9447 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9448 cp $export_symbols $output_objdir/$soname.def;
9449 else
9450 echo EXPORTS > $output_objdir/$soname.def;
9451 cat $export_symbols >> $output_objdir/$soname.def;
9452 fi~
9453 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9454 else
9455 ld_shlibs=no
9456 fi
9457 ;;
9458
9459 haiku*)
9460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9461 link_all_deplibs=yes
9462 ;;
9463
9464 interix[3-9]*)
9465 hardcode_direct=no
9466 hardcode_shlibpath_var=no
9467 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9468 export_dynamic_flag_spec='${wl}-E'
9469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9470 # Instead, shared libraries are loaded at an image base (0x10000000 by
9471 # default) and relocated if they conflict, which is a slow very memory
9472 # consuming and fragmenting process. To avoid this, we pick a random,
9473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9474 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9475 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9476 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'
9477 ;;
9478
9479 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9480 tmp_diet=no
9481 if test "$host_os" = linux-dietlibc; then
9482 case $cc_basename in
9483 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9484 esac
9485 fi
9486 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9487 && test "$tmp_diet" = no
9488 then
9489 tmp_addflag=' $pic_flag'
9490 tmp_sharedflag='-shared'
9491 case $cc_basename,$host_cpu in
9492 pgcc*) # Portland Group C compiler
9493 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'
9494 tmp_addflag=' $pic_flag'
9495 ;;
9496 pgf77* | pgf90* | pgf95* | pgfortran*)
9497 # Portland Group f77 and f90 compilers
9498 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'
9499 tmp_addflag=' $pic_flag -Mnomain' ;;
9500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9501 tmp_addflag=' -i_dynamic' ;;
9502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9503 tmp_addflag=' -i_dynamic -nofor_main' ;;
9504 ifc* | ifort*) # Intel Fortran compiler
9505 tmp_addflag=' -nofor_main' ;;
9506 lf95*) # Lahey Fortran 8.1
9507 whole_archive_flag_spec=
9508 tmp_sharedflag='--shared' ;;
9509 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9510 tmp_sharedflag='-qmkshrobj'
9511 tmp_addflag= ;;
9512 nvcc*) # Cuda Compiler Driver 2.2
9513 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'
9514 compiler_needs_object=yes
9515 ;;
9516 esac
9517 case `$CC -V 2>&1 | sed 5q` in
9518 *Sun\ C*) # Sun C 5.9
9519 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'
9520 compiler_needs_object=yes
9521 tmp_sharedflag='-G' ;;
9522 *Sun\ F*) # Sun Fortran 8.3
9523 tmp_sharedflag='-G' ;;
9524 esac
9525 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526
9527 if test "x$supports_anon_versioning" = xyes; then
9528 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9529 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9530 echo "local: *; };" >> $output_objdir/$libname.ver~
9531 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9532 fi
9533
9534 case $cc_basename in
9535 xlf* | bgf* | bgxlf* | mpixlf*)
9536 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9537 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9538 hardcode_libdir_flag_spec=
9539 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9540 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9541 if test "x$supports_anon_versioning" = xyes; then
9542 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9544 echo "local: *; };" >> $output_objdir/$libname.ver~
9545 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9546 fi
9547 ;;
9548 esac
9549 else
9550 ld_shlibs=no
9551 fi
9552 ;;
9553
9554 netbsd*)
9555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9556 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9557 wlarc=
9558 else
9559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9560 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9561 fi
9562 ;;
9563
9564 solaris*)
9565 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9566 ld_shlibs=no
9567 cat <<_LT_EOF 1>&2
9568
9569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9570 *** create shared libraries on Solaris systems. Therefore, libtool
9571 *** is disabling shared libraries support. We urge you to upgrade GNU
9572 *** binutils to release 2.9.1 or newer. Another option is to modify
9573 *** your PATH or compiler configuration so that the native linker is
9574 *** used, and then restart.
9575
9576 _LT_EOF
9577 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9580 else
9581 ld_shlibs=no
9582 fi
9583 ;;
9584
9585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9586 case `$LD -v 2>&1` in
9587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9588 ld_shlibs=no
9589 cat <<_LT_EOF 1>&2
9590
9591 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9592 *** reliably create shared libraries on SCO systems. Therefore, libtool
9593 *** is disabling shared libraries support. We urge you to upgrade GNU
9594 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9595 *** your PATH or compiler configuration so that the native linker is
9596 *** used, and then restart.
9597
9598 _LT_EOF
9599 ;;
9600 *)
9601 # For security reasons, it is highly recommended that you always
9602 # use absolute paths for naming shared libraries, and exclude the
9603 # DT_RUNPATH tag from executables and libraries. But doing so
9604 # requires that you compile everything twice, which is a pain.
9605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9609 else
9610 ld_shlibs=no
9611 fi
9612 ;;
9613 esac
9614 ;;
9615
9616 sunos4*)
9617 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618 wlarc=
9619 hardcode_direct=yes
9620 hardcode_shlibpath_var=no
9621 ;;
9622
9623 *)
9624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9627 else
9628 ld_shlibs=no
9629 fi
9630 ;;
9631 esac
9632
9633 if test "$ld_shlibs" = no; then
9634 runpath_var=
9635 hardcode_libdir_flag_spec=
9636 export_dynamic_flag_spec=
9637 whole_archive_flag_spec=
9638 fi
9639 else
9640 # PORTME fill in a description of your system's linker (not GNU ld)
9641 case $host_os in
9642 aix3*)
9643 allow_undefined_flag=unsupported
9644 always_export_symbols=yes
9645 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'
9646 # Note: this linker hardcodes the directories in LIBPATH if there
9647 # are no directories specified by -L.
9648 hardcode_minus_L=yes
9649 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9650 # Neither direct hardcoding nor static linking is supported with a
9651 # broken collect2.
9652 hardcode_direct=unsupported
9653 fi
9654 ;;
9655
9656 aix[4-9]*)
9657 if test "$host_cpu" = ia64; then
9658 # On IA64, the linker does run time linking by default, so we don't
9659 # have to do anything special.
9660 aix_use_runtimelinking=no
9661 exp_sym_flag='-Bexport'
9662 no_entry_flag=""
9663 else
9664 # If we're using GNU nm, then we don't want the "-C" option.
9665 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9666 # Also, AIX nm treats weak defined symbols like other global
9667 # defined symbols, whereas GNU nm marks them as "W".
9668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9669 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'
9670 else
9671 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9672 fi
9673 aix_use_runtimelinking=no
9674
9675 # Test if we are trying to use run time linking or normal
9676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9677 # need to do runtime linking.
9678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9679 for ld_flag in $LDFLAGS; do
9680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9681 aix_use_runtimelinking=yes
9682 break
9683 fi
9684 done
9685 ;;
9686 esac
9687
9688 exp_sym_flag='-bexport'
9689 no_entry_flag='-bnoentry'
9690 fi
9691
9692 # When large executables or shared objects are built, AIX ld can
9693 # have problems creating the table of contents. If linking a library
9694 # or program results in "error TOC overflow" add -mminimal-toc to
9695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9697
9698 archive_cmds=''
9699 hardcode_direct=yes
9700 hardcode_direct_absolute=yes
9701 hardcode_libdir_separator=':'
9702 link_all_deplibs=yes
9703 file_list_spec='${wl}-f,'
9704
9705 if test "$GCC" = yes; then
9706 case $host_os in aix4.[012]|aix4.[012].*)
9707 # We only want to do this on AIX 4.2 and lower, the check
9708 # below for broken collect2 doesn't work under 4.3+
9709 collect2name=`${CC} -print-prog-name=collect2`
9710 if test -f "$collect2name" &&
9711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9712 then
9713 # We have reworked collect2
9714 :
9715 else
9716 # We have old collect2
9717 hardcode_direct=unsupported
9718 # It fails to find uninstalled libraries when the uninstalled
9719 # path is not listed in the libpath. Setting hardcode_minus_L
9720 # to unsupported forces relinking
9721 hardcode_minus_L=yes
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_libdir_separator=
9724 fi
9725 ;;
9726 esac
9727 shared_flag='-shared'
9728 if test "$aix_use_runtimelinking" = yes; then
9729 shared_flag="$shared_flag "'${wl}-G'
9730 fi
9731 else
9732 # not using gcc
9733 if test "$host_cpu" = ia64; then
9734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9735 # chokes on -Wl,-G. The following line is correct:
9736 shared_flag='-G'
9737 else
9738 if test "$aix_use_runtimelinking" = yes; then
9739 shared_flag='${wl}-G'
9740 else
9741 shared_flag='${wl}-bM:SRE'
9742 fi
9743 fi
9744 fi
9745
9746 export_dynamic_flag_spec='${wl}-bexpall'
9747 # It seems that -bexpall does not export symbols beginning with
9748 # underscore (_), so it is better to generate a list of symbols to export.
9749 always_export_symbols=yes
9750 if test "$aix_use_runtimelinking" = yes; then
9751 # Warning - without using the other runtime loading flags (-brtl),
9752 # -berok will link without error, but may produce a broken library.
9753 allow_undefined_flag='-berok'
9754 # Determine the default libpath from the value encoded in an
9755 # empty executable.
9756 if test "${lt_cv_aix_libpath+set}" = set; then
9757 aix_libpath=$lt_cv_aix_libpath
9758 else
9759 if test "${lt_cv_aix_libpath_+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764
9765 int
9766 main ()
9767 {
9768
9769 ;
9770 return 0;
9771 }
9772 _ACEOF
9773 if ac_fn_c_try_link "$LINENO"; then :
9774
9775 lt_aix_libpath_sed='
9776 /Import File Strings/,/^$/ {
9777 /^0/ {
9778 s/^0 *\([^ ]*\) *$/\1/
9779 p
9780 }
9781 }'
9782 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9783 # Check for a 64-bit object if we didn't find anything.
9784 if test -z "$lt_cv_aix_libpath_"; then
9785 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9786 fi
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext conftest.$ac_ext
9790 if test -z "$lt_cv_aix_libpath_"; then
9791 lt_cv_aix_libpath_="/usr/lib:/lib"
9792 fi
9793
9794 fi
9795
9796 aix_libpath=$lt_cv_aix_libpath_
9797 fi
9798
9799 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9800 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"
9801 else
9802 if test "$host_cpu" = ia64; then
9803 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9804 allow_undefined_flag="-z nodefs"
9805 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"
9806 else
9807 # Determine the default libpath from the value encoded in an
9808 # empty executable.
9809 if test "${lt_cv_aix_libpath+set}" = set; then
9810 aix_libpath=$lt_cv_aix_libpath
9811 else
9812 if test "${lt_cv_aix_libpath_+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9816 /* end confdefs.h. */
9817
9818 int
9819 main ()
9820 {
9821
9822 ;
9823 return 0;
9824 }
9825 _ACEOF
9826 if ac_fn_c_try_link "$LINENO"; then :
9827
9828 lt_aix_libpath_sed='
9829 /Import File Strings/,/^$/ {
9830 /^0/ {
9831 s/^0 *\([^ ]*\) *$/\1/
9832 p
9833 }
9834 }'
9835 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9836 # Check for a 64-bit object if we didn't find anything.
9837 if test -z "$lt_cv_aix_libpath_"; then
9838 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9839 fi
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext \
9842 conftest$ac_exeext conftest.$ac_ext
9843 if test -z "$lt_cv_aix_libpath_"; then
9844 lt_cv_aix_libpath_="/usr/lib:/lib"
9845 fi
9846
9847 fi
9848
9849 aix_libpath=$lt_cv_aix_libpath_
9850 fi
9851
9852 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9853 # Warning - without using the other run time loading flags,
9854 # -berok will link without error, but may produce a broken library.
9855 no_undefined_flag=' ${wl}-bernotok'
9856 allow_undefined_flag=' ${wl}-berok'
9857 if test "$with_gnu_ld" = yes; then
9858 # We only use this code for GNU lds that support --whole-archive.
9859 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9860 else
9861 # Exported symbols can be pulled into shared objects from archives
9862 whole_archive_flag_spec='$convenience'
9863 fi
9864 archive_cmds_need_lc=yes
9865 # This is similar to how AIX traditionally builds its shared libraries.
9866 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'
9867 fi
9868 fi
9869 ;;
9870
9871 amigaos*)
9872 case $host_cpu in
9873 powerpc)
9874 # see comment about AmigaOS4 .so support
9875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9876 archive_expsym_cmds=''
9877 ;;
9878 m68k)
9879 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)'
9880 hardcode_libdir_flag_spec='-L$libdir'
9881 hardcode_minus_L=yes
9882 ;;
9883 esac
9884 ;;
9885
9886 bsdi[45]*)
9887 export_dynamic_flag_spec=-rdynamic
9888 ;;
9889
9890 cygwin* | mingw* | pw32* | cegcc*)
9891 # When not using gcc, we currently assume that we are using
9892 # Microsoft Visual C++.
9893 # hardcode_libdir_flag_spec is actually meaningless, as there is
9894 # no search path for DLLs.
9895 case $cc_basename in
9896 cl*)
9897 # Native MSVC
9898 hardcode_libdir_flag_spec=' '
9899 allow_undefined_flag=unsupported
9900 always_export_symbols=yes
9901 file_list_spec='@'
9902 # Tell ltmain to make .lib files, not .a files.
9903 libext=lib
9904 # Tell ltmain to make .dll files, not .so files.
9905 shrext_cmds=".dll"
9906 # FIXME: Setting linknames here is a bad hack.
9907 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9908 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9909 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9910 else
9911 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9912 fi~
9913 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9914 linknames='
9915 # The linker will not automatically build a static lib if we build a DLL.
9916 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9917 enable_shared_with_static_runtimes=yes
9918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9919 # Don't use ranlib
9920 old_postinstall_cmds='chmod 644 $oldlib'
9921 postlink_cmds='lt_outputfile="@OUTPUT@"~
9922 lt_tool_outputfile="@TOOL_OUTPUT@"~
9923 case $lt_outputfile in
9924 *.exe|*.EXE) ;;
9925 *)
9926 lt_outputfile="$lt_outputfile.exe"
9927 lt_tool_outputfile="$lt_tool_outputfile.exe"
9928 ;;
9929 esac~
9930 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9931 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9932 $RM "$lt_outputfile.manifest";
9933 fi'
9934 ;;
9935 *)
9936 # Assume MSVC wrapper
9937 hardcode_libdir_flag_spec=' '
9938 allow_undefined_flag=unsupported
9939 # Tell ltmain to make .lib files, not .a files.
9940 libext=lib
9941 # Tell ltmain to make .dll files, not .so files.
9942 shrext_cmds=".dll"
9943 # FIXME: Setting linknames here is a bad hack.
9944 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9945 # The linker will automatically build a .lib file if we build a DLL.
9946 old_archive_from_new_cmds='true'
9947 # FIXME: Should let the user specify the lib program.
9948 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9949 enable_shared_with_static_runtimes=yes
9950 ;;
9951 esac
9952 ;;
9953
9954 darwin* | rhapsody*)
9955
9956
9957 archive_cmds_need_lc=no
9958 hardcode_direct=no
9959 hardcode_automatic=yes
9960 hardcode_shlibpath_var=unsupported
9961 if test "$lt_cv_ld_force_load" = "yes"; then
9962 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\"`'
9963 else
9964 whole_archive_flag_spec=''
9965 fi
9966 link_all_deplibs=yes
9967 allow_undefined_flag="$_lt_dar_allow_undefined"
9968 case $cc_basename in
9969 ifort*) _lt_dar_can_shared=yes ;;
9970 *) _lt_dar_can_shared=$GCC ;;
9971 esac
9972 if test "$_lt_dar_can_shared" = "yes"; then
9973 output_verbose_link_cmd=func_echo_all
9974 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9975 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9976 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}"
9977 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}"
9978
9979 else
9980 ld_shlibs=no
9981 fi
9982
9983 ;;
9984
9985 dgux*)
9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987 hardcode_libdir_flag_spec='-L$libdir'
9988 hardcode_shlibpath_var=no
9989 ;;
9990
9991 freebsd1*)
9992 ld_shlibs=no
9993 ;;
9994
9995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9996 # support. Future versions do this automatically, but an explicit c++rt0.o
9997 # does not break anything, and helps significantly (at the cost of a little
9998 # extra space).
9999 freebsd2.2*)
10000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10001 hardcode_libdir_flag_spec='-R$libdir'
10002 hardcode_direct=yes
10003 hardcode_shlibpath_var=no
10004 ;;
10005
10006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10007 freebsd2*)
10008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_direct=yes
10010 hardcode_minus_L=yes
10011 hardcode_shlibpath_var=no
10012 ;;
10013
10014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10015 freebsd* | dragonfly*)
10016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10017 hardcode_libdir_flag_spec='-R$libdir'
10018 hardcode_direct=yes
10019 hardcode_shlibpath_var=no
10020 ;;
10021
10022 hpux9*)
10023 if test "$GCC" = yes; then
10024 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10025 else
10026 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'
10027 fi
10028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10029 hardcode_libdir_separator=:
10030 hardcode_direct=yes
10031
10032 # hardcode_minus_L: Not really in the search PATH,
10033 # but as the default location of the library.
10034 hardcode_minus_L=yes
10035 export_dynamic_flag_spec='${wl}-E'
10036 ;;
10037
10038 hpux10*)
10039 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10040 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10041 else
10042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10043 fi
10044 if test "$with_gnu_ld" = no; then
10045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10046 hardcode_libdir_flag_spec_ld='+b $libdir'
10047 hardcode_libdir_separator=:
10048 hardcode_direct=yes
10049 hardcode_direct_absolute=yes
10050 export_dynamic_flag_spec='${wl}-E'
10051 # hardcode_minus_L: Not really in the search PATH,
10052 # but as the default location of the library.
10053 hardcode_minus_L=yes
10054 fi
10055 ;;
10056
10057 hpux11*)
10058 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10059 case $host_cpu in
10060 hppa*64*)
10061 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 ;;
10063 ia64*)
10064 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10065 ;;
10066 *)
10067 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10068 ;;
10069 esac
10070 else
10071 case $host_cpu in
10072 hppa*64*)
10073 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 ;;
10075 ia64*)
10076 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10077 ;;
10078 *)
10079
10080 # Older versions of the 11.00 compiler do not understand -b yet
10081 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10083 $as_echo_n "checking if $CC understands -b... " >&6; }
10084 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 lt_cv_prog_compiler__b=no
10088 save_LDFLAGS="$LDFLAGS"
10089 LDFLAGS="$LDFLAGS -b"
10090 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10091 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10092 # The linker can only warn and ignore the option if not recognized
10093 # So say no if there are warnings
10094 if test -s conftest.err; then
10095 # Append any errors to the config.log.
10096 cat conftest.err 1>&5
10097 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10099 if diff conftest.exp conftest.er2 >/dev/null; then
10100 lt_cv_prog_compiler__b=yes
10101 fi
10102 else
10103 lt_cv_prog_compiler__b=yes
10104 fi
10105 fi
10106 $RM -r conftest*
10107 LDFLAGS="$save_LDFLAGS"
10108
10109 fi
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10111 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10112
10113 if test x"$lt_cv_prog_compiler__b" = xyes; then
10114 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10115 else
10116 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10117 fi
10118
10119 ;;
10120 esac
10121 fi
10122 if test "$with_gnu_ld" = no; then
10123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10124 hardcode_libdir_separator=:
10125
10126 case $host_cpu in
10127 hppa*64*|ia64*)
10128 hardcode_direct=no
10129 hardcode_shlibpath_var=no
10130 ;;
10131 *)
10132 hardcode_direct=yes
10133 hardcode_direct_absolute=yes
10134 export_dynamic_flag_spec='${wl}-E'
10135
10136 # hardcode_minus_L: Not really in the search PATH,
10137 # but as the default location of the library.
10138 hardcode_minus_L=yes
10139 ;;
10140 esac
10141 fi
10142 ;;
10143
10144 irix5* | irix6* | nonstopux*)
10145 if test "$GCC" = yes; then
10146 archive_cmds='$CC -shared $pic_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'
10147 # Try to use the -exported_symbol ld option, if it does not
10148 # work, assume that -exports_file does not work either and
10149 # implicitly export all symbols.
10150 # This should be the same for all languages, so no per-tag cache variable.
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10152 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10153 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 save_LDFLAGS="$LDFLAGS"
10157 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10160 int foo (void) { return 0; }
10161 _ACEOF
10162 if ac_fn_c_try_link "$LINENO"; then :
10163 lt_cv_irix_exported_symbol=yes
10164 else
10165 lt_cv_irix_exported_symbol=no
10166 fi
10167 rm -f core conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169 LDFLAGS="$save_LDFLAGS"
10170 fi
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10172 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10173 if test "$lt_cv_irix_exported_symbol" = yes; then
10174 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
10175 fi
10176 else
10177 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'
10178 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'
10179 fi
10180 archive_cmds_need_lc='no'
10181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182 hardcode_libdir_separator=:
10183 inherit_rpath=yes
10184 link_all_deplibs=yes
10185 ;;
10186
10187 netbsd*)
10188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10190 else
10191 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10192 fi
10193 hardcode_libdir_flag_spec='-R$libdir'
10194 hardcode_direct=yes
10195 hardcode_shlibpath_var=no
10196 ;;
10197
10198 newsos6)
10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200 hardcode_direct=yes
10201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10202 hardcode_libdir_separator=:
10203 hardcode_shlibpath_var=no
10204 ;;
10205
10206 *nto* | *qnx*)
10207 ;;
10208
10209 openbsd*)
10210 if test -f /usr/libexec/ld.so; then
10211 hardcode_direct=yes
10212 hardcode_shlibpath_var=no
10213 hardcode_direct_absolute=yes
10214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10216 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10217 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10218 export_dynamic_flag_spec='${wl}-E'
10219 else
10220 case $host_os in
10221 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_libdir_flag_spec='-R$libdir'
10224 ;;
10225 *)
10226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10228 ;;
10229 esac
10230 fi
10231 else
10232 ld_shlibs=no
10233 fi
10234 ;;
10235
10236 os2*)
10237 hardcode_libdir_flag_spec='-L$libdir'
10238 hardcode_minus_L=yes
10239 allow_undefined_flag=unsupported
10240 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'
10241 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10242 ;;
10243
10244 osf3*)
10245 if test "$GCC" = yes; then
10246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10247 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'
10248 else
10249 allow_undefined_flag=' -expect_unresolved \*'
10250 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'
10251 fi
10252 archive_cmds_need_lc='no'
10253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10254 hardcode_libdir_separator=:
10255 ;;
10256
10257 osf4* | osf5*) # as osf3* with the addition of -msym flag
10258 if test "$GCC" = yes; then
10259 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10260 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
10261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10262 else
10263 allow_undefined_flag=' -expect_unresolved \*'
10264 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'
10265 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~
10266 $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'
10267
10268 # Both c and cxx compiler support -rpath directly
10269 hardcode_libdir_flag_spec='-rpath $libdir'
10270 fi
10271 archive_cmds_need_lc='no'
10272 hardcode_libdir_separator=:
10273 ;;
10274
10275 solaris*)
10276 no_undefined_flag=' -z defs'
10277 if test "$GCC" = yes; then
10278 wlarc='${wl}'
10279 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10281 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10282 else
10283 case `$CC -V 2>&1` in
10284 *"Compilers 5.0"*)
10285 wlarc=''
10286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10288 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10289 ;;
10290 *)
10291 wlarc='${wl}'
10292 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10293 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10294 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10295 ;;
10296 esac
10297 fi
10298 hardcode_libdir_flag_spec='-R$libdir'
10299 hardcode_shlibpath_var=no
10300 case $host_os in
10301 solaris2.[0-5] | solaris2.[0-5].*) ;;
10302 *)
10303 # The compiler driver will combine and reorder linker options,
10304 # but understands `-z linker_flag'. GCC discards it without `$wl',
10305 # but is careful enough not to reorder.
10306 # Supported since Solaris 2.6 (maybe 2.5.1?)
10307 if test "$GCC" = yes; then
10308 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10309 else
10310 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10311 fi
10312 ;;
10313 esac
10314 link_all_deplibs=yes
10315 ;;
10316
10317 sunos4*)
10318 if test "x$host_vendor" = xsequent; then
10319 # Use $CC to link under sequent, because it throws in some extra .o
10320 # files that make .init and .fini sections work.
10321 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10322 else
10323 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10324 fi
10325 hardcode_libdir_flag_spec='-L$libdir'
10326 hardcode_direct=yes
10327 hardcode_minus_L=yes
10328 hardcode_shlibpath_var=no
10329 ;;
10330
10331 sysv4)
10332 case $host_vendor in
10333 sni)
10334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_direct=yes # is this really true???
10336 ;;
10337 siemens)
10338 ## LD is ld it makes a PLAMLIB
10339 ## CC just makes a GrossModule.
10340 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10341 reload_cmds='$CC -r -o $output$reload_objs'
10342 hardcode_direct=no
10343 ;;
10344 motorola)
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10347 ;;
10348 esac
10349 runpath_var='LD_RUN_PATH'
10350 hardcode_shlibpath_var=no
10351 ;;
10352
10353 sysv4.3*)
10354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_shlibpath_var=no
10356 export_dynamic_flag_spec='-Bexport'
10357 ;;
10358
10359 sysv4*MP*)
10360 if test -d /usr/nec; then
10361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362 hardcode_shlibpath_var=no
10363 runpath_var=LD_RUN_PATH
10364 hardcode_runpath_var=yes
10365 ld_shlibs=yes
10366 fi
10367 ;;
10368
10369 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10370 no_undefined_flag='${wl}-z,text'
10371 archive_cmds_need_lc=no
10372 hardcode_shlibpath_var=no
10373 runpath_var='LD_RUN_PATH'
10374
10375 if test "$GCC" = yes; then
10376 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10377 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10378 else
10379 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10381 fi
10382 ;;
10383
10384 sysv5* | sco3.2v5* | sco5v6*)
10385 # Note: We can NOT use -z defs as we might desire, because we do not
10386 # link with -lc, and that would cause any symbols used from libc to
10387 # always be unresolved, which means just about no library would
10388 # ever link correctly. If we're not using GNU ld we use -z text
10389 # though, which does catch some bad symbols but isn't as heavy-handed
10390 # as -z defs.
10391 no_undefined_flag='${wl}-z,text'
10392 allow_undefined_flag='${wl}-z,nodefs'
10393 archive_cmds_need_lc=no
10394 hardcode_shlibpath_var=no
10395 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10396 hardcode_libdir_separator=':'
10397 link_all_deplibs=yes
10398 export_dynamic_flag_spec='${wl}-Bexport'
10399 runpath_var='LD_RUN_PATH'
10400
10401 if test "$GCC" = yes; then
10402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 else
10405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10407 fi
10408 ;;
10409
10410 uts4*)
10411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412 hardcode_libdir_flag_spec='-L$libdir'
10413 hardcode_shlibpath_var=no
10414 ;;
10415
10416 *)
10417 ld_shlibs=no
10418 ;;
10419 esac
10420
10421 if test x$host_vendor = xsni; then
10422 case $host in
10423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10424 export_dynamic_flag_spec='${wl}-Blargedynsym'
10425 ;;
10426 esac
10427 fi
10428 fi
10429
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10431 $as_echo "$ld_shlibs" >&6; }
10432 test "$ld_shlibs" = no && can_build_shared=no
10433
10434 with_gnu_ld=$with_gnu_ld
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450 #
10451 # Do we need to explicitly link libc?
10452 #
10453 case "x$archive_cmds_need_lc" in
10454 x|xyes)
10455 # Assume -lc should be added
10456 archive_cmds_need_lc=yes
10457
10458 if test "$enable_shared" = yes && test "$GCC" = yes; then
10459 case $archive_cmds in
10460 *'~'*)
10461 # FIXME: we may have to deal with multi-command sequences.
10462 ;;
10463 '$CC '*)
10464 # Test whether the compiler implicitly links with -lc since on some
10465 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10466 # to ld, don't add -lc before -lgcc.
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10468 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10469 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10470 $as_echo_n "(cached) " >&6
10471 else
10472 $RM conftest*
10473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10474
10475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10476 (eval $ac_compile) 2>&5
10477 ac_status=$?
10478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10479 test $ac_status = 0; } 2>conftest.err; then
10480 soname=conftest
10481 lib=conftest
10482 libobjs=conftest.$ac_objext
10483 deplibs=
10484 wl=$lt_prog_compiler_wl
10485 pic_flag=$lt_prog_compiler_pic
10486 compiler_flags=-v
10487 linker_flags=-v
10488 verstring=
10489 output_objdir=.
10490 libname=conftest
10491 lt_save_allow_undefined_flag=$allow_undefined_flag
10492 allow_undefined_flag=
10493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10494 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10495 ac_status=$?
10496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10497 test $ac_status = 0; }
10498 then
10499 lt_cv_archive_cmds_need_lc=no
10500 else
10501 lt_cv_archive_cmds_need_lc=yes
10502 fi
10503 allow_undefined_flag=$lt_save_allow_undefined_flag
10504 else
10505 cat conftest.err 1>&5
10506 fi
10507 $RM conftest*
10508
10509 fi
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10511 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10512 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10513 ;;
10514 esac
10515 fi
10516 ;;
10517 esac
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10676 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10677
10678 if test "$GCC" = yes; then
10679 case $host_os in
10680 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10681 *) lt_awk_arg="/^libraries:/" ;;
10682 esac
10683 case $host_os in
10684 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10685 *) lt_sed_strip_eq="s,=/,/,g" ;;
10686 esac
10687 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10688 case $lt_search_path_spec in
10689 *\;*)
10690 # if the path contains ";" then we assume it to be the separator
10691 # otherwise default to the standard path separator (i.e. ":") - it is
10692 # assumed that no part of a normal pathname contains ";" but that should
10693 # okay in the real world where ";" in dirpaths is itself problematic.
10694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10695 ;;
10696 *)
10697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10698 ;;
10699 esac
10700 # Ok, now we have the path, separated by spaces, we can step through it
10701 # and add multilib dir if necessary.
10702 lt_tmp_lt_search_path_spec=
10703 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10704 for lt_sys_path in $lt_search_path_spec; do
10705 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10706 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10707 else
10708 test -d "$lt_sys_path" && \
10709 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10710 fi
10711 done
10712 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10713 BEGIN {RS=" "; FS="/|\n";} {
10714 lt_foo="";
10715 lt_count=0;
10716 for (lt_i = NF; lt_i > 0; lt_i--) {
10717 if ($lt_i != "" && $lt_i != ".") {
10718 if ($lt_i == "..") {
10719 lt_count++;
10720 } else {
10721 if (lt_count == 0) {
10722 lt_foo="/" $lt_i lt_foo;
10723 } else {
10724 lt_count--;
10725 }
10726 }
10727 }
10728 }
10729 if (lt_foo != "") { lt_freq[lt_foo]++; }
10730 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10731 }'`
10732 # AWK program above erroneously prepends '/' to C:/dos/paths
10733 # for these hosts.
10734 case $host_os in
10735 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10736 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10737 esac
10738 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10739 else
10740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10741 fi
10742 library_names_spec=
10743 libname_spec='lib$name'
10744 soname_spec=
10745 shrext_cmds=".so"
10746 postinstall_cmds=
10747 postuninstall_cmds=
10748 finish_cmds=
10749 finish_eval=
10750 shlibpath_var=
10751 shlibpath_overrides_runpath=unknown
10752 version_type=none
10753 dynamic_linker="$host_os ld.so"
10754 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10755 need_lib_prefix=unknown
10756 hardcode_into_libs=no
10757
10758 # when you set need_version to no, make sure it does not cause -set_version
10759 # flags to be left without arguments
10760 need_version=unknown
10761
10762 case $host_os in
10763 aix3*)
10764 version_type=linux
10765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10766 shlibpath_var=LIBPATH
10767
10768 # AIX 3 has no versioning support, so we append a major version to the name.
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 ;;
10771
10772 aix[4-9]*)
10773 version_type=linux
10774 need_lib_prefix=no
10775 need_version=no
10776 hardcode_into_libs=yes
10777 if test "$host_cpu" = ia64; then
10778 # AIX 5 supports IA64
10779 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 else
10782 # With GCC up to 2.95.x, collect2 would create an import file
10783 # for dependence libraries. The import file would start with
10784 # the line `#! .'. This would cause the generated library to
10785 # depend on `.', always an invalid library. This was fixed in
10786 # development snapshots of GCC prior to 3.0.
10787 case $host_os in
10788 aix4 | aix4.[01] | aix4.[01].*)
10789 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10790 echo ' yes '
10791 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10792 :
10793 else
10794 can_build_shared=no
10795 fi
10796 ;;
10797 esac
10798 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10799 # soname into executable. Probably we can add versioning support to
10800 # collect2, so additional links can be useful in future.
10801 if test "$aix_use_runtimelinking" = yes; then
10802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10803 # instead of lib<name>.a to let people know that these are not
10804 # typical AIX shared libraries.
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 else
10807 # We preserve .a as extension for shared libraries through AIX4.2
10808 # and later when we are not doing run time linking.
10809 library_names_spec='${libname}${release}.a $libname.a'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 fi
10812 shlibpath_var=LIBPATH
10813 fi
10814 ;;
10815
10816 amigaos*)
10817 case $host_cpu in
10818 powerpc)
10819 # Since July 2007 AmigaOS4 officially supports .so libraries.
10820 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10822 ;;
10823 m68k)
10824 library_names_spec='$libname.ixlibrary $libname.a'
10825 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10826 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'
10827 ;;
10828 esac
10829 ;;
10830
10831 beos*)
10832 library_names_spec='${libname}${shared_ext}'
10833 dynamic_linker="$host_os ld.so"
10834 shlibpath_var=LIBRARY_PATH
10835 ;;
10836
10837 bsdi[45]*)
10838 version_type=linux
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10846 # the default ld.so.conf also contains /usr/contrib/lib and
10847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10848 # libtool to hard-code these into programs
10849 ;;
10850
10851 cygwin* | mingw* | pw32* | cegcc*)
10852 version_type=windows
10853 shrext_cmds=".dll"
10854 need_version=no
10855 need_lib_prefix=no
10856
10857 case $GCC,$cc_basename in
10858 yes,*)
10859 # gcc
10860 library_names_spec='$libname.dll.a'
10861 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10862 postinstall_cmds='base_file=`basename \${file}`~
10863 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10864 dldir=$destdir/`dirname \$dlpath`~
10865 test -d \$dldir || mkdir -p \$dldir~
10866 $install_prog $dir/$dlname \$dldir/$dlname~
10867 chmod a+x \$dldir/$dlname~
10868 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10869 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10870 fi'
10871 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10872 dlpath=$dir/\$dldll~
10873 $RM \$dlpath'
10874 shlibpath_overrides_runpath=yes
10875
10876 case $host_os in
10877 cygwin*)
10878 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10879 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10880
10881 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10882 ;;
10883 mingw* | cegcc*)
10884 # MinGW DLLs use traditional 'lib' prefix
10885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10886 ;;
10887 pw32*)
10888 # pw32 DLLs use 'pw' prefix rather than 'lib'
10889 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890 ;;
10891 esac
10892 dynamic_linker='Win32 ld.exe'
10893 ;;
10894
10895 *,cl*)
10896 # Native MSVC
10897 libname_spec='$name'
10898 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10899 library_names_spec='${libname}.dll.lib'
10900
10901 case $build_os in
10902 mingw*)
10903 sys_lib_search_path_spec=
10904 lt_save_ifs=$IFS
10905 IFS=';'
10906 for lt_path in $LIB
10907 do
10908 IFS=$lt_save_ifs
10909 # Let DOS variable expansion print the short 8.3 style file name.
10910 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10911 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10912 done
10913 IFS=$lt_save_ifs
10914 # Convert to MSYS style.
10915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10916 ;;
10917 cygwin*)
10918 # Convert to unix form, then to dos form, then back to unix form
10919 # but this time dos style (no spaces!) so that the unix form looks
10920 # like /cygdrive/c/PROGRA~1:/cygdr...
10921 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10922 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10923 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10924 ;;
10925 *)
10926 sys_lib_search_path_spec="$LIB"
10927 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10928 # It is most probably a Windows format PATH.
10929 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10930 else
10931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10932 fi
10933 # FIXME: find the short name or the path components, as spaces are
10934 # common. (e.g. "Program Files" -> "PROGRA~1")
10935 ;;
10936 esac
10937
10938 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10939 postinstall_cmds='base_file=`basename \${file}`~
10940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10941 dldir=$destdir/`dirname \$dlpath`~
10942 test -d \$dldir || mkdir -p \$dldir~
10943 $install_prog $dir/$dlname \$dldir/$dlname'
10944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10945 dlpath=$dir/\$dldll~
10946 $RM \$dlpath'
10947 shlibpath_overrides_runpath=yes
10948 dynamic_linker='Win32 link.exe'
10949 ;;
10950
10951 *)
10952 # Assume MSVC wrapper
10953 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10954 dynamic_linker='Win32 ld.exe'
10955 ;;
10956 esac
10957 # FIXME: first we should search . and the directory the executable is in
10958 shlibpath_var=PATH
10959 ;;
10960
10961 darwin* | rhapsody*)
10962 dynamic_linker="$host_os dyld"
10963 version_type=darwin
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10967 soname_spec='${libname}${release}${major}$shared_ext'
10968 shlibpath_overrides_runpath=yes
10969 shlibpath_var=DYLD_LIBRARY_PATH
10970 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10971
10972 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10974 ;;
10975
10976 dgux*)
10977 version_type=linux
10978 need_lib_prefix=no
10979 need_version=no
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 ;;
10984
10985 freebsd1*)
10986 dynamic_linker=no
10987 ;;
10988
10989 freebsd* | dragonfly*)
10990 # DragonFly does not have aout. When/if they implement a new
10991 # versioning mechanism, adjust this.
10992 if test -x /usr/bin/objformat; then
10993 objformat=`/usr/bin/objformat`
10994 else
10995 case $host_os in
10996 freebsd[123]*) objformat=aout ;;
10997 *) objformat=elf ;;
10998 esac
10999 fi
11000 version_type=freebsd-$objformat
11001 case $version_type in
11002 freebsd-elf*)
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11004 need_version=no
11005 need_lib_prefix=no
11006 ;;
11007 freebsd-*)
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11009 need_version=yes
11010 ;;
11011 esac
11012 shlibpath_var=LD_LIBRARY_PATH
11013 case $host_os in
11014 freebsd2*)
11015 shlibpath_overrides_runpath=yes
11016 ;;
11017 freebsd3.[01]* | freebsdelf3.[01]*)
11018 shlibpath_overrides_runpath=yes
11019 hardcode_into_libs=yes
11020 ;;
11021 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11022 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11023 shlibpath_overrides_runpath=no
11024 hardcode_into_libs=yes
11025 ;;
11026 *) # from 4.6 on, and DragonFly
11027 shlibpath_overrides_runpath=yes
11028 hardcode_into_libs=yes
11029 ;;
11030 esac
11031 ;;
11032
11033 gnu*)
11034 version_type=linux
11035 need_lib_prefix=no
11036 need_version=no
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 hardcode_into_libs=yes
11041 ;;
11042
11043 haiku*)
11044 version_type=linux
11045 need_lib_prefix=no
11046 need_version=no
11047 dynamic_linker="$host_os runtime_loader"
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 shlibpath_var=LIBRARY_PATH
11051 shlibpath_overrides_runpath=yes
11052 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11053 hardcode_into_libs=yes
11054 ;;
11055
11056 hpux9* | hpux10* | hpux11*)
11057 # Give a soname corresponding to the major version so that dld.sl refuses to
11058 # link against other versions.
11059 version_type=sunos
11060 need_lib_prefix=no
11061 need_version=no
11062 case $host_cpu in
11063 ia64*)
11064 shrext_cmds='.so'
11065 hardcode_into_libs=yes
11066 dynamic_linker="$host_os dld.so"
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 if test "X$HPUX_IA64_MODE" = X32; then
11072 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11073 else
11074 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11075 fi
11076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11077 ;;
11078 hppa*64*)
11079 shrext_cmds='.sl'
11080 hardcode_into_libs=yes
11081 dynamic_linker="$host_os dld.sl"
11082 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11087 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11088 ;;
11089 *)
11090 shrext_cmds='.sl'
11091 dynamic_linker="$host_os dld.sl"
11092 shlibpath_var=SHLIB_PATH
11093 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095 soname_spec='${libname}${release}${shared_ext}$major'
11096 ;;
11097 esac
11098 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11099 postinstall_cmds='chmod 555 $lib'
11100 # or fails outright, so override atomically:
11101 install_override_mode=555
11102 ;;
11103
11104 interix[3-9]*)
11105 version_type=linux
11106 need_lib_prefix=no
11107 need_version=no
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=no
11113 hardcode_into_libs=yes
11114 ;;
11115
11116 irix5* | irix6* | nonstopux*)
11117 case $host_os in
11118 nonstopux*) version_type=nonstopux ;;
11119 *)
11120 if test "$lt_cv_prog_gnu_ld" = yes; then
11121 version_type=linux
11122 else
11123 version_type=irix
11124 fi ;;
11125 esac
11126 need_lib_prefix=no
11127 need_version=no
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11130 case $host_os in
11131 irix5* | nonstopux*)
11132 libsuff= shlibsuff=
11133 ;;
11134 *)
11135 case $LD in # libtool.m4 will add one of these switches to LD
11136 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11137 libsuff= shlibsuff= libmagic=32-bit;;
11138 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11139 libsuff=32 shlibsuff=N32 libmagic=N32;;
11140 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11141 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11142 *) libsuff= shlibsuff= libmagic=never-match;;
11143 esac
11144 ;;
11145 esac
11146 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11147 shlibpath_overrides_runpath=no
11148 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11149 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11150 hardcode_into_libs=yes
11151 ;;
11152
11153 # No shared lib support for Linux oldld, aout, or coff.
11154 linux*oldld* | linux*aout* | linux*coff*)
11155 dynamic_linker=no
11156 ;;
11157
11158 # This must be Linux ELF.
11159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11160 version_type=linux
11161 need_lib_prefix=no
11162 need_version=no
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 shlibpath_overrides_runpath=no
11168
11169 # Some binutils ld are patched to set DT_RUNPATH
11170 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11172 else
11173 lt_cv_shlibpath_overrides_runpath=no
11174 save_LDFLAGS=$LDFLAGS
11175 save_libdir=$libdir
11176 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11177 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180
11181 int
11182 main ()
11183 {
11184
11185 ;
11186 return 0;
11187 }
11188 _ACEOF
11189 if ac_fn_c_try_link "$LINENO"; then :
11190 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11191 lt_cv_shlibpath_overrides_runpath=yes
11192 fi
11193 fi
11194 rm -f core conftest.err conftest.$ac_objext \
11195 conftest$ac_exeext conftest.$ac_ext
11196 LDFLAGS=$save_LDFLAGS
11197 libdir=$save_libdir
11198
11199 fi
11200
11201 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11202
11203 # This implies no fast_install, which is unacceptable.
11204 # Some rework will be needed to allow for fast_install
11205 # before this can be enabled.
11206 hardcode_into_libs=yes
11207
11208 # Add ABI-specific directories to the system library path.
11209 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11210
11211 # Append ld.so.conf contents to the search path
11212 if test -f /etc/ld.so.conf; then
11213 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' ' '`
11214 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11215
11216 fi
11217
11218 # We used to test for /lib/ld.so.1 and disable shared libraries on
11219 # powerpc, because MkLinux only supported shared libraries with the
11220 # GNU dynamic linker. Since this was broken with cross compilers,
11221 # most powerpc-linux boxes support dynamic linking these days and
11222 # people can always --disable-shared, the test was removed, and we
11223 # assume the GNU/Linux dynamic linker is in use.
11224 dynamic_linker='GNU/Linux ld.so'
11225 ;;
11226
11227 netbsd*)
11228 version_type=sunos
11229 need_lib_prefix=no
11230 need_version=no
11231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11233 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11234 dynamic_linker='NetBSD (a.out) ld.so'
11235 else
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11237 soname_spec='${libname}${release}${shared_ext}$major'
11238 dynamic_linker='NetBSD ld.elf_so'
11239 fi
11240 shlibpath_var=LD_LIBRARY_PATH
11241 shlibpath_overrides_runpath=yes
11242 hardcode_into_libs=yes
11243 ;;
11244
11245 newsos6)
11246 version_type=linux
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 ;;
11251
11252 *nto* | *qnx*)
11253 version_type=qnx
11254 need_lib_prefix=no
11255 need_version=no
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=no
11260 hardcode_into_libs=yes
11261 dynamic_linker='ldqnx.so'
11262 ;;
11263
11264 openbsd*)
11265 version_type=sunos
11266 sys_lib_dlsearch_path_spec="/usr/lib"
11267 need_lib_prefix=no
11268 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11269 case $host_os in
11270 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11271 *) need_version=no ;;
11272 esac
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11277 case $host_os in
11278 openbsd2.[89] | openbsd2.[89].*)
11279 shlibpath_overrides_runpath=no
11280 ;;
11281 *)
11282 shlibpath_overrides_runpath=yes
11283 ;;
11284 esac
11285 else
11286 shlibpath_overrides_runpath=yes
11287 fi
11288 ;;
11289
11290 os2*)
11291 libname_spec='$name'
11292 shrext_cmds=".dll"
11293 need_lib_prefix=no
11294 library_names_spec='$libname${shared_ext} $libname.a'
11295 dynamic_linker='OS/2 ld.exe'
11296 shlibpath_var=LIBPATH
11297 ;;
11298
11299 osf3* | osf4* | osf5*)
11300 version_type=osf
11301 need_lib_prefix=no
11302 need_version=no
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11307 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11308 ;;
11309
11310 rdos*)
11311 dynamic_linker=no
11312 ;;
11313
11314 solaris*)
11315 version_type=linux
11316 need_lib_prefix=no
11317 need_version=no
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 shlibpath_overrides_runpath=yes
11322 hardcode_into_libs=yes
11323 # ldd complains unless libraries are executable
11324 postinstall_cmds='chmod +x $lib'
11325 ;;
11326
11327 sunos4*)
11328 version_type=sunos
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11330 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11331 shlibpath_var=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes
11333 if test "$with_gnu_ld" = yes; then
11334 need_lib_prefix=no
11335 fi
11336 need_version=yes
11337 ;;
11338
11339 sysv4 | sysv4.3*)
11340 version_type=linux
11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11342 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LD_LIBRARY_PATH
11344 case $host_vendor in
11345 sni)
11346 shlibpath_overrides_runpath=no
11347 need_lib_prefix=no
11348 runpath_var=LD_RUN_PATH
11349 ;;
11350 siemens)
11351 need_lib_prefix=no
11352 ;;
11353 motorola)
11354 need_lib_prefix=no
11355 need_version=no
11356 shlibpath_overrides_runpath=no
11357 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11358 ;;
11359 esac
11360 ;;
11361
11362 sysv4*MP*)
11363 if test -d /usr/nec ;then
11364 version_type=linux
11365 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11366 soname_spec='$libname${shared_ext}.$major'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 fi
11369 ;;
11370
11371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11372 version_type=freebsd-elf
11373 need_lib_prefix=no
11374 need_version=no
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath=yes
11379 hardcode_into_libs=yes
11380 if test "$with_gnu_ld" = yes; then
11381 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11382 else
11383 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11384 case $host_os in
11385 sco3.2v5*)
11386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11387 ;;
11388 esac
11389 fi
11390 sys_lib_dlsearch_path_spec='/usr/lib'
11391 ;;
11392
11393 tpf*)
11394 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11395 version_type=linux
11396 need_lib_prefix=no
11397 need_version=no
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399 shlibpath_var=LD_LIBRARY_PATH
11400 shlibpath_overrides_runpath=no
11401 hardcode_into_libs=yes
11402 ;;
11403
11404 uts4*)
11405 version_type=linux
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407 soname_spec='${libname}${release}${shared_ext}$major'
11408 shlibpath_var=LD_LIBRARY_PATH
11409 ;;
11410
11411 *)
11412 dynamic_linker=no
11413 ;;
11414 esac
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11416 $as_echo "$dynamic_linker" >&6; }
11417 test "$dynamic_linker" = no && can_build_shared=no
11418
11419 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11420 if test "$GCC" = yes; then
11421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11422 fi
11423
11424 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11425 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11426 fi
11427 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11428 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11429 fi
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11523 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11524 hardcode_action=
11525 if test -n "$hardcode_libdir_flag_spec" ||
11526 test -n "$runpath_var" ||
11527 test "X$hardcode_automatic" = "Xyes" ; then
11528
11529 # We can hardcode non-existent directories.
11530 if test "$hardcode_direct" != no &&
11531 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11532 # have to relink, otherwise we might link with an installed library
11533 # when we should be linking with a yet-to-be-installed one
11534 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11535 test "$hardcode_minus_L" != no; then
11536 # Linking always hardcodes the temporary library directory.
11537 hardcode_action=relink
11538 else
11539 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11540 hardcode_action=immediate
11541 fi
11542 else
11543 # We cannot hardcode anything, or else we can only hardcode existing
11544 # directories.
11545 hardcode_action=unsupported
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11548 $as_echo "$hardcode_action" >&6; }
11549
11550 if test "$hardcode_action" = relink ||
11551 test "$inherit_rpath" = yes; then
11552 # Fast installation is not supported
11553 enable_fast_install=no
11554 elif test "$shlibpath_overrides_runpath" = yes ||
11555 test "$enable_shared" = no; then
11556 # Fast installation is not necessary
11557 enable_fast_install=needless
11558 fi
11559
11560
11561
11562
11563
11564
11565 if test "x$enable_dlopen" != xyes; then
11566 enable_dlopen=unknown
11567 enable_dlopen_self=unknown
11568 enable_dlopen_self_static=unknown
11569 else
11570 lt_cv_dlopen=no
11571 lt_cv_dlopen_libs=
11572
11573 case $host_os in
11574 beos*)
11575 lt_cv_dlopen="load_add_on"
11576 lt_cv_dlopen_libs=
11577 lt_cv_dlopen_self=yes
11578 ;;
11579
11580 mingw* | pw32* | cegcc*)
11581 lt_cv_dlopen="LoadLibrary"
11582 lt_cv_dlopen_libs=
11583 ;;
11584
11585 cygwin*)
11586 lt_cv_dlopen="dlopen"
11587 lt_cv_dlopen_libs=
11588 ;;
11589
11590 darwin*)
11591 # if libdl is installed we need to link against it
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11593 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11594 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 ac_check_lib_save_LIBS=$LIBS
11598 LIBS="-ldl $LIBS"
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11601
11602 /* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 char dlopen ();
11609 int
11610 main ()
11611 {
11612 return dlopen ();
11613 ;
11614 return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618 ac_cv_lib_dl_dlopen=yes
11619 else
11620 ac_cv_lib_dl_dlopen=no
11621 fi
11622 rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11627 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11628 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11629 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11630 else
11631
11632 lt_cv_dlopen="dyld"
11633 lt_cv_dlopen_libs=
11634 lt_cv_dlopen_self=yes
11635
11636 fi
11637
11638 ;;
11639
11640 *)
11641 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11642 if test "x$ac_cv_func_shl_load" = x""yes; then :
11643 lt_cv_dlopen="shl_load"
11644 else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11646 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11647 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11648 $as_echo_n "(cached) " >&6
11649 else
11650 ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-ldld $LIBS"
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11654
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 char shl_load ();
11662 int
11663 main ()
11664 {
11665 return shl_load ();
11666 ;
11667 return 0;
11668 }
11669 _ACEOF
11670 if ac_fn_c_try_link "$LINENO"; then :
11671 ac_cv_lib_dld_shl_load=yes
11672 else
11673 ac_cv_lib_dld_shl_load=no
11674 fi
11675 rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_lib_save_LIBS
11678 fi
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11680 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11681 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11682 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11683 else
11684 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11685 if test "x$ac_cv_func_dlopen" = x""yes; then :
11686 lt_cv_dlopen="dlopen"
11687 else
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11689 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11690 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-ldl $LIBS"
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11697
11698 /* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 char dlopen ();
11705 int
11706 main ()
11707 {
11708 return dlopen ();
11709 ;
11710 return 0;
11711 }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714 ac_cv_lib_dl_dlopen=yes
11715 else
11716 ac_cv_lib_dl_dlopen=no
11717 fi
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720 LIBS=$ac_check_lib_save_LIBS
11721 fi
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11723 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11724 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11725 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11728 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11729 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 ac_check_lib_save_LIBS=$LIBS
11733 LIBS="-lsvld $LIBS"
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11736
11737 /* Override any GCC internal prototype to avoid an error.
11738 Use char because int might match the return type of a GCC
11739 builtin and then its argument prototype would still apply. */
11740 #ifdef __cplusplus
11741 extern "C"
11742 #endif
11743 char dlopen ();
11744 int
11745 main ()
11746 {
11747 return dlopen ();
11748 ;
11749 return 0;
11750 }
11751 _ACEOF
11752 if ac_fn_c_try_link "$LINENO"; then :
11753 ac_cv_lib_svld_dlopen=yes
11754 else
11755 ac_cv_lib_svld_dlopen=no
11756 fi
11757 rm -f core conftest.err conftest.$ac_objext \
11758 conftest$ac_exeext conftest.$ac_ext
11759 LIBS=$ac_check_lib_save_LIBS
11760 fi
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11762 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11763 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11764 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11765 else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11767 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11768 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-ldld $LIBS"
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775
11776 /* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
11779 #ifdef __cplusplus
11780 extern "C"
11781 #endif
11782 char dld_link ();
11783 int
11784 main ()
11785 {
11786 return dld_link ();
11787 ;
11788 return 0;
11789 }
11790 _ACEOF
11791 if ac_fn_c_try_link "$LINENO"; then :
11792 ac_cv_lib_dld_dld_link=yes
11793 else
11794 ac_cv_lib_dld_dld_link=no
11795 fi
11796 rm -f core conftest.err conftest.$ac_objext \
11797 conftest$ac_exeext conftest.$ac_ext
11798 LIBS=$ac_check_lib_save_LIBS
11799 fi
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11801 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11802 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11803 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11804 fi
11805
11806
11807 fi
11808
11809
11810 fi
11811
11812
11813 fi
11814
11815
11816 fi
11817
11818
11819 fi
11820
11821 ;;
11822 esac
11823
11824 if test "x$lt_cv_dlopen" != xno; then
11825 enable_dlopen=yes
11826 else
11827 enable_dlopen=no
11828 fi
11829
11830 case $lt_cv_dlopen in
11831 dlopen)
11832 save_CPPFLAGS="$CPPFLAGS"
11833 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11834
11835 save_LDFLAGS="$LDFLAGS"
11836 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11837
11838 save_LIBS="$LIBS"
11839 LIBS="$lt_cv_dlopen_libs $LIBS"
11840
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11842 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11843 if test "${lt_cv_dlopen_self+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 if test "$cross_compiling" = yes; then :
11847 lt_cv_dlopen_self=cross
11848 else
11849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11850 lt_status=$lt_dlunknown
11851 cat > conftest.$ac_ext <<_LT_EOF
11852 #line $LINENO "configure"
11853 #include "confdefs.h"
11854
11855 #if HAVE_DLFCN_H
11856 #include <dlfcn.h>
11857 #endif
11858
11859 #include <stdio.h>
11860
11861 #ifdef RTLD_GLOBAL
11862 # define LT_DLGLOBAL RTLD_GLOBAL
11863 #else
11864 # ifdef DL_GLOBAL
11865 # define LT_DLGLOBAL DL_GLOBAL
11866 # else
11867 # define LT_DLGLOBAL 0
11868 # endif
11869 #endif
11870
11871 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11872 find out it does not work in some platform. */
11873 #ifndef LT_DLLAZY_OR_NOW
11874 # ifdef RTLD_LAZY
11875 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11876 # else
11877 # ifdef DL_LAZY
11878 # define LT_DLLAZY_OR_NOW DL_LAZY
11879 # else
11880 # ifdef RTLD_NOW
11881 # define LT_DLLAZY_OR_NOW RTLD_NOW
11882 # else
11883 # ifdef DL_NOW
11884 # define LT_DLLAZY_OR_NOW DL_NOW
11885 # else
11886 # define LT_DLLAZY_OR_NOW 0
11887 # endif
11888 # endif
11889 # endif
11890 # endif
11891 #endif
11892
11893 /* When -fvisbility=hidden is used, assume the code has been annotated
11894 correspondingly for the symbols needed. */
11895 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11896 int fnord () __attribute__((visibility("default")));
11897 #endif
11898
11899 int fnord () { return 42; }
11900 int main ()
11901 {
11902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11903 int status = $lt_dlunknown;
11904
11905 if (self)
11906 {
11907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11908 else
11909 {
11910 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11911 else puts (dlerror ());
11912 }
11913 /* dlclose (self); */
11914 }
11915 else
11916 puts (dlerror ());
11917
11918 return status;
11919 }
11920 _LT_EOF
11921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11922 (eval $ac_link) 2>&5
11923 ac_status=$?
11924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11925 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11926 (./conftest; exit; ) >&5 2>/dev/null
11927 lt_status=$?
11928 case x$lt_status in
11929 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11930 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11931 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11932 esac
11933 else :
11934 # compilation failed
11935 lt_cv_dlopen_self=no
11936 fi
11937 fi
11938 rm -fr conftest*
11939
11940
11941 fi
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11943 $as_echo "$lt_cv_dlopen_self" >&6; }
11944
11945 if test "x$lt_cv_dlopen_self" = xyes; then
11946 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11948 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11949 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 if test "$cross_compiling" = yes; then :
11953 lt_cv_dlopen_self_static=cross
11954 else
11955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11956 lt_status=$lt_dlunknown
11957 cat > conftest.$ac_ext <<_LT_EOF
11958 #line $LINENO "configure"
11959 #include "confdefs.h"
11960
11961 #if HAVE_DLFCN_H
11962 #include <dlfcn.h>
11963 #endif
11964
11965 #include <stdio.h>
11966
11967 #ifdef RTLD_GLOBAL
11968 # define LT_DLGLOBAL RTLD_GLOBAL
11969 #else
11970 # ifdef DL_GLOBAL
11971 # define LT_DLGLOBAL DL_GLOBAL
11972 # else
11973 # define LT_DLGLOBAL 0
11974 # endif
11975 #endif
11976
11977 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11978 find out it does not work in some platform. */
11979 #ifndef LT_DLLAZY_OR_NOW
11980 # ifdef RTLD_LAZY
11981 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11982 # else
11983 # ifdef DL_LAZY
11984 # define LT_DLLAZY_OR_NOW DL_LAZY
11985 # else
11986 # ifdef RTLD_NOW
11987 # define LT_DLLAZY_OR_NOW RTLD_NOW
11988 # else
11989 # ifdef DL_NOW
11990 # define LT_DLLAZY_OR_NOW DL_NOW
11991 # else
11992 # define LT_DLLAZY_OR_NOW 0
11993 # endif
11994 # endif
11995 # endif
11996 # endif
11997 #endif
11998
11999 /* When -fvisbility=hidden is used, assume the code has been annotated
12000 correspondingly for the symbols needed. */
12001 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12002 int fnord () __attribute__((visibility("default")));
12003 #endif
12004
12005 int fnord () { return 42; }
12006 int main ()
12007 {
12008 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12009 int status = $lt_dlunknown;
12010
12011 if (self)
12012 {
12013 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12014 else
12015 {
12016 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12017 else puts (dlerror ());
12018 }
12019 /* dlclose (self); */
12020 }
12021 else
12022 puts (dlerror ());
12023
12024 return status;
12025 }
12026 _LT_EOF
12027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12028 (eval $ac_link) 2>&5
12029 ac_status=$?
12030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12031 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12032 (./conftest; exit; ) >&5 2>/dev/null
12033 lt_status=$?
12034 case x$lt_status in
12035 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12036 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12037 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12038 esac
12039 else :
12040 # compilation failed
12041 lt_cv_dlopen_self_static=no
12042 fi
12043 fi
12044 rm -fr conftest*
12045
12046
12047 fi
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12049 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12050 fi
12051
12052 CPPFLAGS="$save_CPPFLAGS"
12053 LDFLAGS="$save_LDFLAGS"
12054 LIBS="$save_LIBS"
12055 ;;
12056 esac
12057
12058 case $lt_cv_dlopen_self in
12059 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12060 *) enable_dlopen_self=unknown ;;
12061 esac
12062
12063 case $lt_cv_dlopen_self_static in
12064 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12065 *) enable_dlopen_self_static=unknown ;;
12066 esac
12067 fi
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085 striplib=
12086 old_striplib=
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12088 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12089 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12090 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12091 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12093 $as_echo "yes" >&6; }
12094 else
12095 # FIXME - insert some real tests, host_os isn't really good enough
12096 case $host_os in
12097 darwin*)
12098 if test -n "$STRIP" ; then
12099 striplib="$STRIP -x"
12100 old_striplib="$STRIP -S"
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12102 $as_echo "yes" >&6; }
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12106 fi
12107 ;;
12108 *)
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111 ;;
12112 esac
12113 fi
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126 # Report which library types will actually be built
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12128 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12130 $as_echo "$can_build_shared" >&6; }
12131
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12133 $as_echo_n "checking whether to build shared libraries... " >&6; }
12134 test "$can_build_shared" = "no" && enable_shared=no
12135
12136 # On AIX, shared libraries and static libraries use the same namespace, and
12137 # are all built from PIC.
12138 case $host_os in
12139 aix3*)
12140 test "$enable_shared" = yes && enable_static=no
12141 if test -n "$RANLIB"; then
12142 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12143 postinstall_cmds='$RANLIB $lib'
12144 fi
12145 ;;
12146
12147 aix[4-9]*)
12148 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12149 test "$enable_shared" = yes && enable_static=no
12150 fi
12151 ;;
12152 esac
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12154 $as_echo "$enable_shared" >&6; }
12155
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12157 $as_echo_n "checking whether to build static libraries... " >&6; }
12158 # Make sure either enable_shared or enable_static is yes.
12159 test "$enable_shared" = yes || enable_static=yes
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12161 $as_echo "$enable_static" >&6; }
12162
12163
12164
12165
12166 fi
12167 ac_ext=c
12168 ac_cpp='$CPP $CPPFLAGS'
12169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12172
12173 CC="$lt_save_CC"
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187 ac_config_commands="$ac_config_commands libtool"
12188
12189
12190
12191
12192 # Only expand once:
12193
12194
12195
12196 # Check whether --enable-targets was given.
12197 if test "${enable_targets+set}" = set; then :
12198 enableval=$enable_targets; case "${enableval}" in
12199 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
12200 ;;
12201 no) enable_targets= ;;
12202 *) enable_targets=$enableval ;;
12203 esac
12204 fi
12205
12206 ac_checking=yes
12207 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
12208 ac_checking=
12209 fi
12210 # Check whether --enable-checking was given.
12211 if test "${enable_checking+set}" = set; then :
12212 enableval=$enable_checking; case "${enableval}" in
12213 no|none) ac_checking= ;;
12214 *) ac_checking=yes ;;
12215 esac
12216 fi
12217 if test x$ac_checking != x ; then
12218
12219 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
12220
12221 fi
12222
12223 using_cgen=no
12224
12225
12226 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12229 __GNUC__
12230 _ACEOF
12231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12232 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12233
12234 else
12235 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12236 fi
12237 rm -f conftest*
12238
12239
12240 # Check whether --enable-werror was given.
12241 if test "${enable_werror+set}" = set; then :
12242 enableval=$enable_werror; case "${enableval}" in
12243 yes | y) ERROR_ON_WARNING="yes" ;;
12244 no | n) ERROR_ON_WARNING="no" ;;
12245 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12246 esac
12247 fi
12248
12249
12250 # Disable -Wformat by default when using gcc on mingw
12251 case "${host}" in
12252 *-*-mingw32*)
12253 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12254 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12255 fi
12256 ;;
12257 *) ;;
12258 esac
12259
12260 # Enable -Werror by default when using gcc
12261 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12262 ERROR_ON_WARNING=yes
12263 fi
12264
12265 NO_WERROR=
12266 if test "${ERROR_ON_WARNING}" = yes ; then
12267 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12268 NO_WERROR="-Wno-error"
12269 fi
12270
12271 if test "${GCC}" = yes ; then
12272 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12273 fi
12274
12275 # Check whether --enable-build-warnings was given.
12276 if test "${enable_build_warnings+set}" = set; then :
12277 enableval=$enable_build_warnings; case "${enableval}" in
12278 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12279 no) if test "${GCC}" = yes ; then
12280 WARN_CFLAGS="-w"
12281 fi;;
12282 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12283 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12284 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12285 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12286 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12287 esac
12288 fi
12289
12290
12291 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12292 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12293 fi
12294
12295
12296
12297
12298
12299 # Generate a header file
12300 ac_config_headers="$ac_config_headers config.h:config.in"
12301
12302
12303 # PR 14072
12304
12305
12306 # If we are on a DOS filesystem, we must use gdb.ini rather than
12307 # .gdbinit.
12308 case "${host}" in
12309 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
12310 GDBINIT="gdb.ini"
12311 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
12312
12313 ;;
12314 *)
12315 GDBINIT=".gdbinit"
12316 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
12317
12318 ;;
12319 esac
12320
12321
12322 #We need this for the host. BOUT header is in host order.
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12324 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12325 if test "${ac_cv_c_bigendian+set}" = set; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 ac_cv_c_bigendian=unknown
12329 # See if we're dealing with a universal compiler.
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 #ifndef __APPLE_CC__
12333 not a universal capable compiler
12334 #endif
12335 typedef int dummy;
12336
12337 _ACEOF
12338 if ac_fn_c_try_compile "$LINENO"; then :
12339
12340 # Check for potential -arch flags. It is not universal unless
12341 # there are at least two -arch flags with different values.
12342 ac_arch=
12343 ac_prev=
12344 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12345 if test -n "$ac_prev"; then
12346 case $ac_word in
12347 i?86 | x86_64 | ppc | ppc64)
12348 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12349 ac_arch=$ac_word
12350 else
12351 ac_cv_c_bigendian=universal
12352 break
12353 fi
12354 ;;
12355 esac
12356 ac_prev=
12357 elif test "x$ac_word" = "x-arch"; then
12358 ac_prev=arch
12359 fi
12360 done
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 if test $ac_cv_c_bigendian = unknown; then
12364 # See if sys/param.h defines the BYTE_ORDER macro.
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367 #include <sys/types.h>
12368 #include <sys/param.h>
12369
12370 int
12371 main ()
12372 {
12373 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12374 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12375 && LITTLE_ENDIAN)
12376 bogus endian macros
12377 #endif
12378
12379 ;
12380 return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384 # It does; now see whether it defined to BIG_ENDIAN or not.
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387 #include <sys/types.h>
12388 #include <sys/param.h>
12389
12390 int
12391 main ()
12392 {
12393 #if BYTE_ORDER != BIG_ENDIAN
12394 not big endian
12395 #endif
12396
12397 ;
12398 return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_compile "$LINENO"; then :
12402 ac_cv_c_bigendian=yes
12403 else
12404 ac_cv_c_bigendian=no
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407 fi
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 if test $ac_cv_c_bigendian = unknown; then
12411 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h. */
12414 #include <limits.h>
12415
12416 int
12417 main ()
12418 {
12419 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12420 bogus endian macros
12421 #endif
12422
12423 ;
12424 return 0;
12425 }
12426 _ACEOF
12427 if ac_fn_c_try_compile "$LINENO"; then :
12428 # It does; now see whether it defined to _BIG_ENDIAN or not.
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 #include <limits.h>
12432
12433 int
12434 main ()
12435 {
12436 #ifndef _BIG_ENDIAN
12437 not big endian
12438 #endif
12439
12440 ;
12441 return 0;
12442 }
12443 _ACEOF
12444 if ac_fn_c_try_compile "$LINENO"; then :
12445 ac_cv_c_bigendian=yes
12446 else
12447 ac_cv_c_bigendian=no
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 fi
12453 if test $ac_cv_c_bigendian = unknown; then
12454 # Compile a test program.
12455 if test "$cross_compiling" = yes; then :
12456 # Try to guess by grepping values from an object file.
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12459 short int ascii_mm[] =
12460 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12461 short int ascii_ii[] =
12462 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12463 int use_ascii (int i) {
12464 return ascii_mm[i] + ascii_ii[i];
12465 }
12466 short int ebcdic_ii[] =
12467 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12468 short int ebcdic_mm[] =
12469 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12470 int use_ebcdic (int i) {
12471 return ebcdic_mm[i] + ebcdic_ii[i];
12472 }
12473 extern int foo;
12474
12475 int
12476 main ()
12477 {
12478 return use_ascii (foo) == use_ebcdic (foo);
12479 ;
12480 return 0;
12481 }
12482 _ACEOF
12483 if ac_fn_c_try_compile "$LINENO"; then :
12484 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12485 ac_cv_c_bigendian=yes
12486 fi
12487 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12488 if test "$ac_cv_c_bigendian" = unknown; then
12489 ac_cv_c_bigendian=no
12490 else
12491 # finding both strings is unlikely to happen, but who knows?
12492 ac_cv_c_bigendian=unknown
12493 fi
12494 fi
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497 else
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500 $ac_includes_default
12501 int
12502 main ()
12503 {
12504
12505 /* Are we little or big endian? From Harbison&Steele. */
12506 union
12507 {
12508 long int l;
12509 char c[sizeof (long int)];
12510 } u;
12511 u.l = 1;
12512 return u.c[sizeof (long int) - 1] == 1;
12513
12514 ;
12515 return 0;
12516 }
12517 _ACEOF
12518 if ac_fn_c_try_run "$LINENO"; then :
12519 ac_cv_c_bigendian=no
12520 else
12521 ac_cv_c_bigendian=yes
12522 fi
12523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12524 conftest.$ac_objext conftest.beam conftest.$ac_ext
12525 fi
12526
12527 fi
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12530 $as_echo "$ac_cv_c_bigendian" >&6; }
12531 case $ac_cv_c_bigendian in #(
12532 yes)
12533 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12534 ;; #(
12535 no)
12536 ;; #(
12537 universal)
12538
12539 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12540
12541 ;; #(
12542 *)
12543 as_fn_error "unknown endianness
12544 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12545 esac
12546
12547
12548 te_file=generic
12549
12550 # Makefile target for installing gas in $(tooldir)/bin.
12551 install_tooldir=install-exec-tooldir
12552
12553 canon_targets=""
12554 all_targets=no
12555 if test -n "$enable_targets" ; then
12556 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12557 if test $t = "all"; then
12558 all_targets=yes
12559 continue
12560 fi
12561 result=`$ac_config_sub $t 2>/dev/null`
12562 if test -n "$result" ; then
12563 canon_targets="$canon_targets $result"
12564 # else
12565 # # Permit "all", etc. We don't support it yet though.
12566 # canon_targets="$canon_targets $t"
12567 fi
12568 done
12569 _gas_uniq_list="$canon_targets"
12570 _gas_uniq_newlist=""
12571 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12572 case $_gas_uniq_i in
12573 _gas_uniq_dummy) ;;
12574 *) case " $_gas_uniq_newlist " in
12575 *" $_gas_uniq_i "*) ;;
12576 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12577 esac ;;
12578 esac
12579 done
12580 canon_targets=$_gas_uniq_newlist
12581
12582 fi
12583
12584 emulations=""
12585
12586 for this_target in $target $canon_targets ; do
12587
12588 targ=${this_target}
12589 . ${srcdir}/configure.tgt
12590
12591 case ${target_cpu} in
12592 crisv32)
12593
12594 cat >>confdefs.h <<_ACEOF
12595 #define DEFAULT_CRIS_ARCH $arch
12596 _ACEOF
12597
12598 ;;
12599 esac
12600
12601 if test ${this_target} = $target ; then
12602 target_cpu_type=${cpu_type}
12603 elif test ${target_cpu_type} != ${cpu_type} ; then
12604 continue
12605 fi
12606
12607 generic_target=${cpu_type}-${target_vendor}-${target_os}
12608 case ${generic_target} in
12609 i386-*-sco3.2v5*)
12610 if test ${this_target} = $target; then
12611
12612 $as_echo "#define SCO_ELF 1" >>confdefs.h
12613
12614 fi
12615 ;;
12616
12617 i386-*-msdosdjgpp* \
12618 | i386-*-go32* \
12619 | i386-go32-rtems*)
12620
12621 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12622
12623 ;;
12624
12625 i860-*-*)
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12627 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12628 ;;
12629
12630 microblaze*)
12631 ;;
12632
12633 mips-sony-bsd*)
12634 ;;
12635 mips-*-bsd*)
12636 as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5
12637 ;;
12638
12639 ppc-*-aix[5-9].*)
12640
12641 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12642
12643 ;;
12644 ppc-*-linux-*)
12645 case "$endian" in
12646 big) ;;
12647 *) as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;;
12648 esac
12649 ;;
12650 ppc-*-solaris*)
12651 if test ${this_target} = $target; then
12652
12653 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12654
12655 fi
12656 if test x${endian} = xbig; then
12657 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12658 fi
12659 ;;
12660
12661 sh*-*-symbianelf*)
12662
12663 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12664
12665 ;;
12666 esac
12667
12668 if test ${this_target} = $target ; then
12669 endian_def=
12670 if test x${endian} = xbig; then
12671 endian_def=1
12672 elif test x${endian} = xlittle; then
12673 endian_def=0
12674 fi
12675 if test x${endian_def} != x; then
12676
12677 cat >>confdefs.h <<_ACEOF
12678 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12679 _ACEOF
12680
12681 fi
12682 fi
12683
12684 # Other random stuff.
12685
12686 case ${cpu_type} in
12687 mips)
12688 # Set mips_cpu to the name of the default CPU.
12689 case ${target_cpu} in
12690 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12691 mips_cpu=from-abi
12692 ;;
12693 mipsisa32 | mipsisa32el)
12694 mips_cpu=mips32
12695 ;;
12696 mipsisa32r2 | mipsisa32r2el)
12697 mips_cpu=mips32r2
12698 ;;
12699 mipsisa64 | mipsisa64el)
12700 mips_cpu=mips64
12701 ;;
12702 mipsisa64r2 | mipsisa64r2el)
12703 mips_cpu=mips64r2
12704 ;;
12705 mipstx39 | mipstx39el)
12706 mips_cpu=r3900
12707 ;;
12708 mips64vr | mips64vrel)
12709 mips_cpu=vr4100
12710 ;;
12711 mipsisa32r2* | mipsisa64r2*)
12712 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12713 ;;
12714 mips64* | mipsisa64* | mipsisa32*)
12715 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12716 ;;
12717 *)
12718 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12719 ;;
12720 esac
12721 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12722 # binaries. It's a GNU extension that some OSes don't understand.
12723 # The value only matters on ELF targets.
12724 case ${target} in
12725 *-*-irix*)
12726 use_e_mips_abi_o32=0
12727 ;;
12728 *)
12729 use_e_mips_abi_o32=1
12730 ;;
12731 esac
12732 # Decide whether to generate 32-bit or 64-bit code by default.
12733 # Used to resolve -march=from-abi when an embedded ABI is selected.
12734 case ${target} in
12735 mips64*-*-* | mipsisa64*-*-*)
12736 mips_default_64bit=1
12737 ;;
12738 *)
12739 mips_default_64bit=0
12740 ;;
12741 esac
12742 # Decide which ABI to target by default.
12743 case ${target} in
12744 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12745 mips_default_abi=N32_ABI
12746 ;;
12747 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12748 mips_default_abi=O32_ABI
12749 ;;
12750 mips64*-openbsd*)
12751 mips_default_abi=N64_ABI
12752 ;;
12753 *)
12754 mips_default_abi=NO_ABI
12755 ;;
12756 esac
12757
12758 cat >>confdefs.h <<_ACEOF
12759 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12760 _ACEOF
12761
12762
12763 cat >>confdefs.h <<_ACEOF
12764 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12765 _ACEOF
12766
12767
12768 cat >>confdefs.h <<_ACEOF
12769 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12770 _ACEOF
12771
12772
12773 cat >>confdefs.h <<_ACEOF
12774 #define MIPS_DEFAULT_ABI $mips_default_abi
12775 _ACEOF
12776
12777 ;;
12778 esac
12779
12780 # Do we need the opcodes library?
12781 case ${cpu_type} in
12782 vax | tic30)
12783 ;;
12784
12785 *)
12786 need_opcodes=yes
12787
12788 case "${enable_shared}" in
12789 yes) shared_opcodes=true ;;
12790 *opcodes*) shared_opcodes=true ;;
12791 *) shared_opcodes=false ;;
12792 esac
12793 ;;
12794 esac
12795
12796 # Any other special object files needed ?
12797 case ${cpu_type} in
12798
12799 bfin)
12800 echo ${extra_objects} | grep -s "bfin-parse.o"
12801 if test $? -ne 0 ; then
12802 extra_objects="$extra_objects bfin-parse.o"
12803 fi
12804
12805 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12806 if test $? -ne 0 ; then
12807 extra_objects="$extra_objects bfin-lex-wrapper.o"
12808 fi
12809 ;;
12810
12811 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
12812 using_cgen=yes
12813 ;;
12814
12815 m32c)
12816 using_cgen=yes
12817 ;;
12818 frv)
12819 using_cgen=yes
12820 ;;
12821 m68k)
12822 case ${extra_objects} in
12823 *m68k-parse.o*) ;;
12824 *) extra_objects="$extra_objects m68k-parse.o" ;;
12825 esac
12826 ;;
12827
12828 mep)
12829 using_cgen=yes
12830 ;;
12831
12832 mips)
12833 echo ${extra_objects} | grep -s "itbl-parse.o"
12834 if test $? -ne 0 ; then
12835 extra_objects="$extra_objects itbl-parse.o"
12836 fi
12837
12838 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12839 if test $? -ne 0 ; then
12840 extra_objects="$extra_objects itbl-lex-wrapper.o"
12841 fi
12842
12843 echo ${extra_objects} | grep -s "itbl-ops.o"
12844 if test $? -ne 0 ; then
12845 extra_objects="$extra_objects itbl-ops.o"
12846 fi
12847 ;;
12848
12849 mt)
12850 using_cgen=yes
12851 ;;
12852
12853 i386 | s390 | sparc)
12854 if test $this_target = $target ; then
12855
12856 cat >>confdefs.h <<_ACEOF
12857 #define DEFAULT_ARCH "${arch}"
12858 _ACEOF
12859
12860 fi
12861 ;;
12862
12863 rl78)
12864 echo ${extra_objects} | grep -s "rl78-parse.o"
12865 if test $? -ne 0 ; then
12866 extra_objects="$extra_objects rl78-parse.o"
12867 fi
12868 ;;
12869
12870 rx)
12871 echo ${extra_objects} | grep -s "rx-parse.o"
12872 if test $? -ne 0 ; then
12873 extra_objects="$extra_objects rx-parse.o"
12874 fi
12875 ;;
12876
12877 xstormy16)
12878 using_cgen=yes
12879 ;;
12880
12881 xc16x)
12882 using_cgen=yes
12883 ;;
12884
12885 xtensa)
12886 echo ${extra_objects} | grep -s "xtensa-relax.o"
12887 if test $? -ne 0 ; then
12888 extra_objects="$extra_objects xtensa-relax.o"
12889 fi
12890 ;;
12891
12892 *)
12893 ;;
12894 esac
12895
12896 if test $using_cgen = yes ; then
12897 case "x${extra_objects}" in
12898 *cgen.o*) ;;
12899 *) extra_objects="$extra_objects cgen.o" ;;
12900 esac
12901 fi
12902
12903 # See if we really can support this configuration with the emulation code.
12904
12905 if test $this_target = $target ; then
12906 obj_format=$fmt
12907 te_file=$em
12908 fi
12909
12910 case ${te_file} in
12911 vms) extra_objects="$extra_objects te-vms.o" ;;
12912 esac
12913
12914 # From target name and format, produce a list of supported emulations.
12915
12916 case ${generic_target}-${fmt} in
12917 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12918 mips*-*-linux*-* | mips*-*-freebsd* | mips*-*-kfreebsd*-gnu)
12919 case "$endian" in
12920 big) emulation="mipsbelf mipslelf mipself" ;;
12921 *) emulation="mipslelf mipsbelf mipself" ;;
12922 esac ;;
12923 mips-*-lnews*-ecoff) ;;
12924 mips-*-*-ecoff) case "$endian" in
12925 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
12926 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
12927 esac ;;
12928 mips-*-*-elf) case "$endian" in
12929 big) emulation="mipsbelf mipslelf mipself" ;;
12930 *) emulation="mipslelf mipsbelf mipself" ;;
12931 esac ;;
12932 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12933 # i386-pc-pe-coff != i386-pc-coff.
12934 i386-*-pe-coff) ;;
12935 # Uncommenting the next line will turn on support for i386 AOUT
12936 # for the default linux configuration
12937 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12938 #
12939 i386-*-aout) emulation="i386aout" ;;
12940 i386-*-coff) emulation="i386coff" ;;
12941 i386-*-elf) emulation="i386elf" ;;
12942
12943 # Always all formats. The first stated emulation becomes the default.
12944 cris-*-*aout*) emulation="crisaout criself" ;;
12945 cris-*-*) emulation="criself crisaout" ;;
12946 esac
12947
12948 emulations="$emulations $emulation"
12949
12950 done
12951
12952 # Turn on all targets if possible
12953 if test ${all_targets} = "yes"; then
12954 case ${target_cpu_type} in
12955 i386)
12956 case ${obj_format} in
12957 aout)
12958 emulations="$emulations i386coff i386elf"
12959 ;;
12960 coff)
12961 emulations="$emulations i386aout i386elf"
12962 ;;
12963 elf)
12964 emulations="$emulations i386aout i386coff"
12965 ;;
12966 esac
12967 ;;
12968 x86_64)
12969 case ${obj_format} in
12970 aout)
12971 emulations="$emulations i386coff i386elf"
12972 ;;
12973 coff)
12974 emulations="$emulations i386aout i386elf"
12975 ;;
12976 elf)
12977 emulations="$emulations i386aout i386coff"
12978 ;;
12979 esac
12980 ;;
12981 esac
12982 fi
12983
12984 # PE code has way too many macros tweaking behaviour
12985 case ${te_file} in
12986 pe*) emulations="" ;;
12987 esac
12988
12989 # Assign floating point type. Most processors with FP support
12990 # IEEE FP. On those that don't support FP at all, usually IEEE
12991 # is emulated.
12992 case ${target_cpu} in
12993 vax | pdp11 ) atof=vax ;;
12994 *) atof=ieee ;;
12995 esac
12996
12997 case "${obj_format}" in
12998 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12999 esac
13000
13001 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
13002 cgen_cpu_prefix=""
13003 if test $using_cgen = yes ; then
13004 case ${target_cpu} in
13005 *) cgen_cpu_prefix=${target_cpu} ;;
13006 esac
13007
13008
13009 $as_echo "#define USING_CGEN 1" >>confdefs.h
13010
13011 fi
13012
13013
13014 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
13015 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13016 fi
13017
13018 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
13019 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13020 fi
13021
13022 # Some COFF configurations want these random other flags set.
13023 case ${obj_format} in
13024 coff)
13025 case ${target_cpu_type} in
13026 i386)
13027 $as_echo "#define I386COFF 1" >>confdefs.h
13028 ;;
13029 m68k)
13030 $as_echo "#define M68KCOFF 1" >>confdefs.h
13031 ;;
13032 m88k)
13033 $as_echo "#define M88KCOFF 1" >>confdefs.h
13034 ;;
13035 x86_64)
13036 $as_echo "#define I386COFF 1" >>confdefs.h
13037 ;;
13038 esac
13039 ;;
13040 esac
13041
13042 # Getting this done right is going to be a bitch. Each configuration specified
13043 # with --enable-targets=... should be checked for environment, format, cpu
13044 # setting.
13045 #
13046 # For each configuration, the necessary object file support code must be linked
13047 # in. This might be only one, it might be up to four. The necessary emulation
13048 # code needs to be provided, too.
13049 #
13050 # And then there's "--enable-targets=all"....
13051 #
13052 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
13053
13054 formats="${obj_format}"
13055 emfiles=""
13056 EMULATIONS=""
13057 _gas_uniq_list="$emulations"
13058 _gas_uniq_newlist=""
13059 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13060 case $_gas_uniq_i in
13061 _gas_uniq_dummy) ;;
13062 *) case " $_gas_uniq_newlist " in
13063 *" $_gas_uniq_i "*) ;;
13064 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13065 esac ;;
13066 esac
13067 done
13068 emulations=$_gas_uniq_newlist
13069
13070 for em in . $emulations ; do
13071 case $em in
13072 .) continue ;;
13073 mipsbelf | mipslelf | mipself)
13074 fmt=elf file=mipself ;;
13075 mipsbecoff | mipslecoff | mipsecoff)
13076 fmt=ecoff file=mipsecoff ;;
13077 *coff)
13078 fmt=coff file=$em ;;
13079 *aout)
13080 fmt=aout file=$em ;;
13081 *elf)
13082 fmt=elf file=$em ;;
13083 esac
13084 formats="$formats $fmt"
13085 emfiles="$emfiles e-$file.o"
13086 EMULATIONS="$EMULATIONS &$em,"
13087 done
13088 _gas_uniq_list="$formats"
13089 _gas_uniq_newlist=""
13090 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13091 case $_gas_uniq_i in
13092 _gas_uniq_dummy) ;;
13093 *) case " $_gas_uniq_newlist " in
13094 *" $_gas_uniq_i "*) ;;
13095 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13096 esac ;;
13097 esac
13098 done
13099 formats=$_gas_uniq_newlist
13100
13101 _gas_uniq_list="$emfiles"
13102 _gas_uniq_newlist=""
13103 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13104 case $_gas_uniq_i in
13105 _gas_uniq_dummy) ;;
13106 *) case " $_gas_uniq_newlist " in
13107 *" $_gas_uniq_i "*) ;;
13108 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13109 esac ;;
13110 esac
13111 done
13112 emfiles=$_gas_uniq_newlist
13113
13114 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
13115 for fmt in $formats ; do
13116 case $fmt in
13117 aout)
13118 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
13119 ;;
13120 bout)
13121 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
13122 ;;
13123 coff)
13124 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
13125 ;;
13126 ecoff)
13127 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
13128 ;;
13129 elf)
13130 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
13131 ;;
13132 generic)
13133 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
13134 ;;
13135 som)
13136 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
13137 ;;
13138 esac
13139 extra_objects="$extra_objects obj-$fmt.o"
13140 done
13141 obj_format=multi
13142 fi
13143 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
13144 DEFAULT_EMULATION=`set . $emulations ; echo $2`
13145 # e-mips* has more than one emulation per file, e-i386* has just one at the
13146 # moment. If only one emulation is specified, then don't define
13147 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
13148 case "${obj_format}${emfiles}" in
13149 multi* | *mips*)
13150 extra_objects="$extra_objects $emfiles"
13151
13152 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
13153 ;;
13154 esac
13155 fi
13156
13157
13158 cat >>confdefs.h <<_ACEOF
13159 #define EMULATIONS $EMULATIONS
13160 _ACEOF
13161
13162
13163 cat >>confdefs.h <<_ACEOF
13164 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
13165 _ACEOF
13166
13167
13168 reject_dev_configs=yes
13169
13170 case ${reject_dev_configs}-${dev} in
13171 yes-yes) # Oops.
13172 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
13173 ;;
13174 esac
13175
13176
13177
13178
13179
13180
13181
13182 # do we need the opcodes library?
13183 case "${need_opcodes}" in
13184 yes)
13185 OPCODES_LIB=../opcodes/libopcodes.la
13186 ;;
13187 esac
13188
13189
13190
13191
13192 cat >>confdefs.h <<_ACEOF
13193 #define TARGET_ALIAS "${target_alias}"
13194 _ACEOF
13195
13196
13197 cat >>confdefs.h <<_ACEOF
13198 #define TARGET_CANONICAL "${target}"
13199 _ACEOF
13200
13201
13202 cat >>confdefs.h <<_ACEOF
13203 #define TARGET_CPU "${target_cpu}"
13204 _ACEOF
13205
13206
13207 cat >>confdefs.h <<_ACEOF
13208 #define TARGET_VENDOR "${target_vendor}"
13209 _ACEOF
13210
13211
13212 cat >>confdefs.h <<_ACEOF
13213 #define TARGET_OS "${target_os}"
13214 _ACEOF
13215
13216
13217 for ac_prog in 'bison -y' byacc
13218 do
13219 # Extract the first word of "$ac_prog", so it can be a program name with args.
13220 set dummy $ac_prog; ac_word=$2
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222 $as_echo_n "checking for $ac_word... " >&6; }
13223 if test "${ac_cv_prog_YACC+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 if test -n "$YACC"; then
13227 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13228 else
13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13231 do
13232 IFS=$as_save_IFS
13233 test -z "$as_dir" && as_dir=.
13234 for ac_exec_ext in '' $ac_executable_extensions; do
13235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13236 ac_cv_prog_YACC="$ac_prog"
13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13238 break 2
13239 fi
13240 done
13241 done
13242 IFS=$as_save_IFS
13243
13244 fi
13245 fi
13246 YACC=$ac_cv_prog_YACC
13247 if test -n "$YACC"; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13249 $as_echo "$YACC" >&6; }
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252 $as_echo "no" >&6; }
13253 fi
13254
13255
13256 test -n "$YACC" && break
13257 done
13258 test -n "$YACC" || YACC="yacc"
13259
13260 for ac_prog in flex lex
13261 do
13262 # Extract the first word of "$ac_prog", so it can be a program name with args.
13263 set dummy $ac_prog; ac_word=$2
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265 $as_echo_n "checking for $ac_word... " >&6; }
13266 if test "${ac_cv_prog_LEX+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 if test -n "$LEX"; then
13270 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13271 else
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279 ac_cv_prog_LEX="$ac_prog"
13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281 break 2
13282 fi
13283 done
13284 done
13285 IFS=$as_save_IFS
13286
13287 fi
13288 fi
13289 LEX=$ac_cv_prog_LEX
13290 if test -n "$LEX"; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13292 $as_echo "$LEX" >&6; }
13293 else
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296 fi
13297
13298
13299 test -n "$LEX" && break
13300 done
13301 test -n "$LEX" || LEX=":"
13302
13303 if test "x$LEX" != "x:"; then
13304 cat >conftest.l <<_ACEOF
13305 %%
13306 a { ECHO; }
13307 b { REJECT; }
13308 c { yymore (); }
13309 d { yyless (1); }
13310 e { yyless (input () != 0); }
13311 f { unput (yytext[0]); }
13312 . { BEGIN INITIAL; }
13313 %%
13314 #ifdef YYTEXT_POINTER
13315 extern char *yytext;
13316 #endif
13317 int
13318 main (void)
13319 {
13320 return ! yylex () + ! yywrap ();
13321 }
13322 _ACEOF
13323 { { ac_try="$LEX conftest.l"
13324 case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327 esac
13328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13329 $as_echo "$ac_try_echo"; } >&5
13330 (eval "$LEX conftest.l") 2>&5
13331 ac_status=$?
13332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13333 test $ac_status = 0; }
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13335 $as_echo_n "checking lex output file root... " >&6; }
13336 if test "${ac_cv_prog_lex_root+set}" = set; then :
13337 $as_echo_n "(cached) " >&6
13338 else
13339
13340 if test -f lex.yy.c; then
13341 ac_cv_prog_lex_root=lex.yy
13342 elif test -f lexyy.c; then
13343 ac_cv_prog_lex_root=lexyy
13344 else
13345 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
13346 fi
13347 fi
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13349 $as_echo "$ac_cv_prog_lex_root" >&6; }
13350 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13351
13352 if test -z "${LEXLIB+set}"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13354 $as_echo_n "checking lex library... " >&6; }
13355 if test "${ac_cv_lib_lex+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358
13359 ac_save_LIBS=$LIBS
13360 ac_cv_lib_lex='none needed'
13361 for ac_lib in '' -lfl -ll; do
13362 LIBS="$ac_lib $ac_save_LIBS"
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365 `cat $LEX_OUTPUT_ROOT.c`
13366 _ACEOF
13367 if ac_fn_c_try_link "$LINENO"; then :
13368 ac_cv_lib_lex=$ac_lib
13369 fi
13370 rm -f core conftest.err conftest.$ac_objext \
13371 conftest$ac_exeext conftest.$ac_ext
13372 test "$ac_cv_lib_lex" != 'none needed' && break
13373 done
13374 LIBS=$ac_save_LIBS
13375
13376 fi
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13378 $as_echo "$ac_cv_lib_lex" >&6; }
13379 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13380 fi
13381
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13384 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13385 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 # POSIX says lex can declare yytext either as a pointer or an array; the
13389 # default is implementation-dependent. Figure out which it is, since
13390 # not all implementations provide the %pointer and %array declarations.
13391 ac_cv_prog_lex_yytext_pointer=no
13392 ac_save_LIBS=$LIBS
13393 LIBS="$LEXLIB $ac_save_LIBS"
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396 #define YYTEXT_POINTER 1
13397 `cat $LEX_OUTPUT_ROOT.c`
13398 _ACEOF
13399 if ac_fn_c_try_link "$LINENO"; then :
13400 ac_cv_prog_lex_yytext_pointer=yes
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext \
13403 conftest$ac_exeext conftest.$ac_ext
13404 LIBS=$ac_save_LIBS
13405
13406 fi
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13408 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13409 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13410
13411 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13412
13413 fi
13414 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13415
13416 fi
13417 if test "$LEX" = :; then
13418 LEX=${am_missing_run}flex
13419 fi
13420
13421 ALL_LINGUAS="fr tr es rw id ru fi ja"
13422 # If we haven't got the data from the intl directory,
13423 # assume NLS is disabled.
13424 USE_NLS=no
13425 LIBINTL=
13426 LIBINTL_DEP=
13427 INCINTL=
13428 XGETTEXT=
13429 GMSGFMT=
13430 POSUB=
13431
13432 if test -f ../intl/config.intl; then
13433 . ../intl/config.intl
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13436 $as_echo_n "checking whether NLS is requested... " >&6; }
13437 if test x"$USE_NLS" != xyes; then
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13439 $as_echo "no" >&6; }
13440 else
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13442 $as_echo "yes" >&6; }
13443
13444 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13445
13446
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13448 $as_echo_n "checking for catalogs to be installed... " >&6; }
13449 # Look for .po and .gmo files in the source directory.
13450 CATALOGS=
13451 XLINGUAS=
13452 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13453 # If there aren't any .gmo files the shell will give us the
13454 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13455 # weeded out.
13456 case "$cat" in *\**)
13457 continue;;
13458 esac
13459 # The quadruple backslash is collapsed to a double backslash
13460 # by the backticks, then collapsed again by the double quotes,
13461 # leaving us with one backslash in the sed expression (right
13462 # before the dot that mustn't act as a wildcard).
13463 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13464 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13465 # The user is allowed to set LINGUAS to a list of languages to
13466 # install catalogs for. If it's empty that means "all of them."
13467 if test "x$LINGUAS" = x; then
13468 CATALOGS="$CATALOGS $cat"
13469 XLINGUAS="$XLINGUAS $lang"
13470 else
13471 case "$LINGUAS" in *$lang*)
13472 CATALOGS="$CATALOGS $cat"
13473 XLINGUAS="$XLINGUAS $lang"
13474 ;;
13475 esac
13476 fi
13477 done
13478 LINGUAS="$XLINGUAS"
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13480 $as_echo "$LINGUAS" >&6; }
13481
13482
13483 DATADIRNAME=share
13484
13485 INSTOBJEXT=.mo
13486
13487 GENCAT=gencat
13488
13489 CATOBJEXT=.gmo
13490
13491 fi
13492
13493 MKINSTALLDIRS=
13494 if test -n "$ac_aux_dir"; then
13495 case "$ac_aux_dir" in
13496 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13497 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13498 esac
13499 fi
13500 if test -z "$MKINSTALLDIRS"; then
13501 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13502 fi
13503
13504
13505
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13507 $as_echo_n "checking whether NLS is requested... " >&6; }
13508 # Check whether --enable-nls was given.
13509 if test "${enable_nls+set}" = set; then :
13510 enableval=$enable_nls; USE_NLS=$enableval
13511 else
13512 USE_NLS=yes
13513 fi
13514
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13516 $as_echo "$USE_NLS" >&6; }
13517
13518
13519
13520
13521
13522
13523 # Prepare PATH_SEPARATOR.
13524 # The user is always right.
13525 if test "${PATH_SEPARATOR+set}" != set; then
13526 echo "#! /bin/sh" >conf$$.sh
13527 echo "exit 0" >>conf$$.sh
13528 chmod +x conf$$.sh
13529 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13530 PATH_SEPARATOR=';'
13531 else
13532 PATH_SEPARATOR=:
13533 fi
13534 rm -f conf$$.sh
13535 fi
13536
13537 # Find out how to test for executable files. Don't use a zero-byte file,
13538 # as systems may use methods other than mode bits to determine executability.
13539 cat >conf$$.file <<_ASEOF
13540 #! /bin/sh
13541 exit 0
13542 _ASEOF
13543 chmod +x conf$$.file
13544 if test -x conf$$.file >/dev/null 2>&1; then
13545 ac_executable_p="test -x"
13546 else
13547 ac_executable_p="test -f"
13548 fi
13549 rm -f conf$$.file
13550
13551 # Extract the first word of "msgfmt", so it can be a program name with args.
13552 set dummy msgfmt; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13556 $as_echo_n "(cached) " >&6
13557 else
13558 case "$MSGFMT" in
13559 [\\/]* | ?:[\\/]*)
13560 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13561 ;;
13562 *)
13563 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13564 for ac_dir in $PATH; do
13565 IFS="$ac_save_IFS"
13566 test -z "$ac_dir" && ac_dir=.
13567 for ac_exec_ext in '' $ac_executable_extensions; do
13568 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13569 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13570 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13571 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13572 break 2
13573 fi
13574 fi
13575 done
13576 done
13577 IFS="$ac_save_IFS"
13578 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13579 ;;
13580 esac
13581 fi
13582 MSGFMT="$ac_cv_path_MSGFMT"
13583 if test "$MSGFMT" != ":"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13585 $as_echo "$MSGFMT" >&6; }
13586 else
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588 $as_echo "no" >&6; }
13589 fi
13590
13591 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13592 set dummy gmsgfmt; ac_word=$2
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594 $as_echo_n "checking for $ac_word... " >&6; }
13595 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13596 $as_echo_n "(cached) " >&6
13597 else
13598 case $GMSGFMT in
13599 [\\/]* | ?:[\\/]*)
13600 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13601 ;;
13602 *)
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604 for as_dir in $PATH
13605 do
13606 IFS=$as_save_IFS
13607 test -z "$as_dir" && as_dir=.
13608 for ac_exec_ext in '' $ac_executable_extensions; do
13609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13610 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13612 break 2
13613 fi
13614 done
13615 done
13616 IFS=$as_save_IFS
13617
13618 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13619 ;;
13620 esac
13621 fi
13622 GMSGFMT=$ac_cv_path_GMSGFMT
13623 if test -n "$GMSGFMT"; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13625 $as_echo "$GMSGFMT" >&6; }
13626 else
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13628 $as_echo "no" >&6; }
13629 fi
13630
13631
13632
13633
13634 # Prepare PATH_SEPARATOR.
13635 # The user is always right.
13636 if test "${PATH_SEPARATOR+set}" != set; then
13637 echo "#! /bin/sh" >conf$$.sh
13638 echo "exit 0" >>conf$$.sh
13639 chmod +x conf$$.sh
13640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13641 PATH_SEPARATOR=';'
13642 else
13643 PATH_SEPARATOR=:
13644 fi
13645 rm -f conf$$.sh
13646 fi
13647
13648 # Find out how to test for executable files. Don't use a zero-byte file,
13649 # as systems may use methods other than mode bits to determine executability.
13650 cat >conf$$.file <<_ASEOF
13651 #! /bin/sh
13652 exit 0
13653 _ASEOF
13654 chmod +x conf$$.file
13655 if test -x conf$$.file >/dev/null 2>&1; then
13656 ac_executable_p="test -x"
13657 else
13658 ac_executable_p="test -f"
13659 fi
13660 rm -f conf$$.file
13661
13662 # Extract the first word of "xgettext", so it can be a program name with args.
13663 set dummy xgettext; ac_word=$2
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665 $as_echo_n "checking for $ac_word... " >&6; }
13666 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 case "$XGETTEXT" in
13670 [\\/]* | ?:[\\/]*)
13671 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13672 ;;
13673 *)
13674 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13675 for ac_dir in $PATH; do
13676 IFS="$ac_save_IFS"
13677 test -z "$ac_dir" && ac_dir=.
13678 for ac_exec_ext in '' $ac_executable_extensions; do
13679 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13680 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13681 (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
13682 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13683 break 2
13684 fi
13685 fi
13686 done
13687 done
13688 IFS="$ac_save_IFS"
13689 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13690 ;;
13691 esac
13692 fi
13693 XGETTEXT="$ac_cv_path_XGETTEXT"
13694 if test "$XGETTEXT" != ":"; then
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13696 $as_echo "$XGETTEXT" >&6; }
13697 else
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699 $as_echo "no" >&6; }
13700 fi
13701
13702 rm -f messages.po
13703
13704
13705 # Prepare PATH_SEPARATOR.
13706 # The user is always right.
13707 if test "${PATH_SEPARATOR+set}" != set; then
13708 echo "#! /bin/sh" >conf$$.sh
13709 echo "exit 0" >>conf$$.sh
13710 chmod +x conf$$.sh
13711 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13712 PATH_SEPARATOR=';'
13713 else
13714 PATH_SEPARATOR=:
13715 fi
13716 rm -f conf$$.sh
13717 fi
13718
13719 # Find out how to test for executable files. Don't use a zero-byte file,
13720 # as systems may use methods other than mode bits to determine executability.
13721 cat >conf$$.file <<_ASEOF
13722 #! /bin/sh
13723 exit 0
13724 _ASEOF
13725 chmod +x conf$$.file
13726 if test -x conf$$.file >/dev/null 2>&1; then
13727 ac_executable_p="test -x"
13728 else
13729 ac_executable_p="test -f"
13730 fi
13731 rm -f conf$$.file
13732
13733 # Extract the first word of "msgmerge", so it can be a program name with args.
13734 set dummy msgmerge; ac_word=$2
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736 $as_echo_n "checking for $ac_word... " >&6; }
13737 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 case "$MSGMERGE" in
13741 [\\/]* | ?:[\\/]*)
13742 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13743 ;;
13744 *)
13745 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13746 for ac_dir in $PATH; do
13747 IFS="$ac_save_IFS"
13748 test -z "$ac_dir" && ac_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13751 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13752 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13753 break 2
13754 fi
13755 fi
13756 done
13757 done
13758 IFS="$ac_save_IFS"
13759 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13760 ;;
13761 esac
13762 fi
13763 MSGMERGE="$ac_cv_path_MSGMERGE"
13764 if test "$MSGMERGE" != ":"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13766 $as_echo "$MSGMERGE" >&6; }
13767 else
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13769 $as_echo "no" >&6; }
13770 fi
13771
13772
13773 if test "$GMSGFMT" != ":"; then
13774 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13775 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13776 : ;
13777 else
13778 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13780 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13781 GMSGFMT=":"
13782 fi
13783 fi
13784
13785 if test "$XGETTEXT" != ":"; then
13786 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13787 (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
13788 : ;
13789 else
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13791 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13792 XGETTEXT=":"
13793 fi
13794 rm -f messages.po
13795 fi
13796
13797 ac_config_commands="$ac_config_commands default-1"
13798
13799
13800
13801
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13803 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13804 # Check whether --enable-maintainer-mode was given.
13805 if test "${enable_maintainer_mode+set}" = set; then :
13806 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13807 else
13808 USE_MAINTAINER_MODE=no
13809 fi
13810
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13812 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13813 if test $USE_MAINTAINER_MODE = yes; then
13814 MAINTAINER_MODE_TRUE=
13815 MAINTAINER_MODE_FALSE='#'
13816 else
13817 MAINTAINER_MODE_TRUE='#'
13818 MAINTAINER_MODE_FALSE=
13819 fi
13820
13821 MAINT=$MAINTAINER_MODE_TRUE
13822
13823
13824 if false; then
13825 GENINSRC_NEVER_TRUE=
13826 GENINSRC_NEVER_FALSE='#'
13827 else
13828 GENINSRC_NEVER_TRUE='#'
13829 GENINSRC_NEVER_FALSE=
13830 fi
13831
13832
13833
13834 for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
13835 do :
13836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13837 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13838 eval as_val=\$$as_ac_Header
13839 if test "x$as_val" = x""yes; then :
13840 cat >>confdefs.h <<_ACEOF
13841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13842 _ACEOF
13843
13844 fi
13845
13846 done
13847
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13849 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13850 if test "${gcc_cv_header_string+set}" = set; then :
13851 $as_echo_n "(cached) " >&6
13852 else
13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13854 /* end confdefs.h. */
13855 #include <string.h>
13856 #include <strings.h>
13857 int
13858 main ()
13859 {
13860
13861 ;
13862 return 0;
13863 }
13864 _ACEOF
13865 if ac_fn_c_try_compile "$LINENO"; then :
13866 gcc_cv_header_string=yes
13867 else
13868 gcc_cv_header_string=no
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871 fi
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13873 $as_echo "$gcc_cv_header_string" >&6; }
13874 if test $gcc_cv_header_string = yes; then
13875
13876 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13877
13878 fi
13879
13880
13881 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13882 # people who are not cross-compiling but are compiling cross-assemblers.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13884 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13885 if test "${host}" = "${target}"; then
13886 cross_gas=no
13887 else
13888 cross_gas=yes
13889
13890 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13891
13892 fi
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13894 $as_echo "$cross_gas" >&6; }
13895
13896 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13897 # for constant arguments. Useless!
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13899 $as_echo_n "checking for working alloca.h... " >&6; }
13900 if test "${ac_cv_working_alloca_h+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905 #include <alloca.h>
13906 int
13907 main ()
13908 {
13909 char *p = (char *) alloca (2 * sizeof (int));
13910 if (p) return 0;
13911 ;
13912 return 0;
13913 }
13914 _ACEOF
13915 if ac_fn_c_try_link "$LINENO"; then :
13916 ac_cv_working_alloca_h=yes
13917 else
13918 ac_cv_working_alloca_h=no
13919 fi
13920 rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
13922 fi
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13924 $as_echo "$ac_cv_working_alloca_h" >&6; }
13925 if test $ac_cv_working_alloca_h = yes; then
13926
13927 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13928
13929 fi
13930
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13932 $as_echo_n "checking for alloca... " >&6; }
13933 if test "${ac_cv_func_alloca_works+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
13935 else
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 #ifdef __GNUC__
13939 # define alloca __builtin_alloca
13940 #else
13941 # ifdef _MSC_VER
13942 # include <malloc.h>
13943 # define alloca _alloca
13944 # else
13945 # ifdef HAVE_ALLOCA_H
13946 # include <alloca.h>
13947 # else
13948 # ifdef _AIX
13949 #pragma alloca
13950 # else
13951 # ifndef alloca /* predefined by HP cc +Olibcalls */
13952 char *alloca ();
13953 # endif
13954 # endif
13955 # endif
13956 # endif
13957 #endif
13958
13959 int
13960 main ()
13961 {
13962 char *p = (char *) alloca (1);
13963 if (p) return 0;
13964 ;
13965 return 0;
13966 }
13967 _ACEOF
13968 if ac_fn_c_try_link "$LINENO"; then :
13969 ac_cv_func_alloca_works=yes
13970 else
13971 ac_cv_func_alloca_works=no
13972 fi
13973 rm -f core conftest.err conftest.$ac_objext \
13974 conftest$ac_exeext conftest.$ac_ext
13975 fi
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13977 $as_echo "$ac_cv_func_alloca_works" >&6; }
13978
13979 if test $ac_cv_func_alloca_works = yes; then
13980
13981 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13982
13983 else
13984 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13985 # that cause trouble. Some versions do not even contain alloca or
13986 # contain a buggy version. If you still want to use their alloca,
13987 # use ar to extract alloca.o from them instead of compiling alloca.c.
13988
13989 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13990
13991 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13992
13993
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13995 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13996 if test "${ac_cv_os_cray+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001 #if defined CRAY && ! defined CRAY2
14002 webecray
14003 #else
14004 wenotbecray
14005 #endif
14006
14007 _ACEOF
14008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14009 $EGREP "webecray" >/dev/null 2>&1; then :
14010 ac_cv_os_cray=yes
14011 else
14012 ac_cv_os_cray=no
14013 fi
14014 rm -f conftest*
14015
14016 fi
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14018 $as_echo "$ac_cv_os_cray" >&6; }
14019 if test $ac_cv_os_cray = yes; then
14020 for ac_func in _getb67 GETB67 getb67; do
14021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14023 eval as_val=\$$as_ac_var
14024 if test "x$as_val" = x""yes; then :
14025
14026 cat >>confdefs.h <<_ACEOF
14027 #define CRAY_STACKSEG_END $ac_func
14028 _ACEOF
14029
14030 break
14031 fi
14032
14033 done
14034 fi
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14037 $as_echo_n "checking stack direction for C alloca... " >&6; }
14038 if test "${ac_cv_c_stack_direction+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 if test "$cross_compiling" = yes; then :
14042 ac_cv_c_stack_direction=0
14043 else
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046 $ac_includes_default
14047 int
14048 find_stack_direction ()
14049 {
14050 static char *addr = 0;
14051 auto char dummy;
14052 if (addr == 0)
14053 {
14054 addr = &dummy;
14055 return find_stack_direction ();
14056 }
14057 else
14058 return (&dummy > addr) ? 1 : -1;
14059 }
14060
14061 int
14062 main ()
14063 {
14064 return find_stack_direction () < 0;
14065 }
14066 _ACEOF
14067 if ac_fn_c_try_run "$LINENO"; then :
14068 ac_cv_c_stack_direction=1
14069 else
14070 ac_cv_c_stack_direction=-1
14071 fi
14072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14073 conftest.$ac_objext conftest.beam conftest.$ac_ext
14074 fi
14075
14076 fi
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14078 $as_echo "$ac_cv_c_stack_direction" >&6; }
14079 cat >>confdefs.h <<_ACEOF
14080 #define STACK_DIRECTION $ac_cv_c_stack_direction
14081 _ACEOF
14082
14083
14084 fi
14085
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14087 $as_echo_n "checking for inline... " >&6; }
14088 if test "${ac_cv_c_inline+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14090 else
14091 ac_cv_c_inline=no
14092 for ac_kw in inline __inline__ __inline; do
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095 #ifndef __cplusplus
14096 typedef int foo_t;
14097 static $ac_kw foo_t static_foo () {return 0; }
14098 $ac_kw foo_t foo () {return 0; }
14099 #endif
14100
14101 _ACEOF
14102 if ac_fn_c_try_compile "$LINENO"; then :
14103 ac_cv_c_inline=$ac_kw
14104 fi
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106 test "$ac_cv_c_inline" != no && break
14107 done
14108
14109 fi
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14111 $as_echo "$ac_cv_c_inline" >&6; }
14112
14113 case $ac_cv_c_inline in
14114 inline | yes) ;;
14115 *)
14116 case $ac_cv_c_inline in
14117 no) ac_val=;;
14118 *) ac_val=$ac_cv_c_inline;;
14119 esac
14120 cat >>confdefs.h <<_ACEOF
14121 #ifndef __cplusplus
14122 #define inline $ac_val
14123 #endif
14124 _ACEOF
14125 ;;
14126 esac
14127
14128
14129 # VMS doesn't have unlink.
14130 for ac_func in unlink remove
14131 do :
14132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14133 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14134 eval as_val=\$$as_ac_var
14135 if test "x$as_val" = x""yes; then :
14136 cat >>confdefs.h <<_ACEOF
14137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14138 _ACEOF
14139 break
14140 fi
14141 done
14142
14143
14144 # Some systems don't have sbrk().
14145 for ac_func in sbrk
14146 do :
14147 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
14148 if test "x$ac_cv_func_sbrk" = x""yes; then :
14149 cat >>confdefs.h <<_ACEOF
14150 #define HAVE_SBRK 1
14151 _ACEOF
14152
14153 fi
14154 done
14155
14156
14157 for ac_func in setlocale
14158 do :
14159 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
14160 if test "x$ac_cv_func_setlocale" = x""yes; then :
14161 cat >>confdefs.h <<_ACEOF
14162 #define HAVE_SETLOCALE 1
14163 _ACEOF
14164
14165 fi
14166 done
14167
14168
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14170 $as_echo_n "checking for LC_MESSAGES... " >&6; }
14171 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176 #include <locale.h>
14177 int
14178 main ()
14179 {
14180 return LC_MESSAGES
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 if ac_fn_c_try_link "$LINENO"; then :
14186 am_cv_val_LC_MESSAGES=yes
14187 else
14188 am_cv_val_LC_MESSAGES=no
14189 fi
14190 rm -f core conftest.err conftest.$ac_objext \
14191 conftest$ac_exeext conftest.$ac_ext
14192 fi
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14194 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14195 if test $am_cv_val_LC_MESSAGES = yes; then
14196
14197 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14198
14199 fi
14200
14201
14202 # do we need the math library?
14203 case "${need_libm}" in
14204 yes)
14205 LIBM=
14206 case $host in
14207 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14208 # These system don't have libm, or don't need it
14209 ;;
14210 *-ncr-sysv4.3*)
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14212 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14213 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14214 $as_echo_n "(cached) " >&6
14215 else
14216 ac_check_lib_save_LIBS=$LIBS
14217 LIBS="-lmw $LIBS"
14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14220
14221 /* Override any GCC internal prototype to avoid an error.
14222 Use char because int might match the return type of a GCC
14223 builtin and then its argument prototype would still apply. */
14224 #ifdef __cplusplus
14225 extern "C"
14226 #endif
14227 char _mwvalidcheckl ();
14228 int
14229 main ()
14230 {
14231 return _mwvalidcheckl ();
14232 ;
14233 return 0;
14234 }
14235 _ACEOF
14236 if ac_fn_c_try_link "$LINENO"; then :
14237 ac_cv_lib_mw__mwvalidcheckl=yes
14238 else
14239 ac_cv_lib_mw__mwvalidcheckl=no
14240 fi
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext conftest.$ac_ext
14243 LIBS=$ac_check_lib_save_LIBS
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14246 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14247 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14248 LIBM="-lmw"
14249 fi
14250
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14252 $as_echo_n "checking for cos in -lm... " >&6; }
14253 if test "${ac_cv_lib_m_cos+set}" = set; then :
14254 $as_echo_n "(cached) " >&6
14255 else
14256 ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-lm $LIBS"
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260
14261 /* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14264 #ifdef __cplusplus
14265 extern "C"
14266 #endif
14267 char cos ();
14268 int
14269 main ()
14270 {
14271 return cos ();
14272 ;
14273 return 0;
14274 }
14275 _ACEOF
14276 if ac_fn_c_try_link "$LINENO"; then :
14277 ac_cv_lib_m_cos=yes
14278 else
14279 ac_cv_lib_m_cos=no
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14283 LIBS=$ac_check_lib_save_LIBS
14284 fi
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14286 $as_echo "$ac_cv_lib_m_cos" >&6; }
14287 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14288 LIBM="$LIBM -lm"
14289 fi
14290
14291 ;;
14292 *)
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14294 $as_echo_n "checking for cos in -lm... " >&6; }
14295 if test "${ac_cv_lib_m_cos+set}" = set; then :
14296 $as_echo_n "(cached) " >&6
14297 else
14298 ac_check_lib_save_LIBS=$LIBS
14299 LIBS="-lm $LIBS"
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14302
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14306 #ifdef __cplusplus
14307 extern "C"
14308 #endif
14309 char cos ();
14310 int
14311 main ()
14312 {
14313 return cos ();
14314 ;
14315 return 0;
14316 }
14317 _ACEOF
14318 if ac_fn_c_try_link "$LINENO"; then :
14319 ac_cv_lib_m_cos=yes
14320 else
14321 ac_cv_lib_m_cos=no
14322 fi
14323 rm -f core conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
14325 LIBS=$ac_check_lib_save_LIBS
14326 fi
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14328 $as_echo "$ac_cv_lib_m_cos" >&6; }
14329 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14330 LIBM="-lm"
14331 fi
14332
14333 ;;
14334 esac
14335
14336
14337
14338 ;;
14339 esac
14340
14341 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
14342 # enough, but on some of those systems, the assert macro relies on requoting
14343 # working properly!
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
14345 $as_echo_n "checking for working assert macro... " >&6; }
14346 if test "${gas_cv_assert_ok+set}" = set; then :
14347 $as_echo_n "(cached) " >&6
14348 else
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14351 #include <assert.h>
14352 #include <stdio.h>
14353 int
14354 main ()
14355 {
14356
14357 /* check for requoting problems */
14358 static int a, b, c, d;
14359 static char *s;
14360 assert (!strcmp(s, "foo bar baz quux"));
14361 /* check for newline handling */
14362 assert (a == b
14363 || c == d);
14364
14365 ;
14366 return 0;
14367 }
14368 _ACEOF
14369 if ac_fn_c_try_link "$LINENO"; then :
14370 gas_cv_assert_ok=yes
14371 else
14372 gas_cv_assert_ok=no
14373 fi
14374 rm -f core conftest.err conftest.$ac_objext \
14375 conftest$ac_exeext conftest.$ac_ext
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14378 $as_echo "$gas_cv_assert_ok" >&6; }
14379 test $gas_cv_assert_ok = yes ||
14380 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
14381
14382
14383
14384 # On some systems, the system header files may not declare malloc, realloc,
14385 # and free. There are places where gas needs these functions to have been
14386 # declared -- such as when taking their addresses.
14387 gas_test_headers="
14388 #ifdef HAVE_MEMORY_H
14389 #include <memory.h>
14390 #endif
14391 #ifdef HAVE_STRING_H
14392 #include <string.h>
14393 #else
14394 #ifdef HAVE_STRINGS_H
14395 #include <strings.h>
14396 #endif
14397 #endif
14398 #ifdef HAVE_STDLIB_H
14399 #include <stdlib.h>
14400 #endif
14401 #ifdef HAVE_UNISTD_H
14402 #include <unistd.h>
14403 #endif
14404 "
14405
14406 # Does errno.h declare errno, or do we have to add a separate declaration
14407 # for it?
14408
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14410 $as_echo_n "checking whether declaration is required for errno... " >&6; }
14411 if test "${gas_cv_decl_needed_errno+set}" = set; then :
14412 $as_echo_n "(cached) " >&6
14413 else
14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14415 /* end confdefs.h. */
14416
14417 #ifdef HAVE_ERRNO_H
14418 #include <errno.h>
14419 #endif
14420
14421 int
14422 main ()
14423 {
14424
14425 typedef int f;
14426 f x;
14427 x = (f) errno;
14428
14429 ;
14430 return 0;
14431 }
14432 _ACEOF
14433 if ac_fn_c_try_link "$LINENO"; then :
14434 gas_cv_decl_needed_errno=no
14435 else
14436 gas_cv_decl_needed_errno=yes
14437 fi
14438 rm -f core conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14440 fi
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14442 $as_echo "$gas_cv_decl_needed_errno" >&6; }
14443 if test $gas_cv_decl_needed_errno = yes; then
14444
14445 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
14446
14447 fi
14448
14449
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14451 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14452 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457 #include <unistd.h>
14458 int
14459 main ()
14460 {
14461 extern int getopt (int, char *const*, const char *);
14462 ;
14463 return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_c_try_compile "$LINENO"; then :
14467 gas_cv_decl_getopt_unistd_h=yes
14468 else
14469 gas_cv_decl_getopt_unistd_h=no
14470 fi
14471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14472 fi
14473
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14475 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14476 if test $gas_cv_decl_getopt_unistd_h = yes; then
14477
14478 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14479
14480 fi
14481
14482
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14484 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14485 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14486 $as_echo_n "(cached) " >&6
14487 else
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14490 $gas_test_headers
14491 int
14492 main ()
14493 {
14494
14495 typedef char **f;
14496 f x;
14497 x = (f) environ;
14498
14499 ;
14500 return 0;
14501 }
14502 _ACEOF
14503 if ac_fn_c_try_link "$LINENO"; then :
14504 gas_cv_decl_needed_environ=no
14505 else
14506 gas_cv_decl_needed_environ=yes
14507 fi
14508 rm -f core conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14512 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14513 if test $gas_cv_decl_needed_environ = yes; then
14514
14515 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14516
14517 fi
14518
14519
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14521 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14522 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14523 $as_echo_n "(cached) " >&6
14524 else
14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14527 $gas_test_headers
14528 int
14529 main ()
14530 {
14531
14532 typedef int (*f)(int);
14533 f x;
14534 x = (f) ffs;
14535
14536 ;
14537 return 0;
14538 }
14539 _ACEOF
14540 if ac_fn_c_try_link "$LINENO"; then :
14541 gas_cv_decl_needed_ffs=no
14542 else
14543 gas_cv_decl_needed_ffs=yes
14544 fi
14545 rm -f core conftest.err conftest.$ac_objext \
14546 conftest$ac_exeext conftest.$ac_ext
14547 fi
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14549 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14550 if test $gas_cv_decl_needed_ffs = yes; then
14551
14552 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14553
14554 fi
14555
14556
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14558 $as_echo_n "checking whether declaration is required for free... " >&6; }
14559 if test "${gas_cv_decl_needed_free+set}" = set; then :
14560 $as_echo_n "(cached) " >&6
14561 else
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14564 $gas_test_headers
14565 int
14566 main ()
14567 {
14568
14569 typedef void (*f)();
14570 f x;
14571 x = (f) free;
14572
14573 ;
14574 return 0;
14575 }
14576 _ACEOF
14577 if ac_fn_c_try_link "$LINENO"; then :
14578 gas_cv_decl_needed_free=no
14579 else
14580 gas_cv_decl_needed_free=yes
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext \
14583 conftest$ac_exeext conftest.$ac_ext
14584 fi
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14586 $as_echo "$gas_cv_decl_needed_free" >&6; }
14587 if test $gas_cv_decl_needed_free = yes; then
14588
14589 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14590
14591 fi
14592
14593
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14595 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14596 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601 $gas_test_headers
14602 int
14603 main ()
14604 {
14605
14606 typedef char *(*f)();
14607 f x;
14608 x = (f) malloc;
14609
14610 ;
14611 return 0;
14612 }
14613 _ACEOF
14614 if ac_fn_c_try_link "$LINENO"; then :
14615 gas_cv_decl_needed_malloc=no
14616 else
14617 gas_cv_decl_needed_malloc=yes
14618 fi
14619 rm -f core conftest.err conftest.$ac_objext \
14620 conftest$ac_exeext conftest.$ac_ext
14621 fi
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14623 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14624 if test $gas_cv_decl_needed_malloc = yes; then
14625
14626 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14627
14628 fi
14629
14630
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14632 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14633 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14634 $as_echo_n "(cached) " >&6
14635 else
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14638 $gas_test_headers
14639 int
14640 main ()
14641 {
14642
14643 typedef char *(*f)();
14644 f x;
14645 x = (f) sbrk;
14646
14647 ;
14648 return 0;
14649 }
14650 _ACEOF
14651 if ac_fn_c_try_link "$LINENO"; then :
14652 gas_cv_decl_needed_sbrk=no
14653 else
14654 gas_cv_decl_needed_sbrk=yes
14655 fi
14656 rm -f core conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext conftest.$ac_ext
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14660 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14661 if test $gas_cv_decl_needed_sbrk = yes; then
14662
14663 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14664
14665 fi
14666
14667
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14669 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14670 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 $gas_test_headers
14676 int
14677 main ()
14678 {
14679
14680 typedef char *(*f)();
14681 f x;
14682 x = (f) strstr;
14683
14684 ;
14685 return 0;
14686 }
14687 _ACEOF
14688 if ac_fn_c_try_link "$LINENO"; then :
14689 gas_cv_decl_needed_strstr=no
14690 else
14691 gas_cv_decl_needed_strstr=yes
14692 fi
14693 rm -f core conftest.err conftest.$ac_objext \
14694 conftest$ac_exeext conftest.$ac_ext
14695 fi
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14697 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14698 if test $gas_cv_decl_needed_strstr = yes; then
14699
14700 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14701
14702 fi
14703
14704
14705 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14706 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14707 ac_have_decl=1
14708 else
14709 ac_have_decl=0
14710 fi
14711
14712 cat >>confdefs.h <<_ACEOF
14713 #define HAVE_DECL_MEMPCPY $ac_have_decl
14714 _ACEOF
14715
14716 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14717 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14718 ac_have_decl=1
14719 else
14720 ac_have_decl=0
14721 fi
14722
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14725 _ACEOF
14726
14727
14728
14729 case "${host}" in
14730 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14731
14732 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14733 ;;
14734 esac
14735
14736 # Link in zlib if we can. This allows us to write compressed debug sections.
14737
14738 # See if the user specified whether he wants zlib support or not.
14739
14740 # Check whether --with-zlib was given.
14741 if test "${with_zlib+set}" = set; then :
14742 withval=$with_zlib;
14743 else
14744 with_zlib=auto
14745 fi
14746
14747
14748 if test "$with_zlib" != "no"; then
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
14750 $as_echo_n "checking for library containing zlibVersion... " >&6; }
14751 if test "${ac_cv_search_zlibVersion+set}" = set; then :
14752 $as_echo_n "(cached) " >&6
14753 else
14754 ac_func_search_save_LIBS=$LIBS
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757
14758 /* Override any GCC internal prototype to avoid an error.
14759 Use char because int might match the return type of a GCC
14760 builtin and then its argument prototype would still apply. */
14761 #ifdef __cplusplus
14762 extern "C"
14763 #endif
14764 char zlibVersion ();
14765 int
14766 main ()
14767 {
14768 return zlibVersion ();
14769 ;
14770 return 0;
14771 }
14772 _ACEOF
14773 for ac_lib in '' z; do
14774 if test -z "$ac_lib"; then
14775 ac_res="none required"
14776 else
14777 ac_res=-l$ac_lib
14778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14779 fi
14780 if ac_fn_c_try_link "$LINENO"; then :
14781 ac_cv_search_zlibVersion=$ac_res
14782 fi
14783 rm -f core conftest.err conftest.$ac_objext \
14784 conftest$ac_exeext
14785 if test "${ac_cv_search_zlibVersion+set}" = set; then :
14786 break
14787 fi
14788 done
14789 if test "${ac_cv_search_zlibVersion+set}" = set; then :
14790
14791 else
14792 ac_cv_search_zlibVersion=no
14793 fi
14794 rm conftest.$ac_ext
14795 LIBS=$ac_func_search_save_LIBS
14796 fi
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
14798 $as_echo "$ac_cv_search_zlibVersion" >&6; }
14799 ac_res=$ac_cv_search_zlibVersion
14800 if test "$ac_res" != no; then :
14801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14802 for ac_header in zlib.h
14803 do :
14804 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14805 if test "x$ac_cv_header_zlib_h" = x""yes; then :
14806 cat >>confdefs.h <<_ACEOF
14807 #define HAVE_ZLIB_H 1
14808 _ACEOF
14809
14810 fi
14811
14812 done
14813
14814 fi
14815
14816 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
14817 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
14818 fi
14819 fi
14820
14821
14822 # Support for VMS timestamps via cross compile
14823
14824 if test "$ac_cv_header_time_h" = yes; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14826 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14827 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14828 $as_echo_n "(cached) " >&6
14829 else
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832
14833 #define _BSD_SOURCE 1
14834 #include <time.h>
14835 int
14836 main ()
14837 {
14838 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14839 ;
14840 return 0;
14841 }
14842 _ACEOF
14843 if ac_fn_c_try_compile "$LINENO"; then :
14844 gas_cv_have_time_type_member_tm_gmtoff=yes
14845 else
14846 gas_cv_have_time_type_member_tm_gmtoff=no
14847
14848 fi
14849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14850 fi
14851
14852 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14853
14854 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14855
14856 fi
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14858 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14859
14860 fi
14861
14862 if test "$ac_cv_header_sys_stat_h" = yes; then
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14864 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14865 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14870
14871 #define _BSD_SOURCE 1
14872 #include <sys/stat.h>
14873 int
14874 main ()
14875 {
14876 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14877 ;
14878 return 0;
14879 }
14880 _ACEOF
14881 if ac_fn_c_try_compile "$LINENO"; then :
14882 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14883 else
14884 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14885
14886 fi
14887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888 fi
14889
14890 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14891
14892 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14893
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14896 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14897
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14899 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14900 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14902 else
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14905
14906 #define _BSD_SOURCE 1
14907 #include <sys/stat.h>
14908 int
14909 main ()
14910 {
14911 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14912 ;
14913 return 0;
14914 }
14915 _ACEOF
14916 if ac_fn_c_try_compile "$LINENO"; then :
14917 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14918 else
14919 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14920
14921 fi
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 fi
14924
14925 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14926
14927 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14928
14929 fi
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14931 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14932
14933 fi
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14944
14945 ac_config_commands="$ac_config_commands default"
14946
14947
14948 cat >confcache <<\_ACEOF
14949 # This file is a shell script that caches the results of configure
14950 # tests run on this system so they can be shared between configure
14951 # scripts and configure runs, see configure's option --config-cache.
14952 # It is not useful on other systems. If it contains results you don't
14953 # want to keep, you may remove or edit it.
14954 #
14955 # config.status only pays attention to the cache file if you give it
14956 # the --recheck option to rerun configure.
14957 #
14958 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14959 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14960 # following values.
14961
14962 _ACEOF
14963
14964 # The following way of writing the cache mishandles newlines in values,
14965 # but we know of no workaround that is simple, portable, and efficient.
14966 # So, we kill variables containing newlines.
14967 # Ultrix sh set writes to stderr and can't be redirected directly,
14968 # and sets the high bit in the cache file unless we assign to the vars.
14969 (
14970 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14971 eval ac_val=\$$ac_var
14972 case $ac_val in #(
14973 *${as_nl}*)
14974 case $ac_var in #(
14975 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14976 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14977 esac
14978 case $ac_var in #(
14979 _ | IFS | as_nl) ;; #(
14980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14981 *) { eval $ac_var=; unset $ac_var;} ;;
14982 esac ;;
14983 esac
14984 done
14985
14986 (set) 2>&1 |
14987 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14988 *${as_nl}ac_space=\ *)
14989 # `set' does not quote correctly, so add quotes: double-quote
14990 # substitution turns \\\\ into \\, and sed turns \\ into \.
14991 sed -n \
14992 "s/'/'\\\\''/g;
14993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14994 ;; #(
14995 *)
14996 # `set' quotes correctly as required by POSIX, so do not add quotes.
14997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14998 ;;
14999 esac |
15000 sort
15001 ) |
15002 sed '
15003 /^ac_cv_env_/b end
15004 t clear
15005 :clear
15006 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15007 t end
15008 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15009 :end' >>confcache
15010 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15011 if test -w "$cache_file"; then
15012 test "x$cache_file" != "x/dev/null" &&
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15014 $as_echo "$as_me: updating cache $cache_file" >&6;}
15015 cat confcache >$cache_file
15016 else
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15018 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15019 fi
15020 fi
15021 rm -f confcache
15022
15023 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15024 # Let make expand exec_prefix.
15025 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15026
15027 DEFS=-DHAVE_CONFIG_H
15028
15029 ac_libobjs=
15030 ac_ltlibobjs=
15031 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15032 # 1. Remove the extension, and $U if already installed.
15033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15034 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15036 # will be set to the directory where LIBOBJS objects are built.
15037 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15038 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15039 done
15040 LIBOBJS=$ac_libobjs
15041
15042 LTLIBOBJS=$ac_ltlibobjs
15043
15044
15045 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15046 as_fn_error "conditional \"AMDEP\" was never defined.
15047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15048 fi
15049 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15050 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15052 fi
15053 if test -n "$EXEEXT"; then
15054 am__EXEEXT_TRUE=
15055 am__EXEEXT_FALSE='#'
15056 else
15057 am__EXEEXT_TRUE='#'
15058 am__EXEEXT_FALSE=
15059 fi
15060
15061
15062 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15063 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15065 fi
15066 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15067 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15069 fi
15070
15071 : ${CONFIG_STATUS=./config.status}
15072 ac_write_fail=0
15073 ac_clean_files_save=$ac_clean_files
15074 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15076 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15077 as_write_fail=0
15078 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15079 #! $SHELL
15080 # Generated by $as_me.
15081 # Run this file to recreate the current configuration.
15082 # Compiler output produced by configure, useful for debugging
15083 # configure, is in config.log if it exists.
15084
15085 debug=false
15086 ac_cs_recheck=false
15087 ac_cs_silent=false
15088
15089 SHELL=\${CONFIG_SHELL-$SHELL}
15090 export SHELL
15091 _ASEOF
15092 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15093 ## -------------------- ##
15094 ## M4sh Initialization. ##
15095 ## -------------------- ##
15096
15097 # Be more Bourne compatible
15098 DUALCASE=1; export DUALCASE # for MKS sh
15099 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15100 emulate sh
15101 NULLCMD=:
15102 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15103 # is contrary to our usage. Disable this feature.
15104 alias -g '${1+"$@"}'='"$@"'
15105 setopt NO_GLOB_SUBST
15106 else
15107 case `(set -o) 2>/dev/null` in #(
15108 *posix*) :
15109 set -o posix ;; #(
15110 *) :
15111 ;;
15112 esac
15113 fi
15114
15115
15116 as_nl='
15117 '
15118 export as_nl
15119 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15120 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15122 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15123 # Prefer a ksh shell builtin over an external printf program on Solaris,
15124 # but without wasting forks for bash or zsh.
15125 if test -z "$BASH_VERSION$ZSH_VERSION" \
15126 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15127 as_echo='print -r --'
15128 as_echo_n='print -rn --'
15129 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15130 as_echo='printf %s\n'
15131 as_echo_n='printf %s'
15132 else
15133 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15134 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15135 as_echo_n='/usr/ucb/echo -n'
15136 else
15137 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15138 as_echo_n_body='eval
15139 arg=$1;
15140 case $arg in #(
15141 *"$as_nl"*)
15142 expr "X$arg" : "X\\(.*\\)$as_nl";
15143 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15144 esac;
15145 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15146 '
15147 export as_echo_n_body
15148 as_echo_n='sh -c $as_echo_n_body as_echo'
15149 fi
15150 export as_echo_body
15151 as_echo='sh -c $as_echo_body as_echo'
15152 fi
15153
15154 # The user is always right.
15155 if test "${PATH_SEPARATOR+set}" != set; then
15156 PATH_SEPARATOR=:
15157 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15158 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15159 PATH_SEPARATOR=';'
15160 }
15161 fi
15162
15163
15164 # IFS
15165 # We need space, tab and new line, in precisely that order. Quoting is
15166 # there to prevent editors from complaining about space-tab.
15167 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15168 # splitting by setting IFS to empty value.)
15169 IFS=" "" $as_nl"
15170
15171 # Find who we are. Look in the path if we contain no directory separator.
15172 case $0 in #((
15173 *[\\/]* ) as_myself=$0 ;;
15174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15175 for as_dir in $PATH
15176 do
15177 IFS=$as_save_IFS
15178 test -z "$as_dir" && as_dir=.
15179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15180 done
15181 IFS=$as_save_IFS
15182
15183 ;;
15184 esac
15185 # We did not find ourselves, most probably we were run as `sh COMMAND'
15186 # in which case we are not to be found in the path.
15187 if test "x$as_myself" = x; then
15188 as_myself=$0
15189 fi
15190 if test ! -f "$as_myself"; then
15191 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15192 exit 1
15193 fi
15194
15195 # Unset variables that we do not need and which cause bugs (e.g. in
15196 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15197 # suppresses any "Segmentation fault" message there. '((' could
15198 # trigger a bug in pdksh 5.2.14.
15199 for as_var in BASH_ENV ENV MAIL MAILPATH
15200 do eval test x\${$as_var+set} = xset \
15201 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15202 done
15203 PS1='$ '
15204 PS2='> '
15205 PS4='+ '
15206
15207 # NLS nuisances.
15208 LC_ALL=C
15209 export LC_ALL
15210 LANGUAGE=C
15211 export LANGUAGE
15212
15213 # CDPATH.
15214 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15215
15216
15217 # as_fn_error ERROR [LINENO LOG_FD]
15218 # ---------------------------------
15219 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15220 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15221 # script with status $?, using 1 if that was 0.
15222 as_fn_error ()
15223 {
15224 as_status=$?; test $as_status -eq 0 && as_status=1
15225 if test "$3"; then
15226 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15227 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15228 fi
15229 $as_echo "$as_me: error: $1" >&2
15230 as_fn_exit $as_status
15231 } # as_fn_error
15232
15233
15234 # as_fn_set_status STATUS
15235 # -----------------------
15236 # Set $? to STATUS, without forking.
15237 as_fn_set_status ()
15238 {
15239 return $1
15240 } # as_fn_set_status
15241
15242 # as_fn_exit STATUS
15243 # -----------------
15244 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15245 as_fn_exit ()
15246 {
15247 set +e
15248 as_fn_set_status $1
15249 exit $1
15250 } # as_fn_exit
15251
15252 # as_fn_unset VAR
15253 # ---------------
15254 # Portably unset VAR.
15255 as_fn_unset ()
15256 {
15257 { eval $1=; unset $1;}
15258 }
15259 as_unset=as_fn_unset
15260 # as_fn_append VAR VALUE
15261 # ----------------------
15262 # Append the text in VALUE to the end of the definition contained in VAR. Take
15263 # advantage of any shell optimizations that allow amortized linear growth over
15264 # repeated appends, instead of the typical quadratic growth present in naive
15265 # implementations.
15266 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15267 eval 'as_fn_append ()
15268 {
15269 eval $1+=\$2
15270 }'
15271 else
15272 as_fn_append ()
15273 {
15274 eval $1=\$$1\$2
15275 }
15276 fi # as_fn_append
15277
15278 # as_fn_arith ARG...
15279 # ------------------
15280 # Perform arithmetic evaluation on the ARGs, and store the result in the
15281 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15282 # must be portable across $(()) and expr.
15283 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15284 eval 'as_fn_arith ()
15285 {
15286 as_val=$(( $* ))
15287 }'
15288 else
15289 as_fn_arith ()
15290 {
15291 as_val=`expr "$@" || test $? -eq 1`
15292 }
15293 fi # as_fn_arith
15294
15295
15296 if expr a : '\(a\)' >/dev/null 2>&1 &&
15297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15298 as_expr=expr
15299 else
15300 as_expr=false
15301 fi
15302
15303 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15304 as_basename=basename
15305 else
15306 as_basename=false
15307 fi
15308
15309 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15310 as_dirname=dirname
15311 else
15312 as_dirname=false
15313 fi
15314
15315 as_me=`$as_basename -- "$0" ||
15316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15317 X"$0" : 'X\(//\)$' \| \
15318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15319 $as_echo X/"$0" |
15320 sed '/^.*\/\([^/][^/]*\)\/*$/{
15321 s//\1/
15322 q
15323 }
15324 /^X\/\(\/\/\)$/{
15325 s//\1/
15326 q
15327 }
15328 /^X\/\(\/\).*/{
15329 s//\1/
15330 q
15331 }
15332 s/.*/./; q'`
15333
15334 # Avoid depending upon Character Ranges.
15335 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15336 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15337 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15338 as_cr_digits='0123456789'
15339 as_cr_alnum=$as_cr_Letters$as_cr_digits
15340
15341 ECHO_C= ECHO_N= ECHO_T=
15342 case `echo -n x` in #(((((
15343 -n*)
15344 case `echo 'xy\c'` in
15345 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15346 xy) ECHO_C='\c';;
15347 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15348 ECHO_T=' ';;
15349 esac;;
15350 *)
15351 ECHO_N='-n';;
15352 esac
15353
15354 rm -f conf$$ conf$$.exe conf$$.file
15355 if test -d conf$$.dir; then
15356 rm -f conf$$.dir/conf$$.file
15357 else
15358 rm -f conf$$.dir
15359 mkdir conf$$.dir 2>/dev/null
15360 fi
15361 if (echo >conf$$.file) 2>/dev/null; then
15362 if ln -s conf$$.file conf$$ 2>/dev/null; then
15363 as_ln_s='ln -s'
15364 # ... but there are two gotchas:
15365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15367 # In both cases, we have to default to `cp -p'.
15368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15369 as_ln_s='cp -p'
15370 elif ln conf$$.file conf$$ 2>/dev/null; then
15371 as_ln_s=ln
15372 else
15373 as_ln_s='cp -p'
15374 fi
15375 else
15376 as_ln_s='cp -p'
15377 fi
15378 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15379 rmdir conf$$.dir 2>/dev/null
15380
15381
15382 # as_fn_mkdir_p
15383 # -------------
15384 # Create "$as_dir" as a directory, including parents if necessary.
15385 as_fn_mkdir_p ()
15386 {
15387
15388 case $as_dir in #(
15389 -*) as_dir=./$as_dir;;
15390 esac
15391 test -d "$as_dir" || eval $as_mkdir_p || {
15392 as_dirs=
15393 while :; do
15394 case $as_dir in #(
15395 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15396 *) as_qdir=$as_dir;;
15397 esac
15398 as_dirs="'$as_qdir' $as_dirs"
15399 as_dir=`$as_dirname -- "$as_dir" ||
15400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15401 X"$as_dir" : 'X\(//\)[^/]' \| \
15402 X"$as_dir" : 'X\(//\)$' \| \
15403 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15404 $as_echo X"$as_dir" |
15405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15406 s//\1/
15407 q
15408 }
15409 /^X\(\/\/\)[^/].*/{
15410 s//\1/
15411 q
15412 }
15413 /^X\(\/\/\)$/{
15414 s//\1/
15415 q
15416 }
15417 /^X\(\/\).*/{
15418 s//\1/
15419 q
15420 }
15421 s/.*/./; q'`
15422 test -d "$as_dir" && break
15423 done
15424 test -z "$as_dirs" || eval "mkdir $as_dirs"
15425 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15426
15427
15428 } # as_fn_mkdir_p
15429 if mkdir -p . 2>/dev/null; then
15430 as_mkdir_p='mkdir -p "$as_dir"'
15431 else
15432 test -d ./-p && rmdir ./-p
15433 as_mkdir_p=false
15434 fi
15435
15436 if test -x / >/dev/null 2>&1; then
15437 as_test_x='test -x'
15438 else
15439 if ls -dL / >/dev/null 2>&1; then
15440 as_ls_L_option=L
15441 else
15442 as_ls_L_option=
15443 fi
15444 as_test_x='
15445 eval sh -c '\''
15446 if test -d "$1"; then
15447 test -d "$1/.";
15448 else
15449 case $1 in #(
15450 -*)set "./$1";;
15451 esac;
15452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15453 ???[sx]*):;;*)false;;esac;fi
15454 '\'' sh
15455 '
15456 fi
15457 as_executable_p=$as_test_x
15458
15459 # Sed expression to map a string onto a valid CPP name.
15460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15461
15462 # Sed expression to map a string onto a valid variable name.
15463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15464
15465
15466 exec 6>&1
15467 ## ----------------------------------- ##
15468 ## Main body of $CONFIG_STATUS script. ##
15469 ## ----------------------------------- ##
15470 _ASEOF
15471 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15472
15473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474 # Save the log message, to keep $0 and so on meaningful, and to
15475 # report actual input values of CONFIG_FILES etc. instead of their
15476 # values after options handling.
15477 ac_log="
15478 This file was extended by $as_me, which was
15479 generated by GNU Autoconf 2.64. Invocation command line was
15480
15481 CONFIG_FILES = $CONFIG_FILES
15482 CONFIG_HEADERS = $CONFIG_HEADERS
15483 CONFIG_LINKS = $CONFIG_LINKS
15484 CONFIG_COMMANDS = $CONFIG_COMMANDS
15485 $ $0 $@
15486
15487 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15488 "
15489
15490 _ACEOF
15491
15492 case $ac_config_files in *"
15493 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15494 esac
15495
15496 case $ac_config_headers in *"
15497 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15498 esac
15499
15500
15501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15502 # Files that config.status was made for.
15503 config_files="$ac_config_files"
15504 config_headers="$ac_config_headers"
15505 config_commands="$ac_config_commands"
15506
15507 _ACEOF
15508
15509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15510 ac_cs_usage="\
15511 \`$as_me' instantiates files and other configuration actions
15512 from templates according to the current configuration. Unless the files
15513 and actions are specified as TAGs, all are instantiated by default.
15514
15515 Usage: $0 [OPTION]... [TAG]...
15516
15517 -h, --help print this help, then exit
15518 -V, --version print version number and configuration settings, then exit
15519 -q, --quiet, --silent
15520 do not print progress messages
15521 -d, --debug don't remove temporary files
15522 --recheck update $as_me by reconfiguring in the same conditions
15523 --file=FILE[:TEMPLATE]
15524 instantiate the configuration file FILE
15525 --header=FILE[:TEMPLATE]
15526 instantiate the configuration header FILE
15527
15528 Configuration files:
15529 $config_files
15530
15531 Configuration headers:
15532 $config_headers
15533
15534 Configuration commands:
15535 $config_commands
15536
15537 Report bugs to the package provider."
15538
15539 _ACEOF
15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15541 ac_cs_version="\\
15542 config.status
15543 configured by $0, generated by GNU Autoconf 2.64,
15544 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15545
15546 Copyright (C) 2009 Free Software Foundation, Inc.
15547 This config.status script is free software; the Free Software Foundation
15548 gives unlimited permission to copy, distribute and modify it."
15549
15550 ac_pwd='$ac_pwd'
15551 srcdir='$srcdir'
15552 INSTALL='$INSTALL'
15553 MKDIR_P='$MKDIR_P'
15554 AWK='$AWK'
15555 test -n "\$AWK" || AWK=awk
15556 _ACEOF
15557
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559 # The default lists apply if the user does not specify any file.
15560 ac_need_defaults=:
15561 while test $# != 0
15562 do
15563 case $1 in
15564 --*=*)
15565 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15566 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15567 ac_shift=:
15568 ;;
15569 *)
15570 ac_option=$1
15571 ac_optarg=$2
15572 ac_shift=shift
15573 ;;
15574 esac
15575
15576 case $ac_option in
15577 # Handling of the options.
15578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15579 ac_cs_recheck=: ;;
15580 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15581 $as_echo "$ac_cs_version"; exit ;;
15582 --debug | --debu | --deb | --de | --d | -d )
15583 debug=: ;;
15584 --file | --fil | --fi | --f )
15585 $ac_shift
15586 case $ac_optarg in
15587 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15588 esac
15589 as_fn_append CONFIG_FILES " '$ac_optarg'"
15590 ac_need_defaults=false;;
15591 --header | --heade | --head | --hea )
15592 $ac_shift
15593 case $ac_optarg in
15594 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15595 esac
15596 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15597 ac_need_defaults=false;;
15598 --he | --h)
15599 # Conflict between --help and --header
15600 as_fn_error "ambiguous option: \`$1'
15601 Try \`$0 --help' for more information.";;
15602 --help | --hel | -h )
15603 $as_echo "$ac_cs_usage"; exit ;;
15604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15605 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15606 ac_cs_silent=: ;;
15607
15608 # This is an error.
15609 -*) as_fn_error "unrecognized option: \`$1'
15610 Try \`$0 --help' for more information." ;;
15611
15612 *) as_fn_append ac_config_targets " $1"
15613 ac_need_defaults=false ;;
15614
15615 esac
15616 shift
15617 done
15618
15619 ac_configure_extra_args=
15620
15621 if $ac_cs_silent; then
15622 exec 6>/dev/null
15623 ac_configure_extra_args="$ac_configure_extra_args --silent"
15624 fi
15625
15626 _ACEOF
15627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15628 if \$ac_cs_recheck; then
15629 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15630 shift
15631 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15632 CONFIG_SHELL='$SHELL'
15633 export CONFIG_SHELL
15634 exec "\$@"
15635 fi
15636
15637 _ACEOF
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639 exec 5>>config.log
15640 {
15641 echo
15642 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15643 ## Running $as_me. ##
15644 _ASBOX
15645 $as_echo "$ac_log"
15646 } >&5
15647
15648 _ACEOF
15649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15650 #
15651 # INIT-COMMANDS
15652 #
15653 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15654
15655
15656 # The HP-UX ksh and POSIX shell print the target directory to stdout
15657 # if CDPATH is set.
15658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15659
15660 sed_quote_subst='$sed_quote_subst'
15661 double_quote_subst='$double_quote_subst'
15662 delay_variable_subst='$delay_variable_subst'
15663 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15664 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15665 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15666 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15667 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15668 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15669 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15670 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15671 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15672 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15673 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15674 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15675 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15676 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15677 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15678 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15679 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15680 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15681 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15682 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15683 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15684 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15685 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15686 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15687 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15688 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15689 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15690 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15691 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15692 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15693 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15694 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15695 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15696 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15697 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15698 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15699 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15700 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15701 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15702 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15703 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15704 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15705 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15706 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15707 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15708 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15709 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15710 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15711 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15712 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15713 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15714 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15715 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15716 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15717 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15718 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"`'
15719 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15720 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15721 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15722 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15723 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15724 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15725 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15726 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15727 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15728 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15729 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15730 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15731 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15732 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15733 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15734 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15735 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15736 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15737 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15738 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15739 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15740 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15741 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15742 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15743 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15744 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15745 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15746 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15747 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15748 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15749 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15750 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15751 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15752 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15753 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15754 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15755 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15756 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15757 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15758 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15759 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15760 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15761 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15762 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15763 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15764 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15765 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15766 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15767 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15768 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15769 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15770 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15771 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15772 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15773 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15774 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15775 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15776 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15777 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15778 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15779 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15780 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15781 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15782 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15783 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15784 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15785 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15786 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15787 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15788 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15789 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15790 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15791 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15792 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15793
15794 LTCC='$LTCC'
15795 LTCFLAGS='$LTCFLAGS'
15796 compiler='$compiler_DEFAULT'
15797
15798 # A function that is used when there is no print builtin or printf.
15799 func_fallback_echo ()
15800 {
15801 eval 'cat <<_LTECHO_EOF
15802 \$1
15803 _LTECHO_EOF'
15804 }
15805
15806 # Quote evaled strings.
15807 for var in SHELL \
15808 ECHO \
15809 SED \
15810 GREP \
15811 EGREP \
15812 FGREP \
15813 LD \
15814 NM \
15815 LN_S \
15816 lt_SP2NL \
15817 lt_NL2SP \
15818 reload_flag \
15819 OBJDUMP \
15820 deplibs_check_method \
15821 file_magic_cmd \
15822 file_magic_glob \
15823 want_nocaseglob \
15824 DLLTOOL \
15825 sharedlib_from_linklib_cmd \
15826 AR \
15827 AR_FLAGS \
15828 archiver_list_spec \
15829 STRIP \
15830 RANLIB \
15831 CC \
15832 CFLAGS \
15833 compiler \
15834 lt_cv_sys_global_symbol_pipe \
15835 lt_cv_sys_global_symbol_to_cdecl \
15836 lt_cv_sys_global_symbol_to_c_name_address \
15837 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15838 nm_file_list_spec \
15839 lt_prog_compiler_no_builtin_flag \
15840 lt_prog_compiler_pic \
15841 lt_prog_compiler_wl \
15842 lt_prog_compiler_static \
15843 lt_cv_prog_compiler_c_o \
15844 need_locks \
15845 MANIFEST_TOOL \
15846 DSYMUTIL \
15847 NMEDIT \
15848 LIPO \
15849 OTOOL \
15850 OTOOL64 \
15851 shrext_cmds \
15852 export_dynamic_flag_spec \
15853 whole_archive_flag_spec \
15854 compiler_needs_object \
15855 with_gnu_ld \
15856 allow_undefined_flag \
15857 no_undefined_flag \
15858 hardcode_libdir_flag_spec \
15859 hardcode_libdir_flag_spec_ld \
15860 hardcode_libdir_separator \
15861 exclude_expsyms \
15862 include_expsyms \
15863 file_list_spec \
15864 variables_saved_for_relink \
15865 libname_spec \
15866 library_names_spec \
15867 soname_spec \
15868 install_override_mode \
15869 finish_eval \
15870 old_striplib \
15871 striplib; do
15872 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15873 *[\\\\\\\`\\"\\\$]*)
15874 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15875 ;;
15876 *)
15877 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15878 ;;
15879 esac
15880 done
15881
15882 # Double-quote double-evaled strings.
15883 for var in reload_cmds \
15884 old_postinstall_cmds \
15885 old_postuninstall_cmds \
15886 old_archive_cmds \
15887 extract_expsyms_cmds \
15888 old_archive_from_new_cmds \
15889 old_archive_from_expsyms_cmds \
15890 archive_cmds \
15891 archive_expsym_cmds \
15892 module_cmds \
15893 module_expsym_cmds \
15894 export_symbols_cmds \
15895 prelink_cmds \
15896 postlink_cmds \
15897 postinstall_cmds \
15898 postuninstall_cmds \
15899 finish_cmds \
15900 sys_lib_search_path_spec \
15901 sys_lib_dlsearch_path_spec; do
15902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15903 *[\\\\\\\`\\"\\\$]*)
15904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15905 ;;
15906 *)
15907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15908 ;;
15909 esac
15910 done
15911
15912 ac_aux_dir='$ac_aux_dir'
15913 xsi_shell='$xsi_shell'
15914 lt_shell_append='$lt_shell_append'
15915
15916 # See if we are running on zsh, and set the options which allow our
15917 # commands through without removal of \ escapes INIT.
15918 if test -n "\${ZSH_VERSION+set}" ; then
15919 setopt NO_GLOB_SUBST
15920 fi
15921
15922
15923 PACKAGE='$PACKAGE'
15924 VERSION='$VERSION'
15925 TIMESTAMP='$TIMESTAMP'
15926 RM='$RM'
15927 ofile='$ofile'
15928
15929
15930
15931 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15932 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15933 # from automake.
15934 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15935 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15936 LINGUAS="${LINGUAS-%UNSET%}"
15937
15938 target_cpu_type=${target_cpu_type}
15939 cgen_cpu_prefix=${cgen_cpu_prefix}
15940 obj_format=${obj_format}
15941 te_file=${te_file}
15942
15943 _ACEOF
15944
15945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15946
15947 # Handling of arguments.
15948 for ac_config_target in $ac_config_targets
15949 do
15950 case $ac_config_target in
15951 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15952 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15953 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15954 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15955 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15956 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15957 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15958 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15959 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15960 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15961
15962 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15963 esac
15964 done
15965
15966
15967 # If the user did not use the arguments to specify the items to instantiate,
15968 # then the envvar interface is used. Set only those that are not.
15969 # We use the long form for the default assignment because of an extremely
15970 # bizarre bug on SunOS 4.1.3.
15971 if $ac_need_defaults; then
15972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15975 fi
15976
15977 # Have a temporary directory for convenience. Make it in the build tree
15978 # simply because there is no reason against having it here, and in addition,
15979 # creating and moving files from /tmp can sometimes cause problems.
15980 # Hook for its removal unless debugging.
15981 # Note that there is a small window in which the directory will not be cleaned:
15982 # after its creation but before its name has been assigned to `$tmp'.
15983 $debug ||
15984 {
15985 tmp=
15986 trap 'exit_status=$?
15987 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15988 ' 0
15989 trap 'as_fn_exit 1' 1 2 13 15
15990 }
15991 # Create a (secure) tmp directory for tmp files.
15992
15993 {
15994 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15995 test -n "$tmp" && test -d "$tmp"
15996 } ||
15997 {
15998 tmp=./conf$$-$RANDOM
15999 (umask 077 && mkdir "$tmp")
16000 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16001
16002 # Set up the scripts for CONFIG_FILES section.
16003 # No need to generate them if there are no CONFIG_FILES.
16004 # This happens for instance with `./config.status config.h'.
16005 if test -n "$CONFIG_FILES"; then
16006
16007
16008 ac_cr=`echo X | tr X '\015'`
16009 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16010 # But we know of no other shell where ac_cr would be empty at this
16011 # point, so we can use a bashism as a fallback.
16012 if test "x$ac_cr" = x; then
16013 eval ac_cr=\$\'\\r\'
16014 fi
16015 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16016 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16017 ac_cs_awk_cr='\r'
16018 else
16019 ac_cs_awk_cr=$ac_cr
16020 fi
16021
16022 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16023 _ACEOF
16024
16025
16026 {
16027 echo "cat >conf$$subs.awk <<_ACEOF" &&
16028 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16029 echo "_ACEOF"
16030 } >conf$$subs.sh ||
16031 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16032 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16033 ac_delim='%!_!# '
16034 for ac_last_try in false false false false false :; do
16035 . ./conf$$subs.sh ||
16036 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16037
16038 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16039 if test $ac_delim_n = $ac_delim_num; then
16040 break
16041 elif $ac_last_try; then
16042 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16043 else
16044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16045 fi
16046 done
16047 rm -f conf$$subs.sh
16048
16049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16050 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16051 _ACEOF
16052 sed -n '
16053 h
16054 s/^/S["/; s/!.*/"]=/
16055 p
16056 g
16057 s/^[^!]*!//
16058 :repl
16059 t repl
16060 s/'"$ac_delim"'$//
16061 t delim
16062 :nl
16063 h
16064 s/\(.\{148\}\).*/\1/
16065 t more1
16066 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16067 p
16068 n
16069 b repl
16070 :more1
16071 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16072 p
16073 g
16074 s/.\{148\}//
16075 t nl
16076 :delim
16077 h
16078 s/\(.\{148\}\).*/\1/
16079 t more2
16080 s/["\\]/\\&/g; s/^/"/; s/$/"/
16081 p
16082 b
16083 :more2
16084 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16085 p
16086 g
16087 s/.\{148\}//
16088 t delim
16089 ' <conf$$subs.awk | sed '
16090 /^[^""]/{
16091 N
16092 s/\n//
16093 }
16094 ' >>$CONFIG_STATUS || ac_write_fail=1
16095 rm -f conf$$subs.awk
16096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16097 _ACAWK
16098 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16099 for (key in S) S_is_set[key] = 1
16100 FS = "\a"
16101
16102 }
16103 {
16104 line = $ 0
16105 nfields = split(line, field, "@")
16106 substed = 0
16107 len = length(field[1])
16108 for (i = 2; i < nfields; i++) {
16109 key = field[i]
16110 keylen = length(key)
16111 if (S_is_set[key]) {
16112 value = S[key]
16113 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16114 len += length(value) + length(field[++i])
16115 substed = 1
16116 } else
16117 len += 1 + keylen
16118 }
16119
16120 print line
16121 }
16122
16123 _ACAWK
16124 _ACEOF
16125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16126 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16127 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16128 else
16129 cat
16130 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16131 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16132 _ACEOF
16133
16134 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16135 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16136 # trailing colons and then remove the whole line if VPATH becomes empty
16137 # (actually we leave an empty line to preserve line numbers).
16138 if test "x$srcdir" = x.; then
16139 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16140 s/:*\$(srcdir):*/:/
16141 s/:*\${srcdir}:*/:/
16142 s/:*@srcdir@:*/:/
16143 s/^\([^=]*=[ ]*\):*/\1/
16144 s/:*$//
16145 s/^[^=]*=[ ]*$//
16146 }'
16147 fi
16148
16149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16150 fi # test -n "$CONFIG_FILES"
16151
16152 # Set up the scripts for CONFIG_HEADERS section.
16153 # No need to generate them if there are no CONFIG_HEADERS.
16154 # This happens for instance with `./config.status Makefile'.
16155 if test -n "$CONFIG_HEADERS"; then
16156 cat >"$tmp/defines.awk" <<\_ACAWK ||
16157 BEGIN {
16158 _ACEOF
16159
16160 # Transform confdefs.h into an awk script `defines.awk', embedded as
16161 # here-document in config.status, that substitutes the proper values into
16162 # config.h.in to produce config.h.
16163
16164 # Create a delimiter string that does not exist in confdefs.h, to ease
16165 # handling of long lines.
16166 ac_delim='%!_!# '
16167 for ac_last_try in false false :; do
16168 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16169 if test -z "$ac_t"; then
16170 break
16171 elif $ac_last_try; then
16172 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16173 else
16174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16175 fi
16176 done
16177
16178 # For the awk script, D is an array of macro values keyed by name,
16179 # likewise P contains macro parameters if any. Preserve backslash
16180 # newline sequences.
16181
16182 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16183 sed -n '
16184 s/.\{148\}/&'"$ac_delim"'/g
16185 t rset
16186 :rset
16187 s/^[ ]*#[ ]*define[ ][ ]*/ /
16188 t def
16189 d
16190 :def
16191 s/\\$//
16192 t bsnl
16193 s/["\\]/\\&/g
16194 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16195 D["\1"]=" \3"/p
16196 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16197 d
16198 :bsnl
16199 s/["\\]/\\&/g
16200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16201 D["\1"]=" \3\\\\\\n"\\/p
16202 t cont
16203 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16204 t cont
16205 d
16206 :cont
16207 n
16208 s/.\{148\}/&'"$ac_delim"'/g
16209 t clear
16210 :clear
16211 s/\\$//
16212 t bsnlc
16213 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16214 d
16215 :bsnlc
16216 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16217 b cont
16218 ' <confdefs.h | sed '
16219 s/'"$ac_delim"'/"\\\
16220 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16221
16222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16223 for (key in D) D_is_set[key] = 1
16224 FS = "\a"
16225 }
16226 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16227 line = \$ 0
16228 split(line, arg, " ")
16229 if (arg[1] == "#") {
16230 defundef = arg[2]
16231 mac1 = arg[3]
16232 } else {
16233 defundef = substr(arg[1], 2)
16234 mac1 = arg[2]
16235 }
16236 split(mac1, mac2, "(") #)
16237 macro = mac2[1]
16238 prefix = substr(line, 1, index(line, defundef) - 1)
16239 if (D_is_set[macro]) {
16240 # Preserve the white space surrounding the "#".
16241 print prefix "define", macro P[macro] D[macro]
16242 next
16243 } else {
16244 # Replace #undef with comments. This is necessary, for example,
16245 # in the case of _POSIX_SOURCE, which is predefined and required
16246 # on some systems where configure will not decide to define it.
16247 if (defundef == "undef") {
16248 print "/*", prefix defundef, macro, "*/"
16249 next
16250 }
16251 }
16252 }
16253 { print }
16254 _ACAWK
16255 _ACEOF
16256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16257 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16258 fi # test -n "$CONFIG_HEADERS"
16259
16260
16261 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16262 shift
16263 for ac_tag
16264 do
16265 case $ac_tag in
16266 :[FHLC]) ac_mode=$ac_tag; continue;;
16267 esac
16268 case $ac_mode$ac_tag in
16269 :[FHL]*:*);;
16270 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16271 :[FH]-) ac_tag=-:-;;
16272 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16273 esac
16274 ac_save_IFS=$IFS
16275 IFS=:
16276 set x $ac_tag
16277 IFS=$ac_save_IFS
16278 shift
16279 ac_file=$1
16280 shift
16281
16282 case $ac_mode in
16283 :L) ac_source=$1;;
16284 :[FH])
16285 ac_file_inputs=
16286 for ac_f
16287 do
16288 case $ac_f in
16289 -) ac_f="$tmp/stdin";;
16290 *) # Look for the file first in the build tree, then in the source tree
16291 # (if the path is not absolute). The absolute path cannot be DOS-style,
16292 # because $ac_f cannot contain `:'.
16293 test -f "$ac_f" ||
16294 case $ac_f in
16295 [\\/$]*) false;;
16296 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16297 esac ||
16298 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16299 esac
16300 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16301 as_fn_append ac_file_inputs " '$ac_f'"
16302 done
16303
16304 # Let's still pretend it is `configure' which instantiates (i.e., don't
16305 # use $as_me), people would be surprised to read:
16306 # /* config.h. Generated by config.status. */
16307 configure_input='Generated from '`
16308 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16309 `' by configure.'
16310 if test x"$ac_file" != x-; then
16311 configure_input="$ac_file. $configure_input"
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16313 $as_echo "$as_me: creating $ac_file" >&6;}
16314 fi
16315 # Neutralize special characters interpreted by sed in replacement strings.
16316 case $configure_input in #(
16317 *\&* | *\|* | *\\* )
16318 ac_sed_conf_input=`$as_echo "$configure_input" |
16319 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16320 *) ac_sed_conf_input=$configure_input;;
16321 esac
16322
16323 case $ac_tag in
16324 *:-:* | *:-) cat >"$tmp/stdin" \
16325 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16326 esac
16327 ;;
16328 esac
16329
16330 ac_dir=`$as_dirname -- "$ac_file" ||
16331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16332 X"$ac_file" : 'X\(//\)[^/]' \| \
16333 X"$ac_file" : 'X\(//\)$' \| \
16334 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16335 $as_echo X"$ac_file" |
16336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16337 s//\1/
16338 q
16339 }
16340 /^X\(\/\/\)[^/].*/{
16341 s//\1/
16342 q
16343 }
16344 /^X\(\/\/\)$/{
16345 s//\1/
16346 q
16347 }
16348 /^X\(\/\).*/{
16349 s//\1/
16350 q
16351 }
16352 s/.*/./; q'`
16353 as_dir="$ac_dir"; as_fn_mkdir_p
16354 ac_builddir=.
16355
16356 case "$ac_dir" in
16357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16358 *)
16359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16360 # A ".." for each directory in $ac_dir_suffix.
16361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16362 case $ac_top_builddir_sub in
16363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16365 esac ;;
16366 esac
16367 ac_abs_top_builddir=$ac_pwd
16368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16369 # for backward compatibility:
16370 ac_top_builddir=$ac_top_build_prefix
16371
16372 case $srcdir in
16373 .) # We are building in place.
16374 ac_srcdir=.
16375 ac_top_srcdir=$ac_top_builddir_sub
16376 ac_abs_top_srcdir=$ac_pwd ;;
16377 [\\/]* | ?:[\\/]* ) # Absolute name.
16378 ac_srcdir=$srcdir$ac_dir_suffix;
16379 ac_top_srcdir=$srcdir
16380 ac_abs_top_srcdir=$srcdir ;;
16381 *) # Relative name.
16382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16383 ac_top_srcdir=$ac_top_build_prefix$srcdir
16384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16385 esac
16386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16387
16388
16389 case $ac_mode in
16390 :F)
16391 #
16392 # CONFIG_FILE
16393 #
16394
16395 case $INSTALL in
16396 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16397 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16398 esac
16399 ac_MKDIR_P=$MKDIR_P
16400 case $MKDIR_P in
16401 [\\/$]* | ?:[\\/]* ) ;;
16402 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16403 esac
16404 _ACEOF
16405
16406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16407 # If the template does not know about datarootdir, expand it.
16408 # FIXME: This hack should be removed a few years after 2.60.
16409 ac_datarootdir_hack=; ac_datarootdir_seen=
16410 ac_sed_dataroot='
16411 /datarootdir/ {
16412 p
16413 q
16414 }
16415 /@datadir@/p
16416 /@docdir@/p
16417 /@infodir@/p
16418 /@localedir@/p
16419 /@mandir@/p'
16420 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16421 *datarootdir*) ac_datarootdir_seen=yes;;
16422 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16424 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16425 _ACEOF
16426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16427 ac_datarootdir_hack='
16428 s&@datadir@&$datadir&g
16429 s&@docdir@&$docdir&g
16430 s&@infodir@&$infodir&g
16431 s&@localedir@&$localedir&g
16432 s&@mandir@&$mandir&g
16433 s&\\\${datarootdir}&$datarootdir&g' ;;
16434 esac
16435 _ACEOF
16436
16437 # Neutralize VPATH when `$srcdir' = `.'.
16438 # Shell code in configure.ac might set extrasub.
16439 # FIXME: do we really want to maintain this feature?
16440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16441 ac_sed_extra="$ac_vpsub
16442 $extrasub
16443 _ACEOF
16444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16445 :t
16446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16447 s|@configure_input@|$ac_sed_conf_input|;t t
16448 s&@top_builddir@&$ac_top_builddir_sub&;t t
16449 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16450 s&@srcdir@&$ac_srcdir&;t t
16451 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16452 s&@top_srcdir@&$ac_top_srcdir&;t t
16453 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16454 s&@builddir@&$ac_builddir&;t t
16455 s&@abs_builddir@&$ac_abs_builddir&;t t
16456 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16457 s&@INSTALL@&$ac_INSTALL&;t t
16458 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16459 $ac_datarootdir_hack
16460 "
16461 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16462 || as_fn_error "could not create $ac_file" "$LINENO" 5
16463
16464 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16465 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16468 which seems to be undefined. Please make sure it is defined." >&5
16469 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16470 which seems to be undefined. Please make sure it is defined." >&2;}
16471
16472 rm -f "$tmp/stdin"
16473 case $ac_file in
16474 -) cat "$tmp/out" && rm -f "$tmp/out";;
16475 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16476 esac \
16477 || as_fn_error "could not create $ac_file" "$LINENO" 5
16478 ;;
16479 :H)
16480 #
16481 # CONFIG_HEADER
16482 #
16483 if test x"$ac_file" != x-; then
16484 {
16485 $as_echo "/* $configure_input */" \
16486 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16487 } >"$tmp/config.h" \
16488 || as_fn_error "could not create $ac_file" "$LINENO" 5
16489 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16491 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16492 else
16493 rm -f "$ac_file"
16494 mv "$tmp/config.h" "$ac_file" \
16495 || as_fn_error "could not create $ac_file" "$LINENO" 5
16496 fi
16497 else
16498 $as_echo "/* $configure_input */" \
16499 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16500 || as_fn_error "could not create -" "$LINENO" 5
16501 fi
16502 # Compute "$ac_file"'s index in $config_headers.
16503 _am_arg="$ac_file"
16504 _am_stamp_count=1
16505 for _am_header in $config_headers :; do
16506 case $_am_header in
16507 $_am_arg | $_am_arg:* )
16508 break ;;
16509 * )
16510 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16511 esac
16512 done
16513 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16514 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16515 X"$_am_arg" : 'X\(//\)[^/]' \| \
16516 X"$_am_arg" : 'X\(//\)$' \| \
16517 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16518 $as_echo X"$_am_arg" |
16519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16520 s//\1/
16521 q
16522 }
16523 /^X\(\/\/\)[^/].*/{
16524 s//\1/
16525 q
16526 }
16527 /^X\(\/\/\)$/{
16528 s//\1/
16529 q
16530 }
16531 /^X\(\/\).*/{
16532 s//\1/
16533 q
16534 }
16535 s/.*/./; q'`/stamp-h$_am_stamp_count
16536 ;;
16537
16538 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16539 $as_echo "$as_me: executing $ac_file commands" >&6;}
16540 ;;
16541 esac
16542
16543
16544 case $ac_file$ac_mode in
16545 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16546 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16547 # are listed without --file. Let's play safe and only enable the eval
16548 # if we detect the quoting.
16549 case $CONFIG_FILES in
16550 *\'*) eval set x "$CONFIG_FILES" ;;
16551 *) set x $CONFIG_FILES ;;
16552 esac
16553 shift
16554 for mf
16555 do
16556 # Strip MF so we end up with the name of the file.
16557 mf=`echo "$mf" | sed -e 's/:.*$//'`
16558 # Check whether this is an Automake generated Makefile or not.
16559 # We used to match only the files named `Makefile.in', but
16560 # some people rename them; so instead we look at the file content.
16561 # Grep'ing the first line is not enough: some people post-process
16562 # each Makefile.in and add a new line on top of each file to say so.
16563 # Grep'ing the whole file is not good either: AIX grep has a line
16564 # limit of 2048, but all sed's we know have understand at least 4000.
16565 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16566 dirpart=`$as_dirname -- "$mf" ||
16567 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16568 X"$mf" : 'X\(//\)[^/]' \| \
16569 X"$mf" : 'X\(//\)$' \| \
16570 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16571 $as_echo X"$mf" |
16572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16573 s//\1/
16574 q
16575 }
16576 /^X\(\/\/\)[^/].*/{
16577 s//\1/
16578 q
16579 }
16580 /^X\(\/\/\)$/{
16581 s//\1/
16582 q
16583 }
16584 /^X\(\/\).*/{
16585 s//\1/
16586 q
16587 }
16588 s/.*/./; q'`
16589 else
16590 continue
16591 fi
16592 # Extract the definition of DEPDIR, am__include, and am__quote
16593 # from the Makefile without running `make'.
16594 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16595 test -z "$DEPDIR" && continue
16596 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16597 test -z "am__include" && continue
16598 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16599 # When using ansi2knr, U may be empty or an underscore; expand it
16600 U=`sed -n 's/^U = //p' < "$mf"`
16601 # Find all dependency output files, they are included files with
16602 # $(DEPDIR) in their names. We invoke sed twice because it is the
16603 # simplest approach to changing $(DEPDIR) to its actual value in the
16604 # expansion.
16605 for file in `sed -n "
16606 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16607 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16608 # Make sure the directory exists.
16609 test -f "$dirpart/$file" && continue
16610 fdir=`$as_dirname -- "$file" ||
16611 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16612 X"$file" : 'X\(//\)[^/]' \| \
16613 X"$file" : 'X\(//\)$' \| \
16614 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16615 $as_echo X"$file" |
16616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16617 s//\1/
16618 q
16619 }
16620 /^X\(\/\/\)[^/].*/{
16621 s//\1/
16622 q
16623 }
16624 /^X\(\/\/\)$/{
16625 s//\1/
16626 q
16627 }
16628 /^X\(\/\).*/{
16629 s//\1/
16630 q
16631 }
16632 s/.*/./; q'`
16633 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16634 # echo "creating $dirpart/$file"
16635 echo '# dummy' > "$dirpart/$file"
16636 done
16637 done
16638 }
16639 ;;
16640 "libtool":C)
16641
16642 # See if we are running on zsh, and set the options which allow our
16643 # commands through without removal of \ escapes.
16644 if test -n "${ZSH_VERSION+set}" ; then
16645 setopt NO_GLOB_SUBST
16646 fi
16647
16648 cfgfile="${ofile}T"
16649 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16650 $RM "$cfgfile"
16651
16652 cat <<_LT_EOF >> "$cfgfile"
16653 #! $SHELL
16654
16655 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16656 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16658 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16659 #
16660 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16661 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16662 # Inc.
16663 # Written by Gordon Matzigkeit, 1996
16664 #
16665 # This file is part of GNU Libtool.
16666 #
16667 # GNU Libtool is free software; you can redistribute it and/or
16668 # modify it under the terms of the GNU General Public License as
16669 # published by the Free Software Foundation; either version 2 of
16670 # the License, or (at your option) any later version.
16671 #
16672 # As a special exception to the GNU General Public License,
16673 # if you distribute this file as part of a program or library that
16674 # is built using GNU Libtool, you may include this file under the
16675 # same distribution terms that you use for the rest of that program.
16676 #
16677 # GNU Libtool is distributed in the hope that it will be useful,
16678 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16679 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16680 # GNU General Public License for more details.
16681 #
16682 # You should have received a copy of the GNU General Public License
16683 # along with GNU Libtool; see the file COPYING. If not, a copy
16684 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16685 # obtained by writing to the Free Software Foundation, Inc.,
16686 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16687
16688
16689 # The names of the tagged configurations supported by this script.
16690 available_tags=""
16691
16692 # ### BEGIN LIBTOOL CONFIG
16693
16694 # Which release of libtool.m4 was used?
16695 macro_version=$macro_version
16696 macro_revision=$macro_revision
16697
16698 # Whether or not to build shared libraries.
16699 build_libtool_libs=$enable_shared
16700
16701 # Whether or not to build static libraries.
16702 build_old_libs=$enable_static
16703
16704 # What type of objects to build.
16705 pic_mode=$pic_mode
16706
16707 # Whether or not to optimize for fast installation.
16708 fast_install=$enable_fast_install
16709
16710 # Shell to use when invoking shell scripts.
16711 SHELL=$lt_SHELL
16712
16713 # An echo program that protects backslashes.
16714 ECHO=$lt_ECHO
16715
16716 # The host system.
16717 host_alias=$host_alias
16718 host=$host
16719 host_os=$host_os
16720
16721 # The build system.
16722 build_alias=$build_alias
16723 build=$build
16724 build_os=$build_os
16725
16726 # A sed program that does not truncate output.
16727 SED=$lt_SED
16728
16729 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16730 Xsed="\$SED -e 1s/^X//"
16731
16732 # A grep program that handles long lines.
16733 GREP=$lt_GREP
16734
16735 # An ERE matcher.
16736 EGREP=$lt_EGREP
16737
16738 # A literal string matcher.
16739 FGREP=$lt_FGREP
16740
16741 # A BSD- or MS-compatible name lister.
16742 NM=$lt_NM
16743
16744 # Whether we need soft or hard links.
16745 LN_S=$lt_LN_S
16746
16747 # What is the maximum length of a command?
16748 max_cmd_len=$max_cmd_len
16749
16750 # Object file suffix (normally "o").
16751 objext=$ac_objext
16752
16753 # Executable file suffix (normally "").
16754 exeext=$exeext
16755
16756 # whether the shell understands "unset".
16757 lt_unset=$lt_unset
16758
16759 # turn spaces into newlines.
16760 SP2NL=$lt_lt_SP2NL
16761
16762 # turn newlines into spaces.
16763 NL2SP=$lt_lt_NL2SP
16764
16765 # convert \$build file names to \$host format.
16766 to_host_file_cmd=$lt_cv_to_host_file_cmd
16767
16768 # convert \$build files to toolchain format.
16769 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16770
16771 # An object symbol dumper.
16772 OBJDUMP=$lt_OBJDUMP
16773
16774 # Method to check whether dependent libraries are shared objects.
16775 deplibs_check_method=$lt_deplibs_check_method
16776
16777 # Command to use when deplibs_check_method = "file_magic".
16778 file_magic_cmd=$lt_file_magic_cmd
16779
16780 # How to find potential files when deplibs_check_method = "file_magic".
16781 file_magic_glob=$lt_file_magic_glob
16782
16783 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16784 want_nocaseglob=$lt_want_nocaseglob
16785
16786 # DLL creation program.
16787 DLLTOOL=$lt_DLLTOOL
16788
16789 # Command to associate shared and link libraries.
16790 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16791
16792 # The archiver.
16793 AR=$lt_AR
16794
16795 # Flags to create an archive.
16796 AR_FLAGS=$lt_AR_FLAGS
16797
16798 # How to feed a file listing to the archiver.
16799 archiver_list_spec=$lt_archiver_list_spec
16800
16801 # A symbol stripping program.
16802 STRIP=$lt_STRIP
16803
16804 # Commands used to install an old-style archive.
16805 RANLIB=$lt_RANLIB
16806 old_postinstall_cmds=$lt_old_postinstall_cmds
16807 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16808
16809 # Whether to use a lock for old archive extraction.
16810 lock_old_archive_extraction=$lock_old_archive_extraction
16811
16812 # A C compiler.
16813 LTCC=$lt_CC
16814
16815 # LTCC compiler flags.
16816 LTCFLAGS=$lt_CFLAGS
16817
16818 # Take the output of nm and produce a listing of raw symbols and C names.
16819 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16820
16821 # Transform the output of nm in a proper C declaration.
16822 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16823
16824 # Transform the output of nm in a C name address pair.
16825 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16826
16827 # Transform the output of nm in a C name address pair when lib prefix is needed.
16828 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16829
16830 # Specify filename containing input files for \$NM.
16831 nm_file_list_spec=$lt_nm_file_list_spec
16832
16833 # The root where to search for dependent libraries,and in which our libraries should be installed.
16834 lt_sysroot=$lt_sysroot
16835
16836 # The name of the directory that contains temporary libtool files.
16837 objdir=$objdir
16838
16839 # Used to examine libraries when file_magic_cmd begins with "file".
16840 MAGIC_CMD=$MAGIC_CMD
16841
16842 # Must we lock files when doing compilation?
16843 need_locks=$lt_need_locks
16844
16845 # Manifest tool.
16846 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16847
16848 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16849 DSYMUTIL=$lt_DSYMUTIL
16850
16851 # Tool to change global to local symbols on Mac OS X.
16852 NMEDIT=$lt_NMEDIT
16853
16854 # Tool to manipulate fat objects and archives on Mac OS X.
16855 LIPO=$lt_LIPO
16856
16857 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16858 OTOOL=$lt_OTOOL
16859
16860 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16861 OTOOL64=$lt_OTOOL64
16862
16863 # Old archive suffix (normally "a").
16864 libext=$libext
16865
16866 # Shared library suffix (normally ".so").
16867 shrext_cmds=$lt_shrext_cmds
16868
16869 # The commands to extract the exported symbol list from a shared archive.
16870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16871
16872 # Variables whose values should be saved in libtool wrapper scripts and
16873 # restored at link time.
16874 variables_saved_for_relink=$lt_variables_saved_for_relink
16875
16876 # Do we need the "lib" prefix for modules?
16877 need_lib_prefix=$need_lib_prefix
16878
16879 # Do we need a version for libraries?
16880 need_version=$need_version
16881
16882 # Library versioning type.
16883 version_type=$version_type
16884
16885 # Shared library runtime path variable.
16886 runpath_var=$runpath_var
16887
16888 # Shared library path variable.
16889 shlibpath_var=$shlibpath_var
16890
16891 # Is shlibpath searched before the hard-coded library search path?
16892 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16893
16894 # Format of library name prefix.
16895 libname_spec=$lt_libname_spec
16896
16897 # List of archive names. First name is the real one, the rest are links.
16898 # The last name is the one that the linker finds with -lNAME
16899 library_names_spec=$lt_library_names_spec
16900
16901 # The coded name of the library, if different from the real name.
16902 soname_spec=$lt_soname_spec
16903
16904 # Permission mode override for installation of shared libraries.
16905 install_override_mode=$lt_install_override_mode
16906
16907 # Command to use after installation of a shared archive.
16908 postinstall_cmds=$lt_postinstall_cmds
16909
16910 # Command to use after uninstallation of a shared archive.
16911 postuninstall_cmds=$lt_postuninstall_cmds
16912
16913 # Commands used to finish a libtool library installation in a directory.
16914 finish_cmds=$lt_finish_cmds
16915
16916 # As "finish_cmds", except a single script fragment to be evaled but
16917 # not shown.
16918 finish_eval=$lt_finish_eval
16919
16920 # Whether we should hardcode library paths into libraries.
16921 hardcode_into_libs=$hardcode_into_libs
16922
16923 # Compile-time system search path for libraries.
16924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16925
16926 # Run-time system search path for libraries.
16927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16928
16929 # Whether dlopen is supported.
16930 dlopen_support=$enable_dlopen
16931
16932 # Whether dlopen of programs is supported.
16933 dlopen_self=$enable_dlopen_self
16934
16935 # Whether dlopen of statically linked programs is supported.
16936 dlopen_self_static=$enable_dlopen_self_static
16937
16938 # Commands to strip libraries.
16939 old_striplib=$lt_old_striplib
16940 striplib=$lt_striplib
16941
16942
16943 # The linker used to build libraries.
16944 LD=$lt_LD
16945
16946 # How to create reloadable object files.
16947 reload_flag=$lt_reload_flag
16948 reload_cmds=$lt_reload_cmds
16949
16950 # Commands used to build an old-style archive.
16951 old_archive_cmds=$lt_old_archive_cmds
16952
16953 # A language specific compiler.
16954 CC=$lt_compiler
16955
16956 # Is the compiler the GNU compiler?
16957 with_gcc=$GCC
16958
16959 # Compiler flag to turn off builtin functions.
16960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16961
16962 # Additional compiler flags for building library objects.
16963 pic_flag=$lt_lt_prog_compiler_pic
16964
16965 # How to pass a linker flag through the compiler.
16966 wl=$lt_lt_prog_compiler_wl
16967
16968 # Compiler flag to prevent dynamic linking.
16969 link_static_flag=$lt_lt_prog_compiler_static
16970
16971 # Does compiler simultaneously support -c and -o options?
16972 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16973
16974 # Whether or not to add -lc for building shared libraries.
16975 build_libtool_need_lc=$archive_cmds_need_lc
16976
16977 # Whether or not to disallow shared libs when runtime libs are static.
16978 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16979
16980 # Compiler flag to allow reflexive dlopens.
16981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16982
16983 # Compiler flag to generate shared objects directly from archives.
16984 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16985
16986 # Whether the compiler copes with passing no objects directly.
16987 compiler_needs_object=$lt_compiler_needs_object
16988
16989 # Create an old-style archive from a shared archive.
16990 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16991
16992 # Create a temporary old-style archive to link instead of a shared archive.
16993 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16994
16995 # Commands used to build a shared archive.
16996 archive_cmds=$lt_archive_cmds
16997 archive_expsym_cmds=$lt_archive_expsym_cmds
16998
16999 # Commands used to build a loadable module if different from building
17000 # a shared archive.
17001 module_cmds=$lt_module_cmds
17002 module_expsym_cmds=$lt_module_expsym_cmds
17003
17004 # Whether we are building with GNU ld or not.
17005 with_gnu_ld=$lt_with_gnu_ld
17006
17007 # Flag that allows shared libraries with undefined symbols to be built.
17008 allow_undefined_flag=$lt_allow_undefined_flag
17009
17010 # Flag that enforces no undefined symbols.
17011 no_undefined_flag=$lt_no_undefined_flag
17012
17013 # Flag to hardcode \$libdir into a binary during linking.
17014 # This must work even if \$libdir does not exist
17015 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17016
17017 # If ld is used when linking, flag to hardcode \$libdir into a binary
17018 # during linking. This must work even if \$libdir does not exist.
17019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17020
17021 # Whether we need a single "-rpath" flag with a separated argument.
17022 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17023
17024 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17025 # DIR into the resulting binary.
17026 hardcode_direct=$hardcode_direct
17027
17028 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17029 # DIR into the resulting binary and the resulting library dependency is
17030 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17031 # library is relocated.
17032 hardcode_direct_absolute=$hardcode_direct_absolute
17033
17034 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17035 # into the resulting binary.
17036 hardcode_minus_L=$hardcode_minus_L
17037
17038 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17039 # into the resulting binary.
17040 hardcode_shlibpath_var=$hardcode_shlibpath_var
17041
17042 # Set to "yes" if building a shared library automatically hardcodes DIR
17043 # into the library and all subsequent libraries and executables linked
17044 # against it.
17045 hardcode_automatic=$hardcode_automatic
17046
17047 # Set to yes if linker adds runtime paths of dependent libraries
17048 # to runtime path list.
17049 inherit_rpath=$inherit_rpath
17050
17051 # Whether libtool must link a program against all its dependency libraries.
17052 link_all_deplibs=$link_all_deplibs
17053
17054 # Set to "yes" if exported symbols are required.
17055 always_export_symbols=$always_export_symbols
17056
17057 # The commands to list exported symbols.
17058 export_symbols_cmds=$lt_export_symbols_cmds
17059
17060 # Symbols that should not be listed in the preloaded symbols.
17061 exclude_expsyms=$lt_exclude_expsyms
17062
17063 # Symbols that must always be exported.
17064 include_expsyms=$lt_include_expsyms
17065
17066 # Commands necessary for linking programs (against libraries) with templates.
17067 prelink_cmds=$lt_prelink_cmds
17068
17069 # Commands necessary for finishing linking programs.
17070 postlink_cmds=$lt_postlink_cmds
17071
17072 # Specify filename containing input files.
17073 file_list_spec=$lt_file_list_spec
17074
17075 # How to hardcode a shared library path into an executable.
17076 hardcode_action=$hardcode_action
17077
17078 # ### END LIBTOOL CONFIG
17079
17080 _LT_EOF
17081
17082 case $host_os in
17083 aix3*)
17084 cat <<\_LT_EOF >> "$cfgfile"
17085 # AIX sometimes has problems with the GCC collect2 program. For some
17086 # reason, if we set the COLLECT_NAMES environment variable, the problems
17087 # vanish in a puff of smoke.
17088 if test "X${COLLECT_NAMES+set}" != Xset; then
17089 COLLECT_NAMES=
17090 export COLLECT_NAMES
17091 fi
17092 _LT_EOF
17093 ;;
17094 esac
17095
17096
17097 ltmain="$ac_aux_dir/ltmain.sh"
17098
17099
17100 # We use sed instead of cat because bash on DJGPP gets confused if
17101 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17102 # text mode, it properly converts lines to CR/LF. This bash problem
17103 # is reportedly fixed, but why not run on old versions too?
17104 sed '$q' "$ltmain" >> "$cfgfile" \
17105 || (rm -f "$cfgfile"; exit 1)
17106
17107 if test x"$xsi_shell" = xyes; then
17108 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17109 func_dirname ()\
17110 {\
17111 \ case ${1} in\
17112 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17113 \ * ) func_dirname_result="${3}" ;;\
17114 \ esac\
17115 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17116 && mv -f "$cfgfile.tmp" "$cfgfile" \
17117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17118 test 0 -eq $? || _lt_function_replace_fail=:
17119
17120
17121 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17122 func_basename ()\
17123 {\
17124 \ func_basename_result="${1##*/}"\
17125 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17126 && mv -f "$cfgfile.tmp" "$cfgfile" \
17127 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17128 test 0 -eq $? || _lt_function_replace_fail=:
17129
17130
17131 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17132 func_dirname_and_basename ()\
17133 {\
17134 \ case ${1} in\
17135 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17136 \ * ) func_dirname_result="${3}" ;;\
17137 \ esac\
17138 \ func_basename_result="${1##*/}"\
17139 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17140 && mv -f "$cfgfile.tmp" "$cfgfile" \
17141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17142 test 0 -eq $? || _lt_function_replace_fail=:
17143
17144
17145 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17146 func_stripname ()\
17147 {\
17148 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17149 \ # positional parameters, so assign one to ordinary parameter first.\
17150 \ func_stripname_result=${3}\
17151 \ func_stripname_result=${func_stripname_result#"${1}"}\
17152 \ func_stripname_result=${func_stripname_result%"${2}"}\
17153 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17154 && mv -f "$cfgfile.tmp" "$cfgfile" \
17155 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17156 test 0 -eq $? || _lt_function_replace_fail=:
17157
17158
17159 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17160 func_split_long_opt ()\
17161 {\
17162 \ func_split_long_opt_name=${1%%=*}\
17163 \ func_split_long_opt_arg=${1#*=}\
17164 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17165 && mv -f "$cfgfile.tmp" "$cfgfile" \
17166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17167 test 0 -eq $? || _lt_function_replace_fail=:
17168
17169
17170 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17171 func_split_short_opt ()\
17172 {\
17173 \ func_split_short_opt_arg=${1#??}\
17174 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17175 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17176 && mv -f "$cfgfile.tmp" "$cfgfile" \
17177 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17178 test 0 -eq $? || _lt_function_replace_fail=:
17179
17180
17181 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17182 func_lo2o ()\
17183 {\
17184 \ case ${1} in\
17185 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17186 \ *) func_lo2o_result=${1} ;;\
17187 \ esac\
17188 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17189 && mv -f "$cfgfile.tmp" "$cfgfile" \
17190 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17191 test 0 -eq $? || _lt_function_replace_fail=:
17192
17193
17194 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17195 func_xform ()\
17196 {\
17197 func_xform_result=${1%.*}.lo\
17198 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17199 && mv -f "$cfgfile.tmp" "$cfgfile" \
17200 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17201 test 0 -eq $? || _lt_function_replace_fail=:
17202
17203
17204 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17205 func_arith ()\
17206 {\
17207 func_arith_result=$(( $* ))\
17208 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17209 && mv -f "$cfgfile.tmp" "$cfgfile" \
17210 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17211 test 0 -eq $? || _lt_function_replace_fail=:
17212
17213
17214 sed -e '/^func_len ()$/,/^} # func_len /c\
17215 func_len ()\
17216 {\
17217 func_len_result=${#1}\
17218 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17219 && mv -f "$cfgfile.tmp" "$cfgfile" \
17220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17221 test 0 -eq $? || _lt_function_replace_fail=:
17222
17223 fi
17224
17225 if test x"$lt_shell_append" = xyes; then
17226 sed -e '/^func_append ()$/,/^} # func_append /c\
17227 func_append ()\
17228 {\
17229 eval "${1}+=\\${2}"\
17230 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17231 && mv -f "$cfgfile.tmp" "$cfgfile" \
17232 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17233 test 0 -eq $? || _lt_function_replace_fail=:
17234
17235
17236 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17237 func_append_quoted ()\
17238 {\
17239 \ func_quote_for_eval "${2}"\
17240 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17241 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17242 && mv -f "$cfgfile.tmp" "$cfgfile" \
17243 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17244 test 0 -eq $? || _lt_function_replace_fail=:
17245
17246
17247 # Save a `func_append' function call where possible by direct use of '+='
17248 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17249 && mv -f "$cfgfile.tmp" "$cfgfile" \
17250 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17251 test 0 -eq $? || _lt_function_replace_fail=:
17252 else
17253 # Save a `func_append' function call even when '+=' is not available
17254 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17255 && mv -f "$cfgfile.tmp" "$cfgfile" \
17256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17257 test 0 -eq $? || _lt_function_replace_fail=:
17258 fi
17259
17260 if test x"$_lt_function_replace_fail" = x":"; then
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17262 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17263 fi
17264
17265
17266 mv -f "$cfgfile" "$ofile" ||
17267 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17268 chmod +x "$ofile"
17269
17270 ;;
17271 "default-1":C)
17272 for ac_file in $CONFIG_FILES; do
17273 # Support "outfile[:infile[:infile...]]"
17274 case "$ac_file" in
17275 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17276 esac
17277 # PO directories have a Makefile.in generated from Makefile.in.in.
17278 case "$ac_file" in */Makefile.in)
17279 # Adjust a relative srcdir.
17280 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17281 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17282 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17283 # In autoconf-2.13 it is called $ac_given_srcdir.
17284 # In autoconf-2.50 it is called $srcdir.
17285 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17286 case "$ac_given_srcdir" in
17287 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17288 /*) top_srcdir="$ac_given_srcdir" ;;
17289 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17290 esac
17291 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17292 rm -f "$ac_dir/POTFILES"
17293 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17294 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17295 POMAKEFILEDEPS="POTFILES.in"
17296 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17297 # on $ac_dir but don't depend on user-specified configuration
17298 # parameters.
17299 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17300 # The LINGUAS file contains the set of available languages.
17301 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17302 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17303 fi
17304 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17305 # Hide the ALL_LINGUAS assigment from automake.
17306 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17307 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17308 else
17309 # The set of available languages was given in configure.in.
17310 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17311 fi
17312 case "$ac_given_srcdir" in
17313 .) srcdirpre= ;;
17314 *) srcdirpre='$(srcdir)/' ;;
17315 esac
17316 POFILES=
17317 GMOFILES=
17318 UPDATEPOFILES=
17319 DUMMYPOFILES=
17320 for lang in $ALL_LINGUAS; do
17321 POFILES="$POFILES $srcdirpre$lang.po"
17322 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17323 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17324 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17325 done
17326 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17327 # environment variable.
17328 INST_LINGUAS=
17329 if test -n "$ALL_LINGUAS"; then
17330 for presentlang in $ALL_LINGUAS; do
17331 useit=no
17332 if test "%UNSET%" != "$LINGUAS"; then
17333 desiredlanguages="$LINGUAS"
17334 else
17335 desiredlanguages="$ALL_LINGUAS"
17336 fi
17337 for desiredlang in $desiredlanguages; do
17338 # Use the presentlang catalog if desiredlang is
17339 # a. equal to presentlang, or
17340 # b. a variant of presentlang (because in this case,
17341 # presentlang can be used as a fallback for messages
17342 # which are not translated in the desiredlang catalog).
17343 case "$desiredlang" in
17344 "$presentlang"*) useit=yes;;
17345 esac
17346 done
17347 if test $useit = yes; then
17348 INST_LINGUAS="$INST_LINGUAS $presentlang"
17349 fi
17350 done
17351 fi
17352 CATALOGS=
17353 if test -n "$INST_LINGUAS"; then
17354 for lang in $INST_LINGUAS; do
17355 CATALOGS="$CATALOGS $lang.gmo"
17356 done
17357 fi
17358 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17359 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"
17360 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17361 if test -f "$f"; then
17362 case "$f" in
17363 *.orig | *.bak | *~) ;;
17364 *) cat "$f" >> "$ac_dir/Makefile" ;;
17365 esac
17366 fi
17367 done
17368 fi
17369 ;;
17370 esac
17371 done ;;
17372 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
17373 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17374 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17375 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17376 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17377 if test "x$cgen_cpu_prefix" != x ; then
17378 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
17379 fi ;;
17380
17381 esac
17382 done # for ac_tag
17383
17384
17385 as_fn_exit 0
17386 _ACEOF
17387 ac_clean_files=$ac_clean_files_save
17388
17389 test $ac_write_fail = 0 ||
17390 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17391
17392
17393 # configure is writing to config.log, and then calls config.status.
17394 # config.status does its own redirection, appending to config.log.
17395 # Unfortunately, on DOS this fails, as config.log is still kept open
17396 # by configure, so config.status won't be able to write to it; its
17397 # output is simply discarded. So we exec the FD to /dev/null,
17398 # effectively closing config.log, so it can be properly (re)opened and
17399 # appended to by config.status. When coming back to configure, we
17400 # need to make the FD available again.
17401 if test "$no_create" != yes; then
17402 ac_cs_success=:
17403 ac_config_status_args=
17404 test "$silent" = yes &&
17405 ac_config_status_args="$ac_config_status_args --quiet"
17406 exec 5>/dev/null
17407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17408 exec 5>>config.log
17409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17410 # would make configure fail if this is the last instruction.
17411 $ac_cs_success || as_fn_exit $?
17412 fi
17413 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17415 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17416 fi
17417
This page took 0.470435 seconds and 4 git commands to generate.