07bcee097b7437fc9993e871c23cdfbe826602c2
[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 for gas 2.25.51.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='gas'
558 PACKAGE_TARNAME='gas'
559 PACKAGE_VERSION='2.25.51'
560 PACKAGE_STRING='gas 2.25.51'
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 zlibinc
606 LIBM
607 ALLOCA
608 GENINSRC_NEVER_FALSE
609 GENINSRC_NEVER_TRUE
610 MAINT
611 MAINTAINER_MODE_FALSE
612 MAINTAINER_MODE_TRUE
613 MSGMERGE
614 MSGFMT
615 MKINSTALLDIRS
616 CATOBJEXT
617 GENCAT
618 INSTOBJEXT
619 DATADIRNAME
620 CATALOGS
621 POSUB
622 GMSGFMT
623 XGETTEXT
624 INCINTL
625 LIBINTL_DEP
626 LIBINTL
627 USE_NLS
628 LEXLIB
629 LEX_OUTPUT_ROOT
630 LEX
631 YFLAGS
632 YACC
633 OPCODES_LIB
634 atof
635 install_tooldir
636 te_file
637 obj_format
638 target_cpu_type
639 extra_objects
640 cgen_cpu_prefix
641 GDBINIT
642 NO_WERROR
643 WARN_CFLAGS
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 RANLIB
650 AR
651 OBJDUMP
652 LN_S
653 NM
654 ac_ct_DUMPBIN
655 DUMPBIN
656 LD
657 FGREP
658 SED
659 LIBTOOL
660 EGREP
661 GREP
662 CPP
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
677 AWK
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 target_os
703 target_vendor
704 target_cpu
705 target
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_dependency_tracking
756 enable_shared
757 enable_static
758 with_pic
759 enable_fast_install
760 with_gnu_ld
761 enable_libtool_lock
762 enable_plugins
763 enable_largefile
764 enable_targets
765 enable_checking
766 enable_werror
767 enable_build_warnings
768 enable_nls
769 enable_maintainer_mode
770 with_system_zlib
771 '
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP
781 YACC
782 YFLAGS'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 ac_unrecognized_opts=
789 ac_unrecognized_sep=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
792 cache_file=/dev/null
793 exec_prefix=NONE
794 no_create=
795 no_recursion=
796 prefix=NONE
797 program_prefix=NONE
798 program_suffix=NONE
799 program_transform_name=s,x,x,
800 silent=
801 site=
802 srcdir=
803 verbose=
804 x_includes=NONE
805 x_libraries=NONE
806
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir='${exec_prefix}/bin'
814 sbindir='${exec_prefix}/sbin'
815 libexecdir='${exec_prefix}/libexec'
816 datarootdir='${prefix}/share'
817 datadir='${datarootdir}'
818 sysconfdir='${prefix}/etc'
819 sharedstatedir='${prefix}/com'
820 localstatedir='${prefix}/var'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *) ac_optarg=yes ;;
847 esac
848
849 # Accept the important Cygnus configure options, so we can diagnose typos.
850
851 case $ac_dashdash$ac_option in
852 --)
853 ac_dashdash=yes ;;
854
855 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 ac_prev=bindir ;;
857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 bindir=$ac_optarg ;;
859
860 -build | --build | --buil | --bui | --bu)
861 ac_prev=build_alias ;;
862 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
863 build_alias=$ac_optarg ;;
864
865 -cache-file | --cache-file | --cache-fil | --cache-fi \
866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
867 ac_prev=cache_file ;;
868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
870 cache_file=$ac_optarg ;;
871
872 --config-cache | -C)
873 cache_file=config.cache ;;
874
875 -datadir | --datadir | --datadi | --datad)
876 ac_prev=datadir ;;
877 -datadir=* | --datadir=* | --datadi=* | --datad=*)
878 datadir=$ac_optarg ;;
879
880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
881 | --dataroo | --dataro | --datar)
882 ac_prev=datarootdir ;;
883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
885 datarootdir=$ac_optarg ;;
886
887 -disable-* | --disable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
895 *"
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=no ;;
902
903 -docdir | --docdir | --docdi | --doc | --do)
904 ac_prev=docdir ;;
905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 docdir=$ac_optarg ;;
907
908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 ac_prev=dvidir ;;
910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 dvidir=$ac_optarg ;;
912
913 -enable-* | --enable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=\$ac_optarg ;;
928
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
937
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
941
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
948
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
953
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
959
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
966
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
971
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
976
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
983
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
988
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
995
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1000
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1004
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1008
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1012
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1021
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1026
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1033
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1040
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1057
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1062
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1067
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1071
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1077
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1088
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1093
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1098
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1105
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1110
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1113
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1116
1117 -with-* | --with-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error "invalid package name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1125 *"
1126 "with_$ac_useropt"
1127 "*) ;;
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1130 esac
1131 eval with_$ac_useropt=\$ac_optarg ;;
1132
1133 -without-* | --without-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=no ;;
1148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
1167 -*) as_fn_error "unrecognized option: \`$ac_option'
1168 Try \`$0 --help' for more information."
1169 ;;
1170
1171 *=*)
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 case $ac_envvar in #(
1175 '' | [0-9]* | *[!_$as_cr_alnum]* )
1176 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1177 esac
1178 eval $ac_envvar=\$ac_optarg
1179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1186 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187 ;;
1188
1189 esac
1190 done
1191
1192 if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1194 as_fn_error "missing argument to $ac_option"
1195 fi
1196
1197 if test -n "$ac_unrecognized_opts"; then
1198 case $enable_option_checking in
1199 no) ;;
1200 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 esac
1203 fi
1204
1205 # Check all directory arguments for consistency.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1210 do
1211 eval ac_val=\$$ac_var
1212 # Remove trailing slashes.
1213 case $ac_val in
1214 */ )
1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1216 eval $ac_var=\$ac_val;;
1217 esac
1218 # Be sure to have absolute directory names.
1219 case $ac_val in
1220 [\\/$]* | ?:[\\/]* ) continue;;
1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 esac
1223 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1224 done
1225
1226 # There might be people who depend on the old broken behavior: `$host'
1227 # used to hold the argument of --host etc.
1228 # FIXME: To remove some day.
1229 build=$build_alias
1230 host=$host_alias
1231 target=$target_alias
1232
1233 # FIXME: To remove some day.
1234 if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
1237 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1238 If a cross compiler is detected then cross compile mode will be used." >&2
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289 else
1290 ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures gas 2.25.51 to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1378
1379 cat <<\_ACEOF
1380
1381 Program names:
1382 --program-prefix=PREFIX prepend PREFIX to installed program names
1383 --program-suffix=SUFFIX append SUFFIX to installed program names
1384 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385
1386 System types:
1387 --build=BUILD configure for building on BUILD [guessed]
1388 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 --target=TARGET configure for building compilers for TARGET [HOST]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of gas 2.25.51:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --disable-dependency-tracking speeds up one-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --enable-shared[=PKGS] build shared libraries [default=yes]
1406 --enable-static[=PKGS] build static libraries [default=yes]
1407 --enable-fast-install[=PKGS]
1408 optimize for fast installation [default=yes]
1409 --disable-libtool-lock avoid locking (might break parallel builds)
1410 --enable-plugins Enable support for plugins
1411 --disable-largefile omit support for large files
1412 --enable-targets alternative target configurations besides the primary
1413 --enable-checking enable run-time checks
1414 --enable-werror treat compile warnings as errors
1415 --enable-build-warnings enable build-time compiler warnings
1416 --disable-nls do not use Native Language Support
1417 --enable-maintainer-mode enable make rules and dependencies not useful
1418 (and sometimes confusing) to the casual installer
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1426 --with-system-zlib use installed libz
1427
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CPP C preprocessor
1437 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1438 the first program found out of: `bison -y', `byacc', `yacc'.
1439 YFLAGS The list of arguments that will be passed by default to $YACC.
1440 This script will default YFLAGS to the empty string to avoid a
1441 default value of `-d' given by some make applications.
1442
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1445
1446 Report bugs to the package provider.
1447 _ACEOF
1448 ac_status=$?
1449 fi
1450
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1456 continue
1457 ac_builddir=.
1458
1459 case "$ac_dir" in
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *)
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1468 esac ;;
1469 esac
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1474
1475 case $srcdir in
1476 .) # We are building in place.
1477 ac_srcdir=.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1484 *) # Relative name.
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1488 esac
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1494 echo &&
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1499 else
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1501 fi || ac_status=$?
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1503 done
1504 fi
1505
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1508 cat <<\_ACEOF
1509 gas configure 2.25.51
1510 generated by GNU Autoconf 2.64
1511
1512 Copyright (C) 2009 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1515 _ACEOF
1516 exit
1517 fi
1518
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1522
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1527 {
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1531 case "(($ac_try" in
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1534 esac
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1538 ac_status=$?
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1543 fi
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1549 ac_retval=0
1550 else
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1553
1554 ac_retval=1
1555 fi
1556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1557 return $ac_retval
1558
1559 } # ac_fn_c_try_compile
1560
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_link ()
1565 {
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1569 case "(($ac_try" in
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1572 esac
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1576 ac_status=$?
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1581 fi
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 $as_test_x conftest$ac_exeext
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1604
1605 } # ac_fn_c_try_link
1606
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_cpp ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } >/dev/null && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 }; then :
1632 ac_retval=0
1633 else
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638 fi
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 return $ac_retval
1641
1642 } # ac_fn_c_try_cpp
1643
1644 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647 # the include files in INCLUDES and setting the cache variable VAR
1648 # accordingly.
1649 ac_fn_c_check_header_mongrel ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1656 $as_echo_n "(cached) " >&6
1657 fi
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 else
1662 # Is the header compilable?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664 $as_echo_n "checking $2 usability... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 ac_header_compiler=yes
1672 else
1673 ac_header_compiler=no
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677 $as_echo "$ac_header_compiler" >&6; }
1678
1679 # Is the header present?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681 $as_echo_n "checking $2 presence... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_cpp "$LINENO"; then :
1687 ac_header_preproc=yes
1688 else
1689 ac_header_preproc=no
1690 fi
1691 rm -f conftest.err conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693 $as_echo "$ac_header_preproc" >&6; }
1694
1695 # So? What about this header?
1696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1697 yes:no: )
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703 no:yes:* )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1707 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1711 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ;;
1715 esac
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1719 $as_echo_n "(cached) " >&6
1720 else
1721 eval "$3=\$ac_header_compiler"
1722 fi
1723 eval ac_res=\$$3
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 fi
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728
1729 } # ac_fn_c_check_header_mongrel
1730
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1735 ac_fn_c_try_run ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749 { { case "(($ac_try" in
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_try") 2>&5
1756 ac_status=$?
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; }; }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: program exited with status $ac_status" >&5
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=$ac_status
1766 fi
1767 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1770
1771 } # ac_fn_c_try_run
1772
1773 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists and can be compiled using the include files in
1776 # INCLUDES, setting the cache variable VAR accordingly.
1777 ac_fn_c_check_header_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784 else
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1787 $4
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802 } # ac_fn_c_check_header_compile
1803
1804 # ac_fn_c_check_func LINENO FUNC VAR
1805 # ----------------------------------
1806 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1807 ac_fn_c_check_func ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813 $as_echo_n "(cached) " >&6
1814 else
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819 #define $2 innocuous_$2
1820
1821 /* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char $2 (); below.
1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824 <limits.h> exists even on freestanding compilers. */
1825
1826 #ifdef __STDC__
1827 # include <limits.h>
1828 #else
1829 # include <assert.h>
1830 #endif
1831
1832 #undef $2
1833
1834 /* Override any GCC internal prototype to avoid an error.
1835 Use char because int might match the return type of a GCC
1836 builtin and then its argument prototype would still apply. */
1837 #ifdef __cplusplus
1838 extern "C"
1839 #endif
1840 char $2 ();
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined __stub_$2 || defined __stub___$2
1845 choke me
1846 #endif
1847
1848 int
1849 main ()
1850 {
1851 return $2 ();
1852 ;
1853 return 0;
1854 }
1855 _ACEOF
1856 if ac_fn_c_try_link "$LINENO"; then :
1857 eval "$3=yes"
1858 else
1859 eval "$3=no"
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext \
1862 conftest$ac_exeext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869 } # ac_fn_c_check_func
1870
1871 # ac_fn_c_check_decl LINENO SYMBOL VAR
1872 # ------------------------------------
1873 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1874 ac_fn_c_check_decl ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 as_decl_name=`echo $2|sed 's/ *(.*//'`
1878 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1880 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 $as_echo_n "(cached) " >&6
1883 else
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 $4
1887 int
1888 main ()
1889 {
1890 #ifndef $as_decl_name
1891 #ifdef __cplusplus
1892 (void) $as_decl_use;
1893 #else
1894 (void) $as_decl_name;
1895 #endif
1896 #endif
1897
1898 ;
1899 return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913
1914 } # ac_fn_c_check_decl
1915 cat >config.log <<_ACEOF
1916 This file contains any messages produced by compilers while
1917 running configure, to aid debugging if configure makes a mistake.
1918
1919 It was created by gas $as_me 2.25.51, which was
1920 generated by GNU Autoconf 2.64. Invocation command line was
1921
1922 $ $0 $@
1923
1924 _ACEOF
1925 exec 5>>config.log
1926 {
1927 cat <<_ASUNAME
1928 ## --------- ##
1929 ## Platform. ##
1930 ## --------- ##
1931
1932 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937
1938 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940
1941 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1944 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1945 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948
1949 _ASUNAME
1950
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 for as_dir in $PATH
1953 do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
1956 $as_echo "PATH: $as_dir"
1957 done
1958 IFS=$as_save_IFS
1959
1960 } >&5
1961
1962 cat >&5 <<_ACEOF
1963
1964
1965 ## ----------- ##
1966 ## Core tests. ##
1967 ## ----------- ##
1968
1969 _ACEOF
1970
1971
1972 # Keep a trace of the command line.
1973 # Strip out --no-create and --no-recursion so they do not pile up.
1974 # Strip out --silent because we don't want to record it for future runs.
1975 # Also quote any args containing shell meta-characters.
1976 # Make two passes to allow for proper duplicate-argument suppression.
1977 ac_configure_args=
1978 ac_configure_args0=
1979 ac_configure_args1=
1980 ac_must_keep_next=false
1981 for ac_pass in 1 2
1982 do
1983 for ac_arg
1984 do
1985 case $ac_arg in
1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988 | -silent | --silent | --silen | --sile | --sil)
1989 continue ;;
1990 *\'*)
1991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1992 esac
1993 case $ac_pass in
1994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1995 2)
1996 as_fn_append ac_configure_args1 " '$ac_arg'"
1997 if test $ac_must_keep_next = true; then
1998 ac_must_keep_next=false # Got value, back to normal.
1999 else
2000 case $ac_arg in
2001 *=* | --config-cache | -C | -disable-* | --disable-* \
2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004 | -with-* | --with-* | -without-* | --without-* | --x)
2005 case "$ac_configure_args0 " in
2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2007 esac
2008 ;;
2009 -* ) ac_must_keep_next=true ;;
2010 esac
2011 fi
2012 as_fn_append ac_configure_args " '$ac_arg'"
2013 ;;
2014 esac
2015 done
2016 done
2017 { ac_configure_args0=; unset ac_configure_args0;}
2018 { ac_configure_args1=; unset ac_configure_args1;}
2019
2020 # When interrupted or exit'd, cleanup temporary files, and complete
2021 # config.log. We remove comments because anyway the quotes in there
2022 # would cause problems or look ugly.
2023 # WARNING: Use '\'' to represent an apostrophe within the trap.
2024 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2025 trap 'exit_status=$?
2026 # Save into config.log some information that might help in debugging.
2027 {
2028 echo
2029
2030 cat <<\_ASBOX
2031 ## ---------------- ##
2032 ## Cache variables. ##
2033 ## ---------------- ##
2034 _ASBOX
2035 echo
2036 # The following way of writing the cache mishandles newlines in values,
2037 (
2038 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2039 eval ac_val=\$$ac_var
2040 case $ac_val in #(
2041 *${as_nl}*)
2042 case $ac_var in #(
2043 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2044 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2045 esac
2046 case $ac_var in #(
2047 _ | IFS | as_nl) ;; #(
2048 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2049 *) { eval $ac_var=; unset $ac_var;} ;;
2050 esac ;;
2051 esac
2052 done
2053 (set) 2>&1 |
2054 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2055 *${as_nl}ac_space=\ *)
2056 sed -n \
2057 "s/'\''/'\''\\\\'\'''\''/g;
2058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2059 ;; #(
2060 *)
2061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2062 ;;
2063 esac |
2064 sort
2065 )
2066 echo
2067
2068 cat <<\_ASBOX
2069 ## ----------------- ##
2070 ## Output variables. ##
2071 ## ----------------- ##
2072 _ASBOX
2073 echo
2074 for ac_var in $ac_subst_vars
2075 do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 esac
2080 $as_echo "$ac_var='\''$ac_val'\''"
2081 done | sort
2082 echo
2083
2084 if test -n "$ac_subst_files"; then
2085 cat <<\_ASBOX
2086 ## ------------------- ##
2087 ## File substitutions. ##
2088 ## ------------------- ##
2089 _ASBOX
2090 echo
2091 for ac_var in $ac_subst_files
2092 do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in
2095 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 esac
2097 $as_echo "$ac_var='\''$ac_val'\''"
2098 done | sort
2099 echo
2100 fi
2101
2102 if test -s confdefs.h; then
2103 cat <<\_ASBOX
2104 ## ----------- ##
2105 ## confdefs.h. ##
2106 ## ----------- ##
2107 _ASBOX
2108 echo
2109 cat confdefs.h
2110 echo
2111 fi
2112 test "$ac_signal" != 0 &&
2113 $as_echo "$as_me: caught signal $ac_signal"
2114 $as_echo "$as_me: exit $exit_status"
2115 } >&5
2116 rm -f core *.core core.conftest.* &&
2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2118 exit $exit_status
2119 ' 0
2120 for ac_signal in 1 2 13 15; do
2121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122 done
2123 ac_signal=0
2124
2125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2126 rm -f -r conftest* confdefs.h
2127
2128 $as_echo "/* confdefs.h */" > confdefs.h
2129
2130 # Predefined preprocessor variables.
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_NAME "$PACKAGE_NAME"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_STRING "$PACKAGE_STRING"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_URL "$PACKAGE_URL"
2154 _ACEOF
2155
2156
2157 # Let the site file select an alternate cache file if it wants to.
2158 # Prefer an explicitly selected file to automatically selected ones.
2159 ac_site_file1=NONE
2160 ac_site_file2=NONE
2161 if test -n "$CONFIG_SITE"; then
2162 ac_site_file1=$CONFIG_SITE
2163 elif test "x$prefix" != xNONE; then
2164 ac_site_file1=$prefix/share/config.site
2165 ac_site_file2=$prefix/etc/config.site
2166 else
2167 ac_site_file1=$ac_default_prefix/share/config.site
2168 ac_site_file2=$ac_default_prefix/etc/config.site
2169 fi
2170 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2171 do
2172 test "x$ac_site_file" = xNONE && continue
2173 if test -r "$ac_site_file"; then
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2175 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2176 sed 's/^/| /' "$ac_site_file" >&5
2177 . "$ac_site_file"
2178 fi
2179 done
2180
2181 if test -r "$cache_file"; then
2182 # Some versions of bash will fail to source /dev/null (special
2183 # files actually), so we avoid doing that.
2184 if test -f "$cache_file"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2186 $as_echo "$as_me: loading cache $cache_file" >&6;}
2187 case $cache_file in
2188 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2189 *) . "./$cache_file";;
2190 esac
2191 fi
2192 else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2194 $as_echo "$as_me: creating cache $cache_file" >&6;}
2195 >$cache_file
2196 fi
2197
2198 # Check that the precious variables saved in the cache have kept the same
2199 # value.
2200 ac_cache_corrupted=false
2201 for ac_var in $ac_precious_vars; do
2202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2203 eval ac_new_set=\$ac_env_${ac_var}_set
2204 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2205 eval ac_new_val=\$ac_env_${ac_var}_value
2206 case $ac_old_set,$ac_new_set in
2207 set,)
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2209 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2210 ac_cache_corrupted=: ;;
2211 ,set)
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2215 ,);;
2216 *)
2217 if test "x$ac_old_val" != "x$ac_new_val"; then
2218 # differences in whitespace do not lead to failure.
2219 ac_old_val_w=`echo x $ac_old_val`
2220 ac_new_val_w=`echo x $ac_new_val`
2221 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2223 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2224 ac_cache_corrupted=:
2225 else
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2227 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2228 eval $ac_var=\$ac_old_val
2229 fi
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2231 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2233 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2234 fi;;
2235 esac
2236 # Pass precious variables to config.status.
2237 if test "$ac_new_set" = set; then
2238 case $ac_new_val in
2239 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2240 *) ac_arg=$ac_var=$ac_new_val ;;
2241 esac
2242 case " $ac_configure_args " in
2243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2244 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245 esac
2246 fi
2247 done
2248 if $ac_cache_corrupted; then
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2252 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2253 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2254 fi
2255 ## -------------------- ##
2256 ## Main body of script. ##
2257 ## -------------------- ##
2258
2259 ac_ext=c
2260 ac_cpp='$CPP $CPPFLAGS'
2261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264
2265
2266
2267
2268
2269
2270
2271 ac_aux_dir=
2272 for ac_dir in .. "$srcdir"/..; do
2273 for ac_t in install-sh install.sh shtool; do
2274 if test -f "$ac_dir/$ac_t"; then
2275 ac_aux_dir=$ac_dir
2276 ac_install_sh="$ac_aux_dir/$ac_t -c"
2277 break 2
2278 fi
2279 done
2280 done
2281 if test -z "$ac_aux_dir"; then
2282 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2283 fi
2284
2285 # These three variables are undocumented and unsupported,
2286 # and are intended to be withdrawn in a future Autoconf release.
2287 # They can cause serious problems if a builder's source tree is in a directory
2288 # whose full name contains unusual characters.
2289 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2290 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2291 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2292
2293
2294 # Make sure we can run config.sub.
2295 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2296 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2297
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2299 $as_echo_n "checking build system type... " >&6; }
2300 if test "${ac_cv_build+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 ac_build_alias=$build_alias
2304 test "x$ac_build_alias" = x &&
2305 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2306 test "x$ac_build_alias" = x &&
2307 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2308 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2309 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2310
2311 fi
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2313 $as_echo "$ac_cv_build" >&6; }
2314 case $ac_cv_build in
2315 *-*-*) ;;
2316 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2317 esac
2318 build=$ac_cv_build
2319 ac_save_IFS=$IFS; IFS='-'
2320 set x $ac_cv_build
2321 shift
2322 build_cpu=$1
2323 build_vendor=$2
2324 shift; shift
2325 # Remember, the first character of IFS is used to create $*,
2326 # except with old shells:
2327 build_os=$*
2328 IFS=$ac_save_IFS
2329 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2330
2331
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2333 $as_echo_n "checking host system type... " >&6; }
2334 if test "${ac_cv_host+set}" = set; then :
2335 $as_echo_n "(cached) " >&6
2336 else
2337 if test "x$host_alias" = x; then
2338 ac_cv_host=$ac_cv_build
2339 else
2340 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2341 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2342 fi
2343
2344 fi
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2346 $as_echo "$ac_cv_host" >&6; }
2347 case $ac_cv_host in
2348 *-*-*) ;;
2349 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2350 esac
2351 host=$ac_cv_host
2352 ac_save_IFS=$IFS; IFS='-'
2353 set x $ac_cv_host
2354 shift
2355 host_cpu=$1
2356 host_vendor=$2
2357 shift; shift
2358 # Remember, the first character of IFS is used to create $*,
2359 # except with old shells:
2360 host_os=$*
2361 IFS=$ac_save_IFS
2362 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2363
2364
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2366 $as_echo_n "checking target system type... " >&6; }
2367 if test "${ac_cv_target+set}" = set; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 if test "x$target_alias" = x; then
2371 ac_cv_target=$ac_cv_host
2372 else
2373 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2374 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2375 fi
2376
2377 fi
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2379 $as_echo "$ac_cv_target" >&6; }
2380 case $ac_cv_target in
2381 *-*-*) ;;
2382 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2383 esac
2384 target=$ac_cv_target
2385 ac_save_IFS=$IFS; IFS='-'
2386 set x $ac_cv_target
2387 shift
2388 target_cpu=$1
2389 target_vendor=$2
2390 shift; shift
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2393 target_os=$*
2394 IFS=$ac_save_IFS
2395 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2396
2397
2398 # The aliases save the names the user supplied, while $host etc.
2399 # will get canonicalized.
2400 test -n "$target_alias" &&
2401 test "$program_prefix$program_suffix$program_transform_name" = \
2402 NONENONEs,x,x, &&
2403 program_prefix=${target_alias}-
2404 ac_ext=c
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if test "${ac_cv_prog_CC+set}" = set; then :
2415 $as_echo_n "(cached) " >&6
2416 else
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC="$CC" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2433 IFS=$as_save_IFS
2434
2435 fi
2436 fi
2437 CC=$ac_cv_prog_CC
2438 if test -n "$CC"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2440 $as_echo "$CC" >&6; }
2441 else
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2443 $as_echo "no" >&6; }
2444 fi
2445
2446
2447 fi
2448 if test -z "$ac_cv_prog_CC"; then
2449 ac_ct_CC=$CC
2450 # Extract the first word of "gcc", so it can be a program name with args.
2451 set dummy gcc; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$ac_ct_CC"; then
2458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_CC="gcc"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2480 $as_echo "$ac_ct_CC" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486 if test "x$ac_ct_CC" = x; then
2487 CC=""
2488 else
2489 case $cross_compiling:$ac_tool_warned in
2490 yes:)
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493 ac_tool_warned=yes ;;
2494 esac
2495 CC=$ac_ct_CC
2496 fi
2497 else
2498 CC="$ac_cv_prog_CC"
2499 fi
2500
2501 if test -z "$CC"; then
2502 if test -n "$ac_tool_prefix"; then
2503 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2504 set dummy ${ac_tool_prefix}cc; ac_word=$2
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_CC+set}" = set; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_CC="${ac_tool_prefix}cc"
2521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 CC=$ac_cv_prog_CC
2531 if test -n "$CC"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2533 $as_echo "$CC" >&6; }
2534 else
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536 $as_echo "no" >&6; }
2537 fi
2538
2539
2540 fi
2541 fi
2542 if test -z "$CC"; then
2543 # Extract the first word of "cc", so it can be a program name with args.
2544 set dummy cc; ac_word=$2
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546 $as_echo_n "checking for $ac_word... " >&6; }
2547 if test "${ac_cv_prog_CC+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 else
2553 ac_prog_rejected=no
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2562 ac_prog_rejected=yes
2563 continue
2564 fi
2565 ac_cv_prog_CC="cc"
2566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 if test $ac_prog_rejected = yes; then
2574 # We found a bogon in the path, so make sure we never use it.
2575 set dummy $ac_cv_prog_CC
2576 shift
2577 if test $# != 0; then
2578 # We chose a different compiler from the bogus one.
2579 # However, it has the same basename, so the bogon will be chosen
2580 # first if we set CC to just the basename; use the full file name.
2581 shift
2582 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2583 fi
2584 fi
2585 fi
2586 fi
2587 CC=$ac_cv_prog_CC
2588 if test -n "$CC"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2590 $as_echo "$CC" >&6; }
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596
2597 fi
2598 if test -z "$CC"; then
2599 if test -n "$ac_tool_prefix"; then
2600 for ac_prog in cl.exe
2601 do
2602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_CC+set}" = set; then :
2607 $as_echo_n "(cached) " >&6
2608 else
2609 if test -n "$CC"; then
2610 ac_cv_prog_CC="$CC" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 CC=$ac_cv_prog_CC
2630 if test -n "$CC"; then
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2632 $as_echo "$CC" >&6; }
2633 else
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639 test -n "$CC" && break
2640 done
2641 fi
2642 if test -z "$CC"; then
2643 ac_ct_CC=$CC
2644 for ac_prog in cl.exe
2645 do
2646 # Extract the first word of "$ac_prog", so it can be a program name with args.
2647 set dummy $ac_prog; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$ac_ct_CC"; then
2654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_ac_ct_CC="$ac_prog"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667 done
2668 done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2674 if test -n "$ac_ct_CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2676 $as_echo "$ac_ct_CC" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682
2683 test -n "$ac_ct_CC" && break
2684 done
2685
2686 if test "x$ac_ct_CC" = x; then
2687 CC=""
2688 else
2689 case $cross_compiling:$ac_tool_warned in
2690 yes:)
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2693 ac_tool_warned=yes ;;
2694 esac
2695 CC=$ac_ct_CC
2696 fi
2697 fi
2698
2699 fi
2700
2701
2702 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 as_fn_error "no acceptable C compiler found in \$PATH
2705 See \`config.log' for more details." "$LINENO" 5; }
2706
2707 # Provide some information about the compiler.
2708 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2709 set X $ac_compile
2710 ac_compiler=$2
2711 for ac_option in --version -v -V -qversion; do
2712 { { ac_try="$ac_compiler $ac_option >&5"
2713 case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716 esac
2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718 $as_echo "$ac_try_echo"; } >&5
2719 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2720 ac_status=$?
2721 if test -s conftest.err; then
2722 sed '10a\
2723 ... rest of stderr output deleted ...
2724 10q' conftest.err >conftest.er1
2725 cat conftest.er1 >&5
2726 rm -f conftest.er1 conftest.err
2727 fi
2728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2729 test $ac_status = 0; }
2730 done
2731
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h. */
2734
2735 int
2736 main ()
2737 {
2738
2739 ;
2740 return 0;
2741 }
2742 _ACEOF
2743 ac_clean_files_save=$ac_clean_files
2744 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2745 # Try to create an executable without -o first, disregard a.out.
2746 # It will help us diagnose broken compilers, and finding out an intuition
2747 # of exeext.
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2749 $as_echo_n "checking for C compiler default output file name... " >&6; }
2750 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2751
2752 # The possible output files:
2753 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2754
2755 ac_rmfiles=
2756 for ac_file in $ac_files
2757 do
2758 case $ac_file in
2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2760 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2761 esac
2762 done
2763 rm -f $ac_rmfiles
2764
2765 if { { ac_try="$ac_link_default"
2766 case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769 esac
2770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2771 $as_echo "$ac_try_echo"; } >&5
2772 (eval "$ac_link_default") 2>&5
2773 ac_status=$?
2774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2775 test $ac_status = 0; }; then :
2776 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2777 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2778 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2779 # so that the user can short-circuit this test for compilers unknown to
2780 # Autoconf.
2781 for ac_file in $ac_files ''
2782 do
2783 test -f "$ac_file" || continue
2784 case $ac_file in
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2786 ;;
2787 [ab].out )
2788 # We found the default executable, but exeext='' is most
2789 # certainly right.
2790 break;;
2791 *.* )
2792 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2793 then :; else
2794 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2795 fi
2796 # We set ac_cv_exeext here because the later test for it is not
2797 # safe: cross compilers may not add the suffix if given an `-o'
2798 # argument, so we may need to know it at that point already.
2799 # Even if this section looks crufty: it has the advantage of
2800 # actually working.
2801 break;;
2802 * )
2803 break;;
2804 esac
2805 done
2806 test "$ac_cv_exeext" = no && ac_cv_exeext=
2807
2808 else
2809 ac_file=''
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2812 $as_echo "$ac_file" >&6; }
2813 if test -z "$ac_file"; then :
2814 $as_echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819 { as_fn_set_status 77
2820 as_fn_error "C compiler cannot create executables
2821 See \`config.log' for more details." "$LINENO" 5; }; }
2822 fi
2823 ac_exeext=$ac_cv_exeext
2824
2825 # Check that the compiler produces executables we can run. If not, either
2826 # the compiler is broken, or we cross compile.
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2828 $as_echo_n "checking whether the C compiler works... " >&6; }
2829 # If not cross compiling, check that we can run a simple program.
2830 if test "$cross_compiling" != yes; then
2831 if { ac_try='./$ac_file'
2832 { { case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835 esac
2836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2837 $as_echo "$ac_try_echo"; } >&5
2838 (eval "$ac_try") 2>&5
2839 ac_status=$?
2840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2841 test $ac_status = 0; }; }; then
2842 cross_compiling=no
2843 else
2844 if test "$cross_compiling" = maybe; then
2845 cross_compiling=yes
2846 else
2847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2849 as_fn_error "cannot run C compiled programs.
2850 If you meant to cross compile, use \`--host'.
2851 See \`config.log' for more details." "$LINENO" 5; }
2852 fi
2853 fi
2854 fi
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2856 $as_echo "yes" >&6; }
2857
2858 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2859 ac_clean_files=$ac_clean_files_save
2860 # Check that the compiler produces executables we can run. If not, either
2861 # the compiler is broken, or we cross compile.
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2863 $as_echo_n "checking whether we are cross compiling... " >&6; }
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2865 $as_echo "$cross_compiling" >&6; }
2866
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2868 $as_echo_n "checking for suffix of executables... " >&6; }
2869 if { { ac_try="$ac_link"
2870 case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873 esac
2874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_link") 2>&5
2877 ac_status=$?
2878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879 test $ac_status = 0; }; then :
2880 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2881 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2882 # work properly (i.e., refer to `conftest.exe'), while it won't with
2883 # `rm'.
2884 for ac_file in conftest.exe conftest conftest.*; do
2885 test -f "$ac_file" || continue
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2888 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 break;;
2890 * ) break;;
2891 esac
2892 done
2893 else
2894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2896 as_fn_error "cannot compute suffix of executables: cannot compile and link
2897 See \`config.log' for more details." "$LINENO" 5; }
2898 fi
2899 rm -f conftest$ac_cv_exeext
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2901 $as_echo "$ac_cv_exeext" >&6; }
2902
2903 rm -f conftest.$ac_ext
2904 EXEEXT=$ac_cv_exeext
2905 ac_exeext=$EXEEXT
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2907 $as_echo_n "checking for suffix of object files... " >&6; }
2908 if test "${ac_cv_objext+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2912 /* end confdefs.h. */
2913
2914 int
2915 main ()
2916 {
2917
2918 ;
2919 return 0;
2920 }
2921 _ACEOF
2922 rm -f conftest.o conftest.obj
2923 if { { ac_try="$ac_compile"
2924 case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_compile") 2>&5
2931 ac_status=$?
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }; then :
2934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
2936 case $ac_file in
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2939 break;;
2940 esac
2941 done
2942 else
2943 $as_echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error "cannot compute suffix of object files: cannot compile
2949 See \`config.log' for more details." "$LINENO" 5; }
2950 fi
2951 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2952 fi
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2954 $as_echo "$ac_cv_objext" >&6; }
2955 OBJEXT=$ac_cv_objext
2956 ac_objext=$OBJEXT
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2958 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2959 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h. */
2964
2965 int
2966 main ()
2967 {
2968 #ifndef __GNUC__
2969 choke me
2970 #endif
2971
2972 ;
2973 return 0;
2974 }
2975 _ACEOF
2976 if ac_fn_c_try_compile "$LINENO"; then :
2977 ac_compiler_gnu=yes
2978 else
2979 ac_compiler_gnu=no
2980 fi
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2983
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2986 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2987 if test $ac_compiler_gnu = yes; then
2988 GCC=yes
2989 else
2990 GCC=
2991 fi
2992 ac_test_CFLAGS=${CFLAGS+set}
2993 ac_save_CFLAGS=$CFLAGS
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2995 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2996 if test "${ac_cv_prog_cc_g+set}" = set; then :
2997 $as_echo_n "(cached) " >&6
2998 else
2999 ac_save_c_werror_flag=$ac_c_werror_flag
3000 ac_c_werror_flag=yes
3001 ac_cv_prog_cc_g=no
3002 CFLAGS="-g"
3003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3005
3006 int
3007 main ()
3008 {
3009
3010 ;
3011 return 0;
3012 }
3013 _ACEOF
3014 if ac_fn_c_try_compile "$LINENO"; then :
3015 ac_cv_prog_cc_g=yes
3016 else
3017 CFLAGS=""
3018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3019 /* end confdefs.h. */
3020
3021 int
3022 main ()
3023 {
3024
3025 ;
3026 return 0;
3027 }
3028 _ACEOF
3029 if ac_fn_c_try_compile "$LINENO"; then :
3030
3031 else
3032 ac_c_werror_flag=$ac_save_c_werror_flag
3033 CFLAGS="-g"
3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3035 /* end confdefs.h. */
3036
3037 int
3038 main ()
3039 {
3040
3041 ;
3042 return 0;
3043 }
3044 _ACEOF
3045 if ac_fn_c_try_compile "$LINENO"; then :
3046 ac_cv_prog_cc_g=yes
3047 fi
3048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049 fi
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 fi
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_c_werror_flag=$ac_save_c_werror_flag
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3056 $as_echo "$ac_cv_prog_cc_g" >&6; }
3057 if test "$ac_test_CFLAGS" = set; then
3058 CFLAGS=$ac_save_CFLAGS
3059 elif test $ac_cv_prog_cc_g = yes; then
3060 if test "$GCC" = yes; then
3061 CFLAGS="-g -O2"
3062 else
3063 CFLAGS="-g"
3064 fi
3065 else
3066 if test "$GCC" = yes; then
3067 CFLAGS="-O2"
3068 else
3069 CFLAGS=
3070 fi
3071 fi
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3073 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3074 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 ac_cv_prog_cc_c89=no
3078 ac_save_CC=$CC
3079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080 /* end confdefs.h. */
3081 #include <stdarg.h>
3082 #include <stdio.h>
3083 #include <sys/types.h>
3084 #include <sys/stat.h>
3085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3086 struct buf { int x; };
3087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3088 static char *e (p, i)
3089 char **p;
3090 int i;
3091 {
3092 return p[i];
3093 }
3094 static char *f (char * (*g) (char **, int), char **p, ...)
3095 {
3096 char *s;
3097 va_list v;
3098 va_start (v,p);
3099 s = g (p, va_arg (v,int));
3100 va_end (v);
3101 return s;
3102 }
3103
3104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3105 function prototypes and stuff, but not '\xHH' hex character constants.
3106 These don't provoke an error unfortunately, instead are silently treated
3107 as 'x'. The following induces an error, until -std is added to get
3108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3109 array size at least. It's necessary to write '\x00'==0 to get something
3110 that's true only with -std. */
3111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3112
3113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3114 inside strings and character constants. */
3115 #define FOO(x) 'x'
3116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3117
3118 int test (int i, double x);
3119 struct s1 {int (*f) (int a);};
3120 struct s2 {int (*f) (double a);};
3121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3122 int argc;
3123 char **argv;
3124 int
3125 main ()
3126 {
3127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3128 ;
3129 return 0;
3130 }
3131 _ACEOF
3132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3134 do
3135 CC="$ac_save_CC $ac_arg"
3136 if ac_fn_c_try_compile "$LINENO"; then :
3137 ac_cv_prog_cc_c89=$ac_arg
3138 fi
3139 rm -f core conftest.err conftest.$ac_objext
3140 test "x$ac_cv_prog_cc_c89" != "xno" && break
3141 done
3142 rm -f conftest.$ac_ext
3143 CC=$ac_save_CC
3144
3145 fi
3146 # AC_CACHE_VAL
3147 case "x$ac_cv_prog_cc_c89" in
3148 x)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3150 $as_echo "none needed" >&6; } ;;
3151 xno)
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3153 $as_echo "unsupported" >&6; } ;;
3154 *)
3155 CC="$CC $ac_cv_prog_cc_c89"
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3157 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3158 esac
3159 if test "x$ac_cv_prog_cc_c89" != xno; then :
3160
3161 fi
3162
3163 ac_ext=c
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168
3169
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3171 $as_echo_n "checking for library containing strerror... " >&6; }
3172 if test "${ac_cv_search_strerror+set}" = set; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 ac_func_search_save_LIBS=$LIBS
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178
3179 /* Override any GCC internal prototype to avoid an error.
3180 Use char because int might match the return type of a GCC
3181 builtin and then its argument prototype would still apply. */
3182 #ifdef __cplusplus
3183 extern "C"
3184 #endif
3185 char strerror ();
3186 int
3187 main ()
3188 {
3189 return strerror ();
3190 ;
3191 return 0;
3192 }
3193 _ACEOF
3194 for ac_lib in '' cposix; do
3195 if test -z "$ac_lib"; then
3196 ac_res="none required"
3197 else
3198 ac_res=-l$ac_lib
3199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3200 fi
3201 if ac_fn_c_try_link "$LINENO"; then :
3202 ac_cv_search_strerror=$ac_res
3203 fi
3204 rm -f core conftest.err conftest.$ac_objext \
3205 conftest$ac_exeext
3206 if test "${ac_cv_search_strerror+set}" = set; then :
3207 break
3208 fi
3209 done
3210 if test "${ac_cv_search_strerror+set}" = set; then :
3211
3212 else
3213 ac_cv_search_strerror=no
3214 fi
3215 rm conftest.$ac_ext
3216 LIBS=$ac_func_search_save_LIBS
3217 fi
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3219 $as_echo "$ac_cv_search_strerror" >&6; }
3220 ac_res=$ac_cv_search_strerror
3221 if test "$ac_res" != no; then :
3222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3223
3224 fi
3225
3226
3227 am__api_version='1.11'
3228
3229 # Find a good install program. We prefer a C program (faster),
3230 # so one script is as good as another. But avoid the broken or
3231 # incompatible versions:
3232 # SysV /etc/install, /usr/sbin/install
3233 # SunOS /usr/etc/install
3234 # IRIX /sbin/install
3235 # AIX /bin/install
3236 # AmigaOS /C/install, which installs bootblocks on floppy discs
3237 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3238 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3239 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3240 # OS/2's system install, which has a completely different semantic
3241 # ./install, which can be erroneously created by make from ./install.sh.
3242 # Reject install programs that cannot install multiple files.
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3244 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3245 if test -z "$INSTALL"; then
3246 if test "${ac_cv_path_install+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH
3251 do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 # Account for people who put trailing slashes in PATH elements.
3255 case $as_dir/ in #((
3256 ./ | .// | /[cC]/* | \
3257 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3258 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3259 /usr/ucb/* ) ;;
3260 *)
3261 # OSF1 and SCO ODT 3.0 have their own names for install.
3262 # Don't use installbsd from OSF since it installs stuff as root
3263 # by default.
3264 for ac_prog in ginstall scoinst install; do
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3267 if test $ac_prog = install &&
3268 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3269 # AIX install. It has an incompatible calling convention.
3270 :
3271 elif test $ac_prog = install &&
3272 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3273 # program-specific install script used by HP pwplus--don't use.
3274 :
3275 else
3276 rm -rf conftest.one conftest.two conftest.dir
3277 echo one > conftest.one
3278 echo two > conftest.two
3279 mkdir conftest.dir
3280 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3281 test -s conftest.one && test -s conftest.two &&
3282 test -s conftest.dir/conftest.one &&
3283 test -s conftest.dir/conftest.two
3284 then
3285 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3286 break 3
3287 fi
3288 fi
3289 fi
3290 done
3291 done
3292 ;;
3293 esac
3294
3295 done
3296 IFS=$as_save_IFS
3297
3298 rm -rf conftest.one conftest.two conftest.dir
3299
3300 fi
3301 if test "${ac_cv_path_install+set}" = set; then
3302 INSTALL=$ac_cv_path_install
3303 else
3304 # As a last resort, use the slow shell script. Don't cache a
3305 # value for INSTALL within a source directory, because that will
3306 # break other packages using the cache if that directory is
3307 # removed, or if the value is a relative name.
3308 INSTALL=$ac_install_sh
3309 fi
3310 fi
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3312 $as_echo "$INSTALL" >&6; }
3313
3314 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3315 # It thinks the first close brace ends the variable substitution.
3316 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3317
3318 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3319
3320 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3321
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3323 $as_echo_n "checking whether build environment is sane... " >&6; }
3324 # Just in case
3325 sleep 1
3326 echo timestamp > conftest.file
3327 # Reject unsafe characters in $srcdir or the absolute working directory
3328 # name. Accept space and tab only in the latter.
3329 am_lf='
3330 '
3331 case `pwd` in
3332 *[\\\"\#\$\&\'\`$am_lf]*)
3333 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3334 esac
3335 case $srcdir in
3336 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3337 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3338 esac
3339
3340 # Do `set' in a subshell so we don't clobber the current shell's
3341 # arguments. Must try -L first in case configure is actually a
3342 # symlink; some systems play weird games with the mod time of symlinks
3343 # (eg FreeBSD returns the mod time of the symlink's containing
3344 # directory).
3345 if (
3346 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3347 if test "$*" = "X"; then
3348 # -L didn't work.
3349 set X `ls -t "$srcdir/configure" conftest.file`
3350 fi
3351 rm -f conftest.file
3352 if test "$*" != "X $srcdir/configure conftest.file" \
3353 && test "$*" != "X conftest.file $srcdir/configure"; then
3354
3355 # If neither matched, then we have a broken ls. This can happen
3356 # if, for instance, CONFIG_SHELL is bash and it inherits a
3357 # broken ls alias from the environment. This has actually
3358 # happened. Such a system could not be considered "sane".
3359 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3360 alias in your environment" "$LINENO" 5
3361 fi
3362
3363 test "$2" = conftest.file
3364 )
3365 then
3366 # Ok.
3367 :
3368 else
3369 as_fn_error "newly created file is older than distributed files!
3370 Check your system clock" "$LINENO" 5
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3374 test "$program_prefix" != NONE &&
3375 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3376 # Use a double $ so make ignores it.
3377 test "$program_suffix" != NONE &&
3378 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3379 # Double any \ or $.
3380 # By default was `s,x,x', remove it if useless.
3381 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3382 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3383
3384 # expand $ac_aux_dir to an absolute path
3385 am_aux_dir=`cd $ac_aux_dir && pwd`
3386
3387 if test x"${MISSING+set}" != xset; then
3388 case $am_aux_dir in
3389 *\ * | *\ *)
3390 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3391 *)
3392 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3393 esac
3394 fi
3395 # Use eval to expand $SHELL
3396 if eval "$MISSING --run true"; then
3397 am_missing_run="$MISSING --run "
3398 else
3399 am_missing_run=
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3401 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3402 fi
3403
3404 if test x"${install_sh}" != xset; then
3405 case $am_aux_dir in
3406 *\ * | *\ *)
3407 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3408 *)
3409 install_sh="\${SHELL} $am_aux_dir/install-sh"
3410 esac
3411 fi
3412
3413 # Installed binaries are usually stripped using `strip' when the user
3414 # run `make install-strip'. However `strip' might not be the right
3415 # tool to use in cross-compilation environments, therefore Automake
3416 # will honor the `STRIP' environment variable to overrule this program.
3417 if test "$cross_compiling" != no; then
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}strip; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_STRIP+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 if test -n "$STRIP"; then
3427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440 done
3441 done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 STRIP=$ac_cv_prog_STRIP
3447 if test -n "$STRIP"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3449 $as_echo "$STRIP" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456 fi
3457 if test -z "$ac_cv_prog_STRIP"; then
3458 ac_ct_STRIP=$STRIP
3459 # Extract the first word of "strip", so it can be a program name with args.
3460 set dummy strip; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3464 $as_echo_n "(cached) " >&6
3465 else
3466 if test -n "$ac_ct_STRIP"; then
3467 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476 ac_cv_prog_ac_ct_STRIP="strip"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480 done
3481 done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3487 if test -n "$ac_ct_STRIP"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3489 $as_echo "$ac_ct_STRIP" >&6; }
3490 else
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495 if test "x$ac_ct_STRIP" = x; then
3496 STRIP=":"
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499 yes:)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3503 esac
3504 STRIP=$ac_ct_STRIP
3505 fi
3506 else
3507 STRIP="$ac_cv_prog_STRIP"
3508 fi
3509
3510 fi
3511 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3512
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3514 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3515 if test -z "$MKDIR_P"; then
3516 if test "${ac_cv_path_mkdir+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3521 do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_prog in mkdir gmkdir; do
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3527 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3528 'mkdir (GNU coreutils) '* | \
3529 'mkdir (coreutils) '* | \
3530 'mkdir (fileutils) '4.1*)
3531 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3532 break 3;;
3533 esac
3534 done
3535 done
3536 done
3537 IFS=$as_save_IFS
3538
3539 fi
3540
3541 if test "${ac_cv_path_mkdir+set}" = set; then
3542 MKDIR_P="$ac_cv_path_mkdir -p"
3543 else
3544 # As a last resort, use the slow shell script. Don't cache a
3545 # value for MKDIR_P within a source directory, because that will
3546 # break other packages using the cache if that directory is
3547 # removed, or if the value is a relative name.
3548 test -d ./--version && rmdir ./--version
3549 MKDIR_P="$ac_install_sh -d"
3550 fi
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3553 $as_echo "$MKDIR_P" >&6; }
3554
3555 mkdir_p="$MKDIR_P"
3556 case $mkdir_p in
3557 [\\/$]* | ?:[\\/]*) ;;
3558 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3559 esac
3560
3561 for ac_prog in gawk mawk nawk awk
3562 do
3563 # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if test "${ac_cv_prog_AWK+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 if test -n "$AWK"; then
3571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3580 ac_cv_prog_AWK="$ac_prog"
3581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 break 2
3583 fi
3584 done
3585 done
3586 IFS=$as_save_IFS
3587
3588 fi
3589 fi
3590 AWK=$ac_cv_prog_AWK
3591 if test -n "$AWK"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3593 $as_echo "$AWK" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600 test -n "$AWK" && break
3601 done
3602
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3604 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3605 set x ${MAKE-make}
3606 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3607 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 cat >conftest.make <<\_ACEOF
3611 SHELL = /bin/sh
3612 all:
3613 @echo '@@@%%%=$(MAKE)=@@@%%%'
3614 _ACEOF
3615 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3616 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3617 *@@@%%%=?*=@@@%%%*)
3618 eval ac_cv_prog_make_${ac_make}_set=yes;;
3619 *)
3620 eval ac_cv_prog_make_${ac_make}_set=no;;
3621 esac
3622 rm -f conftest.make
3623 fi
3624 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3626 $as_echo "yes" >&6; }
3627 SET_MAKE=
3628 else
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 SET_MAKE="MAKE=${MAKE-make}"
3632 fi
3633
3634 rm -rf .tst 2>/dev/null
3635 mkdir .tst 2>/dev/null
3636 if test -d .tst; then
3637 am__leading_dot=.
3638 else
3639 am__leading_dot=_
3640 fi
3641 rmdir .tst 2>/dev/null
3642
3643 DEPDIR="${am__leading_dot}deps"
3644
3645 ac_config_commands="$ac_config_commands depfiles"
3646
3647
3648 am_make=${MAKE-make}
3649 cat > confinc << 'END'
3650 am__doit:
3651 @echo this is the am__doit target
3652 .PHONY: am__doit
3653 END
3654 # If we don't find an include directive, just comment out the code.
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3656 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3657 am__include="#"
3658 am__quote=
3659 _am_result=none
3660 # First try GNU make style include.
3661 echo "include confinc" > confmf
3662 # Ignore all kinds of additional output from `make'.
3663 case `$am_make -s -f confmf 2> /dev/null` in #(
3664 *the\ am__doit\ target*)
3665 am__include=include
3666 am__quote=
3667 _am_result=GNU
3668 ;;
3669 esac
3670 # Now try BSD make style include.
3671 if test "$am__include" = "#"; then
3672 echo '.include "confinc"' > confmf
3673 case `$am_make -s -f confmf 2> /dev/null` in #(
3674 *the\ am__doit\ target*)
3675 am__include=.include
3676 am__quote="\""
3677 _am_result=BSD
3678 ;;
3679 esac
3680 fi
3681
3682
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3684 $as_echo "$_am_result" >&6; }
3685 rm -f confinc confmf
3686
3687 # Check whether --enable-dependency-tracking was given.
3688 if test "${enable_dependency_tracking+set}" = set; then :
3689 enableval=$enable_dependency_tracking;
3690 fi
3691
3692 if test "x$enable_dependency_tracking" != xno; then
3693 am_depcomp="$ac_aux_dir/depcomp"
3694 AMDEPBACKSLASH='\'
3695 fi
3696 if test "x$enable_dependency_tracking" != xno; then
3697 AMDEP_TRUE=
3698 AMDEP_FALSE='#'
3699 else
3700 AMDEP_TRUE='#'
3701 AMDEP_FALSE=
3702 fi
3703
3704
3705 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3706 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3707 # is not polluted with repeated "-I."
3708 am__isrc=' -I$(srcdir)'
3709 # test to see if srcdir already configured
3710 if test -f $srcdir/config.status; then
3711 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3712 fi
3713 fi
3714
3715 # test whether we have cygpath
3716 if test -z "$CYGPATH_W"; then
3717 if (cygpath --version) >/dev/null 2>/dev/null; then
3718 CYGPATH_W='cygpath -w'
3719 else
3720 CYGPATH_W=echo
3721 fi
3722 fi
3723
3724
3725 # Define the identity of the package.
3726 PACKAGE='gas'
3727 VERSION='2.25.51'
3728
3729
3730 cat >>confdefs.h <<_ACEOF
3731 #define PACKAGE "$PACKAGE"
3732 _ACEOF
3733
3734
3735 cat >>confdefs.h <<_ACEOF
3736 #define VERSION "$VERSION"
3737 _ACEOF
3738
3739 # Some tools Automake needs.
3740
3741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3742
3743
3744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3745
3746
3747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3748
3749
3750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3751
3752
3753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3754
3755 # We need awk for the "check" target. The system "awk" is bad on
3756 # some platforms.
3757 # Always define AMTAR for backward compatibility.
3758
3759 AMTAR=${AMTAR-"${am_missing_run}tar"}
3760
3761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3762
3763
3764
3765
3766 depcc="$CC" am_compiler_list=
3767
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3769 $as_echo_n "checking dependency style of $depcc... " >&6; }
3770 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3774 # We make a subdir and do the tests there. Otherwise we can end up
3775 # making bogus files that we don't know about and never remove. For
3776 # instance it was reported that on HP-UX the gcc test will end up
3777 # making a dummy file named `D' -- because `-MD' means `put the output
3778 # in D'.
3779 mkdir conftest.dir
3780 # Copy depcomp to subdir because otherwise we won't find it if we're
3781 # using a relative directory.
3782 cp "$am_depcomp" conftest.dir
3783 cd conftest.dir
3784 # We will build objects and dependencies in a subdirectory because
3785 # it helps to detect inapplicable dependency modes. For instance
3786 # both Tru64's cc and ICC support -MD to output dependencies as a
3787 # side effect of compilation, but ICC will put the dependencies in
3788 # the current directory while Tru64 will put them in the object
3789 # directory.
3790 mkdir sub
3791
3792 am_cv_CC_dependencies_compiler_type=none
3793 if test "$am_compiler_list" = ""; then
3794 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3795 fi
3796 am__universal=false
3797 case " $depcc " in #(
3798 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3799 esac
3800
3801 for depmode in $am_compiler_list; do
3802 # Setup a source with many dependencies, because some compilers
3803 # like to wrap large dependency lists on column 80 (with \), and
3804 # we should not choose a depcomp mode which is confused by this.
3805 #
3806 # We need to recreate these files for each test, as the compiler may
3807 # overwrite some of them when testing with obscure command lines.
3808 # This happens at least with the AIX C compiler.
3809 : > sub/conftest.c
3810 for i in 1 2 3 4 5 6; do
3811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3813 # Solaris 8's {/usr,}/bin/sh.
3814 touch sub/conftst$i.h
3815 done
3816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3817
3818 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3819 # mode. It turns out that the SunPro C++ compiler does not properly
3820 # handle `-M -o', and we need to detect this. Also, some Intel
3821 # versions had trouble with output in subdirs
3822 am__obj=sub/conftest.${OBJEXT-o}
3823 am__minus_obj="-o $am__obj"
3824 case $depmode in
3825 gcc)
3826 # This depmode causes a compiler race in universal mode.
3827 test "$am__universal" = false || continue
3828 ;;
3829 nosideeffect)
3830 # after this tag, mechanisms are not by side-effect, so they'll
3831 # only be used when explicitly requested
3832 if test "x$enable_dependency_tracking" = xyes; then
3833 continue
3834 else
3835 break
3836 fi
3837 ;;
3838 msvisualcpp | msvcmsys)
3839 # This compiler won't grok `-c -o', but also, the minuso test has
3840 # not run yet. These depmodes are late enough in the game, and
3841 # so weak that their functioning should not be impacted.
3842 am__obj=conftest.${OBJEXT-o}
3843 am__minus_obj=
3844 ;;
3845 none) break ;;
3846 esac
3847 if depmode=$depmode \
3848 source=sub/conftest.c object=$am__obj \
3849 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3850 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3851 >/dev/null 2>conftest.err &&
3852 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3853 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3854 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3855 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3856 # icc doesn't choke on unknown options, it will just issue warnings
3857 # or remarks (even with -Werror). So we grep stderr for any message
3858 # that says an option was ignored or not supported.
3859 # When given -MP, icc 7.0 and 7.1 complain thusly:
3860 # icc: Command line warning: ignoring option '-M'; no argument required
3861 # The diagnosis changed in icc 8.0:
3862 # icc: Command line remark: option '-MP' not supported
3863 if (grep 'ignoring option' conftest.err ||
3864 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3865 am_cv_CC_dependencies_compiler_type=$depmode
3866 break
3867 fi
3868 fi
3869 done
3870
3871 cd ..
3872 rm -rf conftest.dir
3873 else
3874 am_cv_CC_dependencies_compiler_type=none
3875 fi
3876
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3879 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3880 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3881
3882 if
3883 test "x$enable_dependency_tracking" != xno \
3884 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3885 am__fastdepCC_TRUE=
3886 am__fastdepCC_FALSE='#'
3887 else
3888 am__fastdepCC_TRUE='#'
3889 am__fastdepCC_FALSE=
3890 fi
3891
3892
3893
3894
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3902 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if test "${ac_cv_prog_CC+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if test -n "$CC"; then
3909 ac_cv_prog_CC="$CC" # Let the user override the test.
3910 else
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH
3913 do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922 done
3923 done
3924 IFS=$as_save_IFS
3925
3926 fi
3927 fi
3928 CC=$ac_cv_prog_CC
3929 if test -n "$CC"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931 $as_echo "$CC" >&6; }
3932 else
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3935 fi
3936
3937
3938 fi
3939 if test -z "$ac_cv_prog_CC"; then
3940 ac_ct_CC=$CC
3941 # Extract the first word of "gcc", so it can be a program name with args.
3942 set dummy gcc; ac_word=$2
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 if test -n "$ac_ct_CC"; then
3949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3950 else
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958 ac_cv_prog_ac_ct_CC="gcc"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962 done
3963 done
3964 IFS=$as_save_IFS
3965
3966 fi
3967 fi
3968 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3969 if test -n "$ac_ct_CC"; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3971 $as_echo "$ac_ct_CC" >&6; }
3972 else
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3975 fi
3976
3977 if test "x$ac_ct_CC" = x; then
3978 CC=""
3979 else
3980 case $cross_compiling:$ac_tool_warned in
3981 yes:)
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned=yes ;;
3985 esac
3986 CC=$ac_ct_CC
3987 fi
3988 else
3989 CC="$ac_cv_prog_CC"
3990 fi
3991
3992 if test -z "$CC"; then
3993 if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3995 set dummy ${ac_tool_prefix}cc; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if test "${ac_cv_prog_CC+set}" = set; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 if test -n "$CC"; then
4002 ac_cv_prog_CC="$CC" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011 ac_cv_prog_CC="${ac_tool_prefix}cc"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015 done
4016 done
4017 IFS=$as_save_IFS
4018
4019 fi
4020 fi
4021 CC=$ac_cv_prog_CC
4022 if test -n "$CC"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4024 $as_echo "$CC" >&6; }
4025 else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4028 fi
4029
4030
4031 fi
4032 fi
4033 if test -z "$CC"; then
4034 # Extract the first word of "cc", so it can be a program name with args.
4035 set dummy cc; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if test "${ac_cv_prog_CC+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4043 else
4044 ac_prog_rejected=no
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4047 do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4053 ac_prog_rejected=yes
4054 continue
4055 fi
4056 ac_cv_prog_CC="cc"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4059 fi
4060 done
4061 done
4062 IFS=$as_save_IFS
4063
4064 if test $ac_prog_rejected = yes; then
4065 # We found a bogon in the path, so make sure we never use it.
4066 set dummy $ac_cv_prog_CC
4067 shift
4068 if test $# != 0; then
4069 # We chose a different compiler from the bogus one.
4070 # However, it has the same basename, so the bogon will be chosen
4071 # first if we set CC to just the basename; use the full file name.
4072 shift
4073 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4074 fi
4075 fi
4076 fi
4077 fi
4078 CC=$ac_cv_prog_CC
4079 if test -n "$CC"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4081 $as_echo "$CC" >&6; }
4082 else
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4085 fi
4086
4087
4088 fi
4089 if test -z "$CC"; then
4090 if test -n "$ac_tool_prefix"; then
4091 for ac_prog in cl.exe
4092 do
4093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if test "${ac_cv_prog_CC+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 if test -n "$CC"; then
4101 ac_cv_prog_CC="$CC" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106 IFS=$as_save_IFS
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112 break 2
4113 fi
4114 done
4115 done
4116 IFS=$as_save_IFS
4117
4118 fi
4119 fi
4120 CC=$ac_cv_prog_CC
4121 if test -n "$CC"; then
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4123 $as_echo "$CC" >&6; }
4124 else
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 $as_echo "no" >&6; }
4127 fi
4128
4129
4130 test -n "$CC" && break
4131 done
4132 fi
4133 if test -z "$CC"; then
4134 ac_ct_CC=$CC
4135 for ac_prog in cl.exe
4136 do
4137 # Extract the first word of "$ac_prog", so it can be a program name with args.
4138 set dummy $ac_prog; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4146 else
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 for as_dir in $PATH
4149 do
4150 IFS=$as_save_IFS
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_CC="$ac_prog"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4157 fi
4158 done
4159 done
4160 IFS=$as_save_IFS
4161
4162 fi
4163 fi
4164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4165 if test -n "$ac_ct_CC"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4167 $as_echo "$ac_ct_CC" >&6; }
4168 else
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4171 fi
4172
4173
4174 test -n "$ac_ct_CC" && break
4175 done
4176
4177 if test "x$ac_ct_CC" = x; then
4178 CC=""
4179 else
4180 case $cross_compiling:$ac_tool_warned in
4181 yes:)
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4184 ac_tool_warned=yes ;;
4185 esac
4186 CC=$ac_ct_CC
4187 fi
4188 fi
4189
4190 fi
4191
4192
4193 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4195 as_fn_error "no acceptable C compiler found in \$PATH
4196 See \`config.log' for more details." "$LINENO" 5; }
4197
4198 # Provide some information about the compiler.
4199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4200 set X $ac_compile
4201 ac_compiler=$2
4202 for ac_option in --version -v -V -qversion; do
4203 { { ac_try="$ac_compiler $ac_option >&5"
4204 case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207 esac
4208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4209 $as_echo "$ac_try_echo"; } >&5
4210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4211 ac_status=$?
4212 if test -s conftest.err; then
4213 sed '10a\
4214 ... rest of stderr output deleted ...
4215 10q' conftest.err >conftest.er1
4216 cat conftest.er1 >&5
4217 rm -f conftest.er1 conftest.err
4218 fi
4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220 test $ac_status = 0; }
4221 done
4222
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4224 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4225 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230
4231 int
4232 main ()
4233 {
4234 #ifndef __GNUC__
4235 choke me
4236 #endif
4237
4238 ;
4239 return 0;
4240 }
4241 _ACEOF
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 ac_compiler_gnu=yes
4244 else
4245 ac_compiler_gnu=no
4246 fi
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4249
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4252 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4253 if test $ac_compiler_gnu = yes; then
4254 GCC=yes
4255 else
4256 GCC=
4257 fi
4258 ac_test_CFLAGS=${CFLAGS+set}
4259 ac_save_CFLAGS=$CFLAGS
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4261 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4262 if test "${ac_cv_prog_cc_g+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 ac_save_c_werror_flag=$ac_c_werror_flag
4266 ac_c_werror_flag=yes
4267 ac_cv_prog_cc_g=no
4268 CFLAGS="-g"
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271
4272 int
4273 main ()
4274 {
4275
4276 ;
4277 return 0;
4278 }
4279 _ACEOF
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 ac_cv_prog_cc_g=yes
4282 else
4283 CFLAGS=""
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286
4287 int
4288 main ()
4289 {
4290
4291 ;
4292 return 0;
4293 }
4294 _ACEOF
4295 if ac_fn_c_try_compile "$LINENO"; then :
4296
4297 else
4298 ac_c_werror_flag=$ac_save_c_werror_flag
4299 CFLAGS="-g"
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302
4303 int
4304 main ()
4305 {
4306
4307 ;
4308 return 0;
4309 }
4310 _ACEOF
4311 if ac_fn_c_try_compile "$LINENO"; then :
4312 ac_cv_prog_cc_g=yes
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 fi
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 ac_c_werror_flag=$ac_save_c_werror_flag
4320 fi
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4322 $as_echo "$ac_cv_prog_cc_g" >&6; }
4323 if test "$ac_test_CFLAGS" = set; then
4324 CFLAGS=$ac_save_CFLAGS
4325 elif test $ac_cv_prog_cc_g = yes; then
4326 if test "$GCC" = yes; then
4327 CFLAGS="-g -O2"
4328 else
4329 CFLAGS="-g"
4330 fi
4331 else
4332 if test "$GCC" = yes; then
4333 CFLAGS="-O2"
4334 else
4335 CFLAGS=
4336 fi
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4339 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4340 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 ac_cv_prog_cc_c89=no
4344 ac_save_CC=$CC
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <stdarg.h>
4348 #include <stdio.h>
4349 #include <sys/types.h>
4350 #include <sys/stat.h>
4351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4352 struct buf { int x; };
4353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4354 static char *e (p, i)
4355 char **p;
4356 int i;
4357 {
4358 return p[i];
4359 }
4360 static char *f (char * (*g) (char **, int), char **p, ...)
4361 {
4362 char *s;
4363 va_list v;
4364 va_start (v,p);
4365 s = g (p, va_arg (v,int));
4366 va_end (v);
4367 return s;
4368 }
4369
4370 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4371 function prototypes and stuff, but not '\xHH' hex character constants.
4372 These don't provoke an error unfortunately, instead are silently treated
4373 as 'x'. The following induces an error, until -std is added to get
4374 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4375 array size at least. It's necessary to write '\x00'==0 to get something
4376 that's true only with -std. */
4377 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4378
4379 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4380 inside strings and character constants. */
4381 #define FOO(x) 'x'
4382 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4383
4384 int test (int i, double x);
4385 struct s1 {int (*f) (int a);};
4386 struct s2 {int (*f) (double a);};
4387 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4388 int argc;
4389 char **argv;
4390 int
4391 main ()
4392 {
4393 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4394 ;
4395 return 0;
4396 }
4397 _ACEOF
4398 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4399 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4400 do
4401 CC="$ac_save_CC $ac_arg"
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403 ac_cv_prog_cc_c89=$ac_arg
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext
4406 test "x$ac_cv_prog_cc_c89" != "xno" && break
4407 done
4408 rm -f conftest.$ac_ext
4409 CC=$ac_save_CC
4410
4411 fi
4412 # AC_CACHE_VAL
4413 case "x$ac_cv_prog_cc_c89" in
4414 x)
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4416 $as_echo "none needed" >&6; } ;;
4417 xno)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4419 $as_echo "unsupported" >&6; } ;;
4420 *)
4421 CC="$CC $ac_cv_prog_cc_c89"
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4423 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4424 esac
4425 if test "x$ac_cv_prog_cc_c89" != xno; then :
4426
4427 fi
4428
4429 ac_ext=c
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4441 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4442 # On Suns, sometimes $CPP names a directory.
4443 if test -n "$CPP" && test -d "$CPP"; then
4444 CPP=
4445 fi
4446 if test -z "$CPP"; then
4447 if test "${ac_cv_prog_CPP+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 # Double quotes because CPP needs to be expanded
4451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4452 do
4453 ac_preproc_ok=false
4454 for ac_c_preproc_warn_flag in '' yes
4455 do
4456 # Use a header file that comes with gcc, so configuring glibc
4457 # with a fresh cross-compiler works.
4458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4459 # <limits.h> exists even on freestanding compilers.
4460 # On the NeXT, cc -E runs the code through the compiler's parser,
4461 # not just through cpp. "Syntax error" is here to catch this case.
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 #ifdef __STDC__
4465 # include <limits.h>
4466 #else
4467 # include <assert.h>
4468 #endif
4469 Syntax error
4470 _ACEOF
4471 if ac_fn_c_try_cpp "$LINENO"; then :
4472
4473 else
4474 # Broken: fails on valid input.
4475 continue
4476 fi
4477 rm -f conftest.err conftest.$ac_ext
4478
4479 # OK, works on sane cases. Now check whether nonexistent headers
4480 # can be detected and how.
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <ac_nonexistent.h>
4484 _ACEOF
4485 if ac_fn_c_try_cpp "$LINENO"; then :
4486 # Broken: success on invalid input.
4487 continue
4488 else
4489 # Passes both tests.
4490 ac_preproc_ok=:
4491 break
4492 fi
4493 rm -f conftest.err conftest.$ac_ext
4494
4495 done
4496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4497 rm -f conftest.err conftest.$ac_ext
4498 if $ac_preproc_ok; then :
4499 break
4500 fi
4501
4502 done
4503 ac_cv_prog_CPP=$CPP
4504
4505 fi
4506 CPP=$ac_cv_prog_CPP
4507 else
4508 ac_cv_prog_CPP=$CPP
4509 fi
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4511 $as_echo "$CPP" >&6; }
4512 ac_preproc_ok=false
4513 for ac_c_preproc_warn_flag in '' yes
4514 do
4515 # Use a header file that comes with gcc, so configuring glibc
4516 # with a fresh cross-compiler works.
4517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4518 # <limits.h> exists even on freestanding compilers.
4519 # On the NeXT, cc -E runs the code through the compiler's parser,
4520 # not just through cpp. "Syntax error" is here to catch this case.
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #ifdef __STDC__
4524 # include <limits.h>
4525 #else
4526 # include <assert.h>
4527 #endif
4528 Syntax error
4529 _ACEOF
4530 if ac_fn_c_try_cpp "$LINENO"; then :
4531
4532 else
4533 # Broken: fails on valid input.
4534 continue
4535 fi
4536 rm -f conftest.err conftest.$ac_ext
4537
4538 # OK, works on sane cases. Now check whether nonexistent headers
4539 # can be detected and how.
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542 #include <ac_nonexistent.h>
4543 _ACEOF
4544 if ac_fn_c_try_cpp "$LINENO"; then :
4545 # Broken: success on invalid input.
4546 continue
4547 else
4548 # Passes both tests.
4549 ac_preproc_ok=:
4550 break
4551 fi
4552 rm -f conftest.err conftest.$ac_ext
4553
4554 done
4555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4556 rm -f conftest.err conftest.$ac_ext
4557 if $ac_preproc_ok; then :
4558
4559 else
4560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4563 See \`config.log' for more details." "$LINENO" 5; }
4564 fi
4565
4566 ac_ext=c
4567 ac_cpp='$CPP $CPPFLAGS'
4568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4571
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4574 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4575 if test "${ac_cv_path_GREP+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -z "$GREP"; then
4579 ac_path_GREP_found=false
4580 # Loop through the user's path and test for each of PROGNAME-LIST
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4583 do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
4586 for ac_prog in grep ggrep; do
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4589 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4590 # Check for GNU ac_path_GREP and select it if it is found.
4591 # Check for GNU $ac_path_GREP
4592 case `"$ac_path_GREP" --version 2>&1` in
4593 *GNU*)
4594 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4595 *)
4596 ac_count=0
4597 $as_echo_n 0123456789 >"conftest.in"
4598 while :
4599 do
4600 cat "conftest.in" "conftest.in" >"conftest.tmp"
4601 mv "conftest.tmp" "conftest.in"
4602 cp "conftest.in" "conftest.nl"
4603 $as_echo 'GREP' >> "conftest.nl"
4604 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4606 as_fn_arith $ac_count + 1 && ac_count=$as_val
4607 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4608 # Best one so far, save it but keep looking for a better one
4609 ac_cv_path_GREP="$ac_path_GREP"
4610 ac_path_GREP_max=$ac_count
4611 fi
4612 # 10*(2^10) chars as input seems more than enough
4613 test $ac_count -gt 10 && break
4614 done
4615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4616 esac
4617
4618 $ac_path_GREP_found && break 3
4619 done
4620 done
4621 done
4622 IFS=$as_save_IFS
4623 if test -z "$ac_cv_path_GREP"; then
4624 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4625 fi
4626 else
4627 ac_cv_path_GREP=$GREP
4628 fi
4629
4630 fi
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4632 $as_echo "$ac_cv_path_GREP" >&6; }
4633 GREP="$ac_cv_path_GREP"
4634
4635
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4637 $as_echo_n "checking for egrep... " >&6; }
4638 if test "${ac_cv_path_EGREP+set}" = set; then :
4639 $as_echo_n "(cached) " >&6
4640 else
4641 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4642 then ac_cv_path_EGREP="$GREP -E"
4643 else
4644 if test -z "$EGREP"; then
4645 ac_path_EGREP_found=false
4646 # Loop through the user's path and test for each of PROGNAME-LIST
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4649 do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_prog in egrep; do
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4655 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4656 # Check for GNU ac_path_EGREP and select it if it is found.
4657 # Check for GNU $ac_path_EGREP
4658 case `"$ac_path_EGREP" --version 2>&1` in
4659 *GNU*)
4660 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4661 *)
4662 ac_count=0
4663 $as_echo_n 0123456789 >"conftest.in"
4664 while :
4665 do
4666 cat "conftest.in" "conftest.in" >"conftest.tmp"
4667 mv "conftest.tmp" "conftest.in"
4668 cp "conftest.in" "conftest.nl"
4669 $as_echo 'EGREP' >> "conftest.nl"
4670 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4672 as_fn_arith $ac_count + 1 && ac_count=$as_val
4673 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4674 # Best one so far, save it but keep looking for a better one
4675 ac_cv_path_EGREP="$ac_path_EGREP"
4676 ac_path_EGREP_max=$ac_count
4677 fi
4678 # 10*(2^10) chars as input seems more than enough
4679 test $ac_count -gt 10 && break
4680 done
4681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4682 esac
4683
4684 $ac_path_EGREP_found && break 3
4685 done
4686 done
4687 done
4688 IFS=$as_save_IFS
4689 if test -z "$ac_cv_path_EGREP"; then
4690 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4691 fi
4692 else
4693 ac_cv_path_EGREP=$EGREP
4694 fi
4695
4696 fi
4697 fi
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4699 $as_echo "$ac_cv_path_EGREP" >&6; }
4700 EGREP="$ac_cv_path_EGREP"
4701
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4704 $as_echo_n "checking for ANSI C header files... " >&6; }
4705 if test "${ac_cv_header_stdc+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710 #include <stdlib.h>
4711 #include <stdarg.h>
4712 #include <string.h>
4713 #include <float.h>
4714
4715 int
4716 main ()
4717 {
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_header_stdc=yes
4725 else
4726 ac_cv_header_stdc=no
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729
4730 if test $ac_cv_header_stdc = yes; then
4731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734 #include <string.h>
4735
4736 _ACEOF
4737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738 $EGREP "memchr" >/dev/null 2>&1; then :
4739
4740 else
4741 ac_cv_header_stdc=no
4742 fi
4743 rm -f conftest*
4744
4745 fi
4746
4747 if test $ac_cv_header_stdc = yes; then
4748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 #include <stdlib.h>
4752
4753 _ACEOF
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "free" >/dev/null 2>&1; then :
4756
4757 else
4758 ac_cv_header_stdc=no
4759 fi
4760 rm -f conftest*
4761
4762 fi
4763
4764 if test $ac_cv_header_stdc = yes; then
4765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4766 if test "$cross_compiling" = yes; then :
4767 :
4768 else
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771 #include <ctype.h>
4772 #include <stdlib.h>
4773 #if ((' ' & 0x0FF) == 0x020)
4774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4776 #else
4777 # define ISLOWER(c) \
4778 (('a' <= (c) && (c) <= 'i') \
4779 || ('j' <= (c) && (c) <= 'r') \
4780 || ('s' <= (c) && (c) <= 'z'))
4781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4782 #endif
4783
4784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4785 int
4786 main ()
4787 {
4788 int i;
4789 for (i = 0; i < 256; i++)
4790 if (XOR (islower (i), ISLOWER (i))
4791 || toupper (i) != TOUPPER (i))
4792 return 2;
4793 return 0;
4794 }
4795 _ACEOF
4796 if ac_fn_c_try_run "$LINENO"; then :
4797
4798 else
4799 ac_cv_header_stdc=no
4800 fi
4801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4802 conftest.$ac_objext conftest.beam conftest.$ac_ext
4803 fi
4804
4805 fi
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4808 $as_echo "$ac_cv_header_stdc" >&6; }
4809 if test $ac_cv_header_stdc = yes; then
4810
4811 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4812
4813 fi
4814
4815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4817 inttypes.h stdint.h unistd.h
4818 do :
4819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4821 "
4822 eval as_val=\$$as_ac_Header
4823 if test "x$as_val" = x""yes; then :
4824 cat >>confdefs.h <<_ACEOF
4825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4826 _ACEOF
4827
4828 fi
4829
4830 done
4831
4832
4833
4834 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4835 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4836 MINIX=yes
4837 else
4838 MINIX=
4839 fi
4840
4841
4842 if test "$MINIX" = yes; then
4843
4844 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4845
4846
4847 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4848
4849
4850 $as_echo "#define _MINIX 1" >>confdefs.h
4851
4852 fi
4853
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4856 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4857 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 # define __EXTENSIONS__ 1
4864 $ac_includes_default
4865 int
4866 main ()
4867 {
4868
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 if ac_fn_c_try_compile "$LINENO"; then :
4874 ac_cv_safe_to_define___extensions__=yes
4875 else
4876 ac_cv_safe_to_define___extensions__=no
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4881 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4882 test $ac_cv_safe_to_define___extensions__ = yes &&
4883 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4884
4885 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4886
4887 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4888
4889 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4890
4891 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4892
4893
4894
4895
4896
4897 case `pwd` in
4898 *\ * | *\ *)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4900 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4901 esac
4902
4903
4904
4905 macro_version='2.2.7a'
4906 macro_revision='1.3134'
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920 ltmain="$ac_aux_dir/ltmain.sh"
4921
4922 # Backslashify metacharacters that are still active within
4923 # double-quoted strings.
4924 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4925
4926 # Same as above, but do not quote variable references.
4927 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4928
4929 # Sed substitution to delay expansion of an escaped shell variable in a
4930 # double_quote_subst'ed string.
4931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4932
4933 # Sed substitution to delay expansion of an escaped single quote.
4934 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4935
4936 # Sed substitution to avoid accidental globbing in evaled expressions
4937 no_glob_subst='s/\*/\\\*/g'
4938
4939 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4940 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4942
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4944 $as_echo_n "checking how to print strings... " >&6; }
4945 # Test print first, because it will be a builtin if present.
4946 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4947 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4948 ECHO='print -r --'
4949 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4950 ECHO='printf %s\n'
4951 else
4952 # Use this function as a fallback that always works.
4953 func_fallback_echo ()
4954 {
4955 eval 'cat <<_LTECHO_EOF
4956 $1
4957 _LTECHO_EOF'
4958 }
4959 ECHO='func_fallback_echo'
4960 fi
4961
4962 # func_echo_all arg...
4963 # Invoke $ECHO with all args, space-separated.
4964 func_echo_all ()
4965 {
4966 $ECHO ""
4967 }
4968
4969 case "$ECHO" in
4970 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4971 $as_echo "printf" >&6; } ;;
4972 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4973 $as_echo "print -r" >&6; } ;;
4974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4975 $as_echo "cat" >&6; } ;;
4976 esac
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4992 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4993 if test "${ac_cv_path_SED+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4997 for ac_i in 1 2 3 4 5 6 7; do
4998 ac_script="$ac_script$as_nl$ac_script"
4999 done
5000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5001 { ac_script=; unset ac_script;}
5002 if test -z "$SED"; then
5003 ac_path_SED_found=false
5004 # Loop through the user's path and test for each of PROGNAME-LIST
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_prog in sed gsed; do
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5013 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5014 # Check for GNU ac_path_SED and select it if it is found.
5015 # Check for GNU $ac_path_SED
5016 case `"$ac_path_SED" --version 2>&1` in
5017 *GNU*)
5018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5019 *)
5020 ac_count=0
5021 $as_echo_n 0123456789 >"conftest.in"
5022 while :
5023 do
5024 cat "conftest.in" "conftest.in" >"conftest.tmp"
5025 mv "conftest.tmp" "conftest.in"
5026 cp "conftest.in" "conftest.nl"
5027 $as_echo '' >> "conftest.nl"
5028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5030 as_fn_arith $ac_count + 1 && ac_count=$as_val
5031 if test $ac_count -gt ${ac_path_SED_max-0}; then
5032 # Best one so far, save it but keep looking for a better one
5033 ac_cv_path_SED="$ac_path_SED"
5034 ac_path_SED_max=$ac_count
5035 fi
5036 # 10*(2^10) chars as input seems more than enough
5037 test $ac_count -gt 10 && break
5038 done
5039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5040 esac
5041
5042 $ac_path_SED_found && break 3
5043 done
5044 done
5045 done
5046 IFS=$as_save_IFS
5047 if test -z "$ac_cv_path_SED"; then
5048 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5049 fi
5050 else
5051 ac_cv_path_SED=$SED
5052 fi
5053
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5056 $as_echo "$ac_cv_path_SED" >&6; }
5057 SED="$ac_cv_path_SED"
5058 rm -f conftest.sed
5059
5060 test -z "$SED" && SED=sed
5061 Xsed="$SED -e 1s/^X//"
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5074 $as_echo_n "checking for fgrep... " >&6; }
5075 if test "${ac_cv_path_FGREP+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5079 then ac_cv_path_FGREP="$GREP -F"
5080 else
5081 if test -z "$FGREP"; then
5082 ac_path_FGREP_found=false
5083 # Loop through the user's path and test for each of PROGNAME-LIST
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5086 do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_prog in fgrep; do
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5092 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5093 # Check for GNU ac_path_FGREP and select it if it is found.
5094 # Check for GNU $ac_path_FGREP
5095 case `"$ac_path_FGREP" --version 2>&1` in
5096 *GNU*)
5097 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5098 *)
5099 ac_count=0
5100 $as_echo_n 0123456789 >"conftest.in"
5101 while :
5102 do
5103 cat "conftest.in" "conftest.in" >"conftest.tmp"
5104 mv "conftest.tmp" "conftest.in"
5105 cp "conftest.in" "conftest.nl"
5106 $as_echo 'FGREP' >> "conftest.nl"
5107 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5109 as_fn_arith $ac_count + 1 && ac_count=$as_val
5110 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5111 # Best one so far, save it but keep looking for a better one
5112 ac_cv_path_FGREP="$ac_path_FGREP"
5113 ac_path_FGREP_max=$ac_count
5114 fi
5115 # 10*(2^10) chars as input seems more than enough
5116 test $ac_count -gt 10 && break
5117 done
5118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5119 esac
5120
5121 $ac_path_FGREP_found && break 3
5122 done
5123 done
5124 done
5125 IFS=$as_save_IFS
5126 if test -z "$ac_cv_path_FGREP"; then
5127 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5128 fi
5129 else
5130 ac_cv_path_FGREP=$FGREP
5131 fi
5132
5133 fi
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5136 $as_echo "$ac_cv_path_FGREP" >&6; }
5137 FGREP="$ac_cv_path_FGREP"
5138
5139
5140 test -z "$GREP" && GREP=grep
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160 # Check whether --with-gnu-ld was given.
5161 if test "${with_gnu_ld+set}" = set; then :
5162 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5163 else
5164 with_gnu_ld=no
5165 fi
5166
5167 ac_prog=ld
5168 if test "$GCC" = yes; then
5169 # Check if gcc -print-prog-name=ld gives a path.
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5171 $as_echo_n "checking for ld used by $CC... " >&6; }
5172 case $host in
5173 *-*-mingw*)
5174 # gcc leaves a trailing carriage return which upsets mingw
5175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5176 *)
5177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5178 esac
5179 case $ac_prog in
5180 # Accept absolute paths.
5181 [\\/]* | ?:[\\/]*)
5182 re_direlt='/[^/][^/]*/\.\./'
5183 # Canonicalize the pathname of ld
5184 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5185 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5186 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5187 done
5188 test -z "$LD" && LD="$ac_prog"
5189 ;;
5190 "")
5191 # If it fails, then pretend we aren't using GCC.
5192 ac_prog=ld
5193 ;;
5194 *)
5195 # If it is relative, then search for the first ld in PATH.
5196 with_gnu_ld=unknown
5197 ;;
5198 esac
5199 elif test "$with_gnu_ld" = yes; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5201 $as_echo_n "checking for GNU ld... " >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5204 $as_echo_n "checking for non-GNU ld... " >&6; }
5205 fi
5206 if test "${lt_cv_path_LD+set}" = set; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 if test -z "$LD"; then
5210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5211 for ac_dir in $PATH; do
5212 IFS="$lt_save_ifs"
5213 test -z "$ac_dir" && ac_dir=.
5214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5215 lt_cv_path_LD="$ac_dir/$ac_prog"
5216 # Check to see if the program is GNU ld. I'd rather use --version,
5217 # but apparently some variants of GNU ld only accept -v.
5218 # Break only if it was the GNU/non-GNU ld that we prefer.
5219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5220 *GNU* | *'with BFD'*)
5221 test "$with_gnu_ld" != no && break
5222 ;;
5223 *)
5224 test "$with_gnu_ld" != yes && break
5225 ;;
5226 esac
5227 fi
5228 done
5229 IFS="$lt_save_ifs"
5230 else
5231 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5232 fi
5233 fi
5234
5235 LD="$lt_cv_path_LD"
5236 if test -n "$LD"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5238 $as_echo "$LD" >&6; }
5239 else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5245 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5246 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5250 case `$LD -v 2>&1 </dev/null` in
5251 *GNU* | *'with BFD'*)
5252 lt_cv_prog_gnu_ld=yes
5253 ;;
5254 *)
5255 lt_cv_prog_gnu_ld=no
5256 ;;
5257 esac
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5260 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5261 with_gnu_ld=$lt_cv_prog_gnu_ld
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5272 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5273 if test "${lt_cv_path_NM+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 if test -n "$NM"; then
5277 # Let the user override the test.
5278 lt_cv_path_NM="$NM"
5279 else
5280 lt_nm_to_check="${ac_tool_prefix}nm"
5281 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5282 lt_nm_to_check="$lt_nm_to_check nm"
5283 fi
5284 for lt_tmp_nm in $lt_nm_to_check; do
5285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5286 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5287 IFS="$lt_save_ifs"
5288 test -z "$ac_dir" && ac_dir=.
5289 tmp_nm="$ac_dir/$lt_tmp_nm"
5290 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5291 # Check to see if the nm accepts a BSD-compat flag.
5292 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5293 # nm: unknown option "B" ignored
5294 # Tru64's nm complains that /dev/null is an invalid object file
5295 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5296 */dev/null* | *'Invalid file or object type'*)
5297 lt_cv_path_NM="$tmp_nm -B"
5298 break
5299 ;;
5300 *)
5301 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5302 */dev/null*)
5303 lt_cv_path_NM="$tmp_nm -p"
5304 break
5305 ;;
5306 *)
5307 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5308 continue # so that we can try to find one that supports BSD flags
5309 ;;
5310 esac
5311 ;;
5312 esac
5313 fi
5314 done
5315 IFS="$lt_save_ifs"
5316 done
5317 : ${lt_cv_path_NM=no}
5318 fi
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5321 $as_echo "$lt_cv_path_NM" >&6; }
5322 if test "$lt_cv_path_NM" != "no"; then
5323 NM="$lt_cv_path_NM"
5324 else
5325 # Didn't find any BSD compatible name lister, look for dumpbin.
5326 if test -n "$DUMPBIN"; then :
5327 # Let the user override the test.
5328 else
5329 if test -n "$ac_tool_prefix"; then
5330 for ac_prog in dumpbin "link -dump"
5331 do
5332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$DUMPBIN"; then
5340 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5352 fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357 fi
5358 fi
5359 DUMPBIN=$ac_cv_prog_DUMPBIN
5360 if test -n "$DUMPBIN"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5362 $as_echo "$DUMPBIN" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5366 fi
5367
5368
5369 test -n "$DUMPBIN" && break
5370 done
5371 fi
5372 if test -z "$DUMPBIN"; then
5373 ac_ct_DUMPBIN=$DUMPBIN
5374 for ac_prog in dumpbin "link -dump"
5375 do
5376 # Extract the first word of "$ac_prog", so it can be a program name with args.
5377 set dummy $ac_prog; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -n "$ac_ct_DUMPBIN"; then
5384 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi
5402 fi
5403 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5404 if test -n "$ac_ct_DUMPBIN"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5406 $as_echo "$ac_ct_DUMPBIN" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5410 fi
5411
5412
5413 test -n "$ac_ct_DUMPBIN" && break
5414 done
5415
5416 if test "x$ac_ct_DUMPBIN" = x; then
5417 DUMPBIN=":"
5418 else
5419 case $cross_compiling:$ac_tool_warned in
5420 yes:)
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5423 ac_tool_warned=yes ;;
5424 esac
5425 DUMPBIN=$ac_ct_DUMPBIN
5426 fi
5427 fi
5428
5429 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5430 *COFF*)
5431 DUMPBIN="$DUMPBIN -symbols"
5432 ;;
5433 *)
5434 DUMPBIN=:
5435 ;;
5436 esac
5437 fi
5438
5439 if test "$DUMPBIN" != ":"; then
5440 NM="$DUMPBIN"
5441 fi
5442 fi
5443 test -z "$NM" && NM=nm
5444
5445
5446
5447
5448
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5451 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5452 if test "${lt_cv_nm_interface+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 lt_cv_nm_interface="BSD nm"
5456 echo "int some_variable = 0;" > conftest.$ac_ext
5457 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5458 (eval "$ac_compile" 2>conftest.err)
5459 cat conftest.err >&5
5460 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5461 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5462 cat conftest.err >&5
5463 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5464 cat conftest.out >&5
5465 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5466 lt_cv_nm_interface="MS dumpbin"
5467 fi
5468 rm -f conftest*
5469 fi
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5471 $as_echo "$lt_cv_nm_interface" >&6; }
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5474 $as_echo_n "checking whether ln -s works... " >&6; }
5475 LN_S=$as_ln_s
5476 if test "$LN_S" = "ln -s"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5478 $as_echo "yes" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5481 $as_echo "no, using $LN_S" >&6; }
5482 fi
5483
5484 # find the maximum length of command line arguments
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5486 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5487 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 i=0
5491 teststring="ABCD"
5492
5493 case $build_os in
5494 msdosdjgpp*)
5495 # On DJGPP, this test can blow up pretty badly due to problems in libc
5496 # (any single argument exceeding 2000 bytes causes a buffer overrun
5497 # during glob expansion). Even if it were fixed, the result of this
5498 # check would be larger than it should be.
5499 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5500 ;;
5501
5502 gnu*)
5503 # Under GNU Hurd, this test is not required because there is
5504 # no limit to the length of command line arguments.
5505 # Libtool will interpret -1 as no limit whatsoever
5506 lt_cv_sys_max_cmd_len=-1;
5507 ;;
5508
5509 cygwin* | mingw* | cegcc*)
5510 # On Win9x/ME, this test blows up -- it succeeds, but takes
5511 # about 5 minutes as the teststring grows exponentially.
5512 # Worse, since 9x/ME are not pre-emptively multitasking,
5513 # you end up with a "frozen" computer, even though with patience
5514 # the test eventually succeeds (with a max line length of 256k).
5515 # Instead, let's just punt: use the minimum linelength reported by
5516 # all of the supported platforms: 8192 (on NT/2K/XP).
5517 lt_cv_sys_max_cmd_len=8192;
5518 ;;
5519
5520 mint*)
5521 # On MiNT this can take a long time and run out of memory.
5522 lt_cv_sys_max_cmd_len=8192;
5523 ;;
5524
5525 amigaos*)
5526 # On AmigaOS with pdksh, this test takes hours, literally.
5527 # So we just punt and use a minimum line length of 8192.
5528 lt_cv_sys_max_cmd_len=8192;
5529 ;;
5530
5531 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5532 # This has been around since 386BSD, at least. Likely further.
5533 if test -x /sbin/sysctl; then
5534 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5535 elif test -x /usr/sbin/sysctl; then
5536 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5537 else
5538 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5539 fi
5540 # And add a safety zone
5541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5543 ;;
5544
5545 interix*)
5546 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5547 lt_cv_sys_max_cmd_len=196608
5548 ;;
5549
5550 osf*)
5551 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5552 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5553 # nice to cause kernel panics so lets avoid the loop below.
5554 # First set a reasonable default.
5555 lt_cv_sys_max_cmd_len=16384
5556 #
5557 if test -x /sbin/sysconfig; then
5558 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5559 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5560 esac
5561 fi
5562 ;;
5563 sco3.2v5*)
5564 lt_cv_sys_max_cmd_len=102400
5565 ;;
5566 sysv5* | sco5v6* | sysv4.2uw2*)
5567 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5568 if test -n "$kargmax"; then
5569 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5570 else
5571 lt_cv_sys_max_cmd_len=32768
5572 fi
5573 ;;
5574 *)
5575 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5576 if test -n "$lt_cv_sys_max_cmd_len"; then
5577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5579 else
5580 # Make teststring a little bigger before we do anything with it.
5581 # a 1K string should be a reasonable start.
5582 for i in 1 2 3 4 5 6 7 8 ; do
5583 teststring=$teststring$teststring
5584 done
5585 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5586 # If test is not a shell built-in, we'll probably end up computing a
5587 # maximum length that is only half of the actual maximum length, but
5588 # we can't tell.
5589 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5590 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5591 test $i != 17 # 1/2 MB should be enough
5592 do
5593 i=`expr $i + 1`
5594 teststring=$teststring$teststring
5595 done
5596 # Only check the string length outside the loop.
5597 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5598 teststring=
5599 # Add a significant safety factor because C++ compilers can tack on
5600 # massive amounts of additional arguments before passing them to the
5601 # linker. It appears as though 1/2 is a usable value.
5602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5603 fi
5604 ;;
5605 esac
5606
5607 fi
5608
5609 if test -n $lt_cv_sys_max_cmd_len ; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5611 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5614 $as_echo "none" >&6; }
5615 fi
5616 max_cmd_len=$lt_cv_sys_max_cmd_len
5617
5618
5619
5620
5621
5622
5623 : ${CP="cp -f"}
5624 : ${MV="mv -f"}
5625 : ${RM="rm -f"}
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5628 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5629 # Try some XSI features
5630 xsi_shell=no
5631 ( _lt_dummy="a/b/c"
5632 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5633 = c,a/b,, \
5634 && eval 'test $(( 1 + 1 )) -eq 2 \
5635 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5636 && xsi_shell=yes
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5638 $as_echo "$xsi_shell" >&6; }
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5642 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5643 lt_shell_append=no
5644 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5645 >/dev/null 2>&1 \
5646 && lt_shell_append=yes
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5648 $as_echo "$lt_shell_append" >&6; }
5649
5650
5651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5652 lt_unset=unset
5653 else
5654 lt_unset=false
5655 fi
5656
5657
5658
5659
5660
5661 # test EBCDIC or ASCII
5662 case `echo X|tr X '\101'` in
5663 A) # ASCII based system
5664 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5665 lt_SP2NL='tr \040 \012'
5666 lt_NL2SP='tr \015\012 \040\040'
5667 ;;
5668 *) # EBCDIC based system
5669 lt_SP2NL='tr \100 \n'
5670 lt_NL2SP='tr \r\n \100\100'
5671 ;;
5672 esac
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5683 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5684 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 lt_cv_ld_reload_flag='-r'
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5690 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5691 reload_flag=$lt_cv_ld_reload_flag
5692 case $reload_flag in
5693 "" | " "*) ;;
5694 *) reload_flag=" $reload_flag" ;;
5695 esac
5696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5697 case $host_os in
5698 darwin*)
5699 if test "$GCC" = yes; then
5700 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5701 else
5702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5703 fi
5704 ;;
5705 esac
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if test -n "$OBJDUMP"; then
5724 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737 done
5738 done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 OBJDUMP=$ac_cv_prog_OBJDUMP
5744 if test -n "$OBJDUMP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5746 $as_echo "$OBJDUMP" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751
5752
5753 fi
5754 if test -z "$ac_cv_prog_OBJDUMP"; then
5755 ac_ct_OBJDUMP=$OBJDUMP
5756 # Extract the first word of "objdump", so it can be a program name with args.
5757 set dummy objdump; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$ac_ct_OBJDUMP"; then
5764 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5776 fi
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5784 if test -n "$ac_ct_OBJDUMP"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5786 $as_echo "$ac_ct_OBJDUMP" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792 if test "x$ac_ct_OBJDUMP" = x; then
5793 OBJDUMP="false"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801 OBJDUMP=$ac_ct_OBJDUMP
5802 fi
5803 else
5804 OBJDUMP="$ac_cv_prog_OBJDUMP"
5805 fi
5806
5807 test -z "$OBJDUMP" && OBJDUMP=objdump
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5818 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5819 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 lt_cv_file_magic_cmd='$MAGIC_CMD'
5823 lt_cv_file_magic_test_file=
5824 lt_cv_deplibs_check_method='unknown'
5825 # Need to set the preceding variable on all platforms that support
5826 # interlibrary dependencies.
5827 # 'none' -- dependencies not supported.
5828 # `unknown' -- same as none, but documents that we really don't know.
5829 # 'pass_all' -- all dependencies passed with no checks.
5830 # 'test_compile' -- check by making test program.
5831 # 'file_magic [[regex]]' -- check by looking for files in library path
5832 # which responds to the $file_magic_cmd with a given extended regex.
5833 # If you have `file' or equivalent on your system and you're not sure
5834 # whether `pass_all' will *always* work, you probably want this one.
5835
5836 case $host_os in
5837 aix[4-9]*)
5838 lt_cv_deplibs_check_method=pass_all
5839 ;;
5840
5841 beos*)
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
5844
5845 bsdi[45]*)
5846 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5847 lt_cv_file_magic_cmd='/usr/bin/file -L'
5848 lt_cv_file_magic_test_file=/shlib/libc.so
5849 ;;
5850
5851 cygwin*)
5852 # func_win32_libid is a shell function defined in ltmain.sh
5853 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5854 lt_cv_file_magic_cmd='func_win32_libid'
5855 ;;
5856
5857 mingw* | pw32*)
5858 # Base MSYS/MinGW do not provide the 'file' command needed by
5859 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5860 # unless we find 'file', for example because we are cross-compiling.
5861 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5862 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5864 lt_cv_file_magic_cmd='func_win32_libid'
5865 else
5866 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5867 lt_cv_file_magic_cmd='$OBJDUMP -f'
5868 fi
5869 ;;
5870
5871 cegcc*)
5872 # use the weaker test based on 'objdump'. See mingw*.
5873 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5874 lt_cv_file_magic_cmd='$OBJDUMP -f'
5875 ;;
5876
5877 darwin* | rhapsody*)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880
5881 freebsd* | dragonfly*)
5882 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5883 case $host_cpu in
5884 i*86 )
5885 # Not sure whether the presence of OpenBSD here was a mistake.
5886 # Let's accept both of them until this is cleared up.
5887 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5888 lt_cv_file_magic_cmd=/usr/bin/file
5889 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5890 ;;
5891 esac
5892 else
5893 lt_cv_deplibs_check_method=pass_all
5894 fi
5895 ;;
5896
5897 gnu*)
5898 lt_cv_deplibs_check_method=pass_all
5899 ;;
5900
5901 haiku*)
5902 lt_cv_deplibs_check_method=pass_all
5903 ;;
5904
5905 hpux10.20* | hpux11*)
5906 lt_cv_file_magic_cmd=/usr/bin/file
5907 case $host_cpu in
5908 ia64*)
5909 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5910 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5911 ;;
5912 hppa*64*)
5913 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]'
5914 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5915 ;;
5916 *)
5917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5918 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5919 ;;
5920 esac
5921 ;;
5922
5923 interix[3-9]*)
5924 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5925 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5926 ;;
5927
5928 irix5* | irix6* | nonstopux*)
5929 case $LD in
5930 *-32|*"-32 ") libmagic=32-bit;;
5931 *-n32|*"-n32 ") libmagic=N32;;
5932 *-64|*"-64 ") libmagic=64-bit;;
5933 *) libmagic=never-match;;
5934 esac
5935 lt_cv_deplibs_check_method=pass_all
5936 ;;
5937
5938 # This must be Linux ELF.
5939 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5940 lt_cv_deplibs_check_method=pass_all
5941 ;;
5942
5943 netbsd*)
5944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5945 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5946 else
5947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5948 fi
5949 ;;
5950
5951 newos6*)
5952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5953 lt_cv_file_magic_cmd=/usr/bin/file
5954 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5955 ;;
5956
5957 *nto* | *qnx*)
5958 lt_cv_deplibs_check_method=pass_all
5959 ;;
5960
5961 openbsd*)
5962 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5964 else
5965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5966 fi
5967 ;;
5968
5969 osf3* | osf4* | osf5*)
5970 lt_cv_deplibs_check_method=pass_all
5971 ;;
5972
5973 rdos*)
5974 lt_cv_deplibs_check_method=pass_all
5975 ;;
5976
5977 solaris*)
5978 lt_cv_deplibs_check_method=pass_all
5979 ;;
5980
5981 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984
5985 sysv4 | sysv4.3*)
5986 case $host_vendor in
5987 motorola)
5988 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]'
5989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5990 ;;
5991 ncr)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994 sequent)
5995 lt_cv_file_magic_cmd='/bin/file'
5996 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5997 ;;
5998 sni)
5999 lt_cv_file_magic_cmd='/bin/file'
6000 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6001 lt_cv_file_magic_test_file=/lib/libc.so
6002 ;;
6003 siemens)
6004 lt_cv_deplibs_check_method=pass_all
6005 ;;
6006 pc)
6007 lt_cv_deplibs_check_method=pass_all
6008 ;;
6009 esac
6010 ;;
6011
6012 tpf*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015 esac
6016
6017 fi
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6019 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6020 file_magic_cmd=$lt_cv_file_magic_cmd
6021 deplibs_check_method=$lt_cv_deplibs_check_method
6022 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035 if test -n "$ac_tool_prefix"; then
6036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6037 set dummy ${ac_tool_prefix}ar; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if test "${ac_cv_prog_AR+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043 if test -n "$AR"; then
6044 ac_cv_prog_AR="$AR" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
6051 for ac_exec_ext in '' $ac_executable_extensions; do
6052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6053 ac_cv_prog_AR="${ac_tool_prefix}ar"
6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055 break 2
6056 fi
6057 done
6058 done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 AR=$ac_cv_prog_AR
6064 if test -n "$AR"; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6066 $as_echo "$AR" >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072
6073 fi
6074 if test -z "$ac_cv_prog_AR"; then
6075 ac_ct_AR=$AR
6076 # Extract the first word of "ar", so it can be a program name with args.
6077 set dummy ar; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if test -n "$ac_ct_AR"; then
6084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_ac_ct_AR="ar"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6096 fi
6097 done
6098 done
6099 IFS=$as_save_IFS
6100
6101 fi
6102 fi
6103 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6104 if test -n "$ac_ct_AR"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6106 $as_echo "$ac_ct_AR" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 fi
6111
6112 if test "x$ac_ct_AR" = x; then
6113 AR="false"
6114 else
6115 case $cross_compiling:$ac_tool_warned in
6116 yes:)
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6120 esac
6121 AR=$ac_ct_AR
6122 fi
6123 else
6124 AR="$ac_cv_prog_AR"
6125 fi
6126
6127 test -z "$AR" && AR=ar
6128 test -z "$AR_FLAGS" && AR_FLAGS=cru
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140 if test -n "$ac_tool_prefix"; then
6141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6142 set dummy ${ac_tool_prefix}strip; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if test "${ac_cv_prog_STRIP+set}" = set; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 if test -n "$STRIP"; then
6149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154 IFS=$as_save_IFS
6155 test -z "$as_dir" && as_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 break 2
6161 fi
6162 done
6163 done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 STRIP=$ac_cv_prog_STRIP
6169 if test -n "$STRIP"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6171 $as_echo "$STRIP" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178 fi
6179 if test -z "$ac_cv_prog_STRIP"; then
6180 ac_ct_STRIP=$STRIP
6181 # Extract the first word of "strip", so it can be a program name with args.
6182 set dummy strip; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$ac_ct_STRIP"; then
6189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_ac_ct_STRIP="strip"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6209 if test -n "$ac_ct_STRIP"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6211 $as_echo "$ac_ct_STRIP" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217 if test "x$ac_ct_STRIP" = x; then
6218 STRIP=":"
6219 else
6220 case $cross_compiling:$ac_tool_warned in
6221 yes:)
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6225 esac
6226 STRIP=$ac_ct_STRIP
6227 fi
6228 else
6229 STRIP="$ac_cv_prog_STRIP"
6230 fi
6231
6232 test -z "$STRIP" && STRIP=:
6233
6234
6235
6236
6237
6238
6239 if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6241 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if test -n "$RANLIB"; then
6248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 RANLIB=$ac_cv_prog_RANLIB
6268 if test -n "$RANLIB"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6270 $as_echo "$RANLIB" >&6; }
6271 else
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275
6276
6277 fi
6278 if test -z "$ac_cv_prog_RANLIB"; then
6279 ac_ct_RANLIB=$RANLIB
6280 # Extract the first word of "ranlib", so it can be a program name with args.
6281 set dummy ranlib; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 if test -n "$ac_ct_RANLIB"; then
6288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_ac_ct_RANLIB="ranlib"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6308 if test -n "$ac_ct_RANLIB"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6310 $as_echo "$ac_ct_RANLIB" >&6; }
6311 else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316 if test "x$ac_ct_RANLIB" = x; then
6317 RANLIB=":"
6318 else
6319 case $cross_compiling:$ac_tool_warned in
6320 yes:)
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323 ac_tool_warned=yes ;;
6324 esac
6325 RANLIB=$ac_ct_RANLIB
6326 fi
6327 else
6328 RANLIB="$ac_cv_prog_RANLIB"
6329 fi
6330
6331 test -z "$RANLIB" && RANLIB=:
6332
6333
6334
6335
6336
6337
6338 # Determine commands to create old-style static archives.
6339 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6340 old_postinstall_cmds='chmod 644 $oldlib'
6341 old_postuninstall_cmds=
6342
6343 if test -n "$RANLIB"; then
6344 case $host_os in
6345 openbsd*)
6346 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6347 ;;
6348 *)
6349 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6350 ;;
6351 esac
6352 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6353 fi
6354
6355 case $host_os in
6356 darwin*)
6357 lock_old_archive_extraction=yes ;;
6358 *)
6359 lock_old_archive_extraction=no ;;
6360 esac
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 # If no C compiler was specified, use CC.
6401 LTCC=${LTCC-"$CC"}
6402
6403 # If no C compiler flags were specified, use CFLAGS.
6404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6405
6406 # Allow CC to be a program name with arguments.
6407 compiler=$CC
6408
6409
6410 # Check for command to grab the raw symbol name followed by C symbol from nm.
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6412 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6413 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416
6417 # These are sane defaults that work on at least a few old systems.
6418 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6419
6420 # Character class describing NM global symbol codes.
6421 symcode='[BCDEGRST]'
6422
6423 # Regexp to match symbols that can be accessed directly from C.
6424 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6425
6426 # Define system-specific variables.
6427 case $host_os in
6428 aix*)
6429 symcode='[BCDT]'
6430 ;;
6431 cygwin* | mingw* | pw32* | cegcc*)
6432 symcode='[ABCDGISTW]'
6433 ;;
6434 hpux*)
6435 if test "$host_cpu" = ia64; then
6436 symcode='[ABCDEGRST]'
6437 fi
6438 ;;
6439 irix* | nonstopux*)
6440 symcode='[BCDEGRST]'
6441 ;;
6442 osf*)
6443 symcode='[BCDEGQRST]'
6444 ;;
6445 solaris*)
6446 symcode='[BDRT]'
6447 ;;
6448 sco3.2v5*)
6449 symcode='[DT]'
6450 ;;
6451 sysv4.2uw2*)
6452 symcode='[DT]'
6453 ;;
6454 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6455 symcode='[ABDT]'
6456 ;;
6457 sysv4)
6458 symcode='[DFNSTU]'
6459 ;;
6460 esac
6461
6462 # If we're using GNU nm, then use its standard symbol codes.
6463 case `$NM -V 2>&1` in
6464 *GNU* | *'with BFD'*)
6465 symcode='[ABCDGIRSTW]' ;;
6466 esac
6467
6468 # Transform an extracted symbol line into a proper C declaration.
6469 # Some systems (esp. on ia64) link data and code symbols differently,
6470 # so use this general approach.
6471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6472
6473 # Transform an extracted symbol line into symbol name and symbol address
6474 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6475 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'"
6476
6477 # Handle CRLF in mingw tool chain
6478 opt_cr=
6479 case $build_os in
6480 mingw*)
6481 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6482 ;;
6483 esac
6484
6485 # Try without a prefix underscore, then with it.
6486 for ac_symprfx in "" "_"; do
6487
6488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6489 symxfrm="\\1 $ac_symprfx\\2 \\2"
6490
6491 # Write the raw and C identifiers.
6492 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6493 # Fake it for dumpbin and say T for any non-static function
6494 # and D for any global variable.
6495 # Also find C++ and __fastcall symbols from MSVC++,
6496 # which start with @ or ?.
6497 lt_cv_sys_global_symbol_pipe="$AWK '"\
6498 " {last_section=section; section=\$ 3};"\
6499 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6500 " \$ 0!~/External *\|/{next};"\
6501 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6502 " {if(hide[section]) next};"\
6503 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6504 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6505 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6506 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6507 " ' prfx=^$ac_symprfx"
6508 else
6509 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6510 fi
6511
6512 # Check to see that the pipe works correctly.
6513 pipe_works=no
6514
6515 rm -f conftest*
6516 cat > conftest.$ac_ext <<_LT_EOF
6517 #ifdef __cplusplus
6518 extern "C" {
6519 #endif
6520 char nm_test_var;
6521 void nm_test_func(void);
6522 void nm_test_func(void){}
6523 #ifdef __cplusplus
6524 }
6525 #endif
6526 int main(){nm_test_var='a';nm_test_func();return(0);}
6527 _LT_EOF
6528
6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530 (eval $ac_compile) 2>&5
6531 ac_status=$?
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; then
6534 # Now try to grab the symbols.
6535 nlist=conftest.nm
6536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6537 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6538 ac_status=$?
6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540 test $ac_status = 0; } && test -s "$nlist"; then
6541 # Try sorting and uniquifying the output.
6542 if sort "$nlist" | uniq > "$nlist"T; then
6543 mv -f "$nlist"T "$nlist"
6544 else
6545 rm -f "$nlist"T
6546 fi
6547
6548 # Make sure that we snagged all the symbols we need.
6549 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6550 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6551 cat <<_LT_EOF > conftest.$ac_ext
6552 #ifdef __cplusplus
6553 extern "C" {
6554 #endif
6555
6556 _LT_EOF
6557 # Now generate the symbol file.
6558 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6559
6560 cat <<_LT_EOF >> conftest.$ac_ext
6561
6562 /* The mapping between symbol names and symbols. */
6563 const struct {
6564 const char *name;
6565 void *address;
6566 }
6567 lt__PROGRAM__LTX_preloaded_symbols[] =
6568 {
6569 { "@PROGRAM@", (void *) 0 },
6570 _LT_EOF
6571 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6572 cat <<\_LT_EOF >> conftest.$ac_ext
6573 {0, (void *) 0}
6574 };
6575
6576 /* This works around a problem in FreeBSD linker */
6577 #ifdef FREEBSD_WORKAROUND
6578 static const void *lt_preloaded_setup() {
6579 return lt__PROGRAM__LTX_preloaded_symbols;
6580 }
6581 #endif
6582
6583 #ifdef __cplusplus
6584 }
6585 #endif
6586 _LT_EOF
6587 # Now try linking the two files.
6588 mv conftest.$ac_objext conftstm.$ac_objext
6589 lt_save_LIBS="$LIBS"
6590 lt_save_CFLAGS="$CFLAGS"
6591 LIBS="conftstm.$ac_objext"
6592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6594 (eval $ac_link) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6598 pipe_works=yes
6599 fi
6600 LIBS="$lt_save_LIBS"
6601 CFLAGS="$lt_save_CFLAGS"
6602 else
6603 echo "cannot find nm_test_func in $nlist" >&5
6604 fi
6605 else
6606 echo "cannot find nm_test_var in $nlist" >&5
6607 fi
6608 else
6609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6610 fi
6611 else
6612 echo "$progname: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 fi
6615 rm -rf conftest* conftst*
6616
6617 # Do not use the global_symbol_pipe unless it works.
6618 if test "$pipe_works" = yes; then
6619 break
6620 else
6621 lt_cv_sys_global_symbol_pipe=
6622 fi
6623 done
6624
6625 fi
6626
6627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6628 lt_cv_sys_global_symbol_to_cdecl=
6629 fi
6630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6632 $as_echo "failed" >&6; }
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6635 $as_echo "ok" >&6; }
6636 fi
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659 # Check whether --enable-libtool-lock was given.
6660 if test "${enable_libtool_lock+set}" = set; then :
6661 enableval=$enable_libtool_lock;
6662 fi
6663
6664 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6665
6666 # Some flags need to be propagated to the compiler or linker for good
6667 # libtool support.
6668 case $host in
6669 ia64-*-hpux*)
6670 # Find out which ABI we are using.
6671 echo 'int i;' > conftest.$ac_ext
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }; then
6677 case `/usr/bin/file conftest.$ac_objext` in
6678 *ELF-32*)
6679 HPUX_IA64_MODE="32"
6680 ;;
6681 *ELF-64*)
6682 HPUX_IA64_MODE="64"
6683 ;;
6684 esac
6685 fi
6686 rm -rf conftest*
6687 ;;
6688 *-*-irix6*)
6689 # Find out which ABI we are using.
6690 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6692 (eval $ac_compile) 2>&5
6693 ac_status=$?
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; then
6696 if test "$lt_cv_prog_gnu_ld" = yes; then
6697 case `/usr/bin/file conftest.$ac_objext` in
6698 *32-bit*)
6699 LD="${LD-ld} -melf32bsmip"
6700 ;;
6701 *N32*)
6702 LD="${LD-ld} -melf32bmipn32"
6703 ;;
6704 *64-bit*)
6705 LD="${LD-ld} -melf64bmip"
6706 ;;
6707 esac
6708 else
6709 case `/usr/bin/file conftest.$ac_objext` in
6710 *32-bit*)
6711 LD="${LD-ld} -32"
6712 ;;
6713 *N32*)
6714 LD="${LD-ld} -n32"
6715 ;;
6716 *64-bit*)
6717 LD="${LD-ld} -64"
6718 ;;
6719 esac
6720 fi
6721 fi
6722 rm -rf conftest*
6723 ;;
6724
6725 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6726 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6727 # Find out which ABI we are using.
6728 echo 'int i;' > conftest.$ac_ext
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 case `/usr/bin/file conftest.o` in
6735 *32-bit*)
6736 case $host in
6737 x86_64-*kfreebsd*-gnu)
6738 LD="${LD-ld} -m elf_i386_fbsd"
6739 ;;
6740 x86_64-*linux*)
6741 case `/usr/bin/file conftest.o` in
6742 *x86-64*)
6743 LD="${LD-ld} -m elf32_x86_64"
6744 ;;
6745 *)
6746 LD="${LD-ld} -m elf_i386"
6747 ;;
6748 esac
6749 ;;
6750 powerpc64le-*linux*)
6751 LD="${LD-ld} -m elf32lppclinux"
6752 ;;
6753 powerpc64-*linux*)
6754 LD="${LD-ld} -m elf32ppclinux"
6755 ;;
6756 s390x-*linux*)
6757 LD="${LD-ld} -m elf_s390"
6758 ;;
6759 sparc64-*linux*)
6760 LD="${LD-ld} -m elf32_sparc"
6761 ;;
6762 esac
6763 ;;
6764 *64-bit*)
6765 case $host in
6766 x86_64-*kfreebsd*-gnu)
6767 LD="${LD-ld} -m elf_x86_64_fbsd"
6768 ;;
6769 x86_64-*linux*)
6770 LD="${LD-ld} -m elf_x86_64"
6771 ;;
6772 powerpcle-*linux*)
6773 LD="${LD-ld} -m elf64lppc"
6774 ;;
6775 powerpc-*linux*)
6776 LD="${LD-ld} -m elf64ppc"
6777 ;;
6778 s390*-*linux*|s390*-*tpf*)
6779 LD="${LD-ld} -m elf64_s390"
6780 ;;
6781 sparc*-*linux*)
6782 LD="${LD-ld} -m elf64_sparc"
6783 ;;
6784 esac
6785 ;;
6786 esac
6787 fi
6788 rm -rf conftest*
6789 ;;
6790
6791 *-*-sco3.2v5*)
6792 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6793 SAVE_CFLAGS="$CFLAGS"
6794 CFLAGS="$CFLAGS -belf"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6796 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6797 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 ac_ext=c
6801 ac_cpp='$CPP $CPPFLAGS'
6802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6805
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808
6809 int
6810 main ()
6811 {
6812
6813 ;
6814 return 0;
6815 }
6816 _ACEOF
6817 if ac_fn_c_try_link "$LINENO"; then :
6818 lt_cv_cc_needs_belf=yes
6819 else
6820 lt_cv_cc_needs_belf=no
6821 fi
6822 rm -f core conftest.err conftest.$ac_objext \
6823 conftest$ac_exeext conftest.$ac_ext
6824 ac_ext=c
6825 ac_cpp='$CPP $CPPFLAGS'
6826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6829
6830 fi
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6832 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6835 CFLAGS="$SAVE_CFLAGS"
6836 fi
6837 ;;
6838 sparc*-*solaris*)
6839 # Find out which ABI we are using.
6840 echo 'int i;' > conftest.$ac_ext
6841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6842 (eval $ac_compile) 2>&5
6843 ac_status=$?
6844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845 test $ac_status = 0; }; then
6846 case `/usr/bin/file conftest.o` in
6847 *64-bit*)
6848 case $lt_cv_prog_gnu_ld in
6849 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6850 *)
6851 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6852 LD="${LD-ld} -64"
6853 fi
6854 ;;
6855 esac
6856 ;;
6857 esac
6858 fi
6859 rm -rf conftest*
6860 ;;
6861 esac
6862
6863 need_locks="$enable_libtool_lock"
6864
6865
6866 case $host_os in
6867 rhapsody* | darwin*)
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$DSYMUTIL"; then
6877 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6897 if test -n "$DSYMUTIL"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6899 $as_echo "$DSYMUTIL" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6903 fi
6904
6905
6906 fi
6907 if test -z "$ac_cv_prog_DSYMUTIL"; then
6908 ac_ct_DSYMUTIL=$DSYMUTIL
6909 # Extract the first word of "dsymutil", so it can be a program name with args.
6910 set dummy dsymutil; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$ac_ct_DSYMUTIL"; then
6917 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6937 if test -n "$ac_ct_DSYMUTIL"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6939 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945 if test "x$ac_ct_DSYMUTIL" = x; then
6946 DSYMUTIL=":"
6947 else
6948 case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954 DSYMUTIL=$ac_ct_DSYMUTIL
6955 fi
6956 else
6957 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6958 fi
6959
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$NMEDIT"; then
6969 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982 done
6983 done
6984 IFS=$as_save_IFS
6985
6986 fi
6987 fi
6988 NMEDIT=$ac_cv_prog_NMEDIT
6989 if test -n "$NMEDIT"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6991 $as_echo "$NMEDIT" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6995 fi
6996
6997
6998 fi
6999 if test -z "$ac_cv_prog_NMEDIT"; then
7000 ac_ct_NMEDIT=$NMEDIT
7001 # Extract the first word of "nmedit", so it can be a program name with args.
7002 set dummy nmedit; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$ac_ct_NMEDIT"; then
7009 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7029 if test -n "$ac_ct_NMEDIT"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7031 $as_echo "$ac_ct_NMEDIT" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037 if test "x$ac_ct_NMEDIT" = x; then
7038 NMEDIT=":"
7039 else
7040 case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7044 ac_tool_warned=yes ;;
7045 esac
7046 NMEDIT=$ac_ct_NMEDIT
7047 fi
7048 else
7049 NMEDIT="$ac_cv_prog_NMEDIT"
7050 fi
7051
7052 if test -n "$ac_tool_prefix"; then
7053 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7054 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if test "${ac_cv_prog_LIPO+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 if test -n "$LIPO"; then
7061 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066 IFS=$as_save_IFS
7067 test -z "$as_dir" && as_dir=.
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7070 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 break 2
7073 fi
7074 done
7075 done
7076 IFS=$as_save_IFS
7077
7078 fi
7079 fi
7080 LIPO=$ac_cv_prog_LIPO
7081 if test -n "$LIPO"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7083 $as_echo "$LIPO" >&6; }
7084 else
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 $as_echo "no" >&6; }
7087 fi
7088
7089
7090 fi
7091 if test -z "$ac_cv_prog_LIPO"; then
7092 ac_ct_LIPO=$LIPO
7093 # Extract the first word of "lipo", so it can be a program name with args.
7094 set dummy lipo; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if test -n "$ac_ct_LIPO"; then
7101 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_prog_ac_ct_LIPO="lipo"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7113 fi
7114 done
7115 done
7116 IFS=$as_save_IFS
7117
7118 fi
7119 fi
7120 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7121 if test -n "$ac_ct_LIPO"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7123 $as_echo "$ac_ct_LIPO" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7128
7129 if test "x$ac_ct_LIPO" = x; then
7130 LIPO=":"
7131 else
7132 case $cross_compiling:$ac_tool_warned in
7133 yes:)
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7136 ac_tool_warned=yes ;;
7137 esac
7138 LIPO=$ac_ct_LIPO
7139 fi
7140 else
7141 LIPO="$ac_cv_prog_LIPO"
7142 fi
7143
7144 if test -n "$ac_tool_prefix"; then
7145 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7146 set dummy ${ac_tool_prefix}otool; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 if test -n "$OTOOL"; then
7153 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166 done
7167 done
7168 IFS=$as_save_IFS
7169
7170 fi
7171 fi
7172 OTOOL=$ac_cv_prog_OTOOL
7173 if test -n "$OTOOL"; then
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7175 $as_echo "$OTOOL" >&6; }
7176 else
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7179 fi
7180
7181
7182 fi
7183 if test -z "$ac_cv_prog_OTOOL"; then
7184 ac_ct_OTOOL=$OTOOL
7185 # Extract the first word of "otool", so it can be a program name with args.
7186 set dummy otool; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 if test -n "$ac_ct_OTOOL"; then
7193 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_prog_ac_ct_OTOOL="otool"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206 done
7207 done
7208 IFS=$as_save_IFS
7209
7210 fi
7211 fi
7212 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7213 if test -n "$ac_ct_OTOOL"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7215 $as_echo "$ac_ct_OTOOL" >&6; }
7216 else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220
7221 if test "x$ac_ct_OTOOL" = x; then
7222 OTOOL=":"
7223 else
7224 case $cross_compiling:$ac_tool_warned in
7225 yes:)
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7228 ac_tool_warned=yes ;;
7229 esac
7230 OTOOL=$ac_ct_OTOOL
7231 fi
7232 else
7233 OTOOL="$ac_cv_prog_OTOOL"
7234 fi
7235
7236 if test -n "$ac_tool_prefix"; then
7237 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7238 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 if test -n "$OTOOL64"; then
7245 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258 done
7259 done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 OTOOL64=$ac_cv_prog_OTOOL64
7265 if test -n "$OTOOL64"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7267 $as_echo "$OTOOL64" >&6; }
7268 else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273
7274 fi
7275 if test -z "$ac_cv_prog_OTOOL64"; then
7276 ac_ct_OTOOL64=$OTOOL64
7277 # Extract the first word of "otool64", so it can be a program name with args.
7278 set dummy otool64; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 if test -n "$ac_ct_OTOOL64"; then
7285 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7294 ac_cv_prog_ac_ct_OTOOL64="otool64"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7297 fi
7298 done
7299 done
7300 IFS=$as_save_IFS
7301
7302 fi
7303 fi
7304 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7305 if test -n "$ac_ct_OTOOL64"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7307 $as_echo "$ac_ct_OTOOL64" >&6; }
7308 else
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7311 fi
7312
7313 if test "x$ac_ct_OTOOL64" = x; then
7314 OTOOL64=":"
7315 else
7316 case $cross_compiling:$ac_tool_warned in
7317 yes:)
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7320 ac_tool_warned=yes ;;
7321 esac
7322 OTOOL64=$ac_ct_OTOOL64
7323 fi
7324 else
7325 OTOOL64="$ac_cv_prog_OTOOL64"
7326 fi
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7355 $as_echo_n "checking for -single_module linker flag... " >&6; }
7356 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 lt_cv_apple_cc_single_mod=no
7360 if test -z "${LT_MULTI_MODULE}"; then
7361 # By default we will add the -single_module flag. You can override
7362 # by either setting the environment variable LT_MULTI_MODULE
7363 # non-empty at configure time, or by adding -multi_module to the
7364 # link flags.
7365 rm -rf libconftest.dylib*
7366 echo "int foo(void){return 1;}" > conftest.c
7367 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7368 -dynamiclib -Wl,-single_module conftest.c" >&5
7369 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7370 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7371 _lt_result=$?
7372 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7373 lt_cv_apple_cc_single_mod=yes
7374 else
7375 cat conftest.err >&5
7376 fi
7377 rm -rf libconftest.dylib*
7378 rm -f conftest.*
7379 fi
7380 fi
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7382 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7384 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7385 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 lt_cv_ld_exported_symbols_list=no
7389 save_LDFLAGS=$LDFLAGS
7390 echo "_main" > conftest.sym
7391 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394
7395 int
7396 main ()
7397 {
7398
7399 ;
7400 return 0;
7401 }
7402 _ACEOF
7403 if ac_fn_c_try_link "$LINENO"; then :
7404 lt_cv_ld_exported_symbols_list=yes
7405 else
7406 lt_cv_ld_exported_symbols_list=no
7407 fi
7408 rm -f core conftest.err conftest.$ac_objext \
7409 conftest$ac_exeext conftest.$ac_ext
7410 LDFLAGS="$save_LDFLAGS"
7411
7412 fi
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7414 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7416 $as_echo_n "checking for -force_load linker flag... " >&6; }
7417 if test "${lt_cv_ld_force_load+set}" = set; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 lt_cv_ld_force_load=no
7421 cat > conftest.c << _LT_EOF
7422 int forced_loaded() { return 2;}
7423 _LT_EOF
7424 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7425 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7426 echo "$AR cru libconftest.a conftest.o" >&5
7427 $AR cru libconftest.a conftest.o 2>&5
7428 cat > conftest.c << _LT_EOF
7429 int main() { return 0;}
7430 _LT_EOF
7431 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7432 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7433 _lt_result=$?
7434 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7435 lt_cv_ld_force_load=yes
7436 else
7437 cat conftest.err >&5
7438 fi
7439 rm -f conftest.err libconftest.a conftest conftest.c
7440 rm -rf conftest.dSYM
7441
7442 fi
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7444 $as_echo "$lt_cv_ld_force_load" >&6; }
7445 case $host_os in
7446 rhapsody* | darwin1.[012])
7447 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7448 darwin1.*)
7449 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7450 darwin*) # darwin 5.x on
7451 # if running on 10.5 or later, the deployment target defaults
7452 # to the OS version, if on x86, and 10.4, the deployment
7453 # target defaults to 10.4. Don't you love it?
7454 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7455 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7456 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7457 10.[012][,.]*)
7458 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7459 10.*)
7460 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7461 esac
7462 ;;
7463 esac
7464 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7465 _lt_dar_single_mod='$single_module'
7466 fi
7467 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7468 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7469 else
7470 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7471 fi
7472 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7473 _lt_dsymutil='~$DSYMUTIL $lib || :'
7474 else
7475 _lt_dsymutil=
7476 fi
7477 ;;
7478 esac
7479
7480 for ac_header in dlfcn.h
7481 do :
7482 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7483 "
7484 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7485 cat >>confdefs.h <<_ACEOF
7486 #define HAVE_DLFCN_H 1
7487 _ACEOF
7488
7489 fi
7490
7491 done
7492
7493
7494
7495
7496
7497 # Set options
7498
7499
7500
7501 enable_dlopen=no
7502
7503
7504 enable_win32_dll=no
7505
7506
7507 # Check whether --enable-shared was given.
7508 if test "${enable_shared+set}" = set; then :
7509 enableval=$enable_shared; p=${PACKAGE-default}
7510 case $enableval in
7511 yes) enable_shared=yes ;;
7512 no) enable_shared=no ;;
7513 *)
7514 enable_shared=no
7515 # Look at the argument we got. We use all the common list separators.
7516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7517 for pkg in $enableval; do
7518 IFS="$lt_save_ifs"
7519 if test "X$pkg" = "X$p"; then
7520 enable_shared=yes
7521 fi
7522 done
7523 IFS="$lt_save_ifs"
7524 ;;
7525 esac
7526 else
7527 enable_shared=yes
7528 fi
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538 # Check whether --enable-static was given.
7539 if test "${enable_static+set}" = set; then :
7540 enableval=$enable_static; p=${PACKAGE-default}
7541 case $enableval in
7542 yes) enable_static=yes ;;
7543 no) enable_static=no ;;
7544 *)
7545 enable_static=no
7546 # Look at the argument we got. We use all the common list separators.
7547 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7548 for pkg in $enableval; do
7549 IFS="$lt_save_ifs"
7550 if test "X$pkg" = "X$p"; then
7551 enable_static=yes
7552 fi
7553 done
7554 IFS="$lt_save_ifs"
7555 ;;
7556 esac
7557 else
7558 enable_static=yes
7559 fi
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570 # Check whether --with-pic was given.
7571 if test "${with_pic+set}" = set; then :
7572 withval=$with_pic; pic_mode="$withval"
7573 else
7574 pic_mode=default
7575 fi
7576
7577
7578 test -z "$pic_mode" && pic_mode=default
7579
7580
7581
7582
7583
7584
7585
7586 # Check whether --enable-fast-install was given.
7587 if test "${enable_fast_install+set}" = set; then :
7588 enableval=$enable_fast_install; p=${PACKAGE-default}
7589 case $enableval in
7590 yes) enable_fast_install=yes ;;
7591 no) enable_fast_install=no ;;
7592 *)
7593 enable_fast_install=no
7594 # Look at the argument we got. We use all the common list separators.
7595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7596 for pkg in $enableval; do
7597 IFS="$lt_save_ifs"
7598 if test "X$pkg" = "X$p"; then
7599 enable_fast_install=yes
7600 fi
7601 done
7602 IFS="$lt_save_ifs"
7603 ;;
7604 esac
7605 else
7606 enable_fast_install=yes
7607 fi
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619 # This can be used to rebuild libtool when needed
7620 LIBTOOL_DEPS="$ltmain"
7621
7622 # Always use our own libtool.
7623 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650 test -z "$LN_S" && LN_S="ln -s"
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665 if test -n "${ZSH_VERSION+set}" ; then
7666 setopt NO_GLOB_SUBST
7667 fi
7668
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7670 $as_echo_n "checking for objdir... " >&6; }
7671 if test "${lt_cv_objdir+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 rm -f .libs 2>/dev/null
7675 mkdir .libs 2>/dev/null
7676 if test -d .libs; then
7677 lt_cv_objdir=.libs
7678 else
7679 # MS-DOS does not allow filenames that begin with a dot.
7680 lt_cv_objdir=_libs
7681 fi
7682 rmdir .libs 2>/dev/null
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7685 $as_echo "$lt_cv_objdir" >&6; }
7686 objdir=$lt_cv_objdir
7687
7688
7689
7690
7691
7692 cat >>confdefs.h <<_ACEOF
7693 #define LT_OBJDIR "$lt_cv_objdir/"
7694 _ACEOF
7695
7696
7697
7698
7699 case $host_os in
7700 aix3*)
7701 # AIX sometimes has problems with the GCC collect2 program. For some
7702 # reason, if we set the COLLECT_NAMES environment variable, the problems
7703 # vanish in a puff of smoke.
7704 if test "X${COLLECT_NAMES+set}" != Xset; then
7705 COLLECT_NAMES=
7706 export COLLECT_NAMES
7707 fi
7708 ;;
7709 esac
7710
7711 # Global variables:
7712 ofile=libtool
7713 can_build_shared=yes
7714
7715 # All known linkers require a `.a' archive for static linking (except MSVC,
7716 # which needs '.lib').
7717 libext=a
7718
7719 with_gnu_ld="$lt_cv_prog_gnu_ld"
7720
7721 old_CC="$CC"
7722 old_CFLAGS="$CFLAGS"
7723
7724 # Set sane defaults for various variables
7725 test -z "$CC" && CC=cc
7726 test -z "$LTCC" && LTCC=$CC
7727 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7728 test -z "$LD" && LD=ld
7729 test -z "$ac_objext" && ac_objext=o
7730
7731 for cc_temp in $compiler""; do
7732 case $cc_temp in
7733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7735 \-*) ;;
7736 *) break;;
7737 esac
7738 done
7739 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7740
7741
7742 # Only perform the check for file, if the check method requires it
7743 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7744 case $deplibs_check_method in
7745 file_magic*)
7746 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7748 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7749 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 case $MAGIC_CMD in
7753 [\\/*] | ?:[\\/]*)
7754 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7755 ;;
7756 *)
7757 lt_save_MAGIC_CMD="$MAGIC_CMD"
7758 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7759 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7760 for ac_dir in $ac_dummy; do
7761 IFS="$lt_save_ifs"
7762 test -z "$ac_dir" && ac_dir=.
7763 if test -f $ac_dir/${ac_tool_prefix}file; then
7764 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7765 if test -n "$file_magic_test_file"; then
7766 case $deplibs_check_method in
7767 "file_magic "*)
7768 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7769 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7771 $EGREP "$file_magic_regex" > /dev/null; then
7772 :
7773 else
7774 cat <<_LT_EOF 1>&2
7775
7776 *** Warning: the command libtool uses to detect shared libraries,
7777 *** $file_magic_cmd, produces output that libtool cannot recognize.
7778 *** The result is that libtool may fail to recognize shared libraries
7779 *** as such. This will affect the creation of libtool libraries that
7780 *** depend on shared libraries, but programs linked with such libtool
7781 *** libraries will work regardless of this problem. Nevertheless, you
7782 *** may want to report the problem to your system manager and/or to
7783 *** bug-libtool@gnu.org
7784
7785 _LT_EOF
7786 fi ;;
7787 esac
7788 fi
7789 break
7790 fi
7791 done
7792 IFS="$lt_save_ifs"
7793 MAGIC_CMD="$lt_save_MAGIC_CMD"
7794 ;;
7795 esac
7796 fi
7797
7798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7799 if test -n "$MAGIC_CMD"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7801 $as_echo "$MAGIC_CMD" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807
7808
7809
7810
7811 if test -z "$lt_cv_path_MAGIC_CMD"; then
7812 if test -n "$ac_tool_prefix"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7814 $as_echo_n "checking for file... " >&6; }
7815 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
7817 else
7818 case $MAGIC_CMD in
7819 [\\/*] | ?:[\\/]*)
7820 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7821 ;;
7822 *)
7823 lt_save_MAGIC_CMD="$MAGIC_CMD"
7824 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7825 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7826 for ac_dir in $ac_dummy; do
7827 IFS="$lt_save_ifs"
7828 test -z "$ac_dir" && ac_dir=.
7829 if test -f $ac_dir/file; then
7830 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7831 if test -n "$file_magic_test_file"; then
7832 case $deplibs_check_method in
7833 "file_magic "*)
7834 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7835 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7836 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7837 $EGREP "$file_magic_regex" > /dev/null; then
7838 :
7839 else
7840 cat <<_LT_EOF 1>&2
7841
7842 *** Warning: the command libtool uses to detect shared libraries,
7843 *** $file_magic_cmd, produces output that libtool cannot recognize.
7844 *** The result is that libtool may fail to recognize shared libraries
7845 *** as such. This will affect the creation of libtool libraries that
7846 *** depend on shared libraries, but programs linked with such libtool
7847 *** libraries will work regardless of this problem. Nevertheless, you
7848 *** may want to report the problem to your system manager and/or to
7849 *** bug-libtool@gnu.org
7850
7851 _LT_EOF
7852 fi ;;
7853 esac
7854 fi
7855 break
7856 fi
7857 done
7858 IFS="$lt_save_ifs"
7859 MAGIC_CMD="$lt_save_MAGIC_CMD"
7860 ;;
7861 esac
7862 fi
7863
7864 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7865 if test -n "$MAGIC_CMD"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7867 $as_echo "$MAGIC_CMD" >&6; }
7868 else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872
7873
7874 else
7875 MAGIC_CMD=:
7876 fi
7877 fi
7878
7879 fi
7880 ;;
7881 esac
7882
7883 # Use C for the default configuration in the libtool script
7884
7885 lt_save_CC="$CC"
7886 ac_ext=c
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891
7892
7893 # Source file extension for C test sources.
7894 ac_ext=c
7895
7896 # Object file extension for compiled C test sources.
7897 objext=o
7898 objext=$objext
7899
7900 # Code to be used in simple compile tests
7901 lt_simple_compile_test_code="int some_variable = 0;"
7902
7903 # Code to be used in simple link tests
7904 lt_simple_link_test_code='int main(){return(0);}'
7905
7906
7907
7908
7909
7910
7911
7912 # If no C compiler was specified, use CC.
7913 LTCC=${LTCC-"$CC"}
7914
7915 # If no C compiler flags were specified, use CFLAGS.
7916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7917
7918 # Allow CC to be a program name with arguments.
7919 compiler=$CC
7920
7921 # Save the default compiler, since it gets overwritten when the other
7922 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7923 compiler_DEFAULT=$CC
7924
7925 # save warnings/boilerplate of simple test code
7926 ac_outfile=conftest.$ac_objext
7927 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7928 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7929 _lt_compiler_boilerplate=`cat conftest.err`
7930 $RM conftest*
7931
7932 ac_outfile=conftest.$ac_objext
7933 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7934 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7935 _lt_linker_boilerplate=`cat conftest.err`
7936 $RM -r conftest*
7937
7938
7939 ## CAVEAT EMPTOR:
7940 ## There is no encapsulation within the following macros, do not change
7941 ## the running order or otherwise move them around unless you know exactly
7942 ## what you are doing...
7943 if test -n "$compiler"; then
7944
7945 lt_prog_compiler_no_builtin_flag=
7946
7947 if test "$GCC" = yes; then
7948 case $cc_basename in
7949 nvcc*)
7950 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7951 *)
7952 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7953 esac
7954
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7956 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7957 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7958 $as_echo_n "(cached) " >&6
7959 else
7960 lt_cv_prog_compiler_rtti_exceptions=no
7961 ac_outfile=conftest.$ac_objext
7962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7963 lt_compiler_flag="-fno-rtti -fno-exceptions"
7964 # Insert the option either (1) after the last *FLAGS variable, or
7965 # (2) before a word containing "conftest.", or (3) at the end.
7966 # Note that $ac_compile itself does not contain backslashes and begins
7967 # with a dollar sign (not a hyphen), so the echo should work correctly.
7968 # The option is referenced via a variable to avoid confusing sed.
7969 lt_compile=`echo "$ac_compile" | $SED \
7970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7972 -e 's:$: $lt_compiler_flag:'`
7973 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7974 (eval "$lt_compile" 2>conftest.err)
7975 ac_status=$?
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 if (exit $ac_status) && test -s "$ac_outfile"; then
7979 # The compiler can only warn and ignore the option if not recognized
7980 # So say no if there are warnings other than the usual output.
7981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7983 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7984 lt_cv_prog_compiler_rtti_exceptions=yes
7985 fi
7986 fi
7987 $RM conftest*
7988
7989 fi
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7991 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7992
7993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7994 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7995 else
7996 :
7997 fi
7998
7999 fi
8000
8001
8002
8003
8004
8005
8006 lt_prog_compiler_wl=
8007 lt_prog_compiler_pic=
8008 lt_prog_compiler_static=
8009
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8011 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8012
8013 if test "$GCC" = yes; then
8014 lt_prog_compiler_wl='-Wl,'
8015 lt_prog_compiler_static='-static'
8016
8017 case $host_os in
8018 aix*)
8019 # All AIX code is PIC.
8020 if test "$host_cpu" = ia64; then
8021 # AIX 5 now supports IA64 processor
8022 lt_prog_compiler_static='-Bstatic'
8023 fi
8024 lt_prog_compiler_pic='-fPIC'
8025 ;;
8026
8027 amigaos*)
8028 case $host_cpu in
8029 powerpc)
8030 # see comment about AmigaOS4 .so support
8031 lt_prog_compiler_pic='-fPIC'
8032 ;;
8033 m68k)
8034 # FIXME: we need at least 68020 code to build shared libraries, but
8035 # adding the `-m68020' flag to GCC prevents building anything better,
8036 # like `-m68040'.
8037 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8038 ;;
8039 esac
8040 ;;
8041
8042 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8043 # PIC is the default for these OSes.
8044 ;;
8045
8046 mingw* | cygwin* | pw32* | os2* | cegcc*)
8047 # This hack is so that the source file can tell whether it is being
8048 # built for inclusion in a dll (and should export symbols for example).
8049 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8050 # (--disable-auto-import) libraries
8051 lt_prog_compiler_pic='-DDLL_EXPORT'
8052 ;;
8053
8054 darwin* | rhapsody*)
8055 # PIC is the default on this platform
8056 # Common symbols not allowed in MH_DYLIB files
8057 lt_prog_compiler_pic='-fno-common'
8058 ;;
8059
8060 haiku*)
8061 # PIC is the default for Haiku.
8062 # The "-static" flag exists, but is broken.
8063 lt_prog_compiler_static=
8064 ;;
8065
8066 hpux*)
8067 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8068 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8069 # sets the default TLS model and affects inlining.
8070 case $host_cpu in
8071 hppa*64*)
8072 # +Z the default
8073 ;;
8074 *)
8075 lt_prog_compiler_pic='-fPIC'
8076 ;;
8077 esac
8078 ;;
8079
8080 interix[3-9]*)
8081 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8082 # Instead, we relocate shared libraries at runtime.
8083 ;;
8084
8085 msdosdjgpp*)
8086 # Just because we use GCC doesn't mean we suddenly get shared libraries
8087 # on systems that don't support them.
8088 lt_prog_compiler_can_build_shared=no
8089 enable_shared=no
8090 ;;
8091
8092 *nto* | *qnx*)
8093 # QNX uses GNU C++, but need to define -shared option too, otherwise
8094 # it will coredump.
8095 lt_prog_compiler_pic='-fPIC -shared'
8096 ;;
8097
8098 sysv4*MP*)
8099 if test -d /usr/nec; then
8100 lt_prog_compiler_pic=-Kconform_pic
8101 fi
8102 ;;
8103
8104 *)
8105 lt_prog_compiler_pic='-fPIC'
8106 ;;
8107 esac
8108
8109 case $cc_basename in
8110 nvcc*) # Cuda Compiler Driver 2.2
8111 lt_prog_compiler_wl='-Xlinker '
8112 lt_prog_compiler_pic='-Xcompiler -fPIC'
8113 ;;
8114 esac
8115 else
8116 # PORTME Check for flag to pass linker flags through the system compiler.
8117 case $host_os in
8118 aix*)
8119 lt_prog_compiler_wl='-Wl,'
8120 if test "$host_cpu" = ia64; then
8121 # AIX 5 now supports IA64 processor
8122 lt_prog_compiler_static='-Bstatic'
8123 else
8124 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8125 fi
8126 ;;
8127
8128 mingw* | cygwin* | pw32* | os2* | cegcc*)
8129 # This hack is so that the source file can tell whether it is being
8130 # built for inclusion in a dll (and should export symbols for example).
8131 lt_prog_compiler_pic='-DDLL_EXPORT'
8132 ;;
8133
8134 hpux9* | hpux10* | hpux11*)
8135 lt_prog_compiler_wl='-Wl,'
8136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8137 # not for PA HP-UX.
8138 case $host_cpu in
8139 hppa*64*|ia64*)
8140 # +Z the default
8141 ;;
8142 *)
8143 lt_prog_compiler_pic='+Z'
8144 ;;
8145 esac
8146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8147 lt_prog_compiler_static='${wl}-a ${wl}archive'
8148 ;;
8149
8150 irix5* | irix6* | nonstopux*)
8151 lt_prog_compiler_wl='-Wl,'
8152 # PIC (with -KPIC) is the default.
8153 lt_prog_compiler_static='-non_shared'
8154 ;;
8155
8156 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8157 case $cc_basename in
8158 # old Intel for x86_64 which still supported -KPIC.
8159 ecc*)
8160 lt_prog_compiler_wl='-Wl,'
8161 lt_prog_compiler_pic='-KPIC'
8162 lt_prog_compiler_static='-static'
8163 ;;
8164 # icc used to be incompatible with GCC.
8165 # ICC 10 doesn't accept -KPIC any more.
8166 icc* | ifort*)
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-fPIC'
8169 lt_prog_compiler_static='-static'
8170 ;;
8171 # Lahey Fortran 8.1.
8172 lf95*)
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_pic='--shared'
8175 lt_prog_compiler_static='--static'
8176 ;;
8177 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8178 # Portland Group compilers (*not* the Pentium gcc compiler,
8179 # which looks to be a dead project)
8180 lt_prog_compiler_wl='-Wl,'
8181 lt_prog_compiler_pic='-fpic'
8182 lt_prog_compiler_static='-Bstatic'
8183 ;;
8184 ccc*)
8185 lt_prog_compiler_wl='-Wl,'
8186 # All Alpha code is PIC.
8187 lt_prog_compiler_static='-non_shared'
8188 ;;
8189 xl* | bgxl* | bgf* | mpixl*)
8190 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='-qpic'
8193 lt_prog_compiler_static='-qstaticlink'
8194 ;;
8195 *)
8196 case `$CC -V 2>&1 | sed 5q` in
8197 *Sun\ F* | *Sun*Fortran*)
8198 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8199 lt_prog_compiler_pic='-KPIC'
8200 lt_prog_compiler_static='-Bstatic'
8201 lt_prog_compiler_wl=''
8202 ;;
8203 *Sun\ C*)
8204 # Sun C 5.9
8205 lt_prog_compiler_pic='-KPIC'
8206 lt_prog_compiler_static='-Bstatic'
8207 lt_prog_compiler_wl='-Wl,'
8208 ;;
8209 esac
8210 ;;
8211 esac
8212 ;;
8213
8214 newsos6)
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-Bstatic'
8217 ;;
8218
8219 *nto* | *qnx*)
8220 # QNX uses GNU C++, but need to define -shared option too, otherwise
8221 # it will coredump.
8222 lt_prog_compiler_pic='-fPIC -shared'
8223 ;;
8224
8225 osf3* | osf4* | osf5*)
8226 lt_prog_compiler_wl='-Wl,'
8227 # All OSF/1 code is PIC.
8228 lt_prog_compiler_static='-non_shared'
8229 ;;
8230
8231 rdos*)
8232 lt_prog_compiler_static='-non_shared'
8233 ;;
8234
8235 solaris*)
8236 lt_prog_compiler_pic='-KPIC'
8237 lt_prog_compiler_static='-Bstatic'
8238 case $cc_basename in
8239 f77* | f90* | f95*)
8240 lt_prog_compiler_wl='-Qoption ld ';;
8241 *)
8242 lt_prog_compiler_wl='-Wl,';;
8243 esac
8244 ;;
8245
8246 sunos4*)
8247 lt_prog_compiler_wl='-Qoption ld '
8248 lt_prog_compiler_pic='-PIC'
8249 lt_prog_compiler_static='-Bstatic'
8250 ;;
8251
8252 sysv4 | sysv4.2uw2* | sysv4.3*)
8253 lt_prog_compiler_wl='-Wl,'
8254 lt_prog_compiler_pic='-KPIC'
8255 lt_prog_compiler_static='-Bstatic'
8256 ;;
8257
8258 sysv4*MP*)
8259 if test -d /usr/nec ;then
8260 lt_prog_compiler_pic='-Kconform_pic'
8261 lt_prog_compiler_static='-Bstatic'
8262 fi
8263 ;;
8264
8265 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-KPIC'
8268 lt_prog_compiler_static='-Bstatic'
8269 ;;
8270
8271 unicos*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_can_build_shared=no
8274 ;;
8275
8276 uts4*)
8277 lt_prog_compiler_pic='-pic'
8278 lt_prog_compiler_static='-Bstatic'
8279 ;;
8280
8281 *)
8282 lt_prog_compiler_can_build_shared=no
8283 ;;
8284 esac
8285 fi
8286
8287 case $host_os in
8288 # For platforms which do not support PIC, -DPIC is meaningless:
8289 *djgpp*)
8290 lt_prog_compiler_pic=
8291 ;;
8292 *)
8293 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8294 ;;
8295 esac
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8297 $as_echo "$lt_prog_compiler_pic" >&6; }
8298
8299
8300
8301
8302
8303
8304 #
8305 # Check to make sure the PIC flag actually works.
8306 #
8307 if test -n "$lt_prog_compiler_pic"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8309 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8310 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 lt_cv_prog_compiler_pic_works=no
8314 ac_outfile=conftest.$ac_objext
8315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8316 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8317 # Insert the option either (1) after the last *FLAGS variable, or
8318 # (2) before a word containing "conftest.", or (3) at the end.
8319 # Note that $ac_compile itself does not contain backslashes and begins
8320 # with a dollar sign (not a hyphen), so the echo should work correctly.
8321 # The option is referenced via a variable to avoid confusing sed.
8322 lt_compile=`echo "$ac_compile" | $SED \
8323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8325 -e 's:$: $lt_compiler_flag:'`
8326 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8327 (eval "$lt_compile" 2>conftest.err)
8328 ac_status=$?
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 if (exit $ac_status) && test -s "$ac_outfile"; then
8332 # The compiler can only warn and ignore the option if not recognized
8333 # So say no if there are warnings other than the usual output.
8334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8337 lt_cv_prog_compiler_pic_works=yes
8338 fi
8339 fi
8340 $RM conftest*
8341
8342 fi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8344 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8345
8346 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8347 case $lt_prog_compiler_pic in
8348 "" | " "*) ;;
8349 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8350 esac
8351 else
8352 lt_prog_compiler_pic=
8353 lt_prog_compiler_can_build_shared=no
8354 fi
8355
8356 fi
8357
8358
8359
8360
8361
8362
8363 #
8364 # Check to make sure the static flag actually works.
8365 #
8366 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8369 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8370 $as_echo_n "(cached) " >&6
8371 else
8372 lt_cv_prog_compiler_static_works=no
8373 save_LDFLAGS="$LDFLAGS"
8374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8377 # The linker can only warn and ignore the option if not recognized
8378 # So say no if there are warnings
8379 if test -s conftest.err; then
8380 # Append any errors to the config.log.
8381 cat conftest.err 1>&5
8382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8384 if diff conftest.exp conftest.er2 >/dev/null; then
8385 lt_cv_prog_compiler_static_works=yes
8386 fi
8387 else
8388 lt_cv_prog_compiler_static_works=yes
8389 fi
8390 fi
8391 $RM -r conftest*
8392 LDFLAGS="$save_LDFLAGS"
8393
8394 fi
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8396 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8397
8398 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8399 :
8400 else
8401 lt_prog_compiler_static=
8402 fi
8403
8404
8405
8406
8407
8408
8409
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 lt_cv_prog_compiler_c_o=no
8416 $RM -r conftest 2>/dev/null
8417 mkdir conftest
8418 cd conftest
8419 mkdir out
8420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8421
8422 lt_compiler_flag="-o out/conftest2.$ac_objext"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 lt_compile=`echo "$ac_compile" | $SED \
8428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430 -e 's:$: $lt_compiler_flag:'`
8431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8432 (eval "$lt_compile" 2>out/conftest.err)
8433 ac_status=$?
8434 cat out/conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8437 then
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings
8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8443 lt_cv_prog_compiler_c_o=yes
8444 fi
8445 fi
8446 chmod u+w . 2>&5
8447 $RM conftest*
8448 # SGI C++ compiler will create directory out/ii_files/ for
8449 # template instantiation
8450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8451 $RM out/* && rmdir out
8452 cd ..
8453 $RM -r conftest
8454 $RM conftest*
8455
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8459
8460
8461
8462
8463
8464
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8467 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 lt_cv_prog_compiler_c_o=no
8471 $RM -r conftest 2>/dev/null
8472 mkdir conftest
8473 cd conftest
8474 mkdir out
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476
8477 lt_compiler_flag="-o out/conftest2.$ac_objext"
8478 # Insert the option either (1) after the last *FLAGS variable, or
8479 # (2) before a word containing "conftest.", or (3) at the end.
8480 # Note that $ac_compile itself does not contain backslashes and begins
8481 # with a dollar sign (not a hyphen), so the echo should work correctly.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
8486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8487 (eval "$lt_compile" 2>out/conftest.err)
8488 ac_status=$?
8489 cat out/conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8492 then
8493 # The compiler can only warn and ignore the option if not recognized
8494 # So say no if there are warnings
8495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8498 lt_cv_prog_compiler_c_o=yes
8499 fi
8500 fi
8501 chmod u+w . 2>&5
8502 $RM conftest*
8503 # SGI C++ compiler will create directory out/ii_files/ for
8504 # template instantiation
8505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8506 $RM out/* && rmdir out
8507 cd ..
8508 $RM -r conftest
8509 $RM conftest*
8510
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8514
8515
8516
8517
8518 hard_links="nottested"
8519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8520 # do not overwrite the value of need_locks provided by the user
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8522 $as_echo_n "checking if we can lock with hard links... " >&6; }
8523 hard_links=yes
8524 $RM conftest*
8525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8526 touch conftest.a
8527 ln conftest.a conftest.b 2>&5 || hard_links=no
8528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8530 $as_echo "$hard_links" >&6; }
8531 if test "$hard_links" = no; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8533 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8534 need_locks=warn
8535 fi
8536 else
8537 need_locks=no
8538 fi
8539
8540
8541
8542
8543
8544
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8547
8548 runpath_var=
8549 allow_undefined_flag=
8550 always_export_symbols=no
8551 archive_cmds=
8552 archive_expsym_cmds=
8553 compiler_needs_object=no
8554 enable_shared_with_static_runtimes=no
8555 export_dynamic_flag_spec=
8556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8557 hardcode_automatic=no
8558 hardcode_direct=no
8559 hardcode_direct_absolute=no
8560 hardcode_libdir_flag_spec=
8561 hardcode_libdir_flag_spec_ld=
8562 hardcode_libdir_separator=
8563 hardcode_minus_L=no
8564 hardcode_shlibpath_var=unsupported
8565 inherit_rpath=no
8566 link_all_deplibs=unknown
8567 module_cmds=
8568 module_expsym_cmds=
8569 old_archive_from_new_cmds=
8570 old_archive_from_expsyms_cmds=
8571 thread_safe_flag_spec=
8572 whole_archive_flag_spec=
8573 # include_expsyms should be a list of space-separated symbols to be *always*
8574 # included in the symbol list
8575 include_expsyms=
8576 # exclude_expsyms can be an extended regexp of symbols to exclude
8577 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8578 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8579 # as well as any symbol that contains `d'.
8580 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8581 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8582 # platforms (ab)use it in PIC code, but their linkers get confused if
8583 # the symbol is explicitly referenced. Since portable code cannot
8584 # rely on this symbol name, it's probably fine to never include it in
8585 # preloaded symbol tables.
8586 # Exclude shared library initialization/finalization symbols.
8587 extract_expsyms_cmds=
8588
8589 case $host_os in
8590 cygwin* | mingw* | pw32* | cegcc*)
8591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8592 # When not using gcc, we currently assume that we are using
8593 # Microsoft Visual C++.
8594 if test "$GCC" != yes; then
8595 with_gnu_ld=no
8596 fi
8597 ;;
8598 interix*)
8599 # we just hope/assume this is gcc and not c89 (= MSVC++)
8600 with_gnu_ld=yes
8601 ;;
8602 openbsd*)
8603 with_gnu_ld=no
8604 ;;
8605 esac
8606
8607 ld_shlibs=yes
8608
8609 # On some targets, GNU ld is compatible enough with the native linker
8610 # that we're better off using the native interface for both.
8611 lt_use_gnu_ld_interface=no
8612 if test "$with_gnu_ld" = yes; then
8613 case $host_os in
8614 aix*)
8615 # The AIX port of GNU ld has always aspired to compatibility
8616 # with the native linker. However, as the warning in the GNU ld
8617 # block says, versions before 2.19.5* couldn't really create working
8618 # shared libraries, regardless of the interface used.
8619 case `$LD -v 2>&1` in
8620 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8621 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8622 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8623 *)
8624 lt_use_gnu_ld_interface=yes
8625 ;;
8626 esac
8627 ;;
8628 *)
8629 lt_use_gnu_ld_interface=yes
8630 ;;
8631 esac
8632 fi
8633
8634 if test "$lt_use_gnu_ld_interface" = yes; then
8635 # If archive_cmds runs LD, not CC, wlarc should be empty
8636 wlarc='${wl}'
8637
8638 # Set some defaults for GNU ld with shared library support. These
8639 # are reset later if shared libraries are not supported. Putting them
8640 # here allows them to be overridden if necessary.
8641 runpath_var=LD_RUN_PATH
8642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643 export_dynamic_flag_spec='${wl}--export-dynamic'
8644 # ancient GNU ld didn't support --whole-archive et. al.
8645 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8646 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8647 else
8648 whole_archive_flag_spec=
8649 fi
8650 supports_anon_versioning=no
8651 case `$LD -v 2>&1` in
8652 *GNU\ gold*) supports_anon_versioning=yes ;;
8653 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8654 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8655 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8656 *\ 2.11.*) ;; # other 2.11 versions
8657 *) supports_anon_versioning=yes ;;
8658 esac
8659
8660 # See if GNU ld supports shared libraries.
8661 case $host_os in
8662 aix[3-9]*)
8663 # On AIX/PPC, the GNU linker is very broken
8664 if test "$host_cpu" != ia64; then
8665 ld_shlibs=no
8666 cat <<_LT_EOF 1>&2
8667
8668 *** Warning: the GNU linker, at least up to release 2.19, is reported
8669 *** to be unable to reliably create shared libraries on AIX.
8670 *** Therefore, libtool is disabling shared libraries support. If you
8671 *** really care for shared libraries, you may want to install binutils
8672 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8673 *** You will then need to restart the configuration process.
8674
8675 _LT_EOF
8676 fi
8677 ;;
8678
8679 amigaos*)
8680 case $host_cpu in
8681 powerpc)
8682 # see comment about AmigaOS4 .so support
8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684 archive_expsym_cmds=''
8685 ;;
8686 m68k)
8687 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)'
8688 hardcode_libdir_flag_spec='-L$libdir'
8689 hardcode_minus_L=yes
8690 ;;
8691 esac
8692 ;;
8693
8694 beos*)
8695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8696 allow_undefined_flag=unsupported
8697 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8698 # support --undefined. This deserves some investigation. FIXME
8699 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704
8705 cygwin* | mingw* | pw32* | cegcc*)
8706 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8707 # as there is no search path for DLLs.
8708 hardcode_libdir_flag_spec='-L$libdir'
8709 export_dynamic_flag_spec='${wl}--export-all-symbols'
8710 allow_undefined_flag=unsupported
8711 always_export_symbols=no
8712 enable_shared_with_static_runtimes=yes
8713 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8714
8715 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8717 # If the export-symbols file already is a .def file (1st line
8718 # is EXPORTS), use it as is; otherwise, prepend...
8719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8720 cp $export_symbols $output_objdir/$soname.def;
8721 else
8722 echo EXPORTS > $output_objdir/$soname.def;
8723 cat $export_symbols >> $output_objdir/$soname.def;
8724 fi~
8725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8726 else
8727 ld_shlibs=no
8728 fi
8729 ;;
8730
8731 haiku*)
8732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733 link_all_deplibs=yes
8734 ;;
8735
8736 interix[3-9]*)
8737 hardcode_direct=no
8738 hardcode_shlibpath_var=no
8739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8740 export_dynamic_flag_spec='${wl}-E'
8741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8742 # Instead, shared libraries are loaded at an image base (0x10000000 by
8743 # default) and relocated if they conflict, which is a slow very memory
8744 # consuming and fragmenting process. To avoid this, we pick a random,
8745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8746 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8747 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8748 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'
8749 ;;
8750
8751 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8752 tmp_diet=no
8753 if test "$host_os" = linux-dietlibc; then
8754 case $cc_basename in
8755 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8756 esac
8757 fi
8758 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8759 && test "$tmp_diet" = no
8760 then
8761 tmp_addflag=' $pic_flag'
8762 tmp_sharedflag='-shared'
8763 case $cc_basename,$host_cpu in
8764 pgcc*) # Portland Group C compiler
8765 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'
8766 tmp_addflag=' $pic_flag'
8767 ;;
8768 pgf77* | pgf90* | pgf95* | pgfortran*)
8769 # Portland Group f77 and f90 compilers
8770 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'
8771 tmp_addflag=' $pic_flag -Mnomain' ;;
8772 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8773 tmp_addflag=' -i_dynamic' ;;
8774 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8775 tmp_addflag=' -i_dynamic -nofor_main' ;;
8776 ifc* | ifort*) # Intel Fortran compiler
8777 tmp_addflag=' -nofor_main' ;;
8778 lf95*) # Lahey Fortran 8.1
8779 whole_archive_flag_spec=
8780 tmp_sharedflag='--shared' ;;
8781 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8782 tmp_sharedflag='-qmkshrobj'
8783 tmp_addflag= ;;
8784 nvcc*) # Cuda Compiler Driver 2.2
8785 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'
8786 compiler_needs_object=yes
8787 ;;
8788 esac
8789 case `$CC -V 2>&1 | sed 5q` in
8790 *Sun\ C*) # Sun C 5.9
8791 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'
8792 compiler_needs_object=yes
8793 tmp_sharedflag='-G' ;;
8794 *Sun\ F*) # Sun Fortran 8.3
8795 tmp_sharedflag='-G' ;;
8796 esac
8797 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798
8799 if test "x$supports_anon_versioning" = xyes; then
8800 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8802 echo "local: *; };" >> $output_objdir/$libname.ver~
8803 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8804 fi
8805
8806 case $cc_basename in
8807 xlf* | bgf* | bgxlf* | mpixlf*)
8808 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8809 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8810 hardcode_libdir_flag_spec=
8811 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8812 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8813 if test "x$supports_anon_versioning" = xyes; then
8814 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8816 echo "local: *; };" >> $output_objdir/$libname.ver~
8817 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8818 fi
8819 ;;
8820 esac
8821 else
8822 ld_shlibs=no
8823 fi
8824 ;;
8825
8826 netbsd*)
8827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8828 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8829 wlarc=
8830 else
8831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8833 fi
8834 ;;
8835
8836 solaris*)
8837 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8838 ld_shlibs=no
8839 cat <<_LT_EOF 1>&2
8840
8841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8842 *** create shared libraries on Solaris systems. Therefore, libtool
8843 *** is disabling shared libraries support. We urge you to upgrade GNU
8844 *** binutils to release 2.9.1 or newer. Another option is to modify
8845 *** your PATH or compiler configuration so that the native linker is
8846 *** used, and then restart.
8847
8848 _LT_EOF
8849 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8852 else
8853 ld_shlibs=no
8854 fi
8855 ;;
8856
8857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8858 case `$LD -v 2>&1` in
8859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8860 ld_shlibs=no
8861 cat <<_LT_EOF 1>&2
8862
8863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8864 *** reliably create shared libraries on SCO systems. Therefore, libtool
8865 *** is disabling shared libraries support. We urge you to upgrade GNU
8866 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8867 *** your PATH or compiler configuration so that the native linker is
8868 *** used, and then restart.
8869
8870 _LT_EOF
8871 ;;
8872 *)
8873 # For security reasons, it is highly recommended that you always
8874 # use absolute paths for naming shared libraries, and exclude the
8875 # DT_RUNPATH tag from executables and libraries. But doing so
8876 # requires that you compile everything twice, which is a pain.
8877 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8881 else
8882 ld_shlibs=no
8883 fi
8884 ;;
8885 esac
8886 ;;
8887
8888 sunos4*)
8889 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8890 wlarc=
8891 hardcode_direct=yes
8892 hardcode_shlibpath_var=no
8893 ;;
8894
8895 *)
8896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8899 else
8900 ld_shlibs=no
8901 fi
8902 ;;
8903 esac
8904
8905 if test "$ld_shlibs" = no; then
8906 runpath_var=
8907 hardcode_libdir_flag_spec=
8908 export_dynamic_flag_spec=
8909 whole_archive_flag_spec=
8910 fi
8911 else
8912 # PORTME fill in a description of your system's linker (not GNU ld)
8913 case $host_os in
8914 aix3*)
8915 allow_undefined_flag=unsupported
8916 always_export_symbols=yes
8917 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'
8918 # Note: this linker hardcodes the directories in LIBPATH if there
8919 # are no directories specified by -L.
8920 hardcode_minus_L=yes
8921 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8922 # Neither direct hardcoding nor static linking is supported with a
8923 # broken collect2.
8924 hardcode_direct=unsupported
8925 fi
8926 ;;
8927
8928 aix[4-9]*)
8929 if test "$host_cpu" = ia64; then
8930 # On IA64, the linker does run time linking by default, so we don't
8931 # have to do anything special.
8932 aix_use_runtimelinking=no
8933 exp_sym_flag='-Bexport'
8934 no_entry_flag=""
8935 else
8936 # If we're using GNU nm, then we don't want the "-C" option.
8937 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8938 # Also, AIX nm treats weak defined symbols like other global
8939 # defined symbols, whereas GNU nm marks them as "W".
8940 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8941 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'
8942 else
8943 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'
8944 fi
8945 aix_use_runtimelinking=no
8946
8947 # Test if we are trying to use run time linking or normal
8948 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8949 # need to do runtime linking.
8950 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8951 for ld_flag in $LDFLAGS; do
8952 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8953 aix_use_runtimelinking=yes
8954 break
8955 fi
8956 done
8957 ;;
8958 esac
8959
8960 exp_sym_flag='-bexport'
8961 no_entry_flag='-bnoentry'
8962 fi
8963
8964 # When large executables or shared objects are built, AIX ld can
8965 # have problems creating the table of contents. If linking a library
8966 # or program results in "error TOC overflow" add -mminimal-toc to
8967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8969
8970 archive_cmds=''
8971 hardcode_direct=yes
8972 hardcode_direct_absolute=yes
8973 hardcode_libdir_separator=':'
8974 link_all_deplibs=yes
8975 file_list_spec='${wl}-f,'
8976
8977 if test "$GCC" = yes; then
8978 case $host_os in aix4.[012]|aix4.[012].*)
8979 # We only want to do this on AIX 4.2 and lower, the check
8980 # below for broken collect2 doesn't work under 4.3+
8981 collect2name=`${CC} -print-prog-name=collect2`
8982 if test -f "$collect2name" &&
8983 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8984 then
8985 # We have reworked collect2
8986 :
8987 else
8988 # We have old collect2
8989 hardcode_direct=unsupported
8990 # It fails to find uninstalled libraries when the uninstalled
8991 # path is not listed in the libpath. Setting hardcode_minus_L
8992 # to unsupported forces relinking
8993 hardcode_minus_L=yes
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_libdir_separator=
8996 fi
8997 ;;
8998 esac
8999 shared_flag='-shared'
9000 if test "$aix_use_runtimelinking" = yes; then
9001 shared_flag="$shared_flag "'${wl}-G'
9002 fi
9003 else
9004 # not using gcc
9005 if test "$host_cpu" = ia64; then
9006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9007 # chokes on -Wl,-G. The following line is correct:
9008 shared_flag='-G'
9009 else
9010 if test "$aix_use_runtimelinking" = yes; then
9011 shared_flag='${wl}-G'
9012 else
9013 shared_flag='${wl}-bM:SRE'
9014 fi
9015 fi
9016 fi
9017
9018 export_dynamic_flag_spec='${wl}-bexpall'
9019 # It seems that -bexpall does not export symbols beginning with
9020 # underscore (_), so it is better to generate a list of symbols to export.
9021 always_export_symbols=yes
9022 if test "$aix_use_runtimelinking" = yes; then
9023 # Warning - without using the other runtime loading flags (-brtl),
9024 # -berok will link without error, but may produce a broken library.
9025 allow_undefined_flag='-berok'
9026 # Determine the default libpath from the value encoded in an
9027 # empty executable.
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9030
9031 int
9032 main ()
9033 {
9034
9035 ;
9036 return 0;
9037 }
9038 _ACEOF
9039 if ac_fn_c_try_link "$LINENO"; then :
9040
9041 lt_aix_libpath_sed='
9042 /Import File Strings/,/^$/ {
9043 /^0/ {
9044 s/^0 *\(.*\)$/\1/
9045 p
9046 }
9047 }'
9048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9049 # Check for a 64-bit object if we didn't find anything.
9050 if test -z "$aix_libpath"; then
9051 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9052 fi
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9057
9058 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9059 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"
9060 else
9061 if test "$host_cpu" = ia64; then
9062 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9063 allow_undefined_flag="-z nodefs"
9064 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"
9065 else
9066 # Determine the default libpath from the value encoded in an
9067 # empty executable.
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9070
9071 int
9072 main ()
9073 {
9074
9075 ;
9076 return 0;
9077 }
9078 _ACEOF
9079 if ac_fn_c_try_link "$LINENO"; then :
9080
9081 lt_aix_libpath_sed='
9082 /Import File Strings/,/^$/ {
9083 /^0/ {
9084 s/^0 *\(.*\)$/\1/
9085 p
9086 }
9087 }'
9088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9089 # Check for a 64-bit object if we didn't find anything.
9090 if test -z "$aix_libpath"; then
9091 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9092 fi
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9097
9098 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9099 # Warning - without using the other run time loading flags,
9100 # -berok will link without error, but may produce a broken library.
9101 no_undefined_flag=' ${wl}-bernotok'
9102 allow_undefined_flag=' ${wl}-berok'
9103 if test "$with_gnu_ld" = yes; then
9104 # We only use this code for GNU lds that support --whole-archive.
9105 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9106 else
9107 # Exported symbols can be pulled into shared objects from archives
9108 whole_archive_flag_spec='$convenience'
9109 fi
9110 archive_cmds_need_lc=yes
9111 # This is similar to how AIX traditionally builds its shared libraries.
9112 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'
9113 fi
9114 fi
9115 ;;
9116
9117 amigaos*)
9118 case $host_cpu in
9119 powerpc)
9120 # see comment about AmigaOS4 .so support
9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds=''
9123 ;;
9124 m68k)
9125 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)'
9126 hardcode_libdir_flag_spec='-L$libdir'
9127 hardcode_minus_L=yes
9128 ;;
9129 esac
9130 ;;
9131
9132 bsdi[45]*)
9133 export_dynamic_flag_spec=-rdynamic
9134 ;;
9135
9136 cygwin* | mingw* | pw32* | cegcc*)
9137 # When not using gcc, we currently assume that we are using
9138 # Microsoft Visual C++.
9139 # hardcode_libdir_flag_spec is actually meaningless, as there is
9140 # no search path for DLLs.
9141 hardcode_libdir_flag_spec=' '
9142 allow_undefined_flag=unsupported
9143 # Tell ltmain to make .lib files, not .a files.
9144 libext=lib
9145 # Tell ltmain to make .dll files, not .so files.
9146 shrext_cmds=".dll"
9147 # FIXME: Setting linknames here is a bad hack.
9148 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9149 # The linker will automatically build a .lib file if we build a DLL.
9150 old_archive_from_new_cmds='true'
9151 # FIXME: Should let the user specify the lib program.
9152 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9153 fix_srcfile_path='`cygpath -w "$srcfile"`'
9154 enable_shared_with_static_runtimes=yes
9155 ;;
9156
9157 darwin* | rhapsody*)
9158
9159
9160 archive_cmds_need_lc=no
9161 hardcode_direct=no
9162 hardcode_automatic=yes
9163 hardcode_shlibpath_var=unsupported
9164 if test "$lt_cv_ld_force_load" = "yes"; then
9165 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\"`'
9166 else
9167 whole_archive_flag_spec=''
9168 fi
9169 link_all_deplibs=yes
9170 allow_undefined_flag="$_lt_dar_allow_undefined"
9171 case $cc_basename in
9172 ifort*) _lt_dar_can_shared=yes ;;
9173 *) _lt_dar_can_shared=$GCC ;;
9174 esac
9175 if test "$_lt_dar_can_shared" = "yes"; then
9176 output_verbose_link_cmd=func_echo_all
9177 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9178 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9179 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}"
9180 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}"
9181
9182 else
9183 ld_shlibs=no
9184 fi
9185
9186 ;;
9187
9188 dgux*)
9189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9190 hardcode_libdir_flag_spec='-L$libdir'
9191 hardcode_shlibpath_var=no
9192 ;;
9193
9194 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9195 # support. Future versions do this automatically, but an explicit c++rt0.o
9196 # does not break anything, and helps significantly (at the cost of a little
9197 # extra space).
9198 freebsd2.2*)
9199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9200 hardcode_libdir_flag_spec='-R$libdir'
9201 hardcode_direct=yes
9202 hardcode_shlibpath_var=no
9203 ;;
9204
9205 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9206 freebsd2.*)
9207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9208 hardcode_direct=yes
9209 hardcode_minus_L=yes
9210 hardcode_shlibpath_var=no
9211 ;;
9212
9213 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9214 freebsd* | dragonfly*)
9215 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9216 hardcode_libdir_flag_spec='-R$libdir'
9217 hardcode_direct=yes
9218 hardcode_shlibpath_var=no
9219 ;;
9220
9221 hpux9*)
9222 if test "$GCC" = yes; then
9223 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9224 else
9225 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'
9226 fi
9227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9228 hardcode_libdir_separator=:
9229 hardcode_direct=yes
9230
9231 # hardcode_minus_L: Not really in the search PATH,
9232 # but as the default location of the library.
9233 hardcode_minus_L=yes
9234 export_dynamic_flag_spec='${wl}-E'
9235 ;;
9236
9237 hpux10*)
9238 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9240 else
9241 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9242 fi
9243 if test "$with_gnu_ld" = no; then
9244 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9245 hardcode_libdir_flag_spec_ld='+b $libdir'
9246 hardcode_libdir_separator=:
9247 hardcode_direct=yes
9248 hardcode_direct_absolute=yes
9249 export_dynamic_flag_spec='${wl}-E'
9250 # hardcode_minus_L: Not really in the search PATH,
9251 # but as the default location of the library.
9252 hardcode_minus_L=yes
9253 fi
9254 ;;
9255
9256 hpux11*)
9257 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9258 case $host_cpu in
9259 hppa*64*)
9260 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9261 ;;
9262 ia64*)
9263 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9264 ;;
9265 *)
9266 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9267 ;;
9268 esac
9269 else
9270 case $host_cpu in
9271 hppa*64*)
9272 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9273 ;;
9274 ia64*)
9275 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9276 ;;
9277 *)
9278
9279 # Older versions of the 11.00 compiler do not understand -b yet
9280 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9282 $as_echo_n "checking if $CC understands -b... " >&6; }
9283 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 lt_cv_prog_compiler__b=no
9287 save_LDFLAGS="$LDFLAGS"
9288 LDFLAGS="$LDFLAGS -b"
9289 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9290 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9291 # The linker can only warn and ignore the option if not recognized
9292 # So say no if there are warnings
9293 if test -s conftest.err; then
9294 # Append any errors to the config.log.
9295 cat conftest.err 1>&5
9296 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9298 if diff conftest.exp conftest.er2 >/dev/null; then
9299 lt_cv_prog_compiler__b=yes
9300 fi
9301 else
9302 lt_cv_prog_compiler__b=yes
9303 fi
9304 fi
9305 $RM -r conftest*
9306 LDFLAGS="$save_LDFLAGS"
9307
9308 fi
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9310 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9311
9312 if test x"$lt_cv_prog_compiler__b" = xyes; then
9313 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9314 else
9315 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9316 fi
9317
9318 ;;
9319 esac
9320 fi
9321 if test "$with_gnu_ld" = no; then
9322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9323 hardcode_libdir_separator=:
9324
9325 case $host_cpu in
9326 hppa*64*|ia64*)
9327 hardcode_direct=no
9328 hardcode_shlibpath_var=no
9329 ;;
9330 *)
9331 hardcode_direct=yes
9332 hardcode_direct_absolute=yes
9333 export_dynamic_flag_spec='${wl}-E'
9334
9335 # hardcode_minus_L: Not really in the search PATH,
9336 # but as the default location of the library.
9337 hardcode_minus_L=yes
9338 ;;
9339 esac
9340 fi
9341 ;;
9342
9343 irix5* | irix6* | nonstopux*)
9344 if test "$GCC" = yes; then
9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9346 # Try to use the -exported_symbol ld option, if it does not
9347 # work, assume that -exports_file does not work either and
9348 # implicitly export all symbols.
9349 save_LDFLAGS="$LDFLAGS"
9350 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 int foo(void) {}
9354 _ACEOF
9355 if ac_fn_c_try_link "$LINENO"; then :
9356 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9357
9358 fi
9359 rm -f core conftest.err conftest.$ac_objext \
9360 conftest$ac_exeext conftest.$ac_ext
9361 LDFLAGS="$save_LDFLAGS"
9362 else
9363 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'
9364 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'
9365 fi
9366 archive_cmds_need_lc='no'
9367 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9368 hardcode_libdir_separator=:
9369 inherit_rpath=yes
9370 link_all_deplibs=yes
9371 ;;
9372
9373 netbsd*)
9374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9376 else
9377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9378 fi
9379 hardcode_libdir_flag_spec='-R$libdir'
9380 hardcode_direct=yes
9381 hardcode_shlibpath_var=no
9382 ;;
9383
9384 newsos6)
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_direct=yes
9387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388 hardcode_libdir_separator=:
9389 hardcode_shlibpath_var=no
9390 ;;
9391
9392 *nto* | *qnx*)
9393 ;;
9394
9395 openbsd*)
9396 if test -f /usr/libexec/ld.so; then
9397 hardcode_direct=yes
9398 hardcode_shlibpath_var=no
9399 hardcode_direct_absolute=yes
9400 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9404 export_dynamic_flag_spec='${wl}-E'
9405 else
9406 case $host_os in
9407 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9408 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409 hardcode_libdir_flag_spec='-R$libdir'
9410 ;;
9411 *)
9412 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9414 ;;
9415 esac
9416 fi
9417 else
9418 ld_shlibs=no
9419 fi
9420 ;;
9421
9422 os2*)
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_minus_L=yes
9425 allow_undefined_flag=unsupported
9426 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'
9427 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9428 ;;
9429
9430 osf3*)
9431 if test "$GCC" = yes; then
9432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9433 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'
9434 else
9435 allow_undefined_flag=' -expect_unresolved \*'
9436 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'
9437 fi
9438 archive_cmds_need_lc='no'
9439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440 hardcode_libdir_separator=:
9441 ;;
9442
9443 osf4* | osf5*) # as osf3* with the addition of -msym flag
9444 if test "$GCC" = yes; then
9445 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9446 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9448 else
9449 allow_undefined_flag=' -expect_unresolved \*'
9450 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'
9451 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~
9452 $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'
9453
9454 # Both c and cxx compiler support -rpath directly
9455 hardcode_libdir_flag_spec='-rpath $libdir'
9456 fi
9457 archive_cmds_need_lc='no'
9458 hardcode_libdir_separator=:
9459 ;;
9460
9461 solaris*)
9462 no_undefined_flag=' -z defs'
9463 if test "$GCC" = yes; then
9464 wlarc='${wl}'
9465 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9467 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9468 else
9469 case `$CC -V 2>&1` in
9470 *"Compilers 5.0"*)
9471 wlarc=''
9472 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9474 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9475 ;;
9476 *)
9477 wlarc='${wl}'
9478 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9480 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9481 ;;
9482 esac
9483 fi
9484 hardcode_libdir_flag_spec='-R$libdir'
9485 hardcode_shlibpath_var=no
9486 case $host_os in
9487 solaris2.[0-5] | solaris2.[0-5].*) ;;
9488 *)
9489 # The compiler driver will combine and reorder linker options,
9490 # but understands `-z linker_flag'. GCC discards it without `$wl',
9491 # but is careful enough not to reorder.
9492 # Supported since Solaris 2.6 (maybe 2.5.1?)
9493 if test "$GCC" = yes; then
9494 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9495 else
9496 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9497 fi
9498 ;;
9499 esac
9500 link_all_deplibs=yes
9501 ;;
9502
9503 sunos4*)
9504 if test "x$host_vendor" = xsequent; then
9505 # Use $CC to link under sequent, because it throws in some extra .o
9506 # files that make .init and .fini sections work.
9507 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9508 else
9509 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9510 fi
9511 hardcode_libdir_flag_spec='-L$libdir'
9512 hardcode_direct=yes
9513 hardcode_minus_L=yes
9514 hardcode_shlibpath_var=no
9515 ;;
9516
9517 sysv4)
9518 case $host_vendor in
9519 sni)
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_direct=yes # is this really true???
9522 ;;
9523 siemens)
9524 ## LD is ld it makes a PLAMLIB
9525 ## CC just makes a GrossModule.
9526 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9527 reload_cmds='$CC -r -o $output$reload_objs'
9528 hardcode_direct=no
9529 ;;
9530 motorola)
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9533 ;;
9534 esac
9535 runpath_var='LD_RUN_PATH'
9536 hardcode_shlibpath_var=no
9537 ;;
9538
9539 sysv4.3*)
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_shlibpath_var=no
9542 export_dynamic_flag_spec='-Bexport'
9543 ;;
9544
9545 sysv4*MP*)
9546 if test -d /usr/nec; then
9547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548 hardcode_shlibpath_var=no
9549 runpath_var=LD_RUN_PATH
9550 hardcode_runpath_var=yes
9551 ld_shlibs=yes
9552 fi
9553 ;;
9554
9555 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9556 no_undefined_flag='${wl}-z,text'
9557 archive_cmds_need_lc=no
9558 hardcode_shlibpath_var=no
9559 runpath_var='LD_RUN_PATH'
9560
9561 if test "$GCC" = yes; then
9562 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 else
9565 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 fi
9568 ;;
9569
9570 sysv5* | sco3.2v5* | sco5v6*)
9571 # Note: We can NOT use -z defs as we might desire, because we do not
9572 # link with -lc, and that would cause any symbols used from libc to
9573 # always be unresolved, which means just about no library would
9574 # ever link correctly. If we're not using GNU ld we use -z text
9575 # though, which does catch some bad symbols but isn't as heavy-handed
9576 # as -z defs.
9577 no_undefined_flag='${wl}-z,text'
9578 allow_undefined_flag='${wl}-z,nodefs'
9579 archive_cmds_need_lc=no
9580 hardcode_shlibpath_var=no
9581 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9582 hardcode_libdir_separator=':'
9583 link_all_deplibs=yes
9584 export_dynamic_flag_spec='${wl}-Bexport'
9585 runpath_var='LD_RUN_PATH'
9586
9587 if test "$GCC" = yes; then
9588 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 else
9591 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9592 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 fi
9594 ;;
9595
9596 uts4*)
9597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 hardcode_libdir_flag_spec='-L$libdir'
9599 hardcode_shlibpath_var=no
9600 ;;
9601
9602 *)
9603 ld_shlibs=no
9604 ;;
9605 esac
9606
9607 if test x$host_vendor = xsni; then
9608 case $host in
9609 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9610 export_dynamic_flag_spec='${wl}-Blargedynsym'
9611 ;;
9612 esac
9613 fi
9614 fi
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9617 $as_echo "$ld_shlibs" >&6; }
9618 test "$ld_shlibs" = no && can_build_shared=no
9619
9620 with_gnu_ld=$with_gnu_ld
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636 #
9637 # Do we need to explicitly link libc?
9638 #
9639 case "x$archive_cmds_need_lc" in
9640 x|xyes)
9641 # Assume -lc should be added
9642 archive_cmds_need_lc=yes
9643
9644 if test "$enable_shared" = yes && test "$GCC" = yes; then
9645 case $archive_cmds in
9646 *'~'*)
9647 # FIXME: we may have to deal with multi-command sequences.
9648 ;;
9649 '$CC '*)
9650 # Test whether the compiler implicitly links with -lc since on some
9651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9652 # to ld, don't add -lc before -lgcc.
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9654 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9655 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
9657 else
9658 $RM conftest*
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9660
9661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9662 (eval $ac_compile) 2>&5
9663 ac_status=$?
9664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9665 test $ac_status = 0; } 2>conftest.err; then
9666 soname=conftest
9667 lib=conftest
9668 libobjs=conftest.$ac_objext
9669 deplibs=
9670 wl=$lt_prog_compiler_wl
9671 pic_flag=$lt_prog_compiler_pic
9672 compiler_flags=-v
9673 linker_flags=-v
9674 verstring=
9675 output_objdir=.
9676 libname=conftest
9677 lt_save_allow_undefined_flag=$allow_undefined_flag
9678 allow_undefined_flag=
9679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9680 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9681 ac_status=$?
9682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9683 test $ac_status = 0; }
9684 then
9685 lt_cv_archive_cmds_need_lc=no
9686 else
9687 lt_cv_archive_cmds_need_lc=yes
9688 fi
9689 allow_undefined_flag=$lt_save_allow_undefined_flag
9690 else
9691 cat conftest.err 1>&5
9692 fi
9693 $RM conftest*
9694
9695 fi
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9697 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9698 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9699 ;;
9700 esac
9701 fi
9702 ;;
9703 esac
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9862 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9863
9864 if test "$GCC" = yes; then
9865 case $host_os in
9866 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9867 *) lt_awk_arg="/^libraries:/" ;;
9868 esac
9869 case $host_os in
9870 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9871 *) lt_sed_strip_eq="s,=/,/,g" ;;
9872 esac
9873 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9874 case $lt_search_path_spec in
9875 *\;*)
9876 # if the path contains ";" then we assume it to be the separator
9877 # otherwise default to the standard path separator (i.e. ":") - it is
9878 # assumed that no part of a normal pathname contains ";" but that should
9879 # okay in the real world where ";" in dirpaths is itself problematic.
9880 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9881 ;;
9882 *)
9883 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9884 ;;
9885 esac
9886 # Ok, now we have the path, separated by spaces, we can step through it
9887 # and add multilib dir if necessary.
9888 lt_tmp_lt_search_path_spec=
9889 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9890 for lt_sys_path in $lt_search_path_spec; do
9891 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9892 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9893 else
9894 test -d "$lt_sys_path" && \
9895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9896 fi
9897 done
9898 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9899 BEGIN {RS=" "; FS="/|\n";} {
9900 lt_foo="";
9901 lt_count=0;
9902 for (lt_i = NF; lt_i > 0; lt_i--) {
9903 if ($lt_i != "" && $lt_i != ".") {
9904 if ($lt_i == "..") {
9905 lt_count++;
9906 } else {
9907 if (lt_count == 0) {
9908 lt_foo="/" $lt_i lt_foo;
9909 } else {
9910 lt_count--;
9911 }
9912 }
9913 }
9914 }
9915 if (lt_foo != "") { lt_freq[lt_foo]++; }
9916 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9917 }'`
9918 # AWK program above erroneously prepends '/' to C:/dos/paths
9919 # for these hosts.
9920 case $host_os in
9921 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9922 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9923 esac
9924 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9925 else
9926 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9927 fi
9928 library_names_spec=
9929 libname_spec='lib$name'
9930 soname_spec=
9931 shrext_cmds=".so"
9932 postinstall_cmds=
9933 postuninstall_cmds=
9934 finish_cmds=
9935 finish_eval=
9936 shlibpath_var=
9937 shlibpath_overrides_runpath=unknown
9938 version_type=none
9939 dynamic_linker="$host_os ld.so"
9940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9941 need_lib_prefix=unknown
9942 hardcode_into_libs=no
9943
9944 # when you set need_version to no, make sure it does not cause -set_version
9945 # flags to be left without arguments
9946 need_version=unknown
9947
9948 case $host_os in
9949 aix3*)
9950 version_type=linux
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9952 shlibpath_var=LIBPATH
9953
9954 # AIX 3 has no versioning support, so we append a major version to the name.
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 ;;
9957
9958 aix[4-9]*)
9959 version_type=linux
9960 need_lib_prefix=no
9961 need_version=no
9962 hardcode_into_libs=yes
9963 if test "$host_cpu" = ia64; then
9964 # AIX 5 supports IA64
9965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 else
9968 # With GCC up to 2.95.x, collect2 would create an import file
9969 # for dependence libraries. The import file would start with
9970 # the line `#! .'. This would cause the generated library to
9971 # depend on `.', always an invalid library. This was fixed in
9972 # development snapshots of GCC prior to 3.0.
9973 case $host_os in
9974 aix4 | aix4.[01] | aix4.[01].*)
9975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9976 echo ' yes '
9977 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9978 :
9979 else
9980 can_build_shared=no
9981 fi
9982 ;;
9983 esac
9984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9985 # soname into executable. Probably we can add versioning support to
9986 # collect2, so additional links can be useful in future.
9987 if test "$aix_use_runtimelinking" = yes; then
9988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9989 # instead of lib<name>.a to let people know that these are not
9990 # typical AIX shared libraries.
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992 else
9993 # We preserve .a as extension for shared libraries through AIX4.2
9994 # and later when we are not doing run time linking.
9995 library_names_spec='${libname}${release}.a $libname.a'
9996 soname_spec='${libname}${release}${shared_ext}$major'
9997 fi
9998 shlibpath_var=LIBPATH
9999 fi
10000 ;;
10001
10002 amigaos*)
10003 case $host_cpu in
10004 powerpc)
10005 # Since July 2007 AmigaOS4 officially supports .so libraries.
10006 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008 ;;
10009 m68k)
10010 library_names_spec='$libname.ixlibrary $libname.a'
10011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10012 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'
10013 ;;
10014 esac
10015 ;;
10016
10017 beos*)
10018 library_names_spec='${libname}${shared_ext}'
10019 dynamic_linker="$host_os ld.so"
10020 shlibpath_var=LIBRARY_PATH
10021 ;;
10022
10023 bsdi[45]*)
10024 version_type=linux
10025 need_version=no
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 soname_spec='${libname}${release}${shared_ext}$major'
10028 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10031 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10032 # the default ld.so.conf also contains /usr/contrib/lib and
10033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10034 # libtool to hard-code these into programs
10035 ;;
10036
10037 cygwin* | mingw* | pw32* | cegcc*)
10038 version_type=windows
10039 shrext_cmds=".dll"
10040 need_version=no
10041 need_lib_prefix=no
10042
10043 case $GCC,$host_os in
10044 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10045 library_names_spec='$libname.dll.a'
10046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10047 postinstall_cmds='base_file=`basename \${file}`~
10048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10049 dldir=$destdir/`dirname \$dlpath`~
10050 test -d \$dldir || mkdir -p \$dldir~
10051 $install_prog $dir/$dlname \$dldir/$dlname~
10052 chmod a+x \$dldir/$dlname~
10053 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10054 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10055 fi'
10056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10057 dlpath=$dir/\$dldll~
10058 $RM \$dlpath'
10059 shlibpath_overrides_runpath=yes
10060
10061 case $host_os in
10062 cygwin*)
10063 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10064 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10065
10066 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10067 ;;
10068 mingw* | cegcc*)
10069 # MinGW DLLs use traditional 'lib' prefix
10070 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10071 ;;
10072 pw32*)
10073 # pw32 DLLs use 'pw' prefix rather than 'lib'
10074 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10075 ;;
10076 esac
10077 ;;
10078
10079 *)
10080 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10081 ;;
10082 esac
10083 dynamic_linker='Win32 ld.exe'
10084 # FIXME: first we should search . and the directory the executable is in
10085 shlibpath_var=PATH
10086 ;;
10087
10088 darwin* | rhapsody*)
10089 dynamic_linker="$host_os dyld"
10090 version_type=darwin
10091 need_lib_prefix=no
10092 need_version=no
10093 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10094 soname_spec='${libname}${release}${major}$shared_ext'
10095 shlibpath_overrides_runpath=yes
10096 shlibpath_var=DYLD_LIBRARY_PATH
10097 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10098
10099 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10100 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10101 ;;
10102
10103 dgux*)
10104 version_type=linux
10105 need_lib_prefix=no
10106 need_version=no
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10108 soname_spec='${libname}${release}${shared_ext}$major'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 ;;
10111
10112 freebsd* | dragonfly*)
10113 # DragonFly does not have aout. When/if they implement a new
10114 # versioning mechanism, adjust this.
10115 if test -x /usr/bin/objformat; then
10116 objformat=`/usr/bin/objformat`
10117 else
10118 case $host_os in
10119 freebsd[23].*) objformat=aout ;;
10120 *) objformat=elf ;;
10121 esac
10122 fi
10123 version_type=freebsd-$objformat
10124 case $version_type in
10125 freebsd-elf*)
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10127 need_version=no
10128 need_lib_prefix=no
10129 ;;
10130 freebsd-*)
10131 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10132 need_version=yes
10133 ;;
10134 esac
10135 shlibpath_var=LD_LIBRARY_PATH
10136 case $host_os in
10137 freebsd2.*)
10138 shlibpath_overrides_runpath=yes
10139 ;;
10140 freebsd3.[01]* | freebsdelf3.[01]*)
10141 shlibpath_overrides_runpath=yes
10142 hardcode_into_libs=yes
10143 ;;
10144 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10145 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10146 shlibpath_overrides_runpath=no
10147 hardcode_into_libs=yes
10148 ;;
10149 *) # from 4.6 on, and DragonFly
10150 shlibpath_overrides_runpath=yes
10151 hardcode_into_libs=yes
10152 ;;
10153 esac
10154 ;;
10155
10156 gnu*)
10157 version_type=linux
10158 need_lib_prefix=no
10159 need_version=no
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 hardcode_into_libs=yes
10164 ;;
10165
10166 haiku*)
10167 version_type=linux
10168 need_lib_prefix=no
10169 need_version=no
10170 dynamic_linker="$host_os runtime_loader"
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10175 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10176 hardcode_into_libs=yes
10177 ;;
10178
10179 hpux9* | hpux10* | hpux11*)
10180 # Give a soname corresponding to the major version so that dld.sl refuses to
10181 # link against other versions.
10182 version_type=sunos
10183 need_lib_prefix=no
10184 need_version=no
10185 case $host_cpu in
10186 ia64*)
10187 shrext_cmds='.so'
10188 hardcode_into_libs=yes
10189 dynamic_linker="$host_os dld.so"
10190 shlibpath_var=LD_LIBRARY_PATH
10191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193 soname_spec='${libname}${release}${shared_ext}$major'
10194 if test "X$HPUX_IA64_MODE" = X32; then
10195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10196 else
10197 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10198 fi
10199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10200 ;;
10201 hppa*64*)
10202 shrext_cmds='.sl'
10203 hardcode_into_libs=yes
10204 dynamic_linker="$host_os dld.sl"
10205 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10206 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208 soname_spec='${libname}${release}${shared_ext}$major'
10209 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10211 ;;
10212 *)
10213 shrext_cmds='.sl'
10214 dynamic_linker="$host_os dld.sl"
10215 shlibpath_var=SHLIB_PATH
10216 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 ;;
10220 esac
10221 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10222 postinstall_cmds='chmod 555 $lib'
10223 # or fails outright, so override atomically:
10224 install_override_mode=555
10225 ;;
10226
10227 interix[3-9]*)
10228 version_type=linux
10229 need_lib_prefix=no
10230 need_version=no
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath=no
10236 hardcode_into_libs=yes
10237 ;;
10238
10239 irix5* | irix6* | nonstopux*)
10240 case $host_os in
10241 nonstopux*) version_type=nonstopux ;;
10242 *)
10243 if test "$lt_cv_prog_gnu_ld" = yes; then
10244 version_type=linux
10245 else
10246 version_type=irix
10247 fi ;;
10248 esac
10249 need_lib_prefix=no
10250 need_version=no
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10253 case $host_os in
10254 irix5* | nonstopux*)
10255 libsuff= shlibsuff=
10256 ;;
10257 *)
10258 case $LD in # libtool.m4 will add one of these switches to LD
10259 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10260 libsuff= shlibsuff= libmagic=32-bit;;
10261 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10262 libsuff=32 shlibsuff=N32 libmagic=N32;;
10263 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10264 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10265 *) libsuff= shlibsuff= libmagic=never-match;;
10266 esac
10267 ;;
10268 esac
10269 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10270 shlibpath_overrides_runpath=no
10271 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10272 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10273 hardcode_into_libs=yes
10274 ;;
10275
10276 # No shared lib support for Linux oldld, aout, or coff.
10277 linux*oldld* | linux*aout* | linux*coff*)
10278 dynamic_linker=no
10279 ;;
10280
10281 # This must be Linux ELF.
10282 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10283 version_type=linux
10284 need_lib_prefix=no
10285 need_version=no
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=no
10291
10292 # Some binutils ld are patched to set DT_RUNPATH
10293 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 lt_cv_shlibpath_overrides_runpath=no
10297 save_LDFLAGS=$LDFLAGS
10298 save_libdir=$libdir
10299 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10300 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303
10304 int
10305 main ()
10306 {
10307
10308 ;
10309 return 0;
10310 }
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10314 lt_cv_shlibpath_overrides_runpath=yes
10315 fi
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LDFLAGS=$save_LDFLAGS
10320 libdir=$save_libdir
10321
10322 fi
10323
10324 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10325
10326 # This implies no fast_install, which is unacceptable.
10327 # Some rework will be needed to allow for fast_install
10328 # before this can be enabled.
10329 hardcode_into_libs=yes
10330
10331 # Append ld.so.conf contents to the search path
10332 if test -f /etc/ld.so.conf; then
10333 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' ' '`
10334 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10335 fi
10336
10337 # We used to test for /lib/ld.so.1 and disable shared libraries on
10338 # powerpc, because MkLinux only supported shared libraries with the
10339 # GNU dynamic linker. Since this was broken with cross compilers,
10340 # most powerpc-linux boxes support dynamic linking these days and
10341 # people can always --disable-shared, the test was removed, and we
10342 # assume the GNU/Linux dynamic linker is in use.
10343 dynamic_linker='GNU/Linux ld.so'
10344 ;;
10345
10346 netbsd*)
10347 version_type=sunos
10348 need_lib_prefix=no
10349 need_version=no
10350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10353 dynamic_linker='NetBSD (a.out) ld.so'
10354 else
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10357 dynamic_linker='NetBSD ld.elf_so'
10358 fi
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 ;;
10363
10364 newsos6)
10365 version_type=linux
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes
10369 ;;
10370
10371 *nto* | *qnx*)
10372 version_type=qnx
10373 need_lib_prefix=no
10374 need_version=no
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10380 dynamic_linker='ldqnx.so'
10381 ;;
10382
10383 openbsd*)
10384 version_type=sunos
10385 sys_lib_dlsearch_path_spec="/usr/lib"
10386 need_lib_prefix=no
10387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10388 case $host_os in
10389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10390 *) need_version=no ;;
10391 esac
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10396 case $host_os in
10397 openbsd2.[89] | openbsd2.[89].*)
10398 shlibpath_overrides_runpath=no
10399 ;;
10400 *)
10401 shlibpath_overrides_runpath=yes
10402 ;;
10403 esac
10404 else
10405 shlibpath_overrides_runpath=yes
10406 fi
10407 ;;
10408
10409 os2*)
10410 libname_spec='$name'
10411 shrext_cmds=".dll"
10412 need_lib_prefix=no
10413 library_names_spec='$libname${shared_ext} $libname.a'
10414 dynamic_linker='OS/2 ld.exe'
10415 shlibpath_var=LIBPATH
10416 ;;
10417
10418 osf3* | osf4* | osf5*)
10419 version_type=osf
10420 need_lib_prefix=no
10421 need_version=no
10422 soname_spec='${libname}${release}${shared_ext}$major'
10423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10427 ;;
10428
10429 rdos*)
10430 dynamic_linker=no
10431 ;;
10432
10433 solaris*)
10434 version_type=linux
10435 need_lib_prefix=no
10436 need_version=no
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 soname_spec='${libname}${release}${shared_ext}$major'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=yes
10441 hardcode_into_libs=yes
10442 # ldd complains unless libraries are executable
10443 postinstall_cmds='chmod +x $lib'
10444 ;;
10445
10446 sunos4*)
10447 version_type=sunos
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10449 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=yes
10452 if test "$with_gnu_ld" = yes; then
10453 need_lib_prefix=no
10454 fi
10455 need_version=yes
10456 ;;
10457
10458 sysv4 | sysv4.3*)
10459 version_type=linux
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 case $host_vendor in
10464 sni)
10465 shlibpath_overrides_runpath=no
10466 need_lib_prefix=no
10467 runpath_var=LD_RUN_PATH
10468 ;;
10469 siemens)
10470 need_lib_prefix=no
10471 ;;
10472 motorola)
10473 need_lib_prefix=no
10474 need_version=no
10475 shlibpath_overrides_runpath=no
10476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10477 ;;
10478 esac
10479 ;;
10480
10481 sysv4*MP*)
10482 if test -d /usr/nec ;then
10483 version_type=linux
10484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10485 soname_spec='$libname${shared_ext}.$major'
10486 shlibpath_var=LD_LIBRARY_PATH
10487 fi
10488 ;;
10489
10490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10491 version_type=freebsd-elf
10492 need_lib_prefix=no
10493 need_version=no
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 shlibpath_overrides_runpath=yes
10498 hardcode_into_libs=yes
10499 if test "$with_gnu_ld" = yes; then
10500 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10501 else
10502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10503 case $host_os in
10504 sco3.2v5*)
10505 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10506 ;;
10507 esac
10508 fi
10509 sys_lib_dlsearch_path_spec='/usr/lib'
10510 ;;
10511
10512 tpf*)
10513 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10514 version_type=linux
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=no
10520 hardcode_into_libs=yes
10521 ;;
10522
10523 uts4*)
10524 version_type=linux
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 ;;
10529
10530 *)
10531 dynamic_linker=no
10532 ;;
10533 esac
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10535 $as_echo "$dynamic_linker" >&6; }
10536 test "$dynamic_linker" = no && can_build_shared=no
10537
10538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10539 if test "$GCC" = yes; then
10540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10541 fi
10542
10543 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10544 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10545 fi
10546 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10547 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10548 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10642 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10643 hardcode_action=
10644 if test -n "$hardcode_libdir_flag_spec" ||
10645 test -n "$runpath_var" ||
10646 test "X$hardcode_automatic" = "Xyes" ; then
10647
10648 # We can hardcode non-existent directories.
10649 if test "$hardcode_direct" != no &&
10650 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10651 # have to relink, otherwise we might link with an installed library
10652 # when we should be linking with a yet-to-be-installed one
10653 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10654 test "$hardcode_minus_L" != no; then
10655 # Linking always hardcodes the temporary library directory.
10656 hardcode_action=relink
10657 else
10658 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10659 hardcode_action=immediate
10660 fi
10661 else
10662 # We cannot hardcode anything, or else we can only hardcode existing
10663 # directories.
10664 hardcode_action=unsupported
10665 fi
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10667 $as_echo "$hardcode_action" >&6; }
10668
10669 if test "$hardcode_action" = relink ||
10670 test "$inherit_rpath" = yes; then
10671 # Fast installation is not supported
10672 enable_fast_install=no
10673 elif test "$shlibpath_overrides_runpath" = yes ||
10674 test "$enable_shared" = no; then
10675 # Fast installation is not necessary
10676 enable_fast_install=needless
10677 fi
10678
10679
10680
10681
10682
10683
10684 if test "x$enable_dlopen" != xyes; then
10685 enable_dlopen=unknown
10686 enable_dlopen_self=unknown
10687 enable_dlopen_self_static=unknown
10688 else
10689 lt_cv_dlopen=no
10690 lt_cv_dlopen_libs=
10691
10692 case $host_os in
10693 beos*)
10694 lt_cv_dlopen="load_add_on"
10695 lt_cv_dlopen_libs=
10696 lt_cv_dlopen_self=yes
10697 ;;
10698
10699 mingw* | pw32* | cegcc*)
10700 lt_cv_dlopen="LoadLibrary"
10701 lt_cv_dlopen_libs=
10702 ;;
10703
10704 cygwin*)
10705 lt_cv_dlopen="dlopen"
10706 lt_cv_dlopen_libs=
10707 ;;
10708
10709 darwin*)
10710 # if libdl is installed we need to link against it
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10712 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10713 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-ldl $LIBS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10720
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10724 #ifdef __cplusplus
10725 extern "C"
10726 #endif
10727 char dlopen ();
10728 int
10729 main ()
10730 {
10731 return dlopen ();
10732 ;
10733 return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_lib_dl_dlopen=yes
10738 else
10739 ac_cv_lib_dl_dlopen=no
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10744 fi
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10746 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10747 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10748 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10749 else
10750
10751 lt_cv_dlopen="dyld"
10752 lt_cv_dlopen_libs=
10753 lt_cv_dlopen_self=yes
10754
10755 fi
10756
10757 ;;
10758
10759 *)
10760 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10761 if test "x$ac_cv_func_shl_load" = x""yes; then :
10762 lt_cv_dlopen="shl_load"
10763 else
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10765 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10766 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 ac_check_lib_save_LIBS=$LIBS
10770 LIBS="-ldld $LIBS"
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char shl_load ();
10781 int
10782 main ()
10783 {
10784 return shl_load ();
10785 ;
10786 return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_c_try_link "$LINENO"; then :
10790 ac_cv_lib_dld_shl_load=yes
10791 else
10792 ac_cv_lib_dld_shl_load=no
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LIBS=$ac_check_lib_save_LIBS
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10799 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10800 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10801 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10802 else
10803 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10804 if test "x$ac_cv_func_dlopen" = x""yes; then :
10805 lt_cv_dlopen="dlopen"
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10808 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10809 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10811 else
10812 ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-ldl $LIBS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816
10817 /* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char dlopen ();
10824 int
10825 main ()
10826 {
10827 return dlopen ();
10828 ;
10829 return 0;
10830 }
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833 ac_cv_lib_dl_dlopen=yes
10834 else
10835 ac_cv_lib_dl_dlopen=no
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10842 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10843 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10844 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10845 else
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10847 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10848 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 ac_check_lib_save_LIBS=$LIBS
10852 LIBS="-lsvld $LIBS"
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855
10856 /* Override any GCC internal prototype to avoid an error.
10857 Use char because int might match the return type of a GCC
10858 builtin and then its argument prototype would still apply. */
10859 #ifdef __cplusplus
10860 extern "C"
10861 #endif
10862 char dlopen ();
10863 int
10864 main ()
10865 {
10866 return dlopen ();
10867 ;
10868 return 0;
10869 }
10870 _ACEOF
10871 if ac_fn_c_try_link "$LINENO"; then :
10872 ac_cv_lib_svld_dlopen=yes
10873 else
10874 ac_cv_lib_svld_dlopen=no
10875 fi
10876 rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10878 LIBS=$ac_check_lib_save_LIBS
10879 fi
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10881 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10882 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10883 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10886 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10887 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890 ac_check_lib_save_LIBS=$LIBS
10891 LIBS="-ldld $LIBS"
10892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894
10895 /* Override any GCC internal prototype to avoid an error.
10896 Use char because int might match the return type of a GCC
10897 builtin and then its argument prototype would still apply. */
10898 #ifdef __cplusplus
10899 extern "C"
10900 #endif
10901 char dld_link ();
10902 int
10903 main ()
10904 {
10905 return dld_link ();
10906 ;
10907 return 0;
10908 }
10909 _ACEOF
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 ac_cv_lib_dld_dld_link=yes
10912 else
10913 ac_cv_lib_dld_dld_link=no
10914 fi
10915 rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10920 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10921 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10922 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10923 fi
10924
10925
10926 fi
10927
10928
10929 fi
10930
10931
10932 fi
10933
10934
10935 fi
10936
10937
10938 fi
10939
10940 ;;
10941 esac
10942
10943 if test "x$lt_cv_dlopen" != xno; then
10944 enable_dlopen=yes
10945 else
10946 enable_dlopen=no
10947 fi
10948
10949 case $lt_cv_dlopen in
10950 dlopen)
10951 save_CPPFLAGS="$CPPFLAGS"
10952 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10953
10954 save_LDFLAGS="$LDFLAGS"
10955 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10956
10957 save_LIBS="$LIBS"
10958 LIBS="$lt_cv_dlopen_libs $LIBS"
10959
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10961 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10962 if test "${lt_cv_dlopen_self+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 if test "$cross_compiling" = yes; then :
10966 lt_cv_dlopen_self=cross
10967 else
10968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10969 lt_status=$lt_dlunknown
10970 cat > conftest.$ac_ext <<_LT_EOF
10971 #line 10971 "configure"
10972 #include "confdefs.h"
10973
10974 #if HAVE_DLFCN_H
10975 #include <dlfcn.h>
10976 #endif
10977
10978 #include <stdio.h>
10979
10980 #ifdef RTLD_GLOBAL
10981 # define LT_DLGLOBAL RTLD_GLOBAL
10982 #else
10983 # ifdef DL_GLOBAL
10984 # define LT_DLGLOBAL DL_GLOBAL
10985 # else
10986 # define LT_DLGLOBAL 0
10987 # endif
10988 #endif
10989
10990 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10991 find out it does not work in some platform. */
10992 #ifndef LT_DLLAZY_OR_NOW
10993 # ifdef RTLD_LAZY
10994 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10995 # else
10996 # ifdef DL_LAZY
10997 # define LT_DLLAZY_OR_NOW DL_LAZY
10998 # else
10999 # ifdef RTLD_NOW
11000 # define LT_DLLAZY_OR_NOW RTLD_NOW
11001 # else
11002 # ifdef DL_NOW
11003 # define LT_DLLAZY_OR_NOW DL_NOW
11004 # else
11005 # define LT_DLLAZY_OR_NOW 0
11006 # endif
11007 # endif
11008 # endif
11009 # endif
11010 #endif
11011
11012 /* When -fvisbility=hidden is used, assume the code has been annotated
11013 correspondingly for the symbols needed. */
11014 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11015 void fnord () __attribute__((visibility("default")));
11016 #endif
11017
11018 void fnord () { int i=42; }
11019 int main ()
11020 {
11021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11022 int status = $lt_dlunknown;
11023
11024 if (self)
11025 {
11026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11027 else
11028 {
11029 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11030 else puts (dlerror ());
11031 }
11032 /* dlclose (self); */
11033 }
11034 else
11035 puts (dlerror ());
11036
11037 return status;
11038 }
11039 _LT_EOF
11040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11041 (eval $ac_link) 2>&5
11042 ac_status=$?
11043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11044 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11045 (./conftest; exit; ) >&5 2>/dev/null
11046 lt_status=$?
11047 case x$lt_status in
11048 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11049 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11050 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11051 esac
11052 else :
11053 # compilation failed
11054 lt_cv_dlopen_self=no
11055 fi
11056 fi
11057 rm -fr conftest*
11058
11059
11060 fi
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11062 $as_echo "$lt_cv_dlopen_self" >&6; }
11063
11064 if test "x$lt_cv_dlopen_self" = xyes; then
11065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11067 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11068 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11069 $as_echo_n "(cached) " >&6
11070 else
11071 if test "$cross_compiling" = yes; then :
11072 lt_cv_dlopen_self_static=cross
11073 else
11074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11075 lt_status=$lt_dlunknown
11076 cat > conftest.$ac_ext <<_LT_EOF
11077 #line 11077 "configure"
11078 #include "confdefs.h"
11079
11080 #if HAVE_DLFCN_H
11081 #include <dlfcn.h>
11082 #endif
11083
11084 #include <stdio.h>
11085
11086 #ifdef RTLD_GLOBAL
11087 # define LT_DLGLOBAL RTLD_GLOBAL
11088 #else
11089 # ifdef DL_GLOBAL
11090 # define LT_DLGLOBAL DL_GLOBAL
11091 # else
11092 # define LT_DLGLOBAL 0
11093 # endif
11094 #endif
11095
11096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11097 find out it does not work in some platform. */
11098 #ifndef LT_DLLAZY_OR_NOW
11099 # ifdef RTLD_LAZY
11100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11101 # else
11102 # ifdef DL_LAZY
11103 # define LT_DLLAZY_OR_NOW DL_LAZY
11104 # else
11105 # ifdef RTLD_NOW
11106 # define LT_DLLAZY_OR_NOW RTLD_NOW
11107 # else
11108 # ifdef DL_NOW
11109 # define LT_DLLAZY_OR_NOW DL_NOW
11110 # else
11111 # define LT_DLLAZY_OR_NOW 0
11112 # endif
11113 # endif
11114 # endif
11115 # endif
11116 #endif
11117
11118 /* When -fvisbility=hidden is used, assume the code has been annotated
11119 correspondingly for the symbols needed. */
11120 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11121 void fnord () __attribute__((visibility("default")));
11122 #endif
11123
11124 void fnord () { int i=42; }
11125 int main ()
11126 {
11127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11128 int status = $lt_dlunknown;
11129
11130 if (self)
11131 {
11132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11133 else
11134 {
11135 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11136 else puts (dlerror ());
11137 }
11138 /* dlclose (self); */
11139 }
11140 else
11141 puts (dlerror ());
11142
11143 return status;
11144 }
11145 _LT_EOF
11146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11147 (eval $ac_link) 2>&5
11148 ac_status=$?
11149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11150 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11151 (./conftest; exit; ) >&5 2>/dev/null
11152 lt_status=$?
11153 case x$lt_status in
11154 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11155 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11156 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11157 esac
11158 else :
11159 # compilation failed
11160 lt_cv_dlopen_self_static=no
11161 fi
11162 fi
11163 rm -fr conftest*
11164
11165
11166 fi
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11168 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11169 fi
11170
11171 CPPFLAGS="$save_CPPFLAGS"
11172 LDFLAGS="$save_LDFLAGS"
11173 LIBS="$save_LIBS"
11174 ;;
11175 esac
11176
11177 case $lt_cv_dlopen_self in
11178 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11179 *) enable_dlopen_self=unknown ;;
11180 esac
11181
11182 case $lt_cv_dlopen_self_static in
11183 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11184 *) enable_dlopen_self_static=unknown ;;
11185 esac
11186 fi
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204 striplib=
11205 old_striplib=
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11207 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11212 $as_echo "yes" >&6; }
11213 else
11214 # FIXME - insert some real tests, host_os isn't really good enough
11215 case $host_os in
11216 darwin*)
11217 if test -n "$STRIP" ; then
11218 striplib="$STRIP -x"
11219 old_striplib="$STRIP -S"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11221 $as_echo "yes" >&6; }
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11224 $as_echo "no" >&6; }
11225 fi
11226 ;;
11227 *)
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11230 ;;
11231 esac
11232 fi
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245 # Report which library types will actually be built
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11247 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11249 $as_echo "$can_build_shared" >&6; }
11250
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11252 $as_echo_n "checking whether to build shared libraries... " >&6; }
11253 test "$can_build_shared" = "no" && enable_shared=no
11254
11255 # On AIX, shared libraries and static libraries use the same namespace, and
11256 # are all built from PIC.
11257 case $host_os in
11258 aix3*)
11259 test "$enable_shared" = yes && enable_static=no
11260 if test -n "$RANLIB"; then
11261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262 postinstall_cmds='$RANLIB $lib'
11263 fi
11264 ;;
11265
11266 aix[4-9]*)
11267 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268 test "$enable_shared" = yes && enable_static=no
11269 fi
11270 ;;
11271 esac
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11273 $as_echo "$enable_shared" >&6; }
11274
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11276 $as_echo_n "checking whether to build static libraries... " >&6; }
11277 # Make sure either enable_shared or enable_static is yes.
11278 test "$enable_shared" = yes || enable_static=yes
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11280 $as_echo "$enable_static" >&6; }
11281
11282
11283
11284
11285 fi
11286 ac_ext=c
11287 ac_cpp='$CPP $CPPFLAGS'
11288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11291
11292 CC="$lt_save_CC"
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306 ac_config_commands="$ac_config_commands libtool"
11307
11308
11309
11310
11311 # Only expand once:
11312
11313
11314
11315 # The tests for host and target for $enable_largefile require
11316 # canonical names.
11317
11318
11319
11320 # As the $enable_largefile decision depends on --enable-plugins we must set it
11321 # even in directories otherwise not depending on the $plugins option.
11322
11323
11324 maybe_plugins=no
11325 for ac_header in dlfcn.h
11326 do :
11327 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11328 "
11329 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11330 cat >>confdefs.h <<_ACEOF
11331 #define HAVE_DLFCN_H 1
11332 _ACEOF
11333 maybe_plugins=yes
11334 fi
11335
11336 done
11337
11338 for ac_header in windows.h
11339 do :
11340 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11341 "
11342 if test "x$ac_cv_header_windows_h" = x""yes; then :
11343 cat >>confdefs.h <<_ACEOF
11344 #define HAVE_WINDOWS_H 1
11345 _ACEOF
11346 maybe_plugins=yes
11347 fi
11348
11349 done
11350
11351
11352 # Check whether --enable-plugins was given.
11353 if test "${enable_plugins+set}" = set; then :
11354 enableval=$enable_plugins; case "${enableval}" in
11355 no) plugins=no ;;
11356 *) plugins=yes
11357 if test "$maybe_plugins" != "yes" ; then
11358 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11359 fi ;;
11360 esac
11361 else
11362 plugins=$maybe_plugins
11363
11364 fi
11365
11366 if test "$plugins" = "yes"; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11368 $as_echo_n "checking for library containing dlopen... " >&6; }
11369 if test "${ac_cv_search_dlopen+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 ac_func_search_save_LIBS=$LIBS
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11375
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11379 #ifdef __cplusplus
11380 extern "C"
11381 #endif
11382 char dlopen ();
11383 int
11384 main ()
11385 {
11386 return dlopen ();
11387 ;
11388 return 0;
11389 }
11390 _ACEOF
11391 for ac_lib in '' dl; do
11392 if test -z "$ac_lib"; then
11393 ac_res="none required"
11394 else
11395 ac_res=-l$ac_lib
11396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11397 fi
11398 if ac_fn_c_try_link "$LINENO"; then :
11399 ac_cv_search_dlopen=$ac_res
11400 fi
11401 rm -f core conftest.err conftest.$ac_objext \
11402 conftest$ac_exeext
11403 if test "${ac_cv_search_dlopen+set}" = set; then :
11404 break
11405 fi
11406 done
11407 if test "${ac_cv_search_dlopen+set}" = set; then :
11408
11409 else
11410 ac_cv_search_dlopen=no
11411 fi
11412 rm conftest.$ac_ext
11413 LIBS=$ac_func_search_save_LIBS
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11416 $as_echo "$ac_cv_search_dlopen" >&6; }
11417 ac_res=$ac_cv_search_dlopen
11418 if test "$ac_res" != no; then :
11419 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11420
11421 fi
11422
11423 fi
11424
11425
11426 case "${host}" in
11427 sparc-*-solaris*|i[3-7]86-*-solaris*)
11428 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11429 # are mutually exclusive; and without procfs support, the bfd/ elf module
11430 # cannot provide certain routines such as elfcore_write_prpsinfo
11431 # or elfcore_write_prstatus. So unless the user explicitly requested
11432 # large-file support through the --enable-largefile switch, disable
11433 # large-file support in favor of procfs support.
11434 test "${target}" = "${host}" -a "x$plugins" = xno \
11435 && : ${enable_largefile="no"}
11436 ;;
11437 esac
11438
11439 # Check whether --enable-largefile was given.
11440 if test "${enable_largefile+set}" = set; then :
11441 enableval=$enable_largefile;
11442 fi
11443
11444 if test "$enable_largefile" != no; then
11445
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11447 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11448 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 ac_cv_sys_largefile_CC=no
11452 if test "$GCC" != yes; then
11453 ac_save_CC=$CC
11454 while :; do
11455 # IRIX 6.2 and later do not support large files by default,
11456 # so use the C compiler's -n32 option if that helps.
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459 #include <sys/types.h>
11460 /* Check that off_t can represent 2**63 - 1 correctly.
11461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11462 since some C++ compilers masquerading as C compilers
11463 incorrectly reject 9223372036854775807. */
11464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11466 && LARGE_OFF_T % 2147483647 == 1)
11467 ? 1 : -1];
11468 int
11469 main ()
11470 {
11471
11472 ;
11473 return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_compile "$LINENO"; then :
11477 break
11478 fi
11479 rm -f core conftest.err conftest.$ac_objext
11480 CC="$CC -n32"
11481 if ac_fn_c_try_compile "$LINENO"; then :
11482 ac_cv_sys_largefile_CC=' -n32'; break
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext
11485 break
11486 done
11487 CC=$ac_save_CC
11488 rm -f conftest.$ac_ext
11489 fi
11490 fi
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11492 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11493 if test "$ac_cv_sys_largefile_CC" != no; then
11494 CC=$CC$ac_cv_sys_largefile_CC
11495 fi
11496
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11498 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11499 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 while :; do
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11505 #include <sys/types.h>
11506 /* Check that off_t can represent 2**63 - 1 correctly.
11507 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11508 since some C++ compilers masquerading as C compilers
11509 incorrectly reject 9223372036854775807. */
11510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11511 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11512 && LARGE_OFF_T % 2147483647 == 1)
11513 ? 1 : -1];
11514 int
11515 main ()
11516 {
11517
11518 ;
11519 return 0;
11520 }
11521 _ACEOF
11522 if ac_fn_c_try_compile "$LINENO"; then :
11523 ac_cv_sys_file_offset_bits=no; break
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528 #define _FILE_OFFSET_BITS 64
11529 #include <sys/types.h>
11530 /* Check that off_t can represent 2**63 - 1 correctly.
11531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11532 since some C++ compilers masquerading as C compilers
11533 incorrectly reject 9223372036854775807. */
11534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11536 && LARGE_OFF_T % 2147483647 == 1)
11537 ? 1 : -1];
11538 int
11539 main ()
11540 {
11541
11542 ;
11543 return 0;
11544 }
11545 _ACEOF
11546 if ac_fn_c_try_compile "$LINENO"; then :
11547 ac_cv_sys_file_offset_bits=64; break
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 ac_cv_sys_file_offset_bits=unknown
11551 break
11552 done
11553 fi
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11555 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11556 case $ac_cv_sys_file_offset_bits in #(
11557 no | unknown) ;;
11558 *)
11559 cat >>confdefs.h <<_ACEOF
11560 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11561 _ACEOF
11562 ;;
11563 esac
11564 rm -rf conftest*
11565 if test $ac_cv_sys_file_offset_bits = unknown; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11567 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11568 if test "${ac_cv_sys_large_files+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 while :; do
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574 #include <sys/types.h>
11575 /* Check that off_t can represent 2**63 - 1 correctly.
11576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11577 since some C++ compilers masquerading as C compilers
11578 incorrectly reject 9223372036854775807. */
11579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11581 && LARGE_OFF_T % 2147483647 == 1)
11582 ? 1 : -1];
11583 int
11584 main ()
11585 {
11586
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592 ac_cv_sys_large_files=no; break
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597 #define _LARGE_FILES 1
11598 #include <sys/types.h>
11599 /* Check that off_t can represent 2**63 - 1 correctly.
11600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11601 since some C++ compilers masquerading as C compilers
11602 incorrectly reject 9223372036854775807. */
11603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11605 && LARGE_OFF_T % 2147483647 == 1)
11606 ? 1 : -1];
11607 int
11608 main ()
11609 {
11610
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_compile "$LINENO"; then :
11616 ac_cv_sys_large_files=1; break
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 ac_cv_sys_large_files=unknown
11620 break
11621 done
11622 fi
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11624 $as_echo "$ac_cv_sys_large_files" >&6; }
11625 case $ac_cv_sys_large_files in #(
11626 no | unknown) ;;
11627 *)
11628 cat >>confdefs.h <<_ACEOF
11629 #define _LARGE_FILES $ac_cv_sys_large_files
11630 _ACEOF
11631 ;;
11632 esac
11633 rm -rf conftest*
11634 fi
11635 fi
11636
11637
11638
11639 # Check whether --enable-targets was given.
11640 if test "${enable_targets+set}" = set; then :
11641 enableval=$enable_targets; case "${enableval}" in
11642 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11643 ;;
11644 no) enable_targets= ;;
11645 *) enable_targets=$enableval ;;
11646 esac
11647 fi
11648
11649 ac_checking=yes
11650 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11651 ac_checking=
11652 fi
11653 # Check whether --enable-checking was given.
11654 if test "${enable_checking+set}" = set; then :
11655 enableval=$enable_checking; case "${enableval}" in
11656 no|none) ac_checking= ;;
11657 *) ac_checking=yes ;;
11658 esac
11659 fi
11660 if test x$ac_checking != x ; then
11661
11662 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11663
11664 fi
11665
11666 using_cgen=no
11667
11668
11669 # Set the 'development' global.
11670 . $srcdir/../bfd/development.sh
11671
11672 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675 __GNUC__
11676 _ACEOF
11677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11678 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11679
11680 else
11681 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11682 fi
11683 rm -f conftest*
11684
11685
11686 # Check whether --enable-werror was given.
11687 if test "${enable_werror+set}" = set; then :
11688 enableval=$enable_werror; case "${enableval}" in
11689 yes | y) ERROR_ON_WARNING="yes" ;;
11690 no | n) ERROR_ON_WARNING="no" ;;
11691 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11692 esac
11693 fi
11694
11695
11696 # Disable -Wformat by default when using gcc on mingw
11697 case "${host}" in
11698 *-*-mingw32*)
11699 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11700 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11701 fi
11702 ;;
11703 *) ;;
11704 esac
11705
11706 # Enable -Werror by default when using gcc. Turn it off for releases.
11707 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11708 ERROR_ON_WARNING=yes
11709 fi
11710
11711 NO_WERROR=
11712 if test "${ERROR_ON_WARNING}" = yes ; then
11713 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11714 NO_WERROR="-Wno-error"
11715 fi
11716
11717 if test "${GCC}" = yes ; then
11718 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11719 fi
11720
11721 # Check whether --enable-build-warnings was given.
11722 if test "${enable_build_warnings+set}" = set; then :
11723 enableval=$enable_build_warnings; case "${enableval}" in
11724 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11725 no) if test "${GCC}" = yes ; then
11726 WARN_CFLAGS="-w"
11727 fi;;
11728 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11729 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11730 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11731 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11732 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11733 esac
11734 fi
11735
11736
11737 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11738 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11739 fi
11740
11741
11742
11743
11744
11745 # Generate a header file
11746 ac_config_headers="$ac_config_headers config.h:config.in"
11747
11748
11749 # PR 14072
11750
11751
11752 # If we are on a DOS filesystem, we must use gdb.ini rather than
11753 # .gdbinit.
11754 case "${host}" in
11755 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11756 GDBINIT="gdb.ini"
11757 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11758
11759 ;;
11760 *)
11761 GDBINIT=".gdbinit"
11762 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11763
11764 ;;
11765 esac
11766
11767
11768 #We need this for the host. BOUT header is in host order.
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11770 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11771 if test "${ac_cv_c_bigendian+set}" = set; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 ac_cv_c_bigendian=unknown
11775 # See if we're dealing with a universal compiler.
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11778 #ifndef __APPLE_CC__
11779 not a universal capable compiler
11780 #endif
11781 typedef int dummy;
11782
11783 _ACEOF
11784 if ac_fn_c_try_compile "$LINENO"; then :
11785
11786 # Check for potential -arch flags. It is not universal unless
11787 # there are at least two -arch flags with different values.
11788 ac_arch=
11789 ac_prev=
11790 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11791 if test -n "$ac_prev"; then
11792 case $ac_word in
11793 i?86 | x86_64 | ppc | ppc64)
11794 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11795 ac_arch=$ac_word
11796 else
11797 ac_cv_c_bigendian=universal
11798 break
11799 fi
11800 ;;
11801 esac
11802 ac_prev=
11803 elif test "x$ac_word" = "x-arch"; then
11804 ac_prev=arch
11805 fi
11806 done
11807 fi
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 if test $ac_cv_c_bigendian = unknown; then
11810 # See if sys/param.h defines the BYTE_ORDER macro.
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11813 #include <sys/types.h>
11814 #include <sys/param.h>
11815
11816 int
11817 main ()
11818 {
11819 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11820 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11821 && LITTLE_ENDIAN)
11822 bogus endian macros
11823 #endif
11824
11825 ;
11826 return 0;
11827 }
11828 _ACEOF
11829 if ac_fn_c_try_compile "$LINENO"; then :
11830 # It does; now see whether it defined to BIG_ENDIAN or not.
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 #include <sys/types.h>
11834 #include <sys/param.h>
11835
11836 int
11837 main ()
11838 {
11839 #if BYTE_ORDER != BIG_ENDIAN
11840 not big endian
11841 #endif
11842
11843 ;
11844 return 0;
11845 }
11846 _ACEOF
11847 if ac_fn_c_try_compile "$LINENO"; then :
11848 ac_cv_c_bigendian=yes
11849 else
11850 ac_cv_c_bigendian=no
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 fi
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 fi
11856 if test $ac_cv_c_bigendian = unknown; then
11857 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860 #include <limits.h>
11861
11862 int
11863 main ()
11864 {
11865 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11866 bogus endian macros
11867 #endif
11868
11869 ;
11870 return 0;
11871 }
11872 _ACEOF
11873 if ac_fn_c_try_compile "$LINENO"; then :
11874 # It does; now see whether it defined to _BIG_ENDIAN or not.
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877 #include <limits.h>
11878
11879 int
11880 main ()
11881 {
11882 #ifndef _BIG_ENDIAN
11883 not big endian
11884 #endif
11885
11886 ;
11887 return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891 ac_cv_c_bigendian=yes
11892 else
11893 ac_cv_c_bigendian=no
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 fi
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 fi
11899 if test $ac_cv_c_bigendian = unknown; then
11900 # Compile a test program.
11901 if test "$cross_compiling" = yes; then :
11902 # Try to guess by grepping values from an object file.
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905 short int ascii_mm[] =
11906 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11907 short int ascii_ii[] =
11908 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11909 int use_ascii (int i) {
11910 return ascii_mm[i] + ascii_ii[i];
11911 }
11912 short int ebcdic_ii[] =
11913 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11914 short int ebcdic_mm[] =
11915 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11916 int use_ebcdic (int i) {
11917 return ebcdic_mm[i] + ebcdic_ii[i];
11918 }
11919 extern int foo;
11920
11921 int
11922 main ()
11923 {
11924 return use_ascii (foo) == use_ebcdic (foo);
11925 ;
11926 return 0;
11927 }
11928 _ACEOF
11929 if ac_fn_c_try_compile "$LINENO"; then :
11930 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11931 ac_cv_c_bigendian=yes
11932 fi
11933 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11934 if test "$ac_cv_c_bigendian" = unknown; then
11935 ac_cv_c_bigendian=no
11936 else
11937 # finding both strings is unlikely to happen, but who knows?
11938 ac_cv_c_bigendian=unknown
11939 fi
11940 fi
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11943 else
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11946 $ac_includes_default
11947 int
11948 main ()
11949 {
11950
11951 /* Are we little or big endian? From Harbison&Steele. */
11952 union
11953 {
11954 long int l;
11955 char c[sizeof (long int)];
11956 } u;
11957 u.l = 1;
11958 return u.c[sizeof (long int) - 1] == 1;
11959
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_c_try_run "$LINENO"; then :
11965 ac_cv_c_bigendian=no
11966 else
11967 ac_cv_c_bigendian=yes
11968 fi
11969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11970 conftest.$ac_objext conftest.beam conftest.$ac_ext
11971 fi
11972
11973 fi
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11976 $as_echo "$ac_cv_c_bigendian" >&6; }
11977 case $ac_cv_c_bigendian in #(
11978 yes)
11979 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11980 ;; #(
11981 no)
11982 ;; #(
11983 universal)
11984
11985 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11986
11987 ;; #(
11988 *)
11989 as_fn_error "unknown endianness
11990 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11991 esac
11992
11993
11994 te_file=generic
11995
11996 # Makefile target for installing gas in $(tooldir)/bin.
11997 install_tooldir=install-exec-tooldir
11998
11999 canon_targets=""
12000 all_targets=no
12001 if test -n "$enable_targets" ; then
12002 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12003 if test $t = "all"; then
12004 all_targets=yes
12005 continue
12006 fi
12007 result=`$ac_config_sub $t 2>/dev/null`
12008 if test -n "$result" ; then
12009 canon_targets="$canon_targets $result"
12010 # else
12011 # # Permit "all", etc. We don't support it yet though.
12012 # canon_targets="$canon_targets $t"
12013 fi
12014 done
12015 _gas_uniq_list="$canon_targets"
12016 _gas_uniq_newlist=""
12017 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12018 case $_gas_uniq_i in
12019 _gas_uniq_dummy) ;;
12020 *) case " $_gas_uniq_newlist " in
12021 *" $_gas_uniq_i "*) ;;
12022 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12023 esac ;;
12024 esac
12025 done
12026 canon_targets=$_gas_uniq_newlist
12027
12028 fi
12029
12030 emulations=""
12031
12032 for this_target in $target $canon_targets ; do
12033
12034 targ=${this_target}
12035 . ${srcdir}/configure.tgt
12036
12037 case ${target_cpu} in
12038 crisv32)
12039
12040 cat >>confdefs.h <<_ACEOF
12041 #define DEFAULT_CRIS_ARCH $arch
12042 _ACEOF
12043
12044 ;;
12045 esac
12046
12047 if test ${this_target} = $target ; then
12048 target_cpu_type=${cpu_type}
12049 elif test ${target_cpu_type} != ${cpu_type} ; then
12050 continue
12051 fi
12052
12053 generic_target=${cpu_type}-${target_vendor}-${target_os}
12054 case ${generic_target} in
12055 i386-*-sco3.2v5*)
12056 if test ${this_target} = $target; then
12057
12058 $as_echo "#define SCO_ELF 1" >>confdefs.h
12059
12060 fi
12061 ;;
12062
12063 i386-*-msdosdjgpp* \
12064 | i386-*-go32* \
12065 | i386-go32-rtems*)
12066
12067 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12068
12069 ;;
12070
12071 i860-*-*)
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12073 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12074 ;;
12075
12076 microblaze*)
12077 ;;
12078
12079 ppc-*-aix[5-9].*)
12080
12081 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12082
12083 ;;
12084 ppc-*-solaris*)
12085 if test ${this_target} = $target; then
12086
12087 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12088
12089 fi
12090 if test x${endian} = xbig; then
12091 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12092 fi
12093 ;;
12094
12095 sh*-*-symbianelf*)
12096
12097 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12098
12099 ;;
12100 esac
12101
12102 if test ${this_target} = $target ; then
12103 endian_def=
12104 if test x${endian} = xbig; then
12105 endian_def=1
12106 elif test x${endian} = xlittle; then
12107 endian_def=0
12108 fi
12109 if test x${endian_def} != x; then
12110
12111 cat >>confdefs.h <<_ACEOF
12112 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12113 _ACEOF
12114
12115 fi
12116 fi
12117
12118 # Other random stuff.
12119
12120 case ${cpu_type} in
12121 mips)
12122 # Set mips_cpu to the name of the default CPU.
12123 case ${target_cpu} in
12124 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12125 mips_cpu=from-abi
12126 ;;
12127 mipsisa32 | mipsisa32el)
12128 mips_cpu=mips32
12129 ;;
12130 mipsisa32r2 | mipsisa32r2el)
12131 mips_cpu=mips32r2
12132 ;;
12133 mipsisa32r3 | mipsisa32r3el)
12134 mips_cpu=mips32r3
12135 ;;
12136 mipsisa32r5 | mipsisa32r5el)
12137 mips_cpu=mips32r5
12138 ;;
12139 mipsisa32r6 | mipsisa32r6el)
12140 mips_cpu=mips32r6
12141 ;;
12142 mipsisa64 | mipsisa64el)
12143 mips_cpu=mips64
12144 ;;
12145 mipsisa64r2 | mipsisa64r2el)
12146 mips_cpu=mips64r2
12147 ;;
12148 mipsisa64r3 | mipsisa64r3el)
12149 mips_cpu=mips64r3
12150 ;;
12151 mipsisa64r5 | mipsisa64r5el)
12152 mips_cpu=mips64r5
12153 ;;
12154 mipsisa64r6 | mipsisa64r6el)
12155 mips_cpu=mips64r6
12156 ;;
12157 mipstx39 | mipstx39el)
12158 mips_cpu=r3900
12159 ;;
12160 mips64vr | mips64vrel)
12161 mips_cpu=vr4100
12162 ;;
12163 mipsisa32r2* | mipsisa64r2*)
12164 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12165 ;;
12166 mipsisa32r6* | mipsisa64r6*)
12167 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12168 ;;
12169 mips64* | mipsisa64* | mipsisa32*)
12170 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12171 ;;
12172 mips*)
12173 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12174 ;;
12175 *)
12176 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12177 ;;
12178 esac
12179 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12180 # binaries. It's a GNU extension that some OSes don't understand.
12181 case ${target} in
12182 *-*-irix*)
12183 use_e_mips_abi_o32=0
12184 ;;
12185 *)
12186 use_e_mips_abi_o32=1
12187 ;;
12188 esac
12189 # Decide whether to generate 32-bit or 64-bit code by default.
12190 # Used to resolve -march=from-abi when an embedded ABI is selected.
12191 case ${target} in
12192 mips64*-*-* | mipsisa64*-*-*)
12193 mips_default_64bit=1
12194 ;;
12195 *)
12196 mips_default_64bit=0
12197 ;;
12198 esac
12199 # Decide which ABI to target by default.
12200 case ${target} in
12201 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12202 mips_default_abi=N32_ABI
12203 ;;
12204 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12205 mips_default_abi=O32_ABI
12206 ;;
12207 mips64*-openbsd*)
12208 mips_default_abi=N64_ABI
12209 ;;
12210 *)
12211 mips_default_abi=NO_ABI
12212 ;;
12213 esac
12214
12215 cat >>confdefs.h <<_ACEOF
12216 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12217 _ACEOF
12218
12219
12220 cat >>confdefs.h <<_ACEOF
12221 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12222 _ACEOF
12223
12224
12225 cat >>confdefs.h <<_ACEOF
12226 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12227 _ACEOF
12228
12229
12230 cat >>confdefs.h <<_ACEOF
12231 #define MIPS_DEFAULT_ABI $mips_default_abi
12232 _ACEOF
12233
12234 ;;
12235 esac
12236
12237 # Do we need the opcodes library?
12238 case ${cpu_type} in
12239 vax | tic30)
12240 ;;
12241
12242 *)
12243 need_opcodes=yes
12244
12245 case "${enable_shared}" in
12246 yes) shared_opcodes=true ;;
12247 *opcodes*) shared_opcodes=true ;;
12248 *) shared_opcodes=false ;;
12249 esac
12250 ;;
12251 esac
12252
12253 # Any other special object files needed ?
12254 case ${cpu_type} in
12255
12256 bfin)
12257 echo ${extra_objects} | grep -s "bfin-parse.o"
12258 if test $? -ne 0 ; then
12259 extra_objects="$extra_objects bfin-parse.o"
12260 fi
12261
12262 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12263 if test $? -ne 0 ; then
12264 extra_objects="$extra_objects bfin-lex-wrapper.o"
12265 fi
12266 ;;
12267
12268 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12269 using_cgen=yes
12270 ;;
12271
12272 m32c)
12273 using_cgen=yes
12274 ;;
12275 frv)
12276 using_cgen=yes
12277 ;;
12278 m68k)
12279 case ${extra_objects} in
12280 *m68k-parse.o*) ;;
12281 *) extra_objects="$extra_objects m68k-parse.o" ;;
12282 esac
12283 ;;
12284
12285 mep)
12286 using_cgen=yes
12287 ;;
12288
12289 mips)
12290 echo ${extra_objects} | grep -s "itbl-parse.o"
12291 if test $? -ne 0 ; then
12292 extra_objects="$extra_objects itbl-parse.o"
12293 fi
12294
12295 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12296 if test $? -ne 0 ; then
12297 extra_objects="$extra_objects itbl-lex-wrapper.o"
12298 fi
12299
12300 echo ${extra_objects} | grep -s "itbl-ops.o"
12301 if test $? -ne 0 ; then
12302 extra_objects="$extra_objects itbl-ops.o"
12303 fi
12304 ;;
12305
12306 mt)
12307 using_cgen=yes
12308 ;;
12309
12310 nds32)
12311 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12312 # based on arch_name.
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12314 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12315 if test "x${with_arch}" != x; then
12316 case ${with_arch} in
12317 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12318
12319 cat >>confdefs.h <<_ACEOF
12320 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12321 _ACEOF
12322
12323 ;;
12324 *)
12325 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12326 ;;
12327 esac
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12330 $as_echo "$with_arch" >&6; }
12331
12332 # Decide features one by one.
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12334 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12335 if test "x${enable_dx_regs}" == xyes; then
12336
12337 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12338
12339 else
12340
12341 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12342
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12345 $as_echo "$enable_dx_regs" >&6; }
12346
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12348 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12349 if test "x${enable_perf_ext}" == xno; then
12350
12351 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12352
12353 else
12354
12355 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12356
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12359 $as_echo "$enable_perf_ext" >&6; }
12360
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12362 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12363 if test "x${enable_perf_ext2}" == xno; then
12364
12365 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12366
12367 else
12368
12369 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12370
12371 fi
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12373 $as_echo "$enable_perf_ext2" >&6; }
12374
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12376 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12377 if test "x${enable_string_ext}" == xno; then
12378
12379 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12380
12381 else
12382
12383 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12384
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12387 $as_echo "$enable_string_ext" >&6; }
12388
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12390 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12391 if test "x${enable_audio_ext}" == xno; then
12392
12393 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12394
12395 else
12396
12397 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12398
12399 fi
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12401 $as_echo "$enable_audio_ext" >&6; }
12402 ;;
12403
12404 i386 | s390 | sparc)
12405 if test $this_target = $target ; then
12406
12407 cat >>confdefs.h <<_ACEOF
12408 #define DEFAULT_ARCH "${arch}"
12409 _ACEOF
12410
12411 fi
12412 ;;
12413
12414 rl78)
12415 echo ${extra_objects} | grep -s "rl78-parse.o"
12416 if test $? -ne 0 ; then
12417 extra_objects="$extra_objects rl78-parse.o"
12418 fi
12419 ;;
12420
12421 rx)
12422 echo ${extra_objects} | grep -s "rx-parse.o"
12423 if test $? -ne 0 ; then
12424 extra_objects="$extra_objects rx-parse.o"
12425 fi
12426 ;;
12427
12428 xstormy16)
12429 using_cgen=yes
12430 ;;
12431
12432 xc16x)
12433 using_cgen=yes
12434 ;;
12435
12436 xtensa)
12437 echo ${extra_objects} | grep -s "xtensa-relax.o"
12438 if test $? -ne 0 ; then
12439 extra_objects="$extra_objects xtensa-relax.o"
12440 fi
12441 ;;
12442
12443 *)
12444 ;;
12445 esac
12446
12447 if test $using_cgen = yes ; then
12448 case "x${extra_objects}" in
12449 *cgen.o*) ;;
12450 *) extra_objects="$extra_objects cgen.o" ;;
12451 esac
12452 fi
12453
12454 # See if we really can support this configuration with the emulation code.
12455
12456 if test $this_target = $target ; then
12457 obj_format=$fmt
12458 te_file=$em
12459 fi
12460
12461 case ${te_file} in
12462 vms) extra_objects="$extra_objects te-vms.o" ;;
12463 esac
12464
12465 # From target name and format, produce a list of supported emulations.
12466
12467 case ${generic_target}-${fmt} in
12468 mips-*-*-*) case "$endian" in
12469 big) emulation="mipsbelf mipslelf mipself" ;;
12470 *) emulation="mipslelf mipsbelf mipself" ;;
12471 esac ;;
12472 # i386-pc-pe-coff != i386-pc-coff.
12473 i386-*-pe-coff) ;;
12474 # Uncommenting the next line will turn on support for i386 AOUT
12475 # for the default linux configuration
12476 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12477 #
12478 i386-*-aout) emulation="i386aout" ;;
12479 i386-*-coff) emulation="i386coff" ;;
12480 i386-*-elf) emulation="i386elf" ;;
12481
12482 # Always all formats. The first stated emulation becomes the default.
12483 cris-*-*aout*) emulation="crisaout criself" ;;
12484 cris-*-*) emulation="criself crisaout" ;;
12485 esac
12486
12487 emulations="$emulations $emulation"
12488
12489 done
12490
12491 # Turn on all targets if possible
12492 if test ${all_targets} = "yes"; then
12493 case ${target_cpu_type} in
12494 i386)
12495 case ${obj_format} in
12496 aout)
12497 emulations="$emulations i386coff i386elf"
12498 ;;
12499 coff)
12500 emulations="$emulations i386aout i386elf"
12501 ;;
12502 elf)
12503 emulations="$emulations i386aout i386coff"
12504 ;;
12505 esac
12506 ;;
12507 x86_64)
12508 case ${obj_format} in
12509 aout)
12510 emulations="$emulations i386coff i386elf"
12511 ;;
12512 coff)
12513 emulations="$emulations i386aout i386elf"
12514 ;;
12515 elf)
12516 emulations="$emulations i386aout i386coff"
12517 ;;
12518 esac
12519 ;;
12520 esac
12521 fi
12522
12523 # PE code has way too many macros tweaking behaviour
12524 case ${te_file} in
12525 pe*) emulations="" ;;
12526 esac
12527
12528 # Assign floating point type. Most processors with FP support
12529 # IEEE FP. On those that don't support FP at all, usually IEEE
12530 # is emulated.
12531 case ${target_cpu} in
12532 vax | pdp11 ) atof=vax ;;
12533 *) atof=ieee ;;
12534 esac
12535
12536 case "${obj_format}" in
12537 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12538 esac
12539
12540 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12541 cgen_cpu_prefix=""
12542 if test $using_cgen = yes ; then
12543 case ${target_cpu} in
12544 or1knd)
12545 cgen_cpu_prefix=or1k ;;
12546 *) cgen_cpu_prefix=${target_cpu} ;;
12547 esac
12548
12549
12550 $as_echo "#define USING_CGEN 1" >>confdefs.h
12551
12552 fi
12553
12554
12555 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12556 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12557 fi
12558
12559 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12560 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12561 fi
12562
12563 # Some COFF configurations want these random other flags set.
12564 case ${obj_format} in
12565 coff)
12566 case ${target_cpu_type} in
12567 i386)
12568 $as_echo "#define I386COFF 1" >>confdefs.h
12569 ;;
12570 m68k)
12571 $as_echo "#define M68KCOFF 1" >>confdefs.h
12572 ;;
12573 m88k)
12574 $as_echo "#define M88KCOFF 1" >>confdefs.h
12575 ;;
12576 x86_64)
12577 $as_echo "#define I386COFF 1" >>confdefs.h
12578 ;;
12579 esac
12580 ;;
12581 esac
12582
12583 # Getting this done right is going to be a bitch. Each configuration specified
12584 # with --enable-targets=... should be checked for environment, format, cpu
12585 # setting.
12586 #
12587 # For each configuration, the necessary object file support code must be linked
12588 # in. This might be only one, it might be up to four. The necessary emulation
12589 # code needs to be provided, too.
12590 #
12591 # And then there's "--enable-targets=all"....
12592 #
12593 # For now, just always do it for MIPS ELF configurations. Sigh.
12594
12595 formats="${obj_format}"
12596 emfiles=""
12597 EMULATIONS=""
12598 _gas_uniq_list="$emulations"
12599 _gas_uniq_newlist=""
12600 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12601 case $_gas_uniq_i in
12602 _gas_uniq_dummy) ;;
12603 *) case " $_gas_uniq_newlist " in
12604 *" $_gas_uniq_i "*) ;;
12605 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12606 esac ;;
12607 esac
12608 done
12609 emulations=$_gas_uniq_newlist
12610
12611 for em in . $emulations ; do
12612 case $em in
12613 .) continue ;;
12614 mipsbelf | mipslelf | mipself)
12615 fmt=elf file=mipself ;;
12616 *coff)
12617 fmt=coff file=$em ;;
12618 *aout)
12619 fmt=aout file=$em ;;
12620 *elf)
12621 fmt=elf file=$em ;;
12622 esac
12623 formats="$formats $fmt"
12624 emfiles="$emfiles e-$file.o"
12625 EMULATIONS="$EMULATIONS &$em,"
12626 done
12627 _gas_uniq_list="$formats"
12628 _gas_uniq_newlist=""
12629 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12630 case $_gas_uniq_i in
12631 _gas_uniq_dummy) ;;
12632 *) case " $_gas_uniq_newlist " in
12633 *" $_gas_uniq_i "*) ;;
12634 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12635 esac ;;
12636 esac
12637 done
12638 formats=$_gas_uniq_newlist
12639
12640 _gas_uniq_list="$emfiles"
12641 _gas_uniq_newlist=""
12642 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12643 case $_gas_uniq_i in
12644 _gas_uniq_dummy) ;;
12645 *) case " $_gas_uniq_newlist " in
12646 *" $_gas_uniq_i "*) ;;
12647 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12648 esac ;;
12649 esac
12650 done
12651 emfiles=$_gas_uniq_newlist
12652
12653 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12654 for fmt in $formats ; do
12655 case $fmt in
12656 aout)
12657 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12658 ;;
12659 bout)
12660 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12661 ;;
12662 coff)
12663 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12664 ;;
12665 ecoff)
12666 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12667 ;;
12668 elf)
12669 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12670 ;;
12671 generic)
12672 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12673 ;;
12674 som)
12675 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12676 ;;
12677 esac
12678 extra_objects="$extra_objects obj-$fmt.o"
12679 done
12680 obj_format=multi
12681 fi
12682 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12683 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12684 # e-mipself has more than one emulation per file, e-i386* has just one at the
12685 # moment. If only one emulation is specified, then don't define
12686 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12687 case "${obj_format}${emfiles}" in
12688 multi* | *mipself*)
12689 extra_objects="$extra_objects $emfiles"
12690
12691 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12692 ;;
12693 esac
12694 fi
12695
12696
12697 cat >>confdefs.h <<_ACEOF
12698 #define EMULATIONS $EMULATIONS
12699 _ACEOF
12700
12701
12702 cat >>confdefs.h <<_ACEOF
12703 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12704 _ACEOF
12705
12706
12707 reject_dev_configs=yes
12708
12709 case ${reject_dev_configs}-${dev} in
12710 yes-yes) # Oops.
12711 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12712 ;;
12713 esac
12714
12715
12716
12717
12718
12719
12720
12721 # do we need the opcodes library?
12722 case "${need_opcodes}" in
12723 yes)
12724 OPCODES_LIB=../opcodes/libopcodes.la
12725 ;;
12726 esac
12727
12728
12729
12730
12731 cat >>confdefs.h <<_ACEOF
12732 #define TARGET_ALIAS "${target_alias}"
12733 _ACEOF
12734
12735
12736 cat >>confdefs.h <<_ACEOF
12737 #define TARGET_CANONICAL "${target}"
12738 _ACEOF
12739
12740
12741 cat >>confdefs.h <<_ACEOF
12742 #define TARGET_CPU "${target_cpu}"
12743 _ACEOF
12744
12745
12746 cat >>confdefs.h <<_ACEOF
12747 #define TARGET_VENDOR "${target_vendor}"
12748 _ACEOF
12749
12750
12751 cat >>confdefs.h <<_ACEOF
12752 #define TARGET_OS "${target_os}"
12753 _ACEOF
12754
12755
12756 for ac_prog in 'bison -y' byacc
12757 do
12758 # Extract the first word of "$ac_prog", so it can be a program name with args.
12759 set dummy $ac_prog; ac_word=$2
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761 $as_echo_n "checking for $ac_word... " >&6; }
12762 if test "${ac_cv_prog_YACC+set}" = set; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765 if test -n "$YACC"; then
12766 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12767 else
12768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 for as_dir in $PATH
12770 do
12771 IFS=$as_save_IFS
12772 test -z "$as_dir" && as_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
12774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12775 ac_cv_prog_YACC="$ac_prog"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 break 2
12778 fi
12779 done
12780 done
12781 IFS=$as_save_IFS
12782
12783 fi
12784 fi
12785 YACC=$ac_cv_prog_YACC
12786 if test -n "$YACC"; then
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12788 $as_echo "$YACC" >&6; }
12789 else
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791 $as_echo "no" >&6; }
12792 fi
12793
12794
12795 test -n "$YACC" && break
12796 done
12797 test -n "$YACC" || YACC="yacc"
12798
12799 for ac_prog in flex lex
12800 do
12801 # Extract the first word of "$ac_prog", so it can be a program name with args.
12802 set dummy $ac_prog; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if test "${ac_cv_prog_LEX+set}" = set; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 if test -n "$LEX"; then
12809 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12810 else
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in $PATH
12813 do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12818 ac_cv_prog_LEX="$ac_prog"
12819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822 done
12823 done
12824 IFS=$as_save_IFS
12825
12826 fi
12827 fi
12828 LEX=$ac_cv_prog_LEX
12829 if test -n "$LEX"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12831 $as_echo "$LEX" >&6; }
12832 else
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834 $as_echo "no" >&6; }
12835 fi
12836
12837
12838 test -n "$LEX" && break
12839 done
12840 test -n "$LEX" || LEX=":"
12841
12842 if test "x$LEX" != "x:"; then
12843 cat >conftest.l <<_ACEOF
12844 %%
12845 a { ECHO; }
12846 b { REJECT; }
12847 c { yymore (); }
12848 d { yyless (1); }
12849 e { yyless (input () != 0); }
12850 f { unput (yytext[0]); }
12851 . { BEGIN INITIAL; }
12852 %%
12853 #ifdef YYTEXT_POINTER
12854 extern char *yytext;
12855 #endif
12856 int
12857 main (void)
12858 {
12859 return ! yylex () + ! yywrap ();
12860 }
12861 _ACEOF
12862 { { ac_try="$LEX conftest.l"
12863 case "(($ac_try" in
12864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12866 esac
12867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12868 $as_echo "$ac_try_echo"; } >&5
12869 (eval "$LEX conftest.l") 2>&5
12870 ac_status=$?
12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12872 test $ac_status = 0; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12874 $as_echo_n "checking lex output file root... " >&6; }
12875 if test "${ac_cv_prog_lex_root+set}" = set; then :
12876 $as_echo_n "(cached) " >&6
12877 else
12878
12879 if test -f lex.yy.c; then
12880 ac_cv_prog_lex_root=lex.yy
12881 elif test -f lexyy.c; then
12882 ac_cv_prog_lex_root=lexyy
12883 else
12884 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12885 fi
12886 fi
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12888 $as_echo "$ac_cv_prog_lex_root" >&6; }
12889 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12890
12891 if test -z "${LEXLIB+set}"; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12893 $as_echo_n "checking lex library... " >&6; }
12894 if test "${ac_cv_lib_lex+set}" = set; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897
12898 ac_save_LIBS=$LIBS
12899 ac_cv_lib_lex='none needed'
12900 for ac_lib in '' -lfl -ll; do
12901 LIBS="$ac_lib $ac_save_LIBS"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12904 `cat $LEX_OUTPUT_ROOT.c`
12905 _ACEOF
12906 if ac_fn_c_try_link "$LINENO"; then :
12907 ac_cv_lib_lex=$ac_lib
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911 test "$ac_cv_lib_lex" != 'none needed' && break
12912 done
12913 LIBS=$ac_save_LIBS
12914
12915 fi
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12917 $as_echo "$ac_cv_lib_lex" >&6; }
12918 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12919 fi
12920
12921
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12923 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12924 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 # POSIX says lex can declare yytext either as a pointer or an array; the
12928 # default is implementation-dependent. Figure out which it is, since
12929 # not all implementations provide the %pointer and %array declarations.
12930 ac_cv_prog_lex_yytext_pointer=no
12931 ac_save_LIBS=$LIBS
12932 LIBS="$LEXLIB $ac_save_LIBS"
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12935 #define YYTEXT_POINTER 1
12936 `cat $LEX_OUTPUT_ROOT.c`
12937 _ACEOF
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_prog_lex_yytext_pointer=yes
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext conftest.$ac_ext
12943 LIBS=$ac_save_LIBS
12944
12945 fi
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12947 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12948 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12949
12950 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12951
12952 fi
12953 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12954
12955 fi
12956 if test "$LEX" = :; then
12957 LEX=${am_missing_run}flex
12958 fi
12959
12960 ALL_LINGUAS="fr tr es rw id ru fi ja"
12961 # If we haven't got the data from the intl directory,
12962 # assume NLS is disabled.
12963 USE_NLS=no
12964 LIBINTL=
12965 LIBINTL_DEP=
12966 INCINTL=
12967 XGETTEXT=
12968 GMSGFMT=
12969 POSUB=
12970
12971 if test -f ../intl/config.intl; then
12972 . ../intl/config.intl
12973 fi
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12975 $as_echo_n "checking whether NLS is requested... " >&6; }
12976 if test x"$USE_NLS" != xyes; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978 $as_echo "no" >&6; }
12979 else
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12981 $as_echo "yes" >&6; }
12982
12983 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12984
12985
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12987 $as_echo_n "checking for catalogs to be installed... " >&6; }
12988 # Look for .po and .gmo files in the source directory.
12989 CATALOGS=
12990 XLINGUAS=
12991 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12992 # If there aren't any .gmo files the shell will give us the
12993 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12994 # weeded out.
12995 case "$cat" in *\**)
12996 continue;;
12997 esac
12998 # The quadruple backslash is collapsed to a double backslash
12999 # by the backticks, then collapsed again by the double quotes,
13000 # leaving us with one backslash in the sed expression (right
13001 # before the dot that mustn't act as a wildcard).
13002 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13003 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13004 # The user is allowed to set LINGUAS to a list of languages to
13005 # install catalogs for. If it's empty that means "all of them."
13006 if test "x$LINGUAS" = x; then
13007 CATALOGS="$CATALOGS $cat"
13008 XLINGUAS="$XLINGUAS $lang"
13009 else
13010 case "$LINGUAS" in *$lang*)
13011 CATALOGS="$CATALOGS $cat"
13012 XLINGUAS="$XLINGUAS $lang"
13013 ;;
13014 esac
13015 fi
13016 done
13017 LINGUAS="$XLINGUAS"
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13019 $as_echo "$LINGUAS" >&6; }
13020
13021
13022 DATADIRNAME=share
13023
13024 INSTOBJEXT=.mo
13025
13026 GENCAT=gencat
13027
13028 CATOBJEXT=.gmo
13029
13030 fi
13031
13032 MKINSTALLDIRS=
13033 if test -n "$ac_aux_dir"; then
13034 case "$ac_aux_dir" in
13035 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13036 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13037 esac
13038 fi
13039 if test -z "$MKINSTALLDIRS"; then
13040 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13041 fi
13042
13043
13044
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13046 $as_echo_n "checking whether NLS is requested... " >&6; }
13047 # Check whether --enable-nls was given.
13048 if test "${enable_nls+set}" = set; then :
13049 enableval=$enable_nls; USE_NLS=$enableval
13050 else
13051 USE_NLS=yes
13052 fi
13053
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13055 $as_echo "$USE_NLS" >&6; }
13056
13057
13058
13059
13060
13061
13062 # Prepare PATH_SEPARATOR.
13063 # The user is always right.
13064 if test "${PATH_SEPARATOR+set}" != set; then
13065 echo "#! /bin/sh" >conf$$.sh
13066 echo "exit 0" >>conf$$.sh
13067 chmod +x conf$$.sh
13068 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13069 PATH_SEPARATOR=';'
13070 else
13071 PATH_SEPARATOR=:
13072 fi
13073 rm -f conf$$.sh
13074 fi
13075
13076 # Find out how to test for executable files. Don't use a zero-byte file,
13077 # as systems may use methods other than mode bits to determine executability.
13078 cat >conf$$.file <<_ASEOF
13079 #! /bin/sh
13080 exit 0
13081 _ASEOF
13082 chmod +x conf$$.file
13083 if test -x conf$$.file >/dev/null 2>&1; then
13084 ac_executable_p="test -x"
13085 else
13086 ac_executable_p="test -f"
13087 fi
13088 rm -f conf$$.file
13089
13090 # Extract the first word of "msgfmt", so it can be a program name with args.
13091 set dummy msgfmt; ac_word=$2
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093 $as_echo_n "checking for $ac_word... " >&6; }
13094 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
13096 else
13097 case "$MSGFMT" in
13098 [\\/]* | ?:[\\/]*)
13099 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13100 ;;
13101 *)
13102 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13103 for ac_dir in $PATH; do
13104 IFS="$ac_save_IFS"
13105 test -z "$ac_dir" && ac_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13108 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13109 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13110 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13111 break 2
13112 fi
13113 fi
13114 done
13115 done
13116 IFS="$ac_save_IFS"
13117 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13118 ;;
13119 esac
13120 fi
13121 MSGFMT="$ac_cv_path_MSGFMT"
13122 if test "$MSGFMT" != ":"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13124 $as_echo "$MSGFMT" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128 fi
13129
13130 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13131 set dummy gmsgfmt; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13133 $as_echo_n "checking for $ac_word... " >&6; }
13134 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13135 $as_echo_n "(cached) " >&6
13136 else
13137 case $GMSGFMT in
13138 [\\/]* | ?:[\\/]*)
13139 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13140 ;;
13141 *)
13142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13143 for as_dir in $PATH
13144 do
13145 IFS=$as_save_IFS
13146 test -z "$as_dir" && as_dir=.
13147 for ac_exec_ext in '' $ac_executable_extensions; do
13148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13149 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13151 break 2
13152 fi
13153 done
13154 done
13155 IFS=$as_save_IFS
13156
13157 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13158 ;;
13159 esac
13160 fi
13161 GMSGFMT=$ac_cv_path_GMSGFMT
13162 if test -n "$GMSGFMT"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13164 $as_echo "$GMSGFMT" >&6; }
13165 else
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13168 fi
13169
13170
13171
13172
13173 # Prepare PATH_SEPARATOR.
13174 # The user is always right.
13175 if test "${PATH_SEPARATOR+set}" != set; then
13176 echo "#! /bin/sh" >conf$$.sh
13177 echo "exit 0" >>conf$$.sh
13178 chmod +x conf$$.sh
13179 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13180 PATH_SEPARATOR=';'
13181 else
13182 PATH_SEPARATOR=:
13183 fi
13184 rm -f conf$$.sh
13185 fi
13186
13187 # Find out how to test for executable files. Don't use a zero-byte file,
13188 # as systems may use methods other than mode bits to determine executability.
13189 cat >conf$$.file <<_ASEOF
13190 #! /bin/sh
13191 exit 0
13192 _ASEOF
13193 chmod +x conf$$.file
13194 if test -x conf$$.file >/dev/null 2>&1; then
13195 ac_executable_p="test -x"
13196 else
13197 ac_executable_p="test -f"
13198 fi
13199 rm -f conf$$.file
13200
13201 # Extract the first word of "xgettext", so it can be a program name with args.
13202 set dummy xgettext; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 case "$XGETTEXT" in
13209 [\\/]* | ?:[\\/]*)
13210 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13211 ;;
13212 *)
13213 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13214 for ac_dir in $PATH; do
13215 IFS="$ac_save_IFS"
13216 test -z "$ac_dir" && ac_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13219 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13220 (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
13221 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13222 break 2
13223 fi
13224 fi
13225 done
13226 done
13227 IFS="$ac_save_IFS"
13228 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13229 ;;
13230 esac
13231 fi
13232 XGETTEXT="$ac_cv_path_XGETTEXT"
13233 if test "$XGETTEXT" != ":"; then
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13235 $as_echo "$XGETTEXT" >&6; }
13236 else
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 fi
13240
13241 rm -f messages.po
13242
13243
13244 # Prepare PATH_SEPARATOR.
13245 # The user is always right.
13246 if test "${PATH_SEPARATOR+set}" != set; then
13247 echo "#! /bin/sh" >conf$$.sh
13248 echo "exit 0" >>conf$$.sh
13249 chmod +x conf$$.sh
13250 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13251 PATH_SEPARATOR=';'
13252 else
13253 PATH_SEPARATOR=:
13254 fi
13255 rm -f conf$$.sh
13256 fi
13257
13258 # Find out how to test for executable files. Don't use a zero-byte file,
13259 # as systems may use methods other than mode bits to determine executability.
13260 cat >conf$$.file <<_ASEOF
13261 #! /bin/sh
13262 exit 0
13263 _ASEOF
13264 chmod +x conf$$.file
13265 if test -x conf$$.file >/dev/null 2>&1; then
13266 ac_executable_p="test -x"
13267 else
13268 ac_executable_p="test -f"
13269 fi
13270 rm -f conf$$.file
13271
13272 # Extract the first word of "msgmerge", so it can be a program name with args.
13273 set dummy msgmerge; ac_word=$2
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 $as_echo_n "checking for $ac_word... " >&6; }
13276 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 case "$MSGMERGE" in
13280 [\\/]* | ?:[\\/]*)
13281 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13282 ;;
13283 *)
13284 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13285 for ac_dir in $PATH; do
13286 IFS="$ac_save_IFS"
13287 test -z "$ac_dir" && ac_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13290 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13291 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13292 break 2
13293 fi
13294 fi
13295 done
13296 done
13297 IFS="$ac_save_IFS"
13298 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13299 ;;
13300 esac
13301 fi
13302 MSGMERGE="$ac_cv_path_MSGMERGE"
13303 if test "$MSGMERGE" != ":"; then
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13305 $as_echo "$MSGMERGE" >&6; }
13306 else
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13309 fi
13310
13311
13312 if test "$GMSGFMT" != ":"; then
13313 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13314 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13315 : ;
13316 else
13317 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13319 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13320 GMSGFMT=":"
13321 fi
13322 fi
13323
13324 if test "$XGETTEXT" != ":"; then
13325 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13326 (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
13327 : ;
13328 else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13330 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13331 XGETTEXT=":"
13332 fi
13333 rm -f messages.po
13334 fi
13335
13336 ac_config_commands="$ac_config_commands default-1"
13337
13338
13339
13340
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13342 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13343 # Check whether --enable-maintainer-mode was given.
13344 if test "${enable_maintainer_mode+set}" = set; then :
13345 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13346 else
13347 USE_MAINTAINER_MODE=no
13348 fi
13349
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13351 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13352 if test $USE_MAINTAINER_MODE = yes; then
13353 MAINTAINER_MODE_TRUE=
13354 MAINTAINER_MODE_FALSE='#'
13355 else
13356 MAINTAINER_MODE_TRUE='#'
13357 MAINTAINER_MODE_FALSE=
13358 fi
13359
13360 MAINT=$MAINTAINER_MODE_TRUE
13361
13362
13363 if false; then
13364 GENINSRC_NEVER_TRUE=
13365 GENINSRC_NEVER_FALSE='#'
13366 else
13367 GENINSRC_NEVER_TRUE='#'
13368 GENINSRC_NEVER_FALSE=
13369 fi
13370
13371
13372
13373 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
13374 do :
13375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13376 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13377 eval as_val=\$$as_ac_Header
13378 if test "x$as_val" = x""yes; then :
13379 cat >>confdefs.h <<_ACEOF
13380 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13381 _ACEOF
13382
13383 fi
13384
13385 done
13386
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13388 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13389 if test "${gcc_cv_header_string+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
13391 else
13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13393 /* end confdefs.h. */
13394 #include <string.h>
13395 #include <strings.h>
13396 int
13397 main ()
13398 {
13399
13400 ;
13401 return 0;
13402 }
13403 _ACEOF
13404 if ac_fn_c_try_compile "$LINENO"; then :
13405 gcc_cv_header_string=yes
13406 else
13407 gcc_cv_header_string=no
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 fi
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13412 $as_echo "$gcc_cv_header_string" >&6; }
13413 if test $gcc_cv_header_string = yes; then
13414
13415 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13416
13417 fi
13418
13419
13420 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13421 # people who are not cross-compiling but are compiling cross-assemblers.
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13423 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13424 if test "${host}" = "${target}"; then
13425 cross_gas=no
13426 else
13427 cross_gas=yes
13428
13429 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13430
13431 fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13433 $as_echo "$cross_gas" >&6; }
13434
13435 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13436 # for constant arguments. Useless!
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13438 $as_echo_n "checking for working alloca.h... " >&6; }
13439 if test "${ac_cv_working_alloca_h+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13444 #include <alloca.h>
13445 int
13446 main ()
13447 {
13448 char *p = (char *) alloca (2 * sizeof (int));
13449 if (p) return 0;
13450 ;
13451 return 0;
13452 }
13453 _ACEOF
13454 if ac_fn_c_try_link "$LINENO"; then :
13455 ac_cv_working_alloca_h=yes
13456 else
13457 ac_cv_working_alloca_h=no
13458 fi
13459 rm -f core conftest.err conftest.$ac_objext \
13460 conftest$ac_exeext conftest.$ac_ext
13461 fi
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13463 $as_echo "$ac_cv_working_alloca_h" >&6; }
13464 if test $ac_cv_working_alloca_h = yes; then
13465
13466 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13467
13468 fi
13469
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13471 $as_echo_n "checking for alloca... " >&6; }
13472 if test "${ac_cv_func_alloca_works+set}" = set; then :
13473 $as_echo_n "(cached) " >&6
13474 else
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477 #ifdef __GNUC__
13478 # define alloca __builtin_alloca
13479 #else
13480 # ifdef _MSC_VER
13481 # include <malloc.h>
13482 # define alloca _alloca
13483 # else
13484 # ifdef HAVE_ALLOCA_H
13485 # include <alloca.h>
13486 # else
13487 # ifdef _AIX
13488 #pragma alloca
13489 # else
13490 # ifndef alloca /* predefined by HP cc +Olibcalls */
13491 char *alloca ();
13492 # endif
13493 # endif
13494 # endif
13495 # endif
13496 #endif
13497
13498 int
13499 main ()
13500 {
13501 char *p = (char *) alloca (1);
13502 if (p) return 0;
13503 ;
13504 return 0;
13505 }
13506 _ACEOF
13507 if ac_fn_c_try_link "$LINENO"; then :
13508 ac_cv_func_alloca_works=yes
13509 else
13510 ac_cv_func_alloca_works=no
13511 fi
13512 rm -f core conftest.err conftest.$ac_objext \
13513 conftest$ac_exeext conftest.$ac_ext
13514 fi
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13516 $as_echo "$ac_cv_func_alloca_works" >&6; }
13517
13518 if test $ac_cv_func_alloca_works = yes; then
13519
13520 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13521
13522 else
13523 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13524 # that cause trouble. Some versions do not even contain alloca or
13525 # contain a buggy version. If you still want to use their alloca,
13526 # use ar to extract alloca.o from them instead of compiling alloca.c.
13527
13528 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13529
13530 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13531
13532
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13534 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13535 if test "${ac_cv_os_cray+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540 #if defined CRAY && ! defined CRAY2
13541 webecray
13542 #else
13543 wenotbecray
13544 #endif
13545
13546 _ACEOF
13547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13548 $EGREP "webecray" >/dev/null 2>&1; then :
13549 ac_cv_os_cray=yes
13550 else
13551 ac_cv_os_cray=no
13552 fi
13553 rm -f conftest*
13554
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13557 $as_echo "$ac_cv_os_cray" >&6; }
13558 if test $ac_cv_os_cray = yes; then
13559 for ac_func in _getb67 GETB67 getb67; do
13560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13561 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13562 eval as_val=\$$as_ac_var
13563 if test "x$as_val" = x""yes; then :
13564
13565 cat >>confdefs.h <<_ACEOF
13566 #define CRAY_STACKSEG_END $ac_func
13567 _ACEOF
13568
13569 break
13570 fi
13571
13572 done
13573 fi
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13576 $as_echo_n "checking stack direction for C alloca... " >&6; }
13577 if test "${ac_cv_c_stack_direction+set}" = set; then :
13578 $as_echo_n "(cached) " >&6
13579 else
13580 if test "$cross_compiling" = yes; then :
13581 ac_cv_c_stack_direction=0
13582 else
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 $ac_includes_default
13586 int
13587 find_stack_direction ()
13588 {
13589 static char *addr = 0;
13590 auto char dummy;
13591 if (addr == 0)
13592 {
13593 addr = &dummy;
13594 return find_stack_direction ();
13595 }
13596 else
13597 return (&dummy > addr) ? 1 : -1;
13598 }
13599
13600 int
13601 main ()
13602 {
13603 return find_stack_direction () < 0;
13604 }
13605 _ACEOF
13606 if ac_fn_c_try_run "$LINENO"; then :
13607 ac_cv_c_stack_direction=1
13608 else
13609 ac_cv_c_stack_direction=-1
13610 fi
13611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13612 conftest.$ac_objext conftest.beam conftest.$ac_ext
13613 fi
13614
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13617 $as_echo "$ac_cv_c_stack_direction" >&6; }
13618 cat >>confdefs.h <<_ACEOF
13619 #define STACK_DIRECTION $ac_cv_c_stack_direction
13620 _ACEOF
13621
13622
13623 fi
13624
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13626 $as_echo_n "checking for inline... " >&6; }
13627 if test "${ac_cv_c_inline+set}" = set; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 ac_cv_c_inline=no
13631 for ac_kw in inline __inline__ __inline; do
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13634 #ifndef __cplusplus
13635 typedef int foo_t;
13636 static $ac_kw foo_t static_foo () {return 0; }
13637 $ac_kw foo_t foo () {return 0; }
13638 #endif
13639
13640 _ACEOF
13641 if ac_fn_c_try_compile "$LINENO"; then :
13642 ac_cv_c_inline=$ac_kw
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 test "$ac_cv_c_inline" != no && break
13646 done
13647
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13650 $as_echo "$ac_cv_c_inline" >&6; }
13651
13652 case $ac_cv_c_inline in
13653 inline | yes) ;;
13654 *)
13655 case $ac_cv_c_inline in
13656 no) ac_val=;;
13657 *) ac_val=$ac_cv_c_inline;;
13658 esac
13659 cat >>confdefs.h <<_ACEOF
13660 #ifndef __cplusplus
13661 #define inline $ac_val
13662 #endif
13663 _ACEOF
13664 ;;
13665 esac
13666
13667
13668 # VMS doesn't have unlink.
13669 for ac_func in unlink remove
13670 do :
13671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13672 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13673 eval as_val=\$$as_ac_var
13674 if test "x$as_val" = x""yes; then :
13675 cat >>confdefs.h <<_ACEOF
13676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13677 _ACEOF
13678 break
13679 fi
13680 done
13681
13682 for ac_func in sbrk setlocale
13683 do :
13684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13685 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13686 eval as_val=\$$as_ac_var
13687 if test "x$as_val" = x""yes; then :
13688 cat >>confdefs.h <<_ACEOF
13689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13690 _ACEOF
13691
13692 fi
13693 done
13694
13695
13696
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13698 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13699 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13704 #include <locale.h>
13705 int
13706 main ()
13707 {
13708 return LC_MESSAGES
13709 ;
13710 return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"; then :
13714 am_cv_val_LC_MESSAGES=yes
13715 else
13716 am_cv_val_LC_MESSAGES=no
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13720 fi
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13722 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13723 if test $am_cv_val_LC_MESSAGES = yes; then
13724
13725 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13726
13727 fi
13728
13729
13730 # do we need the math library?
13731 case "${need_libm}" in
13732 yes)
13733 LIBM=
13734 case $host in
13735 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13736 # These system don't have libm, or don't need it
13737 ;;
13738 *-ncr-sysv4.3*)
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13740 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13741 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13742 $as_echo_n "(cached) " >&6
13743 else
13744 ac_check_lib_save_LIBS=$LIBS
13745 LIBS="-lmw $LIBS"
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748
13749 /* Override any GCC internal prototype to avoid an error.
13750 Use char because int might match the return type of a GCC
13751 builtin and then its argument prototype would still apply. */
13752 #ifdef __cplusplus
13753 extern "C"
13754 #endif
13755 char _mwvalidcheckl ();
13756 int
13757 main ()
13758 {
13759 return _mwvalidcheckl ();
13760 ;
13761 return 0;
13762 }
13763 _ACEOF
13764 if ac_fn_c_try_link "$LINENO"; then :
13765 ac_cv_lib_mw__mwvalidcheckl=yes
13766 else
13767 ac_cv_lib_mw__mwvalidcheckl=no
13768 fi
13769 rm -f core conftest.err conftest.$ac_objext \
13770 conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_check_lib_save_LIBS
13772 fi
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13774 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13775 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13776 LIBM="-lmw"
13777 fi
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13780 $as_echo_n "checking for cos in -lm... " >&6; }
13781 if test "${ac_cv_lib_m_cos+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13783 else
13784 ac_check_lib_save_LIBS=$LIBS
13785 LIBS="-lm $LIBS"
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788
13789 /* Override any GCC internal prototype to avoid an error.
13790 Use char because int might match the return type of a GCC
13791 builtin and then its argument prototype would still apply. */
13792 #ifdef __cplusplus
13793 extern "C"
13794 #endif
13795 char cos ();
13796 int
13797 main ()
13798 {
13799 return cos ();
13800 ;
13801 return 0;
13802 }
13803 _ACEOF
13804 if ac_fn_c_try_link "$LINENO"; then :
13805 ac_cv_lib_m_cos=yes
13806 else
13807 ac_cv_lib_m_cos=no
13808 fi
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13811 LIBS=$ac_check_lib_save_LIBS
13812 fi
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13814 $as_echo "$ac_cv_lib_m_cos" >&6; }
13815 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13816 LIBM="$LIBM -lm"
13817 fi
13818
13819 ;;
13820 *)
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13822 $as_echo_n "checking for cos in -lm... " >&6; }
13823 if test "${ac_cv_lib_m_cos+set}" = set; then :
13824 $as_echo_n "(cached) " >&6
13825 else
13826 ac_check_lib_save_LIBS=$LIBS
13827 LIBS="-lm $LIBS"
13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13829 /* end confdefs.h. */
13830
13831 /* Override any GCC internal prototype to avoid an error.
13832 Use char because int might match the return type of a GCC
13833 builtin and then its argument prototype would still apply. */
13834 #ifdef __cplusplus
13835 extern "C"
13836 #endif
13837 char cos ();
13838 int
13839 main ()
13840 {
13841 return cos ();
13842 ;
13843 return 0;
13844 }
13845 _ACEOF
13846 if ac_fn_c_try_link "$LINENO"; then :
13847 ac_cv_lib_m_cos=yes
13848 else
13849 ac_cv_lib_m_cos=no
13850 fi
13851 rm -f core conftest.err conftest.$ac_objext \
13852 conftest$ac_exeext conftest.$ac_ext
13853 LIBS=$ac_check_lib_save_LIBS
13854 fi
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13856 $as_echo "$ac_cv_lib_m_cos" >&6; }
13857 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13858 LIBM="-lm"
13859 fi
13860
13861 ;;
13862 esac
13863
13864
13865
13866 ;;
13867 esac
13868
13869 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13870 # enough, but on some of those systems, the assert macro relies on requoting
13871 # working properly!
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13873 $as_echo_n "checking for working assert macro... " >&6; }
13874 if test "${gas_cv_assert_ok+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879 #include <assert.h>
13880 #include <stdio.h>
13881 int
13882 main ()
13883 {
13884
13885 /* check for requoting problems */
13886 static int a, b, c, d;
13887 static char *s;
13888 assert (!strcmp(s, "foo bar baz quux"));
13889 /* check for newline handling */
13890 assert (a == b
13891 || c == d);
13892
13893 ;
13894 return 0;
13895 }
13896 _ACEOF
13897 if ac_fn_c_try_link "$LINENO"; then :
13898 gas_cv_assert_ok=yes
13899 else
13900 gas_cv_assert_ok=no
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext \
13903 conftest$ac_exeext conftest.$ac_ext
13904 fi
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13906 $as_echo "$gas_cv_assert_ok" >&6; }
13907 test $gas_cv_assert_ok = yes ||
13908 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
13909
13910
13911
13912 # On some systems, the system header files may not declare malloc, realloc,
13913 # and free. There are places where gas needs these functions to have been
13914 # declared -- such as when taking their addresses.
13915 gas_test_headers="
13916 #ifdef HAVE_MEMORY_H
13917 #include <memory.h>
13918 #endif
13919 #ifdef HAVE_STRING_H
13920 #include <string.h>
13921 #else
13922 #ifdef HAVE_STRINGS_H
13923 #include <strings.h>
13924 #endif
13925 #endif
13926 #ifdef HAVE_STDLIB_H
13927 #include <stdlib.h>
13928 #endif
13929 #ifdef HAVE_UNISTD_H
13930 #include <unistd.h>
13931 #endif
13932 "
13933
13934 # Does errno.h declare errno, or do we have to add a separate declaration
13935 # for it?
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13938 $as_echo_n "checking whether declaration is required for errno... " >&6; }
13939 if test "${gas_cv_decl_needed_errno+set}" = set; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944
13945 #ifdef HAVE_ERRNO_H
13946 #include <errno.h>
13947 #endif
13948
13949 int
13950 main ()
13951 {
13952
13953 typedef int f;
13954 f x;
13955 x = (f) errno;
13956
13957 ;
13958 return 0;
13959 }
13960 _ACEOF
13961 if ac_fn_c_try_link "$LINENO"; then :
13962 gas_cv_decl_needed_errno=no
13963 else
13964 gas_cv_decl_needed_errno=yes
13965 fi
13966 rm -f core conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
13968 fi
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13970 $as_echo "$gas_cv_decl_needed_errno" >&6; }
13971 if test $gas_cv_decl_needed_errno = yes; then
13972
13973 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
13974
13975 fi
13976
13977
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13979 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13980 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13982 else
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 #include <unistd.h>
13986 int
13987 main ()
13988 {
13989 extern int getopt (int, char *const*, const char *);
13990 ;
13991 return 0;
13992 }
13993 _ACEOF
13994 if ac_fn_c_try_compile "$LINENO"; then :
13995 gas_cv_decl_getopt_unistd_h=yes
13996 else
13997 gas_cv_decl_getopt_unistd_h=no
13998 fi
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 fi
14001
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14003 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14004 if test $gas_cv_decl_getopt_unistd_h = yes; then
14005
14006 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14007
14008 fi
14009
14010
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14012 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14013 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14014 $as_echo_n "(cached) " >&6
14015 else
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018 $gas_test_headers
14019 int
14020 main ()
14021 {
14022
14023 typedef char **f;
14024 f x;
14025 x = (f) environ;
14026
14027 ;
14028 return 0;
14029 }
14030 _ACEOF
14031 if ac_fn_c_try_link "$LINENO"; then :
14032 gas_cv_decl_needed_environ=no
14033 else
14034 gas_cv_decl_needed_environ=yes
14035 fi
14036 rm -f core conftest.err conftest.$ac_objext \
14037 conftest$ac_exeext conftest.$ac_ext
14038 fi
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14040 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14041 if test $gas_cv_decl_needed_environ = yes; then
14042
14043 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14044
14045 fi
14046
14047
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14049 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14050 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 $gas_test_headers
14056 int
14057 main ()
14058 {
14059
14060 typedef int (*f)(int);
14061 f x;
14062 x = (f) ffs;
14063
14064 ;
14065 return 0;
14066 }
14067 _ACEOF
14068 if ac_fn_c_try_link "$LINENO"; then :
14069 gas_cv_decl_needed_ffs=no
14070 else
14071 gas_cv_decl_needed_ffs=yes
14072 fi
14073 rm -f core conftest.err conftest.$ac_objext \
14074 conftest$ac_exeext conftest.$ac_ext
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14077 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14078 if test $gas_cv_decl_needed_ffs = yes; then
14079
14080 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14081
14082 fi
14083
14084
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14086 $as_echo_n "checking whether declaration is required for free... " >&6; }
14087 if test "${gas_cv_decl_needed_free+set}" = set; then :
14088 $as_echo_n "(cached) " >&6
14089 else
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14092 $gas_test_headers
14093 int
14094 main ()
14095 {
14096
14097 typedef void (*f)();
14098 f x;
14099 x = (f) free;
14100
14101 ;
14102 return 0;
14103 }
14104 _ACEOF
14105 if ac_fn_c_try_link "$LINENO"; then :
14106 gas_cv_decl_needed_free=no
14107 else
14108 gas_cv_decl_needed_free=yes
14109 fi
14110 rm -f core conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14114 $as_echo "$gas_cv_decl_needed_free" >&6; }
14115 if test $gas_cv_decl_needed_free = yes; then
14116
14117 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14118
14119 fi
14120
14121
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14123 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14124 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14125 $as_echo_n "(cached) " >&6
14126 else
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h. */
14129 $gas_test_headers
14130 int
14131 main ()
14132 {
14133
14134 typedef char *(*f)();
14135 f x;
14136 x = (f) malloc;
14137
14138 ;
14139 return 0;
14140 }
14141 _ACEOF
14142 if ac_fn_c_try_link "$LINENO"; then :
14143 gas_cv_decl_needed_malloc=no
14144 else
14145 gas_cv_decl_needed_malloc=yes
14146 fi
14147 rm -f core conftest.err conftest.$ac_objext \
14148 conftest$ac_exeext conftest.$ac_ext
14149 fi
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14151 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14152 if test $gas_cv_decl_needed_malloc = yes; then
14153
14154 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14155
14156 fi
14157
14158
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14160 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14161 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14162 $as_echo_n "(cached) " >&6
14163 else
14164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h. */
14166 $gas_test_headers
14167 int
14168 main ()
14169 {
14170
14171 typedef char *(*f)();
14172 f x;
14173 x = (f) sbrk;
14174
14175 ;
14176 return 0;
14177 }
14178 _ACEOF
14179 if ac_fn_c_try_link "$LINENO"; then :
14180 gas_cv_decl_needed_sbrk=no
14181 else
14182 gas_cv_decl_needed_sbrk=yes
14183 fi
14184 rm -f core conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
14186 fi
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14188 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14189 if test $gas_cv_decl_needed_sbrk = yes; then
14190
14191 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14192
14193 fi
14194
14195
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14197 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14198 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14199 $as_echo_n "(cached) " >&6
14200 else
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14203 $gas_test_headers
14204 int
14205 main ()
14206 {
14207
14208 typedef char *(*f)();
14209 f x;
14210 x = (f) strstr;
14211
14212 ;
14213 return 0;
14214 }
14215 _ACEOF
14216 if ac_fn_c_try_link "$LINENO"; then :
14217 gas_cv_decl_needed_strstr=no
14218 else
14219 gas_cv_decl_needed_strstr=yes
14220 fi
14221 rm -f core conftest.err conftest.$ac_objext \
14222 conftest$ac_exeext conftest.$ac_ext
14223 fi
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14225 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14226 if test $gas_cv_decl_needed_strstr = yes; then
14227
14228 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14229
14230 fi
14231
14232
14233 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14234 if test "x$ac_cv_have_decl_free" = x""yes; then :
14235 ac_have_decl=1
14236 else
14237 ac_have_decl=0
14238 fi
14239
14240 cat >>confdefs.h <<_ACEOF
14241 #define HAVE_DECL_FREE $ac_have_decl
14242 _ACEOF
14243 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14244 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14245 ac_have_decl=1
14246 else
14247 ac_have_decl=0
14248 fi
14249
14250 cat >>confdefs.h <<_ACEOF
14251 #define HAVE_DECL_GETENV $ac_have_decl
14252 _ACEOF
14253 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14254 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14255 ac_have_decl=1
14256 else
14257 ac_have_decl=0
14258 fi
14259
14260 cat >>confdefs.h <<_ACEOF
14261 #define HAVE_DECL_MALLOC $ac_have_decl
14262 _ACEOF
14263 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14264 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14265 ac_have_decl=1
14266 else
14267 ac_have_decl=0
14268 fi
14269
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_DECL_MEMPCPY $ac_have_decl
14272 _ACEOF
14273 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14274 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14275 ac_have_decl=1
14276 else
14277 ac_have_decl=0
14278 fi
14279
14280 cat >>confdefs.h <<_ACEOF
14281 #define HAVE_DECL_REALLOC $ac_have_decl
14282 _ACEOF
14283 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14284 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14285 ac_have_decl=1
14286 else
14287 ac_have_decl=0
14288 fi
14289
14290 cat >>confdefs.h <<_ACEOF
14291 #define HAVE_DECL_STPCPY $ac_have_decl
14292 _ACEOF
14293 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14294 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14295 ac_have_decl=1
14296 else
14297 ac_have_decl=0
14298 fi
14299
14300 cat >>confdefs.h <<_ACEOF
14301 #define HAVE_DECL_STRSTR $ac_have_decl
14302 _ACEOF
14303 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14304 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14305 ac_have_decl=1
14306 else
14307 ac_have_decl=0
14308 fi
14309
14310 cat >>confdefs.h <<_ACEOF
14311 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14312 _ACEOF
14313
14314
14315
14316 case "${host}" in
14317 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14318
14319 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14320 ;;
14321 esac
14322
14323 # Use the system's zlib library.
14324 zlibinc="-I\$(srcdir)/../zlib"
14325
14326 # Check whether --with-system-zlib was given.
14327 if test "${with_system_zlib+set}" = set; then :
14328 withval=$with_system_zlib; zlibinc=
14329
14330 fi
14331
14332
14333
14334 # Support for VMS timestamps via cross compile
14335
14336 if test "$ac_cv_header_time_h" = yes; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14338 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14339 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14340 $as_echo_n "(cached) " >&6
14341 else
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344
14345 #define _BSD_SOURCE 1
14346 #include <time.h>
14347 int
14348 main ()
14349 {
14350 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14351 ;
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 gas_cv_have_time_type_member_tm_gmtoff=yes
14357 else
14358 gas_cv_have_time_type_member_tm_gmtoff=no
14359
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 fi
14363
14364 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14365
14366 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14367
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14370 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14371
14372 fi
14373
14374 if test "$ac_cv_header_sys_stat_h" = yes; then
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14376 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14377 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14378 $as_echo_n "(cached) " >&6
14379 else
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14382
14383 #define _BSD_SOURCE 1
14384 #include <sys/stat.h>
14385 int
14386 main ()
14387 {
14388 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14389 ;
14390 return 0;
14391 }
14392 _ACEOF
14393 if ac_fn_c_try_compile "$LINENO"; then :
14394 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14395 else
14396 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14397
14398 fi
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 fi
14401
14402 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14403
14404 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14405
14406 fi
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14408 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14409
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14411 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14412 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14413 $as_echo_n "(cached) " >&6
14414 else
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14417
14418 #define _BSD_SOURCE 1
14419 #include <sys/stat.h>
14420 int
14421 main ()
14422 {
14423 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14424 ;
14425 return 0;
14426 }
14427 _ACEOF
14428 if ac_fn_c_try_compile "$LINENO"; then :
14429 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14430 else
14431 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14432
14433 fi
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435 fi
14436
14437 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14438
14439 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14440
14441 fi
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14443 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14444
14445 fi
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14456
14457 ac_config_commands="$ac_config_commands default"
14458
14459
14460 cat >confcache <<\_ACEOF
14461 # This file is a shell script that caches the results of configure
14462 # tests run on this system so they can be shared between configure
14463 # scripts and configure runs, see configure's option --config-cache.
14464 # It is not useful on other systems. If it contains results you don't
14465 # want to keep, you may remove or edit it.
14466 #
14467 # config.status only pays attention to the cache file if you give it
14468 # the --recheck option to rerun configure.
14469 #
14470 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14471 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14472 # following values.
14473
14474 _ACEOF
14475
14476 # The following way of writing the cache mishandles newlines in values,
14477 # but we know of no workaround that is simple, portable, and efficient.
14478 # So, we kill variables containing newlines.
14479 # Ultrix sh set writes to stderr and can't be redirected directly,
14480 # and sets the high bit in the cache file unless we assign to the vars.
14481 (
14482 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14483 eval ac_val=\$$ac_var
14484 case $ac_val in #(
14485 *${as_nl}*)
14486 case $ac_var in #(
14487 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14488 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14489 esac
14490 case $ac_var in #(
14491 _ | IFS | as_nl) ;; #(
14492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14493 *) { eval $ac_var=; unset $ac_var;} ;;
14494 esac ;;
14495 esac
14496 done
14497
14498 (set) 2>&1 |
14499 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14500 *${as_nl}ac_space=\ *)
14501 # `set' does not quote correctly, so add quotes: double-quote
14502 # substitution turns \\\\ into \\, and sed turns \\ into \.
14503 sed -n \
14504 "s/'/'\\\\''/g;
14505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14506 ;; #(
14507 *)
14508 # `set' quotes correctly as required by POSIX, so do not add quotes.
14509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14510 ;;
14511 esac |
14512 sort
14513 ) |
14514 sed '
14515 /^ac_cv_env_/b end
14516 t clear
14517 :clear
14518 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14519 t end
14520 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14521 :end' >>confcache
14522 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14523 if test -w "$cache_file"; then
14524 test "x$cache_file" != "x/dev/null" &&
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14526 $as_echo "$as_me: updating cache $cache_file" >&6;}
14527 cat confcache >$cache_file
14528 else
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14530 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14531 fi
14532 fi
14533 rm -f confcache
14534
14535 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14536 # Let make expand exec_prefix.
14537 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14538
14539 DEFS=-DHAVE_CONFIG_H
14540
14541 ac_libobjs=
14542 ac_ltlibobjs=
14543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14544 # 1. Remove the extension, and $U if already installed.
14545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14548 # will be set to the directory where LIBOBJS objects are built.
14549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14551 done
14552 LIBOBJS=$ac_libobjs
14553
14554 LTLIBOBJS=$ac_ltlibobjs
14555
14556
14557 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14558 as_fn_error "conditional \"AMDEP\" was never defined.
14559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14560 fi
14561 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14562 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14564 fi
14565 if test -n "$EXEEXT"; then
14566 am__EXEEXT_TRUE=
14567 am__EXEEXT_FALSE='#'
14568 else
14569 am__EXEEXT_TRUE='#'
14570 am__EXEEXT_FALSE=
14571 fi
14572
14573
14574 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14575 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14577 fi
14578 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14579 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14581 fi
14582
14583 : ${CONFIG_STATUS=./config.status}
14584 ac_write_fail=0
14585 ac_clean_files_save=$ac_clean_files
14586 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14588 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14589 as_write_fail=0
14590 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14591 #! $SHELL
14592 # Generated by $as_me.
14593 # Run this file to recreate the current configuration.
14594 # Compiler output produced by configure, useful for debugging
14595 # configure, is in config.log if it exists.
14596
14597 debug=false
14598 ac_cs_recheck=false
14599 ac_cs_silent=false
14600
14601 SHELL=\${CONFIG_SHELL-$SHELL}
14602 export SHELL
14603 _ASEOF
14604 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14605 ## -------------------- ##
14606 ## M4sh Initialization. ##
14607 ## -------------------- ##
14608
14609 # Be more Bourne compatible
14610 DUALCASE=1; export DUALCASE # for MKS sh
14611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14612 emulate sh
14613 NULLCMD=:
14614 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14615 # is contrary to our usage. Disable this feature.
14616 alias -g '${1+"$@"}'='"$@"'
14617 setopt NO_GLOB_SUBST
14618 else
14619 case `(set -o) 2>/dev/null` in #(
14620 *posix*) :
14621 set -o posix ;; #(
14622 *) :
14623 ;;
14624 esac
14625 fi
14626
14627
14628 as_nl='
14629 '
14630 export as_nl
14631 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14632 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14633 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14634 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14635 # Prefer a ksh shell builtin over an external printf program on Solaris,
14636 # but without wasting forks for bash or zsh.
14637 if test -z "$BASH_VERSION$ZSH_VERSION" \
14638 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14639 as_echo='print -r --'
14640 as_echo_n='print -rn --'
14641 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14642 as_echo='printf %s\n'
14643 as_echo_n='printf %s'
14644 else
14645 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14646 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14647 as_echo_n='/usr/ucb/echo -n'
14648 else
14649 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14650 as_echo_n_body='eval
14651 arg=$1;
14652 case $arg in #(
14653 *"$as_nl"*)
14654 expr "X$arg" : "X\\(.*\\)$as_nl";
14655 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14656 esac;
14657 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14658 '
14659 export as_echo_n_body
14660 as_echo_n='sh -c $as_echo_n_body as_echo'
14661 fi
14662 export as_echo_body
14663 as_echo='sh -c $as_echo_body as_echo'
14664 fi
14665
14666 # The user is always right.
14667 if test "${PATH_SEPARATOR+set}" != set; then
14668 PATH_SEPARATOR=:
14669 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14670 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14671 PATH_SEPARATOR=';'
14672 }
14673 fi
14674
14675
14676 # IFS
14677 # We need space, tab and new line, in precisely that order. Quoting is
14678 # there to prevent editors from complaining about space-tab.
14679 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14680 # splitting by setting IFS to empty value.)
14681 IFS=" "" $as_nl"
14682
14683 # Find who we are. Look in the path if we contain no directory separator.
14684 case $0 in #((
14685 *[\\/]* ) as_myself=$0 ;;
14686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687 for as_dir in $PATH
14688 do
14689 IFS=$as_save_IFS
14690 test -z "$as_dir" && as_dir=.
14691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14692 done
14693 IFS=$as_save_IFS
14694
14695 ;;
14696 esac
14697 # We did not find ourselves, most probably we were run as `sh COMMAND'
14698 # in which case we are not to be found in the path.
14699 if test "x$as_myself" = x; then
14700 as_myself=$0
14701 fi
14702 if test ! -f "$as_myself"; then
14703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14704 exit 1
14705 fi
14706
14707 # Unset variables that we do not need and which cause bugs (e.g. in
14708 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14709 # suppresses any "Segmentation fault" message there. '((' could
14710 # trigger a bug in pdksh 5.2.14.
14711 for as_var in BASH_ENV ENV MAIL MAILPATH
14712 do eval test x\${$as_var+set} = xset \
14713 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14714 done
14715 PS1='$ '
14716 PS2='> '
14717 PS4='+ '
14718
14719 # NLS nuisances.
14720 LC_ALL=C
14721 export LC_ALL
14722 LANGUAGE=C
14723 export LANGUAGE
14724
14725 # CDPATH.
14726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14727
14728
14729 # as_fn_error ERROR [LINENO LOG_FD]
14730 # ---------------------------------
14731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14733 # script with status $?, using 1 if that was 0.
14734 as_fn_error ()
14735 {
14736 as_status=$?; test $as_status -eq 0 && as_status=1
14737 if test "$3"; then
14738 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14740 fi
14741 $as_echo "$as_me: error: $1" >&2
14742 as_fn_exit $as_status
14743 } # as_fn_error
14744
14745
14746 # as_fn_set_status STATUS
14747 # -----------------------
14748 # Set $? to STATUS, without forking.
14749 as_fn_set_status ()
14750 {
14751 return $1
14752 } # as_fn_set_status
14753
14754 # as_fn_exit STATUS
14755 # -----------------
14756 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14757 as_fn_exit ()
14758 {
14759 set +e
14760 as_fn_set_status $1
14761 exit $1
14762 } # as_fn_exit
14763
14764 # as_fn_unset VAR
14765 # ---------------
14766 # Portably unset VAR.
14767 as_fn_unset ()
14768 {
14769 { eval $1=; unset $1;}
14770 }
14771 as_unset=as_fn_unset
14772 # as_fn_append VAR VALUE
14773 # ----------------------
14774 # Append the text in VALUE to the end of the definition contained in VAR. Take
14775 # advantage of any shell optimizations that allow amortized linear growth over
14776 # repeated appends, instead of the typical quadratic growth present in naive
14777 # implementations.
14778 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14779 eval 'as_fn_append ()
14780 {
14781 eval $1+=\$2
14782 }'
14783 else
14784 as_fn_append ()
14785 {
14786 eval $1=\$$1\$2
14787 }
14788 fi # as_fn_append
14789
14790 # as_fn_arith ARG...
14791 # ------------------
14792 # Perform arithmetic evaluation on the ARGs, and store the result in the
14793 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14794 # must be portable across $(()) and expr.
14795 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14796 eval 'as_fn_arith ()
14797 {
14798 as_val=$(( $* ))
14799 }'
14800 else
14801 as_fn_arith ()
14802 {
14803 as_val=`expr "$@" || test $? -eq 1`
14804 }
14805 fi # as_fn_arith
14806
14807
14808 if expr a : '\(a\)' >/dev/null 2>&1 &&
14809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14810 as_expr=expr
14811 else
14812 as_expr=false
14813 fi
14814
14815 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14816 as_basename=basename
14817 else
14818 as_basename=false
14819 fi
14820
14821 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14822 as_dirname=dirname
14823 else
14824 as_dirname=false
14825 fi
14826
14827 as_me=`$as_basename -- "$0" ||
14828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14829 X"$0" : 'X\(//\)$' \| \
14830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14831 $as_echo X/"$0" |
14832 sed '/^.*\/\([^/][^/]*\)\/*$/{
14833 s//\1/
14834 q
14835 }
14836 /^X\/\(\/\/\)$/{
14837 s//\1/
14838 q
14839 }
14840 /^X\/\(\/\).*/{
14841 s//\1/
14842 q
14843 }
14844 s/.*/./; q'`
14845
14846 # Avoid depending upon Character Ranges.
14847 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14848 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14849 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14850 as_cr_digits='0123456789'
14851 as_cr_alnum=$as_cr_Letters$as_cr_digits
14852
14853 ECHO_C= ECHO_N= ECHO_T=
14854 case `echo -n x` in #(((((
14855 -n*)
14856 case `echo 'xy\c'` in
14857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14858 xy) ECHO_C='\c';;
14859 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14860 ECHO_T=' ';;
14861 esac;;
14862 *)
14863 ECHO_N='-n';;
14864 esac
14865
14866 rm -f conf$$ conf$$.exe conf$$.file
14867 if test -d conf$$.dir; then
14868 rm -f conf$$.dir/conf$$.file
14869 else
14870 rm -f conf$$.dir
14871 mkdir conf$$.dir 2>/dev/null
14872 fi
14873 if (echo >conf$$.file) 2>/dev/null; then
14874 if ln -s conf$$.file conf$$ 2>/dev/null; then
14875 as_ln_s='ln -s'
14876 # ... but there are two gotchas:
14877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14879 # In both cases, we have to default to `cp -p'.
14880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14881 as_ln_s='cp -p'
14882 elif ln conf$$.file conf$$ 2>/dev/null; then
14883 as_ln_s=ln
14884 else
14885 as_ln_s='cp -p'
14886 fi
14887 else
14888 as_ln_s='cp -p'
14889 fi
14890 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14891 rmdir conf$$.dir 2>/dev/null
14892
14893
14894 # as_fn_mkdir_p
14895 # -------------
14896 # Create "$as_dir" as a directory, including parents if necessary.
14897 as_fn_mkdir_p ()
14898 {
14899
14900 case $as_dir in #(
14901 -*) as_dir=./$as_dir;;
14902 esac
14903 test -d "$as_dir" || eval $as_mkdir_p || {
14904 as_dirs=
14905 while :; do
14906 case $as_dir in #(
14907 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14908 *) as_qdir=$as_dir;;
14909 esac
14910 as_dirs="'$as_qdir' $as_dirs"
14911 as_dir=`$as_dirname -- "$as_dir" ||
14912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14913 X"$as_dir" : 'X\(//\)[^/]' \| \
14914 X"$as_dir" : 'X\(//\)$' \| \
14915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14916 $as_echo X"$as_dir" |
14917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14918 s//\1/
14919 q
14920 }
14921 /^X\(\/\/\)[^/].*/{
14922 s//\1/
14923 q
14924 }
14925 /^X\(\/\/\)$/{
14926 s//\1/
14927 q
14928 }
14929 /^X\(\/\).*/{
14930 s//\1/
14931 q
14932 }
14933 s/.*/./; q'`
14934 test -d "$as_dir" && break
14935 done
14936 test -z "$as_dirs" || eval "mkdir $as_dirs"
14937 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14938
14939
14940 } # as_fn_mkdir_p
14941 if mkdir -p . 2>/dev/null; then
14942 as_mkdir_p='mkdir -p "$as_dir"'
14943 else
14944 test -d ./-p && rmdir ./-p
14945 as_mkdir_p=false
14946 fi
14947
14948 if test -x / >/dev/null 2>&1; then
14949 as_test_x='test -x'
14950 else
14951 if ls -dL / >/dev/null 2>&1; then
14952 as_ls_L_option=L
14953 else
14954 as_ls_L_option=
14955 fi
14956 as_test_x='
14957 eval sh -c '\''
14958 if test -d "$1"; then
14959 test -d "$1/.";
14960 else
14961 case $1 in #(
14962 -*)set "./$1";;
14963 esac;
14964 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14965 ???[sx]*):;;*)false;;esac;fi
14966 '\'' sh
14967 '
14968 fi
14969 as_executable_p=$as_test_x
14970
14971 # Sed expression to map a string onto a valid CPP name.
14972 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14973
14974 # Sed expression to map a string onto a valid variable name.
14975 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14976
14977
14978 exec 6>&1
14979 ## ----------------------------------- ##
14980 ## Main body of $CONFIG_STATUS script. ##
14981 ## ----------------------------------- ##
14982 _ASEOF
14983 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14984
14985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14986 # Save the log message, to keep $0 and so on meaningful, and to
14987 # report actual input values of CONFIG_FILES etc. instead of their
14988 # values after options handling.
14989 ac_log="
14990 This file was extended by gas $as_me 2.25.51, which was
14991 generated by GNU Autoconf 2.64. Invocation command line was
14992
14993 CONFIG_FILES = $CONFIG_FILES
14994 CONFIG_HEADERS = $CONFIG_HEADERS
14995 CONFIG_LINKS = $CONFIG_LINKS
14996 CONFIG_COMMANDS = $CONFIG_COMMANDS
14997 $ $0 $@
14998
14999 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15000 "
15001
15002 _ACEOF
15003
15004 case $ac_config_files in *"
15005 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15006 esac
15007
15008 case $ac_config_headers in *"
15009 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15010 esac
15011
15012
15013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15014 # Files that config.status was made for.
15015 config_files="$ac_config_files"
15016 config_headers="$ac_config_headers"
15017 config_commands="$ac_config_commands"
15018
15019 _ACEOF
15020
15021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15022 ac_cs_usage="\
15023 \`$as_me' instantiates files and other configuration actions
15024 from templates according to the current configuration. Unless the files
15025 and actions are specified as TAGs, all are instantiated by default.
15026
15027 Usage: $0 [OPTION]... [TAG]...
15028
15029 -h, --help print this help, then exit
15030 -V, --version print version number and configuration settings, then exit
15031 -q, --quiet, --silent
15032 do not print progress messages
15033 -d, --debug don't remove temporary files
15034 --recheck update $as_me by reconfiguring in the same conditions
15035 --file=FILE[:TEMPLATE]
15036 instantiate the configuration file FILE
15037 --header=FILE[:TEMPLATE]
15038 instantiate the configuration header FILE
15039
15040 Configuration files:
15041 $config_files
15042
15043 Configuration headers:
15044 $config_headers
15045
15046 Configuration commands:
15047 $config_commands
15048
15049 Report bugs to the package provider."
15050
15051 _ACEOF
15052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15053 ac_cs_version="\\
15054 gas config.status 2.25.51
15055 configured by $0, generated by GNU Autoconf 2.64,
15056 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15057
15058 Copyright (C) 2009 Free Software Foundation, Inc.
15059 This config.status script is free software; the Free Software Foundation
15060 gives unlimited permission to copy, distribute and modify it."
15061
15062 ac_pwd='$ac_pwd'
15063 srcdir='$srcdir'
15064 INSTALL='$INSTALL'
15065 MKDIR_P='$MKDIR_P'
15066 AWK='$AWK'
15067 test -n "\$AWK" || AWK=awk
15068 _ACEOF
15069
15070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15071 # The default lists apply if the user does not specify any file.
15072 ac_need_defaults=:
15073 while test $# != 0
15074 do
15075 case $1 in
15076 --*=*)
15077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15078 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15079 ac_shift=:
15080 ;;
15081 *)
15082 ac_option=$1
15083 ac_optarg=$2
15084 ac_shift=shift
15085 ;;
15086 esac
15087
15088 case $ac_option in
15089 # Handling of the options.
15090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15091 ac_cs_recheck=: ;;
15092 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15093 $as_echo "$ac_cs_version"; exit ;;
15094 --debug | --debu | --deb | --de | --d | -d )
15095 debug=: ;;
15096 --file | --fil | --fi | --f )
15097 $ac_shift
15098 case $ac_optarg in
15099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15100 esac
15101 as_fn_append CONFIG_FILES " '$ac_optarg'"
15102 ac_need_defaults=false;;
15103 --header | --heade | --head | --hea )
15104 $ac_shift
15105 case $ac_optarg in
15106 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15107 esac
15108 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15109 ac_need_defaults=false;;
15110 --he | --h)
15111 # Conflict between --help and --header
15112 as_fn_error "ambiguous option: \`$1'
15113 Try \`$0 --help' for more information.";;
15114 --help | --hel | -h )
15115 $as_echo "$ac_cs_usage"; exit ;;
15116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15117 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15118 ac_cs_silent=: ;;
15119
15120 # This is an error.
15121 -*) as_fn_error "unrecognized option: \`$1'
15122 Try \`$0 --help' for more information." ;;
15123
15124 *) as_fn_append ac_config_targets " $1"
15125 ac_need_defaults=false ;;
15126
15127 esac
15128 shift
15129 done
15130
15131 ac_configure_extra_args=
15132
15133 if $ac_cs_silent; then
15134 exec 6>/dev/null
15135 ac_configure_extra_args="$ac_configure_extra_args --silent"
15136 fi
15137
15138 _ACEOF
15139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15140 if \$ac_cs_recheck; then
15141 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15142 shift
15143 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15144 CONFIG_SHELL='$SHELL'
15145 export CONFIG_SHELL
15146 exec "\$@"
15147 fi
15148
15149 _ACEOF
15150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15151 exec 5>>config.log
15152 {
15153 echo
15154 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15155 ## Running $as_me. ##
15156 _ASBOX
15157 $as_echo "$ac_log"
15158 } >&5
15159
15160 _ACEOF
15161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15162 #
15163 # INIT-COMMANDS
15164 #
15165 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15166
15167
15168 # The HP-UX ksh and POSIX shell print the target directory to stdout
15169 # if CDPATH is set.
15170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15171
15172 sed_quote_subst='$sed_quote_subst'
15173 double_quote_subst='$double_quote_subst'
15174 delay_variable_subst='$delay_variable_subst'
15175 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15176 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15177 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15178 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15179 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15180 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15181 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15182 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15183 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15184 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15185 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15186 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15187 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15188 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15189 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15190 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15191 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15192 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15193 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15194 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15195 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15196 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15197 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15198 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15199 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15200 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15201 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15202 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15203 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15204 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15205 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15206 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15207 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15208 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15209 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15210 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15211 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15212 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15213 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15214 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15215 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15216 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15217 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15218 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15219 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15220 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15221 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15222 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15223 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"`'
15224 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15225 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15226 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15227 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15228 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15229 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15230 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15231 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15232 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15233 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15234 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15235 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15236 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15237 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15238 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15239 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15240 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15241 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15242 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15243 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15244 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15245 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15246 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15247 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15248 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15249 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15250 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15251 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15252 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15253 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15254 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15255 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15256 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15257 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15258 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15259 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15260 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15261 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15262 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15263 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15264 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15265 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15266 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15267 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15268 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15269 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15270 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15271 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15272 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15273 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15274 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15275 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15276 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15277 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15278 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15279 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15280 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15281 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15282 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15283 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15284 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15285 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15286 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15287 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15288 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15289 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15290 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15291 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15292 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15293 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15294 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15295
15296 LTCC='$LTCC'
15297 LTCFLAGS='$LTCFLAGS'
15298 compiler='$compiler_DEFAULT'
15299
15300 # A function that is used when there is no print builtin or printf.
15301 func_fallback_echo ()
15302 {
15303 eval 'cat <<_LTECHO_EOF
15304 \$1
15305 _LTECHO_EOF'
15306 }
15307
15308 # Quote evaled strings.
15309 for var in SHELL \
15310 ECHO \
15311 SED \
15312 GREP \
15313 EGREP \
15314 FGREP \
15315 LD \
15316 NM \
15317 LN_S \
15318 lt_SP2NL \
15319 lt_NL2SP \
15320 reload_flag \
15321 OBJDUMP \
15322 deplibs_check_method \
15323 file_magic_cmd \
15324 AR \
15325 AR_FLAGS \
15326 STRIP \
15327 RANLIB \
15328 CC \
15329 CFLAGS \
15330 compiler \
15331 lt_cv_sys_global_symbol_pipe \
15332 lt_cv_sys_global_symbol_to_cdecl \
15333 lt_cv_sys_global_symbol_to_c_name_address \
15334 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15335 lt_prog_compiler_no_builtin_flag \
15336 lt_prog_compiler_wl \
15337 lt_prog_compiler_pic \
15338 lt_prog_compiler_static \
15339 lt_cv_prog_compiler_c_o \
15340 need_locks \
15341 DSYMUTIL \
15342 NMEDIT \
15343 LIPO \
15344 OTOOL \
15345 OTOOL64 \
15346 shrext_cmds \
15347 export_dynamic_flag_spec \
15348 whole_archive_flag_spec \
15349 compiler_needs_object \
15350 with_gnu_ld \
15351 allow_undefined_flag \
15352 no_undefined_flag \
15353 hardcode_libdir_flag_spec \
15354 hardcode_libdir_flag_spec_ld \
15355 hardcode_libdir_separator \
15356 fix_srcfile_path \
15357 exclude_expsyms \
15358 include_expsyms \
15359 file_list_spec \
15360 variables_saved_for_relink \
15361 libname_spec \
15362 library_names_spec \
15363 soname_spec \
15364 install_override_mode \
15365 finish_eval \
15366 old_striplib \
15367 striplib; do
15368 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15369 *[\\\\\\\`\\"\\\$]*)
15370 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15371 ;;
15372 *)
15373 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15374 ;;
15375 esac
15376 done
15377
15378 # Double-quote double-evaled strings.
15379 for var in reload_cmds \
15380 old_postinstall_cmds \
15381 old_postuninstall_cmds \
15382 old_archive_cmds \
15383 extract_expsyms_cmds \
15384 old_archive_from_new_cmds \
15385 old_archive_from_expsyms_cmds \
15386 archive_cmds \
15387 archive_expsym_cmds \
15388 module_cmds \
15389 module_expsym_cmds \
15390 export_symbols_cmds \
15391 prelink_cmds \
15392 postinstall_cmds \
15393 postuninstall_cmds \
15394 finish_cmds \
15395 sys_lib_search_path_spec \
15396 sys_lib_dlsearch_path_spec; do
15397 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15398 *[\\\\\\\`\\"\\\$]*)
15399 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15400 ;;
15401 *)
15402 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15403 ;;
15404 esac
15405 done
15406
15407 ac_aux_dir='$ac_aux_dir'
15408 xsi_shell='$xsi_shell'
15409 lt_shell_append='$lt_shell_append'
15410
15411 # See if we are running on zsh, and set the options which allow our
15412 # commands through without removal of \ escapes INIT.
15413 if test -n "\${ZSH_VERSION+set}" ; then
15414 setopt NO_GLOB_SUBST
15415 fi
15416
15417
15418 PACKAGE='$PACKAGE'
15419 VERSION='$VERSION'
15420 TIMESTAMP='$TIMESTAMP'
15421 RM='$RM'
15422 ofile='$ofile'
15423
15424
15425
15426 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15427 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15428 # from automake.
15429 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15430 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15431 LINGUAS="${LINGUAS-%UNSET%}"
15432
15433 target_cpu_type=${target_cpu_type}
15434 cgen_cpu_prefix=${cgen_cpu_prefix}
15435 obj_format=${obj_format}
15436 te_file=${te_file}
15437
15438 _ACEOF
15439
15440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15441
15442 # Handling of arguments.
15443 for ac_config_target in $ac_config_targets
15444 do
15445 case $ac_config_target in
15446 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15447 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15448 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15449 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15450 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15451 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15452 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15453 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15454 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15455 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15456
15457 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15458 esac
15459 done
15460
15461
15462 # If the user did not use the arguments to specify the items to instantiate,
15463 # then the envvar interface is used. Set only those that are not.
15464 # We use the long form for the default assignment because of an extremely
15465 # bizarre bug on SunOS 4.1.3.
15466 if $ac_need_defaults; then
15467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15468 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15469 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15470 fi
15471
15472 # Have a temporary directory for convenience. Make it in the build tree
15473 # simply because there is no reason against having it here, and in addition,
15474 # creating and moving files from /tmp can sometimes cause problems.
15475 # Hook for its removal unless debugging.
15476 # Note that there is a small window in which the directory will not be cleaned:
15477 # after its creation but before its name has been assigned to `$tmp'.
15478 $debug ||
15479 {
15480 tmp=
15481 trap 'exit_status=$?
15482 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15483 ' 0
15484 trap 'as_fn_exit 1' 1 2 13 15
15485 }
15486 # Create a (secure) tmp directory for tmp files.
15487
15488 {
15489 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15490 test -n "$tmp" && test -d "$tmp"
15491 } ||
15492 {
15493 tmp=./conf$$-$RANDOM
15494 (umask 077 && mkdir "$tmp")
15495 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15496
15497 # Set up the scripts for CONFIG_FILES section.
15498 # No need to generate them if there are no CONFIG_FILES.
15499 # This happens for instance with `./config.status config.h'.
15500 if test -n "$CONFIG_FILES"; then
15501
15502
15503 ac_cr=`echo X | tr X '\015'`
15504 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15505 # But we know of no other shell where ac_cr would be empty at this
15506 # point, so we can use a bashism as a fallback.
15507 if test "x$ac_cr" = x; then
15508 eval ac_cr=\$\'\\r\'
15509 fi
15510 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15511 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15512 ac_cs_awk_cr='\r'
15513 else
15514 ac_cs_awk_cr=$ac_cr
15515 fi
15516
15517 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15518 _ACEOF
15519
15520
15521 {
15522 echo "cat >conf$$subs.awk <<_ACEOF" &&
15523 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15524 echo "_ACEOF"
15525 } >conf$$subs.sh ||
15526 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15527 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15528 ac_delim='%!_!# '
15529 for ac_last_try in false false false false false :; do
15530 . ./conf$$subs.sh ||
15531 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15532
15533 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15534 if test $ac_delim_n = $ac_delim_num; then
15535 break
15536 elif $ac_last_try; then
15537 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15538 else
15539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15540 fi
15541 done
15542 rm -f conf$$subs.sh
15543
15544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15546 _ACEOF
15547 sed -n '
15548 h
15549 s/^/S["/; s/!.*/"]=/
15550 p
15551 g
15552 s/^[^!]*!//
15553 :repl
15554 t repl
15555 s/'"$ac_delim"'$//
15556 t delim
15557 :nl
15558 h
15559 s/\(.\{148\}\).*/\1/
15560 t more1
15561 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15562 p
15563 n
15564 b repl
15565 :more1
15566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15567 p
15568 g
15569 s/.\{148\}//
15570 t nl
15571 :delim
15572 h
15573 s/\(.\{148\}\).*/\1/
15574 t more2
15575 s/["\\]/\\&/g; s/^/"/; s/$/"/
15576 p
15577 b
15578 :more2
15579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15580 p
15581 g
15582 s/.\{148\}//
15583 t delim
15584 ' <conf$$subs.awk | sed '
15585 /^[^""]/{
15586 N
15587 s/\n//
15588 }
15589 ' >>$CONFIG_STATUS || ac_write_fail=1
15590 rm -f conf$$subs.awk
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 _ACAWK
15593 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15594 for (key in S) S_is_set[key] = 1
15595 FS = "\a"
15596
15597 }
15598 {
15599 line = $ 0
15600 nfields = split(line, field, "@")
15601 substed = 0
15602 len = length(field[1])
15603 for (i = 2; i < nfields; i++) {
15604 key = field[i]
15605 keylen = length(key)
15606 if (S_is_set[key]) {
15607 value = S[key]
15608 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15609 len += length(value) + length(field[++i])
15610 substed = 1
15611 } else
15612 len += 1 + keylen
15613 }
15614
15615 print line
15616 }
15617
15618 _ACAWK
15619 _ACEOF
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15622 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15623 else
15624 cat
15625 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15626 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15627 _ACEOF
15628
15629 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15630 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15631 # trailing colons and then remove the whole line if VPATH becomes empty
15632 # (actually we leave an empty line to preserve line numbers).
15633 if test "x$srcdir" = x.; then
15634 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15635 s/:*\$(srcdir):*/:/
15636 s/:*\${srcdir}:*/:/
15637 s/:*@srcdir@:*/:/
15638 s/^\([^=]*=[ ]*\):*/\1/
15639 s/:*$//
15640 s/^[^=]*=[ ]*$//
15641 }'
15642 fi
15643
15644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15645 fi # test -n "$CONFIG_FILES"
15646
15647 # Set up the scripts for CONFIG_HEADERS section.
15648 # No need to generate them if there are no CONFIG_HEADERS.
15649 # This happens for instance with `./config.status Makefile'.
15650 if test -n "$CONFIG_HEADERS"; then
15651 cat >"$tmp/defines.awk" <<\_ACAWK ||
15652 BEGIN {
15653 _ACEOF
15654
15655 # Transform confdefs.h into an awk script `defines.awk', embedded as
15656 # here-document in config.status, that substitutes the proper values into
15657 # config.h.in to produce config.h.
15658
15659 # Create a delimiter string that does not exist in confdefs.h, to ease
15660 # handling of long lines.
15661 ac_delim='%!_!# '
15662 for ac_last_try in false false :; do
15663 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15664 if test -z "$ac_t"; then
15665 break
15666 elif $ac_last_try; then
15667 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15668 else
15669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15670 fi
15671 done
15672
15673 # For the awk script, D is an array of macro values keyed by name,
15674 # likewise P contains macro parameters if any. Preserve backslash
15675 # newline sequences.
15676
15677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15678 sed -n '
15679 s/.\{148\}/&'"$ac_delim"'/g
15680 t rset
15681 :rset
15682 s/^[ ]*#[ ]*define[ ][ ]*/ /
15683 t def
15684 d
15685 :def
15686 s/\\$//
15687 t bsnl
15688 s/["\\]/\\&/g
15689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15690 D["\1"]=" \3"/p
15691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15692 d
15693 :bsnl
15694 s/["\\]/\\&/g
15695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15696 D["\1"]=" \3\\\\\\n"\\/p
15697 t cont
15698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15699 t cont
15700 d
15701 :cont
15702 n
15703 s/.\{148\}/&'"$ac_delim"'/g
15704 t clear
15705 :clear
15706 s/\\$//
15707 t bsnlc
15708 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15709 d
15710 :bsnlc
15711 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15712 b cont
15713 ' <confdefs.h | sed '
15714 s/'"$ac_delim"'/"\\\
15715 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15716
15717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15718 for (key in D) D_is_set[key] = 1
15719 FS = "\a"
15720 }
15721 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15722 line = \$ 0
15723 split(line, arg, " ")
15724 if (arg[1] == "#") {
15725 defundef = arg[2]
15726 mac1 = arg[3]
15727 } else {
15728 defundef = substr(arg[1], 2)
15729 mac1 = arg[2]
15730 }
15731 split(mac1, mac2, "(") #)
15732 macro = mac2[1]
15733 prefix = substr(line, 1, index(line, defundef) - 1)
15734 if (D_is_set[macro]) {
15735 # Preserve the white space surrounding the "#".
15736 print prefix "define", macro P[macro] D[macro]
15737 next
15738 } else {
15739 # Replace #undef with comments. This is necessary, for example,
15740 # in the case of _POSIX_SOURCE, which is predefined and required
15741 # on some systems where configure will not decide to define it.
15742 if (defundef == "undef") {
15743 print "/*", prefix defundef, macro, "*/"
15744 next
15745 }
15746 }
15747 }
15748 { print }
15749 _ACAWK
15750 _ACEOF
15751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15752 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15753 fi # test -n "$CONFIG_HEADERS"
15754
15755
15756 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15757 shift
15758 for ac_tag
15759 do
15760 case $ac_tag in
15761 :[FHLC]) ac_mode=$ac_tag; continue;;
15762 esac
15763 case $ac_mode$ac_tag in
15764 :[FHL]*:*);;
15765 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15766 :[FH]-) ac_tag=-:-;;
15767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15768 esac
15769 ac_save_IFS=$IFS
15770 IFS=:
15771 set x $ac_tag
15772 IFS=$ac_save_IFS
15773 shift
15774 ac_file=$1
15775 shift
15776
15777 case $ac_mode in
15778 :L) ac_source=$1;;
15779 :[FH])
15780 ac_file_inputs=
15781 for ac_f
15782 do
15783 case $ac_f in
15784 -) ac_f="$tmp/stdin";;
15785 *) # Look for the file first in the build tree, then in the source tree
15786 # (if the path is not absolute). The absolute path cannot be DOS-style,
15787 # because $ac_f cannot contain `:'.
15788 test -f "$ac_f" ||
15789 case $ac_f in
15790 [\\/$]*) false;;
15791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15792 esac ||
15793 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15794 esac
15795 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15796 as_fn_append ac_file_inputs " '$ac_f'"
15797 done
15798
15799 # Let's still pretend it is `configure' which instantiates (i.e., don't
15800 # use $as_me), people would be surprised to read:
15801 # /* config.h. Generated by config.status. */
15802 configure_input='Generated from '`
15803 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15804 `' by configure.'
15805 if test x"$ac_file" != x-; then
15806 configure_input="$ac_file. $configure_input"
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15808 $as_echo "$as_me: creating $ac_file" >&6;}
15809 fi
15810 # Neutralize special characters interpreted by sed in replacement strings.
15811 case $configure_input in #(
15812 *\&* | *\|* | *\\* )
15813 ac_sed_conf_input=`$as_echo "$configure_input" |
15814 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15815 *) ac_sed_conf_input=$configure_input;;
15816 esac
15817
15818 case $ac_tag in
15819 *:-:* | *:-) cat >"$tmp/stdin" \
15820 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15821 esac
15822 ;;
15823 esac
15824
15825 ac_dir=`$as_dirname -- "$ac_file" ||
15826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15827 X"$ac_file" : 'X\(//\)[^/]' \| \
15828 X"$ac_file" : 'X\(//\)$' \| \
15829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15830 $as_echo X"$ac_file" |
15831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15832 s//\1/
15833 q
15834 }
15835 /^X\(\/\/\)[^/].*/{
15836 s//\1/
15837 q
15838 }
15839 /^X\(\/\/\)$/{
15840 s//\1/
15841 q
15842 }
15843 /^X\(\/\).*/{
15844 s//\1/
15845 q
15846 }
15847 s/.*/./; q'`
15848 as_dir="$ac_dir"; as_fn_mkdir_p
15849 ac_builddir=.
15850
15851 case "$ac_dir" in
15852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15853 *)
15854 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15855 # A ".." for each directory in $ac_dir_suffix.
15856 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15857 case $ac_top_builddir_sub in
15858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15860 esac ;;
15861 esac
15862 ac_abs_top_builddir=$ac_pwd
15863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15864 # for backward compatibility:
15865 ac_top_builddir=$ac_top_build_prefix
15866
15867 case $srcdir in
15868 .) # We are building in place.
15869 ac_srcdir=.
15870 ac_top_srcdir=$ac_top_builddir_sub
15871 ac_abs_top_srcdir=$ac_pwd ;;
15872 [\\/]* | ?:[\\/]* ) # Absolute name.
15873 ac_srcdir=$srcdir$ac_dir_suffix;
15874 ac_top_srcdir=$srcdir
15875 ac_abs_top_srcdir=$srcdir ;;
15876 *) # Relative name.
15877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15878 ac_top_srcdir=$ac_top_build_prefix$srcdir
15879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15880 esac
15881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15882
15883
15884 case $ac_mode in
15885 :F)
15886 #
15887 # CONFIG_FILE
15888 #
15889
15890 case $INSTALL in
15891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15893 esac
15894 ac_MKDIR_P=$MKDIR_P
15895 case $MKDIR_P in
15896 [\\/$]* | ?:[\\/]* ) ;;
15897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15898 esac
15899 _ACEOF
15900
15901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15902 # If the template does not know about datarootdir, expand it.
15903 # FIXME: This hack should be removed a few years after 2.60.
15904 ac_datarootdir_hack=; ac_datarootdir_seen=
15905 ac_sed_dataroot='
15906 /datarootdir/ {
15907 p
15908 q
15909 }
15910 /@datadir@/p
15911 /@docdir@/p
15912 /@infodir@/p
15913 /@localedir@/p
15914 /@mandir@/p'
15915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15916 *datarootdir*) ac_datarootdir_seen=yes;;
15917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15919 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15920 _ACEOF
15921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15922 ac_datarootdir_hack='
15923 s&@datadir@&$datadir&g
15924 s&@docdir@&$docdir&g
15925 s&@infodir@&$infodir&g
15926 s&@localedir@&$localedir&g
15927 s&@mandir@&$mandir&g
15928 s&\\\${datarootdir}&$datarootdir&g' ;;
15929 esac
15930 _ACEOF
15931
15932 # Neutralize VPATH when `$srcdir' = `.'.
15933 # Shell code in configure.ac might set extrasub.
15934 # FIXME: do we really want to maintain this feature?
15935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15936 ac_sed_extra="$ac_vpsub
15937 $extrasub
15938 _ACEOF
15939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15940 :t
15941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15942 s|@configure_input@|$ac_sed_conf_input|;t t
15943 s&@top_builddir@&$ac_top_builddir_sub&;t t
15944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15945 s&@srcdir@&$ac_srcdir&;t t
15946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15947 s&@top_srcdir@&$ac_top_srcdir&;t t
15948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15949 s&@builddir@&$ac_builddir&;t t
15950 s&@abs_builddir@&$ac_abs_builddir&;t t
15951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15952 s&@INSTALL@&$ac_INSTALL&;t t
15953 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15954 $ac_datarootdir_hack
15955 "
15956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15957 || as_fn_error "could not create $ac_file" "$LINENO" 5
15958
15959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15960 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15963 which seems to be undefined. Please make sure it is defined." >&5
15964 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15965 which seems to be undefined. Please make sure it is defined." >&2;}
15966
15967 rm -f "$tmp/stdin"
15968 case $ac_file in
15969 -) cat "$tmp/out" && rm -f "$tmp/out";;
15970 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15971 esac \
15972 || as_fn_error "could not create $ac_file" "$LINENO" 5
15973 ;;
15974 :H)
15975 #
15976 # CONFIG_HEADER
15977 #
15978 if test x"$ac_file" != x-; then
15979 {
15980 $as_echo "/* $configure_input */" \
15981 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15982 } >"$tmp/config.h" \
15983 || as_fn_error "could not create $ac_file" "$LINENO" 5
15984 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15986 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15987 else
15988 rm -f "$ac_file"
15989 mv "$tmp/config.h" "$ac_file" \
15990 || as_fn_error "could not create $ac_file" "$LINENO" 5
15991 fi
15992 else
15993 $as_echo "/* $configure_input */" \
15994 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15995 || as_fn_error "could not create -" "$LINENO" 5
15996 fi
15997 # Compute "$ac_file"'s index in $config_headers.
15998 _am_arg="$ac_file"
15999 _am_stamp_count=1
16000 for _am_header in $config_headers :; do
16001 case $_am_header in
16002 $_am_arg | $_am_arg:* )
16003 break ;;
16004 * )
16005 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16006 esac
16007 done
16008 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16009 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16010 X"$_am_arg" : 'X\(//\)[^/]' \| \
16011 X"$_am_arg" : 'X\(//\)$' \| \
16012 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16013 $as_echo X"$_am_arg" |
16014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16015 s//\1/
16016 q
16017 }
16018 /^X\(\/\/\)[^/].*/{
16019 s//\1/
16020 q
16021 }
16022 /^X\(\/\/\)$/{
16023 s//\1/
16024 q
16025 }
16026 /^X\(\/\).*/{
16027 s//\1/
16028 q
16029 }
16030 s/.*/./; q'`/stamp-h$_am_stamp_count
16031 ;;
16032
16033 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16034 $as_echo "$as_me: executing $ac_file commands" >&6;}
16035 ;;
16036 esac
16037
16038
16039 case $ac_file$ac_mode in
16040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16041 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16042 # are listed without --file. Let's play safe and only enable the eval
16043 # if we detect the quoting.
16044 case $CONFIG_FILES in
16045 *\'*) eval set x "$CONFIG_FILES" ;;
16046 *) set x $CONFIG_FILES ;;
16047 esac
16048 shift
16049 for mf
16050 do
16051 # Strip MF so we end up with the name of the file.
16052 mf=`echo "$mf" | sed -e 's/:.*$//'`
16053 # Check whether this is an Automake generated Makefile or not.
16054 # We used to match only the files named `Makefile.in', but
16055 # some people rename them; so instead we look at the file content.
16056 # Grep'ing the first line is not enough: some people post-process
16057 # each Makefile.in and add a new line on top of each file to say so.
16058 # Grep'ing the whole file is not good either: AIX grep has a line
16059 # limit of 2048, but all sed's we know have understand at least 4000.
16060 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16061 dirpart=`$as_dirname -- "$mf" ||
16062 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16063 X"$mf" : 'X\(//\)[^/]' \| \
16064 X"$mf" : 'X\(//\)$' \| \
16065 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16066 $as_echo X"$mf" |
16067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16068 s//\1/
16069 q
16070 }
16071 /^X\(\/\/\)[^/].*/{
16072 s//\1/
16073 q
16074 }
16075 /^X\(\/\/\)$/{
16076 s//\1/
16077 q
16078 }
16079 /^X\(\/\).*/{
16080 s//\1/
16081 q
16082 }
16083 s/.*/./; q'`
16084 else
16085 continue
16086 fi
16087 # Extract the definition of DEPDIR, am__include, and am__quote
16088 # from the Makefile without running `make'.
16089 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16090 test -z "$DEPDIR" && continue
16091 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16092 test -z "am__include" && continue
16093 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16094 # When using ansi2knr, U may be empty or an underscore; expand it
16095 U=`sed -n 's/^U = //p' < "$mf"`
16096 # Find all dependency output files, they are included files with
16097 # $(DEPDIR) in their names. We invoke sed twice because it is the
16098 # simplest approach to changing $(DEPDIR) to its actual value in the
16099 # expansion.
16100 for file in `sed -n "
16101 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16102 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16103 # Make sure the directory exists.
16104 test -f "$dirpart/$file" && continue
16105 fdir=`$as_dirname -- "$file" ||
16106 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16107 X"$file" : 'X\(//\)[^/]' \| \
16108 X"$file" : 'X\(//\)$' \| \
16109 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16110 $as_echo X"$file" |
16111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16112 s//\1/
16113 q
16114 }
16115 /^X\(\/\/\)[^/].*/{
16116 s//\1/
16117 q
16118 }
16119 /^X\(\/\/\)$/{
16120 s//\1/
16121 q
16122 }
16123 /^X\(\/\).*/{
16124 s//\1/
16125 q
16126 }
16127 s/.*/./; q'`
16128 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16129 # echo "creating $dirpart/$file"
16130 echo '# dummy' > "$dirpart/$file"
16131 done
16132 done
16133 }
16134 ;;
16135 "libtool":C)
16136
16137 # See if we are running on zsh, and set the options which allow our
16138 # commands through without removal of \ escapes.
16139 if test -n "${ZSH_VERSION+set}" ; then
16140 setopt NO_GLOB_SUBST
16141 fi
16142
16143 cfgfile="${ofile}T"
16144 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16145 $RM "$cfgfile"
16146
16147 cat <<_LT_EOF >> "$cfgfile"
16148 #! $SHELL
16149
16150 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16151 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16153 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16154 #
16155 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16156 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16157 # Written by Gordon Matzigkeit, 1996
16158 #
16159 # This file is part of GNU Libtool.
16160 #
16161 # GNU Libtool is free software; you can redistribute it and/or
16162 # modify it under the terms of the GNU General Public License as
16163 # published by the Free Software Foundation; either version 2 of
16164 # the License, or (at your option) any later version.
16165 #
16166 # As a special exception to the GNU General Public License,
16167 # if you distribute this file as part of a program or library that
16168 # is built using GNU Libtool, you may include this file under the
16169 # same distribution terms that you use for the rest of that program.
16170 #
16171 # GNU Libtool is distributed in the hope that it will be useful,
16172 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16173 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16174 # GNU General Public License for more details.
16175 #
16176 # You should have received a copy of the GNU General Public License
16177 # along with GNU Libtool; see the file COPYING. If not, a copy
16178 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16179 # obtained by writing to the Free Software Foundation, Inc.,
16180 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16181
16182
16183 # The names of the tagged configurations supported by this script.
16184 available_tags=""
16185
16186 # ### BEGIN LIBTOOL CONFIG
16187
16188 # Which release of libtool.m4 was used?
16189 macro_version=$macro_version
16190 macro_revision=$macro_revision
16191
16192 # Whether or not to build shared libraries.
16193 build_libtool_libs=$enable_shared
16194
16195 # Whether or not to build static libraries.
16196 build_old_libs=$enable_static
16197
16198 # What type of objects to build.
16199 pic_mode=$pic_mode
16200
16201 # Whether or not to optimize for fast installation.
16202 fast_install=$enable_fast_install
16203
16204 # Shell to use when invoking shell scripts.
16205 SHELL=$lt_SHELL
16206
16207 # An echo program that protects backslashes.
16208 ECHO=$lt_ECHO
16209
16210 # The host system.
16211 host_alias=$host_alias
16212 host=$host
16213 host_os=$host_os
16214
16215 # The build system.
16216 build_alias=$build_alias
16217 build=$build
16218 build_os=$build_os
16219
16220 # A sed program that does not truncate output.
16221 SED=$lt_SED
16222
16223 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16224 Xsed="\$SED -e 1s/^X//"
16225
16226 # A grep program that handles long lines.
16227 GREP=$lt_GREP
16228
16229 # An ERE matcher.
16230 EGREP=$lt_EGREP
16231
16232 # A literal string matcher.
16233 FGREP=$lt_FGREP
16234
16235 # A BSD- or MS-compatible name lister.
16236 NM=$lt_NM
16237
16238 # Whether we need soft or hard links.
16239 LN_S=$lt_LN_S
16240
16241 # What is the maximum length of a command?
16242 max_cmd_len=$max_cmd_len
16243
16244 # Object file suffix (normally "o").
16245 objext=$ac_objext
16246
16247 # Executable file suffix (normally "").
16248 exeext=$exeext
16249
16250 # whether the shell understands "unset".
16251 lt_unset=$lt_unset
16252
16253 # turn spaces into newlines.
16254 SP2NL=$lt_lt_SP2NL
16255
16256 # turn newlines into spaces.
16257 NL2SP=$lt_lt_NL2SP
16258
16259 # An object symbol dumper.
16260 OBJDUMP=$lt_OBJDUMP
16261
16262 # Method to check whether dependent libraries are shared objects.
16263 deplibs_check_method=$lt_deplibs_check_method
16264
16265 # Command to use when deplibs_check_method == "file_magic".
16266 file_magic_cmd=$lt_file_magic_cmd
16267
16268 # The archiver.
16269 AR=$lt_AR
16270 AR_FLAGS=$lt_AR_FLAGS
16271
16272 # A symbol stripping program.
16273 STRIP=$lt_STRIP
16274
16275 # Commands used to install an old-style archive.
16276 RANLIB=$lt_RANLIB
16277 old_postinstall_cmds=$lt_old_postinstall_cmds
16278 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16279
16280 # Whether to use a lock for old archive extraction.
16281 lock_old_archive_extraction=$lock_old_archive_extraction
16282
16283 # A C compiler.
16284 LTCC=$lt_CC
16285
16286 # LTCC compiler flags.
16287 LTCFLAGS=$lt_CFLAGS
16288
16289 # Take the output of nm and produce a listing of raw symbols and C names.
16290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16291
16292 # Transform the output of nm in a proper C declaration.
16293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16294
16295 # Transform the output of nm in a C name address pair.
16296 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16297
16298 # Transform the output of nm in a C name address pair when lib prefix is needed.
16299 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16300
16301 # The name of the directory that contains temporary libtool files.
16302 objdir=$objdir
16303
16304 # Used to examine libraries when file_magic_cmd begins with "file".
16305 MAGIC_CMD=$MAGIC_CMD
16306
16307 # Must we lock files when doing compilation?
16308 need_locks=$lt_need_locks
16309
16310 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16311 DSYMUTIL=$lt_DSYMUTIL
16312
16313 # Tool to change global to local symbols on Mac OS X.
16314 NMEDIT=$lt_NMEDIT
16315
16316 # Tool to manipulate fat objects and archives on Mac OS X.
16317 LIPO=$lt_LIPO
16318
16319 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16320 OTOOL=$lt_OTOOL
16321
16322 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16323 OTOOL64=$lt_OTOOL64
16324
16325 # Old archive suffix (normally "a").
16326 libext=$libext
16327
16328 # Shared library suffix (normally ".so").
16329 shrext_cmds=$lt_shrext_cmds
16330
16331 # The commands to extract the exported symbol list from a shared archive.
16332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16333
16334 # Variables whose values should be saved in libtool wrapper scripts and
16335 # restored at link time.
16336 variables_saved_for_relink=$lt_variables_saved_for_relink
16337
16338 # Do we need the "lib" prefix for modules?
16339 need_lib_prefix=$need_lib_prefix
16340
16341 # Do we need a version for libraries?
16342 need_version=$need_version
16343
16344 # Library versioning type.
16345 version_type=$version_type
16346
16347 # Shared library runtime path variable.
16348 runpath_var=$runpath_var
16349
16350 # Shared library path variable.
16351 shlibpath_var=$shlibpath_var
16352
16353 # Is shlibpath searched before the hard-coded library search path?
16354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16355
16356 # Format of library name prefix.
16357 libname_spec=$lt_libname_spec
16358
16359 # List of archive names. First name is the real one, the rest are links.
16360 # The last name is the one that the linker finds with -lNAME
16361 library_names_spec=$lt_library_names_spec
16362
16363 # The coded name of the library, if different from the real name.
16364 soname_spec=$lt_soname_spec
16365
16366 # Permission mode override for installation of shared libraries.
16367 install_override_mode=$lt_install_override_mode
16368
16369 # Command to use after installation of a shared archive.
16370 postinstall_cmds=$lt_postinstall_cmds
16371
16372 # Command to use after uninstallation of a shared archive.
16373 postuninstall_cmds=$lt_postuninstall_cmds
16374
16375 # Commands used to finish a libtool library installation in a directory.
16376 finish_cmds=$lt_finish_cmds
16377
16378 # As "finish_cmds", except a single script fragment to be evaled but
16379 # not shown.
16380 finish_eval=$lt_finish_eval
16381
16382 # Whether we should hardcode library paths into libraries.
16383 hardcode_into_libs=$hardcode_into_libs
16384
16385 # Compile-time system search path for libraries.
16386 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16387
16388 # Run-time system search path for libraries.
16389 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16390
16391 # Whether dlopen is supported.
16392 dlopen_support=$enable_dlopen
16393
16394 # Whether dlopen of programs is supported.
16395 dlopen_self=$enable_dlopen_self
16396
16397 # Whether dlopen of statically linked programs is supported.
16398 dlopen_self_static=$enable_dlopen_self_static
16399
16400 # Commands to strip libraries.
16401 old_striplib=$lt_old_striplib
16402 striplib=$lt_striplib
16403
16404
16405 # The linker used to build libraries.
16406 LD=$lt_LD
16407
16408 # How to create reloadable object files.
16409 reload_flag=$lt_reload_flag
16410 reload_cmds=$lt_reload_cmds
16411
16412 # Commands used to build an old-style archive.
16413 old_archive_cmds=$lt_old_archive_cmds
16414
16415 # A language specific compiler.
16416 CC=$lt_compiler
16417
16418 # Is the compiler the GNU compiler?
16419 with_gcc=$GCC
16420
16421 # Compiler flag to turn off builtin functions.
16422 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16423
16424 # How to pass a linker flag through the compiler.
16425 wl=$lt_lt_prog_compiler_wl
16426
16427 # Additional compiler flags for building library objects.
16428 pic_flag=$lt_lt_prog_compiler_pic
16429
16430 # Compiler flag to prevent dynamic linking.
16431 link_static_flag=$lt_lt_prog_compiler_static
16432
16433 # Does compiler simultaneously support -c and -o options?
16434 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16435
16436 # Whether or not to add -lc for building shared libraries.
16437 build_libtool_need_lc=$archive_cmds_need_lc
16438
16439 # Whether or not to disallow shared libs when runtime libs are static.
16440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16441
16442 # Compiler flag to allow reflexive dlopens.
16443 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16444
16445 # Compiler flag to generate shared objects directly from archives.
16446 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16447
16448 # Whether the compiler copes with passing no objects directly.
16449 compiler_needs_object=$lt_compiler_needs_object
16450
16451 # Create an old-style archive from a shared archive.
16452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16453
16454 # Create a temporary old-style archive to link instead of a shared archive.
16455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16456
16457 # Commands used to build a shared archive.
16458 archive_cmds=$lt_archive_cmds
16459 archive_expsym_cmds=$lt_archive_expsym_cmds
16460
16461 # Commands used to build a loadable module if different from building
16462 # a shared archive.
16463 module_cmds=$lt_module_cmds
16464 module_expsym_cmds=$lt_module_expsym_cmds
16465
16466 # Whether we are building with GNU ld or not.
16467 with_gnu_ld=$lt_with_gnu_ld
16468
16469 # Flag that allows shared libraries with undefined symbols to be built.
16470 allow_undefined_flag=$lt_allow_undefined_flag
16471
16472 # Flag that enforces no undefined symbols.
16473 no_undefined_flag=$lt_no_undefined_flag
16474
16475 # Flag to hardcode \$libdir into a binary during linking.
16476 # This must work even if \$libdir does not exist
16477 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16478
16479 # If ld is used when linking, flag to hardcode \$libdir into a binary
16480 # during linking. This must work even if \$libdir does not exist.
16481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16482
16483 # Whether we need a single "-rpath" flag with a separated argument.
16484 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16485
16486 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16487 # DIR into the resulting binary.
16488 hardcode_direct=$hardcode_direct
16489
16490 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16491 # DIR into the resulting binary and the resulting library dependency is
16492 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16493 # library is relocated.
16494 hardcode_direct_absolute=$hardcode_direct_absolute
16495
16496 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16497 # into the resulting binary.
16498 hardcode_minus_L=$hardcode_minus_L
16499
16500 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16501 # into the resulting binary.
16502 hardcode_shlibpath_var=$hardcode_shlibpath_var
16503
16504 # Set to "yes" if building a shared library automatically hardcodes DIR
16505 # into the library and all subsequent libraries and executables linked
16506 # against it.
16507 hardcode_automatic=$hardcode_automatic
16508
16509 # Set to yes if linker adds runtime paths of dependent libraries
16510 # to runtime path list.
16511 inherit_rpath=$inherit_rpath
16512
16513 # Whether libtool must link a program against all its dependency libraries.
16514 link_all_deplibs=$link_all_deplibs
16515
16516 # Fix the shell variable \$srcfile for the compiler.
16517 fix_srcfile_path=$lt_fix_srcfile_path
16518
16519 # Set to "yes" if exported symbols are required.
16520 always_export_symbols=$always_export_symbols
16521
16522 # The commands to list exported symbols.
16523 export_symbols_cmds=$lt_export_symbols_cmds
16524
16525 # Symbols that should not be listed in the preloaded symbols.
16526 exclude_expsyms=$lt_exclude_expsyms
16527
16528 # Symbols that must always be exported.
16529 include_expsyms=$lt_include_expsyms
16530
16531 # Commands necessary for linking programs (against libraries) with templates.
16532 prelink_cmds=$lt_prelink_cmds
16533
16534 # Specify filename containing input files.
16535 file_list_spec=$lt_file_list_spec
16536
16537 # How to hardcode a shared library path into an executable.
16538 hardcode_action=$hardcode_action
16539
16540 # ### END LIBTOOL CONFIG
16541
16542 _LT_EOF
16543
16544 case $host_os in
16545 aix3*)
16546 cat <<\_LT_EOF >> "$cfgfile"
16547 # AIX sometimes has problems with the GCC collect2 program. For some
16548 # reason, if we set the COLLECT_NAMES environment variable, the problems
16549 # vanish in a puff of smoke.
16550 if test "X${COLLECT_NAMES+set}" != Xset; then
16551 COLLECT_NAMES=
16552 export COLLECT_NAMES
16553 fi
16554 _LT_EOF
16555 ;;
16556 esac
16557
16558
16559 ltmain="$ac_aux_dir/ltmain.sh"
16560
16561
16562 # We use sed instead of cat because bash on DJGPP gets confused if
16563 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16564 # text mode, it properly converts lines to CR/LF. This bash problem
16565 # is reportedly fixed, but why not run on old versions too?
16566 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16567 || (rm -f "$cfgfile"; exit 1)
16568
16569 case $xsi_shell in
16570 yes)
16571 cat << \_LT_EOF >> "$cfgfile"
16572
16573 # func_dirname file append nondir_replacement
16574 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16575 # otherwise set result to NONDIR_REPLACEMENT.
16576 func_dirname ()
16577 {
16578 case ${1} in
16579 */*) func_dirname_result="${1%/*}${2}" ;;
16580 * ) func_dirname_result="${3}" ;;
16581 esac
16582 }
16583
16584 # func_basename file
16585 func_basename ()
16586 {
16587 func_basename_result="${1##*/}"
16588 }
16589
16590 # func_dirname_and_basename file append nondir_replacement
16591 # perform func_basename and func_dirname in a single function
16592 # call:
16593 # dirname: Compute the dirname of FILE. If nonempty,
16594 # add APPEND to the result, otherwise set result
16595 # to NONDIR_REPLACEMENT.
16596 # value returned in "$func_dirname_result"
16597 # basename: Compute filename of FILE.
16598 # value retuned in "$func_basename_result"
16599 # Implementation must be kept synchronized with func_dirname
16600 # and func_basename. For efficiency, we do not delegate to
16601 # those functions but instead duplicate the functionality here.
16602 func_dirname_and_basename ()
16603 {
16604 case ${1} in
16605 */*) func_dirname_result="${1%/*}${2}" ;;
16606 * ) func_dirname_result="${3}" ;;
16607 esac
16608 func_basename_result="${1##*/}"
16609 }
16610
16611 # func_stripname prefix suffix name
16612 # strip PREFIX and SUFFIX off of NAME.
16613 # PREFIX and SUFFIX must not contain globbing or regex special
16614 # characters, hashes, percent signs, but SUFFIX may contain a leading
16615 # dot (in which case that matches only a dot).
16616 func_stripname ()
16617 {
16618 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16619 # positional parameters, so assign one to ordinary parameter first.
16620 func_stripname_result=${3}
16621 func_stripname_result=${func_stripname_result#"${1}"}
16622 func_stripname_result=${func_stripname_result%"${2}"}
16623 }
16624
16625 # func_opt_split
16626 func_opt_split ()
16627 {
16628 func_opt_split_opt=${1%%=*}
16629 func_opt_split_arg=${1#*=}
16630 }
16631
16632 # func_lo2o object
16633 func_lo2o ()
16634 {
16635 case ${1} in
16636 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16637 *) func_lo2o_result=${1} ;;
16638 esac
16639 }
16640
16641 # func_xform libobj-or-source
16642 func_xform ()
16643 {
16644 func_xform_result=${1%.*}.lo
16645 }
16646
16647 # func_arith arithmetic-term...
16648 func_arith ()
16649 {
16650 func_arith_result=$(( $* ))
16651 }
16652
16653 # func_len string
16654 # STRING may not start with a hyphen.
16655 func_len ()
16656 {
16657 func_len_result=${#1}
16658 }
16659
16660 _LT_EOF
16661 ;;
16662 *) # Bourne compatible functions.
16663 cat << \_LT_EOF >> "$cfgfile"
16664
16665 # func_dirname file append nondir_replacement
16666 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16667 # otherwise set result to NONDIR_REPLACEMENT.
16668 func_dirname ()
16669 {
16670 # Extract subdirectory from the argument.
16671 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16672 if test "X$func_dirname_result" = "X${1}"; then
16673 func_dirname_result="${3}"
16674 else
16675 func_dirname_result="$func_dirname_result${2}"
16676 fi
16677 }
16678
16679 # func_basename file
16680 func_basename ()
16681 {
16682 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16683 }
16684
16685
16686 # func_stripname prefix suffix name
16687 # strip PREFIX and SUFFIX off of NAME.
16688 # PREFIX and SUFFIX must not contain globbing or regex special
16689 # characters, hashes, percent signs, but SUFFIX may contain a leading
16690 # dot (in which case that matches only a dot).
16691 # func_strip_suffix prefix name
16692 func_stripname ()
16693 {
16694 case ${2} in
16695 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16696 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16697 esac
16698 }
16699
16700 # sed scripts:
16701 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16702 my_sed_long_arg='1s/^-[^=]*=//'
16703
16704 # func_opt_split
16705 func_opt_split ()
16706 {
16707 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16708 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16709 }
16710
16711 # func_lo2o object
16712 func_lo2o ()
16713 {
16714 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16715 }
16716
16717 # func_xform libobj-or-source
16718 func_xform ()
16719 {
16720 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16721 }
16722
16723 # func_arith arithmetic-term...
16724 func_arith ()
16725 {
16726 func_arith_result=`expr "$@"`
16727 }
16728
16729 # func_len string
16730 # STRING may not start with a hyphen.
16731 func_len ()
16732 {
16733 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16734 }
16735
16736 _LT_EOF
16737 esac
16738
16739 case $lt_shell_append in
16740 yes)
16741 cat << \_LT_EOF >> "$cfgfile"
16742
16743 # func_append var value
16744 # Append VALUE to the end of shell variable VAR.
16745 func_append ()
16746 {
16747 eval "$1+=\$2"
16748 }
16749 _LT_EOF
16750 ;;
16751 *)
16752 cat << \_LT_EOF >> "$cfgfile"
16753
16754 # func_append var value
16755 # Append VALUE to the end of shell variable VAR.
16756 func_append ()
16757 {
16758 eval "$1=\$$1\$2"
16759 }
16760
16761 _LT_EOF
16762 ;;
16763 esac
16764
16765
16766 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16767 || (rm -f "$cfgfile"; exit 1)
16768
16769 mv -f "$cfgfile" "$ofile" ||
16770 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16771 chmod +x "$ofile"
16772
16773 ;;
16774 "default-1":C)
16775 for ac_file in $CONFIG_FILES; do
16776 # Support "outfile[:infile[:infile...]]"
16777 case "$ac_file" in
16778 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16779 esac
16780 # PO directories have a Makefile.in generated from Makefile.in.in.
16781 case "$ac_file" in */Makefile.in)
16782 # Adjust a relative srcdir.
16783 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16784 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16785 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16786 # In autoconf-2.13 it is called $ac_given_srcdir.
16787 # In autoconf-2.50 it is called $srcdir.
16788 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16789 case "$ac_given_srcdir" in
16790 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16791 /*) top_srcdir="$ac_given_srcdir" ;;
16792 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16793 esac
16794 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16795 rm -f "$ac_dir/POTFILES"
16796 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16797 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16798 POMAKEFILEDEPS="POTFILES.in"
16799 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16800 # on $ac_dir but don't depend on user-specified configuration
16801 # parameters.
16802 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16803 # The LINGUAS file contains the set of available languages.
16804 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16805 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16806 fi
16807 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16808 # Hide the ALL_LINGUAS assigment from automake.
16809 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16810 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16811 else
16812 # The set of available languages was given in configure.in.
16813 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16814 fi
16815 case "$ac_given_srcdir" in
16816 .) srcdirpre= ;;
16817 *) srcdirpre='$(srcdir)/' ;;
16818 esac
16819 POFILES=
16820 GMOFILES=
16821 UPDATEPOFILES=
16822 DUMMYPOFILES=
16823 for lang in $ALL_LINGUAS; do
16824 POFILES="$POFILES $srcdirpre$lang.po"
16825 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16826 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16827 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16828 done
16829 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16830 # environment variable.
16831 INST_LINGUAS=
16832 if test -n "$ALL_LINGUAS"; then
16833 for presentlang in $ALL_LINGUAS; do
16834 useit=no
16835 if test "%UNSET%" != "$LINGUAS"; then
16836 desiredlanguages="$LINGUAS"
16837 else
16838 desiredlanguages="$ALL_LINGUAS"
16839 fi
16840 for desiredlang in $desiredlanguages; do
16841 # Use the presentlang catalog if desiredlang is
16842 # a. equal to presentlang, or
16843 # b. a variant of presentlang (because in this case,
16844 # presentlang can be used as a fallback for messages
16845 # which are not translated in the desiredlang catalog).
16846 case "$desiredlang" in
16847 "$presentlang"*) useit=yes;;
16848 esac
16849 done
16850 if test $useit = yes; then
16851 INST_LINGUAS="$INST_LINGUAS $presentlang"
16852 fi
16853 done
16854 fi
16855 CATALOGS=
16856 if test -n "$INST_LINGUAS"; then
16857 for lang in $INST_LINGUAS; do
16858 CATALOGS="$CATALOGS $lang.gmo"
16859 done
16860 fi
16861 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16862 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"
16863 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16864 if test -f "$f"; then
16865 case "$f" in
16866 *.orig | *.bak | *~) ;;
16867 *) cat "$f" >> "$ac_dir/Makefile" ;;
16868 esac
16869 fi
16870 done
16871 fi
16872 ;;
16873 esac
16874 done ;;
16875 "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
16876 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16877 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16878 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16879 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16880 if test "x$cgen_cpu_prefix" != x ; then
16881 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
16882 fi ;;
16883
16884 esac
16885 done # for ac_tag
16886
16887
16888 as_fn_exit 0
16889 _ACEOF
16890 ac_clean_files=$ac_clean_files_save
16891
16892 test $ac_write_fail = 0 ||
16893 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16894
16895
16896 # configure is writing to config.log, and then calls config.status.
16897 # config.status does its own redirection, appending to config.log.
16898 # Unfortunately, on DOS this fails, as config.log is still kept open
16899 # by configure, so config.status won't be able to write to it; its
16900 # output is simply discarded. So we exec the FD to /dev/null,
16901 # effectively closing config.log, so it can be properly (re)opened and
16902 # appended to by config.status. When coming back to configure, we
16903 # need to make the FD available again.
16904 if test "$no_create" != yes; then
16905 ac_cs_success=:
16906 ac_config_status_args=
16907 test "$silent" = yes &&
16908 ac_config_status_args="$ac_config_status_args --quiet"
16909 exec 5>/dev/null
16910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16911 exec 5>>config.log
16912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16913 # would make configure fail if this is the last instruction.
16914 $ac_cs_success || as_fn_exit $?
16915 fi
16916 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16918 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16919 fi
16920